Use product pricing instead of discounted price (#847)

* Use product pricing instead of discountedPrice

* Fix input width

* Update snapshots

* Fix reading price range of null pricing

Co-authored-by: Dawid Tarasiuk <tarasiukdawid@gmail.com>
This commit is contained in:
Dominik Żegleń 2020-11-23 14:04:24 +01:00 committed by GitHub
parent 48a68ed1bf
commit 2765dc1324
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
78 changed files with 2748 additions and 1720 deletions

View file

@ -1,4 +1,3 @@
import { AppErrorFragment } from "@saleor/apps/types/AppErrorFragment";
import AccountPermissions from "@saleor/components/AccountPermissions";
import AppHeader from "@saleor/components/AppHeader";
import AppStatus from "@saleor/components/AppStatus";
@ -10,6 +9,7 @@ import Grid from "@saleor/components/Grid";
import PageHeader from "@saleor/components/PageHeader";
import SaveButtonBar from "@saleor/components/SaveButtonBar";
import { ShopInfo_shop_permissions } from "@saleor/components/Shop/types/ShopInfo";
import { AppErrorFragment } from "@saleor/fragments/types/AppErrorFragment";
import { sectionNames } from "@saleor/intl";
import { PermissionEnum } from "@saleor/types/globalTypes";
import { getFormErrors } from "@saleor/utils/errors";

View file

@ -1,4 +1,3 @@
import { AppErrorFragment } from "@saleor/apps/types/AppErrorFragment";
import AccountPermissions from "@saleor/components/AccountPermissions";
import AppHeader from "@saleor/components/AppHeader";
import AppStatus from "@saleor/components/AppStatus";
@ -10,6 +9,7 @@ import Grid from "@saleor/components/Grid";
import PageHeader from "@saleor/components/PageHeader";
import SaveButtonBar from "@saleor/components/SaveButtonBar";
import { ShopInfo_shop_permissions } from "@saleor/components/Shop/types/ShopInfo";
import { AppErrorFragment } from "@saleor/fragments/types/AppErrorFragment";
import { SubmitPromise } from "@saleor/hooks/useForm";
import { sectionNames } from "@saleor/intl";
import { PermissionEnum } from "@saleor/types/globalTypes";

View file

@ -1,8 +1,8 @@
import Card from "@material-ui/core/Card";
import CardContent from "@material-ui/core/CardContent";
import TextField from "@material-ui/core/TextField";
import { AppErrorFragment } from "@saleor/apps/types/AppErrorFragment";
import CardTitle from "@saleor/components/CardTitle";
import { AppErrorFragment } from "@saleor/fragments/types/AppErrorFragment";
import { FormChange } from "@saleor/hooks/useForm";
import { getFormErrors } from "@saleor/utils/errors";
import getAppErrorMessage from "@saleor/utils/errors/app";

View file

@ -1,17 +0,0 @@
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
import { AppErrorCode, PermissionEnum } from "./../../types/globalTypes";
// ====================================================
// GraphQL fragment: AppErrorFragment
// ====================================================
export interface AppErrorFragment {
__typename: "AppError";
field: string | null;
message: string | null;
code: AppErrorCode;
permissions: PermissionEnum[] | null;
}

View file

@ -1,61 +0,0 @@
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
import { AppTypeEnum } from "./../../types/globalTypes";
// ====================================================
// GraphQL fragment: AppFragment
// ====================================================
export interface AppFragment_privateMetadata {
__typename: "MetadataItem";
key: string;
value: string;
}
export interface AppFragment_metadata {
__typename: "MetadataItem";
key: string;
value: string;
}
export interface AppFragment_tokens {
__typename: "AppToken";
authToken: string | null;
id: string;
name: string | null;
}
export interface AppFragment_webhooks_app {
__typename: "App";
id: string;
name: string | null;
}
export interface AppFragment_webhooks {
__typename: "Webhook";
id: string;
name: string;
isActive: boolean;
app: AppFragment_webhooks_app;
}
export interface AppFragment {
__typename: "App";
id: string;
name: string | null;
created: any | null;
isActive: boolean | null;
type: AppTypeEnum | null;
homepageUrl: string | null;
appUrl: string | null;
configurationUrl: string | null;
supportUrl: string | null;
version: string | null;
accessToken: string | null;
privateMetadata: (AppFragment_privateMetadata | null)[];
metadata: (AppFragment_metadata | null)[];
tokens: (AppFragment_tokens | null)[] | null;
webhooks: (AppFragment_webhooks | null)[] | null;
}

View file

@ -5,7 +5,7 @@ import TableFooter from "@material-ui/core/TableFooter";
import TableRow from "@material-ui/core/TableRow";
import { ChannelsAvailabilityDropdown } from "@saleor/components/ChannelsAvailabilityDropdown";
import Checkbox from "@saleor/components/Checkbox";
import Money from "@saleor/components/Money";
import MoneyRange from "@saleor/components/MoneyRange";
import ResponsiveTable from "@saleor/components/ResponsiveTable";
import Skeleton from "@saleor/components/Skeleton";
import TableCellAvatar, {
@ -207,7 +207,10 @@ export const CategoryProductList: React.FC<CategoryProductListProps> = props =>
</TableCell>
<TableCell className={classes.colPrice}>
{product?.channelListings ? (
<Money money={channel?.discountedPrice} />
<MoneyRange
from={channel?.pricing?.priceRange?.start?.net}
to={channel?.pricing?.priceRange?.stop?.net}
/>
) : (
<Skeleton />
)}

View file

@ -139,13 +139,30 @@ export const category: (
name: "Channel1"
},
currency: "USD",
discountedPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: false,
pricing: {
__typename: "ProductPricingInfo",
priceRange: {
__typename: "TaxedMoneyRange",
start: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 30.1,
currency: "USD"
}
},
stop: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 44.9,
currency: "USD"
}
}
}
},
publicationDate: null,
visibleInListings: false
},
@ -159,13 +176,30 @@ export const category: (
name: "Channel2"
},
currency: "USD",
discountedPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: false,
pricing: {
__typename: "ProductPricingInfo",
priceRange: {
__typename: "TaxedMoneyRange",
start: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 30.1,
currency: "USD"
}
},
stop: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 44.9,
currency: "USD"
}
}
}
},
publicationDate: null,
visibleInListings: false
}
@ -196,13 +230,30 @@ export const category: (
name: "Channel1"
},
currency: "USD",
discountedPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: false,
pricing: {
__typename: "ProductPricingInfo",
priceRange: {
__typename: "TaxedMoneyRange",
start: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 30.1,
currency: "USD"
}
},
stop: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 44.9,
currency: "USD"
}
}
}
},
publicationDate: null,
visibleInListings: false
}
@ -233,13 +284,30 @@ export const category: (
name: "Channel1"
},
currency: "USD",
discountedPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: false,
pricing: {
__typename: "ProductPricingInfo",
priceRange: {
__typename: "TaxedMoneyRange",
start: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 30.1,
currency: "USD"
}
},
stop: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 44.9,
currency: "USD"
}
}
}
},
publicationDate: null,
visibleInListings: false
}
@ -270,13 +338,30 @@ export const category: (
name: "Channel1"
},
currency: "USD",
discountedPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: false,
pricing: {
__typename: "ProductPricingInfo",
priceRange: {
__typename: "TaxedMoneyRange",
start: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 30.1,
currency: "USD"
}
},
stop: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 44.9,
currency: "USD"
}
}
}
},
publicationDate: null,
visibleInListings: false
}
@ -307,13 +392,30 @@ export const category: (
name: "Channel1"
},
currency: "USD",
discountedPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: false,
pricing: {
__typename: "ProductPricingInfo",
priceRange: {
__typename: "TaxedMoneyRange",
start: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 30.1,
currency: "USD"
}
},
stop: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 44.9,
currency: "USD"
}
}
}
},
publicationDate: null,
visibleInListings: false
}
@ -344,13 +446,30 @@ export const category: (
name: "Channel1"
},
currency: "USD",
discountedPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: false,
pricing: {
__typename: "ProductPricingInfo",
priceRange: {
__typename: "TaxedMoneyRange",
start: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 30.1,
currency: "USD"
}
},
stop: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 44.9,
currency: "USD"
}
}
}
},
publicationDate: null,
visibleInListings: false
}
@ -381,13 +500,30 @@ export const category: (
name: "Channel1"
},
currency: "USD",
discountedPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: false,
pricing: {
__typename: "ProductPricingInfo",
priceRange: {
__typename: "TaxedMoneyRange",
start: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 30.1,
currency: "USD"
}
},
stop: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 44.9,
currency: "USD"
}
}
}
},
publicationDate: null,
visibleInListings: false
}
@ -418,13 +554,30 @@ export const category: (
name: "Channel1"
},
currency: "USD",
discountedPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: false,
pricing: {
__typename: "ProductPricingInfo",
priceRange: {
__typename: "TaxedMoneyRange",
start: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 30.1,
currency: "USD"
}
},
stop: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 44.9,
currency: "USD"
}
}
}
},
publicationDate: null,
visibleInListings: false
}
@ -455,13 +608,30 @@ export const category: (
name: "Channel1"
},
currency: "USD",
discountedPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: false,
pricing: {
__typename: "ProductPricingInfo",
priceRange: {
__typename: "TaxedMoneyRange",
start: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 30.1,
currency: "USD"
}
},
stop: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 44.9,
currency: "USD"
}
}
}
},
publicationDate: null,
visibleInListings: false
}
@ -492,13 +662,30 @@ export const category: (
name: "Channel1"
},
currency: "USD",
discountedPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: false,
pricing: {
__typename: "ProductPricingInfo",
priceRange: {
__typename: "TaxedMoneyRange",
start: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 30.1,
currency: "USD"
}
},
stop: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 44.9,
currency: "USD"
}
}
}
},
publicationDate: null,
visibleInListings: false
}

View file

@ -85,12 +85,6 @@ export interface CategoryDetails_category_products_edges_node_productType {
name: string;
}
export interface CategoryDetails_category_products_edges_node_channelListings_discountedPrice {
__typename: "Money";
amount: number;
currency: string;
}
export interface CategoryDetails_category_products_edges_node_channelListings_channel {
__typename: "Channel";
id: string;
@ -98,15 +92,48 @@ export interface CategoryDetails_category_products_edges_node_channelListings_ch
currencyCode: string;
}
export interface CategoryDetails_category_products_edges_node_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface CategoryDetails_category_products_edges_node_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: CategoryDetails_category_products_edges_node_channelListings_pricing_priceRange_start_net;
}
export interface CategoryDetails_category_products_edges_node_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface CategoryDetails_category_products_edges_node_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: CategoryDetails_category_products_edges_node_channelListings_pricing_priceRange_stop_net;
}
export interface CategoryDetails_category_products_edges_node_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: CategoryDetails_category_products_edges_node_channelListings_pricing_priceRange_start | null;
stop: CategoryDetails_category_products_edges_node_channelListings_pricing_priceRange_stop | null;
}
export interface CategoryDetails_category_products_edges_node_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: CategoryDetails_category_products_edges_node_channelListings_pricing_priceRange | null;
}
export interface CategoryDetails_category_products_edges_node_channelListings {
__typename: "ProductChannelListing";
isPublished: boolean;
publicationDate: any | null;
discountedPrice: CategoryDetails_category_products_edges_node_channelListings_discountedPrice | null;
isAvailableForPurchase: boolean | null;
availableForPurchase: any | null;
visibleInListings: boolean;
channel: CategoryDetails_category_products_edges_node_channelListings_channel;
pricing: CategoryDetails_category_products_edges_node_channelListings_pricing | null;
}
export interface CategoryDetails_category_products_edges_node {

View file

@ -92,13 +92,30 @@ export const productChannels: ProductDetails_product_channelListings[] = [
id: "123",
name: "Channel1"
},
discountedPrice: {
__typename: "Money",
amount: 5,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: true,
pricing: {
__typename: "ProductPricingInfo",
priceRange: {
__typename: "TaxedMoneyRange",
start: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 1.2,
currency: "USD"
}
},
stop: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 3.5,
currency: "USD"
}
}
}
},
publicationDate: "2020-07-14",
visibleInListings: true
},
@ -111,13 +128,30 @@ export const productChannels: ProductDetails_product_channelListings[] = [
id: "124",
name: "Channel2"
},
discountedPrice: {
__typename: "Money",
amount: 0,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: false,
pricing: {
__typename: "ProductPricingInfo",
priceRange: {
__typename: "TaxedMoneyRange",
start: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 2.2,
currency: "USD"
}
},
stop: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 7.1,
currency: "USD"
}
}
}
},
publicationDate: "2020-07-30",
visibleInListings: true
},
@ -130,13 +164,30 @@ export const productChannels: ProductDetails_product_channelListings[] = [
id: "125",
name: "Channel3"
},
discountedPrice: {
__typename: "Money",
amount: 8,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: false,
pricing: {
__typename: "ProductPricingInfo",
priceRange: {
__typename: "TaxedMoneyRange",
start: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 30.1,
currency: "USD"
}
},
stop: {
__typename: "TaxedMoney",
net: {
__typename: "Money",
amount: 44.9,
currency: "USD"
}
}
}
},
publicationDate: null,
visibleInListings: true
}

View file

@ -1,15 +0,0 @@
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
// ====================================================
// GraphQL fragment: ChannelDetailsFragment
// ====================================================
export interface ChannelDetailsFragment {
__typename: "Channel";
id: string;
name: string;
slug: string;
currencyCode: string;
}

