Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Update product deprecated fields
Krzysztof Bialoglowicz2eeccc3ca8f4
diff --git a/saleor/static/dashboard-next/categories/components/CategoryProducts/CategoryProducts.tsx b/saleor/static/dashboard-next/categories/components/CategoryProducts/CategoryProducts.tsxindex 42e39b480d..d168c1ee3b 100644--- a/saleor/static/dashboard-next/categories/components/CategoryProducts/CategoryProducts.tsx+++ b/saleor/static/dashboard-next/categories/components/CategoryProducts/CategoryProducts.tsx@@ -41,7 +41,9 @@ interface ProductListProps extends WithStyles<typeof styles> {productType: {name: string;};- thumbnailUrl: string;+ thumbnail: {+ url: string;+ };}>;onAddProduct?();onNextPage?();@@ -95,7 +97,7 @@ export const ProductList = withStyles(styles, { name: "ProductList" })(products,product => (<TableRow key={product ? product.id : "skeleton"}>- <TableCellAvatar thumbnail={product && product.thumbnailUrl} />+ <TableCellAvatar thumbnail={product && product.thumbnail.url} /><TableCell className={classes.textLeft}>{product ? (<spandiff --git a/saleor/static/dashboard-next/categories/fixtures.ts b/saleor/static/dashboard-next/categories/fixtures.tsindex 9fc71ce5c3..c33f09bd82 100644--- a/saleor/static/dashboard-next/categories/fixtures.ts+++ b/saleor/static/dashboard-next/categories/fixtures.ts@@ -91,17 +91,17 @@ export const category: (cursor: "YXJyYXljb25uZWN0aW9uOjA=",node: {__typename: "Product",- availability: {- __typename: "ProductPricingInfo",- available: true- },- id: "UHJvZHVjdDoyMQ==",- name: "Gardner-Schultz",- price: {+ basePrice: {__typename: "Money",amount: 83.3,currency: "USD"},+ id: "UHJvZHVjdDoyMQ==",+ name: "Gardner-Schultz",+ pricing: {+ __typename: "ProductPricingInfo",+ available: true+ },productType: {__typename: "ProductType",id: "UHJvZHVjdFR5cGU6Mw==",@@ -115,17 +115,17 @@ export const category: (cursor: "YXJyYXljb25uZWN0aW9uOjE=",node: {__typename: "Product",- availability: {- __typename: "ProductPricingInfo",- available: true- },- id: "UHJvZHVjdDoyMg==",- name: "James, Martinez and Murray",- price: {+ basePrice: {__typename: "Money",amount: 68.27,currency: "USD"},+ id: "UHJvZHVjdDoyMg==",+ name: "James, Martinez and Murray",+ pricing: {+ __typename: "ProductPricingInfo",+ available: true+ },productType: {__typename: "ProductType",id: "UHJvZHVjdFR5cGU6Mw==",@@ -139,17 +139,17 @@ export const category: (cursor: "YXJyYXljb25uZWN0aW9uOjI=",node: {__typename: "Product",- availability: {- __typename: "ProductPricingInfo",- available: true- },- id: "UHJvZHVjdDoyMw==",- name: "Curtis, Joyce and Turner",- price: {+ basePrice: {__typename: "Money",amount: 21.43,currency: "USD"},+ id: "UHJvZHVjdDoyMw==",+ name: "Curtis, Joyce and Turner",+ pricing: {+ __typename: "ProductPricingInfo",+ available: true+ },productType: {__typename: "ProductType",id: "UHJvZHVjdFR5cGU6Mw==",@@ -163,17 +163,17 @@ export const category: (cursor: "YXJyYXljb25uZWN0aW9uOjM=",node: {__typename: "Product",- availability: {- __typename: "ProductPricingInfo",- available: true- },- id: "UHJvZHVjdDoyNA==",- name: "Davis, Brown and Ray",- price: {+ basePrice: {__typename: "Money",amount: 62.76,currency: "USD"},+ id: "UHJvZHVjdDoyNA==",+ name: "Davis, Brown and Ray",+ pricing: {+ __typename: "ProductPricingInfo",+ available: true+ },productType: {__typename: "ProductType",id: "UHJvZHVjdFR5cGU6Mw==",@@ -187,17 +187,17 @@ export const category: (cursor: "YXJyYXljb25uZWN0aW9uOjQ=",node: {__typename: "Product",- availability: {- __typename: "ProductPricingInfo",- available: true- },- id: "UHJvZHVjdDoyNQ==",- name: "Gallegos Ltd",- price: {+ basePrice: {__typename: "Money",amount: 7.13,currency: "USD"},+ id: "UHJvZHVjdDoyNQ==",+ name: "Gallegos Ltd",+ pricing: {+ __typename: "ProductPricingInfo",+ available: true+ },productType: {__typename: "ProductType",id: "UHJvZHVjdFR5cGU6Mw==",@@ -211,17 +211,17 @@ export const category: (cursor: "YXJyYXljb25uZWN0aW9uOjU=",node: {__typename: "Product",- availability: {- __typename: "ProductPricingInfo",- available: true- },- id: "UHJvZHVjdDoyNg==",- name: "Franklin Inc",- price: {+ basePrice: {__typename: "Money",amount: 48.82,currency: "USD"},+ id: "UHJvZHVjdDoyNg==",+ name: "Franklin Inc",+ pricing: {+ __typename: "ProductPricingInfo",+ available: true+ },productType: {__typename: "ProductType",id: "UHJvZHVjdFR5cGU6Mw==",@@ -235,17 +235,17 @@ export const category: (cursor: "YXJyYXljb25uZWN0aW9uOjY=",node: {__typename: "Product",- availability: {- __typename: "ProductPricingInfo",- available: true- },- id: "UHJvZHVjdDoyNw==",- name: "Williams-Taylor",- price: {+ basePrice: {__typename: "Money",amount: 27.34,currency: "USD"},+ id: "UHJvZHVjdDoyNw==",+ name: "Williams-Taylor",+ pricing: {+ __typename: "ProductPricingInfo",+ available: true+ },productType: {__typename: "ProductType",id: "UHJvZHVjdFR5cGU6Mw==",@@ -259,17 +259,17 @@ export const category: (cursor: "YXJyYXljb25uZWN0aW9uOjc=",node: {__typename: "Product",- availability: {- __typename: "ProductPricingInfo",- available: true- },- id: "UHJvZHVjdDoyOA==",- name: "Riddle, Evans and Hicks",- price: {+ basePrice: {__typename: "Money",amount: 75.42,currency: "USD"},+ id: "UHJvZHVjdDoyOA==",+ name: "Riddle, Evans and Hicks",+ pricing: {+ __typename: "ProductPricingInfo",+ available: true+ },productType: {__typename: "ProductType",id: "UHJvZHVjdFR5cGU6Mw==",@@ -283,17 +283,17 @@ export const category: (cursor: "YXJyYXljb25uZWN0aW9uOjg=",node: {__typename: "Product",- availability: {- __typename: "ProductPricingInfo",- available: true- },- id: "UHJvZHVjdDoyOQ==",- name: "Hebert-Sherman",- price: {+ basePrice: {__typename: "Money",amount: 86.62,currency: "USD"},+ id: "UHJvZHVjdDoyOQ==",+ name: "Hebert-Sherman",+ pricing: {+ __typename: "ProductPricingInfo",+ available: true+ },productType: {__typename: "ProductType",id: "UHJvZHVjdFR5cGU6Mw==",@@ -307,17 +307,17 @@ export const category: (cursor: "YXJyYXljb25uZWN0aW9uOjk=",node: {__typename: "Product",- availability: {- __typename: "ProductPricingInfo",- available: true- },- id: "UHJvZHVjdDozMA==",- name: "Carter and Sons",- price: {+ basePrice: {__typename: "Money",amount: 48.66,currency: "USD"},+ id: "UHJvZHVjdDozMA==",+ 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 6d3fc045f4..88493cf42d 100644--- a/saleor/static/dashboard-next/categories/queries.ts+++ b/saleor/static/dashboard-next/categories/queries.ts@@ -100,16 +100,16 @@ export const categoryDetails = gql`node {idname- availability {+ basePrice {+ amount+ currency+ }+ pricing {available}thumbnail {url}- price {- amount- currency- }productType {idnamediff --git a/saleor/static/dashboard-next/categories/types/CategoryDetails.ts b/saleor/static/dashboard-next/categories/types/CategoryDetails.tsindex 101a84c3ac..e1d2b940c6 100644--- a/saleor/static/dashboard-next/categories/types/CategoryDetails.ts+++ b/saleor/static/dashboard-next/categories/types/CategoryDetails.ts@@ -53,7 +53,7 @@ export interface CategoryDetails_category_products_pageInfo {startCursor: string | null;}-export interface CategoryDetails_category_products_edges_node_availability {+export interface CategoryDetails_category_products_edges_node_pricing {__typename: "ProductPricingInfo";available: boolean | null;}@@ -79,9 +79,9 @@ export interface CategoryDetails_category_products_edges_node {__typename: "Product";id: string;name: string;- availability: CategoryDetails_category_products_edges_node_availability | null;+ pricing: CategoryDetails_category_products_edges_node_pricing | null;thumbnail: CategoryDetails_category_products_edges_node_thumbnail | null;- price: CategoryDetails_category_products_edges_node_price | null;+ basePrice: CategoryDetails_category_products_edges_node_price | null;productType: CategoryDetails_category_products_edges_node_productType;}diff --git a/saleor/static/dashboard-next/collections/mutations.ts b/saleor/static/dashboard-next/collections/mutations.tsindex 8e72a2c327..94623492f8 100644--- a/saleor/static/dashboard-next/collections/mutations.ts+++ b/saleor/static/dashboard-next/collections/mutations.ts@@ -193,7 +193,9 @@ const unassignCollectionProduct = gql`idname}- thumbnailUrl+ thumbnail {+ url+ }}}pageInfo {diff --git a/saleor/static/dashboard-next/components/ProductList/ProductList.tsx b/saleor/static/dashboard-next/components/ProductList/ProductList.tsxindex 16b2c5cd1d..3b6488e24e 100644--- a/saleor/static/dashboard-next/components/ProductList/ProductList.tsx+++ b/saleor/static/dashboard-next/components/ProductList/ProductList.tsx@@ -153,18 +153,18 @@ export const ProductList = withStyles(styles, { name: "ProductList" })(</TableCell><TableCell className={classes.colPublished}>{product &&- product.availability &&- product.availability.available !== undefined ? (+ product.pricing &&+ product.pricing.available !== undefined ? (<StatusLabellabel={- product.availability.available+ product.pricing.available? i18n.t("Published", { context: "product status" }): i18n.t("Not published", {context: "product status"})}status={- product.availability.available ? "success" : "error"+ product.pricing.available ? "success" : "error"}/>) : (@@ -173,10 +173,10 @@ export const ProductList = withStyles(styles, { name: "ProductList" })(</TableCell><TableCell className={classes.colPrice}>{product &&- product.price &&- product.price.amount !== undefined &&- product.price.currency !== undefined ? (- <Money money={product.price} />+ product.basePrice &&+ product.basePrice.amount !== undefined &&+ product.basePrice.currency !== undefined ? (+ <Money money={product.basePrice} />) : (<Skeleton />)}diff --git a/saleor/static/dashboard-next/home/fixtures.ts b/saleor/static/dashboard-next/home/fixtures.tsindex 45e436b23f..16bb183f95 100644--- a/saleor/static/dashboard-next/home/fixtures.ts+++ b/saleor/static/dashboard-next/home/fixtures.ts@@ -300,13 +300,13 @@ export const shop: (placeholderImage: string) => Home = (id: "UHJvZHVjdFZhcmlhbnQ6NDM=",product: {__typename: "Product",- id: "UHJvZHVjdDo4",- name: "Gardner-Martin",- price: {+ basePrice: {__typename: "Money",amount: 37.65,currency: "USD"},+ id: "UHJvZHVjdDo4",+ name: "Gardner-Martin",thumbnail: {__typename: "Image",url: placeholderImagediff --git a/saleor/static/dashboard-next/products/components/ProductUpdatePage/ProductUpdatePage.tsx b/saleor/static/dashboard-next/products/components/ProductUpdatePage/ProductUpdatePage.tsxindex f0ac0c15e0..7a677f50ba 100644--- a/saleor/static/dashboard-next/products/components/ProductUpdatePage/ProductUpdatePage.tsx+++ b/saleor/static/dashboard-next/products/components/ProductUpdatePage/ProductUpdatePage.tsx@@ -151,7 +151,7 @@ export const ProductUpdate: React.StatelessComponent<ProductUpdateProps> = ({: [],description: maybe(() => JSON.parse(product.descriptionJson)),name: maybe(() => product.name),- price: maybe(() => product.price.amount),+ price: maybe(() => product.basePrice.amount),productType: maybe(() => ({label: product.productType.name,value: {@@ -194,7 +194,7 @@ export const ProductUpdate: React.StatelessComponent<ProductUpdateProps> = ({})): [];const currency =- product && product.price ? product.price.currency : undefined;+ product && product.basePrice ? product.basePrice.currency : undefined;const hasVariants =product && product.productType && product.productType.hasVariants;@@ -240,7 +240,7 @@ export const ProductUpdate: React.StatelessComponent<ProductUpdateProps> = ({<ProductVariantsdisabled={disabled}variants={variants}- fallbackPrice={product ? product.price : undefined}+ fallbackPrice={product ? product.basePrice : undefined}onAttributesEdit={onAttributesEdit}onRowClick={onVariantShow}onVariantAdd={onVariantAdd}diff --git a/saleor/static/dashboard-next/products/fixtures.ts b/saleor/static/dashboard-next/products/fixtures.tsindex 016b1868a6..ff719c8eff 100644--- a/saleor/static/dashboard-next/products/fixtures.ts+++ b/saleor/static/dashboard-next/products/fixtures.ts@@ -90,38 +90,11 @@ export const product: (}}],- availability: {- __typename: "ProductPricingInfo",- available: false,- priceRange: {- __typename: "TaxedMoneyRange",- start: {- __typename: "TaxedMoney",- gross: {- __typename: "Money",- amount: 12.3,- currency: "USD"- },- net: {- __typename: "Money",- amount: 10,- currency: "USD"- }- },- stop: {- __typename: "TaxedMoney",- gross: {- __typename: "Money",- amount: 24.6,- currency: "USD"- },- net: {- __typename: "Money",- amount: 20,- currency: "USD"- }- }- }+ basePrice: {+ __typename: "Money",+ amount: 339.39,+ currency: "NZD",+ localized: "339.39 NZD"},category: { __typename: "Category", id: "Q2F0ZWdvcnk6MQ==", name: "Apparel" },chargeTaxes: true,@@ -175,11 +148,38 @@ export const product: (isPublished: true,margin: { __typename: "Margin", start: 2, stop: 7 },name: "Ergonomic Plastic Bacon",- price: {- __typename: "Money",- amount: 339.39,- currency: "NZD",- localized: "339.39 NZD"+ pricing: {+ __typename: "ProductPricingInfo",+ available: false,+ priceRange: {+ __typename: "TaxedMoneyRange",+ start: {+ __typename: "TaxedMoney",+ gross: {+ __typename: "Money",+ amount: 12.3,+ currency: "USD"+ },+ net: {+ __typename: "Money",+ amount: 10,+ currency: "USD"+ }+ },+ stop: {+ __typename: "TaxedMoney",+ gross: {+ __typename: "Money",+ amount: 24.6,+ currency: "USD"+ },+ net: {+ __typename: "Money",+ amount: 20,+ currency: "USD"+ }+ }+ }},productType: {__typename: "ProductType",@@ -406,7 +406,7 @@ export const products = (placeholderImage: string) => [}}],- availability: { available: true },+ basePrice: { amount: 274.99389477595827, currency: "XAG" },category: { id: "Q2F0ZWdvcnk6MQ==", name: "Apparel" },collections: {edges: [{ node: { id: "Q29sbGVjdGlvbjoy", name: "Winter sale" } }]@@ -430,7 +430,7 @@ export const products = (placeholderImage: string) => [isPublished: false,margin: { start: 6, stop: 18 },name: "Gorgeous Frozen Chips",- price: { amount: 274.99389477595827, currency: "XAG" },+ pricing: { available: true },productType: {hasVariants: true,id: "pt41284",@@ -567,7 +567,7 @@ export const products = (placeholderImage: string) => [}}],- availability: { available: true },+ basePrice: { amount: 432.2991706153576, currency: "ZWL" },category: { id: "Q2F0ZWdvcnk6MQ==", name: "Apparel" },collections: {edges: [{ node: { id: "Q29sbGVjdGlvbjoy", name: "Winter sale" } }]@@ -591,7 +591,7 @@ export const products = (placeholderImage: string) => [isPublished: true,margin: { start: 4, stop: 19 },name: "Handcrafted Wooden Towels",- price: { amount: 432.2991706153576, currency: "ZWL" },+ pricing: { available: true },productType: { hasVariants: false, id: "pt29020", name: "Future" },publicationDate: null,purchaseCost: {@@ -764,7 +764,7 @@ export const products = (placeholderImage: string) => [}}],- availability: { available: false },+ basePrice: { amount: 688.3543328975433, currency: "XDR" },category: { id: "Q2F0ZWdvcnk6MQ==", name: "Apparel" },collections: {edges: [{ node: { id: "Q29sbGVjdGlvbjoy", name: "Winter sale" } }]@@ -788,7 +788,7 @@ export const products = (placeholderImage: string) => [isPublished: true,margin: { start: 3, stop: 18 },name: "Handcrafted Metal Cheese",- price: { amount: 688.3543328975433, currency: "XDR" },+ pricing: { available: false },productType: { hasVariants: true, id: "pt23508", name: "SMS" },publicationDate: null,purchaseCost: {@@ -972,7 +972,7 @@ export const products = (placeholderImage: string) => [value: { id: "ptav60428", name: "HDD", slug: "HDD", sortOrder: 3 }}],- availability: { available: false },+ basePrice: { amount: 540.3817687240911, currency: "SLL" },category: { id: "Q2F0ZWdvcnk6MQ==", name: "Apparel" },collections: {edges: [{ node: { id: "Q29sbGVjdGlvbjoy", name: "Winter sale" } }]@@ -996,7 +996,7 @@ export const products = (placeholderImage: string) => [isPublished: true,margin: { start: 4, stop: 19 },name: "Refined Rubber Keyboard",- price: { amount: 540.3817687240911, currency: "SLL" },+ pricing: { available: false },productType: { hasVariants: false, id: "pt20625", name: "Virtual" },publicationDate: null,purchaseCost: {@@ -1189,7 +1189,7 @@ export const products = (placeholderImage: string) => [value: { id: "ptav52878", name: "Burgs", slug: "Burgs", sortOrder: 0 }}],- availability: { available: true },+ basePrice: { amount: 4.359138839276078, currency: "AMD" },category: { id: "Q2F0ZWdvcnk6MQ==", name: "Apparel" },collections: {edges: [{ node: { id: "Q29sbGVjdGlvbjoy", name: "Winter sale" } }]@@ -1213,7 +1213,7 @@ export const products = (placeholderImage: string) => [isPublished: false,margin: { start: 6, stop: 17 },name: "Gorgeous Metal Gloves",- price: { amount: 4.359138839276078, currency: "AMD" },+ pricing: { available: true },productType: { hasVariants: true, id: "pt91547", name: "Vermont" },publicationDate: null,purchaseCost: {@@ -1445,7 +1445,7 @@ export const products = (placeholderImage: string) => [}}],- availability: { available: false },+ basePrice: { amount: 538.0974149450597, currency: "GMD" },category: { id: "Q2F0ZWdvcnk6MQ==", name: "Apparel" },collections: {edges: [{ node: { id: "Q29sbGVjdGlvbjoy", name: "Winter sale" } }]@@ -1469,7 +1469,7 @@ export const products = (placeholderImage: string) => [isPublished: false,margin: { start: 1, stop: 15 },name: "Small Cotton Shirt",- price: { amount: 538.0974149450597, currency: "GMD" },+ pricing: { available: false },productType: { hasVariants: false, id: "pt69941", name: "Gorgeous" },publicationDate: null,purchaseCost: {@@ -1640,7 +1640,7 @@ export const products = (placeholderImage: string) => [value: { id: "ptav70505", name: "Avon", slug: "Avon", sortOrder: 0 }}],- availability: { available: false },+ basePrice: { amount: 56.90596710694962, currency: "CVE" },category: { id: "Q2F0ZWdvcnk6MQ==", name: "Apparel" },collections: {edges: [{ node: { id: "Q29sbGVjdGlvbjoy", name: "Winter sale" } }]@@ -1664,7 +1664,7 @@ export const products = (placeholderImage: string) => [isPublished: false,margin: { start: 0, stop: 4 },name: "Fantastic Cotton Tuna",- price: { amount: 56.90596710694962, currency: "CVE" },+ pricing: { available: false },productType: { hasVariants: true, id: "pt41677", name: "TCP" },publicationDate: null,purchaseCost: {@@ -1749,7 +1749,7 @@ export const products = (placeholderImage: string) => [value: { id: "ptav98940", name: "silver", slug: "silver", sortOrder: 0 }}],- availability: { available: false },+ basePrice: { amount: 981.0598640464501, currency: "XAG" },category: { id: "Q2F0ZWdvcnk6MQ==", name: "Apparel" },collections: {edges: [{ node: { id: "Q29sbGVjdGlvbjoy", name: "Winter sale" } }]@@ -1773,7 +1773,7 @@ export const products = (placeholderImage: string) => [isPublished: true,margin: { start: 0, stop: 18 },name: "Tasty Steel Pants",- price: { amount: 981.0598640464501, currency: "XAG" },+ pricing: { available: false },productType: { hasVariants: true, id: "pt93233", name: "Buckinghamshire" },publicationDate: null,purchaseCost: {@@ -1956,7 +1956,7 @@ export const products = (placeholderImage: string) => [value: { id: "ptav77181", name: "orchid", slug: "orchid", sortOrder: 1 }}],- availability: { available: true },+ basePrice: { amount: 449.93166054829857, currency: "WST" },category: { id: "Q2F0ZWdvcnk6MQ==", name: "Apparel" },collections: {edges: [{ node: { id: "Q29sbGVjdGlvbjoy", name: "Winter sale" } }]@@ -1980,7 +1980,7 @@ export const products = (placeholderImage: string) => [isPublished: true,margin: { start: 0, stop: 11 },name: "Ergonomic Cotton Shoes",- price: { amount: 449.93166054829857, currency: "WST" },+ pricing: { available: true },productType: { hasVariants: true, id: "pt53386", name: "Jewelery" },publicationDate: null,purchaseCost: {@@ -2088,7 +2088,7 @@ export const products = (placeholderImage: string) => [}}],- availability: { available: false },+ basePrice: { amount: 590.5928694420302, currency: "MGA" },category: { id: "Q2F0ZWdvcnk6MQ==", name: "Apparel" },collections: {edges: [{ node: { id: "Q29sbGVjdGlvbjoy", name: "Winter sale" } }]@@ -2112,7 +2112,7 @@ export const products = (placeholderImage: string) => [isPublished: true,margin: { start: 4, stop: 17 },name: "Unbranded Steel Tuna",- price: { amount: 590.5928694420302, currency: "MGA" },+ 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 a2e5b0c9fd..0dc0cb0acb 100644--- a/saleor/static/dashboard-next/products/mutations.ts+++ b/saleor/static/dashboard-next/products/mutations.ts@@ -123,7 +123,7 @@ export const productUpdateMutation = gql`$descriptionJson: JSONString$isPublished: Boolean!$name: String- $price: Decimal+ $basePrice: Decimal) {productUpdate(id: $id@@ -136,7 +136,7 @@ export const productUpdateMutation = gql`descriptionJson: $descriptionJsonisPublished: $isPublishedname: $name- price: $price+ basePrice: $basePrice}) {errors {diff --git a/saleor/static/dashboard-next/products/queries.ts b/saleor/static/dashboard-next/products/queries.tsindex c5b41927e7..69bd1d83df 100644--- a/saleor/static/dashboard-next/products/queries.ts+++ b/saleor/static/dashboard-next/products/queries.ts@@ -52,10 +52,10 @@ export const productFragment = gql`thumbnail {url}- availability {+ pricing {available}- price {+ basePrice {...Money}productType {@@ -81,7 +81,7 @@ export const productFragmentDetails = gql`idname}- price {+ basePrice {...Money}margin {@@ -115,7 +115,7 @@ export const productFragmentDetails = gql`slug}}- availability {+ pricing {availablepriceRange {start {diff --git a/saleor/static/dashboard-next/products/types/Product.ts b/saleor/static/dashboard-next/products/types/Product.tsindex 9797b91e99..da13e33fab 100644--- a/saleor/static/dashboard-next/products/types/Product.ts+++ b/saleor/static/dashboard-next/products/types/Product.ts@@ -75,38 +75,38 @@ export interface Product_attributes {value: Product_attributes_value;}-export interface Product_availability_priceRange_start_net {+export interface Product_pricing_priceRange_start_net {__typename: "Money";amount: number;currency: string;}-export interface Product_availability_priceRange_start {+export interface Product_pricing_priceRange_start {__typename: "TaxedMoney";- net: Product_availability_priceRange_start_net;+ net: Product_pricing_priceRange_start_net;}-export interface Product_availability_priceRange_stop_net {+export interface Product_pricing_priceRange_stop_net {__typename: "Money";amount: number;currency: string;}-export interface Product_availability_priceRange_stop {+export interface Product_pricing_priceRange_stop {__typename: "TaxedMoney";- net: Product_availability_priceRange_stop_net;+ net: Product_pricing_priceRange_stop_net;}-export interface Product_availability_priceRange {+export interface Product_pricing_priceRange {__typename: "TaxedMoneyRange";- start: Product_availability_priceRange_start | null;- stop: Product_availability_priceRange_stop | null;+ start: Product_pricing_priceRange_start | null;+ stop: Product_pricing_priceRange_stop | null;}-export interface Product_availability {+export interface Product_pricing {__typename: "ProductPricingInfo";available: boolean | null;- priceRange: Product_availability_priceRange | null;+ priceRange: Product_pricing_priceRange | null;}export interface Product_images {@@ -151,14 +151,14 @@ export interface Product {seoDescription: string | null;category: Product_category;collections: (Product_collections | null)[] | null;- price: Product_price | null;+ basePrice: Product_price | null;margin: Product_margin | null;purchaseCost: Product_purchaseCost | null;isPublished: boolean;chargeTaxes: boolean;publicationDate: any | null;attributes: Product_attributes[];- availability: Product_availability | null;+ pricing: Product_pricing | null;images: (Product_images | null)[] | null;variants: (Product_variants | null)[] | null;productType: Product_productType;diff --git a/saleor/static/dashboard-next/products/types/ProductCreate.ts b/saleor/static/dashboard-next/products/types/ProductCreate.tsindex a8e9bb0283..04fc923a52 100644--- a/saleor/static/dashboard-next/products/types/ProductCreate.ts+++ b/saleor/static/dashboard-next/products/types/ProductCreate.ts@@ -67,7 +67,9 @@ 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 {@@ -83,38 +85,38 @@ export interface ProductCreate_productCreate_product_attributes {value: ProductCreate_productCreate_product_attributes_value;}-export interface ProductCreate_productCreate_product_availability_priceRange_start_net {+export interface ProductCreate_productCreate_product_pricing_priceRange_start_net {__typename: "Money";amount: number;currency: string;}-export interface ProductCreate_productCreate_product_availability_priceRange_start {+export interface ProductCreate_productCreate_product_pricing_priceRange_start {__typename: "TaxedMoney";- net: ProductCreate_productCreate_product_availability_priceRange_start_net;+ net: ProductCreate_productCreate_product_pricing_priceRange_start_net;}-export interface ProductCreate_productCreate_product_availability_priceRange_stop_net {+export interface ProductCreate_productCreate_product_pricing_priceRange_stop_net {__typename: "Money";amount: number;currency: string;}-export interface ProductCreate_productCreate_product_availability_priceRange_stop {+export interface ProductCreate_productCreate_product_pricing_priceRange_stop {__typename: "TaxedMoney";- net: ProductCreate_productCreate_product_availability_priceRange_stop_net;+ net: ProductCreate_productCreate_product_pricing_priceRange_stop_net;}-export interface ProductCreate_productCreate_product_availability_priceRange {+export interface ProductCreate_productCreate_product_pricing_priceRange {__typename: "TaxedMoneyRange";- start: ProductCreate_productCreate_product_availability_priceRange_start | null;- stop: ProductCreate_productCreate_product_availability_priceRange_stop | null;+ start: ProductCreate_productCreate_product_pricing_priceRange_start | null;+ stop: ProductCreate_productCreate_product_pricing_priceRange_stop | null;}-export interface ProductCreate_productCreate_product_availability {+export interface ProductCreate_productCreate_product_pricing {__typename: "ProductPricingInfo";available: boolean | null;- priceRange: ProductCreate_productCreate_product_availability_priceRange | null;+ priceRange: ProductCreate_productCreate_product_pricing_priceRange | null;}export interface ProductCreate_productCreate_product_images {@@ -158,15 +160,17 @@ export interface ProductCreate_productCreate_product {seoTitle: string | null;seoDescription: string | null;category: ProductCreate_productCreate_product_category;- collections: (ProductCreate_productCreate_product_collections | null)[] | null;- price: ProductCreate_productCreate_product_price | null;+ collections:+ | (ProductCreate_productCreate_product_collections | null)[]+ | null;+ basePrice: ProductCreate_productCreate_product_price | null;margin: ProductCreate_productCreate_product_margin | null;purchaseCost: ProductCreate_productCreate_product_purchaseCost | null;isPublished: boolean;chargeTaxes: boolean;publicationDate: any | null;attributes: ProductCreate_productCreate_product_attributes[];- availability: ProductCreate_productCreate_product_availability | null;+ pricing: ProductCreate_productCreate_product_pricing | null;images: (ProductCreate_productCreate_product_images | null)[] | null;variants: (ProductCreate_productCreate_product_variants | null)[] | null;productType: ProductCreate_productCreate_product_productType;@@ -192,7 +196,7 @@ export interface ProductCreateVariables {descriptionJson?: any | null;isPublished: boolean;name: string;- price?: any | null;+ basePrice?: any | null;productType: string;sku?: string | null;stockQuantity?: number | null;diff --git a/saleor/static/dashboard-next/products/types/ProductDetails.ts b/saleor/static/dashboard-next/products/types/ProductDetails.tsindex 1623b5985a..3b1c2246a3 100644--- a/saleor/static/dashboard-next/products/types/ProductDetails.ts+++ b/saleor/static/dashboard-next/products/types/ProductDetails.ts@@ -75,38 +75,38 @@ export interface ProductDetails_product_attributes {value: ProductDetails_product_attributes_value;}-export interface ProductDetails_product_availability_priceRange_start_net {+export interface ProductDetails_product_pricing_priceRange_start_net {__typename: "Money";amount: number;currency: string;}-export interface ProductDetails_product_availability_priceRange_start {+export interface ProductDetails_product_pricing_priceRange_start {__typename: "TaxedMoney";- net: ProductDetails_product_availability_priceRange_start_net;+ net: ProductDetails_product_pricing_priceRange_start_net;}-export interface ProductDetails_product_availability_priceRange_stop_net {+export interface ProductDetails_product_pricing_priceRange_stop_net {__typename: "Money";amount: number;currency: string;}-export interface ProductDetails_product_availability_priceRange_stop {+export interface ProductDetails_product_pricing_priceRange_stop {__typename: "TaxedMoney";- net: ProductDetails_product_availability_priceRange_stop_net;+ net: ProductDetails_product_pricing_priceRange_stop_net;}-export interface ProductDetails_product_availability_priceRange {+export interface ProductDetails_product_pricing_priceRange {__typename: "TaxedMoneyRange";- start: ProductDetails_product_availability_priceRange_start | null;- stop: ProductDetails_product_availability_priceRange_stop | null;+ start: ProductDetails_product_pricing_priceRange_start | null;+ stop: ProductDetails_product_pricing_priceRange_stop | null;}-export interface ProductDetails_product_availability {+export interface ProductDetails_product_pricing {__typename: "ProductPricingInfo";available: boolean | null;- priceRange: ProductDetails_product_availability_priceRange | null;+ priceRange: ProductDetails_product_pricing_priceRange | null;}export interface ProductDetails_product_images {@@ -151,14 +151,14 @@ export interface ProductDetails_product {seoDescription: string | null;category: ProductDetails_product_category;collections: (ProductDetails_product_collections | null)[] | null;- price: ProductDetails_product_price | null;+ basePrice: ProductDetails_product_price | null;margin: ProductDetails_product_margin | null;purchaseCost: ProductDetails_product_purchaseCost | null;isPublished: boolean;chargeTaxes: boolean;publicationDate: any | null;attributes: ProductDetails_product_attributes[];- availability: ProductDetails_product_availability | null;+ pricing: ProductDetails_product_pricing | null;images: (ProductDetails_product_images | null)[] | null;variants: (ProductDetails_product_variants | null)[] | null;productType: ProductDetails_product_productType;diff --git a/saleor/static/dashboard-next/products/types/ProductFragment.ts b/saleor/static/dashboard-next/products/types/ProductFragment.tsindex b831bfed3c..dbb39237b4 100644--- a/saleor/static/dashboard-next/products/types/ProductFragment.ts+++ b/saleor/static/dashboard-next/products/types/ProductFragment.ts@@ -11,7 +11,7 @@ export interface ProductFragment_thumbnail {url: string;}-export interface ProductFragment_availability {+export interface ProductFragment_pricing {__typename: "ProductPricingInfo";available: boolean | null;}@@ -33,7 +33,7 @@ export interface ProductFragment {id: string;name: string;thumbnail: ProductFragment_thumbnail | null;- availability: ProductFragment_availability | null;- price: ProductFragment_price | null;+ pricing: ProductFragment_pricing | null;+ basePrice: ProductFragment_price | null;productType: ProductFragment_productType;}diff --git a/saleor/static/dashboard-next/products/types/ProductImageCreate.ts b/saleor/static/dashboard-next/products/types/ProductImageCreate.tsindex f751ed83f5..c4b456489b 100644--- a/saleor/static/dashboard-next/products/types/ProductImageCreate.ts+++ b/saleor/static/dashboard-next/products/types/ProductImageCreate.ts@@ -65,7 +65,9 @@ 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 {@@ -81,38 +83,38 @@ export interface ProductImageCreate_productImageCreate_product_attributes {value: ProductImageCreate_productImageCreate_product_attributes_value;}-export interface ProductImageCreate_productImageCreate_product_availability_priceRange_start_net {+export interface ProductImageCreate_productImageCreate_product_pricing_priceRange_start_net {__typename: "Money";amount: number;currency: string;}-export interface ProductImageCreate_productImageCreate_product_availability_priceRange_start {+export interface ProductImageCreate_productImageCreate_product_pricing_priceRange_start {__typename: "TaxedMoney";- net: ProductImageCreate_productImageCreate_product_availability_priceRange_start_net;+ net: ProductImageCreate_productImageCreate_product_pricing_priceRange_start_net;}-export interface ProductImageCreate_productImageCreate_product_availability_priceRange_stop_net {+export interface ProductImageCreate_productImageCreate_product_pricing_priceRange_stop_net {__typename: "Money";amount: number;currency: string;}-export interface ProductImageCreate_productImageCreate_product_availability_priceRange_stop {+export interface ProductImageCreate_productImageCreate_product_pricing_priceRange_stop {__typename: "TaxedMoney";- net: ProductImageCreate_productImageCreate_product_availability_priceRange_stop_net;+ net: ProductImageCreate_productImageCreate_product_pricing_priceRange_stop_net;}-export interface ProductImageCreate_productImageCreate_product_availability_priceRange {+export interface ProductImageCreate_productImageCreate_product_pricing_priceRange {__typename: "TaxedMoneyRange";- start: ProductImageCreate_productImageCreate_product_availability_priceRange_start | null;- stop: ProductImageCreate_productImageCreate_product_availability_priceRange_stop | null;+ start: ProductImageCreate_productImageCreate_product_pricing_priceRange_start | null;+ stop: ProductImageCreate_productImageCreate_product_pricing_priceRange_stop | null;}-export interface ProductImageCreate_productImageCreate_product_availability {+export interface ProductImageCreate_productImageCreate_product_pricing {__typename: "ProductPricingInfo";available: boolean | null;- priceRange: ProductImageCreate_productImageCreate_product_availability_priceRange | null;+ priceRange: ProductImageCreate_productImageCreate_product_pricing_priceRange | null;}export interface ProductImageCreate_productImageCreate_product_images {@@ -156,17 +158,23 @@ export interface ProductImageCreate_productImageCreate_product {seoTitle: string | null;seoDescription: string | null;category: ProductImageCreate_productImageCreate_product_category;- collections: (ProductImageCreate_productImageCreate_product_collections | null)[] | null;- price: ProductImageCreate_productImageCreate_product_price | null;+ collections:+ | (ProductImageCreate_productImageCreate_product_collections | null)[]+ | null;+ basePrice: ProductImageCreate_productImageCreate_product_price | null;margin: ProductImageCreate_productImageCreate_product_margin | null;purchaseCost: ProductImageCreate_productImageCreate_product_purchaseCost | null;isPublished: boolean;chargeTaxes: boolean;publicationDate: any | null;attributes: ProductImageCreate_productImageCreate_product_attributes[];- availability: ProductImageCreate_productImageCreate_product_availability | null;- images: (ProductImageCreate_productImageCreate_product_images | null)[] | null;- variants: (ProductImageCreate_productImageCreate_product_variants | null)[] | null;+ pricing: ProductImageCreate_productImageCreate_product_pricing | 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 734eaf0fdd..9e38ea59d1 100644--- a/saleor/static/dashboard-next/products/types/ProductImageUpdate.ts+++ b/saleor/static/dashboard-next/products/types/ProductImageUpdate.ts@@ -65,7 +65,9 @@ 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 {@@ -81,38 +83,38 @@ export interface ProductImageUpdate_productImageUpdate_product_attributes {value: ProductImageUpdate_productImageUpdate_product_attributes_value;}-export interface ProductImageUpdate_productImageUpdate_product_availability_priceRange_start_net {+export interface ProductImageUpdate_productImageUpdate_product_pricing_priceRange_start_net {__typename: "Money";amount: number;currency: string;}-export interface ProductImageUpdate_productImageUpdate_product_availability_priceRange_start {+export interface ProductImageUpdate_productImageUpdate_product_pricing_priceRange_start {__typename: "TaxedMoney";- net: ProductImageUpdate_productImageUpdate_product_availability_priceRange_start_net;+ net: ProductImageUpdate_productImageUpdate_product_pricing_priceRange_start_net;}-export interface ProductImageUpdate_productImageUpdate_product_availability_priceRange_stop_net {+export interface ProductImageUpdate_productImageUpdate_product_pricing_priceRange_stop_net {__typename: "Money";amount: number;currency: string;}-export interface ProductImageUpdate_productImageUpdate_product_availability_priceRange_stop {+export interface ProductImageUpdate_productImageUpdate_product_pricing_priceRange_stop {__typename: "TaxedMoney";- net: ProductImageUpdate_productImageUpdate_product_availability_priceRange_stop_net;+ net: ProductImageUpdate_productImageUpdate_product_pricing_priceRange_stop_net;}-export interface ProductImageUpdate_productImageUpdate_product_availability_priceRange {+export interface ProductImageUpdate_productImageUpdate_product_pricing_priceRange {__typename: "TaxedMoneyRange";- start: ProductImageUpdate_productImageUpdate_product_availability_priceRange_start | null;- stop: ProductImageUpdate_productImageUpdate_product_availability_priceRange_stop | null;+ start: ProductImageUpdate_productImageUpdate_product_pricing_priceRange_start | null;+ stop: ProductImageUpdate_productImageUpdate_product_pricing_priceRange_stop | null;}-export interface ProductImageUpdate_productImageUpdate_product_availability {+export interface ProductImageUpdate_productImageUpdate_product_pricing {__typename: "ProductPricingInfo";available: boolean | null;- priceRange: ProductImageUpdate_productImageUpdate_product_availability_priceRange | null;+ priceRange: ProductImageUpdate_productImageUpdate_product_pricing_priceRange | null;}export interface ProductImageUpdate_productImageUpdate_product_images {@@ -156,17 +158,23 @@ export interface ProductImageUpdate_productImageUpdate_product {seoTitle: string | null;seoDescription: string | null;category: ProductImageUpdate_productImageUpdate_product_category;- collections: (ProductImageUpdate_productImageUpdate_product_collections | null)[] | null;- price: ProductImageUpdate_productImageUpdate_product_price | null;+ collections:+ | (ProductImageUpdate_productImageUpdate_product_collections | null)[]+ | null;+ basePrice: ProductImageUpdate_productImageUpdate_product_price | null;margin: ProductImageUpdate_productImageUpdate_product_margin | null;purchaseCost: ProductImageUpdate_productImageUpdate_product_purchaseCost | null;isPublished: boolean;chargeTaxes: boolean;publicationDate: any | null;attributes: ProductImageUpdate_productImageUpdate_product_attributes[];- availability: ProductImageUpdate_productImageUpdate_product_availability | null;- images: (ProductImageUpdate_productImageUpdate_product_images | null)[] | null;- variants: (ProductImageUpdate_productImageUpdate_product_variants | null)[] | null;+ pricing: ProductImageUpdate_productImageUpdate_product_pricing | 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 cfb7cd582a..7968265c26 100644--- a/saleor/static/dashboard-next/products/types/ProductList.ts+++ b/saleor/static/dashboard-next/products/types/ProductList.ts@@ -13,7 +13,7 @@ export interface ProductList_products_edges_node_thumbnail {url: string;}-export interface ProductList_products_edges_node_availability {+export interface ProductList_products_edges_node_pricing {__typename: "ProductPricingInfo";available: boolean | null;}@@ -35,8 +35,8 @@ export interface ProductList_products_edges_node {id: string;name: string;thumbnail: ProductList_products_edges_node_thumbnail | null;- availability: ProductList_products_edges_node_availability | null;- price: ProductList_products_edges_node_price | null;+ pricing: ProductList_products_edges_node_pricing | null;+ basePrice: ProductList_products_edges_node_price | 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 615a089ef4..96dddd2c28 100644--- a/saleor/static/dashboard-next/products/types/ProductUpdate.ts+++ b/saleor/static/dashboard-next/products/types/ProductUpdate.ts@@ -67,7 +67,9 @@ 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 {@@ -83,38 +85,38 @@ export interface ProductUpdate_productUpdate_product_attributes {value: ProductUpdate_productUpdate_product_attributes_value;}-export interface ProductUpdate_productUpdate_product_availability_priceRange_start_net {+export interface ProductUpdate_productUpdate_product_pricing_priceRange_start_net {__typename: "Money";amount: number;currency: string;}-export interface ProductUpdate_productUpdate_product_availability_priceRange_start {+export interface ProductUpdate_productUpdate_product_pricing_priceRange_start {__typename: "TaxedMoney";- net: ProductUpdate_productUpdate_product_availability_priceRange_start_net;+ net: ProductUpdate_productUpdate_product_pricing_priceRange_start_net;}-export interface ProductUpdate_productUpdate_product_availability_priceRange_stop_net {+export interface ProductUpdate_productUpdate_product_pricing_priceRange_stop_net {__typename: "Money";amount: number;currency: string;}-export interface ProductUpdate_productUpdate_product_availability_priceRange_stop {+export interface ProductUpdate_productUpdate_product_pricing_priceRange_stop {__typename: "TaxedMoney";- net: ProductUpdate_productUpdate_product_availability_priceRange_stop_net;+ net: ProductUpdate_productUpdate_product_pricing_priceRange_stop_net;}-export interface ProductUpdate_productUpdate_product_availability_priceRange {+export interface ProductUpdate_productUpdate_product_pricing_priceRange {__typename: "TaxedMoneyRange";- start: ProductUpdate_productUpdate_product_availability_priceRange_start | null;- stop: ProductUpdate_productUpdate_product_availability_priceRange_stop | null;+ start: ProductUpdate_productUpdate_product_pricing_priceRange_start | null;+ stop: ProductUpdate_productUpdate_product_pricing_priceRange_stop | null;}-export interface ProductUpdate_productUpdate_product_availability {+export interface ProductUpdate_productUpdate_product_pricing {__typename: "ProductPricingInfo";available: boolean | null;- priceRange: ProductUpdate_productUpdate_product_availability_priceRange | null;+ priceRange: ProductUpdate_productUpdate_product_pricing_priceRange | null;}export interface ProductUpdate_productUpdate_product_images {@@ -158,15 +160,17 @@ export interface ProductUpdate_productUpdate_product {seoTitle: string | null;seoDescription: string | null;category: ProductUpdate_productUpdate_product_category;- collections: (ProductUpdate_productUpdate_product_collections | null)[] | null;- price: ProductUpdate_productUpdate_product_price | null;+ collections:+ | (ProductUpdate_productUpdate_product_collections | null)[]+ | null;+ basePrice: ProductUpdate_productUpdate_product_price | null;margin: ProductUpdate_productUpdate_product_margin | null;purchaseCost: ProductUpdate_productUpdate_product_purchaseCost | null;isPublished: boolean;chargeTaxes: boolean;publicationDate: any | null;attributes: ProductUpdate_productUpdate_product_attributes[];- availability: ProductUpdate_productUpdate_product_availability | null;+ pricing: ProductUpdate_productUpdate_product_pricing | null;images: (ProductUpdate_productUpdate_product_images | null)[] | null;variants: (ProductUpdate_productUpdate_product_variants | null)[] | null;productType: ProductUpdate_productUpdate_product_productType;@@ -193,5 +197,5 @@ export interface ProductUpdateVariables {descriptionJson?: any | null;isPublished: boolean;name?: string | null;- price?: any | null;+ basePrice?: any | null;}diff --git a/saleor/static/dashboard-next/products/types/SimpleProductUpdate.ts b/saleor/static/dashboard-next/products/types/SimpleProductUpdate.tsindex 99e9d6e5f4..79d4a7b2a0 100644--- a/saleor/static/dashboard-next/products/types/SimpleProductUpdate.ts+++ b/saleor/static/dashboard-next/products/types/SimpleProductUpdate.ts@@ -2,7 +2,10 @@/* 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@@ -67,7 +70,9 @@ 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 {@@ -83,38 +88,38 @@ export interface SimpleProductUpdate_productUpdate_product_attributes {value: SimpleProductUpdate_productUpdate_product_attributes_value;}-export interface SimpleProductUpdate_productUpdate_product_availability_priceRange_start_net {+export interface SimpleProductUpdate_productUpdate_product_pricing_priceRange_start_net {__typename: "Money";amount: number;currency: string;}-export interface SimpleProductUpdate_productUpdate_product_availability_priceRange_start {+export interface SimpleProductUpdate_productUpdate_product_pricing_priceRange_start {__typename: "TaxedMoney";- net: SimpleProductUpdate_productUpdate_product_availability_priceRange_start_net;+ net: SimpleProductUpdate_productUpdate_product_pricing_priceRange_start_net;}-export interface SimpleProductUpdate_productUpdate_product_availability_priceRange_stop_net {+export interface SimpleProductUpdate_productUpdate_product_pricing_priceRange_stop_net {__typename: "Money";amount: number;currency: string;}-export interface SimpleProductUpdate_productUpdate_product_availability_priceRange_stop {+export interface SimpleProductUpdate_productUpdate_product_pricing_priceRange_stop {__typename: "TaxedMoney";- net: SimpleProductUpdate_productUpdate_product_availability_priceRange_stop_net;+ net: SimpleProductUpdate_productUpdate_product_pricing_priceRange_stop_net;}-export interface SimpleProductUpdate_productUpdate_product_availability_priceRange {+export interface SimpleProductUpdate_productUpdate_product_pricing_priceRange {__typename: "TaxedMoneyRange";- start: SimpleProductUpdate_productUpdate_product_availability_priceRange_start | null;- stop: SimpleProductUpdate_productUpdate_product_availability_priceRange_stop | null;+ start: SimpleProductUpdate_productUpdate_product_pricing_priceRange_start | null;+ stop: SimpleProductUpdate_productUpdate_product_pricing_priceRange_stop | null;}-export interface SimpleProductUpdate_productUpdate_product_availability {+export interface SimpleProductUpdate_productUpdate_product_pricing {__typename: "ProductPricingInfo";available: boolean | null;- priceRange: SimpleProductUpdate_productUpdate_product_availability_priceRange | null;+ priceRange: SimpleProductUpdate_productUpdate_product_pricing_priceRange | null;}export interface SimpleProductUpdate_productUpdate_product_images {@@ -158,17 +163,21 @@ export interface SimpleProductUpdate_productUpdate_product {seoTitle: string | null;seoDescription: string | null;category: SimpleProductUpdate_productUpdate_product_category;- collections: (SimpleProductUpdate_productUpdate_product_collections | null)[] | null;- price: SimpleProductUpdate_productUpdate_product_price | null;+ collections:+ | (SimpleProductUpdate_productUpdate_product_collections | null)[]+ | null;+ basePrice: SimpleProductUpdate_productUpdate_product_price | null;margin: SimpleProductUpdate_productUpdate_product_margin | null;purchaseCost: SimpleProductUpdate_productUpdate_product_purchaseCost | null;isPublished: boolean;chargeTaxes: boolean;publicationDate: any | null;attributes: SimpleProductUpdate_productUpdate_product_attributes[];- availability: SimpleProductUpdate_productUpdate_product_availability | null;+ 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;}@@ -197,7 +206,9 @@ 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 {@@ -255,16 +266,22 @@ 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 {@@ -272,7 +289,9 @@ 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;@@ -302,7 +321,7 @@ export interface SimpleProductUpdateVariables {descriptionJson?: any | null;isPublished: boolean;name?: string | null;- price?: any | null;+ basePrice?: any | null;productVariantId: string;productVariantInput: ProductVariantInput;}diff --git a/saleor/static/dashboard-next/products/views/ProductCreate.tsx b/saleor/static/dashboard-next/products/views/ProductCreate.tsxindex 6e0a2f293a..0279a424b3 100644--- a/saleor/static/dashboard-next/products/views/ProductCreate.tsx+++ b/saleor/static/dashboard-next/products/views/ProductCreate.tsx@@ -58,6 +58,7 @@ export const ProductUpdate: React.StatelessComponent<productCreate({variables: {attributes: formData.attributes,+ basePrice: decimal(formData.price),category: formData.category.value,chargeTaxes: formData.chargeTaxes,collections: formData.collections.map(@@ -68,7 +69,6 @@ export const ProductUpdate: React.StatelessComponent<),isPublished: formData.available,name: formData.name,- price: decimal(formData.price),productType: formData.productType.value.id,publicationDate:formData.publicationDate !== ""diff --git a/saleor/static/dashboard-next/products/views/ProductUpdate.tsx b/saleor/static/dashboard-next/products/views/ProductUpdate.tsxindex fbbb9c7e49..fed04b5707 100644--- a/saleor/static/dashboard-next/products/views/ProductUpdate.tsx+++ b/saleor/static/dashboard-next/products/views/ProductUpdate.tsx@@ -124,6 +124,7 @@ export const ProductUpdate: React.StatelessComponent<ProductUpdateProps> = ({if (product.productType.hasVariants) {updateProduct.mutate({attributes: data.attributes,+ basePrice: decimal(data.price),category: data.category.value,chargeTaxes: data.chargeTaxes,collections: data.collections.map(@@ -133,7 +134,6 @@ export const ProductUpdate: React.StatelessComponent<ProductUpdateProps> = ({id: product.id,isPublished: data.available,name: data.name,- price: decimal(data.price),publicationDate:data.publicationDate !== ""? data.publicationDate@@ -142,6 +142,7 @@ export const ProductUpdate: React.StatelessComponent<ProductUpdateProps> = ({} else {updateSimpleProduct.mutate({attributes: data.attributes,+ basePrice: decimal(data.price),category: data.category.value,chargeTaxes: data.chargeTaxes,collections: data.collections.map(@@ -151,7 +152,6 @@ export const ProductUpdate: React.StatelessComponent<ProductUpdateProps> = ({id: product.id,isPublished: data.available,name: data.name,- price: decimal(data.price),productVariantId: product.variants[0].id,productVariantInput: {quantity: data.stockQuantity,diff --git a/saleor/static/dashboard-next/storybook/stories/categories/CategoryProducts.tsx b/saleor/static/dashboard-next/storybook/stories/categories/CategoryProducts.tsxindex fbd54afcea..500e7ebb89 100644--- a/saleor/static/dashboard-next/storybook/stories/categories/CategoryProducts.tsx+++ b/saleor/static/dashboard-next/storybook/stories/categories/CategoryProducts.tsx@@ -13,7 +13,9 @@ const products = [id: "1",name: "T-Shirt"},- thumbnailUrl: placeholder+ thumbnail: {+ url: placeholder+ }},{id: "UHJvZHVjdDoy",@@ -22,7 +24,9 @@ const products = [id: "1",name: "T-Shirt"},- thumbnailUrl: placeholder+ thumbnail: {+ url: placeholder+ }},{id: "UHJvZHVjdDoz",@@ -31,7 +35,9 @@ const products = [id: "1",name: "T-Shirt"},- thumbnailUrl: placeholder+ thumbnail: {+ url: placeholder+ }},{id: "UHJvZHVjdDoa",@@ -40,7 +46,9 @@ const products = [id: "1",name: "T-Shirt"},- thumbnailUrl: placeholder+ thumbnail: {+ url: placeholder+ }}];