diff --git a/introspection.json b/introspection.json index f673387e7..636423896 100644 --- a/introspection.json +++ b/introspection.json @@ -3689,6 +3689,24 @@ "description": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "ORDER_DETAILS_MORE_ACTIONS", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ORDER_OVERVIEW_CREATE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ORDER_OVERVIEW_MORE_ACTIONS", + "description": null, + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null @@ -5313,7 +5331,7 @@ }, { "name": "valueRequired", - "description": "Whether the attribute requires values to be passed or not. Requires one of the following permissions: PagePermissions.MANAGE_PAGES, PageTypePermissions.MANAGE_PAGE_TYPES_AND_ATTRIBUTES, ProductPermissions.MANAGE_PRODUCTS, ProductTypePermissions.MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", + "description": "Whether the attribute requires values to be passed or not. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", "args": [], "type": { "kind": "NON_NULL", @@ -5329,7 +5347,7 @@ }, { "name": "visibleInStorefront", - "description": "Whether the attribute should be visible or not in storefront. Requires one of the following permissions: PagePermissions.MANAGE_PAGES, PageTypePermissions.MANAGE_PAGE_TYPES_AND_ATTRIBUTES, ProductPermissions.MANAGE_PRODUCTS, ProductTypePermissions.MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", + "description": "Whether the attribute should be visible or not in storefront. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", "args": [], "type": { "kind": "NON_NULL", @@ -5345,7 +5363,7 @@ }, { "name": "filterableInStorefront", - "description": "Whether the attribute can be filtered in storefront. Requires one of the following permissions: PagePermissions.MANAGE_PAGES, PageTypePermissions.MANAGE_PAGE_TYPES_AND_ATTRIBUTES, ProductPermissions.MANAGE_PRODUCTS, ProductTypePermissions.MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", + "description": "Whether the attribute can be filtered in storefront. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", "args": [], "type": { "kind": "NON_NULL", @@ -5361,7 +5379,7 @@ }, { "name": "filterableInDashboard", - "description": "Whether the attribute can be filtered in dashboard. Requires one of the following permissions: PagePermissions.MANAGE_PAGES, PageTypePermissions.MANAGE_PAGE_TYPES_AND_ATTRIBUTES, ProductPermissions.MANAGE_PRODUCTS, ProductTypePermissions.MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", + "description": "Whether the attribute can be filtered in dashboard. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", "args": [], "type": { "kind": "NON_NULL", @@ -5377,7 +5395,7 @@ }, { "name": "availableInGrid", - "description": "Whether the attribute can be displayed in the admin product list. Requires one of the following permissions: PagePermissions.MANAGE_PAGES, PageTypePermissions.MANAGE_PAGE_TYPES_AND_ATTRIBUTES, ProductPermissions.MANAGE_PRODUCTS, ProductTypePermissions.MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", + "description": "Whether the attribute can be displayed in the admin product list. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", "args": [], "type": { "kind": "NON_NULL", @@ -5393,7 +5411,7 @@ }, { "name": "storefrontSearchPosition", - "description": "The position of the attribute in the storefront navigation (0 by default). Requires one of the following permissions: PagePermissions.MANAGE_PAGES, PageTypePermissions.MANAGE_PAGE_TYPES_AND_ATTRIBUTES, ProductPermissions.MANAGE_PRODUCTS, ProductTypePermissions.MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", + "description": "The position of the attribute in the storefront navigation (0 by default). Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.", "args": [], "type": { "kind": "NON_NULL", @@ -12158,6 +12176,26 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "transactions", + "description": "List of transactions for the checkout. Requires one of the following permissions: MANAGE_CHECKOUTS, HANDLE_PAYMENTS.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TransactionItem", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -16288,7 +16326,7 @@ }, { "name": "AVAILABILITY", - "description": "Sort collections by availability.", + "description": "Sort collections by availability.\n\nThis option requires a channel filter to work as the values can vary between channels.", "isDeprecated": false, "deprecationReason": null }, @@ -16300,13 +16338,13 @@ }, { "name": "PUBLICATION_DATE", - "description": "Sort collections by publication date.\n\nDEPRECATED: this field will be removed in Saleor 4.0.", + "description": "Sort collections by publication date.\n\nThis option requires a channel filter to work as the values can vary between channels.", "isDeprecated": false, "deprecationReason": null }, { "name": "PUBLISHED_AT", - "description": "Sort collections by publication date.\n\nDEPRECATED: this field will be removed in Saleor 4.0.", + "description": "Sort collections by publication date.\n\nThis option requires a channel filter to work as the values can vary between channels.", "isDeprecated": false, "deprecationReason": null } @@ -22106,6 +22144,36 @@ "name": "GiftCardStatusChanged", "ofType": null }, + { + "kind": "OBJECT", + "name": "MenuCreated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "MenuUpdated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "MenuDeleted", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "MenuItemCreated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "MenuItemUpdated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "MenuItemDeleted", + "ofType": null + }, { "kind": "OBJECT", "name": "OrderCreated", @@ -22311,6 +22379,11 @@ "name": "ShippingZoneDeleted", "ofType": null }, + { + "kind": "OBJECT", + "name": "TransactionActionRequest", + "ofType": null + }, { "kind": "OBJECT", "name": "TranslationCreated", @@ -22320,6 +22393,21 @@ "kind": "OBJECT", "name": "TranslationUpdated", "ofType": null + }, + { + "kind": "OBJECT", + "name": "VoucherCreated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "VoucherUpdated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "VoucherDeleted", + "ofType": null } ] }, @@ -23220,7 +23308,7 @@ }, { "name": "user", - "description": "User who performed the action. Requires one of the following permissions: AuthorizationFilters.OWNER, AccountPermissions.MANAGE_STAFF.", + "description": "User who performed the action. Requires one of the following permissions: OWNER, MANAGE_STAFF.", "args": [], "type": { "kind": "OBJECT", @@ -23232,7 +23320,7 @@ }, { "name": "app", - "description": "App which performed the action. Requires one of the following permissions: AuthorizationFilters.OWNER, AppPermission.MANAGE_APPS.", + "description": "App which performed the action. Requires one of the following permissions: OWNER, MANAGE_APPS.", "args": [], "type": { "kind": "OBJECT", @@ -26188,7 +26276,7 @@ }, { "name": "code", - "description": "Gift card code. Can be fetched by a staff member with GiftcardPermissions.MANAGE_GIFT_CARD when gift card wasn't yet used and by the gift card owner.", + "description": "Gift card code. Can be fetched by a staff member with MANAGE_GIFT_CARD when gift card wasn't yet used and by the gift card owner.", "args": [], "type": { "kind": "NON_NULL", @@ -26244,7 +26332,7 @@ }, { "name": "createdByEmail", - "description": "Email address of the user who bought or issued gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AccountPermissions.MANAGE_USERS, AuthorizationFilters.OWNER.", + "description": "Email address of the user who bought or issued gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_USERS, OWNER.", "args": [], "type": { "kind": "SCALAR", @@ -26292,7 +26380,7 @@ }, { "name": "app", - "description": "App which created the gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: AppPermission.MANAGE_APPS, AuthorizationFilters.OWNER.", + "description": "App which created the gift card.\n\nAdded in Saleor 3.1.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.\n\nRequires one of the following permissions: MANAGE_APPS, OWNER.", "args": [], "type": { "kind": "OBJECT", @@ -27645,7 +27733,7 @@ }, { "name": "user", - "description": "User who performed the action. Requires one of the following permissions: AccountPermissions.MANAGE_USERS, AccountPermissions.MANAGE_STAFF, AuthorizationFilters.OWNER.", + "description": "User who performed the action. Requires one of the following permissions: MANAGE_USERS, MANAGE_STAFF, OWNER.", "args": [], "type": { "kind": "OBJECT", @@ -27657,7 +27745,7 @@ }, { "name": "app", - "description": "App that performed the action. Requires one of the following permissions: AppPermission.MANAGE_APPS, AuthorizationFilters.OWNER.", + "description": "App that performed the action. Requires one of the following permissions: MANAGE_APPS, OWNER.", "args": [], "type": { "kind": "OBJECT", @@ -36175,6 +36263,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "MenuCreated", + "description": null, + "fields": [ + { + "name": "menu", + "description": "Look up a menu.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [ + { + "name": "channel", + "description": "Slug of a channel for which the data should be returned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Menu", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "MenuDelete", @@ -36246,6 +36370,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "MenuDeleted", + "description": null, + "fields": [ + { + "name": "menu", + "description": "Look up a menu.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [ + { + "name": "channel", + "description": "Slug of a channel for which the data should be returned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Menu", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "MenuError", @@ -36723,7 +36883,7 @@ }, { "name": "page", - "description": "A page associated with this menu item. Requires one of the following permissions to include unpublished items: PagePermissions.MANAGE_PAGES.", + "description": "A page associated with this menu item. Requires one of the following permissions to include unpublished items: MANAGE_PAGES.", "args": [], "type": { "kind": "OBJECT", @@ -37182,6 +37342,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "MenuItemCreated", + "description": null, + "fields": [ + { + "name": "menuItem", + "description": "Look up a menu item.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [ + { + "name": "channel", + "description": "Slug of a channel for which the data should be returned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "MenuItem", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "MenuItemDelete", @@ -37253,6 +37449,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "MenuItemDeleted", + "description": null, + "fields": [ + { + "name": "menuItem", + "description": "Look up a menu item.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [ + { + "name": "channel", + "description": "Slug of a channel for which the data should be returned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "MenuItem", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "MenuItemFilterInput", @@ -37829,6 +38061,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "MenuItemUpdated", + "description": null, + "fields": [ + { + "name": "menuItem", + "description": "Look up a menu item.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [ + { + "name": "channel", + "description": "Slug of a channel for which the data should be returned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "MenuItem", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "ENUM", "name": "MenuItemsSortField", @@ -37983,6 +38251,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "MenuUpdated", + "description": null, + "fields": [ + { + "name": "menu", + "description": "Look up a menu.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [ + { + "name": "channel", + "description": "Slug of a channel for which the data should be returned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Menu", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "SCALAR", "name": "Metadata", @@ -42080,6 +42384,173 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "transactionCreate", + "description": "Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [ + { + "name": "id", + "description": "The ID of the checkout or order.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "transaction", + "description": "Input data required to create a new transaction object.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "TransactionCreateInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "transactionEvent", + "description": "Data that defines a transaction event.", + "type": { + "kind": "INPUT_OBJECT", + "name": "TransactionEventInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "TransactionCreate", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "transactionUpdate", + "description": "Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [ + { + "name": "id", + "description": "The ID of the transaction.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "transaction", + "description": "Input data required to create a new transaction object.", + "type": { + "kind": "INPUT_OBJECT", + "name": "TransactionUpdateInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "transactionEvent", + "description": "Data that defines a transaction transaction.", + "type": { + "kind": "INPUT_OBJECT", + "name": "TransactionEventInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "TransactionUpdate", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "transactionRequestAction", + "description": "Request an action for payment transaction.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: HANDLE_PAYMENTS, MANAGE_ORDERS.", + "args": [ + { + "name": "actionType", + "description": "Determines the action type.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "TransactionActionEnum", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "amount", + "description": "Transaction request amount. If empty for refund or capture, maximal possible amount will be used.", + "type": { + "kind": "SCALAR", + "name": "PositiveDecimal", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": "The ID of the transaction.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "TransactionRequestAction", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "pageCreate", "description": "Creates a new page. \n\nRequires one of the following permissions: MANAGE_PAGES.", @@ -46884,7 +47355,7 @@ }, { "name": "orderCreateFromCheckout", - "description": "Create new order from existing checkout.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: HANDLE_CHECKOUTS.", + "description": "Create new order from existing checkout. Requires the following permissions: AUTHENTICATED_APP and HANDLE_CHECKOUTS.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "args": [ { "name": "id", @@ -50006,6 +50477,16 @@ "name": "Transaction", "ofType": null }, + { + "kind": "OBJECT", + "name": "TransactionEvent", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "TransactionItem", + "ofType": null + }, { "kind": "OBJECT", "name": "User", @@ -50335,6 +50816,11 @@ "name": "ShippingZone", "ofType": null }, + { + "kind": "OBJECT", + "name": "TransactionItem", + "ofType": null + }, { "kind": "OBJECT", "name": "User", @@ -50595,7 +51081,7 @@ }, { "name": "user", - "description": "User who placed the order. This field is set only for orders placed by authenticated users. Requires one of the following permissions: AccountPermissions.MANAGE_USERS, OrderPermissions.MANAGE_ORDERS, AuthorizationFilters.OWNER.", + "description": "User who placed the order. This field is set only for orders placed by authenticated users. Requires one of the following permissions: MANAGE_USERS, MANAGE_ORDERS, OWNER.", "args": [], "type": { "kind": "OBJECT", @@ -50623,7 +51109,7 @@ }, { "name": "billingAddress", - "description": "Billing address. Requires one of the following permissions to view the full data: OrderPermissions.MANAGE_ORDERS, AuthorizationFilters.OWNER.", + "description": "Billing address. Requires one of the following permissions to view the full data: MANAGE_ORDERS, OWNER.", "args": [], "type": { "kind": "OBJECT", @@ -50635,7 +51121,7 @@ }, { "name": "shippingAddress", - "description": "Shipping address. Requires one of the following permissions to view the full data: OrderPermissions.MANAGE_ORDERS, AuthorizationFilters.OWNER.", + "description": "Shipping address. Requires one of the following permissions to view the full data: MANAGE_ORDERS, OWNER.", "args": [], "type": { "kind": "OBJECT", @@ -50827,7 +51313,7 @@ }, { "name": "invoices", - "description": "List of order invoices. Requires one of the following permissions: OrderPermissions.MANAGE_ORDERS, AuthorizationFilters.OWNER.", + "description": "List of order invoices. Requires one of the following permissions: MANAGE_ORDERS, OWNER.", "args": [], "type": { "kind": "NON_NULL", @@ -50941,6 +51427,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "transactions", + "description": "List of transactions for the order. Requires one of the following permissions: MANAGE_ORDERS, HANDLE_PAYMENTS.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TransactionItem", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "payments", "description": "List of payments for the order.", @@ -51275,7 +51785,7 @@ }, { "name": "userEmail", - "description": "Email address of the customer. Requires the following permissions to access the full data: OrderPermissions.MANAGE_ORDERS, AuthorizationFilters.OWNER", + "description": "Email address of the customer. Requires the following permissions to access the full data: MANAGE_ORDERS, OWNER.", "args": [], "type": { "kind": "SCALAR", @@ -52034,7 +52544,7 @@ { "kind": "OBJECT", "name": "OrderCreateFromCheckout", - "description": "Create new order from existing checkout.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: HANDLE_CHECKOUTS.", + "description": "Create new order from existing checkout. Requires the following permissions: AUTHENTICATED_APP and HANDLE_CHECKOUTS.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", "fields": [ { "name": "order", @@ -53129,6 +53639,12 @@ "description": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK", + "description": null, + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null @@ -53192,7 +53708,7 @@ }, { "name": "app", - "description": "App that performed the action. Requires of of the following permissions: AppPermission.MANAGE_APPS, OrderPermissions.MANAGE_ORDERS, AuthorizationFilters.OWNER.", + "description": "App that performed the action. Requires of of the following permissions: MANAGE_APPS, MANAGE_ORDERS, OWNER.", "args": [], "type": { "kind": "OBJECT", @@ -53252,7 +53768,7 @@ }, { "name": "paymentId", - "description": "The payment ID from the payment gateway.", + "description": "The payment reference from the payment provider.", "args": [], "type": { "kind": "SCALAR", @@ -53441,6 +53957,30 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "status", + "description": "The status of payment's transaction.", + "args": [], + "type": { + "kind": "ENUM", + "name": "TransactionStatus", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "reference", + "description": "The reference of payment's transaction.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -53963,6 +54503,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "TRANSACTION_EVENT", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "TRANSACTION_CAPTURE_REQUESTED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "TRANSACTION_REFUND_REQUESTED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "TRANSACTION_VOID_REQUESTED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "INVOICE_REQUESTED", "description": null, @@ -67072,13 +67636,13 @@ }, { "name": "PRICE", - "description": "Sort products by price.", + "description": "Sort products by price.\n\nThis option requires a channel filter to work as the values can vary between channels.", "isDeprecated": false, "deprecationReason": null }, { "name": "MINIMAL_PRICE", - "description": "Sort products by a minimal price of a product's variant.", + "description": "Sort products by a minimal price of a product's variant.\n\nThis option requires a channel filter to work as the values can vary between channels.", "isDeprecated": false, "deprecationReason": null }, @@ -67102,19 +67666,19 @@ }, { "name": "PUBLISHED", - "description": "Sort products by publication status.", + "description": "Sort products by publication status.\n\nThis option requires a channel filter to work as the values can vary between channels.", "isDeprecated": false, "deprecationReason": null }, { "name": "PUBLICATION_DATE", - "description": "Sort products by publication date.", + "description": "Sort products by publication date.\n\nThis option requires a channel filter to work as the values can vary between channels.", "isDeprecated": false, "deprecationReason": null }, { "name": "PUBLISHED_AT", - "description": "Sort products by publication date.", + "description": "Sort products by publication date.\n\nThis option requires a channel filter to work as the values can vary between channels.", "isDeprecated": false, "deprecationReason": null }, @@ -67126,7 +67690,7 @@ }, { "name": "COLLECTION", - "description": "Sort products by collection. Note: This option is available only for the `Collection.products` query.", + "description": "Sort products by collection. Note: This option is available only for the `Collection.products` query.\n\nThis option requires a channel filter to work as the values can vary between channels.", "isDeprecated": false, "deprecationReason": null }, @@ -72084,7 +72648,7 @@ "fields": [ { "name": "webhook", - "description": "Look up a webhook by ID. Requires one of the following permissions: AppPermission.MANAGE_APPS, AuthorizationFilters.OWNER", + "description": "Look up a webhook by ID. Requires one of the following permissions: MANAGE_APPS, OWNER.", "args": [ { "name": "id", @@ -75761,7 +76325,7 @@ }, { "name": "app", - "description": "Look up an app by ID. If ID is not provided, return the currently authenticated app. Requires one of the following permissions: AuthorizationFilters.OWNER, AppPermission.MANAGE_APPS.", + "description": "Look up an app by ID. If ID is not provided, return the currently authenticated app. Requires one of the following permissions: OWNER, MANAGE_APPS.", "args": [ { "name": "id", @@ -78362,7 +78926,7 @@ }, { "name": "VALUE", - "description": "Sort sales by value.", + "description": "Sort sales by value.\n\nThis option requires a channel filter to work as the values can vary between channels.", "isDeprecated": false, "deprecationReason": null }, @@ -86075,6 +86639,961 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "TransactionAction", + "description": null, + "fields": [ + { + "name": "actionType", + "description": "Determines the action type.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "TransactionActionEnum", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "amount", + "description": "Transaction request amount. Null when action type is VOID.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "PositiveDecimal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "TransactionActionEnum", + "description": "Represents possible actions on payment transaction.\n\n The following actions are possible:\n CAPTURE - Represents the capture action.\n REFUND - Represents a refund action.\n VOID - Represents a void action.\n ", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "CAPTURE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "REFUND", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "VOID", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "TransactionActionRequest", + "description": null, + "fields": [ + { + "name": "transaction", + "description": "Look up a transaction.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "TransactionItem", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "action", + "description": "Requested action data.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TransactionAction", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "TransactionCreate", + "description": "Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "transaction", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "TransactionItem", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "errors", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TransactionCreateError", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "TransactionCreateError", + "description": null, + "fields": [ + { + "name": "field", + "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": "The error message.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "code", + "description": "The error code.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "TransactionCreateErrorCode", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "TransactionCreateErrorCode", + "description": "An enumeration.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "INVALID", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "GRAPHQL_ERROR", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NOT_FOUND", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INCORRECT_CURRENCY", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "METADATA_KEY_REQUIRED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "TransactionCreateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "status", + "description": "Status of the transaction.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "type", + "description": "Payment type used for this transaction.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "reference", + "description": "Reference of the transaction.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "availableActions", + "description": "List of all possible actions for the transaction", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "TransactionActionEnum", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "amountAuthorized", + "description": "Amount authorized by this transaction.", + "type": { + "kind": "INPUT_OBJECT", + "name": "MoneyInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "amountCaptured", + "description": "Amount captured by this transaction.", + "type": { + "kind": "INPUT_OBJECT", + "name": "MoneyInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "amountRefunded", + "description": "Amount refunded by this transaction.", + "type": { + "kind": "INPUT_OBJECT", + "name": "MoneyInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "amountVoided", + "description": "Amount voided by this transaction.", + "type": { + "kind": "INPUT_OBJECT", + "name": "MoneyInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "metadata", + "description": "Payment public metadata.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MetadataInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "privateMetadata", + "description": "Payment private metadata.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MetadataInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "TransactionEvent", + "description": "Represents transaction's event.", + "fields": [ + { + "name": "id", + "description": "The ID of the object.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createdAt", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "status", + "description": "Status of transaction's event.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "TransactionStatus", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "reference", + "description": "Reference of transaction's event.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": "Name of the transaction's event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Node", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "TransactionEventInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "status", + "description": "Current status of the payment transaction.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "TransactionStatus", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "reference", + "description": "Reference of the transaction.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": "Name of the transaction.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "TransactionItem", + "description": "Represents a payment transaction.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "id", + "description": "The ID of the object.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "privateMetadata", + "description": "List of private metadata items. Requires staff permissions to access.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MetadataItem", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "privateMetafield", + "description": "A single key from private metadata. Requires staff permissions to access.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [ + { + "name": "key", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "privateMetafields", + "description": "Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [ + { + "name": "keys", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "SCALAR", + "name": "Metadata", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "metadata", + "description": "List of public metadata items. Can be accessed without permissions.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MetadataItem", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "metafield", + "description": "A single key from public metadata.\n\nTip: Use GraphQL aliases to fetch multiple keys.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [ + { + "name": "key", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "metafields", + "description": "Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.\n\nAdded in Saleor 3.3.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [ + { + "name": "keys", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "SCALAR", + "name": "Metadata", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createdAt", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "modifiedAt", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "actions", + "description": "List of actions that can be performed in the current state of a payment.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "TransactionActionEnum", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "authorizedAmount", + "description": "Total amount authorized for this payment.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Money", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "refundedAmount", + "description": "Total amount refunded for this payment.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Money", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "voidedAmount", + "description": "Total amount voided for this payment.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Money", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "capturedAmount", + "description": "Total amount captured for this payment.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Money", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "status", + "description": "Status of transaction.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "type", + "description": "Type of transaction.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "reference", + "description": "Reference of transaction.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "events", + "description": "List of all transaction's events.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TransactionEvent", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Node", + "ofType": null + }, + { + "kind": "INTERFACE", + "name": "ObjectWithMetadata", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "ENUM", "name": "TransactionKind", @@ -86146,6 +87665,462 @@ ], "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "TransactionRequestAction", + "description": "Request an action for payment transaction.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point. \n\nRequires one of the following permissions: HANDLE_PAYMENTS, MANAGE_ORDERS.", + "fields": [ + { + "name": "transaction", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "TransactionItem", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "errors", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TransactionRequestActionError", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "TransactionRequestActionError", + "description": null, + "fields": [ + { + "name": "field", + "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": "The error message.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "code", + "description": "The error code.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "TransactionRequestActionErrorCode", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "TransactionRequestActionErrorCode", + "description": "An enumeration.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "INVALID", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "GRAPHQL_ERROR", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NOT_FOUND", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "TransactionStatus", + "description": "An enumeration.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "PENDING", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "SUCCESS", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "FAILURE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "TransactionUpdate", + "description": "Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "fields": [ + { + "name": "transaction", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "TransactionItem", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "errors", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TransactionUpdateError", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "TransactionUpdateError", + "description": null, + "fields": [ + { + "name": "field", + "description": "Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": "The error message.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "code", + "description": "The error code.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "TransactionUpdateErrorCode", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "TransactionUpdateErrorCode", + "description": "An enumeration.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "INVALID", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "GRAPHQL_ERROR", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NOT_FOUND", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INCORRECT_CURRENCY", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "METADATA_KEY_REQUIRED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "TransactionUpdateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "status", + "description": "Status of the transaction.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "type", + "description": "Payment type used for this transaction.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "reference", + "description": "Reference of the transaction.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "availableActions", + "description": "List of all possible actions for the transaction", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "TransactionActionEnum", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "amountAuthorized", + "description": "Amount authorized by this transaction.", + "type": { + "kind": "INPUT_OBJECT", + "name": "MoneyInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "amountCaptured", + "description": "Amount captured by this transaction.", + "type": { + "kind": "INPUT_OBJECT", + "name": "MoneyInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "amountRefunded", + "description": "Amount refunded by this transaction.", + "type": { + "kind": "INPUT_OBJECT", + "name": "MoneyInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "amountVoided", + "description": "Amount voided by this transaction.", + "type": { + "kind": "INPUT_OBJECT", + "name": "MoneyInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "metadata", + "description": "Payment public metadata.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MetadataInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "privateMetadata", + "description": "Payment private metadata.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MetadataInput", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "UNION", "name": "TranslatableItem", @@ -87330,7 +89305,7 @@ }, { "name": "orders", - "description": "List of user's orders. Requires one of the following permissions: AccountPermissions.MANAGE_STAFF, AuthorizationFilters.OWNER", + "description": "List of user's orders. Requires one of the following permissions: MANAGE_STAFF, OWNER.", "args": [ { "name": "before", @@ -90105,6 +92080,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "VoucherCreated", + "description": null, + "fields": [ + { + "name": "voucher", + "description": "Look up a voucher.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [ + { + "name": "channel", + "description": "Slug of a channel for which the data should be returned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Voucher", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "VoucherDelete", @@ -90176,6 +92187,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "VoucherDeleted", + "description": null, + "fields": [ + { + "name": "voucher", + "description": "Look up a voucher.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [ + { + "name": "channel", + "description": "Slug of a channel for which the data should be returned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Voucher", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "ENUM", "name": "VoucherDiscountType", @@ -90654,7 +92701,7 @@ }, { "name": "VALUE", - "description": "Sort vouchers by value.", + "description": "Sort vouchers by value.\n\nThis option requires a channel filter to work as the values can vary between channels.", "isDeprecated": false, "deprecationReason": null }, @@ -90672,7 +92719,7 @@ }, { "name": "MINIMUM_SPENT_AMOUNT", - "description": "Sort vouchers by minimum spent amount.", + "description": "Sort vouchers by minimum spent amount.\n\nThis option requires a channel filter to work as the values can vary between channels.", "isDeprecated": false, "deprecationReason": null } @@ -91052,6 +93099,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "VoucherUpdated", + "description": null, + "fields": [ + { + "name": "voucher", + "description": "Look up a voucher.\n\nAdded in Saleor 3.4.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [ + { + "name": "channel", + "description": "Slug of a channel for which the data should be returned.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Voucher", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "Warehouse", @@ -93188,6 +95271,42 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "MENU_CREATED", + "description": "A new menu created.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MENU_UPDATED", + "description": "A menu is updated.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MENU_DELETED", + "description": "A menu is deleted.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MENU_ITEM_CREATED", + "description": "A new menu item created.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MENU_ITEM_UPDATED", + "description": "A menu item is updated.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MENU_ITEM_DELETED", + "description": "A menu item is deleted.", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "ORDER_CREATED", "description": "A new order is placed.", @@ -93440,6 +95559,12 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "TRANSACTION_ACTION_REQUEST", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "TRANSLATION_CREATED", "description": null, @@ -93451,6 +95576,24 @@ "description": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "VOUCHER_CREATED", + "description": "A new voucher created.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "VOUCHER_UPDATED", + "description": "A voucher is updated.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "VOUCHER_DELETED", + "description": "A voucher is deleted.", + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null @@ -93535,6 +95678,42 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "MENU_CREATED", + "description": "A new menu created.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MENU_UPDATED", + "description": "A menu is updated.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MENU_DELETED", + "description": "A menu is deleted.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MENU_ITEM_CREATED", + "description": "A new menu item created.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MENU_ITEM_UPDATED", + "description": "A menu item is updated.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MENU_ITEM_DELETED", + "description": "A menu item is deleted.", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "ORDER_CREATED", "description": "A new order is placed.", @@ -93787,6 +95966,12 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "TRANSACTION_ACTION_REQUEST", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "TRANSLATION_CREATED", "description": null, @@ -93799,6 +95984,24 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "VOUCHER_CREATED", + "description": "A new voucher created.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "VOUCHER_UPDATED", + "description": "A voucher is updated.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "VOUCHER_DELETED", + "description": "A voucher is deleted.", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "PAYMENT_AUTHORIZE", "description": null, @@ -94007,6 +96210,42 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "MENU_CREATED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MENU_UPDATED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MENU_DELETED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MENU_ITEM_CREATED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MENU_ITEM_UPDATED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MENU_ITEM_DELETED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "ORDER_CREATED", "description": null, @@ -94259,6 +96498,12 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "TRANSACTION_ACTION_REQUEST", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "TRANSLATION_CREATED", "description": null, @@ -94270,6 +96515,24 @@ "description": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "VOUCHER_CREATED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "VOUCHER_UPDATED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "VOUCHER_DELETED", + "description": null, + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null diff --git a/schema.graphql b/schema.graphql index bd3ff4f8d..4197251e3 100644 --- a/schema.graphql +++ b/schema.graphql @@ -609,6 +609,9 @@ enum AppExtensionMountEnum { NAVIGATION_DISCOUNTS NAVIGATION_TRANSLATIONS NAVIGATION_PAGES + ORDER_DETAILS_MORE_ACTIONS + ORDER_OVERVIEW_CREATE + ORDER_OVERVIEW_MORE_ACTIONS } """ @@ -938,32 +941,32 @@ type Attribute implements Node & ObjectWithMetadata { ): AttributeValueCountableConnection """ - Whether the attribute requires values to be passed or not. Requires one of the following permissions: PagePermissions.MANAGE_PAGES, PageTypePermissions.MANAGE_PAGE_TYPES_AND_ATTRIBUTES, ProductPermissions.MANAGE_PRODUCTS, ProductTypePermissions.MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + Whether the attribute requires values to be passed or not. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ valueRequired: Boolean! """ - Whether the attribute should be visible or not in storefront. Requires one of the following permissions: PagePermissions.MANAGE_PAGES, PageTypePermissions.MANAGE_PAGE_TYPES_AND_ATTRIBUTES, ProductPermissions.MANAGE_PRODUCTS, ProductTypePermissions.MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + Whether the attribute should be visible or not in storefront. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ visibleInStorefront: Boolean! """ - Whether the attribute can be filtered in storefront. Requires one of the following permissions: PagePermissions.MANAGE_PAGES, PageTypePermissions.MANAGE_PAGE_TYPES_AND_ATTRIBUTES, ProductPermissions.MANAGE_PRODUCTS, ProductTypePermissions.MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + Whether the attribute can be filtered in storefront. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ filterableInStorefront: Boolean! """ - Whether the attribute can be filtered in dashboard. Requires one of the following permissions: PagePermissions.MANAGE_PAGES, PageTypePermissions.MANAGE_PAGE_TYPES_AND_ATTRIBUTES, ProductPermissions.MANAGE_PRODUCTS, ProductTypePermissions.MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + Whether the attribute can be filtered in dashboard. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ filterableInDashboard: Boolean! """ - Whether the attribute can be displayed in the admin product list. Requires one of the following permissions: PagePermissions.MANAGE_PAGES, PageTypePermissions.MANAGE_PAGE_TYPES_AND_ATTRIBUTES, ProductPermissions.MANAGE_PRODUCTS, ProductTypePermissions.MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + Whether the attribute can be displayed in the admin product list. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ availableInGrid: Boolean! """ - The position of the attribute in the storefront navigation (0 by default). Requires one of the following permissions: PagePermissions.MANAGE_PAGES, PageTypePermissions.MANAGE_PAGE_TYPES_AND_ATTRIBUTES, ProductPermissions.MANAGE_PRODUCTS, ProductTypePermissions.MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + The position of the attribute in the storefront navigation (0 by default). Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. """ storefrontSearchPosition: Int! @@ -2313,6 +2316,15 @@ type Checkout implements Node & ObjectWithMetadata { """Checkout language code.""" languageCode: LanguageCodeEnum! + + """ + List of transactions for the checkout. Requires one of the following permissions: MANAGE_CHECKOUTS, HANDLE_PAYMENTS. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + transactions: [TransactionItem!] } """Adds a gift card or a voucher to a checkout.""" @@ -3082,7 +3094,11 @@ enum CollectionSortField { """Sort collections by name.""" NAME - """Sort collections by availability.""" + """ + Sort collections by availability. + + This option requires a channel filter to work as the values can vary between channels. + """ AVAILABILITY """Sort collections by product count.""" @@ -3091,14 +3107,14 @@ enum CollectionSortField { """ Sort collections by publication date. - DEPRECATED: this field will be removed in Saleor 4.0. + This option requires a channel filter to work as the values can vary between channels. """ PUBLICATION_DATE """ Sort collections by publication date. - DEPRECATED: this field will be removed in Saleor 4.0. + This option requires a channel filter to work as the values can vary between channels. """ PUBLISHED_AT } @@ -4184,7 +4200,7 @@ type DraftOrderUpdated { order: Order } -union Event = CategoryCreated | CategoryUpdated | CategoryDeleted | ChannelCreated | ChannelUpdated | ChannelDeleted | ChannelStatusChanged | GiftCardCreated | GiftCardUpdated | GiftCardDeleted | GiftCardStatusChanged | 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 | ShippingPriceCreated | ShippingPriceUpdated | ShippingPriceDeleted | ShippingZoneCreated | ShippingZoneUpdated | ShippingZoneDeleted | TranslationCreated | TranslationUpdated +union Event = CategoryCreated | CategoryUpdated | CategoryDeleted | ChannelCreated | ChannelUpdated | ChannelDeleted | ChannelStatusChanged | GiftCardCreated | GiftCardUpdated | GiftCardDeleted | GiftCardStatusChanged | MenuCreated | MenuUpdated | MenuDeleted | MenuItemCreated | MenuItemUpdated | MenuItemDeleted | 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 | ShippingPriceCreated | ShippingPriceUpdated | ShippingPriceDeleted | ShippingZoneCreated | ShippingZoneUpdated | ShippingZoneDeleted | TransactionActionRequest | TranslationCreated | TranslationUpdated | VoucherCreated | VoucherUpdated | VoucherDeleted """Event delivery.""" type EventDelivery implements Node { @@ -4363,12 +4379,12 @@ type ExportEvent implements Node { type: ExportEventsEnum! """ - User who performed the action. Requires one of the following permissions: AuthorizationFilters.OWNER, AccountPermissions.MANAGE_STAFF. + User who performed the action. Requires one of the following permissions: OWNER, MANAGE_STAFF. """ user: User """ - App which performed the action. Requires one of the following permissions: AuthorizationFilters.OWNER, AppPermission.MANAGE_APPS. + App which performed the action. Requires one of the following permissions: OWNER, MANAGE_APPS. """ app: App @@ -4959,7 +4975,7 @@ type GiftCard implements Node & ObjectWithMetadata { last4CodeChars: String! """ - Gift card code. Can be fetched by a staff member with GiftcardPermissions.MANAGE_GIFT_CARD when gift card wasn't yet used and by the gift card owner. + Gift card code. Can be fetched by a staff member with MANAGE_GIFT_CARD when gift card wasn't yet used and by the gift card owner. """ code: String! created: DateTime! @@ -4989,7 +5005,7 @@ type GiftCard implements Node & ObjectWithMetadata { Note: this API is currently in Feature Preview and can be subject to changes at later point. - Requires one of the following permissions: AccountPermissions.MANAGE_USERS, AuthorizationFilters.OWNER. + Requires one of the following permissions: MANAGE_USERS, OWNER. """ createdByEmail: String @@ -5011,7 +5027,7 @@ type GiftCard implements Node & ObjectWithMetadata { Note: this API is currently in Feature Preview and can be subject to changes at later point. - Requires one of the following permissions: AppPermission.MANAGE_APPS, AuthorizationFilters.OWNER. + Requires one of the following permissions: MANAGE_APPS, OWNER. """ app: App @@ -5382,12 +5398,12 @@ type GiftCardEvent implements Node { type: GiftCardEventsEnum """ - User who performed the action. Requires one of the following permissions: AccountPermissions.MANAGE_USERS, AccountPermissions.MANAGE_STAFF, AuthorizationFilters.OWNER. + User who performed the action. Requires one of the following permissions: MANAGE_USERS, MANAGE_STAFF, OWNER. """ user: User """ - App that performed the action. Requires one of the following permissions: AppPermission.MANAGE_APPS, AuthorizationFilters.OWNER. + App that performed the action. Requires one of the following permissions: MANAGE_APPS, OWNER. """ app: App @@ -6930,6 +6946,20 @@ input MenuCreateInput { items: [MenuItemInput!] } +type MenuCreated { + """ + Look up a menu. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + menu( + """Slug of a channel for which the data should be returned.""" + channel: String + ): Menu +} + """ Deletes a menu. @@ -6941,6 +6971,20 @@ type MenuDelete { menu: Menu } +type MenuDeleted { + """ + Look up a menu. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + menu( + """Slug of a channel for which the data should be returned.""" + channel: String + ): Menu +} + type MenuError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. @@ -7043,7 +7087,7 @@ type MenuItem implements Node & ObjectWithMetadata { collection: Collection """ - A page associated with this menu item. Requires one of the following permissions to include unpublished items: PagePermissions.MANAGE_PAGES. + A page associated with this menu item. Requires one of the following permissions to include unpublished items: MANAGE_PAGES. """ page: Page level: Int! @@ -7122,6 +7166,20 @@ input MenuItemCreateInput { parent: ID } +type MenuItemCreated { + """ + Look up a menu item. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + menuItem( + """Slug of a channel for which the data should be returned.""" + channel: String + ): MenuItem +} + """ Deletes a menu item. @@ -7133,6 +7191,20 @@ type MenuItemDelete { menuItem: MenuItem } +type MenuItemDeleted { + """ + Look up a menu item. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + menuItem( + """Slug of a channel for which the data should be returned.""" + channel: String + ): MenuItem +} + input MenuItemFilterInput { search: String metadata: [MetadataFilter!] @@ -7234,6 +7306,20 @@ type MenuItemUpdate { menuItem: MenuItem } +type MenuItemUpdated { + """ + Look up a menu item. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + menuItem( + """Slug of a channel for which the data should be returned.""" + channel: String + ): MenuItem +} + enum MenuItemsSortField { """Sort menu items by name.""" NAME @@ -7266,6 +7352,20 @@ type MenuUpdate { menu: Menu } +type MenuUpdated { + """ + Look up a menu. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + menu( + """Slug of a channel for which the data should be returned.""" + channel: String + ): Menu +} + """ Metadata is a map of key-value pairs, both keys and values are `String`. @@ -8423,6 +8523,64 @@ type Mutation { input: PaymentCheckBalanceInput! ): PaymentCheckBalance + """ + Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + transactionCreate( + """The ID of the checkout or order.""" + id: ID! + + """Input data required to create a new transaction object.""" + transaction: TransactionCreateInput! + + """Data that defines a transaction event.""" + transactionEvent: TransactionEventInput + ): TransactionCreate + + """ + Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + transactionUpdate( + """The ID of the transaction.""" + id: ID! + + """Input data required to create a new transaction object.""" + transaction: TransactionUpdateInput + + """Data that defines a transaction transaction.""" + transactionEvent: TransactionEventInput + ): TransactionUpdate + + """ + Request an action for payment transaction. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + + Requires one of the following permissions: HANDLE_PAYMENTS, MANAGE_ORDERS. + """ + transactionRequestAction( + """Determines the action type.""" + actionType: TransactionActionEnum! + + """ + Transaction request amount. If empty for refund or capture, maximal possible amount will be used. + """ + amount: PositiveDecimal + + """The ID of the transaction.""" + id: ID! + ): TransactionRequestAction + """ Creates a new page. @@ -9882,13 +10040,11 @@ type Mutation { ): CheckoutLanguageCodeUpdate """ - Create new order from existing checkout. + Create new order from existing checkout. Requires the following permissions: AUTHENTICATED_APP and HANDLE_CHECKOUTS. Added in Saleor 3.2. - Note: this API is currently in Feature Preview and can be subject to changes at later point. - - Requires one of the following permissions: HANDLE_CHECKOUTS. + Note: this API is currently in Feature Preview and can be subject to changes at later point. """ orderCreateFromCheckout( """ID of a checkout that will be converted to an order.""" @@ -10781,18 +10937,18 @@ type Order implements Node & ObjectWithMetadata { status: OrderStatus! """ - User who placed the order. This field is set only for orders placed by authenticated users. Requires one of the following permissions: AccountPermissions.MANAGE_USERS, OrderPermissions.MANAGE_ORDERS, AuthorizationFilters.OWNER. + User who placed the order. This field is set only for orders placed by authenticated users. Requires one of the following permissions: MANAGE_USERS, MANAGE_ORDERS, OWNER. """ user: User trackingClientId: String! """ - Billing address. Requires one of the following permissions to view the full data: OrderPermissions.MANAGE_ORDERS, AuthorizationFilters.OWNER. + Billing address. Requires one of the following permissions to view the full data: MANAGE_ORDERS, OWNER. """ billingAddress: Address """ - Shipping address. Requires one of the following permissions to view the full data: OrderPermissions.MANAGE_ORDERS, AuthorizationFilters.OWNER. + Shipping address. Requires one of the following permissions to view the full data: MANAGE_ORDERS, OWNER. """ shippingAddress: Address shippingMethodName: String @@ -10826,7 +10982,7 @@ type Order implements Node & ObjectWithMetadata { availableCollectionPoints: [Warehouse!]! """ - List of order invoices. Requires one of the following permissions: OrderPermissions.MANAGE_ORDERS, AuthorizationFilters.OWNER. + List of order invoices. Requires one of the following permissions: MANAGE_ORDERS, OWNER. """ invoices: [Invoice!]! @@ -10848,6 +11004,15 @@ type Order implements Node & ObjectWithMetadata { """User-friendly payment status.""" paymentStatusDisplay: String! + """ + List of transactions for the order. Requires one of the following permissions: MANAGE_ORDERS, HANDLE_PAYMENTS. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + transactions: [TransactionItem!]! + """List of payments for the order.""" payments: [Payment!]! @@ -10901,7 +11066,7 @@ type Order implements Node & ObjectWithMetadata { totalBalance: Money! """ - Email address of the customer. Requires the following permissions to access the full data: OrderPermissions.MANAGE_ORDERS, AuthorizationFilters.OWNER + Email address of the customer. Requires the following permissions to access the full data: MANAGE_ORDERS, OWNER. """ userEmail: String @@ -11058,13 +11223,11 @@ type OrderCountableEdge { } """ -Create new order from existing checkout. +Create new order from existing checkout. Requires the following permissions: AUTHENTICATED_APP and HANDLE_CHECKOUTS. Added in Saleor 3.2. -Note: this API is currently in Feature Preview and can be subject to changes at later point. - -Requires one of the following permissions: HANDLE_CHECKOUTS. +Note: this API is currently in Feature Preview and can be subject to changes at later point. """ type OrderCreateFromCheckout { """Placed order.""" @@ -11271,6 +11434,7 @@ enum OrderErrorCode { DUPLICATED_INPUT_ITEM NOT_AVAILABLE_IN_CHANNEL CHANNEL_INACTIVE + MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK } """History log of the order.""" @@ -11287,7 +11451,7 @@ type OrderEvent implements Node { user: User """ - App that performed the action. Requires of of the following permissions: AppPermission.MANAGE_APPS, OrderPermissions.MANAGE_ORDERS, AuthorizationFilters.OWNER. + App that performed the action. Requires of of the following permissions: MANAGE_APPS, MANAGE_ORDERS, OWNER. """ app: App @@ -11303,7 +11467,7 @@ type OrderEvent implements Node { """Amount of money.""" amount: Float - """The payment ID from the payment gateway.""" + """The payment reference from the payment provider.""" paymentId: String """The payment gateway of the payment.""" @@ -11344,6 +11508,12 @@ type OrderEvent implements Node { """The discount applied to the order.""" discount: OrderEventDiscountObject + + """The status of payment's transaction.""" + status: TransactionStatus + + """The reference of payment's transaction.""" + reference: String } type OrderEventCountableConnection { @@ -11443,6 +11613,10 @@ enum OrderEventsEnum { PAYMENT_REFUNDED PAYMENT_VOIDED PAYMENT_FAILED + TRANSACTION_EVENT + TRANSACTION_CAPTURE_REQUESTED + TRANSACTION_REFUND_REQUESTED + TRANSACTION_VOID_REQUESTED INVOICE_REQUESTED INVOICE_GENERATED INVOICE_UPDATED @@ -14059,10 +14233,18 @@ enum ProductOrderField { """ RANK - """Sort products by price.""" + """ + Sort products by price. + + This option requires a channel filter to work as the values can vary between channels. + """ PRICE - """Sort products by a minimal price of a product's variant.""" + """ + Sort products by a minimal price of a product's variant. + + This option requires a channel filter to work as the values can vary between channels. + """ MINIMAL_PRICE """Sort products by update date.""" @@ -14074,13 +14256,25 @@ enum ProductOrderField { """Sort products by type.""" TYPE - """Sort products by publication status.""" + """ + Sort products by publication status. + + This option requires a channel filter to work as the values can vary between channels. + """ PUBLISHED - """Sort products by publication date.""" + """ + Sort products by publication date. + + This option requires a channel filter to work as the values can vary between channels. + """ PUBLICATION_DATE - """Sort products by publication date.""" + """ + Sort products by publication date. + + This option requires a channel filter to work as the values can vary between channels. + """ PUBLISHED_AT """Sort products by update date.""" @@ -14088,6 +14282,8 @@ enum ProductOrderField { """ Sort products by collection. Note: This option is available only for the `Collection.products` query. + + This option requires a channel filter to work as the values can vary between channels. """ COLLECTION @@ -15165,7 +15361,7 @@ input PublishableChannelListingInput { type Query { """ - Look up a webhook by ID. Requires one of the following permissions: AppPermission.MANAGE_APPS, AuthorizationFilters.OWNER + Look up a webhook by ID. Requires one of the following permissions: MANAGE_APPS, OWNER. """ webhook( """ID of the webhook.""" @@ -16236,7 +16432,7 @@ type Query { ): AppCountableConnection """ - Look up an app by ID. If ID is not provided, return the currently authenticated app. Requires one of the following permissions: AuthorizationFilters.OWNER, AppPermission.MANAGE_APPS. + Look up an app by ID. If ID is not provided, return the currently authenticated app. Requires one of the following permissions: OWNER, MANAGE_APPS. """ app( """ID of the app.""" @@ -16800,7 +16996,11 @@ enum SaleSortField { """Sort sales by end date.""" END_DATE - """Sort sales by value.""" + """ + Sort sales by value. + + This option requires a channel filter to work as the values can vary between channels. + """ VALUE """Sort sales by type.""" @@ -18488,6 +18688,231 @@ type Transaction implements Node { amount: Money } +type TransactionAction { + """Determines the action type.""" + actionType: TransactionActionEnum! + + """Transaction request amount. Null when action type is VOID.""" + amount: PositiveDecimal +} + +""" +Represents possible actions on payment transaction. + + The following actions are possible: + CAPTURE - Represents the capture action. + REFUND - Represents a refund action. + VOID - Represents a void action. + +""" +enum TransactionActionEnum { + CAPTURE + REFUND + VOID +} + +type TransactionActionRequest { + """ + Look up a transaction. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + transaction: TransactionItem + + """ + Requested action data. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + action: TransactionAction! +} + +""" +Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type TransactionCreate { + transaction: TransactionItem + errors: [TransactionCreateError!]! +} + +type TransactionCreateError { + """ + Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. + """ + field: String + + """The error message.""" + message: String + + """The error code.""" + code: TransactionCreateErrorCode! +} + +"""An enumeration.""" +enum TransactionCreateErrorCode { + INVALID + GRAPHQL_ERROR + NOT_FOUND + INCORRECT_CURRENCY + METADATA_KEY_REQUIRED +} + +input TransactionCreateInput { + """Status of the transaction.""" + status: String! + + """Payment type used for this transaction.""" + type: String! + + """Reference of the transaction.""" + reference: String + + """List of all possible actions for the transaction""" + availableActions: [TransactionActionEnum!] + + """Amount authorized by this transaction.""" + amountAuthorized: MoneyInput + + """Amount captured by this transaction.""" + amountCaptured: MoneyInput + + """Amount refunded by this transaction.""" + amountRefunded: MoneyInput + + """Amount voided by this transaction.""" + amountVoided: MoneyInput + + """Payment public metadata.""" + metadata: [MetadataInput!] + + """Payment private metadata.""" + privateMetadata: [MetadataInput!] +} + +"""Represents transaction's event.""" +type TransactionEvent implements Node { + """The ID of the object.""" + id: ID! + createdAt: DateTime! + + """Status of transaction's event.""" + status: TransactionStatus! + + """Reference of transaction's event.""" + reference: String! + + """Name of the transaction's event.""" + name: String +} + +input TransactionEventInput { + """Current status of the payment transaction.""" + status: TransactionStatus! + + """Reference of the transaction.""" + reference: String + + """Name of the transaction.""" + name: String +} + +""" +Represents a payment transaction. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type TransactionItem implements Node & ObjectWithMetadata { + """The ID of the object.""" + id: ID! + + """List of private metadata items. Requires staff permissions to access.""" + privateMetadata: [MetadataItem!]! + + """ + A single key from private metadata. Requires staff permissions to access. + + Tip: Use GraphQL aliases to fetch multiple keys. + + Added in Saleor 3.3. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + privateMetafield(key: String!): String + + """ + Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + + Added in Saleor 3.3. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + privateMetafields(keys: [String!]): Metadata + + """List of public metadata items. Can be accessed without permissions.""" + metadata: [MetadataItem!]! + + """ + A single key from public metadata. + + Tip: Use GraphQL aliases to fetch multiple keys. + + Added in Saleor 3.3. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + metafield(key: String!): String + + """ + Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + + Added in Saleor 3.3. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + metafields(keys: [String!]): Metadata + createdAt: DateTime! + modifiedAt: DateTime! + + """ + List of actions that can be performed in the current state of a payment. + """ + actions: [TransactionActionEnum!]! + + """Total amount authorized for this payment.""" + authorizedAmount: Money! + + """Total amount refunded for this payment.""" + refundedAmount: Money! + + """Total amount voided for this payment.""" + voidedAmount: Money! + + """Total amount captured for this payment.""" + capturedAmount: Money! + + """Status of transaction.""" + status: String! + + """Type of transaction.""" + type: String! + + """Reference of transaction.""" + reference: String! + + """List of all transaction's events.""" + events: [TransactionEvent!]! +} + """An enumeration.""" enum TransactionKind { EXTERNAL @@ -18502,6 +18927,114 @@ enum TransactionKind { CANCEL } +""" +Request an action for payment transaction. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. + +Requires one of the following permissions: HANDLE_PAYMENTS, MANAGE_ORDERS. +""" +type TransactionRequestAction { + transaction: TransactionItem + errors: [TransactionRequestActionError!]! +} + +type TransactionRequestActionError { + """ + Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. + """ + field: String + + """The error message.""" + message: String + + """The error code.""" + code: TransactionRequestActionErrorCode! +} + +"""An enumeration.""" +enum TransactionRequestActionErrorCode { + INVALID + GRAPHQL_ERROR + NOT_FOUND + MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK +} + +"""An enumeration.""" +enum TransactionStatus { + PENDING + SUCCESS + FAILURE +} + +""" +Create transaction for checkout or order. Requires the following permissions: AUTHENTICATED_APP and HANDLE_PAYMENTS. + +Added in Saleor 3.4. + +Note: this API is currently in Feature Preview and can be subject to changes at later point. +""" +type TransactionUpdate { + transaction: TransactionItem + errors: [TransactionUpdateError!]! +} + +type TransactionUpdateError { + """ + Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. + """ + field: String + + """The error message.""" + message: String + + """The error code.""" + code: TransactionUpdateErrorCode! +} + +"""An enumeration.""" +enum TransactionUpdateErrorCode { + INVALID + GRAPHQL_ERROR + NOT_FOUND + INCORRECT_CURRENCY + METADATA_KEY_REQUIRED +} + +input TransactionUpdateInput { + """Status of the transaction.""" + status: String + + """Payment type used for this transaction.""" + type: String + + """Reference of the transaction.""" + reference: String + + """List of all possible actions for the transaction""" + availableActions: [TransactionActionEnum!] + + """Amount authorized by this transaction.""" + amountAuthorized: MoneyInput + + """Amount captured by this transaction.""" + amountCaptured: MoneyInput + + """Amount refunded by this transaction.""" + amountRefunded: MoneyInput + + """Amount voided by this transaction.""" + amountVoided: MoneyInput + + """Payment public metadata.""" + metadata: [MetadataInput!] + + """Payment private metadata.""" + privateMetadata: [MetadataInput!] +} + union TranslatableItem = ProductTranslatableContent | CollectionTranslatableContent | CategoryTranslatableContent | AttributeTranslatableContent | AttributeValueTranslatableContent | ProductVariantTranslatableContent | PageTranslatableContent | ShippingMethodTranslatableContent | SaleTranslatableContent | VoucherTranslatableContent | MenuItemTranslatableContent type TranslatableItemConnection { @@ -18728,7 +19261,7 @@ type User implements Node & ObjectWithMetadata { note: String """ - List of user's orders. Requires one of the following permissions: AccountPermissions.MANAGE_STAFF, AuthorizationFilters.OWNER + List of user's orders. Requires one of the following permissions: MANAGE_STAFF, OWNER. """ orders( """Return the elements in the list that come before the specified cursor.""" @@ -19264,6 +19797,20 @@ type VoucherCreate { voucher: Voucher } +type VoucherCreated { + """ + Look up a voucher. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + voucher( + """Slug of a channel for which the data should be returned.""" + channel: String + ): Voucher +} + """ Deletes a voucher. @@ -19275,6 +19822,20 @@ type VoucherDelete { voucher: Voucher } +type VoucherDeleted { + """ + Look up a voucher. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + voucher( + """Slug of a channel for which the data should be returned.""" + channel: String + ): Voucher +} + enum VoucherDiscountType { FIXED PERCENTAGE @@ -19366,7 +19927,11 @@ enum VoucherSortField { """Sort vouchers by end date.""" END_DATE - """Sort vouchers by value.""" + """ + Sort vouchers by value. + + This option requires a channel filter to work as the values can vary between channels. + """ VALUE """Sort vouchers by type.""" @@ -19375,7 +19940,11 @@ enum VoucherSortField { """Sort vouchers by usage limit.""" USAGE_LIMIT - """Sort vouchers by minimum spent amount.""" + """ + Sort vouchers by minimum spent amount. + + This option requires a channel filter to work as the values can vary between channels. + """ MINIMUM_SPENT_AMOUNT } @@ -19448,6 +20017,20 @@ type VoucherUpdate { voucher: Voucher } +type VoucherUpdated { + """ + Look up a voucher. + + Added in Saleor 3.4. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + voucher( + """Slug of a channel for which the data should be returned.""" + channel: String + ): Voucher +} + """Represents warehouse.""" type Warehouse implements Node & ObjectWithMetadata { id: ID! @@ -19897,6 +20480,24 @@ enum WebhookEventTypeAsyncEnum { """A gift card status is changed.""" GIFT_CARD_STATUS_CHANGED + """A new menu created.""" + MENU_CREATED + + """A menu is updated.""" + MENU_UPDATED + + """A menu is deleted.""" + MENU_DELETED + + """A new menu item created.""" + MENU_ITEM_CREATED + + """A menu item is updated.""" + MENU_ITEM_UPDATED + + """A menu item is deleted.""" + MENU_ITEM_DELETED + """A new order is placed.""" ORDER_CREATED @@ -20012,8 +20613,18 @@ enum WebhookEventTypeAsyncEnum { """A shipping zone is deleted.""" SHIPPING_ZONE_DELETED + TRANSACTION_ACTION_REQUEST TRANSLATION_CREATED TRANSLATION_UPDATED + + """A new voucher created.""" + VOUCHER_CREATED + + """A voucher is updated.""" + VOUCHER_UPDATED + + """A voucher is deleted.""" + VOUCHER_DELETED } """Enum determining type of webhook.""" @@ -20054,6 +20665,24 @@ enum WebhookEventTypeEnum { """A gift card status is changed.""" GIFT_CARD_STATUS_CHANGED + """A new menu created.""" + MENU_CREATED + + """A menu is updated.""" + MENU_UPDATED + + """A menu is deleted.""" + MENU_DELETED + + """A new menu item created.""" + MENU_ITEM_CREATED + + """A menu item is updated.""" + MENU_ITEM_UPDATED + + """A menu item is deleted.""" + MENU_ITEM_DELETED + """A new order is placed.""" ORDER_CREATED @@ -20169,8 +20798,18 @@ enum WebhookEventTypeEnum { """A shipping zone is deleted.""" SHIPPING_ZONE_DELETED + TRANSACTION_ACTION_REQUEST TRANSLATION_CREATED TRANSLATION_UPDATED + + """A new voucher created.""" + VOUCHER_CREATED + + """A voucher is updated.""" + VOUCHER_UPDATED + + """A voucher is deleted.""" + VOUCHER_DELETED PAYMENT_AUTHORIZE PAYMENT_CAPTURE PAYMENT_CONFIRM @@ -20210,6 +20849,12 @@ enum WebhookSampleEventTypeEnum { GIFT_CARD_UPDATED GIFT_CARD_DELETED GIFT_CARD_STATUS_CHANGED + MENU_CREATED + MENU_UPDATED + MENU_DELETED + MENU_ITEM_CREATED + MENU_ITEM_UPDATED + MENU_ITEM_DELETED ORDER_CREATED ORDER_CONFIRMED ORDER_FULLY_PAID @@ -20252,8 +20897,12 @@ enum WebhookSampleEventTypeEnum { SHIPPING_ZONE_CREATED SHIPPING_ZONE_UPDATED SHIPPING_ZONE_DELETED + TRANSACTION_ACTION_REQUEST TRANSLATION_CREATED TRANSLATION_UPDATED + VOUCHER_CREATED + VOUCHER_UPDATED + VOUCHER_DELETED } """ diff --git a/src/apps/useExtensions.ts b/src/apps/useExtensions.ts index 4113c8797..60adb3f91 100644 --- a/src/apps/useExtensions.ts +++ b/src/apps/useExtensions.ts @@ -25,6 +25,11 @@ export const extensionMountPoints = { AppExtensionMountEnum.PRODUCT_OVERVIEW_CREATE, AppExtensionMountEnum.PRODUCT_OVERVIEW_MORE_ACTIONS ], + ORDER_LIST: [ + AppExtensionMountEnum.ORDER_OVERVIEW_CREATE, + AppExtensionMountEnum.ORDER_OVERVIEW_MORE_ACTIONS + ], + ORDER_DETAILS: [AppExtensionMountEnum.ORDER_DETAILS_MORE_ACTIONS], PRODUCT_DETAILS: [AppExtensionMountEnum.PRODUCT_DETAILS_MORE_ACTIONS], NAVIGATION_SIDEBAR: [ AppExtensionMountEnum.NAVIGATION_CATALOG, diff --git a/src/components/ButtonWithSelect/ButtonWithSelect.tsx b/src/components/ButtonWithSelect/ButtonWithSelect.tsx index 553f595d9..2aa33dd40 100644 --- a/src/components/ButtonWithSelect/ButtonWithSelect.tsx +++ b/src/components/ButtonWithSelect/ButtonWithSelect.tsx @@ -1,6 +1,7 @@ import { ButtonGroup, ButtonGroupProps, + ButtonProps, ClickAwayListener, Grow, MenuItem, @@ -21,15 +22,17 @@ interface Option { } export interface ButtonWithSelectProps - extends Omit { + extends Omit, + Pick { options: Option[]; - href: string; + href?: string; } export const ButtonWithSelect: React.FC = ({ options, children, href, + onClick, ...props }) => { const [open, setOpen] = React.useState(false); @@ -61,20 +64,20 @@ export const ButtonWithSelect: React.FC = ({ return ( <> - - {options.length > 0 && (