View file

@ -1,16 +0,0 @@
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
import { ChannelErrorCode } from "./../../types/globalTypes";
// ====================================================
// GraphQL fragment: ChannelErrorFragment
// ====================================================
export interface ChannelErrorFragment {
__typename: "ChannelError";
code: ChannelErrorCode;
field: string | null;
message: string | null;
}

View file

@ -185,11 +185,6 @@ export const collection: (
id: "123",
name: "Channel1"
},
discountedPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: true,
publicationDate: "2020-07-14",
@ -204,11 +199,6 @@ export const collection: (
id: "124",
name: "Channel2"
},
discountedPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: false,
publicationDate: "2020-07-30",
@ -239,11 +229,6 @@ export const collection: (
id: "123",
name: "Channel1"
},
discountedPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: true,
publicationDate: "2020-07-14",
@ -258,11 +243,6 @@ export const collection: (
id: "124",
name: "Channel2"
},
discountedPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: false,
publicationDate: "2020-07-30",
@ -293,11 +273,6 @@ export const collection: (
id: "123",
name: "Channel1"
},
discountedPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: true,
publicationDate: "2020-07-14",
@ -312,11 +287,6 @@ export const collection: (
id: "124",
name: "Channel2"
},
discountedPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: false,
publicationDate: "2020-07-30",
@ -347,11 +317,6 @@ export const collection: (
id: "123",
name: "Channel1"
},
discountedPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: true,
publicationDate: "2020-07-14",
@ -366,11 +331,6 @@ export const collection: (
id: "124",
name: "Channel2"
},
discountedPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: false,
publicationDate: "2020-07-30",

View file

