Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Do not use sortOrder field
dominik-zeglen8b6c2e96381f
diff --git a/saleor/static/dashboard-next/attributes/components/AttributeValues/AttributeValues.tsx b/saleor/static/dashboard-next/attributes/components/AttributeValues/AttributeValues.tsxindex e0a36630c3..4d6f3c4441 100644--- a/saleor/static/dashboard-next/attributes/components/AttributeValues/AttributeValues.tsx+++ b/saleor/static/dashboard-next/attributes/components/AttributeValues/AttributeValues.tsx@@ -89,9 +89,7 @@ const AttributeValues: React.FC<AttributeValuesProps> = ({</TableHead><SortableTableBody onSortEnd={onValueReorder}>{renderCollection(- values- ? values.sort((a, b) => (a.sortOrder > b.sortOrder ? 1 : -1))- : undefined,+ values,(value, valueIndex) => (<SortableTableRowclassName={!!value ? classes.link : undefined}diff --git a/saleor/static/dashboard-next/attributes/queries.ts b/saleor/static/dashboard-next/attributes/queries.tsindex 59112adc5d..e18d7c8c03 100644--- a/saleor/static/dashboard-next/attributes/queries.ts+++ b/saleor/static/dashboard-next/attributes/queries.ts@@ -29,7 +29,6 @@ export const attributeDetailsFragment = gql`idnameslug- sortOrdertypevalue}diff --git a/saleor/static/dashboard-next/attributes/types/AttributeCreate.ts b/saleor/static/dashboard-next/attributes/types/AttributeCreate.tsindex 70262200a1..60d9f59118 100644--- a/saleor/static/dashboard-next/attributes/types/AttributeCreate.ts+++ b/saleor/static/dashboard-next/attributes/types/AttributeCreate.ts@@ -19,7 +19,6 @@ export interface AttributeCreate_attributeCreate_attribute_values {id: string;name: string | null;slug: string | null;- sortOrder: number;type: AttributeValueType | null;value: string | null;}diff --git a/saleor/static/dashboard-next/attributes/types/AttributeDetails.ts b/saleor/static/dashboard-next/attributes/types/AttributeDetails.tsindex 8cb88f5f0a..71a0589030 100644--- a/saleor/static/dashboard-next/attributes/types/AttributeDetails.ts+++ b/saleor/static/dashboard-next/attributes/types/AttributeDetails.ts@@ -13,7 +13,6 @@ export interface AttributeDetails_attribute_values {id: string;name: string | null;slug: string | null;- sortOrder: number;type: AttributeValueType | null;value: string | null;}diff --git a/saleor/static/dashboard-next/attributes/types/AttributeDetailsFragment.ts b/saleor/static/dashboard-next/attributes/types/AttributeDetailsFragment.tsindex 2e6c0136d3..0753781388 100644--- a/saleor/static/dashboard-next/attributes/types/AttributeDetailsFragment.ts+++ b/saleor/static/dashboard-next/attributes/types/AttributeDetailsFragment.ts@@ -13,7 +13,6 @@ export interface AttributeDetailsFragment_values {id: string;name: string | null;slug: string | null;- sortOrder: number;type: AttributeValueType | null;value: string | null;}diff --git a/saleor/static/dashboard-next/attributes/types/AttributeUpdate.ts b/saleor/static/dashboard-next/attributes/types/AttributeUpdate.tsindex 422210ed94..c29df9e172 100644--- a/saleor/static/dashboard-next/attributes/types/AttributeUpdate.ts+++ b/saleor/static/dashboard-next/attributes/types/AttributeUpdate.ts@@ -19,7 +19,6 @@ export interface AttributeUpdate_attributeUpdate_attribute_values {id: string;name: string | null;slug: string | null;- sortOrder: number;type: AttributeValueType | null;value: string | null;}diff --git a/saleor/static/dashboard-next/attributes/types/AttributeValueCreate.ts b/saleor/static/dashboard-next/attributes/types/AttributeValueCreate.tsindex a20a5d7468..cf466d924f 100644--- a/saleor/static/dashboard-next/attributes/types/AttributeValueCreate.ts+++ b/saleor/static/dashboard-next/attributes/types/AttributeValueCreate.ts@@ -19,7 +19,6 @@ export interface AttributeValueCreate_attributeValueCreate_attribute_values {id: string;name: string | null;slug: string | null;- sortOrder: number;type: AttributeValueType | null;value: string | null;}diff --git a/saleor/static/dashboard-next/attributes/types/AttributeValueDelete.ts b/saleor/static/dashboard-next/attributes/types/AttributeValueDelete.tsindex 12e5e1e986..8136af7034 100644--- a/saleor/static/dashboard-next/attributes/types/AttributeValueDelete.ts+++ b/saleor/static/dashboard-next/attributes/types/AttributeValueDelete.ts@@ -19,7 +19,6 @@ export interface AttributeValueDelete_attributeValueDelete_attribute_values {id: string;name: string | null;slug: string | null;- sortOrder: number;type: AttributeValueType | null;value: string | null;}diff --git a/saleor/static/dashboard-next/attributes/types/AttributeValueUpdate.ts b/saleor/static/dashboard-next/attributes/types/AttributeValueUpdate.tsindex 545e46f402..65745ccde3 100644--- a/saleor/static/dashboard-next/attributes/types/AttributeValueUpdate.ts+++ b/saleor/static/dashboard-next/attributes/types/AttributeValueUpdate.ts@@ -19,7 +19,6 @@ export interface AttributeValueUpdate_attributeValueUpdate_attribute_values {id: string;name: string | null;slug: string | null;- sortOrder: number;type: AttributeValueType | null;value: string | null;}diff --git a/saleor/static/dashboard-next/home/components/HomeProductListCard/HomeProductListCard.tsx b/saleor/static/dashboard-next/home/components/HomeProductListCard/HomeProductListCard.tsxindex 3cd4bdd6a4..a7aaa297b5 100644--- a/saleor/static/dashboard-next/home/components/HomeProductListCard/HomeProductListCard.tsx+++ b/saleor/static/dashboard-next/home/components/HomeProductListCard/HomeProductListCard.tsx@@ -81,11 +81,7 @@ export const HomeProductList = withStyles(styles, { name: "HomeProductList" })(<Typography color={"textSecondary"}>{maybe(() =>variant.attributes- .map(attribute => attribute.value)- .sort((a, b) =>- a.sortOrder > b.sortOrder ? 1 : -1- )- .map(attribute => attribute.name)+ .map(attribute => attribute.value.name).join(" / "))}</Typography>diff --git a/saleor/static/dashboard-next/home/queries.ts b/saleor/static/dashboard-next/home/queries.tsindex 8e5011fdf8..46aee8590c 100644--- a/saleor/static/dashboard-next/home/queries.ts+++ b/saleor/static/dashboard-next/home/queries.ts@@ -37,7 +37,6 @@ const home = gql`value {idname- sortOrder}}product {diff --git a/saleor/static/dashboard-next/home/types/Home.ts b/saleor/static/dashboard-next/home/types/Home.tsindex d88e49e129..b79c2e0c6d 100644--- a/saleor/static/dashboard-next/home/types/Home.ts+++ b/saleor/static/dashboard-next/home/types/Home.ts@@ -54,7 +54,6 @@ export interface Home_productTopToday_edges_node_attributes_value {__typename: "AttributeValue";id: string;name: string | null;- sortOrder: number;}export interface Home_productTopToday_edges_node_attributes {diff --git a/saleor/static/dashboard-next/navigation/types/MenuDetails.ts b/saleor/static/dashboard-next/navigation/types/MenuDetails.tsindex 74d606d729..8fd2239849 100644--- a/saleor/static/dashboard-next/navigation/types/MenuDetails.ts+++ b/saleor/static/dashboard-next/navigation/types/MenuDetails.ts@@ -140,7 +140,7 @@ export interface MenuDetails_menu_items_children_children_children_children_chillevel: number;name: string;page: MenuDetails_menu_items_children_children_children_children_children_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;}@@ -152,7 +152,7 @@ export interface MenuDetails_menu_items_children_children_children_children_chillevel: number;name: string;page: MenuDetails_menu_items_children_children_children_children_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuDetails_menu_items_children_children_children_children_children_children | null)[] | null;}@@ -165,7 +165,7 @@ export interface MenuDetails_menu_items_children_children_children_children {level: number;name: string;page: MenuDetails_menu_items_children_children_children_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuDetails_menu_items_children_children_children_children_children | null)[] | null;}@@ -178,7 +178,7 @@ export interface MenuDetails_menu_items_children_children_children {level: number;name: string;page: MenuDetails_menu_items_children_children_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuDetails_menu_items_children_children_children_children | null)[] | null;}@@ -191,7 +191,7 @@ export interface MenuDetails_menu_items_children_children {level: number;name: string;page: MenuDetails_menu_items_children_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuDetails_menu_items_children_children_children | null)[] | null;}@@ -204,7 +204,7 @@ export interface MenuDetails_menu_items_children {level: number;name: string;page: MenuDetails_menu_items_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuDetails_menu_items_children_children | null)[] | null;}@@ -217,7 +217,7 @@ export interface MenuDetails_menu_items {level: number;name: string;page: MenuDetails_menu_items_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuDetails_menu_items_children | null)[] | null;}diff --git a/saleor/static/dashboard-next/navigation/types/MenuDetailsFragment.ts b/saleor/static/dashboard-next/navigation/types/MenuDetailsFragment.tsindex 2a60401002..1f1d4d5457 100644--- a/saleor/static/dashboard-next/navigation/types/MenuDetailsFragment.ts+++ b/saleor/static/dashboard-next/navigation/types/MenuDetailsFragment.ts@@ -140,7 +140,7 @@ export interface MenuDetailsFragment_items_children_children_children_children_clevel: number;name: string;page: MenuDetailsFragment_items_children_children_children_children_children_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;}@@ -152,7 +152,7 @@ export interface MenuDetailsFragment_items_children_children_children_children_clevel: number;name: string;page: MenuDetailsFragment_items_children_children_children_children_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuDetailsFragment_items_children_children_children_children_children_children | null)[] | null;}@@ -165,7 +165,7 @@ export interface MenuDetailsFragment_items_children_children_children_children {level: number;name: string;page: MenuDetailsFragment_items_children_children_children_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuDetailsFragment_items_children_children_children_children_children | null)[] | null;}@@ -178,7 +178,7 @@ export interface MenuDetailsFragment_items_children_children_children {level: number;name: string;page: MenuDetailsFragment_items_children_children_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuDetailsFragment_items_children_children_children_children | null)[] | null;}@@ -191,7 +191,7 @@ export interface MenuDetailsFragment_items_children_children {level: number;name: string;page: MenuDetailsFragment_items_children_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuDetailsFragment_items_children_children_children | null)[] | null;}@@ -204,7 +204,7 @@ export interface MenuDetailsFragment_items_children {level: number;name: string;page: MenuDetailsFragment_items_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuDetailsFragment_items_children_children | null)[] | null;}@@ -217,7 +217,7 @@ export interface MenuDetailsFragment_items {level: number;name: string;page: MenuDetailsFragment_items_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuDetailsFragment_items_children | null)[] | null;}diff --git a/saleor/static/dashboard-next/navigation/types/MenuItemCreate.ts b/saleor/static/dashboard-next/navigation/types/MenuItemCreate.tsindex 1ee635b437..b993b610ce 100644--- a/saleor/static/dashboard-next/navigation/types/MenuItemCreate.ts+++ b/saleor/static/dashboard-next/navigation/types/MenuItemCreate.ts@@ -148,7 +148,7 @@ export interface MenuItemCreate_menuItemCreate_menuItem_menu_items_children_chillevel: number;name: string;page: MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children_children_children_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;}@@ -160,7 +160,7 @@ export interface MenuItemCreate_menuItemCreate_menuItem_menu_items_children_chillevel: number;name: string;page: MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children_children_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children_children_children_children | null)[] | null;}@@ -173,7 +173,7 @@ export interface MenuItemCreate_menuItemCreate_menuItem_menu_items_children_chillevel: number;name: string;page: MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children_children_children | null)[] | null;}@@ -186,7 +186,7 @@ export interface MenuItemCreate_menuItemCreate_menuItem_menu_items_children_chillevel: number;name: string;page: MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children_children | null)[] | null;}@@ -199,7 +199,7 @@ export interface MenuItemCreate_menuItemCreate_menuItem_menu_items_children_chillevel: number;name: string;page: MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children | null)[] | null;}@@ -212,7 +212,7 @@ export interface MenuItemCreate_menuItemCreate_menuItem_menu_items_children {level: number;name: string;page: MenuItemCreate_menuItemCreate_menuItem_menu_items_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children | null)[] | null;}@@ -225,7 +225,7 @@ export interface MenuItemCreate_menuItemCreate_menuItem_menu_items {level: number;name: string;page: MenuItemCreate_menuItemCreate_menuItem_menu_items_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuItemCreate_menuItemCreate_menuItem_menu_items_children | null)[] | null;}diff --git a/saleor/static/dashboard-next/navigation/types/MenuItemFragment.ts b/saleor/static/dashboard-next/navigation/types/MenuItemFragment.tsindex 74664fca6b..9d7a261e0d 100644--- a/saleor/static/dashboard-next/navigation/types/MenuItemFragment.ts+++ b/saleor/static/dashboard-next/navigation/types/MenuItemFragment.ts@@ -32,6 +32,6 @@ export interface MenuItemFragment {level: number;name: string;page: MenuItemFragment_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;}diff --git a/saleor/static/dashboard-next/navigation/types/MenuItemNestedFragment.ts b/saleor/static/dashboard-next/navigation/types/MenuItemNestedFragment.tsindex b45d1e73a1..4559855b4c 100644--- a/saleor/static/dashboard-next/navigation/types/MenuItemNestedFragment.ts+++ b/saleor/static/dashboard-next/navigation/types/MenuItemNestedFragment.ts@@ -140,7 +140,7 @@ export interface MenuItemNestedFragment_children_children_children_children_chillevel: number;name: string;page: MenuItemNestedFragment_children_children_children_children_children_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;}@@ -152,7 +152,7 @@ export interface MenuItemNestedFragment_children_children_children_children_chillevel: number;name: string;page: MenuItemNestedFragment_children_children_children_children_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuItemNestedFragment_children_children_children_children_children_children | null)[] | null;}@@ -165,7 +165,7 @@ export interface MenuItemNestedFragment_children_children_children_children {level: number;name: string;page: MenuItemNestedFragment_children_children_children_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuItemNestedFragment_children_children_children_children_children | null)[] | null;}@@ -178,7 +178,7 @@ export interface MenuItemNestedFragment_children_children_children {level: number;name: string;page: MenuItemNestedFragment_children_children_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuItemNestedFragment_children_children_children_children | null)[] | null;}@@ -191,7 +191,7 @@ export interface MenuItemNestedFragment_children_children {level: number;name: string;page: MenuItemNestedFragment_children_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuItemNestedFragment_children_children_children | null)[] | null;}@@ -204,7 +204,7 @@ export interface MenuItemNestedFragment_children {level: number;name: string;page: MenuItemNestedFragment_children_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuItemNestedFragment_children_children | null)[] | null;}@@ -217,7 +217,7 @@ export interface MenuItemNestedFragment {level: number;name: string;page: MenuItemNestedFragment_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;children: (MenuItemNestedFragment_children | null)[] | null;}diff --git a/saleor/static/dashboard-next/navigation/types/MenuItemUpdate.ts b/saleor/static/dashboard-next/navigation/types/MenuItemUpdate.tsindex e2d7942ad0..d3c46bd07d 100644--- a/saleor/static/dashboard-next/navigation/types/MenuItemUpdate.ts+++ b/saleor/static/dashboard-next/navigation/types/MenuItemUpdate.ts@@ -40,7 +40,7 @@ export interface MenuItemUpdate_menuItemUpdate_menuItem {level: number;name: string;page: MenuItemUpdate_menuItemUpdate_menuItem_page | null;- sortOrder: number;+ sortOrder: number | null;url: string | null;}diff --git a/saleor/static/dashboard-next/productTypes/containers/ProductTypeOperations.tsx b/saleor/static/dashboard-next/productTypes/containers/ProductTypeOperations.tsxindex 787d3b78cf..7a7ea2931a 100644--- a/saleor/static/dashboard-next/productTypes/containers/ProductTypeOperations.tsx+++ b/saleor/static/dashboard-next/productTypes/containers/ProductTypeOperations.tsx@@ -1,10 +1,7 @@import React from "react";import { MutationFn } from "react-apollo";-import {- AttributeReorderInput,- AttributeTypeEnum-} from "@saleor/types/globalTypes";+import { AttributeTypeEnum, ReorderInput } from "@saleor/types/globalTypes";import { getMutationProviderData } from "../../misc";import { PartialMutationProviderOutput } from "../../types";import {@@ -43,7 +40,7 @@ function moveAttribute(attributes:| ProductTypeDetailsFragment_productAttributes[]| ProductTypeDetailsFragment_productAttributes[],- move: AttributeReorderInput+ move: ReorderInput) {const attributeIndex = attributes.findIndex(attribute => attribute.id === move.iddiff --git a/saleor/static/dashboard-next/productTypes/mutations.ts b/saleor/static/dashboard-next/productTypes/mutations.tsindex 8966558231..7d103d7567 100644--- a/saleor/static/dashboard-next/productTypes/mutations.ts+++ b/saleor/static/dashboard-next/productTypes/mutations.ts@@ -143,7 +143,7 @@ export const TypedProductTypeCreateMutation = TypedMutation<const productTypeAttributeReorder = gql`${productTypeDetailsFragment}mutation ProductTypeAttributeReorder(- $move: AttributeReorderInput!+ $move: ReorderInput!$productTypeId: ID!$type: AttributeTypeEnum!) {diff --git a/saleor/static/dashboard-next/productTypes/types/ProductTypeAttributeReorder.ts b/saleor/static/dashboard-next/productTypes/types/ProductTypeAttributeReorder.tsindex b456d62c57..565e66f70d 100644--- a/saleor/static/dashboard-next/productTypes/types/ProductTypeAttributeReorder.ts+++ b/saleor/static/dashboard-next/productTypes/types/ProductTypeAttributeReorder.ts@@ -2,7 +2,7 @@/* eslint-disable */// This file was automatically generated and should not be edited.-import { AttributeReorderInput, AttributeTypeEnum } from "./../../types/globalTypes";+import { ReorderInput, AttributeTypeEnum } from "./../../types/globalTypes";// ====================================================// GraphQL mutation operation: ProductTypeAttributeReorder@@ -69,7 +69,7 @@ export interface ProductTypeAttributeReorder {}export interface ProductTypeAttributeReorderVariables {- move: AttributeReorderInput;+ move: ReorderInput;productTypeId: string;type: AttributeTypeEnum;}diff --git a/saleor/static/dashboard-next/products/queries.ts b/saleor/static/dashboard-next/products/queries.tsindex d21ff31de8..e37f51f48d 100644--- a/saleor/static/dashboard-next/products/queries.ts+++ b/saleor/static/dashboard-next/products/queries.ts@@ -280,7 +280,6 @@ const productCreateQuery = gql`namevalues {id- sortOrdernameslug}@@ -312,7 +311,6 @@ const productVariantCreateQuery = gql`namevalues {id- sortOrdernameslug}diff --git a/saleor/static/dashboard-next/products/types/Product.ts b/saleor/static/dashboard-next/products/types/Product.tsindex 8b3b5e347c..6f501fbda1 100644--- a/saleor/static/dashboard-next/products/types/Product.ts+++ b/saleor/static/dashboard-next/products/types/Product.ts@@ -116,7 +116,7 @@ export interface Product_images {__typename: "ProductImage";id: string;alt: string;- sortOrder: number;+ sortOrder: number | null;url: string;}diff --git a/saleor/static/dashboard-next/products/types/ProductCreate.ts b/saleor/static/dashboard-next/products/types/ProductCreate.tsindex 6724a7595d..c0f419babf 100644--- a/saleor/static/dashboard-next/products/types/ProductCreate.ts+++ b/saleor/static/dashboard-next/products/types/ProductCreate.ts@@ -122,7 +122,7 @@ export interface ProductCreate_productCreate_product_images {__typename: "ProductImage";id: string;alt: string;- sortOrder: number;+ sortOrder: number | null;url: string;}diff --git a/saleor/static/dashboard-next/products/types/ProductCreateData.ts b/saleor/static/dashboard-next/products/types/ProductCreateData.tsindex 31e557f2e1..f9ce6b1bbc 100644--- a/saleor/static/dashboard-next/products/types/ProductCreateData.ts+++ b/saleor/static/dashboard-next/products/types/ProductCreateData.ts@@ -11,7 +11,6 @@ import { AttributeInputTypeEnum } from "./../../types/globalTypes";export interface ProductCreateData_productTypes_edges_node_productAttributes_values {__typename: "AttributeValue";id: string;- sortOrder: number;name: string | null;slug: string | null;}diff --git a/saleor/static/dashboard-next/products/types/ProductDetails.ts b/saleor/static/dashboard-next/products/types/ProductDetails.tsindex 7258a8f40f..47b83fcf92 100644--- a/saleor/static/dashboard-next/products/types/ProductDetails.ts+++ b/saleor/static/dashboard-next/products/types/ProductDetails.ts@@ -116,7 +116,7 @@ export interface ProductDetails_product_images {__typename: "ProductImage";id: string;alt: string;- sortOrder: number;+ sortOrder: number | null;url: string;}diff --git a/saleor/static/dashboard-next/products/types/ProductImageCreate.ts b/saleor/static/dashboard-next/products/types/ProductImageCreate.tsindex fb89184110..1a3bd5c1f8 100644--- a/saleor/static/dashboard-next/products/types/ProductImageCreate.ts+++ b/saleor/static/dashboard-next/products/types/ProductImageCreate.ts@@ -122,7 +122,7 @@ export interface ProductImageCreate_productImageCreate_product_images {__typename: "ProductImage";id: string;alt: string;- sortOrder: number;+ sortOrder: number | null;url: string;}diff --git a/saleor/static/dashboard-next/products/types/ProductImageFragment.ts b/saleor/static/dashboard-next/products/types/ProductImageFragment.tsindex 9eb7a37fb1..de4e5b5ca8 100644--- a/saleor/static/dashboard-next/products/types/ProductImageFragment.ts+++ b/saleor/static/dashboard-next/products/types/ProductImageFragment.ts@@ -10,6 +10,6 @@ export interface ProductImageFragment {__typename: "ProductImage";id: string;alt: string;- sortOrder: number;+ sortOrder: number | null;url: string;}diff --git a/saleor/static/dashboard-next/products/types/ProductImageReorder.ts b/saleor/static/dashboard-next/products/types/ProductImageReorder.tsindex 47b5631a66..4e59603896 100644--- a/saleor/static/dashboard-next/products/types/ProductImageReorder.ts+++ b/saleor/static/dashboard-next/products/types/ProductImageReorder.ts@@ -16,7 +16,7 @@ export interface ProductImageReorder_productImageReorder_product_images {__typename: "ProductImage";id: string;alt: string;- sortOrder: number;+ sortOrder: number | null;url: string;}diff --git a/saleor/static/dashboard-next/products/types/ProductImageUpdate.ts b/saleor/static/dashboard-next/products/types/ProductImageUpdate.tsindex 21108bb79f..3068fb6ea8 100644--- a/saleor/static/dashboard-next/products/types/ProductImageUpdate.ts+++ b/saleor/static/dashboard-next/products/types/ProductImageUpdate.ts@@ -122,7 +122,7 @@ export interface ProductImageUpdate_productImageUpdate_product_images {__typename: "ProductImage";id: string;alt: string;- sortOrder: number;+ sortOrder: number | null;url: string;}diff --git a/saleor/static/dashboard-next/products/types/ProductUpdate.ts b/saleor/static/dashboard-next/products/types/ProductUpdate.tsindex 0c1011fe38..8aa76dc9d6 100644--- a/saleor/static/dashboard-next/products/types/ProductUpdate.ts+++ b/saleor/static/dashboard-next/products/types/ProductUpdate.ts@@ -122,7 +122,7 @@ export interface ProductUpdate_productUpdate_product_images {__typename: "ProductImage";id: string;alt: string;- sortOrder: number;+ sortOrder: number | null;url: string;}diff --git a/saleor/static/dashboard-next/products/types/ProductVariant.ts b/saleor/static/dashboard-next/products/types/ProductVariant.tsindex d9ad5622a7..ce379e15a8 100644--- a/saleor/static/dashboard-next/products/types/ProductVariant.ts+++ b/saleor/static/dashboard-next/products/types/ProductVariant.ts@@ -56,7 +56,7 @@ export interface ProductVariant_product_images {__typename: "ProductImage";id: string;alt: string;- sortOrder: number;+ sortOrder: number | null;url: string;}diff --git a/saleor/static/dashboard-next/products/types/ProductVariantCreateData.ts b/saleor/static/dashboard-next/products/types/ProductVariantCreateData.tsindex f882cf5e59..eb61abfe09 100644--- a/saleor/static/dashboard-next/products/types/ProductVariantCreateData.ts+++ b/saleor/static/dashboard-next/products/types/ProductVariantCreateData.ts@@ -9,14 +9,13 @@export interface ProductVariantCreateData_product_images {__typename: "ProductImage";id: string;- sortOrder: number;+ sortOrder: number | null;url: string;}export interface ProductVariantCreateData_product_productType_variantAttributes_values {__typename: "AttributeValue";id: string;- sortOrder: number;name: string | null;slug: string | null;}diff --git a/saleor/static/dashboard-next/products/types/ProductVariantDetails.ts b/saleor/static/dashboard-next/products/types/ProductVariantDetails.tsindex 99cb40f580..793fee6605 100644--- a/saleor/static/dashboard-next/products/types/ProductVariantDetails.ts+++ b/saleor/static/dashboard-next/products/types/ProductVariantDetails.ts@@ -56,7 +56,7 @@ export interface ProductVariantDetails_productVariant_product_images {__typename: "ProductImage";id: string;alt: string;- sortOrder: number;+ sortOrder: number | null;url: string;}diff --git a/saleor/static/dashboard-next/products/types/SimpleProductUpdate.ts b/saleor/static/dashboard-next/products/types/SimpleProductUpdate.tsindex 0151933866..e52a9ebd3b 100644--- a/saleor/static/dashboard-next/products/types/SimpleProductUpdate.ts+++ b/saleor/static/dashboard-next/products/types/SimpleProductUpdate.ts@@ -122,7 +122,7 @@ export interface SimpleProductUpdate_productUpdate_product_images {__typename: "ProductImage";id: string;alt: string;- sortOrder: number;+ sortOrder: number | null;url: string;}@@ -237,7 +237,7 @@ export interface SimpleProductUpdate_productVariantUpdate_productVariant_product__typename: "ProductImage";id: string;alt: string;- sortOrder: number;+ sortOrder: number | null;url: string;}diff --git a/saleor/static/dashboard-next/products/types/VariantCreate.ts b/saleor/static/dashboard-next/products/types/VariantCreate.tsindex 63e2a327e1..c763a11aa6 100644--- a/saleor/static/dashboard-next/products/types/VariantCreate.ts+++ b/saleor/static/dashboard-next/products/types/VariantCreate.ts@@ -64,7 +64,7 @@ export interface VariantCreate_productVariantCreate_productVariant_product_image__typename: "ProductImage";id: string;alt: string;- sortOrder: number;+ sortOrder: number | null;url: string;}diff --git a/saleor/static/dashboard-next/products/types/VariantImageAssign.ts b/saleor/static/dashboard-next/products/types/VariantImageAssign.tsindex 27a6090b32..560d08e0b9 100644--- a/saleor/static/dashboard-next/products/types/VariantImageAssign.ts+++ b/saleor/static/dashboard-next/products/types/VariantImageAssign.ts@@ -62,7 +62,7 @@ export interface VariantImageAssign_variantImageAssign_productVariant_product_im__typename: "ProductImage";id: string;alt: string;- sortOrder: number;+ sortOrder: number | null;url: string;}diff --git a/saleor/static/dashboard-next/products/types/VariantImageUnassign.ts b/saleor/static/dashboard-next/products/types/VariantImageUnassign.tsindex 8c41a68583..3a63b52e8b 100644--- a/saleor/static/dashboard-next/products/types/VariantImageUnassign.ts+++ b/saleor/static/dashboard-next/products/types/VariantImageUnassign.ts@@ -62,7 +62,7 @@ export interface VariantImageUnassign_variantImageUnassign_productVariant_produc__typename: "ProductImage";id: string;alt: string;- sortOrder: number;+ sortOrder: number | null;url: string;}diff --git a/saleor/static/dashboard-next/products/types/VariantUpdate.ts b/saleor/static/dashboard-next/products/types/VariantUpdate.tsindex 3ad83d91ba..0f723a4352 100644--- a/saleor/static/dashboard-next/products/types/VariantUpdate.ts+++ b/saleor/static/dashboard-next/products/types/VariantUpdate.ts@@ -64,7 +64,7 @@ export interface VariantUpdate_productVariantUpdate_productVariant_product_image__typename: "ProductImage";id: string;alt: string;- sortOrder: number;+ sortOrder: number | null;url: string;}diff --git a/saleor/static/dashboard-next/storybook/stories/attributes/AttributeValueEditDialog.tsx b/saleor/static/dashboard-next/storybook/stories/attributes/AttributeValueEditDialog.tsxindex e8591ff016..a04afb0cdc 100644--- a/saleor/static/dashboard-next/storybook/stories/attributes/AttributeValueEditDialog.tsx+++ b/saleor/static/dashboard-next/storybook/stories/attributes/AttributeValueEditDialog.tsx@@ -12,7 +12,6 @@ import Decorator from "../../Decorator";const props: AttributeValueEditDialogProps = {attributeValue: {...attribute.values[0],- sortOrder: 0,type: AttributeValueType.STRING,value: ""},diff --git a/saleor/static/dashboard-next/types/globalTypes.ts b/saleor/static/dashboard-next/types/globalTypes.tsindex d0123012c2..999495cd13 100644--- a/saleor/static/dashboard-next/types/globalTypes.ts+++ b/saleor/static/dashboard-next/types/globalTypes.ts@@ -265,6 +265,7 @@ export interface AttributeCreateInput {filterableInStorefront?: boolean | null;filterableInDashboard?: boolean | null;storefrontSearchPosition?: number | null;+ availableInGrid?: boolean | null;}export interface AttributeInput {@@ -272,11 +273,6 @@ export interface AttributeInput {value: string;}-export interface AttributeReorderInput {- id: string;- sortOrder?: number | null;-}-export interface AttributeUpdateInput {name?: string | null;slug?: string | null;@@ -288,6 +284,7 @@ export interface AttributeUpdateInput {filterableInStorefront?: boolean | null;filterableInDashboard?: boolean | null;storefrontSearchPosition?: number | null;+ availableInGrid?: boolean | null;}export interface AttributeValueCreateInput {@@ -512,6 +509,11 @@ export interface ProductVariantInput {weight?: any | null;}+export interface ReorderInput {+ id: string;+ sortOrder?: number | null;+}+export interface SaleInput {name?: string | null;type?: DiscountValueTypeEnum | null;