Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix isAvailable and price deprecated fields
Krzysztof Bialoglowicz5a425e91c5e6
diff --git a/saleor/static/dashboard-next/categories/fixtures.ts b/saleor/static/dashboard-next/categories/fixtures.tsindex c33f09bd82..f7621bfa96 100644--- a/saleor/static/dashboard-next/categories/fixtures.ts+++ b/saleor/static/dashboard-next/categories/fixtures.ts@@ -97,11 +97,8 @@ export const category: (currency: "USD"},id: "UHJvZHVjdDoyMQ==",+ isAvailable: true,name: "Gardner-Schultz",- pricing: {- __typename: "ProductPricingInfo",- available: true- },productType: {__typename: "ProductType",id: "UHJvZHVjdFR5cGU6Mw==",@@ -121,11 +118,8 @@ export const category: (currency: "USD"},id: "UHJvZHVjdDoyMg==",+ isAvailable: true,name: "James, Martinez and Murray",- pricing: {- __typename: "ProductPricingInfo",- available: true- },productType: {__typename: "ProductType",id: "UHJvZHVjdFR5cGU6Mw==",@@ -145,11 +139,8 @@ export const category: (currency: "USD"},id: "UHJvZHVjdDoyMw==",+ isAvailable: true,name: "Curtis, Joyce and Turner",- pricing: {- __typename: "ProductPricingInfo",- available: true- },productType: {__typename: "ProductType",id: "UHJvZHVjdFR5cGU6Mw==",@@ -169,11 +160,8 @@ export const category: (currency: "USD"},id: "UHJvZHVjdDoyNA==",+ isAvailable: true,name: "Davis, Brown and Ray",- pricing: {- __typename: "ProductPricingInfo",- available: true- },productType: {__typename: "ProductType",id: "UHJvZHVjdFR5cGU6Mw==",@@ -193,11 +181,8 @@ export const category: (currency: "USD"},id: "UHJvZHVjdDoyNQ==",+ isAvailable: true,name: "Gallegos Ltd",- pricing: {- __typename: "ProductPricingInfo",- available: true- },productType: {__typename: "ProductType",id: "UHJvZHVjdFR5cGU6Mw==",@@ -217,11 +202,8 @@ export const category: (currency: "USD"},id: "UHJvZHVjdDoyNg==",+ isAvailable: true,name: "Franklin Inc",- pricing: {- __typename: "ProductPricingInfo",- available: true- },productType: {__typename: "ProductType",id: "UHJvZHVjdFR5cGU6Mw==",@@ -241,11 +223,8 @@ export const category: (currency: "USD"},id: "UHJvZHVjdDoyNw==",+ isAvailable: true,name: "Williams-Taylor",- pricing: {- __typename: "ProductPricingInfo",- available: true- },productType: {__typename: "ProductType",id: "UHJvZHVjdFR5cGU6Mw==",@@ -265,11 +244,8 @@ export const category: (currency: "USD"},id: "UHJvZHVjdDoyOA==",+ isAvailable: true,name: "Riddle, Evans and Hicks",- pricing: {- __typename: "ProductPricingInfo",- available: true- },productType: {__typename: "ProductType",id: "UHJvZHVjdFR5cGU6Mw==",@@ -289,11 +265,8 @@ export const category: (currency: "USD"},id: "UHJvZHVjdDoyOQ==",+ isAvailable: true,name: "Hebert-Sherman",- pricing: {- __typename: "ProductPricingInfo",- available: true- },productType: {__typename: "ProductType",id: "UHJvZHVjdFR5cGU6Mw==",@@ -313,11 +286,8 @@ export const category: (currency: "USD"},id: "UHJvZHVjdDozMA==",+ isAvailable: true,name: "Carter and Sons",- pricing: {- __typename: "ProductPricingInfo",- available: true- },productType: {__typename: "ProductType",id: "UHJvZHVjdFR5cGU6Mw==",diff --git a/saleor/static/dashboard-next/categories/queries.ts b/saleor/static/dashboard-next/categories/queries.tsindex 88493cf42d..273ff7dc29 100644--- a/saleor/static/dashboard-next/categories/queries.ts+++ b/saleor/static/dashboard-next/categories/queries.ts@@ -104,9 +104,7 @@ export const categoryDetails = gql`amountcurrency}- pricing {- available- }+ isAvailablethumbnail {url}diff --git a/saleor/static/dashboard-next/categories/types/CategoryDetails.ts b/saleor/static/dashboard-next/categories/types/CategoryDetails.tsindex e1d2b940c6..5168b4606f 100644--- a/saleor/static/dashboard-next/categories/types/CategoryDetails.ts+++ b/saleor/static/dashboard-next/categories/types/CategoryDetails.ts@@ -53,9 +53,10 @@ export interface CategoryDetails_category_products_pageInfo {startCursor: string | null;}-export interface CategoryDetails_category_products_edges_node_pricing {- __typename: "ProductPricingInfo";- available: boolean | null;+export interface CategoryDetails_category_products_edges_node_basePrice {+ __typename: "Money";+ amount: number;+ currency: string;}export interface CategoryDetails_category_products_edges_node_thumbnail {@@ -63,12 +64,6 @@ export interface CategoryDetails_category_products_edges_node_thumbnail {url: string;}-export interface CategoryDetails_category_products_edges_node_price {- __typename: "Money";- amount: number;- currency: string;-}-export interface CategoryDetails_category_products_edges_node_productType {__typename: "ProductType";id: string;@@ -79,9 +74,9 @@ export interface CategoryDetails_category_products_edges_node {__typename: "Product";id: string;name: string;- pricing: CategoryDetails_category_products_edges_node_pricing | null;+ basePrice: CategoryDetails_category_products_edges_node_basePrice | null;+ isAvailable: boolean | null;thumbnail: CategoryDetails_category_products_edges_node_thumbnail | null;- basePrice: CategoryDetails_category_products_edges_node_price | null;productType: CategoryDetails_category_products_edges_node_productType;}diff --git a/saleor/static/dashboard-next/collections/types/UnassignCollectionProduct.ts b/saleor/static/dashboard-next/collections/types/UnassignCollectionProduct.tsindex 8501a0d0f3..d5bbfc6508 100644--- a/saleor/static/dashboard-next/collections/types/UnassignCollectionProduct.ts+++ b/saleor/static/dashboard-next/collections/types/UnassignCollectionProduct.ts@@ -18,13 +18,18 @@ export interface UnassignCollectionProduct_collectionRemoveProducts_collection_pname: string;}+export interface UnassignCollectionProduct_collectionRemoveProducts_collection_products_edges_node_thumbnail {+ __typename: "Image";+ url: string;+}+export interface UnassignCollectionProduct_collectionRemoveProducts_collection_products_edges_node {__typename: "Product";id: string;isPublished: boolean;name: string;productType: UnassignCollectionProduct_collectionRemoveProducts_collection_products_edges_node_productType;- thumbnailUrl: string | null;+ thumbnail: UnassignCollectionProduct_collectionRemoveProducts_collection_products_edges_node_thumbnail | null;}export interface UnassignCollectionProduct_collectionRemoveProducts_collection_products_edges {diff --git a/saleor/static/dashboard-next/components/ProductList/ProductList.tsx b/saleor/static/dashboard-next/components/ProductList/ProductList.tsxindex 3b6488e24e..aaa2f024ba 100644--- a/saleor/static/dashboard-next/components/ProductList/ProductList.tsx+++ b/saleor/static/dashboard-next/components/ProductList/ProductList.tsx@@ -153,19 +153,16 @@ export const ProductList = withStyles(styles, { name: "ProductList" })(</TableCell><TableCell className={classes.colPublished}>{product &&- product.pricing &&- product.pricing.available !== undefined ? (+ product.isAvailable !== undefined ? (<StatusLabellabel={- product.pricing.available+ product.isAvailable? i18n.t("Published", { context: "product status" }): i18n.t("Not published", {context: "product status"})}- status={- product.pricing.available ? "success" : "error"- }+ status={product.isAvailable ? "success" : "error"}/>) : (<Skeleton />diff --git a/saleor/static/dashboard-next/products/components/ProductCreatePage/ProductCreatePage.tsx b/saleor/static/dashboard-next/products/components/ProductCreatePage/ProductCreatePage.tsxindex fc4744c74e..75a78bdac1 100644--- a/saleor/static/dashboard-next/products/components/ProductCreatePage/ProductCreatePage.tsx+++ b/saleor/static/dashboard-next/products/components/ProductCreatePage/ProductCreatePage.tsx@@ -30,13 +30,13 @@ export interface FormData {value: string;}>;available: boolean;+ basePrice: number;publicationDate: string;category: ChoiceType;chargeTaxes: boolean;collections: ChoiceType[];description: RawDraftContentState;name: string;- price: number;productType: {label: string;value: {@@ -98,6 +98,7 @@ export const ProductCreatePage: React.StatelessComponent<const initialData: FormData = {attributes: [],available: false,+ basePrice: 0,category: {label: "",value: ""@@ -106,7 +107,6 @@ export const ProductCreatePage: React.StatelessComponent<collections: [],description: {} as any,name: "",- price: 0,productType: {label: "",value: {diff --git a/saleor/static/dashboard-next/products/components/ProductPricing/ProductPricing.tsx b/saleor/static/dashboard-next/products/components/ProductPricing/ProductPricing.tsxindex b1eb0e3d83..e08345c99f 100644--- a/saleor/static/dashboard-next/products/components/ProductPricing/ProductPricing.tsx+++ b/saleor/static/dashboard-next/products/components/ProductPricing/ProductPricing.tsx@@ -26,7 +26,7 @@ interface ProductPricingProps extends WithStyles<typeof styles> {currency?: string;data: {chargeTaxes: boolean;- price: number;+ basePrice: number;};disabled: boolean;onChange: (event: React.ChangeEvent<any>) => void;@@ -49,8 +49,8 @@ const ProductPricing = withStyles(styles, { name: "ProductPricing" })(<PriceFielddisabled={disabled}label={i18n.t("Price")}- name="price"- value={data.price}+ name="basePrice"+ value={data.basePrice}currencySymbol={currency}onChange={onChange}/>diff --git a/saleor/static/dashboard-next/products/components/ProductUpdatePage/ProductUpdatePage.tsx b/saleor/static/dashboard-next/products/components/ProductUpdatePage/ProductUpdatePage.tsxindex 7a677f50ba..fcb630bc85 100644--- a/saleor/static/dashboard-next/products/components/ProductUpdatePage/ProductUpdatePage.tsx+++ b/saleor/static/dashboard-next/products/components/ProductUpdatePage/ProductUpdatePage.tsx@@ -74,12 +74,12 @@ export interface FormData {value: string;}>;available: boolean;+ basePrice: number;category: ChoiceType | null;chargeTaxes: boolean;collections: ChoiceType[];description: RawDraftContentState;name: string;- price: number;productType: {label: string;value: {@@ -138,6 +138,7 @@ export const ProductUpdate: React.StatelessComponent<ProductUpdateProps> = ({[]),available: maybe(() => product.isPublished, false),+ basePrice: maybe(() => product.basePrice.amount),category: maybe(() => ({label: product.category.name,value: product.category.id@@ -151,7 +152,6 @@ export const ProductUpdate: React.StatelessComponent<ProductUpdateProps> = ({: [],description: maybe(() => JSON.parse(product.descriptionJson)),name: maybe(() => product.name),- price: maybe(() => product.basePrice.amount),productType: maybe(() => ({label: product.productType.name,value: {diff --git a/saleor/static/dashboard-next/products/fixtures.ts b/saleor/static/dashboard-next/products/fixtures.tsindex ff719c8eff..2fc48bc955 100644--- a/saleor/static/dashboard-next/products/fixtures.ts+++ b/saleor/static/dashboard-next/products/fixtures.ts@@ -144,13 +144,13 @@ export const product: (url: placeholderImage}],+ isAvailable: false,isFeatured: false,isPublished: true,margin: { __typename: "Margin", start: 2, stop: 7 },name: "Ergonomic Plastic Bacon",pricing: {__typename: "ProductPricingInfo",- available: false,priceRange: {__typename: "TaxedMoneyRange",start: {@@ -426,11 +426,11 @@ export const products = (placeholderImage: string) => [}]},+ isAvailable: true,isFeatured: false,isPublished: false,margin: { start: 6, stop: 18 },name: "Gorgeous Frozen Chips",- pricing: { available: true },productType: {hasVariants: true,id: "pt41284",@@ -587,11 +587,11 @@ export const products = (placeholderImage: string) => [}]},+ isAvailable: true,isFeatured: false,isPublished: true,margin: { start: 4, stop: 19 },name: "Handcrafted Wooden Towels",- pricing: { available: true },productType: { hasVariants: false, id: "pt29020", name: "Future" },publicationDate: null,purchaseCost: {@@ -784,11 +784,11 @@ export const products = (placeholderImage: string) => [}]},+ isAvailable: false,isFeatured: false,isPublished: true,margin: { start: 3, stop: 18 },name: "Handcrafted Metal Cheese",- pricing: { available: false },productType: { hasVariants: true, id: "pt23508", name: "SMS" },publicationDate: null,purchaseCost: {@@ -992,11 +992,11 @@ export const products = (placeholderImage: string) => [}]},+ isAvailable: false,isFeatured: true,isPublished: true,margin: { start: 4, stop: 19 },name: "Refined Rubber Keyboard",- pricing: { available: false },productType: { hasVariants: false, id: "pt20625", name: "Virtual" },publicationDate: null,purchaseCost: {@@ -1209,11 +1209,11 @@ export const products = (placeholderImage: string) => [}]},+ isAvailable: true,isFeatured: false,isPublished: false,margin: { start: 6, stop: 17 },name: "Gorgeous Metal Gloves",- pricing: { available: true },productType: { hasVariants: true, id: "pt91547", name: "Vermont" },publicationDate: null,purchaseCost: {@@ -1465,11 +1465,11 @@ export const products = (placeholderImage: string) => [}]},+ isAvailable: false,isFeatured: false,isPublished: false,margin: { start: 1, stop: 15 },name: "Small Cotton Shirt",- pricing: { available: false },productType: { hasVariants: false, id: "pt69941", name: "Gorgeous" },publicationDate: null,purchaseCost: {@@ -1660,11 +1660,11 @@ export const products = (placeholderImage: string) => [}]},+ isAvailable: false,isFeatured: false,isPublished: false,margin: { start: 0, stop: 4 },name: "Fantastic Cotton Tuna",- pricing: { available: false },productType: { hasVariants: true, id: "pt41677", name: "TCP" },publicationDate: null,purchaseCost: {@@ -1769,11 +1769,11 @@ export const products = (placeholderImage: string) => [}]},+ isAvailable: false,isFeatured: false,isPublished: true,margin: { start: 0, stop: 18 },name: "Tasty Steel Pants",- pricing: { available: false },productType: { hasVariants: true, id: "pt93233", name: "Buckinghamshire" },publicationDate: null,purchaseCost: {@@ -1976,11 +1976,11 @@ export const products = (placeholderImage: string) => [}]},+ isAvailable: true,isFeatured: false,isPublished: true,margin: { start: 0, stop: 11 },name: "Ergonomic Cotton Shoes",- pricing: { available: true },productType: { hasVariants: true, id: "pt53386", name: "Jewelery" },publicationDate: null,purchaseCost: {@@ -2108,11 +2108,11 @@ export const products = (placeholderImage: string) => [}]},+ isAvailable: false,isFeatured: false,isPublished: true,margin: { start: 4, stop: 17 },name: "Unbranded Steel Tuna",- pricing: { available: false },productType: { hasVariants: true, id: "pt48315", name: "Agent" },publicationDate: null,purchaseCost: {diff --git a/saleor/static/dashboard-next/products/mutations.ts b/saleor/static/dashboard-next/products/mutations.tsindex 0dc0cb0acb..b214718419 100644--- a/saleor/static/dashboard-next/products/mutations.ts+++ b/saleor/static/dashboard-next/products/mutations.ts@@ -136,7 +136,7 @@ export const productUpdateMutation = gql`descriptionJson: $descriptionJsonisPublished: $isPublishedname: $name- basePrice: $basePrice+ price: $basePrice}) {errors {@@ -167,7 +167,7 @@ export const simpleProductUpdateMutation = gql`$descriptionJson: JSONString$isPublished: Boolean!$name: String- $price: Decimal+ $basePrice: Decimal$productVariantId: ID!$productVariantInput: ProductVariantInput!) {@@ -182,7 +182,7 @@ export const simpleProductUpdateMutation = gql`descriptionJson: $descriptionJsonisPublished: $isPublishedname: $name- price: $price+ basePrice: $basePrice}) {errors {@@ -220,7 +220,7 @@ export const productCreateMutation = gql`$descriptionJson: JSONString$isPublished: Boolean!$name: String!- $price: Decimal+ $basePrice: Decimal$productType: ID!$sku: String$stockQuantity: Int@@ -235,7 +235,7 @@ export const productCreateMutation = gql`descriptionJson: $descriptionJsonisPublished: $isPublishedname: $name- price: $price+ basePrice: $basePriceproductType: $productTypesku: $skuquantity: $stockQuantitydiff --git a/saleor/static/dashboard-next/products/queries.ts b/saleor/static/dashboard-next/products/queries.tsindex 69bd1d83df..dc493de09e 100644--- a/saleor/static/dashboard-next/products/queries.ts+++ b/saleor/static/dashboard-next/products/queries.ts@@ -52,9 +52,7 @@ export const productFragment = gql`thumbnail {url}- pricing {- available- }+ isAvailablebasePrice {...Money}@@ -96,6 +94,7 @@ export const productFragmentDetails = gql`...Money}}+ isAvailableisPublishedchargeTaxespublicationDate@@ -116,7 +115,6 @@ export const productFragmentDetails = gql`}}pricing {- availablepriceRange {start {net {diff --git a/saleor/static/dashboard-next/products/types/Product.ts b/saleor/static/dashboard-next/products/types/Product.tsindex da13e33fab..31fc98e764 100644--- a/saleor/static/dashboard-next/products/types/Product.ts+++ b/saleor/static/dashboard-next/products/types/Product.ts@@ -18,7 +18,7 @@ export interface Product_collections {name: string;}-export interface Product_price {+export interface Product_basePrice {__typename: "Money";amount: number;currency: string;@@ -105,7 +105,6 @@ export interface Product_pricing_priceRange {export interface Product_pricing {__typename: "ProductPricingInfo";- available: boolean | null;priceRange: Product_pricing_priceRange | null;}@@ -151,9 +150,10 @@ export interface Product {seoDescription: string | null;category: Product_category;collections: (Product_collections | null)[] | null;- basePrice: Product_price | null;+ basePrice: Product_basePrice | null;margin: Product_margin | null;purchaseCost: Product_purchaseCost | null;+ isAvailable: boolean | null;isPublished: boolean;chargeTaxes: boolean;publicationDate: any | null;diff --git a/saleor/static/dashboard-next/products/types/ProductCreate.ts b/saleor/static/dashboard-next/products/types/ProductCreate.tsindex 04fc923a52..01aa7534a9 100644--- a/saleor/static/dashboard-next/products/types/ProductCreate.ts+++ b/saleor/static/dashboard-next/products/types/ProductCreate.ts@@ -26,7 +26,7 @@ export interface ProductCreate_productCreate_product_collections {name: string;}-export interface ProductCreate_productCreate_product_price {+export interface ProductCreate_productCreate_product_basePrice {__typename: "Money";amount: number;currency: string;@@ -67,9 +67,7 @@ export interface ProductCreate_productCreate_product_attributes_attribute {id: string;slug: string | null;name: string | null;- values:- | (ProductCreate_productCreate_product_attributes_attribute_values | null)[]- | null;+ values: (ProductCreate_productCreate_product_attributes_attribute_values | null)[] | null;}export interface ProductCreate_productCreate_product_attributes_value {@@ -115,7 +113,6 @@ export interface ProductCreate_productCreate_product_pricing_priceRange {export interface ProductCreate_productCreate_product_pricing {__typename: "ProductPricingInfo";- available: boolean | null;priceRange: ProductCreate_productCreate_product_pricing_priceRange | null;}@@ -160,12 +157,11 @@ export interface ProductCreate_productCreate_product {seoTitle: string | null;seoDescription: string | null;category: ProductCreate_productCreate_product_category;- collections:- | (ProductCreate_productCreate_product_collections | null)[]- | null;- basePrice: ProductCreate_productCreate_product_price | null;+ collections: (ProductCreate_productCreate_product_collections | null)[] | null;+ basePrice: ProductCreate_productCreate_product_basePrice | null;margin: ProductCreate_productCreate_product_margin | null;purchaseCost: ProductCreate_productCreate_product_purchaseCost | null;+ isAvailable: boolean | null;isPublished: boolean;chargeTaxes: boolean;publicationDate: any | null;diff --git a/saleor/static/dashboard-next/products/types/ProductDetails.ts b/saleor/static/dashboard-next/products/types/ProductDetails.tsindex 3b1c2246a3..5e9d925f07 100644--- a/saleor/static/dashboard-next/products/types/ProductDetails.ts+++ b/saleor/static/dashboard-next/products/types/ProductDetails.ts@@ -18,7 +18,7 @@ export interface ProductDetails_product_collections {name: string;}-export interface ProductDetails_product_price {+export interface ProductDetails_product_basePrice {__typename: "Money";amount: number;currency: string;@@ -105,7 +105,6 @@ export interface ProductDetails_product_pricing_priceRange {export interface ProductDetails_product_pricing {__typename: "ProductPricingInfo";- available: boolean | null;priceRange: ProductDetails_product_pricing_priceRange | null;}@@ -151,9 +150,10 @@ export interface ProductDetails_product {seoDescription: string | null;category: ProductDetails_product_category;collections: (ProductDetails_product_collections | null)[] | null;- basePrice: ProductDetails_product_price | null;+ basePrice: ProductDetails_product_basePrice | null;margin: ProductDetails_product_margin | null;purchaseCost: ProductDetails_product_purchaseCost | null;+ isAvailable: boolean | null;isPublished: boolean;chargeTaxes: boolean;publicationDate: any | null;diff --git a/saleor/static/dashboard-next/products/types/ProductFragment.ts b/saleor/static/dashboard-next/products/types/ProductFragment.tsindex dbb39237b4..7187a97910 100644--- a/saleor/static/dashboard-next/products/types/ProductFragment.ts+++ b/saleor/static/dashboard-next/products/types/ProductFragment.ts@@ -11,12 +11,7 @@ export interface ProductFragment_thumbnail {url: string;}-export interface ProductFragment_pricing {- __typename: "ProductPricingInfo";- available: boolean | null;-}--export interface ProductFragment_price {+export interface ProductFragment_basePrice {__typename: "Money";amount: number;currency: string;@@ -33,7 +28,7 @@ export interface ProductFragment {id: string;name: string;thumbnail: ProductFragment_thumbnail | null;- pricing: ProductFragment_pricing | null;- basePrice: ProductFragment_price | null;+ isAvailable: boolean | null;+ basePrice: ProductFragment_basePrice | null;productType: ProductFragment_productType;}diff --git a/saleor/static/dashboard-next/products/types/ProductImageCreate.ts b/saleor/static/dashboard-next/products/types/ProductImageCreate.tsindex c4b456489b..ef31824514 100644--- a/saleor/static/dashboard-next/products/types/ProductImageCreate.ts+++ b/saleor/static/dashboard-next/products/types/ProductImageCreate.ts@@ -24,7 +24,7 @@ export interface ProductImageCreate_productImageCreate_product_collections {name: string;}-export interface ProductImageCreate_productImageCreate_product_price {+export interface ProductImageCreate_productImageCreate_product_basePrice {__typename: "Money";amount: number;currency: string;@@ -65,9 +65,7 @@ export interface ProductImageCreate_productImageCreate_product_attributes_attribid: string;slug: string | null;name: string | null;- values:- | (ProductImageCreate_productImageCreate_product_attributes_attribute_values | null)[]- | null;+ values: (ProductImageCreate_productImageCreate_product_attributes_attribute_values | null)[] | null;}export interface ProductImageCreate_productImageCreate_product_attributes_value {@@ -113,7 +111,6 @@ export interface ProductImageCreate_productImageCreate_product_pricing_priceRangexport interface ProductImageCreate_productImageCreate_product_pricing {__typename: "ProductPricingInfo";- available: boolean | null;priceRange: ProductImageCreate_productImageCreate_product_pricing_priceRange | null;}@@ -158,23 +155,18 @@ export interface ProductImageCreate_productImageCreate_product {seoTitle: string | null;seoDescription: string | null;category: ProductImageCreate_productImageCreate_product_category;- collections:- | (ProductImageCreate_productImageCreate_product_collections | null)[]- | null;- basePrice: ProductImageCreate_productImageCreate_product_price | null;+ collections: (ProductImageCreate_productImageCreate_product_collections | null)[] | null;+ basePrice: ProductImageCreate_productImageCreate_product_basePrice | null;margin: ProductImageCreate_productImageCreate_product_margin | null;purchaseCost: ProductImageCreate_productImageCreate_product_purchaseCost | null;+ isAvailable: boolean | null;isPublished: boolean;chargeTaxes: boolean;publicationDate: any | null;attributes: ProductImageCreate_productImageCreate_product_attributes[];pricing: ProductImageCreate_productImageCreate_product_pricing | null;- images:- | (ProductImageCreate_productImageCreate_product_images | null)[]- | null;- variants:- | (ProductImageCreate_productImageCreate_product_variants | null)[]- | null;+ images: (ProductImageCreate_productImageCreate_product_images | null)[] | null;+ variants: (ProductImageCreate_productImageCreate_product_variants | null)[] | null;productType: ProductImageCreate_productImageCreate_product_productType;url: string;}diff --git a/saleor/static/dashboard-next/products/types/ProductImageUpdate.ts b/saleor/static/dashboard-next/products/types/ProductImageUpdate.tsindex 9e38ea59d1..8baeb5b198 100644--- a/saleor/static/dashboard-next/products/types/ProductImageUpdate.ts+++ b/saleor/static/dashboard-next/products/types/ProductImageUpdate.ts@@ -24,7 +24,7 @@ export interface ProductImageUpdate_productImageUpdate_product_collections {name: string;}-export interface ProductImageUpdate_productImageUpdate_product_price {+export interface ProductImageUpdate_productImageUpdate_product_basePrice {__typename: "Money";amount: number;currency: string;@@ -65,9 +65,7 @@ export interface ProductImageUpdate_productImageUpdate_product_attributes_attribid: string;slug: string | null;name: string | null;- values:- | (ProductImageUpdate_productImageUpdate_product_attributes_attribute_values | null)[]- | null;+ values: (ProductImageUpdate_productImageUpdate_product_attributes_attribute_values | null)[] | null;}export interface ProductImageUpdate_productImageUpdate_product_attributes_value {@@ -113,7 +111,6 @@ export interface ProductImageUpdate_productImageUpdate_product_pricing_priceRangexport interface ProductImageUpdate_productImageUpdate_product_pricing {__typename: "ProductPricingInfo";- available: boolean | null;priceRange: ProductImageUpdate_productImageUpdate_product_pricing_priceRange | null;}@@ -158,23 +155,18 @@ export interface ProductImageUpdate_productImageUpdate_product {seoTitle: string | null;seoDescription: string | null;category: ProductImageUpdate_productImageUpdate_product_category;- collections:- | (ProductImageUpdate_productImageUpdate_product_collections | null)[]- | null;- basePrice: ProductImageUpdate_productImageUpdate_product_price | null;+ collections: (ProductImageUpdate_productImageUpdate_product_collections | null)[] | null;+ basePrice: ProductImageUpdate_productImageUpdate_product_basePrice | null;margin: ProductImageUpdate_productImageUpdate_product_margin | null;purchaseCost: ProductImageUpdate_productImageUpdate_product_purchaseCost | null;+ isAvailable: boolean | null;isPublished: boolean;chargeTaxes: boolean;publicationDate: any | null;attributes: ProductImageUpdate_productImageUpdate_product_attributes[];pricing: ProductImageUpdate_productImageUpdate_product_pricing | null;- images:- | (ProductImageUpdate_productImageUpdate_product_images | null)[]- | null;- variants:- | (ProductImageUpdate_productImageUpdate_product_variants | null)[]- | null;+ images: (ProductImageUpdate_productImageUpdate_product_images | null)[] | null;+ variants: (ProductImageUpdate_productImageUpdate_product_variants | null)[] | null;productType: ProductImageUpdate_productImageUpdate_product_productType;url: string;}diff --git a/saleor/static/dashboard-next/products/types/ProductList.ts b/saleor/static/dashboard-next/products/types/ProductList.tsindex 7968265c26..ddeebc551e 100644--- a/saleor/static/dashboard-next/products/types/ProductList.ts+++ b/saleor/static/dashboard-next/products/types/ProductList.ts@@ -13,12 +13,7 @@ export interface ProductList_products_edges_node_thumbnail {url: string;}-export interface ProductList_products_edges_node_pricing {- __typename: "ProductPricingInfo";- available: boolean | null;-}--export interface ProductList_products_edges_node_price {+export interface ProductList_products_edges_node_basePrice {__typename: "Money";amount: number;currency: string;@@ -35,8 +30,8 @@ export interface ProductList_products_edges_node {id: string;name: string;thumbnail: ProductList_products_edges_node_thumbnail | null;- pricing: ProductList_products_edges_node_pricing | null;- basePrice: ProductList_products_edges_node_price | null;+ isAvailable: boolean | null;+ basePrice: ProductList_products_edges_node_basePrice | null;productType: ProductList_products_edges_node_productType;}diff --git a/saleor/static/dashboard-next/products/types/ProductUpdate.ts b/saleor/static/dashboard-next/products/types/ProductUpdate.tsindex 96dddd2c28..860e6040fc 100644--- a/saleor/static/dashboard-next/products/types/ProductUpdate.ts+++ b/saleor/static/dashboard-next/products/types/ProductUpdate.ts@@ -26,7 +26,7 @@ export interface ProductUpdate_productUpdate_product_collections {name: string;}-export interface ProductUpdate_productUpdate_product_price {+export interface ProductUpdate_productUpdate_product_basePrice {__typename: "Money";amount: number;currency: string;@@ -67,9 +67,7 @@ export interface ProductUpdate_productUpdate_product_attributes_attribute {id: string;slug: string | null;name: string | null;- values:- | (ProductUpdate_productUpdate_product_attributes_attribute_values | null)[]- | null;+ values: (ProductUpdate_productUpdate_product_attributes_attribute_values | null)[] | null;}export interface ProductUpdate_productUpdate_product_attributes_value {@@ -115,7 +113,6 @@ export interface ProductUpdate_productUpdate_product_pricing_priceRange {export interface ProductUpdate_productUpdate_product_pricing {__typename: "ProductPricingInfo";- available: boolean | null;priceRange: ProductUpdate_productUpdate_product_pricing_priceRange | null;}@@ -160,12 +157,11 @@ export interface ProductUpdate_productUpdate_product {seoTitle: string | null;seoDescription: string | null;category: ProductUpdate_productUpdate_product_category;- collections:- | (ProductUpdate_productUpdate_product_collections | null)[]- | null;- basePrice: ProductUpdate_productUpdate_product_price | null;+ collections: (ProductUpdate_productUpdate_product_collections | null)[] | null;+ basePrice: ProductUpdate_productUpdate_product_basePrice | null;margin: ProductUpdate_productUpdate_product_margin | null;purchaseCost: ProductUpdate_productUpdate_product_purchaseCost | null;+ isAvailable: boolean | null;isPublished: boolean;chargeTaxes: boolean;publicationDate: any | null;diff --git a/saleor/static/dashboard-next/products/types/SimpleProductUpdate.ts b/saleor/static/dashboard-next/products/types/SimpleProductUpdate.tsindex 79d4a7b2a0..18d803a5df 100644--- a/saleor/static/dashboard-next/products/types/SimpleProductUpdate.ts+++ b/saleor/static/dashboard-next/products/types/SimpleProductUpdate.ts@@ -2,10 +2,7 @@/* eslint-disable */// This file was automatically generated and should not be edited.-import {- AttributeValueInput,- ProductVariantInput-} from "./../../types/globalTypes";+import { AttributeValueInput, ProductVariantInput } from "./../../types/globalTypes";// ====================================================// GraphQL mutation operation: SimpleProductUpdate@@ -29,7 +26,7 @@ export interface SimpleProductUpdate_productUpdate_product_collections {name: string;}-export interface SimpleProductUpdate_productUpdate_product_price {+export interface SimpleProductUpdate_productUpdate_product_basePrice {__typename: "Money";amount: number;currency: string;@@ -70,9 +67,7 @@ export interface SimpleProductUpdate_productUpdate_product_attributes_attributeid: string;slug: string | null;name: string | null;- values:- | (SimpleProductUpdate_productUpdate_product_attributes_attribute_values | null)[]- | null;+ values: (SimpleProductUpdate_productUpdate_product_attributes_attribute_values | null)[] | null;}export interface SimpleProductUpdate_productUpdate_product_attributes_value {@@ -118,7 +113,6 @@ export interface SimpleProductUpdate_productUpdate_product_pricing_priceRange {export interface SimpleProductUpdate_productUpdate_product_pricing {__typename: "ProductPricingInfo";- available: boolean | null;priceRange: SimpleProductUpdate_productUpdate_product_pricing_priceRange | null;}@@ -163,21 +157,18 @@ export interface SimpleProductUpdate_productUpdate_product {seoTitle: string | null;seoDescription: string | null;category: SimpleProductUpdate_productUpdate_product_category;- collections:- | (SimpleProductUpdate_productUpdate_product_collections | null)[]- | null;- basePrice: SimpleProductUpdate_productUpdate_product_price | null;+ collections: (SimpleProductUpdate_productUpdate_product_collections | null)[] | null;+ basePrice: SimpleProductUpdate_productUpdate_product_basePrice | null;margin: SimpleProductUpdate_productUpdate_product_margin | null;purchaseCost: SimpleProductUpdate_productUpdate_product_purchaseCost | null;+ isAvailable: boolean | null;isPublished: boolean;chargeTaxes: boolean;publicationDate: any | null;attributes: SimpleProductUpdate_productUpdate_product_attributes[];pricing: SimpleProductUpdate_productUpdate_product_pricing | null;images: (SimpleProductUpdate_productUpdate_product_images | null)[] | null;- variants:- | (SimpleProductUpdate_productUpdate_product_variants | null)[]- | null;+ variants: (SimpleProductUpdate_productUpdate_product_variants | null)[] | null;productType: SimpleProductUpdate_productUpdate_product_productType;url: string;}@@ -206,9 +197,7 @@ export interface SimpleProductUpdate_productVariantUpdate_productVariant_attribuid: string;name: string | null;slug: string | null;- values:- | (SimpleProductUpdate_productVariantUpdate_productVariant_attributes_attribute_values | null)[]- | null;+ values: (SimpleProductUpdate_productVariantUpdate_productVariant_attributes_attribute_values | null)[] | null;}export interface SimpleProductUpdate_productVariantUpdate_productVariant_attributes_value {@@ -266,22 +255,16 @@ export interface SimpleProductUpdate_productVariantUpdate_productVariant_productid: string;name: string;sku: string;- images:- | (SimpleProductUpdate_productVariantUpdate_productVariant_product_variants_images | null)[]- | null;+ images: (SimpleProductUpdate_productVariantUpdate_productVariant_product_variants_images | null)[] | null;}export interface SimpleProductUpdate_productVariantUpdate_productVariant_product {__typename: "Product";id: string;- images:- | (SimpleProductUpdate_productVariantUpdate_productVariant_product_images | null)[]- | null;+ images: (SimpleProductUpdate_productVariantUpdate_productVariant_product_images | null)[] | null;name: string;thumbnail: SimpleProductUpdate_productVariantUpdate_productVariant_product_thumbnail | null;- variants:- | (SimpleProductUpdate_productVariantUpdate_productVariant_product_variants | null)[]- | null;+ variants: (SimpleProductUpdate_productVariantUpdate_productVariant_product_variants | null)[] | null;}export interface SimpleProductUpdate_productVariantUpdate_productVariant {@@ -289,9 +272,7 @@ export interface SimpleProductUpdate_productVariantUpdate_productVariant {id: string;attributes: SimpleProductUpdate_productVariantUpdate_productVariant_attributes[];costPrice: SimpleProductUpdate_productVariantUpdate_productVariant_costPrice | null;- images:- | (SimpleProductUpdate_productVariantUpdate_productVariant_images | null)[]- | null;+ images: (SimpleProductUpdate_productVariantUpdate_productVariant_images | null)[] | null;name: string;priceOverride: SimpleProductUpdate_productVariantUpdate_productVariant_priceOverride | null;product: SimpleProductUpdate_productVariantUpdate_productVariant_product;diff --git a/saleor/static/dashboard-next/products/views/ProductCreate.tsx b/saleor/static/dashboard-next/products/views/ProductCreate.tsxindex 0279a424b3..be64632c98 100644--- a/saleor/static/dashboard-next/products/views/ProductCreate.tsx+++ b/saleor/static/dashboard-next/products/views/ProductCreate.tsx@@ -58,7 +58,7 @@ export const ProductUpdate: React.StatelessComponent<productCreate({variables: {attributes: formData.attributes,- basePrice: decimal(formData.price),+ basePrice: decimal(formData.basePrice),category: formData.category.value,chargeTaxes: formData.chargeTaxes,collections: formData.collections.map(diff --git a/saleor/static/dashboard-next/products/views/ProductUpdate.tsx b/saleor/static/dashboard-next/products/views/ProductUpdate.tsxindex fed04b5707..78e12bac77 100644--- a/saleor/static/dashboard-next/products/views/ProductUpdate.tsx+++ b/saleor/static/dashboard-next/products/views/ProductUpdate.tsx@@ -124,7 +124,7 @@ export const ProductUpdate: React.StatelessComponent<ProductUpdateProps> = ({if (product.productType.hasVariants) {updateProduct.mutate({attributes: data.attributes,- basePrice: decimal(data.price),+ basePrice: decimal(data.basePrice),category: data.category.value,chargeTaxes: data.chargeTaxes,collections: data.collections.map(@@ -142,7 +142,7 @@ export const ProductUpdate: React.StatelessComponent<ProductUpdateProps> = ({} else {updateSimpleProduct.mutate({attributes: data.attributes,- basePrice: decimal(data.price),+ basePrice: decimal(data.basePrice),category: data.category.value,chargeTaxes: data.chargeTaxes,collections: data.collections.map(