@ -19,12 +19,6 @@ export interface CollectionAssignProduct_collectionAddProducts_collection_produc
url: string;
}
export interface CollectionAssignProduct_collectionAddProducts_collection_products_edges_node_channelListings_discountedPrice {
__typename: "Money";
amount: number;
currency: string;
}
export interface CollectionAssignProduct_collectionAddProducts_collection_products_edges_node_channelListings_channel {
__typename: "Channel";
id: string;
@ -36,7 +30,6 @@ export interface CollectionAssignProduct_collectionAddProducts_collection_produc
__typename: "ProductChannelListing";
isPublished: boolean;
publicationDate: any | null;
discountedPrice: CollectionAssignProduct_collectionAddProducts_collection_products_edges_node_channelListings_discountedPrice | null;
isAvailableForPurchase: boolean | null;
availableForPurchase: any | null;
visibleInListings: boolean;

View file

@ -1,29 +0,0 @@
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
import { ProductErrorCode } from "./../../types/globalTypes";
// ====================================================
// GraphQL mutation operation: CollectionBulkPublish
// ====================================================
export interface CollectionBulkPublish_collectionBulkPublish_errors {
__typename: "ProductError";
code: ProductErrorCode;
field: string | null;
}
export interface CollectionBulkPublish_collectionBulkPublish {
__typename: "CollectionBulkPublish";
errors: CollectionBulkPublish_collectionBulkPublish_errors[];
}
export interface CollectionBulkPublish {
collectionBulkPublish: CollectionBulkPublish_collectionBulkPublish | null;
}
export interface CollectionBulkPublishVariables {
ids: (string | null)[];
isPublished: boolean;
}

View file

@ -48,12 +48,6 @@ export interface CollectionDetails_collection_products_edges_node_thumbnail {
url: string;
}
export interface CollectionDetails_collection_products_edges_node_channelListings_discountedPrice {
__typename: "Money";
amount: number;
currency: string;
}
export interface CollectionDetails_collection_products_edges_node_channelListings_channel {
__typename: "Channel";
id: string;
@ -65,7 +59,6 @@ export interface CollectionDetails_collection_products_edges_node_channelListing
__typename: "ProductChannelListing";
isPublished: boolean;
publicationDate: any | null;
discountedPrice: CollectionDetails_collection_products_edges_node_channelListings_discountedPrice | null;
isAvailableForPurchase: boolean | null;
availableForPurchase: any | null;
visibleInListings: boolean;

View file

@ -1,75 +0,0 @@
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
import { CollectionInput, CollectionErrorCode } from "./../../types/globalTypes";
// ====================================================
// GraphQL mutation operation: CollectionUpdateWithHomepage
// ====================================================
export interface CollectionUpdateWithHomepage_collectionUpdate_collection_channelListing_channel {
__typename: "Channel";
id: string;
name: string;
}
export interface CollectionUpdateWithHomepage_collectionUpdate_collection_channelListing {
__typename: "CollectionChannelListing";
isPublished: boolean;
publicationDate: any | null;
channel: CollectionUpdateWithHomepage_collectionUpdate_collection_channelListing_channel;
}
export interface CollectionUpdateWithHomepage_collectionUpdate_collection_metadata {
__typename: "MetadataItem";
key: string;
value: string;
}
export interface CollectionUpdateWithHomepage_collectionUpdate_collection_privateMetadata {
__typename: "MetadataItem";
key: string;
value: string;
}
export interface CollectionUpdateWithHomepage_collectionUpdate_collection_backgroundImage {
__typename: "Image";
alt: string | null;
url: string;
}
export interface CollectionUpdateWithHomepage_collectionUpdate_collection {
__typename: "Collection";
id: string;
name: string;
channelListings: CollectionUpdateWithHomepage_collectionUpdate_collection_channelListing[] | null;
metadata: (CollectionUpdateWithHomepage_collectionUpdate_collection_metadata | null)[];
privateMetadata: (CollectionUpdateWithHomepage_collectionUpdate_collection_privateMetadata | null)[];
backgroundImage: CollectionUpdateWithHomepage_collectionUpdate_collection_backgroundImage | null;
slug: string;
descriptionJson: any;
seoDescription: string | null;
seoTitle: string | null;
}
export interface CollectionUpdateWithHomepage_collectionUpdate_errors {
__typename: "CollectionError";
code: CollectionErrorCode;
field: string | null;
}
export interface CollectionUpdateWithHomepage_collectionUpdate {
__typename: "CollectionUpdate";
collection: CollectionUpdateWithHomepage_collectionUpdate_collection | null;
errors: CollectionUpdateWithHomepage_collectionUpdate_errors[];
}
export interface CollectionUpdateWithHomepage {
collectionUpdate: CollectionUpdateWithHomepage_collectionUpdate | null;
}
export interface CollectionUpdateWithHomepageVariables {
id: string;
input: CollectionInput;
}

View file

@ -5,15 +5,15 @@ import { CollectionList_collections_edges_node_channelListings } from "@saleor/c
import Hr from "@saleor/components/Hr";
import StatusLabel from "@saleor/components/StatusLabel";
import useDateLocalize from "@saleor/hooks/useDateLocalize";
import { ProductList_products_edges_node_channelListings } from "@saleor/products/types/ProductList";
import React from "react";
import { FormattedMessage, useIntl } from "react-intl";
import { useStyles } from "./styles";
type Channels =
| ProductList_products_edges_node_channelListings
| CollectionList_collections_edges_node_channelListings;
type Channels = Pick<
CollectionList_collections_edges_node_channelListings,
"isPublished" | "publicationDate" | "channel"
>;
export interface ChannelsAvailabilityDropdownProps {
allChannelsCount: number;

View file

@ -278,11 +278,6 @@ export const sale: SaleDetails_sale = {
id: "123",
name: "Channel1"
},
discountedPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: true,
publicationDate: "2020-07-14",
@ -316,11 +311,6 @@ export const sale: SaleDetails_sale = {
id: "123",
name: "Channel1"
},
discountedPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: true,
publicationDate: "2020-07-14",
@ -354,11 +344,6 @@ export const sale: SaleDetails_sale = {
id: "123",
name: "Channel1"
},
discountedPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: true,
publicationDate: "2020-07-14",
@ -392,11 +377,6 @@ export const sale: SaleDetails_sale = {
id: "123",
name: "Channel1"
},
discountedPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
isAvailableForPurchase: false,
isPublished: true,
publicationDate: "2020-07-14",

View file

@ -41,12 +41,6 @@ export interface SaleCataloguesAdd_saleCataloguesAdd_sale_products_edges_node_th
url: string;
}
export interface SaleCataloguesAdd_saleCataloguesAdd_sale_products_edges_node_channelListings_discountedPrice {
__typename: "Money";
amount: number;
currency: string;
}
export interface SaleCataloguesAdd_saleCataloguesAdd_sale_products_edges_node_channelListings_channel {
__typename: "Channel";
id: string;
@ -58,7 +52,6 @@ export interface SaleCataloguesAdd_saleCataloguesAdd_sale_products_edges_node_ch
__typename: "ProductChannelListing";
isPublished: boolean;
publicationDate: any | null;
discountedPrice: SaleCataloguesAdd_saleCataloguesAdd_sale_products_edges_node_channelListings_discountedPrice | null;
isAvailableForPurchase: boolean | null;
availableForPurchase: any | null;
visibleInListings: boolean;

View file

@ -41,12 +41,6 @@ export interface SaleCataloguesRemove_saleCataloguesRemove_sale_products_edges_n
url: string;
}
export interface SaleCataloguesRemove_saleCataloguesRemove_sale_products_edges_node_channelListings_discountedPrice {
__typename: "Money";
amount: number;
currency: string;
}
export interface SaleCataloguesRemove_saleCataloguesRemove_sale_products_edges_node_channelListings_channel {
__typename: "Channel";
id: string;
@ -58,7 +52,6 @@ export interface SaleCataloguesRemove_saleCataloguesRemove_sale_products_edges_n
__typename: "ProductChannelListing";
isPublished: boolean;
publicationDate: any | null;
discountedPrice: SaleCataloguesRemove_saleCataloguesRemove_sale_products_edges_node_channelListings_discountedPrice | null;
isAvailableForPurchase: boolean | null;
availableForPurchase: any | null;
visibleInListings: boolean;

View file

@ -34,12 +34,6 @@ export interface SaleDetails_sale_products_edges_node_thumbnail {
url: string;
}
export interface SaleDetails_sale_products_edges_node_channelListings_discountedPrice {
__typename: "Money";
amount: number;
currency: string;
}
export interface SaleDetails_sale_products_edges_node_channelListings_channel {
__typename: "Channel";
id: string;
@ -51,7 +45,6 @@ export interface SaleDetails_sale_products_edges_node_channelListings {
__typename: "ProductChannelListing";
isPublished: boolean;
publicationDate: any | null;
discountedPrice: SaleDetails_sale_products_edges_node_channelListings_discountedPrice | null;
isAvailableForPurchase: boolean | null;
availableForPurchase: any | null;
visibleInListings: boolean;

View file

@ -54,12 +54,6 @@ export interface VoucherCataloguesAdd_voucherCataloguesAdd_voucher_products_edge
url: string;
}
export interface VoucherCataloguesAdd_voucherCataloguesAdd_voucher_products_edges_node_channelListings_discountedPrice {
__typename: "Money";
amount: number;
currency: string;
}
export interface VoucherCataloguesAdd_voucherCataloguesAdd_voucher_products_edges_node_channelListings_channel {
__typename: "Channel";
id: string;
@ -71,7 +65,6 @@ export interface VoucherCataloguesAdd_voucherCataloguesAdd_voucher_products_edge
__typename: "ProductChannelListing";
isPublished: boolean;
publicationDate: any | null;
discountedPrice: VoucherCataloguesAdd_voucherCataloguesAdd_voucher_products_edges_node_channelListings_discountedPrice | null;
isAvailableForPurchase: boolean | null;
availableForPurchase: any | null;
visibleInListings: boolean;

View file

@ -54,12 +54,6 @@ export interface VoucherCataloguesRemove_voucherCataloguesRemove_voucher_product
url: string;
}
export interface VoucherCataloguesRemove_voucherCataloguesRemove_voucher_products_edges_node_channelListings_discountedPrice {
__typename: "Money";
amount: number;
currency: string;
}
export interface VoucherCataloguesRemove_voucherCataloguesRemove_voucher_products_edges_node_channelListings_channel {
__typename: "Channel";
id: string;
@ -71,7 +65,6 @@ export interface VoucherCataloguesRemove_voucherCataloguesRemove_voucher_product
__typename: "ProductChannelListing";
isPublished: boolean;
publicationDate: any | null;
discountedPrice: VoucherCataloguesRemove_voucherCataloguesRemove_voucher_products_edges_node_channelListings_discountedPrice | null;
isAvailableForPurchase: boolean | null;
availableForPurchase: any | null;
visibleInListings: boolean;

View file

@ -47,12 +47,6 @@ export interface VoucherDetails_voucher_products_edges_node_thumbnail {
url: string;
}
export interface VoucherDetails_voucher_products_edges_node_channelListings_discountedPrice {
__typename: "Money";
amount: number;
currency: string;
}
export interface VoucherDetails_voucher_products_edges_node_channelListings_channel {
__typename: "Channel";
id: string;
@ -64,7 +58,6 @@ export interface VoucherDetails_voucher_products_edges_node_channelListings {
__typename: "ProductChannelListing";
isPublished: boolean;
publicationDate: any | null;
discountedPrice: VoucherDetails_voucher_products_edges_node_channelListings_discountedPrice | null;
isAvailableForPurchase: boolean | null;
availableForPurchase: any | null;
visibleInListings: boolean;

View file

@ -1,4 +1,4 @@
import { channelListingProductFragment } from "@saleor/fragments/products";
import { channelListingProductWithoutPricingFragment } from "@saleor/fragments/products";
import gql from "graphql-tag";
import { metadataFragment } from "./metadata";
@ -40,7 +40,7 @@ export const collectionDetailsFragment = gql`
// https://github.com/apollographql/apollo-client/issues/2496
// https://github.com/apollographql/apollo-client/issues/3468
export const collectionProductFragment = gql`
${channelListingProductFragment}
${channelListingProductWithoutPricingFragment}
fragment CollectionProductFragment on Product {
id
name
@ -52,7 +52,7 @@ export const collectionProductFragment = gql`
url
}
channelListings {
...ChannelListingProductFragment
...ChannelListingProductWithoutPricingFragment
}
}
`;

View file

@ -1,4 +1,4 @@
import { channelListingProductFragment } from "@saleor/fragments/products";
import { channelListingProductWithoutPricingFragment } from "@saleor/fragments/products";
import gql from "graphql-tag";
import { pageInfoFragment } from "./pageInfo";
@ -24,7 +24,7 @@ export const saleFragment = gql`
`;
export const saleDetailsFragment = gql`
${channelListingProductFragment}
${channelListingProductWithoutPricingFragment}
${pageInfoFragment}
${saleFragment}
fragment SaleDetailsFragment on Sale {
@ -42,7 +42,7 @@ export const saleDetailsFragment = gql`
url
}
channelListings {
...ChannelListingProductFragment
...ChannelListingProductWithoutPricingFragment
}
}
}
@ -117,7 +117,7 @@ export const voucherFragment = gql`
export const voucherDetailsFragment = gql`
${pageInfoFragment}
${voucherFragment}
${channelListingProductFragment}
${channelListingProductWithoutPricingFragment}
fragment VoucherDetailsFragment on Voucher {
...VoucherFragment
type
@ -139,7 +139,7 @@ export const voucherDetailsFragment = gql`
url
}
channelListings {
...ChannelListingProductFragment
...ChannelListingProductWithoutPricingFragment
}
}
}

View file

@ -23,6 +23,22 @@ export const fragmentMoney = gql`
}
`;
export const priceRangeFragment = gql`
${fragmentMoney}
fragment PriceRangeFragment on TaxedMoneyRange {
start {
net {
...Money
}
}
stop {
net {
...Money
}
}
}
`;
export const fragmentProductImage = gql`
fragment ProductImageFragment on ProductImage {
id
@ -32,14 +48,10 @@ export const fragmentProductImage = gql`
}
`;
export const channelListingProductFragment = gql`
${fragmentMoney}
fragment ChannelListingProductFragment on ProductChannelListing {
export const channelListingProductWithoutPricingFragment = gql`
fragment ChannelListingProductWithoutPricingFragment on ProductChannelListing {
isPublished
publicationDate
discountedPrice {
...Money
}
isAvailableForPurchase
availableForPurchase
visibleInListings
@ -50,6 +62,18 @@ export const channelListingProductFragment = gql`
}
}
`;
export const channelListingProductFragment = gql`
${priceRangeFragment}
${channelListingProductWithoutPricingFragment}
fragment ChannelListingProductFragment on ProductChannelListing {
...ChannelListingProductWithoutPricingFragment
pricing {
priceRange {
...PriceRangeFragment
}
}
}
`;
export const channelListingProductVariantFragment = gql`
${fragmentMoney}
@ -128,8 +152,10 @@ export const productVariantAttributesFragment = gql`
name
currencyCode
}
discountedPrice {
...Money
pricing {
priceRange {
...PriceRangeFragment
}
}
}
}
@ -253,8 +279,10 @@ export const fragmentVariant = gql`
name
currencyCode
}
discountedPrice {
...Money
pricing {
priceRange {
...PriceRangeFragment
}
}
}
variants {

View file

@ -1,32 +0,0 @@
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
// ====================================================
// GraphQL fragment: CategoryTranslationUpdateFragment
// ====================================================
export interface CategoryTranslationUpdateFragment_translation_language {
__typename: "LanguageDisplay";
language: string;
}
export interface CategoryTranslationUpdateFragment_translation {
__typename: "CategoryTranslation";
id: string;
descriptionJson: any;
language: CategoryTranslationUpdateFragment_translation_language;
name: string;
seoDescription: string | null;
seoTitle: string | null;
}
export interface CategoryTranslationUpdateFragment {
__typename: "Category";
id: string;
name: string;
descriptionJson: any;
seoDescription: string | null;
seoTitle: string | null;
translation: CategoryTranslationUpdateFragment_translation | null;
}

View file

@ -1,20 +0,0 @@
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
// ====================================================
// GraphQL fragment: ChannelListingAvailabilityFragment
// ====================================================
export interface ChannelListingAvailabilityFragment_channel {
__typename: "Channel";
id: string;
name: string;
}
export interface ChannelListingAvailabilityFragment {
__typename: "ProductChannelListing";
isPublished: boolean;
publicationDate: any | null;
channel: ChannelListingAvailabilityFragment_channel;
}

View file

@ -6,12 +6,6 @@
// GraphQL fragment: ChannelListingProductFragment
// ====================================================
export interface ChannelListingProductFragment_discountedPrice {
__typename: "Money";
amount: number;
currency: string;
}
export interface ChannelListingProductFragment_channel {
__typename: "Channel";
id: string;
@ -19,13 +13,46 @@ export interface ChannelListingProductFragment_channel {
currencyCode: string;
}
export interface ChannelListingProductFragment_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ChannelListingProductFragment_pricing_priceRange_start {
__typename: "TaxedMoney";
net: ChannelListingProductFragment_pricing_priceRange_start_net;
}
export interface ChannelListingProductFragment_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ChannelListingProductFragment_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: ChannelListingProductFragment_pricing_priceRange_stop_net;
}
export interface ChannelListingProductFragment_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: ChannelListingProductFragment_pricing_priceRange_start | null;
stop: ChannelListingProductFragment_pricing_priceRange_stop | null;
}
export interface ChannelListingProductFragment_pricing {
__typename: "ProductPricingInfo";
priceRange: ChannelListingProductFragment_pricing_priceRange | null;
}
export interface ChannelListingProductFragment {
__typename: "ProductChannelListing";
isPublished: boolean;
publicationDate: any | null;
discountedPrice: ChannelListingProductFragment_discountedPrice | null;
isAvailableForPurchase: boolean | null;
availableForPurchase: any | null;
visibleInListings: boolean;
channel: ChannelListingProductFragment_channel;
pricing: ChannelListingProductFragment_pricing | null;
}

View file

@ -0,0 +1,24 @@
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
// ====================================================
// GraphQL fragment: ChannelListingProductWithoutPricingFragment
// ====================================================
export interface ChannelListingProductWithoutPricingFragment_channel {
__typename: "Channel";
id: string;
name: string;
currencyCode: string;
}
export interface ChannelListingProductWithoutPricingFragment {
__typename: "ProductChannelListing";
isPublished: boolean;
publicationDate: any | null;
isAvailableForPurchase: boolean | null;
availableForPurchase: any | null;
visibleInListings: boolean;
channel: ChannelListingProductWithoutPricingFragment_channel;
}

View file

@ -17,12 +17,6 @@ export interface CollectionProductFragment_thumbnail {
url: string;
}
export interface CollectionProductFragment_channelListings_discountedPrice {
__typename: "Money";
amount: number;
currency: string;
}
export interface CollectionProductFragment_channelListings_channel {
__typename: "Channel";
id: string;
@ -34,7 +28,6 @@ export interface CollectionProductFragment_channelListings {
__typename: "ProductChannelListing";
isPublished: boolean;
publicationDate: any | null;
discountedPrice: CollectionProductFragment_channelListings_discountedPrice | null;
isAvailableForPurchase: boolean | null;
availableForPurchase: any | null;
visibleInListings: boolean;

View file

@ -1,32 +0,0 @@
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
// ====================================================
// GraphQL fragment: CollectionTranslationUpdateFragment
// ====================================================
export interface CollectionTranslationUpdateFragment_translation_language {
__typename: "LanguageDisplay";
language: string;
}
export interface CollectionTranslationUpdateFragment_translation {
__typename: "CollectionTranslation";
id: string;
descriptionJson: any;
language: CollectionTranslationUpdateFragment_translation_language;
name: string;
seoDescription: string | null;
seoTitle: string | null;
}
export interface CollectionTranslationUpdateFragment {
__typename: "Collection";
id: string;
name: string;
descriptionJson: any;
seoDescription: string | null;
seoTitle: string | null;
translation: CollectionTranslationUpdateFragment_translation | null;
}

View file

@ -1,25 +0,0 @@
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
// ====================================================
// GraphQL fragment: Metadata
// ====================================================
export interface Metadata_metadata {
__typename: "MetadataItem";
key: string;
value: string;
}
export interface Metadata_privateMetadata {
__typename: "MetadataItem";
key: string;
value: string;
}
export interface Metadata {
__typename: "ServiceAccount" | "App" | "Product" | "ProductType" | "Attribute" | "Category" | "ProductVariant" | "DigitalContent" | "Collection" | "User" | "Checkout" | "Order" | "Fulfillment" | "Invoice";
metadata: (Metadata_metadata | null)[];
privateMetadata: (Metadata_privateMetadata | null)[];
}

View file

@ -1,35 +0,0 @@
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
import { LanguageCodeEnum } from "./../../types/globalTypes";
// ====================================================
// GraphQL fragment: PageTranslationUpdateFragment
// ====================================================
export interface PageTranslationUpdateFragment_translation_language {
__typename: "LanguageDisplay";
code: LanguageCodeEnum;
language: string;
}
export interface PageTranslationUpdateFragment_translation {
__typename: "PageTranslation";
id: string;
contentJson: any;
seoDescription: string | null;
seoTitle: string | null;
title: string;
language: PageTranslationUpdateFragment_translation_language;
}
export interface PageTranslationUpdateFragment {
__typename: "Page";
id: string;
contentJson: any;
seoDescription: string | null;
seoTitle: string | null;
title: string;
translation: PageTranslationUpdateFragment_translation | null;
}

View file

@ -0,0 +1,35 @@
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
// ====================================================
// GraphQL fragment: PriceRangeFragment
// ====================================================
export interface PriceRangeFragment_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface PriceRangeFragment_start {
__typename: "TaxedMoney";
net: PriceRangeFragment_start_net;
}
export interface PriceRangeFragment_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface PriceRangeFragment_stop {
__typename: "TaxedMoney";
net: PriceRangeFragment_stop_net;
}
export interface PriceRangeFragment {
__typename: "TaxedMoneyRange";
start: PriceRangeFragment_start | null;
stop: PriceRangeFragment_stop | null;
}

View file

@ -74,16 +74,43 @@ export interface Product_channelListings_channel {
currencyCode: string;
}
export interface Product_channelListings_discountedPrice {
export interface Product_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface Product_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: Product_channelListings_pricing_priceRange_start_net;
}
export interface Product_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface Product_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: Product_channelListings_pricing_priceRange_stop_net;
}
export interface Product_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: Product_channelListings_pricing_priceRange_start | null;
stop: Product_channelListings_pricing_priceRange_stop | null;
}
export interface Product_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: Product_channelListings_pricing_priceRange | null;
}
export interface Product_channelListings {
__typename: "ProductChannelListing";
channel: Product_channelListings_channel;
discountedPrice: Product_channelListings_discountedPrice | null;
pricing: Product_channelListings_pricing | null;
isPublished: boolean;
publicationDate: any | null;
isAvailableForPurchase: boolean | null;

View file

@ -18,12 +18,6 @@ export interface ProductFragment_productType {
hasVariants: boolean;
}
export interface ProductFragment_channelListings_discountedPrice {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductFragment_channelListings_channel {
__typename: "Channel";
id: string;
@ -31,15 +25,48 @@ export interface ProductFragment_channelListings_channel {
currencyCode: string;
}
export interface ProductFragment_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductFragment_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: ProductFragment_channelListings_pricing_priceRange_start_net;
}
export interface ProductFragment_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductFragment_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: ProductFragment_channelListings_pricing_priceRange_stop_net;
}
export interface ProductFragment_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: ProductFragment_channelListings_pricing_priceRange_start | null;
stop: ProductFragment_channelListings_pricing_priceRange_stop | null;
}
export interface ProductFragment_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: ProductFragment_channelListings_pricing_priceRange | null;
}
export interface ProductFragment_channelListings {
__typename: "ProductChannelListing";
isPublished: boolean;
publicationDate: any | null;
discountedPrice: ProductFragment_channelListings_discountedPrice | null;
isAvailableForPurchase: boolean | null;
availableForPurchase: any | null;
visibleInListings: boolean;
channel: ProductFragment_channelListings_channel;
pricing: ProductFragment_channelListings_pricing | null;
}
export interface ProductFragment {

View file

@ -1,35 +0,0 @@
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
import { LanguageCodeEnum } from "./../../types/globalTypes";
// ====================================================
// GraphQL fragment: ProductTranslationUpdateFragment
// ====================================================
export interface ProductTranslationUpdateFragment_translation_language {
__typename: "LanguageDisplay";
code: LanguageCodeEnum;
language: string;
}
export interface ProductTranslationUpdateFragment_translation {
__typename: "ProductTranslation";
id: string;
descriptionJson: any;
language: ProductTranslationUpdateFragment_translation_language;
name: string;
seoDescription: string | null;
seoTitle: string | null;
}
export interface ProductTranslationUpdateFragment {
__typename: "Product";
id: string;
name: string;
descriptionJson: any;
seoDescription: string | null;
seoTitle: string | null;
translation: ProductTranslationUpdateFragment_translation | null;
}

View file

@ -1,51 +0,0 @@
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
// ====================================================
// GraphQL fragment: ProductTypeTranslationFragment
// ====================================================
export interface ProductTypeTranslationFragment_product_productType_productAttributes_translation {
__typename: "AttributeTranslation";
id: string;
name: string;
}
export interface ProductTypeTranslationFragment_product_productType_productAttributes {
__typename: "Attribute";
id: string;
name: string | null;
translation: ProductTypeTranslationFragment_product_productType_productAttributes_translation | null;
}
export interface ProductTypeTranslationFragment_product_productType_variantAttributes_translation {
__typename: "AttributeTranslation";
id: string;
name: string;
}
export interface ProductTypeTranslationFragment_product_productType_variantAttributes {
__typename: "Attribute";
id: string;
name: string | null;
translation: ProductTypeTranslationFragment_product_productType_variantAttributes_translation | null;
}
export interface ProductTypeTranslationFragment_product_productType {
__typename: "ProductType";
id: string;
name: string;
productAttributes: (ProductTypeTranslationFragment_product_productType_productAttributes | null)[] | null;
variantAttributes: (ProductTypeTranslationFragment_product_productType_variantAttributes | null)[] | null;
}
export interface ProductTypeTranslationFragment_product {
__typename: "Product";
productType: ProductTypeTranslationFragment_product_productType;
}
export interface ProductTypeTranslationFragment {
__typename: "ProductTranslatableContent";
product: ProductTypeTranslationFragment_product | null;
}

View file

@ -80,16 +80,43 @@ export interface ProductVariant_product_channelListings_channel {
currencyCode: string;
}
export interface ProductVariant_product_channelListings_discountedPrice {
export interface ProductVariant_product_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductVariant_product_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: ProductVariant_product_channelListings_pricing_priceRange_start_net;
}
export interface ProductVariant_product_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductVariant_product_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: ProductVariant_product_channelListings_pricing_priceRange_stop_net;
}
export interface ProductVariant_product_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: ProductVariant_product_channelListings_pricing_priceRange_start | null;
stop: ProductVariant_product_channelListings_pricing_priceRange_stop | null;
}
export interface ProductVariant_product_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: ProductVariant_product_channelListings_pricing_priceRange | null;
}
export interface ProductVariant_product_channelListings {
__typename: "ProductChannelListing";
channel: ProductVariant_product_channelListings_channel;
discountedPrice: ProductVariant_product_channelListings_discountedPrice | null;
pricing: ProductVariant_product_channelListings_pricing | null;
}
export interface ProductVariant_product_variants_images {

View file

@ -65,16 +65,43 @@ export interface ProductVariantAttributesFragment_channelListings_channel {
currencyCode: string;
}
export interface ProductVariantAttributesFragment_channelListings_discountedPrice {
export interface ProductVariantAttributesFragment_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductVariantAttributesFragment_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: ProductVariantAttributesFragment_channelListings_pricing_priceRange_start_net;
}
export interface ProductVariantAttributesFragment_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductVariantAttributesFragment_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: ProductVariantAttributesFragment_channelListings_pricing_priceRange_stop_net;
}
export interface ProductVariantAttributesFragment_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: ProductVariantAttributesFragment_channelListings_pricing_priceRange_start | null;
stop: ProductVariantAttributesFragment_channelListings_pricing_priceRange_stop | null;
}
export interface ProductVariantAttributesFragment_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: ProductVariantAttributesFragment_channelListings_pricing_priceRange | null;
}
export interface ProductVariantAttributesFragment_channelListings {
__typename: "ProductChannelListing";
channel: ProductVariantAttributesFragment_channelListings_channel;
discountedPrice: ProductVariantAttributesFragment_channelListings_discountedPrice | null;
pricing: ProductVariantAttributesFragment_channelListings_pricing | null;
}
export interface ProductVariantAttributesFragment {

View file

@ -34,12 +34,6 @@ export interface SaleDetailsFragment_products_edges_node_thumbnail {
url: string;
}
export interface SaleDetailsFragment_products_edges_node_channelListings_discountedPrice {
__typename: "Money";
amount: number;
currency: string;
}
export interface SaleDetailsFragment_products_edges_node_channelListings_channel {
__typename: "Channel";
id: string;
@ -51,7 +45,6 @@ export interface SaleDetailsFragment_products_edges_node_channelListings {
__typename: "ProductChannelListing";
isPublished: boolean;
publicationDate: any | null;
discountedPrice: SaleDetailsFragment_products_edges_node_channelListings_discountedPrice | null;
isAvailableForPurchase: boolean | null;
availableForPurchase: any | null;
visibleInListings: boolean;

View file

@ -1,29 +0,0 @@
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
import { LanguageCodeEnum } from "./../../types/globalTypes";
// ====================================================
// GraphQL fragment: SaleTranslationUpdateFragment
// ====================================================
export interface SaleTranslationUpdateFragment_translation_language {
__typename: "LanguageDisplay";
code: LanguageCodeEnum;
language: string;
}
export interface SaleTranslationUpdateFragment_translation {
__typename: "SaleTranslation";
id: string;
language: SaleTranslationUpdateFragment_translation_language;
name: string | null;
}
export interface SaleTranslationUpdateFragment {
__typename: "Sale";
id: string;
name: string;
translation: SaleTranslationUpdateFragment_translation | null;
}

View file

@ -47,12 +47,6 @@ export interface VoucherDetailsFragment_products_edges_node_thumbnail {
url: string;
}
export interface VoucherDetailsFragment_products_edges_node_channelListings_discountedPrice {
__typename: "Money";
amount: number;
currency: string;
}
export interface VoucherDetailsFragment_products_edges_node_channelListings_channel {
__typename: "Channel";
id: string;
@ -64,7 +58,6 @@ export interface VoucherDetailsFragment_products_edges_node_channelListings {
__typename: "ProductChannelListing";
isPublished: boolean;
publicationDate: any | null;
discountedPrice: VoucherDetailsFragment_products_edges_node_channelListings_discountedPrice | null;
isAvailableForPurchase: boolean | null;
availableForPurchase: any | null;
visibleInListings: boolean;

View file

@ -1,29 +0,0 @@
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
import { LanguageCodeEnum } from "./../../types/globalTypes";
// ====================================================
// GraphQL fragment: VoucherTranslationUpdateFragment
// ====================================================
export interface VoucherTranslationUpdateFragment_translation_language {
__typename: "LanguageDisplay";
code: LanguageCodeEnum;
language: string;
}
export interface VoucherTranslationUpdateFragment_translation {
__typename: "VoucherTranslation";
id: string;
language: VoucherTranslationUpdateFragment_translation_language;
name: string | null;
}
export interface VoucherTranslationUpdateFragment {
__typename: "Voucher";
id: string;
name: string | null;
translation: VoucherTranslationUpdateFragment_translation | null;
}

View file

@ -324,11 +324,6 @@ export const shop: (placeholderImage: string) => Home = (
id: "UHJvZHVjdFZhcmlhbnQ6NDM=",
product: {
__typename: "Product",
basePrice: {
__typename: "Money",
amount: 37.65,
currency: "USD"
},
id: "UHJvZHVjdDo4",
name: "Gardner-Martin",
thumbnail: {

View file

@ -37,7 +37,6 @@ import {
import { ProductStockInput } from "../ProductStocks";
export interface ProductCreateFormData extends MetadataFormData {
basePrice: number;
category: string;
changeTaxCode: boolean;
channelListings: ChannelData[];
@ -126,7 +125,6 @@ function useProductCreateForm(
): UseProductCreateFormResult {
const defaultInitialFormData: ProductCreateFormData &
Record<"productType", string> = {
basePrice: 0,
category: "",
changeTaxCode: false,
channelListings: opts.currentChannels,

View file

@ -4,6 +4,7 @@ import CardContent from "@material-ui/core/CardContent";
import TextField from "@material-ui/core/TextField";
import CardTitle from "@saleor/components/CardTitle";
import FormSpacer from "@saleor/components/FormSpacer";
import Grid from "@saleor/components/Grid";
import Hr from "@saleor/components/Hr";
import RichTextEditor, {
RichTextEditorChange
@ -72,6 +73,7 @@ export const ProductDetailsForm: React.FC<ProductDetailsFormProps> = ({
/>
<Hr />
<FormSpacer />
<Grid variant="uniform">
<TextField
type="number"
error={!!formErrors.rating}
@ -85,6 +87,7 @@ export const ProductDetailsForm: React.FC<ProductDetailsFormProps> = ({
value={data.rating || ""}
onChange={onChange}
/>
</Grid>
</CardContent>
</Card>
);

View file

@ -6,7 +6,7 @@ import TableRow from "@material-ui/core/TableRow";
import Typography from "@material-ui/core/Typography";
import { ChannelsAvailabilityDropdown } from "@saleor/components/ChannelsAvailabilityDropdown";
import Checkbox from "@saleor/components/Checkbox";
import Money from "@saleor/components/Money";
import MoneyRange from "@saleor/components/MoneyRange";
import ResponsiveTable from "@saleor/components/ResponsiveTable";
import Skeleton from "@saleor/components/Skeleton";
import TableCellAvatar, {
@ -400,7 +400,10 @@ export const ProductList: React.FC<ProductListProps> = props => {
>
<TableCell className={classes.colPrice}>
{product?.channelListings ? (
<Money money={channel?.discountedPrice} />
<MoneyRange
from={channel?.pricing?.priceRange?.start?.net}
to={channel?.pricing?.priceRange?.stop?.net}
/>
) : (
<Skeleton />
)}

View file

@ -39,7 +39,6 @@ import { ProductAttributeInput } from "../ProductAttributes";
import { ProductStockInput } from "../ProductStocks";
export interface ProductUpdateFormData extends MetadataFormData {
basePrice: number;
category: string | null;
changeTaxCode: boolean;
channelListings: ChannelData[];

View file

@ -26,7 +26,7 @@ const selectedWarehouses = [0, 1, 3].map(index => warehouseList[index]);
const channels: ChannelPrice[] = productChannels.map(channel => ({
channelId: channel.channel.id,
price: channel.discountedPrice.amount.toString()
price: channel.pricing?.priceRange?.start?.net.amount.toString()
}));
const price: Price = {
@ -87,10 +87,10 @@ const data: ProductVariantCreateFormData = {
const props: ProductVariantCreatorContentProps = {
attributes: [0, 1, 4, 6].map(index => attributes[index]),
channelListings: productChannels.map(listing => ({
currency: listing.discountedPrice.currency,
currency: listing.pricing?.priceRange?.start?.net.currency,
id: listing.channel.id,
name: listing.channel.name,
price: listing.discountedPrice?.amount.toString() || ""
price: listing.pricing?.priceRange?.start?.net?.amount.toString() || ""
})),
data: {
...data,

File diff suppressed because it is too large Load diff

View file

@ -65,16 +65,43 @@ export interface CreateMultipleVariantsData_product_channelListings_channel {
currencyCode: string;
}
export interface CreateMultipleVariantsData_product_channelListings_discountedPrice {
export interface CreateMultipleVariantsData_product_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface CreateMultipleVariantsData_product_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: CreateMultipleVariantsData_product_channelListings_pricing_priceRange_start_net;
}
export interface CreateMultipleVariantsData_product_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface CreateMultipleVariantsData_product_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: CreateMultipleVariantsData_product_channelListings_pricing_priceRange_stop_net;
}
export interface CreateMultipleVariantsData_product_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: CreateMultipleVariantsData_product_channelListings_pricing_priceRange_start | null;
stop: CreateMultipleVariantsData_product_channelListings_pricing_priceRange_stop | null;
}
export interface CreateMultipleVariantsData_product_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: CreateMultipleVariantsData_product_channelListings_pricing_priceRange | null;
}
export interface CreateMultipleVariantsData_product_channelListings {
__typename: "ProductChannelListing";
channel: CreateMultipleVariantsData_product_channelListings_channel;
discountedPrice: CreateMultipleVariantsData_product_channelListings_discountedPrice | null;
pricing: CreateMultipleVariantsData_product_channelListings_pricing | null;
}
export interface CreateMultipleVariantsData_product {

View file

@ -74,16 +74,43 @@ export interface ProductChannelListingUpdate_productChannelListingUpdate_product
currencyCode: string;
}
export interface ProductChannelListingUpdate_productChannelListingUpdate_product_channelListings_discountedPrice {
export interface ProductChannelListingUpdate_productChannelListingUpdate_product_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductChannelListingUpdate_productChannelListingUpdate_product_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: ProductChannelListingUpdate_productChannelListingUpdate_product_channelListings_pricing_priceRange_start_net;
}
export interface ProductChannelListingUpdate_productChannelListingUpdate_product_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductChannelListingUpdate_productChannelListingUpdate_product_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: ProductChannelListingUpdate_productChannelListingUpdate_product_channelListings_pricing_priceRange_stop_net;
}
export interface ProductChannelListingUpdate_productChannelListingUpdate_product_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: ProductChannelListingUpdate_productChannelListingUpdate_product_channelListings_pricing_priceRange_start | null;
stop: ProductChannelListingUpdate_productChannelListingUpdate_product_channelListings_pricing_priceRange_stop | null;
}
export interface ProductChannelListingUpdate_productChannelListingUpdate_product_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: ProductChannelListingUpdate_productChannelListingUpdate_product_channelListings_pricing_priceRange | null;
}
export interface ProductChannelListingUpdate_productChannelListingUpdate_product_channelListings {
__typename: "ProductChannelListing";
channel: ProductChannelListingUpdate_productChannelListingUpdate_product_channelListings_channel;
discountedPrice: ProductChannelListingUpdate_productChannelListingUpdate_product_channelListings_discountedPrice | null;
pricing: ProductChannelListingUpdate_productChannelListingUpdate_product_channelListings_pricing | null;
isPublished: boolean;
publicationDate: any | null;
isAvailableForPurchase: boolean | null;

View file

@ -81,16 +81,43 @@ export interface ProductCreate_productCreate_product_channelListings_channel {
currencyCode: string;
}
export interface ProductCreate_productCreate_product_channelListings_discountedPrice {
export interface ProductCreate_productCreate_product_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductCreate_productCreate_product_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: ProductCreate_productCreate_product_channelListings_pricing_priceRange_start_net;
}
export interface ProductCreate_productCreate_product_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductCreate_productCreate_product_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: ProductCreate_productCreate_product_channelListings_pricing_priceRange_stop_net;
}
export interface ProductCreate_productCreate_product_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: ProductCreate_productCreate_product_channelListings_pricing_priceRange_start | null;
stop: ProductCreate_productCreate_product_channelListings_pricing_priceRange_stop | null;
}
export interface ProductCreate_productCreate_product_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: ProductCreate_productCreate_product_channelListings_pricing_priceRange | null;
}
export interface ProductCreate_productCreate_product_channelListings {
__typename: "ProductChannelListing";
channel: ProductCreate_productCreate_product_channelListings_channel;
discountedPrice: ProductCreate_productCreate_product_channelListings_discountedPrice | null;
pricing: ProductCreate_productCreate_product_channelListings_pricing | null;
isPublished: boolean;
publicationDate: any | null;
isAvailableForPurchase: boolean | null;

View file

@ -74,16 +74,43 @@ export interface ProductDetails_product_channelListings_channel {
currencyCode: string;
}
export interface ProductDetails_product_channelListings_discountedPrice {
export interface ProductDetails_product_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductDetails_product_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: ProductDetails_product_channelListings_pricing_priceRange_start_net;
}
export interface ProductDetails_product_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductDetails_product_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: ProductDetails_product_channelListings_pricing_priceRange_stop_net;
}
export interface ProductDetails_product_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: ProductDetails_product_channelListings_pricing_priceRange_start | null;
stop: ProductDetails_product_channelListings_pricing_priceRange_stop | null;
}
export interface ProductDetails_product_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: ProductDetails_product_channelListings_pricing_priceRange | null;
}
export interface ProductDetails_product_channelListings {
__typename: "ProductChannelListing";
channel: ProductDetails_product_channelListings_channel;
discountedPrice: ProductDetails_product_channelListings_discountedPrice | null;
pricing: ProductDetails_product_channelListings_pricing | null;
isPublished: boolean;
publicationDate: any | null;
isAvailableForPurchase: boolean | null;

View file

@ -80,16 +80,43 @@ export interface ProductImageCreate_productImageCreate_product_channelListings_c
currencyCode: string;
}
export interface ProductImageCreate_productImageCreate_product_channelListings_discountedPrice {
export interface ProductImageCreate_productImageCreate_product_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductImageCreate_productImageCreate_product_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: ProductImageCreate_productImageCreate_product_channelListings_pricing_priceRange_start_net;
}
export interface ProductImageCreate_productImageCreate_product_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductImageCreate_productImageCreate_product_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: ProductImageCreate_productImageCreate_product_channelListings_pricing_priceRange_stop_net;
}
export interface ProductImageCreate_productImageCreate_product_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: ProductImageCreate_productImageCreate_product_channelListings_pricing_priceRange_start | null;
stop: ProductImageCreate_productImageCreate_product_channelListings_pricing_priceRange_stop | null;
}
export interface ProductImageCreate_productImageCreate_product_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: ProductImageCreate_productImageCreate_product_channelListings_pricing_priceRange | null;
}
export interface ProductImageCreate_productImageCreate_product_channelListings {
__typename: "ProductChannelListing";
channel: ProductImageCreate_productImageCreate_product_channelListings_channel;
discountedPrice: ProductImageCreate_productImageCreate_product_channelListings_discountedPrice | null;
pricing: ProductImageCreate_productImageCreate_product_channelListings_pricing | null;
isPublished: boolean;
publicationDate: any | null;
isAvailableForPurchase: boolean | null;

View file

@ -80,16 +80,43 @@ export interface ProductImageUpdate_productImageUpdate_product_channelListings_c
currencyCode: string;
}
export interface ProductImageUpdate_productImageUpdate_product_channelListings_discountedPrice {
export interface ProductImageUpdate_productImageUpdate_product_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductImageUpdate_productImageUpdate_product_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: ProductImageUpdate_productImageUpdate_product_channelListings_pricing_priceRange_start_net;
}
export interface ProductImageUpdate_productImageUpdate_product_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductImageUpdate_productImageUpdate_product_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: ProductImageUpdate_productImageUpdate_product_channelListings_pricing_priceRange_stop_net;
}
export interface ProductImageUpdate_productImageUpdate_product_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: ProductImageUpdate_productImageUpdate_product_channelListings_pricing_priceRange_start | null;
stop: ProductImageUpdate_productImageUpdate_product_channelListings_pricing_priceRange_stop | null;
}
export interface ProductImageUpdate_productImageUpdate_product_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: ProductImageUpdate_productImageUpdate_product_channelListings_pricing_priceRange | null;
}
export interface ProductImageUpdate_productImageUpdate_product_channelListings {
__typename: "ProductChannelListing";
channel: ProductImageUpdate_productImageUpdate_product_channelListings_channel;
discountedPrice: ProductImageUpdate_productImageUpdate_product_channelListings_discountedPrice | null;
pricing: ProductImageUpdate_productImageUpdate_product_channelListings_pricing | null;
isPublished: boolean;
publicationDate: any | null;
isAvailableForPurchase: boolean | null;

View file

@ -20,12 +20,6 @@ export interface ProductList_products_edges_node_productType {
hasVariants: boolean;
}
export interface ProductList_products_edges_node_channelListings_discountedPrice {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductList_products_edges_node_channelListings_channel {
__typename: "Channel";
id: string;
@ -33,15 +27,48 @@ export interface ProductList_products_edges_node_channelListings_channel {
currencyCode: string;
}
export interface ProductList_products_edges_node_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductList_products_edges_node_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: ProductList_products_edges_node_channelListings_pricing_priceRange_start_net;
}
export interface ProductList_products_edges_node_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductList_products_edges_node_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: ProductList_products_edges_node_channelListings_pricing_priceRange_stop_net;
}
export interface ProductList_products_edges_node_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: ProductList_products_edges_node_channelListings_pricing_priceRange_start | null;
stop: ProductList_products_edges_node_channelListings_pricing_priceRange_stop | null;
}
export interface ProductList_products_edges_node_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: ProductList_products_edges_node_channelListings_pricing_priceRange | null;
}
export interface ProductList_products_edges_node_channelListings {
__typename: "ProductChannelListing";
isPublished: boolean;
publicationDate: any | null;
discountedPrice: ProductList_products_edges_node_channelListings_discountedPrice | null;
isAvailableForPurchase: boolean | null;
availableForPurchase: any | null;
visibleInListings: boolean;
channel: ProductList_products_edges_node_channelListings_channel;
pricing: ProductList_products_edges_node_channelListings_pricing | null;
}
export interface ProductList_products_edges_node_attributes_attribute {

View file

@ -81,16 +81,43 @@ export interface ProductUpdate_productUpdate_product_channelListings_channel {
currencyCode: string;
}
export interface ProductUpdate_productUpdate_product_channelListings_discountedPrice {
export interface ProductUpdate_productUpdate_product_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductUpdate_productUpdate_product_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: ProductUpdate_productUpdate_product_channelListings_pricing_priceRange_start_net;
}
export interface ProductUpdate_productUpdate_product_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductUpdate_productUpdate_product_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: ProductUpdate_productUpdate_product_channelListings_pricing_priceRange_stop_net;
}
export interface ProductUpdate_productUpdate_product_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: ProductUpdate_productUpdate_product_channelListings_pricing_priceRange_start | null;
stop: ProductUpdate_productUpdate_product_channelListings_pricing_priceRange_stop | null;
}
export interface ProductUpdate_productUpdate_product_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: ProductUpdate_productUpdate_product_channelListings_pricing_priceRange | null;
}
export interface ProductUpdate_productUpdate_product_channelListings {
__typename: "ProductChannelListing";
channel: ProductUpdate_productUpdate_product_channelListings_channel;
discountedPrice: ProductUpdate_productUpdate_product_channelListings_discountedPrice | null;
pricing: ProductUpdate_productUpdate_product_channelListings_pricing | null;
isPublished: boolean;
publicationDate: any | null;
isAvailableForPurchase: boolean | null;

View file

@ -80,16 +80,43 @@ export interface ProductVariantChannelListingUpdate_productVariantChannelListing
currencyCode: string;
}
export interface ProductVariantChannelListingUpdate_productVariantChannelListingUpdate_variant_product_channelListings_discountedPrice {
export interface ProductVariantChannelListingUpdate_productVariantChannelListingUpdate_variant_product_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductVariantChannelListingUpdate_productVariantChannelListingUpdate_variant_product_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: ProductVariantChannelListingUpdate_productVariantChannelListingUpdate_variant_product_channelListings_pricing_priceRange_start_net;
}
export interface ProductVariantChannelListingUpdate_productVariantChannelListingUpdate_variant_product_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductVariantChannelListingUpdate_productVariantChannelListingUpdate_variant_product_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: ProductVariantChannelListingUpdate_productVariantChannelListingUpdate_variant_product_channelListings_pricing_priceRange_stop_net;
}
export interface ProductVariantChannelListingUpdate_productVariantChannelListingUpdate_variant_product_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: ProductVariantChannelListingUpdate_productVariantChannelListingUpdate_variant_product_channelListings_pricing_priceRange_start | null;
stop: ProductVariantChannelListingUpdate_productVariantChannelListingUpdate_variant_product_channelListings_pricing_priceRange_stop | null;
}
export interface ProductVariantChannelListingUpdate_productVariantChannelListingUpdate_variant_product_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: ProductVariantChannelListingUpdate_productVariantChannelListingUpdate_variant_product_channelListings_pricing_priceRange | null;
}
export interface ProductVariantChannelListingUpdate_productVariantChannelListingUpdate_variant_product_channelListings {
__typename: "ProductChannelListing";
channel: ProductVariantChannelListingUpdate_productVariantChannelListingUpdate_variant_product_channelListings_channel;
discountedPrice: ProductVariantChannelListingUpdate_productVariantChannelListingUpdate_variant_product_channelListings_discountedPrice | null;
pricing: ProductVariantChannelListingUpdate_productVariantChannelListingUpdate_variant_product_channelListings_pricing | null;
}
export interface ProductVariantChannelListingUpdate_productVariantChannelListingUpdate_variant_product_variants_images {

View file

@ -80,16 +80,43 @@ export interface ProductVariantDetails_productVariant_product_channelListings_ch
currencyCode: string;
}
export interface ProductVariantDetails_productVariant_product_channelListings_discountedPrice {
export interface ProductVariantDetails_productVariant_product_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductVariantDetails_productVariant_product_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: ProductVariantDetails_productVariant_product_channelListings_pricing_priceRange_start_net;
}
export interface ProductVariantDetails_productVariant_product_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductVariantDetails_productVariant_product_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: ProductVariantDetails_productVariant_product_channelListings_pricing_priceRange_stop_net;
}
export interface ProductVariantDetails_productVariant_product_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: ProductVariantDetails_productVariant_product_channelListings_pricing_priceRange_start | null;
stop: ProductVariantDetails_productVariant_product_channelListings_pricing_priceRange_stop | null;
}
export interface ProductVariantDetails_productVariant_product_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: ProductVariantDetails_productVariant_product_channelListings_pricing_priceRange | null;
}
export interface ProductVariantDetails_productVariant_product_channelListings {
__typename: "ProductChannelListing";
channel: ProductVariantDetails_productVariant_product_channelListings_channel;
discountedPrice: ProductVariantDetails_productVariant_product_channelListings_discountedPrice | null;
pricing: ProductVariantDetails_productVariant_product_channelListings_pricing | null;
}
export interface ProductVariantDetails_productVariant_product_variants_images {

View file

@ -80,16 +80,43 @@ export interface ProductVariantReorder_productVariantReorder_product_channelList
currencyCode: string;
}
export interface ProductVariantReorder_productVariantReorder_product_channelListings_discountedPrice {
export interface ProductVariantReorder_productVariantReorder_product_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductVariantReorder_productVariantReorder_product_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: ProductVariantReorder_productVariantReorder_product_channelListings_pricing_priceRange_start_net;
}
export interface ProductVariantReorder_productVariantReorder_product_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductVariantReorder_productVariantReorder_product_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: ProductVariantReorder_productVariantReorder_product_channelListings_pricing_priceRange_stop_net;
}
export interface ProductVariantReorder_productVariantReorder_product_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: ProductVariantReorder_productVariantReorder_product_channelListings_pricing_priceRange_start | null;
stop: ProductVariantReorder_productVariantReorder_product_channelListings_pricing_priceRange_stop | null;
}
export interface ProductVariantReorder_productVariantReorder_product_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: ProductVariantReorder_productVariantReorder_product_channelListings_pricing_priceRange | null;
}
export interface ProductVariantReorder_productVariantReorder_product_channelListings {
__typename: "ProductChannelListing";
channel: ProductVariantReorder_productVariantReorder_product_channelListings_channel;
discountedPrice: ProductVariantReorder_productVariantReorder_product_channelListings_discountedPrice | null;
pricing: ProductVariantReorder_productVariantReorder_product_channelListings_pricing | null;
isPublished: boolean;
publicationDate: any | null;
isAvailableForPurchase: boolean | null;

View file

@ -80,16 +80,43 @@ export interface ProductVariantSetDefault_productVariantSetDefault_product_chann
currencyCode: string;
}
export interface ProductVariantSetDefault_productVariantSetDefault_product_channelListings_discountedPrice {
export interface ProductVariantSetDefault_productVariantSetDefault_product_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductVariantSetDefault_productVariantSetDefault_product_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: ProductVariantSetDefault_productVariantSetDefault_product_channelListings_pricing_priceRange_start_net;
}
export interface ProductVariantSetDefault_productVariantSetDefault_product_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface ProductVariantSetDefault_productVariantSetDefault_product_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: ProductVariantSetDefault_productVariantSetDefault_product_channelListings_pricing_priceRange_stop_net;
}
export interface ProductVariantSetDefault_productVariantSetDefault_product_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: ProductVariantSetDefault_productVariantSetDefault_product_channelListings_pricing_priceRange_start | null;
stop: ProductVariantSetDefault_productVariantSetDefault_product_channelListings_pricing_priceRange_stop | null;
}
export interface ProductVariantSetDefault_productVariantSetDefault_product_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: ProductVariantSetDefault_productVariantSetDefault_product_channelListings_pricing_priceRange | null;
}
export interface ProductVariantSetDefault_productVariantSetDefault_product_channelListings {
__typename: "ProductChannelListing";
channel: ProductVariantSetDefault_productVariantSetDefault_product_channelListings_channel;
discountedPrice: ProductVariantSetDefault_productVariantSetDefault_product_channelListings_discountedPrice | null;
pricing: ProductVariantSetDefault_productVariantSetDefault_product_channelListings_pricing | null;
isPublished: boolean;
publicationDate: any | null;
isAvailableForPurchase: boolean | null;

View file

@ -81,16 +81,43 @@ export interface SimpleProductUpdate_productUpdate_product_channelListings_chann
currencyCode: string;
}
export interface SimpleProductUpdate_productUpdate_product_channelListings_discountedPrice {
export interface SimpleProductUpdate_productUpdate_product_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface SimpleProductUpdate_productUpdate_product_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: SimpleProductUpdate_productUpdate_product_channelListings_pricing_priceRange_start_net;
}
export interface SimpleProductUpdate_productUpdate_product_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface SimpleProductUpdate_productUpdate_product_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: SimpleProductUpdate_productUpdate_product_channelListings_pricing_priceRange_stop_net;
}
export interface SimpleProductUpdate_productUpdate_product_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: SimpleProductUpdate_productUpdate_product_channelListings_pricing_priceRange_start | null;
stop: SimpleProductUpdate_productUpdate_product_channelListings_pricing_priceRange_stop | null;
}
export interface SimpleProductUpdate_productUpdate_product_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: SimpleProductUpdate_productUpdate_product_channelListings_pricing_priceRange | null;
}
export interface SimpleProductUpdate_productUpdate_product_channelListings {
__typename: "ProductChannelListing";
channel: SimpleProductUpdate_productUpdate_product_channelListings_channel;
discountedPrice: SimpleProductUpdate_productUpdate_product_channelListings_discountedPrice | null;
pricing: SimpleProductUpdate_productUpdate_product_channelListings_pricing | null;
isPublished: boolean;
publicationDate: any | null;
isAvailableForPurchase: boolean | null;
@ -308,16 +335,43 @@ export interface SimpleProductUpdate_productVariantUpdate_productVariant_product
currencyCode: string;
}
export interface SimpleProductUpdate_productVariantUpdate_productVariant_product_channelListings_discountedPrice {
export interface SimpleProductUpdate_productVariantUpdate_productVariant_product_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface SimpleProductUpdate_productVariantUpdate_productVariant_product_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: SimpleProductUpdate_productVariantUpdate_productVariant_product_channelListings_pricing_priceRange_start_net;
}
export interface SimpleProductUpdate_productVariantUpdate_productVariant_product_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface SimpleProductUpdate_productVariantUpdate_productVariant_product_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: SimpleProductUpdate_productVariantUpdate_productVariant_product_channelListings_pricing_priceRange_stop_net;
}
export interface SimpleProductUpdate_productVariantUpdate_productVariant_product_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: SimpleProductUpdate_productVariantUpdate_productVariant_product_channelListings_pricing_priceRange_start | null;
stop: SimpleProductUpdate_productVariantUpdate_productVariant_product_channelListings_pricing_priceRange_stop | null;
}
export interface SimpleProductUpdate_productVariantUpdate_productVariant_product_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: SimpleProductUpdate_productVariantUpdate_productVariant_product_channelListings_pricing_priceRange | null;
}
export interface SimpleProductUpdate_productVariantUpdate_productVariant_product_channelListings {
__typename: "ProductChannelListing";
channel: SimpleProductUpdate_productVariantUpdate_productVariant_product_channelListings_channel;
discountedPrice: SimpleProductUpdate_productVariantUpdate_productVariant_product_channelListings_discountedPrice | null;
pricing: SimpleProductUpdate_productVariantUpdate_productVariant_product_channelListings_pricing | null;
}
export interface SimpleProductUpdate_productVariantUpdate_productVariant_product_variants_images {
@ -492,16 +546,43 @@ export interface SimpleProductUpdate_productVariantStocksCreate_productVariant_p
currencyCode: string;
}
export interface SimpleProductUpdate_productVariantStocksCreate_productVariant_product_channelListings_discountedPrice {
export interface SimpleProductUpdate_productVariantStocksCreate_productVariant_product_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface SimpleProductUpdate_productVariantStocksCreate_productVariant_product_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: SimpleProductUpdate_productVariantStocksCreate_productVariant_product_channelListings_pricing_priceRange_start_net;
}
export interface SimpleProductUpdate_productVariantStocksCreate_productVariant_product_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface SimpleProductUpdate_productVariantStocksCreate_productVariant_product_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: SimpleProductUpdate_productVariantStocksCreate_productVariant_product_channelListings_pricing_priceRange_stop_net;
}
export interface SimpleProductUpdate_productVariantStocksCreate_productVariant_product_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: SimpleProductUpdate_productVariantStocksCreate_productVariant_product_channelListings_pricing_priceRange_start | null;
stop: SimpleProductUpdate_productVariantStocksCreate_productVariant_product_channelListings_pricing_priceRange_stop | null;
}
export interface SimpleProductUpdate_productVariantStocksCreate_productVariant_product_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: SimpleProductUpdate_productVariantStocksCreate_productVariant_product_channelListings_pricing_priceRange | null;
}
export interface SimpleProductUpdate_productVariantStocksCreate_productVariant_product_channelListings {
__typename: "ProductChannelListing";
channel: SimpleProductUpdate_productVariantStocksCreate_productVariant_product_channelListings_channel;
discountedPrice: SimpleProductUpdate_productVariantStocksCreate_productVariant_product_channelListings_discountedPrice | null;
pricing: SimpleProductUpdate_productVariantStocksCreate_productVariant_product_channelListings_pricing | null;
}
export interface SimpleProductUpdate_productVariantStocksCreate_productVariant_product_variants_images {
@ -675,16 +756,43 @@ export interface SimpleProductUpdate_productVariantStocksDelete_productVariant_p
currencyCode: string;
}
export interface SimpleProductUpdate_productVariantStocksDelete_productVariant_product_channelListings_discountedPrice {
export interface SimpleProductUpdate_productVariantStocksDelete_productVariant_product_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface SimpleProductUpdate_productVariantStocksDelete_productVariant_product_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: SimpleProductUpdate_productVariantStocksDelete_productVariant_product_channelListings_pricing_priceRange_start_net;
}
export interface SimpleProductUpdate_productVariantStocksDelete_productVariant_product_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface SimpleProductUpdate_productVariantStocksDelete_productVariant_product_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: SimpleProductUpdate_productVariantStocksDelete_productVariant_product_channelListings_pricing_priceRange_stop_net;
}
export interface SimpleProductUpdate_productVariantStocksDelete_productVariant_product_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: SimpleProductUpdate_productVariantStocksDelete_productVariant_product_channelListings_pricing_priceRange_start | null;
stop: SimpleProductUpdate_productVariantStocksDelete_productVariant_product_channelListings_pricing_priceRange_stop | null;
}
export interface SimpleProductUpdate_productVariantStocksDelete_productVariant_product_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: SimpleProductUpdate_productVariantStocksDelete_productVariant_product_channelListings_pricing_priceRange | null;
}
export interface SimpleProductUpdate_productVariantStocksDelete_productVariant_product_channelListings {
__typename: "ProductChannelListing";
channel: SimpleProductUpdate_productVariantStocksDelete_productVariant_product_channelListings_channel;
discountedPrice: SimpleProductUpdate_productVariantStocksDelete_productVariant_product_channelListings_discountedPrice | null;
pricing: SimpleProductUpdate_productVariantStocksDelete_productVariant_product_channelListings_pricing | null;
}
export interface SimpleProductUpdate_productVariantStocksDelete_productVariant_product_variants_images {
@ -859,16 +967,43 @@ export interface SimpleProductUpdate_productVariantStocksUpdate_productVariant_p
currencyCode: string;
}
export interface SimpleProductUpdate_productVariantStocksUpdate_productVariant_product_channelListings_discountedPrice {
export interface SimpleProductUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface SimpleProductUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: SimpleProductUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing_priceRange_start_net;
}
export interface SimpleProductUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface SimpleProductUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: SimpleProductUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing_priceRange_stop_net;
}
export interface SimpleProductUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: SimpleProductUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing_priceRange_start | null;
stop: SimpleProductUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing_priceRange_stop | null;
}
export interface SimpleProductUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: SimpleProductUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing_priceRange | null;
}
export interface SimpleProductUpdate_productVariantStocksUpdate_productVariant_product_channelListings {
__typename: "ProductChannelListing";
channel: SimpleProductUpdate_productVariantStocksUpdate_productVariant_product_channelListings_channel;
discountedPrice: SimpleProductUpdate_productVariantStocksUpdate_productVariant_product_channelListings_discountedPrice | null;
pricing: SimpleProductUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing | null;
}
export interface SimpleProductUpdate_productVariantStocksUpdate_productVariant_product_variants_images {

View file

@ -87,16 +87,43 @@ export interface VariantCreate_productVariantCreate_productVariant_product_chann
currencyCode: string;
}
export interface VariantCreate_productVariantCreate_productVariant_product_channelListings_discountedPrice {
export interface VariantCreate_productVariantCreate_productVariant_product_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface VariantCreate_productVariantCreate_productVariant_product_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: VariantCreate_productVariantCreate_productVariant_product_channelListings_pricing_priceRange_start_net;
}
export interface VariantCreate_productVariantCreate_productVariant_product_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface VariantCreate_productVariantCreate_productVariant_product_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: VariantCreate_productVariantCreate_productVariant_product_channelListings_pricing_priceRange_stop_net;
}
export interface VariantCreate_productVariantCreate_productVariant_product_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: VariantCreate_productVariantCreate_productVariant_product_channelListings_pricing_priceRange_start | null;
stop: VariantCreate_productVariantCreate_productVariant_product_channelListings_pricing_priceRange_stop | null;
}
export interface VariantCreate_productVariantCreate_productVariant_product_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: VariantCreate_productVariantCreate_productVariant_product_channelListings_pricing_priceRange | null;
}
export interface VariantCreate_productVariantCreate_productVariant_product_channelListings {
__typename: "ProductChannelListing";
channel: VariantCreate_productVariantCreate_productVariant_product_channelListings_channel;
discountedPrice: VariantCreate_productVariantCreate_productVariant_product_channelListings_discountedPrice | null;
pricing: VariantCreate_productVariantCreate_productVariant_product_channelListings_pricing | null;
}
export interface VariantCreate_productVariantCreate_productVariant_product_variants_images {

View file

@ -86,16 +86,43 @@ export interface VariantImageAssign_variantImageAssign_productVariant_product_ch
currencyCode: string;
}
export interface VariantImageAssign_variantImageAssign_productVariant_product_channelListings_discountedPrice {
export interface VariantImageAssign_variantImageAssign_productVariant_product_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface VariantImageAssign_variantImageAssign_productVariant_product_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: VariantImageAssign_variantImageAssign_productVariant_product_channelListings_pricing_priceRange_start_net;
}
export interface VariantImageAssign_variantImageAssign_productVariant_product_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface VariantImageAssign_variantImageAssign_productVariant_product_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: VariantImageAssign_variantImageAssign_productVariant_product_channelListings_pricing_priceRange_stop_net;
}
export interface VariantImageAssign_variantImageAssign_productVariant_product_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: VariantImageAssign_variantImageAssign_productVariant_product_channelListings_pricing_priceRange_start | null;
stop: VariantImageAssign_variantImageAssign_productVariant_product_channelListings_pricing_priceRange_stop | null;
}
export interface VariantImageAssign_variantImageAssign_productVariant_product_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: VariantImageAssign_variantImageAssign_productVariant_product_channelListings_pricing_priceRange | null;
}
export interface VariantImageAssign_variantImageAssign_productVariant_product_channelListings {
__typename: "ProductChannelListing";
channel: VariantImageAssign_variantImageAssign_productVariant_product_channelListings_channel;
discountedPrice: VariantImageAssign_variantImageAssign_productVariant_product_channelListings_discountedPrice | null;
pricing: VariantImageAssign_variantImageAssign_productVariant_product_channelListings_pricing | null;
}
export interface VariantImageAssign_variantImageAssign_productVariant_product_variants_images {

View file

@ -86,16 +86,43 @@ export interface VariantImageUnassign_variantImageUnassign_productVariant_produc
currencyCode: string;
}
export interface VariantImageUnassign_variantImageUnassign_productVariant_product_channelListings_discountedPrice {
export interface VariantImageUnassign_variantImageUnassign_productVariant_product_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface VariantImageUnassign_variantImageUnassign_productVariant_product_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: VariantImageUnassign_variantImageUnassign_productVariant_product_channelListings_pricing_priceRange_start_net;
}
export interface VariantImageUnassign_variantImageUnassign_productVariant_product_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface VariantImageUnassign_variantImageUnassign_productVariant_product_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: VariantImageUnassign_variantImageUnassign_productVariant_product_channelListings_pricing_priceRange_stop_net;
}
export interface VariantImageUnassign_variantImageUnassign_productVariant_product_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: VariantImageUnassign_variantImageUnassign_productVariant_product_channelListings_pricing_priceRange_start | null;
stop: VariantImageUnassign_variantImageUnassign_productVariant_product_channelListings_pricing_priceRange_stop | null;
}
export interface VariantImageUnassign_variantImageUnassign_productVariant_product_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: VariantImageUnassign_variantImageUnassign_productVariant_product_channelListings_pricing_priceRange | null;
}
export interface VariantImageUnassign_variantImageUnassign_productVariant_product_channelListings {
__typename: "ProductChannelListing";
channel: VariantImageUnassign_variantImageUnassign_productVariant_product_channelListings_channel;
discountedPrice: VariantImageUnassign_variantImageUnassign_productVariant_product_channelListings_discountedPrice | null;
pricing: VariantImageUnassign_variantImageUnassign_productVariant_product_channelListings_pricing | null;
}
export interface VariantImageUnassign_variantImageUnassign_productVariant_product_variants_images {

View file

@ -87,16 +87,43 @@ export interface VariantUpdate_productVariantUpdate_productVariant_product_chann
currencyCode: string;
}
export interface VariantUpdate_productVariantUpdate_productVariant_product_channelListings_discountedPrice {
export interface VariantUpdate_productVariantUpdate_productVariant_product_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface VariantUpdate_productVariantUpdate_productVariant_product_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: VariantUpdate_productVariantUpdate_productVariant_product_channelListings_pricing_priceRange_start_net;
}
export interface VariantUpdate_productVariantUpdate_productVariant_product_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface VariantUpdate_productVariantUpdate_productVariant_product_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: VariantUpdate_productVariantUpdate_productVariant_product_channelListings_pricing_priceRange_stop_net;
}
export interface VariantUpdate_productVariantUpdate_productVariant_product_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: VariantUpdate_productVariantUpdate_productVariant_product_channelListings_pricing_priceRange_start | null;
stop: VariantUpdate_productVariantUpdate_productVariant_product_channelListings_pricing_priceRange_stop | null;
}
export interface VariantUpdate_productVariantUpdate_productVariant_product_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: VariantUpdate_productVariantUpdate_productVariant_product_channelListings_pricing_priceRange | null;
}
export interface VariantUpdate_productVariantUpdate_productVariant_product_channelListings {
__typename: "ProductChannelListing";
channel: VariantUpdate_productVariantUpdate_productVariant_product_channelListings_channel;
discountedPrice: VariantUpdate_productVariantUpdate_productVariant_product_channelListings_discountedPrice | null;
pricing: VariantUpdate_productVariantUpdate_productVariant_product_channelListings_pricing | null;
}
export interface VariantUpdate_productVariantUpdate_productVariant_product_variants_images {
@ -271,16 +298,43 @@ export interface VariantUpdate_productVariantStocksUpdate_productVariant_product
currencyCode: string;
}
export interface VariantUpdate_productVariantStocksUpdate_productVariant_product_channelListings_discountedPrice {
export interface VariantUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing_priceRange_start_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface VariantUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing_priceRange_start {
__typename: "TaxedMoney";
net: VariantUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing_priceRange_start_net;
}
export interface VariantUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing_priceRange_stop_net {
__typename: "Money";
amount: number;
currency: string;
}
export interface VariantUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing_priceRange_stop {
__typename: "TaxedMoney";
net: VariantUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing_priceRange_stop_net;
}
export interface VariantUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing_priceRange {
__typename: "TaxedMoneyRange";
start: VariantUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing_priceRange_start | null;
stop: VariantUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing_priceRange_stop | null;
}
export interface VariantUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing {
__typename: "ProductPricingInfo";
priceRange: VariantUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing_priceRange | null;
}
export interface VariantUpdate_productVariantStocksUpdate_productVariant_product_channelListings {
__typename: "ProductChannelListing";
channel: VariantUpdate_productVariantStocksUpdate_productVariant_product_channelListings_channel;
discountedPrice: VariantUpdate_productVariantStocksUpdate_productVariant_product_channelListings_discountedPrice | null;
pricing: VariantUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing | null;
}
export interface VariantUpdate_productVariantStocksUpdate_productVariant_product_variants_images {

View file

@ -1,28 +0,0 @@
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
import { ProductErrorCode } from "./../../types/globalTypes";
// ====================================================
// GraphQL mutation operation: productBulkPublish
// ====================================================
export interface productBulkPublish_productBulkPublish_errors {
__typename: "ProductError";
code: ProductErrorCode;
field: string | null;
}
export interface productBulkPublish_productBulkPublish {
__typename: "ProductBulkPublish";
errors: productBulkPublish_productBulkPublish_errors[];
}
export interface productBulkPublish {
productBulkPublish: productBulkPublish_productBulkPublish | null;
}
export interface productBulkPublishVariables {
ids: string[];
}

View file

@ -169,7 +169,6 @@ export function getChoices(nodes: Node[]): SingleAutocompleteChoiceType[] {
}
export interface ProductUpdatePageFormData extends MetadataFormData {
basePrice: number;
category: string | null;
changeTaxCode: boolean;
channelListings: ChannelData[];
@ -193,10 +192,6 @@ export function getProductUpdatePageFormData(
currentChannels: ChannelData[]
): ProductUpdatePageFormData {
return {
basePrice: maybe(
() => product.channelListings[0].discountedPrice.amount,
0
),
category: maybe(() => product.category.id, ""),
changeTaxCode: !!product?.taxType.taxCode,
channelListings: currentChannels,

View file

@ -1,42 +0,0 @@
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
// ====================================================
// GraphQL query operation: SearchServiceAccount
// ====================================================
export interface SearchServiceAccount_search_edges_node {
__typename: "ServiceAccount";
id: string;
name: string | null;
}
export interface SearchServiceAccount_search_edges {
__typename: "ServiceAccountCountableEdge";
node: SearchServiceAccount_search_edges_node;
}
export interface SearchServiceAccount_search_pageInfo {
__typename: "PageInfo";
endCursor: string | null;
hasNextPage: boolean;
hasPreviousPage: boolean;
startCursor: string | null;
}
export interface SearchServiceAccount_search {
__typename: "ServiceAccountCountableConnection";
edges: SearchServiceAccount_search_edges[];
pageInfo: SearchServiceAccount_search_pageInfo;
}
export interface SearchServiceAccount {
search: SearchServiceAccount_search | null;
}
export interface SearchServiceAccountVariables {
after?: string | null;
first: number;
query: string;
}

View file

@ -40998,7 +40998,7 @@ exports[`Storyshots Views / Categories / Update category products 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id CategoryProductList-colPrice-id"
>
$1.00
$30.10 - $44.90
</td>
</tr>
<tr
@ -143828,7 +143828,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="5"
value="1.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -143880,7 +143880,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="0"
value="2.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -143932,7 +143932,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="8"
value="30.1"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -144003,7 +144003,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="5"
value="1.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -144055,7 +144055,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="0"
value="2.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -144107,7 +144107,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="8"
value="30.1"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -144968,7 +144968,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="5"
value="1.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -145020,7 +145020,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="0"
value="2.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -145072,7 +145072,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="8"
value="30.1"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -145143,7 +145143,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="5"
value="1.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -145195,7 +145195,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="0"
value="2.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -145247,7 +145247,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="8"
value="30.1"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -145823,7 +145823,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="5"
value="1.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -145875,7 +145875,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="0"
value="2.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -145927,7 +145927,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="8"
value="30.1"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -145998,7 +145998,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="5"
value="1.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -146050,7 +146050,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="0"
value="2.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -146102,7 +146102,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="8"
value="30.1"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -147144,7 +147144,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="5"
value="1.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -147196,7 +147196,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="0"
value="2.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -147248,7 +147248,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="8"
value="30.1"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -147319,7 +147319,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="5"
value="1.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -147371,7 +147371,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="0"
value="2.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -147423,7 +147423,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="8"
value="30.1"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -148114,7 +148114,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="5"
value="1.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -148166,7 +148166,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="0"
value="2.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -148218,7 +148218,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="8"
value="30.1"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -148289,7 +148289,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="5"
value="1.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -148341,7 +148341,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="0"
value="2.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -148393,7 +148393,7 @@ exports[`Storyshots Views / Products / Create multiple variants / prices and SKU
min="0"
name="price"
type="number"
value="8"
value="30.1"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -148624,7 +148624,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary defaul
name="price"
required=""
type="number"
value="5"
value="1.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -148668,7 +148668,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary defaul
name="price"
required=""
type="number"
value="0"
value="2.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -148712,7 +148712,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary defaul
name="price"
required=""
type="number"
value="8"
value="30.1"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -148931,7 +148931,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary defaul
name="price"
required=""
type="number"
value="5"
value="1.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -148975,7 +148975,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary defaul
name="price"
required=""
type="number"
value="0"
value="2.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -149019,7 +149019,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary defaul
name="price"
required=""
type="number"
value="8"
value="30.1"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -149238,7 +149238,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary defaul
name="price"
required=""
type="number"
value="5"
value="1.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -149282,7 +149282,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary defaul
name="price"
required=""
type="number"
value="0"
value="2.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -149326,7 +149326,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary defaul
name="price"
required=""
type="number"
value="8"
value="30.1"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -149545,7 +149545,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary defaul
name="price"
required=""
type="number"
value="5"
value="1.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -149589,7 +149589,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary defaul
name="price"
required=""
type="number"
value="0"
value="2.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -149633,7 +149633,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary defaul
name="price"
required=""
type="number"
value="8"
value="30.1"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -149932,7 +149932,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary errors
name="price"
required=""
type="number"
value="5"
value="1.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -149976,7 +149976,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary errors
name="price"
required=""
type="number"
value="0"
value="2.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -150020,7 +150020,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary errors
name="price"
required=""
type="number"
value="8"
value="30.1"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -150239,7 +150239,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary errors
name="price"
required=""
type="number"
value="5"
value="1.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -150283,7 +150283,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary errors
name="price"
required=""
type="number"
value="0"
value="2.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -150327,7 +150327,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary errors
name="price"
required=""
type="number"
value="8"
value="30.1"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -150546,7 +150546,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary errors
name="price"
required=""
type="number"
value="5"
value="1.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -150590,7 +150590,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary errors
name="price"
required=""
type="number"
value="0"
value="2.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -150634,7 +150634,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary errors
name="price"
required=""
type="number"
value="8"
value="30.1"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -150853,7 +150853,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary errors
name="price"
required=""
type="number"
value="5"
value="1.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -150897,7 +150897,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary errors
name="price"
required=""
type="number"
value="0"
value="2.2"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -150941,7 +150941,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary errors
name="price"
required=""
type="number"
value="8"
value="30.1"
/>
<div
class="MuiInputAdornment-root-id PriceField-currencySymbol-id MuiInputAdornment-positionEnd-id"
@ -152173,6 +152173,9 @@ exports[`Storyshots Views / Products / Create product When loading 1`] = `
<div
class="FormSpacer-spacer-id"
/>
<div
class="Grid-root-id Grid-uniform-id"
>
<div
class="MuiFormControl-root-id MuiTextField-root-id"
>
@ -152211,6 +152214,7 @@ exports[`Storyshots Views / Products / Create product When loading 1`] = `
</div>
</div>
</div>
</div>
<div
class="CardSpacer-spacer-id"
/>
@ -153206,6 +153210,9 @@ exports[`Storyshots Views / Products / Create product default 1`] = `
<div
class="FormSpacer-spacer-id"
/>
<div
class="Grid-root-id Grid-uniform-id"
>
<div
class="MuiFormControl-root-id MuiTextField-root-id"
>
@ -153243,6 +153250,7 @@ exports[`Storyshots Views / Products / Create product default 1`] = `
</div>
</div>
</div>
</div>
<div
class="CardSpacer-spacer-id"
/>
@ -154237,6 +154245,9 @@ exports[`Storyshots Views / Products / Create product form errors 1`] = `
<div
class="FormSpacer-spacer-id"
/>
<div
class="Grid-root-id Grid-uniform-id"
>
<div
class="MuiFormControl-root-id MuiTextField-root-id"
>
@ -154274,6 +154285,7 @@ exports[`Storyshots Views / Products / Create product form errors 1`] = `
</div>
</div>
</div>
</div>
<div
class="CardSpacer-spacer-id"
/>
@ -160490,6 +160502,9 @@ exports[`Storyshots Views / Products / Product edit form errors 1`] = `
<div
class="FormSpacer-spacer-id"
/>
<div
class="Grid-root-id Grid-uniform-id"
>
<div
class="MuiFormControl-root-id MuiTextField-root-id"
>
@ -160527,6 +160542,7 @@ exports[`Storyshots Views / Products / Product edit form errors 1`] = `
</div>
</div>
</div>
</div>
<div
class="CardSpacer-spacer-id"
/>
@ -162263,6 +162279,9 @@ exports[`Storyshots Views / Products / Product edit no product attributes 1`] =
<div
class="FormSpacer-spacer-id"
/>
<div
class="Grid-root-id Grid-uniform-id"
>
<div
class="MuiFormControl-root-id MuiTextField-root-id"
>
@ -162300,6 +162319,7 @@ exports[`Storyshots Views / Products / Product edit no product attributes 1`] =
</div>
</div>
</div>
</div>
<div
class="CardSpacer-spacer-id"
/>
@ -163767,6 +163787,9 @@ exports[`Storyshots Views / Products / Product edit no stock and no variants 1`]
<div
class="FormSpacer-spacer-id"
/>
<div
class="Grid-root-id Grid-uniform-id"
>
<div
class="MuiFormControl-root-id MuiTextField-root-id"
>
@ -163804,6 +163827,7 @@ exports[`Storyshots Views / Products / Product edit no stock and no variants 1`]
</div>
</div>
</div>
</div>
<div
class="CardSpacer-spacer-id"
/>
@ -165508,6 +165532,9 @@ exports[`Storyshots Views / Products / Product edit no stock, no variants and no
<div
class="FormSpacer-spacer-id"
/>
<div
class="Grid-root-id Grid-uniform-id"
>
<div
class="MuiFormControl-root-id MuiTextField-root-id"
>
@ -165545,6 +165572,7 @@ exports[`Storyshots Views / Products / Product edit no stock, no variants and no
</div>
</div>
</div>
</div>
<div
class="CardSpacer-spacer-id"
/>
@ -167186,6 +167214,9 @@ exports[`Storyshots Views / Products / Product edit no variants 1`] = `
<div
class="FormSpacer-spacer-id"
/>
<div
class="Grid-root-id Grid-uniform-id"
>
<div
class="MuiFormControl-root-id MuiTextField-root-id"
>
@ -167223,6 +167254,7 @@ exports[`Storyshots Views / Products / Product edit no variants 1`] = `
</div>
</div>
</div>
</div>
<div
class="CardSpacer-spacer-id"
/>
@ -169061,6 +169093,9 @@ exports[`Storyshots Views / Products / Product edit when data is fully loaded 1`
<div
class="FormSpacer-spacer-id"
/>
<div
class="Grid-root-id Grid-uniform-id"
>
<div
class="MuiFormControl-root-id MuiTextField-root-id"
>
@ -169098,6 +169133,7 @@ exports[`Storyshots Views / Products / Product edit when data is fully loaded 1`
</div>
</div>
</div>
</div>
<div
class="CardSpacer-spacer-id"
/>
@ -170830,6 +170866,9 @@ exports[`Storyshots Views / Products / Product edit when loading data 1`] = `
<div
class="FormSpacer-spacer-id"
/>
<div
class="Grid-root-id Grid-uniform-id"
>
<div
class="MuiFormControl-root-id MuiTextField-root-id"
>
@ -170868,6 +170907,7 @@ exports[`Storyshots Views / Products / Product edit when loading data 1`] = `
</div>
</div>
</div>
</div>
<div
class="CardSpacer-spacer-id"
/>
@ -171837,6 +171877,9 @@ exports[`Storyshots Views / Products / Product edit when product has no images 1
<div
class="FormSpacer-spacer-id"
/>
<div
class="Grid-root-id Grid-uniform-id"
>
<div
class="MuiFormControl-root-id MuiTextField-root-id"
>
@ -171874,6 +171917,7 @@ exports[`Storyshots Views / Products / Product edit when product has no images 1
</div>
</div>
</div>
</div>
<div
class="CardSpacer-spacer-id"
/>
@ -173556,6 +173600,9 @@ exports[`Storyshots Views / Products / Product edit when product has no variants
<div
class="FormSpacer-spacer-id"
/>
<div
class="Grid-root-id Grid-uniform-id"
>
<div
class="MuiFormControl-root-id MuiTextField-root-id"
>
@ -173593,6 +173640,7 @@ exports[`Storyshots Views / Products / Product edit when product has no variants
</div>
</div>
</div>
</div>
<div
class="CardSpacer-spacer-id"
/>
@ -175431,6 +175479,9 @@ exports[`Storyshots Views / Products / Product edit with channels 1`] = `
<div
class="FormSpacer-spacer-id"
/>
<div
class="Grid-root-id Grid-uniform-id"
>
<div
class="MuiFormControl-root-id MuiTextField-root-id"
>
@ -175468,6 +175519,7 @@ exports[`Storyshots Views / Products / Product edit with channels 1`] = `
</div>
</div>
</div>
</div>
<div
class="CardSpacer-spacer-id"
/>
@ -178324,7 +178376,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -178427,7 +178479,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -178530,7 +178582,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -178633,7 +178685,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -178736,7 +178788,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -178839,7 +178891,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -178942,7 +178994,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$1.00
$1.20 - $3.50
</td>
</tr>
<tr
@ -179045,7 +179097,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$1.00
$1.20 - $3.50
</td>
</tr>
<tr
@ -179148,7 +179200,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -179251,7 +179303,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -179354,7 +179406,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -179457,7 +179509,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -179560,7 +179612,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -179663,7 +179715,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -179766,7 +179818,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -179869,7 +179921,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -179972,7 +180024,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -180075,7 +180127,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -180178,7 +180230,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$1.00
$1.20 - $3.50
</td>
</tr>
<tr
@ -180281,7 +180333,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$1.00
$1.20 - $3.50
</td>
</tr>
</tbody>
@ -184089,7 +184141,7 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -184192,7 +184244,7 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -184295,7 +184347,7 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -184398,7 +184450,7 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -184501,7 +184553,7 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -184604,7 +184656,7 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -184707,7 +184759,7 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$1.00
$1.20 - $3.50
</td>
</tr>
<tr
@ -184810,7 +184862,7 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$1.00
$1.20 - $3.50
</td>
</tr>
<tr
@ -184913,7 +184965,7 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -185016,7 +185068,7 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -185119,7 +185171,7 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -185222,7 +185274,7 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -185325,7 +185377,7 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -185428,7 +185480,7 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -185531,7 +185583,7 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -185634,7 +185686,7 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -185737,7 +185789,7 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -185840,7 +185892,7 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$3.99
$1.20 - $3.50
</td>
</tr>
<tr
@ -185943,7 +185995,7 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$1.00
$1.20 - $3.50
</td>
</tr>
<tr
@ -186046,7 +186098,7 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colPrice-id"
>
$1.00
$1.20 - $3.50
</td>
</tr>
</tbody>

View file

@ -155,7 +155,6 @@ storiesOf("Views / Products / Product edit", module)
{...props}
errors={([
"attributes",
"basePrice",
"category",
"chargeTaxes",
"collections",

View file

@ -1,56 +0,0 @@
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
import { LanguageCodeEnum } from "./../../types/globalTypes";
// ====================================================
// GraphQL query operation: ProductTypeTranslationDetails
// ====================================================
export interface ProductTypeTranslationDetails_translation_ProductTranslatableContent {
__typename: "ProductTranslatableContent" | "CollectionTranslatableContent" | "CategoryTranslatableContent" | "AttributeValueTranslatableContent" | "ProductVariantTranslatableContent" | "PageTranslatableContent" | "ShippingMethodTranslatableContent" | "SaleTranslatableContent" | "VoucherTranslatableContent" | "MenuItemTranslatableContent";
}
export interface ProductTypeTranslationDetails_translation_AttributeTranslatableContent_translation {
__typename: "AttributeTranslation";
id: string;
name: string;
}
export interface ProductTypeTranslationDetails_translation_AttributeTranslatableContent_attribute_values_translation {
__typename: "AttributeValueTranslation";
id: string;
name: string;
}
export interface ProductTypeTranslationDetails_translation_AttributeTranslatableContent_attribute_values {
__typename: "AttributeValue";
id: string;
name: string | null;
translation: ProductTypeTranslationDetails_translation_AttributeTranslatableContent_attribute_values_translation | null;
}
export interface ProductTypeTranslationDetails_translation_AttributeTranslatableContent_attribute {
__typename: "Attribute";
id: string;
name: string | null;
values: (ProductTypeTranslationDetails_translation_AttributeTranslatableContent_attribute_values | null)[] | null;
}
export interface ProductTypeTranslationDetails_translation_AttributeTranslatableContent {
__typename: "AttributeTranslatableContent";
translation: ProductTypeTranslationDetails_translation_AttributeTranslatableContent_translation | null;
attribute: ProductTypeTranslationDetails_translation_AttributeTranslatableContent_attribute | null;
}
export type ProductTypeTranslationDetails_translation = ProductTypeTranslationDetails_translation_ProductTranslatableContent | ProductTypeTranslationDetails_translation_AttributeTranslatableContent;
export interface ProductTypeTranslationDetails {
translation: ProductTypeTranslationDetails_translation | null;
}
export interface ProductTypeTranslationDetailsVariables {
id: string;
language: LanguageCodeEnum;
}

View file

@ -1,78 +0,0 @@
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
import { LanguageCodeEnum } from "./../../types/globalTypes";
// ====================================================
// GraphQL query operation: ProductTypeTranslations
// ====================================================
export interface ProductTypeTranslations_translations_edges_node_ProductTranslatableContent {
__typename: "ProductTranslatableContent" | "CollectionTranslatableContent" | "CategoryTranslatableContent" | "AttributeValueTranslatableContent" | "ProductVariantTranslatableContent" | "PageTranslatableContent" | "ShippingMethodTranslatableContent" | "SaleTranslatableContent" | "VoucherTranslatableContent" | "MenuItemTranslatableContent";
}
export interface ProductTypeTranslations_translations_edges_node_AttributeTranslatableContent_translation {
__typename: "AttributeTranslation";
id: string;
name: string;
}
export interface ProductTypeTranslations_translations_edges_node_AttributeTranslatableContent_attribute_values_translation {
__typename: "AttributeValueTranslation";
id: string;
name: string;
}
export interface ProductTypeTranslations_translations_edges_node_AttributeTranslatableContent_attribute_values {
__typename: "AttributeValue";
id: string;
name: string | null;
translation: ProductTypeTranslations_translations_edges_node_AttributeTranslatableContent_attribute_values_translation | null;
}
export interface ProductTypeTranslations_translations_edges_node_AttributeTranslatableContent_attribute {
__typename: "Attribute";
id: string;
name: string | null;
values: (ProductTypeTranslations_translations_edges_node_AttributeTranslatableContent_attribute_values | null)[] | null;
}
export interface ProductTypeTranslations_translations_edges_node_AttributeTranslatableContent {
__typename: "AttributeTranslatableContent";
translation: ProductTypeTranslations_translations_edges_node_AttributeTranslatableContent_translation | null;
attribute: ProductTypeTranslations_translations_edges_node_AttributeTranslatableContent_attribute | null;
}
export type ProductTypeTranslations_translations_edges_node = ProductTypeTranslations_translations_edges_node_ProductTranslatableContent | ProductTypeTranslations_translations_edges_node_AttributeTranslatableContent;
export interface ProductTypeTranslations_translations_edges {
__typename: "TranslatableItemEdge";
node: ProductTypeTranslations_translations_edges_node;
}
export interface ProductTypeTranslations_translations_pageInfo {
__typename: "PageInfo";
endCursor: string | null;
hasNextPage: boolean;
hasPreviousPage: boolean;
startCursor: string | null;
}
export interface ProductTypeTranslations_translations {
__typename: "TranslatableItemConnection";
edges: ProductTypeTranslations_translations_edges[];
pageInfo: ProductTypeTranslations_translations_pageInfo;
}
export interface ProductTypeTranslations {
translations: ProductTypeTranslations_translations | null;
}
export interface ProductTypeTranslationsVariables {
language: LanguageCodeEnum;
first?: number | null;
after?: string | null;
last?: number | null;
before?: string | null;
}

View file

@ -1,4 +1,4 @@
import { AppErrorFragment } from "@saleor/apps/types/AppErrorFragment";
import { AppErrorFragment } from "@saleor/fragments/types/AppErrorFragment";
import { commonMessages } from "@saleor/intl";
import { AppErrorCode } from "@saleor/types/globalTypes";
import { defineMessages, IntlShape } from "react-intl";