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:
parent
48a68ed1bf
commit
2765dc1324
78 changed files with 2748 additions and 1720 deletions
|
@ -1,4 +1,3 @@
|
||||||
import { AppErrorFragment } from "@saleor/apps/types/AppErrorFragment";
|
|
||||||
import AccountPermissions from "@saleor/components/AccountPermissions";
|
import AccountPermissions from "@saleor/components/AccountPermissions";
|
||||||
import AppHeader from "@saleor/components/AppHeader";
|
import AppHeader from "@saleor/components/AppHeader";
|
||||||
import AppStatus from "@saleor/components/AppStatus";
|
import AppStatus from "@saleor/components/AppStatus";
|
||||||
|
@ -10,6 +9,7 @@ import Grid from "@saleor/components/Grid";
|
||||||
import PageHeader from "@saleor/components/PageHeader";
|
import PageHeader from "@saleor/components/PageHeader";
|
||||||
import SaveButtonBar from "@saleor/components/SaveButtonBar";
|
import SaveButtonBar from "@saleor/components/SaveButtonBar";
|
||||||
import { ShopInfo_shop_permissions } from "@saleor/components/Shop/types/ShopInfo";
|
import { ShopInfo_shop_permissions } from "@saleor/components/Shop/types/ShopInfo";
|
||||||
|
import { AppErrorFragment } from "@saleor/fragments/types/AppErrorFragment";
|
||||||
import { sectionNames } from "@saleor/intl";
|
import { sectionNames } from "@saleor/intl";
|
||||||
import { PermissionEnum } from "@saleor/types/globalTypes";
|
import { PermissionEnum } from "@saleor/types/globalTypes";
|
||||||
import { getFormErrors } from "@saleor/utils/errors";
|
import { getFormErrors } from "@saleor/utils/errors";
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import { AppErrorFragment } from "@saleor/apps/types/AppErrorFragment";
|
|
||||||
import AccountPermissions from "@saleor/components/AccountPermissions";
|
import AccountPermissions from "@saleor/components/AccountPermissions";
|
||||||
import AppHeader from "@saleor/components/AppHeader";
|
import AppHeader from "@saleor/components/AppHeader";
|
||||||
import AppStatus from "@saleor/components/AppStatus";
|
import AppStatus from "@saleor/components/AppStatus";
|
||||||
|
@ -10,6 +9,7 @@ import Grid from "@saleor/components/Grid";
|
||||||
import PageHeader from "@saleor/components/PageHeader";
|
import PageHeader from "@saleor/components/PageHeader";
|
||||||
import SaveButtonBar from "@saleor/components/SaveButtonBar";
|
import SaveButtonBar from "@saleor/components/SaveButtonBar";
|
||||||
import { ShopInfo_shop_permissions } from "@saleor/components/Shop/types/ShopInfo";
|
import { ShopInfo_shop_permissions } from "@saleor/components/Shop/types/ShopInfo";
|
||||||
|
import { AppErrorFragment } from "@saleor/fragments/types/AppErrorFragment";
|
||||||
import { SubmitPromise } from "@saleor/hooks/useForm";
|
import { SubmitPromise } from "@saleor/hooks/useForm";
|
||||||
import { sectionNames } from "@saleor/intl";
|
import { sectionNames } from "@saleor/intl";
|
||||||
import { PermissionEnum } from "@saleor/types/globalTypes";
|
import { PermissionEnum } from "@saleor/types/globalTypes";
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import Card from "@material-ui/core/Card";
|
import Card from "@material-ui/core/Card";
|
||||||
import CardContent from "@material-ui/core/CardContent";
|
import CardContent from "@material-ui/core/CardContent";
|
||||||
import TextField from "@material-ui/core/TextField";
|
import TextField from "@material-ui/core/TextField";
|
||||||
import { AppErrorFragment } from "@saleor/apps/types/AppErrorFragment";
|
|
||||||
import CardTitle from "@saleor/components/CardTitle";
|
import CardTitle from "@saleor/components/CardTitle";
|
||||||
|
import { AppErrorFragment } from "@saleor/fragments/types/AppErrorFragment";
|
||||||
import { FormChange } from "@saleor/hooks/useForm";
|
import { FormChange } from "@saleor/hooks/useForm";
|
||||||
import { getFormErrors } from "@saleor/utils/errors";
|
import { getFormErrors } from "@saleor/utils/errors";
|
||||||
import getAppErrorMessage from "@saleor/utils/errors/app";
|
import getAppErrorMessage from "@saleor/utils/errors/app";
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
|
@ -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;
|
|
||||||
}
|
|
|
@ -5,7 +5,7 @@ import TableFooter from "@material-ui/core/TableFooter";
|
||||||
import TableRow from "@material-ui/core/TableRow";
|
import TableRow from "@material-ui/core/TableRow";
|
||||||
import { ChannelsAvailabilityDropdown } from "@saleor/components/ChannelsAvailabilityDropdown";
|
import { ChannelsAvailabilityDropdown } from "@saleor/components/ChannelsAvailabilityDropdown";
|
||||||
import Checkbox from "@saleor/components/Checkbox";
|
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 ResponsiveTable from "@saleor/components/ResponsiveTable";
|
||||||
import Skeleton from "@saleor/components/Skeleton";
|
import Skeleton from "@saleor/components/Skeleton";
|
||||||
import TableCellAvatar, {
|
import TableCellAvatar, {
|
||||||
|
@ -207,7 +207,10 @@ export const CategoryProductList: React.FC<CategoryProductListProps> = props =>
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell className={classes.colPrice}>
|
<TableCell className={classes.colPrice}>
|
||||||
{product?.channelListings ? (
|
{product?.channelListings ? (
|
||||||
<Money money={channel?.discountedPrice} />
|
<MoneyRange
|
||||||
|
from={channel?.pricing?.priceRange?.start?.net}
|
||||||
|
to={channel?.pricing?.priceRange?.stop?.net}
|
||||||
|
/>
|
||||||
) : (
|
) : (
|
||||||
<Skeleton />
|
<Skeleton />
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -139,13 +139,30 @@ export const category: (
|
||||||
name: "Channel1"
|
name: "Channel1"
|
||||||
},
|
},
|
||||||
currency: "USD",
|
currency: "USD",
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 1,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: 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,
|
publicationDate: null,
|
||||||
visibleInListings: false
|
visibleInListings: false
|
||||||
},
|
},
|
||||||
|
@ -159,13 +176,30 @@ export const category: (
|
||||||
name: "Channel2"
|
name: "Channel2"
|
||||||
},
|
},
|
||||||
currency: "USD",
|
currency: "USD",
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 1,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: 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,
|
publicationDate: null,
|
||||||
visibleInListings: false
|
visibleInListings: false
|
||||||
}
|
}
|
||||||
|
@ -196,13 +230,30 @@ export const category: (
|
||||||
name: "Channel1"
|
name: "Channel1"
|
||||||
},
|
},
|
||||||
currency: "USD",
|
currency: "USD",
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 1,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: 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,
|
publicationDate: null,
|
||||||
visibleInListings: false
|
visibleInListings: false
|
||||||
}
|
}
|
||||||
|
@ -233,13 +284,30 @@ export const category: (
|
||||||
name: "Channel1"
|
name: "Channel1"
|
||||||
},
|
},
|
||||||
currency: "USD",
|
currency: "USD",
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 1,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: 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,
|
publicationDate: null,
|
||||||
visibleInListings: false
|
visibleInListings: false
|
||||||
}
|
}
|
||||||
|
@ -270,13 +338,30 @@ export const category: (
|
||||||
name: "Channel1"
|
name: "Channel1"
|
||||||
},
|
},
|
||||||
currency: "USD",
|
currency: "USD",
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 1,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: 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,
|
publicationDate: null,
|
||||||
visibleInListings: false
|
visibleInListings: false
|
||||||
}
|
}
|
||||||
|
@ -307,13 +392,30 @@ export const category: (
|
||||||
name: "Channel1"
|
name: "Channel1"
|
||||||
},
|
},
|
||||||
currency: "USD",
|
currency: "USD",
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 1,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: 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,
|
publicationDate: null,
|
||||||
visibleInListings: false
|
visibleInListings: false
|
||||||
}
|
}
|
||||||
|
@ -344,13 +446,30 @@ export const category: (
|
||||||
name: "Channel1"
|
name: "Channel1"
|
||||||
},
|
},
|
||||||
currency: "USD",
|
currency: "USD",
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 1,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: 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,
|
publicationDate: null,
|
||||||
visibleInListings: false
|
visibleInListings: false
|
||||||
}
|
}
|
||||||
|
@ -381,13 +500,30 @@ export const category: (
|
||||||
name: "Channel1"
|
name: "Channel1"
|
||||||
},
|
},
|
||||||
currency: "USD",
|
currency: "USD",
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 1,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: 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,
|
publicationDate: null,
|
||||||
visibleInListings: false
|
visibleInListings: false
|
||||||
}
|
}
|
||||||
|
@ -418,13 +554,30 @@ export const category: (
|
||||||
name: "Channel1"
|
name: "Channel1"
|
||||||
},
|
},
|
||||||
currency: "USD",
|
currency: "USD",
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 1,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: 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,
|
publicationDate: null,
|
||||||
visibleInListings: false
|
visibleInListings: false
|
||||||
}
|
}
|
||||||
|
@ -455,13 +608,30 @@ export const category: (
|
||||||
name: "Channel1"
|
name: "Channel1"
|
||||||
},
|
},
|
||||||
currency: "USD",
|
currency: "USD",
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 1,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: 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,
|
publicationDate: null,
|
||||||
visibleInListings: false
|
visibleInListings: false
|
||||||
}
|
}
|
||||||
|
@ -492,13 +662,30 @@ export const category: (
|
||||||
name: "Channel1"
|
name: "Channel1"
|
||||||
},
|
},
|
||||||
currency: "USD",
|
currency: "USD",
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 1,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: 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,
|
publicationDate: null,
|
||||||
visibleInListings: false
|
visibleInListings: false
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,12 +85,6 @@ export interface CategoryDetails_category_products_edges_node_productType {
|
||||||
name: string;
|
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 {
|
export interface CategoryDetails_category_products_edges_node_channelListings_channel {
|
||||||
__typename: "Channel";
|
__typename: "Channel";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -98,15 +92,48 @@ export interface CategoryDetails_category_products_edges_node_channelListings_ch
|
||||||
currencyCode: string;
|
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 {
|
export interface CategoryDetails_category_products_edges_node_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
discountedPrice: CategoryDetails_category_products_edges_node_channelListings_discountedPrice | null;
|
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
availableForPurchase: any | null;
|
availableForPurchase: any | null;
|
||||||
visibleInListings: boolean;
|
visibleInListings: boolean;
|
||||||
channel: CategoryDetails_category_products_edges_node_channelListings_channel;
|
channel: CategoryDetails_category_products_edges_node_channelListings_channel;
|
||||||
|
pricing: CategoryDetails_category_products_edges_node_channelListings_pricing | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CategoryDetails_category_products_edges_node {
|
export interface CategoryDetails_category_products_edges_node {
|
||||||
|
|
|
@ -92,13 +92,30 @@ export const productChannels: ProductDetails_product_channelListings[] = [
|
||||||
id: "123",
|
id: "123",
|
||||||
name: "Channel1"
|
name: "Channel1"
|
||||||
},
|
},
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 5,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: true,
|
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",
|
publicationDate: "2020-07-14",
|
||||||
visibleInListings: true
|
visibleInListings: true
|
||||||
},
|
},
|
||||||
|
@ -111,13 +128,30 @@ export const productChannels: ProductDetails_product_channelListings[] = [
|
||||||
id: "124",
|
id: "124",
|
||||||
name: "Channel2"
|
name: "Channel2"
|
||||||
},
|
},
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 0,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: 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",
|
publicationDate: "2020-07-30",
|
||||||
visibleInListings: true
|
visibleInListings: true
|
||||||
},
|
},
|
||||||
|
@ -130,13 +164,30 @@ export const productChannels: ProductDetails_product_channelListings[] = [
|
||||||
id: "125",
|
id: "125",
|
||||||
name: "Channel3"
|
name: "Channel3"
|
||||||
},
|
},
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 8,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: 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,
|
publicationDate: null,
|
||||||
visibleInListings: true
|
visibleInListings: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
|
@ -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;
|
|
||||||
}
|
|
|
@ -185,11 +185,6 @@ export const collection: (
|
||||||
id: "123",
|
id: "123",
|
||||||
name: "Channel1"
|
name: "Channel1"
|
||||||
},
|
},
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 1,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: true,
|
isPublished: true,
|
||||||
publicationDate: "2020-07-14",
|
publicationDate: "2020-07-14",
|
||||||
|
@ -204,11 +199,6 @@ export const collection: (
|
||||||
id: "124",
|
id: "124",
|
||||||
name: "Channel2"
|
name: "Channel2"
|
||||||
},
|
},
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 1,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: false,
|
isPublished: false,
|
||||||
publicationDate: "2020-07-30",
|
publicationDate: "2020-07-30",
|
||||||
|
@ -239,11 +229,6 @@ export const collection: (
|
||||||
id: "123",
|
id: "123",
|
||||||
name: "Channel1"
|
name: "Channel1"
|
||||||
},
|
},
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 1,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: true,
|
isPublished: true,
|
||||||
publicationDate: "2020-07-14",
|
publicationDate: "2020-07-14",
|
||||||
|
@ -258,11 +243,6 @@ export const collection: (
|
||||||
id: "124",
|
id: "124",
|
||||||
name: "Channel2"
|
name: "Channel2"
|
||||||
},
|
},
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 1,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: false,
|
isPublished: false,
|
||||||
publicationDate: "2020-07-30",
|
publicationDate: "2020-07-30",
|
||||||
|
@ -293,11 +273,6 @@ export const collection: (
|
||||||
id: "123",
|
id: "123",
|
||||||
name: "Channel1"
|
name: "Channel1"
|
||||||
},
|
},
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 1,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: true,
|
isPublished: true,
|
||||||
publicationDate: "2020-07-14",
|
publicationDate: "2020-07-14",
|
||||||
|
@ -312,11 +287,6 @@ export const collection: (
|
||||||
id: "124",
|
id: "124",
|
||||||
name: "Channel2"
|
name: "Channel2"
|
||||||
},
|
},
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 1,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: false,
|
isPublished: false,
|
||||||
publicationDate: "2020-07-30",
|
publicationDate: "2020-07-30",
|
||||||
|
@ -347,11 +317,6 @@ export const collection: (
|
||||||
id: "123",
|
id: "123",
|
||||||
name: "Channel1"
|
name: "Channel1"
|
||||||
},
|
},
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 1,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: true,
|
isPublished: true,
|
||||||
publicationDate: "2020-07-14",
|
publicationDate: "2020-07-14",
|
||||||
|
@ -366,11 +331,6 @@ export const collection: (
|
||||||
id: "124",
|
id: "124",
|
||||||
name: "Channel2"
|
name: "Channel2"
|
||||||
},
|
},
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 1,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: false,
|
isPublished: false,
|
||||||
publicationDate: "2020-07-30",
|
publicationDate: "2020-07-30",
|
||||||
|
|
|
@ -19,12 +19,6 @@ export interface CollectionAssignProduct_collectionAddProducts_collection_produc
|
||||||
url: string;
|
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 {
|
export interface CollectionAssignProduct_collectionAddProducts_collection_products_edges_node_channelListings_channel {
|
||||||
__typename: "Channel";
|
__typename: "Channel";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -36,7 +30,6 @@ export interface CollectionAssignProduct_collectionAddProducts_collection_produc
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
discountedPrice: CollectionAssignProduct_collectionAddProducts_collection_products_edges_node_channelListings_discountedPrice | null;
|
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
availableForPurchase: any | null;
|
availableForPurchase: any | null;
|
||||||
visibleInListings: boolean;
|
visibleInListings: boolean;
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
|
@ -48,12 +48,6 @@ export interface CollectionDetails_collection_products_edges_node_thumbnail {
|
||||||
url: string;
|
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 {
|
export interface CollectionDetails_collection_products_edges_node_channelListings_channel {
|
||||||
__typename: "Channel";
|
__typename: "Channel";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -65,7 +59,6 @@ export interface CollectionDetails_collection_products_edges_node_channelListing
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
discountedPrice: CollectionDetails_collection_products_edges_node_channelListings_discountedPrice | null;
|
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
availableForPurchase: any | null;
|
availableForPurchase: any | null;
|
||||||
visibleInListings: boolean;
|
visibleInListings: boolean;
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
|
@ -5,15 +5,15 @@ import { CollectionList_collections_edges_node_channelListings } from "@saleor/c
|
||||||
import Hr from "@saleor/components/Hr";
|
import Hr from "@saleor/components/Hr";
|
||||||
import StatusLabel from "@saleor/components/StatusLabel";
|
import StatusLabel from "@saleor/components/StatusLabel";
|
||||||
import useDateLocalize from "@saleor/hooks/useDateLocalize";
|
import useDateLocalize from "@saleor/hooks/useDateLocalize";
|
||||||
import { ProductList_products_edges_node_channelListings } from "@saleor/products/types/ProductList";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { FormattedMessage, useIntl } from "react-intl";
|
import { FormattedMessage, useIntl } from "react-intl";
|
||||||
|
|
||||||
import { useStyles } from "./styles";
|
import { useStyles } from "./styles";
|
||||||
|
|
||||||
type Channels =
|
type Channels = Pick<
|
||||||
| ProductList_products_edges_node_channelListings
|
CollectionList_collections_edges_node_channelListings,
|
||||||
| CollectionList_collections_edges_node_channelListings;
|
"isPublished" | "publicationDate" | "channel"
|
||||||
|
>;
|
||||||
|
|
||||||
export interface ChannelsAvailabilityDropdownProps {
|
export interface ChannelsAvailabilityDropdownProps {
|
||||||
allChannelsCount: number;
|
allChannelsCount: number;
|
||||||
|
|
|
@ -278,11 +278,6 @@ export const sale: SaleDetails_sale = {
|
||||||
id: "123",
|
id: "123",
|
||||||
name: "Channel1"
|
name: "Channel1"
|
||||||
},
|
},
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 1,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: true,
|
isPublished: true,
|
||||||
publicationDate: "2020-07-14",
|
publicationDate: "2020-07-14",
|
||||||
|
@ -316,11 +311,6 @@ export const sale: SaleDetails_sale = {
|
||||||
id: "123",
|
id: "123",
|
||||||
name: "Channel1"
|
name: "Channel1"
|
||||||
},
|
},
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 1,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: true,
|
isPublished: true,
|
||||||
publicationDate: "2020-07-14",
|
publicationDate: "2020-07-14",
|
||||||
|
@ -354,11 +344,6 @@ export const sale: SaleDetails_sale = {
|
||||||
id: "123",
|
id: "123",
|
||||||
name: "Channel1"
|
name: "Channel1"
|
||||||
},
|
},
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 1,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: true,
|
isPublished: true,
|
||||||
publicationDate: "2020-07-14",
|
publicationDate: "2020-07-14",
|
||||||
|
@ -392,11 +377,6 @@ export const sale: SaleDetails_sale = {
|
||||||
id: "123",
|
id: "123",
|
||||||
name: "Channel1"
|
name: "Channel1"
|
||||||
},
|
},
|
||||||
discountedPrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 1,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
isAvailableForPurchase: false,
|
isAvailableForPurchase: false,
|
||||||
isPublished: true,
|
isPublished: true,
|
||||||
publicationDate: "2020-07-14",
|
publicationDate: "2020-07-14",
|
||||||
|
|
|
@ -41,12 +41,6 @@ export interface SaleCataloguesAdd_saleCataloguesAdd_sale_products_edges_node_th
|
||||||
url: string;
|
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 {
|
export interface SaleCataloguesAdd_saleCataloguesAdd_sale_products_edges_node_channelListings_channel {
|
||||||
__typename: "Channel";
|
__typename: "Channel";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -58,7 +52,6 @@ export interface SaleCataloguesAdd_saleCataloguesAdd_sale_products_edges_node_ch
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
discountedPrice: SaleCataloguesAdd_saleCataloguesAdd_sale_products_edges_node_channelListings_discountedPrice | null;
|
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
availableForPurchase: any | null;
|
availableForPurchase: any | null;
|
||||||
visibleInListings: boolean;
|
visibleInListings: boolean;
|
||||||
|
|
|
@ -41,12 +41,6 @@ export interface SaleCataloguesRemove_saleCataloguesRemove_sale_products_edges_n
|
||||||
url: string;
|
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 {
|
export interface SaleCataloguesRemove_saleCataloguesRemove_sale_products_edges_node_channelListings_channel {
|
||||||
__typename: "Channel";
|
__typename: "Channel";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -58,7 +52,6 @@ export interface SaleCataloguesRemove_saleCataloguesRemove_sale_products_edges_n
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
discountedPrice: SaleCataloguesRemove_saleCataloguesRemove_sale_products_edges_node_channelListings_discountedPrice | null;
|
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
availableForPurchase: any | null;
|
availableForPurchase: any | null;
|
||||||
visibleInListings: boolean;
|
visibleInListings: boolean;
|
||||||
|
|
|
@ -34,12 +34,6 @@ export interface SaleDetails_sale_products_edges_node_thumbnail {
|
||||||
url: string;
|
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 {
|
export interface SaleDetails_sale_products_edges_node_channelListings_channel {
|
||||||
__typename: "Channel";
|
__typename: "Channel";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -51,7 +45,6 @@ export interface SaleDetails_sale_products_edges_node_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
discountedPrice: SaleDetails_sale_products_edges_node_channelListings_discountedPrice | null;
|
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
availableForPurchase: any | null;
|
availableForPurchase: any | null;
|
||||||
visibleInListings: boolean;
|
visibleInListings: boolean;
|
||||||
|
|
|
@ -54,12 +54,6 @@ export interface VoucherCataloguesAdd_voucherCataloguesAdd_voucher_products_edge
|
||||||
url: string;
|
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 {
|
export interface VoucherCataloguesAdd_voucherCataloguesAdd_voucher_products_edges_node_channelListings_channel {
|
||||||
__typename: "Channel";
|
__typename: "Channel";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -71,7 +65,6 @@ export interface VoucherCataloguesAdd_voucherCataloguesAdd_voucher_products_edge
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
discountedPrice: VoucherCataloguesAdd_voucherCataloguesAdd_voucher_products_edges_node_channelListings_discountedPrice | null;
|
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
availableForPurchase: any | null;
|
availableForPurchase: any | null;
|
||||||
visibleInListings: boolean;
|
visibleInListings: boolean;
|
||||||
|
|
|
@ -54,12 +54,6 @@ export interface VoucherCataloguesRemove_voucherCataloguesRemove_voucher_product
|
||||||
url: string;
|
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 {
|
export interface VoucherCataloguesRemove_voucherCataloguesRemove_voucher_products_edges_node_channelListings_channel {
|
||||||
__typename: "Channel";
|
__typename: "Channel";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -71,7 +65,6 @@ export interface VoucherCataloguesRemove_voucherCataloguesRemove_voucher_product
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
discountedPrice: VoucherCataloguesRemove_voucherCataloguesRemove_voucher_products_edges_node_channelListings_discountedPrice | null;
|
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
availableForPurchase: any | null;
|
availableForPurchase: any | null;
|
||||||
visibleInListings: boolean;
|
visibleInListings: boolean;
|
||||||
|
|
|
@ -47,12 +47,6 @@ export interface VoucherDetails_voucher_products_edges_node_thumbnail {
|
||||||
url: string;
|
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 {
|
export interface VoucherDetails_voucher_products_edges_node_channelListings_channel {
|
||||||
__typename: "Channel";
|
__typename: "Channel";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -64,7 +58,6 @@ export interface VoucherDetails_voucher_products_edges_node_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
discountedPrice: VoucherDetails_voucher_products_edges_node_channelListings_discountedPrice | null;
|
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
availableForPurchase: any | null;
|
availableForPurchase: any | null;
|
||||||
visibleInListings: boolean;
|
visibleInListings: boolean;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { channelListingProductFragment } from "@saleor/fragments/products";
|
import { channelListingProductWithoutPricingFragment } from "@saleor/fragments/products";
|
||||||
import gql from "graphql-tag";
|
import gql from "graphql-tag";
|
||||||
|
|
||||||
import { metadataFragment } from "./metadata";
|
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/2496
|
||||||
// https://github.com/apollographql/apollo-client/issues/3468
|
// https://github.com/apollographql/apollo-client/issues/3468
|
||||||
export const collectionProductFragment = gql`
|
export const collectionProductFragment = gql`
|
||||||
${channelListingProductFragment}
|
${channelListingProductWithoutPricingFragment}
|
||||||
fragment CollectionProductFragment on Product {
|
fragment CollectionProductFragment on Product {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
|
@ -52,7 +52,7 @@ export const collectionProductFragment = gql`
|
||||||
url
|
url
|
||||||
}
|
}
|
||||||
channelListings {
|
channelListings {
|
||||||
...ChannelListingProductFragment
|
...ChannelListingProductWithoutPricingFragment
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { channelListingProductFragment } from "@saleor/fragments/products";
|
import { channelListingProductWithoutPricingFragment } from "@saleor/fragments/products";
|
||||||
import gql from "graphql-tag";
|
import gql from "graphql-tag";
|
||||||
|
|
||||||
import { pageInfoFragment } from "./pageInfo";
|
import { pageInfoFragment } from "./pageInfo";
|
||||||
|
@ -24,7 +24,7 @@ export const saleFragment = gql`
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export const saleDetailsFragment = gql`
|
export const saleDetailsFragment = gql`
|
||||||
${channelListingProductFragment}
|
${channelListingProductWithoutPricingFragment}
|
||||||
${pageInfoFragment}
|
${pageInfoFragment}
|
||||||
${saleFragment}
|
${saleFragment}
|
||||||
fragment SaleDetailsFragment on Sale {
|
fragment SaleDetailsFragment on Sale {
|
||||||
|
@ -42,7 +42,7 @@ export const saleDetailsFragment = gql`
|
||||||
url
|
url
|
||||||
}
|
}
|
||||||
channelListings {
|
channelListings {
|
||||||
...ChannelListingProductFragment
|
...ChannelListingProductWithoutPricingFragment
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -117,7 +117,7 @@ export const voucherFragment = gql`
|
||||||
export const voucherDetailsFragment = gql`
|
export const voucherDetailsFragment = gql`
|
||||||
${pageInfoFragment}
|
${pageInfoFragment}
|
||||||
${voucherFragment}
|
${voucherFragment}
|
||||||
${channelListingProductFragment}
|
${channelListingProductWithoutPricingFragment}
|
||||||
fragment VoucherDetailsFragment on Voucher {
|
fragment VoucherDetailsFragment on Voucher {
|
||||||
...VoucherFragment
|
...VoucherFragment
|
||||||
type
|
type
|
||||||
|
@ -139,7 +139,7 @@ export const voucherDetailsFragment = gql`
|
||||||
url
|
url
|
||||||
}
|
}
|
||||||
channelListings {
|
channelListings {
|
||||||
...ChannelListingProductFragment
|
...ChannelListingProductWithoutPricingFragment
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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`
|
export const fragmentProductImage = gql`
|
||||||
fragment ProductImageFragment on ProductImage {
|
fragment ProductImageFragment on ProductImage {
|
||||||
id
|
id
|
||||||
|
@ -32,14 +48,10 @@ export const fragmentProductImage = gql`
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export const channelListingProductFragment = gql`
|
export const channelListingProductWithoutPricingFragment = gql`
|
||||||
${fragmentMoney}
|
fragment ChannelListingProductWithoutPricingFragment on ProductChannelListing {
|
||||||
fragment ChannelListingProductFragment on ProductChannelListing {
|
|
||||||
isPublished
|
isPublished
|
||||||
publicationDate
|
publicationDate
|
||||||
discountedPrice {
|
|
||||||
...Money
|
|
||||||
}
|
|
||||||
isAvailableForPurchase
|
isAvailableForPurchase
|
||||||
availableForPurchase
|
availableForPurchase
|
||||||
visibleInListings
|
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`
|
export const channelListingProductVariantFragment = gql`
|
||||||
${fragmentMoney}
|
${fragmentMoney}
|
||||||
|
@ -128,8 +152,10 @@ export const productVariantAttributesFragment = gql`
|
||||||
name
|
name
|
||||||
currencyCode
|
currencyCode
|
||||||
}
|
}
|
||||||
discountedPrice {
|
pricing {
|
||||||
...Money
|
priceRange {
|
||||||
|
...PriceRangeFragment
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -253,8 +279,10 @@ export const fragmentVariant = gql`
|
||||||
name
|
name
|
||||||
currencyCode
|
currencyCode
|
||||||
}
|
}
|
||||||
discountedPrice {
|
pricing {
|
||||||
...Money
|
priceRange {
|
||||||
|
...PriceRangeFragment
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
variants {
|
variants {
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
|
@ -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;
|
|
||||||
}
|
|
|
@ -6,12 +6,6 @@
|
||||||
// GraphQL fragment: ChannelListingProductFragment
|
// GraphQL fragment: ChannelListingProductFragment
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
|
||||||
export interface ChannelListingProductFragment_discountedPrice {
|
|
||||||
__typename: "Money";
|
|
||||||
amount: number;
|
|
||||||
currency: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ChannelListingProductFragment_channel {
|
export interface ChannelListingProductFragment_channel {
|
||||||
__typename: "Channel";
|
__typename: "Channel";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -19,13 +13,46 @@ export interface ChannelListingProductFragment_channel {
|
||||||
currencyCode: string;
|
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 {
|
export interface ChannelListingProductFragment {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
discountedPrice: ChannelListingProductFragment_discountedPrice | null;
|
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
availableForPurchase: any | null;
|
availableForPurchase: any | null;
|
||||||
visibleInListings: boolean;
|
visibleInListings: boolean;
|
||||||
channel: ChannelListingProductFragment_channel;
|
channel: ChannelListingProductFragment_channel;
|
||||||
|
pricing: ChannelListingProductFragment_pricing | null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
|
@ -17,12 +17,6 @@ export interface CollectionProductFragment_thumbnail {
|
||||||
url: string;
|
url: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CollectionProductFragment_channelListings_discountedPrice {
|
|
||||||
__typename: "Money";
|
|
||||||
amount: number;
|
|
||||||
currency: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface CollectionProductFragment_channelListings_channel {
|
export interface CollectionProductFragment_channelListings_channel {
|
||||||
__typename: "Channel";
|
__typename: "Channel";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -34,7 +28,6 @@ export interface CollectionProductFragment_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
discountedPrice: CollectionProductFragment_channelListings_discountedPrice | null;
|
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
availableForPurchase: any | null;
|
availableForPurchase: any | null;
|
||||||
visibleInListings: boolean;
|
visibleInListings: boolean;
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
|
@ -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)[];
|
|
||||||
}
|
|
|
@ -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;
|
|
||||||
}
|
|
35
src/fragments/types/PriceRangeFragment.ts
Normal file
35
src/fragments/types/PriceRangeFragment.ts
Normal 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;
|
||||||
|
}
|
|
@ -74,16 +74,43 @@ export interface Product_channelListings_channel {
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Product_channelListings_discountedPrice {
|
export interface Product_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface Product_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: Product_channelListings_channel;
|
channel: Product_channelListings_channel;
|
||||||
discountedPrice: Product_channelListings_discountedPrice | null;
|
pricing: Product_channelListings_pricing | null;
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
|
|
|
@ -18,12 +18,6 @@ export interface ProductFragment_productType {
|
||||||
hasVariants: boolean;
|
hasVariants: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductFragment_channelListings_discountedPrice {
|
|
||||||
__typename: "Money";
|
|
||||||
amount: number;
|
|
||||||
currency: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ProductFragment_channelListings_channel {
|
export interface ProductFragment_channelListings_channel {
|
||||||
__typename: "Channel";
|
__typename: "Channel";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -31,15 +25,48 @@ export interface ProductFragment_channelListings_channel {
|
||||||
currencyCode: string;
|
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 {
|
export interface ProductFragment_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
discountedPrice: ProductFragment_channelListings_discountedPrice | null;
|
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
availableForPurchase: any | null;
|
availableForPurchase: any | null;
|
||||||
visibleInListings: boolean;
|
visibleInListings: boolean;
|
||||||
channel: ProductFragment_channelListings_channel;
|
channel: ProductFragment_channelListings_channel;
|
||||||
|
pricing: ProductFragment_channelListings_pricing | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductFragment {
|
export interface ProductFragment {
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
|
@ -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;
|
|
||||||
}
|
|
|
@ -80,16 +80,43 @@ export interface ProductVariant_product_channelListings_channel {
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductVariant_product_channelListings_discountedPrice {
|
export interface ProductVariant_product_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface ProductVariant_product_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: ProductVariant_product_channelListings_channel;
|
channel: ProductVariant_product_channelListings_channel;
|
||||||
discountedPrice: ProductVariant_product_channelListings_discountedPrice | null;
|
pricing: ProductVariant_product_channelListings_pricing | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductVariant_product_variants_images {
|
export interface ProductVariant_product_variants_images {
|
||||||
|
|
|
@ -65,16 +65,43 @@ export interface ProductVariantAttributesFragment_channelListings_channel {
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductVariantAttributesFragment_channelListings_discountedPrice {
|
export interface ProductVariantAttributesFragment_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface ProductVariantAttributesFragment_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: ProductVariantAttributesFragment_channelListings_channel;
|
channel: ProductVariantAttributesFragment_channelListings_channel;
|
||||||
discountedPrice: ProductVariantAttributesFragment_channelListings_discountedPrice | null;
|
pricing: ProductVariantAttributesFragment_channelListings_pricing | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductVariantAttributesFragment {
|
export interface ProductVariantAttributesFragment {
|
||||||
|
|
|
@ -34,12 +34,6 @@ export interface SaleDetailsFragment_products_edges_node_thumbnail {
|
||||||
url: string;
|
url: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SaleDetailsFragment_products_edges_node_channelListings_discountedPrice {
|
|
||||||
__typename: "Money";
|
|
||||||
amount: number;
|
|
||||||
currency: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface SaleDetailsFragment_products_edges_node_channelListings_channel {
|
export interface SaleDetailsFragment_products_edges_node_channelListings_channel {
|
||||||
__typename: "Channel";
|
__typename: "Channel";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -51,7 +45,6 @@ export interface SaleDetailsFragment_products_edges_node_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
discountedPrice: SaleDetailsFragment_products_edges_node_channelListings_discountedPrice | null;
|
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
availableForPurchase: any | null;
|
availableForPurchase: any | null;
|
||||||
visibleInListings: boolean;
|
visibleInListings: boolean;
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
|
@ -47,12 +47,6 @@ export interface VoucherDetailsFragment_products_edges_node_thumbnail {
|
||||||
url: string;
|
url: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VoucherDetailsFragment_products_edges_node_channelListings_discountedPrice {
|
|
||||||
__typename: "Money";
|
|
||||||
amount: number;
|
|
||||||
currency: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface VoucherDetailsFragment_products_edges_node_channelListings_channel {
|
export interface VoucherDetailsFragment_products_edges_node_channelListings_channel {
|
||||||
__typename: "Channel";
|
__typename: "Channel";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -64,7 +58,6 @@ export interface VoucherDetailsFragment_products_edges_node_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
discountedPrice: VoucherDetailsFragment_products_edges_node_channelListings_discountedPrice | null;
|
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
availableForPurchase: any | null;
|
availableForPurchase: any | null;
|
||||||
visibleInListings: boolean;
|
visibleInListings: boolean;
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
|
@ -324,11 +324,6 @@ export const shop: (placeholderImage: string) => Home = (
|
||||||
id: "UHJvZHVjdFZhcmlhbnQ6NDM=",
|
id: "UHJvZHVjdFZhcmlhbnQ6NDM=",
|
||||||
product: {
|
product: {
|
||||||
__typename: "Product",
|
__typename: "Product",
|
||||||
basePrice: {
|
|
||||||
__typename: "Money",
|
|
||||||
amount: 37.65,
|
|
||||||
currency: "USD"
|
|
||||||
},
|
|
||||||
id: "UHJvZHVjdDo4",
|
id: "UHJvZHVjdDo4",
|
||||||
name: "Gardner-Martin",
|
name: "Gardner-Martin",
|
||||||
thumbnail: {
|
thumbnail: {
|
||||||
|
|
|
@ -37,7 +37,6 @@ import {
|
||||||
import { ProductStockInput } from "../ProductStocks";
|
import { ProductStockInput } from "../ProductStocks";
|
||||||
|
|
||||||
export interface ProductCreateFormData extends MetadataFormData {
|
export interface ProductCreateFormData extends MetadataFormData {
|
||||||
basePrice: number;
|
|
||||||
category: string;
|
category: string;
|
||||||
changeTaxCode: boolean;
|
changeTaxCode: boolean;
|
||||||
channelListings: ChannelData[];
|
channelListings: ChannelData[];
|
||||||
|
@ -126,7 +125,6 @@ function useProductCreateForm(
|
||||||
): UseProductCreateFormResult {
|
): UseProductCreateFormResult {
|
||||||
const defaultInitialFormData: ProductCreateFormData &
|
const defaultInitialFormData: ProductCreateFormData &
|
||||||
Record<"productType", string> = {
|
Record<"productType", string> = {
|
||||||
basePrice: 0,
|
|
||||||
category: "",
|
category: "",
|
||||||
changeTaxCode: false,
|
changeTaxCode: false,
|
||||||
channelListings: opts.currentChannels,
|
channelListings: opts.currentChannels,
|
||||||
|
|
|
@ -4,6 +4,7 @@ import CardContent from "@material-ui/core/CardContent";
|
||||||
import TextField from "@material-ui/core/TextField";
|
import TextField from "@material-ui/core/TextField";
|
||||||
import CardTitle from "@saleor/components/CardTitle";
|
import CardTitle from "@saleor/components/CardTitle";
|
||||||
import FormSpacer from "@saleor/components/FormSpacer";
|
import FormSpacer from "@saleor/components/FormSpacer";
|
||||||
|
import Grid from "@saleor/components/Grid";
|
||||||
import Hr from "@saleor/components/Hr";
|
import Hr from "@saleor/components/Hr";
|
||||||
import RichTextEditor, {
|
import RichTextEditor, {
|
||||||
RichTextEditorChange
|
RichTextEditorChange
|
||||||
|
@ -72,19 +73,21 @@ export const ProductDetailsForm: React.FC<ProductDetailsFormProps> = ({
|
||||||
/>
|
/>
|
||||||
<Hr />
|
<Hr />
|
||||||
<FormSpacer />
|
<FormSpacer />
|
||||||
<TextField
|
<Grid variant="uniform">
|
||||||
type="number"
|
<TextField
|
||||||
error={!!formErrors.rating}
|
type="number"
|
||||||
helperText={getProductErrorMessage(formErrors.rating, intl)}
|
error={!!formErrors.rating}
|
||||||
disabled={disabled}
|
helperText={getProductErrorMessage(formErrors.rating, intl)}
|
||||||
label={intl.formatMessage({
|
disabled={disabled}
|
||||||
defaultMessage: "Product Rating",
|
label={intl.formatMessage({
|
||||||
description: "product rating"
|
defaultMessage: "Product Rating",
|
||||||
})}
|
description: "product rating"
|
||||||
name="rating"
|
})}
|
||||||
value={data.rating || ""}
|
name="rating"
|
||||||
onChange={onChange}
|
value={data.rating || ""}
|
||||||
/>
|
onChange={onChange}
|
||||||
|
/>
|
||||||
|
</Grid>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
);
|
);
|
||||||
|
|
|
@ -6,7 +6,7 @@ import TableRow from "@material-ui/core/TableRow";
|
||||||
import Typography from "@material-ui/core/Typography";
|
import Typography from "@material-ui/core/Typography";
|
||||||
import { ChannelsAvailabilityDropdown } from "@saleor/components/ChannelsAvailabilityDropdown";
|
import { ChannelsAvailabilityDropdown } from "@saleor/components/ChannelsAvailabilityDropdown";
|
||||||
import Checkbox from "@saleor/components/Checkbox";
|
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 ResponsiveTable from "@saleor/components/ResponsiveTable";
|
||||||
import Skeleton from "@saleor/components/Skeleton";
|
import Skeleton from "@saleor/components/Skeleton";
|
||||||
import TableCellAvatar, {
|
import TableCellAvatar, {
|
||||||
|
@ -400,7 +400,10 @@ export const ProductList: React.FC<ProductListProps> = props => {
|
||||||
>
|
>
|
||||||
<TableCell className={classes.colPrice}>
|
<TableCell className={classes.colPrice}>
|
||||||
{product?.channelListings ? (
|
{product?.channelListings ? (
|
||||||
<Money money={channel?.discountedPrice} />
|
<MoneyRange
|
||||||
|
from={channel?.pricing?.priceRange?.start?.net}
|
||||||
|
to={channel?.pricing?.priceRange?.stop?.net}
|
||||||
|
/>
|
||||||
) : (
|
) : (
|
||||||
<Skeleton />
|
<Skeleton />
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -39,7 +39,6 @@ import { ProductAttributeInput } from "../ProductAttributes";
|
||||||
import { ProductStockInput } from "../ProductStocks";
|
import { ProductStockInput } from "../ProductStocks";
|
||||||
|
|
||||||
export interface ProductUpdateFormData extends MetadataFormData {
|
export interface ProductUpdateFormData extends MetadataFormData {
|
||||||
basePrice: number;
|
|
||||||
category: string | null;
|
category: string | null;
|
||||||
changeTaxCode: boolean;
|
changeTaxCode: boolean;
|
||||||
channelListings: ChannelData[];
|
channelListings: ChannelData[];
|
||||||
|
|
|
@ -26,7 +26,7 @@ const selectedWarehouses = [0, 1, 3].map(index => warehouseList[index]);
|
||||||
|
|
||||||
const channels: ChannelPrice[] = productChannels.map(channel => ({
|
const channels: ChannelPrice[] = productChannels.map(channel => ({
|
||||||
channelId: channel.channel.id,
|
channelId: channel.channel.id,
|
||||||
price: channel.discountedPrice.amount.toString()
|
price: channel.pricing?.priceRange?.start?.net.amount.toString()
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const price: Price = {
|
const price: Price = {
|
||||||
|
@ -87,10 +87,10 @@ const data: ProductVariantCreateFormData = {
|
||||||
const props: ProductVariantCreatorContentProps = {
|
const props: ProductVariantCreatorContentProps = {
|
||||||
attributes: [0, 1, 4, 6].map(index => attributes[index]),
|
attributes: [0, 1, 4, 6].map(index => attributes[index]),
|
||||||
channelListings: productChannels.map(listing => ({
|
channelListings: productChannels.map(listing => ({
|
||||||
currency: listing.discountedPrice.currency,
|
currency: listing.pricing?.priceRange?.start?.net.currency,
|
||||||
id: listing.channel.id,
|
id: listing.channel.id,
|
||||||
name: listing.channel.name,
|
name: listing.channel.name,
|
||||||
price: listing.discountedPrice?.amount.toString() || ""
|
price: listing.pricing?.priceRange?.start?.net?.amount.toString() || ""
|
||||||
})),
|
})),
|
||||||
data: {
|
data: {
|
||||||
...data,
|
...data,
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -65,16 +65,43 @@ export interface CreateMultipleVariantsData_product_channelListings_channel {
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CreateMultipleVariantsData_product_channelListings_discountedPrice {
|
export interface CreateMultipleVariantsData_product_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface CreateMultipleVariantsData_product_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: CreateMultipleVariantsData_product_channelListings_channel;
|
channel: CreateMultipleVariantsData_product_channelListings_channel;
|
||||||
discountedPrice: CreateMultipleVariantsData_product_channelListings_discountedPrice | null;
|
pricing: CreateMultipleVariantsData_product_channelListings_pricing | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CreateMultipleVariantsData_product {
|
export interface CreateMultipleVariantsData_product {
|
||||||
|
|
|
@ -74,16 +74,43 @@ export interface ProductChannelListingUpdate_productChannelListingUpdate_product
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductChannelListingUpdate_productChannelListingUpdate_product_channelListings_discountedPrice {
|
export interface ProductChannelListingUpdate_productChannelListingUpdate_product_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface ProductChannelListingUpdate_productChannelListingUpdate_product_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: ProductChannelListingUpdate_productChannelListingUpdate_product_channelListings_channel;
|
channel: ProductChannelListingUpdate_productChannelListingUpdate_product_channelListings_channel;
|
||||||
discountedPrice: ProductChannelListingUpdate_productChannelListingUpdate_product_channelListings_discountedPrice | null;
|
pricing: ProductChannelListingUpdate_productChannelListingUpdate_product_channelListings_pricing | null;
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
|
|
|
@ -81,16 +81,43 @@ export interface ProductCreate_productCreate_product_channelListings_channel {
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductCreate_productCreate_product_channelListings_discountedPrice {
|
export interface ProductCreate_productCreate_product_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface ProductCreate_productCreate_product_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: ProductCreate_productCreate_product_channelListings_channel;
|
channel: ProductCreate_productCreate_product_channelListings_channel;
|
||||||
discountedPrice: ProductCreate_productCreate_product_channelListings_discountedPrice | null;
|
pricing: ProductCreate_productCreate_product_channelListings_pricing | null;
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
|
|
|
@ -74,16 +74,43 @@ export interface ProductDetails_product_channelListings_channel {
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductDetails_product_channelListings_discountedPrice {
|
export interface ProductDetails_product_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface ProductDetails_product_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: ProductDetails_product_channelListings_channel;
|
channel: ProductDetails_product_channelListings_channel;
|
||||||
discountedPrice: ProductDetails_product_channelListings_discountedPrice | null;
|
pricing: ProductDetails_product_channelListings_pricing | null;
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
|
|
|
@ -80,16 +80,43 @@ export interface ProductImageCreate_productImageCreate_product_channelListings_c
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductImageCreate_productImageCreate_product_channelListings_discountedPrice {
|
export interface ProductImageCreate_productImageCreate_product_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface ProductImageCreate_productImageCreate_product_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: ProductImageCreate_productImageCreate_product_channelListings_channel;
|
channel: ProductImageCreate_productImageCreate_product_channelListings_channel;
|
||||||
discountedPrice: ProductImageCreate_productImageCreate_product_channelListings_discountedPrice | null;
|
pricing: ProductImageCreate_productImageCreate_product_channelListings_pricing | null;
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
|
|
|
@ -80,16 +80,43 @@ export interface ProductImageUpdate_productImageUpdate_product_channelListings_c
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductImageUpdate_productImageUpdate_product_channelListings_discountedPrice {
|
export interface ProductImageUpdate_productImageUpdate_product_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface ProductImageUpdate_productImageUpdate_product_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: ProductImageUpdate_productImageUpdate_product_channelListings_channel;
|
channel: ProductImageUpdate_productImageUpdate_product_channelListings_channel;
|
||||||
discountedPrice: ProductImageUpdate_productImageUpdate_product_channelListings_discountedPrice | null;
|
pricing: ProductImageUpdate_productImageUpdate_product_channelListings_pricing | null;
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
|
|
|
@ -20,12 +20,6 @@ export interface ProductList_products_edges_node_productType {
|
||||||
hasVariants: boolean;
|
hasVariants: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductList_products_edges_node_channelListings_discountedPrice {
|
|
||||||
__typename: "Money";
|
|
||||||
amount: number;
|
|
||||||
currency: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ProductList_products_edges_node_channelListings_channel {
|
export interface ProductList_products_edges_node_channelListings_channel {
|
||||||
__typename: "Channel";
|
__typename: "Channel";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -33,15 +27,48 @@ export interface ProductList_products_edges_node_channelListings_channel {
|
||||||
currencyCode: string;
|
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 {
|
export interface ProductList_products_edges_node_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
discountedPrice: ProductList_products_edges_node_channelListings_discountedPrice | null;
|
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
availableForPurchase: any | null;
|
availableForPurchase: any | null;
|
||||||
visibleInListings: boolean;
|
visibleInListings: boolean;
|
||||||
channel: ProductList_products_edges_node_channelListings_channel;
|
channel: ProductList_products_edges_node_channelListings_channel;
|
||||||
|
pricing: ProductList_products_edges_node_channelListings_pricing | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductList_products_edges_node_attributes_attribute {
|
export interface ProductList_products_edges_node_attributes_attribute {
|
||||||
|
|
|
@ -81,16 +81,43 @@ export interface ProductUpdate_productUpdate_product_channelListings_channel {
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductUpdate_productUpdate_product_channelListings_discountedPrice {
|
export interface ProductUpdate_productUpdate_product_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface ProductUpdate_productUpdate_product_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: ProductUpdate_productUpdate_product_channelListings_channel;
|
channel: ProductUpdate_productUpdate_product_channelListings_channel;
|
||||||
discountedPrice: ProductUpdate_productUpdate_product_channelListings_discountedPrice | null;
|
pricing: ProductUpdate_productUpdate_product_channelListings_pricing | null;
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
|
|
|
@ -80,16 +80,43 @@ export interface ProductVariantChannelListingUpdate_productVariantChannelListing
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductVariantChannelListingUpdate_productVariantChannelListingUpdate_variant_product_channelListings_discountedPrice {
|
export interface ProductVariantChannelListingUpdate_productVariantChannelListingUpdate_variant_product_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface ProductVariantChannelListingUpdate_productVariantChannelListingUpdate_variant_product_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: ProductVariantChannelListingUpdate_productVariantChannelListingUpdate_variant_product_channelListings_channel;
|
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 {
|
export interface ProductVariantChannelListingUpdate_productVariantChannelListingUpdate_variant_product_variants_images {
|
||||||
|
|
|
@ -80,16 +80,43 @@ export interface ProductVariantDetails_productVariant_product_channelListings_ch
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductVariantDetails_productVariant_product_channelListings_discountedPrice {
|
export interface ProductVariantDetails_productVariant_product_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface ProductVariantDetails_productVariant_product_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: ProductVariantDetails_productVariant_product_channelListings_channel;
|
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 {
|
export interface ProductVariantDetails_productVariant_product_variants_images {
|
||||||
|
|
|
@ -80,16 +80,43 @@ export interface ProductVariantReorder_productVariantReorder_product_channelList
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductVariantReorder_productVariantReorder_product_channelListings_discountedPrice {
|
export interface ProductVariantReorder_productVariantReorder_product_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface ProductVariantReorder_productVariantReorder_product_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: ProductVariantReorder_productVariantReorder_product_channelListings_channel;
|
channel: ProductVariantReorder_productVariantReorder_product_channelListings_channel;
|
||||||
discountedPrice: ProductVariantReorder_productVariantReorder_product_channelListings_discountedPrice | null;
|
pricing: ProductVariantReorder_productVariantReorder_product_channelListings_pricing | null;
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
|
|
|
@ -80,16 +80,43 @@ export interface ProductVariantSetDefault_productVariantSetDefault_product_chann
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductVariantSetDefault_productVariantSetDefault_product_channelListings_discountedPrice {
|
export interface ProductVariantSetDefault_productVariantSetDefault_product_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface ProductVariantSetDefault_productVariantSetDefault_product_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: ProductVariantSetDefault_productVariantSetDefault_product_channelListings_channel;
|
channel: ProductVariantSetDefault_productVariantSetDefault_product_channelListings_channel;
|
||||||
discountedPrice: ProductVariantSetDefault_productVariantSetDefault_product_channelListings_discountedPrice | null;
|
pricing: ProductVariantSetDefault_productVariantSetDefault_product_channelListings_pricing | null;
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
|
|
|
@ -81,16 +81,43 @@ export interface SimpleProductUpdate_productUpdate_product_channelListings_chann
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SimpleProductUpdate_productUpdate_product_channelListings_discountedPrice {
|
export interface SimpleProductUpdate_productUpdate_product_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface SimpleProductUpdate_productUpdate_product_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: SimpleProductUpdate_productUpdate_product_channelListings_channel;
|
channel: SimpleProductUpdate_productUpdate_product_channelListings_channel;
|
||||||
discountedPrice: SimpleProductUpdate_productUpdate_product_channelListings_discountedPrice | null;
|
pricing: SimpleProductUpdate_productUpdate_product_channelListings_pricing | null;
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
publicationDate: any | null;
|
publicationDate: any | null;
|
||||||
isAvailableForPurchase: boolean | null;
|
isAvailableForPurchase: boolean | null;
|
||||||
|
@ -308,16 +335,43 @@ export interface SimpleProductUpdate_productVariantUpdate_productVariant_product
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SimpleProductUpdate_productVariantUpdate_productVariant_product_channelListings_discountedPrice {
|
export interface SimpleProductUpdate_productVariantUpdate_productVariant_product_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface SimpleProductUpdate_productVariantUpdate_productVariant_product_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: SimpleProductUpdate_productVariantUpdate_productVariant_product_channelListings_channel;
|
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 {
|
export interface SimpleProductUpdate_productVariantUpdate_productVariant_product_variants_images {
|
||||||
|
@ -492,16 +546,43 @@ export interface SimpleProductUpdate_productVariantStocksCreate_productVariant_p
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SimpleProductUpdate_productVariantStocksCreate_productVariant_product_channelListings_discountedPrice {
|
export interface SimpleProductUpdate_productVariantStocksCreate_productVariant_product_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface SimpleProductUpdate_productVariantStocksCreate_productVariant_product_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: SimpleProductUpdate_productVariantStocksCreate_productVariant_product_channelListings_channel;
|
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 {
|
export interface SimpleProductUpdate_productVariantStocksCreate_productVariant_product_variants_images {
|
||||||
|
@ -675,16 +756,43 @@ export interface SimpleProductUpdate_productVariantStocksDelete_productVariant_p
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SimpleProductUpdate_productVariantStocksDelete_productVariant_product_channelListings_discountedPrice {
|
export interface SimpleProductUpdate_productVariantStocksDelete_productVariant_product_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface SimpleProductUpdate_productVariantStocksDelete_productVariant_product_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: SimpleProductUpdate_productVariantStocksDelete_productVariant_product_channelListings_channel;
|
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 {
|
export interface SimpleProductUpdate_productVariantStocksDelete_productVariant_product_variants_images {
|
||||||
|
@ -859,16 +967,43 @@ export interface SimpleProductUpdate_productVariantStocksUpdate_productVariant_p
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SimpleProductUpdate_productVariantStocksUpdate_productVariant_product_channelListings_discountedPrice {
|
export interface SimpleProductUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface SimpleProductUpdate_productVariantStocksUpdate_productVariant_product_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: SimpleProductUpdate_productVariantStocksUpdate_productVariant_product_channelListings_channel;
|
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 {
|
export interface SimpleProductUpdate_productVariantStocksUpdate_productVariant_product_variants_images {
|
||||||
|
|
|
@ -87,16 +87,43 @@ export interface VariantCreate_productVariantCreate_productVariant_product_chann
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VariantCreate_productVariantCreate_productVariant_product_channelListings_discountedPrice {
|
export interface VariantCreate_productVariantCreate_productVariant_product_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface VariantCreate_productVariantCreate_productVariant_product_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: VariantCreate_productVariantCreate_productVariant_product_channelListings_channel;
|
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 {
|
export interface VariantCreate_productVariantCreate_productVariant_product_variants_images {
|
||||||
|
|
|
@ -86,16 +86,43 @@ export interface VariantImageAssign_variantImageAssign_productVariant_product_ch
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VariantImageAssign_variantImageAssign_productVariant_product_channelListings_discountedPrice {
|
export interface VariantImageAssign_variantImageAssign_productVariant_product_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface VariantImageAssign_variantImageAssign_productVariant_product_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: VariantImageAssign_variantImageAssign_productVariant_product_channelListings_channel;
|
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 {
|
export interface VariantImageAssign_variantImageAssign_productVariant_product_variants_images {
|
||||||
|
|
|
@ -86,16 +86,43 @@ export interface VariantImageUnassign_variantImageUnassign_productVariant_produc
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VariantImageUnassign_variantImageUnassign_productVariant_product_channelListings_discountedPrice {
|
export interface VariantImageUnassign_variantImageUnassign_productVariant_product_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface VariantImageUnassign_variantImageUnassign_productVariant_product_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: VariantImageUnassign_variantImageUnassign_productVariant_product_channelListings_channel;
|
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 {
|
export interface VariantImageUnassign_variantImageUnassign_productVariant_product_variants_images {
|
||||||
|
|
|
@ -87,16 +87,43 @@ export interface VariantUpdate_productVariantUpdate_productVariant_product_chann
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VariantUpdate_productVariantUpdate_productVariant_product_channelListings_discountedPrice {
|
export interface VariantUpdate_productVariantUpdate_productVariant_product_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface VariantUpdate_productVariantUpdate_productVariant_product_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: VariantUpdate_productVariantUpdate_productVariant_product_channelListings_channel;
|
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 {
|
export interface VariantUpdate_productVariantUpdate_productVariant_product_variants_images {
|
||||||
|
@ -271,16 +298,43 @@ export interface VariantUpdate_productVariantStocksUpdate_productVariant_product
|
||||||
currencyCode: string;
|
currencyCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VariantUpdate_productVariantStocksUpdate_productVariant_product_channelListings_discountedPrice {
|
export interface VariantUpdate_productVariantStocksUpdate_productVariant_product_channelListings_pricing_priceRange_start_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
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 {
|
export interface VariantUpdate_productVariantStocksUpdate_productVariant_product_channelListings {
|
||||||
__typename: "ProductChannelListing";
|
__typename: "ProductChannelListing";
|
||||||
channel: VariantUpdate_productVariantStocksUpdate_productVariant_product_channelListings_channel;
|
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 {
|
export interface VariantUpdate_productVariantStocksUpdate_productVariant_product_variants_images {
|
||||||
|
|
|
@ -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[];
|
|
||||||
}
|
|
|
@ -169,7 +169,6 @@ export function getChoices(nodes: Node[]): SingleAutocompleteChoiceType[] {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductUpdatePageFormData extends MetadataFormData {
|
export interface ProductUpdatePageFormData extends MetadataFormData {
|
||||||
basePrice: number;
|
|
||||||
category: string | null;
|
category: string | null;
|
||||||
changeTaxCode: boolean;
|
changeTaxCode: boolean;
|
||||||
channelListings: ChannelData[];
|
channelListings: ChannelData[];
|
||||||
|
@ -193,10 +192,6 @@ export function getProductUpdatePageFormData(
|
||||||
currentChannels: ChannelData[]
|
currentChannels: ChannelData[]
|
||||||
): ProductUpdatePageFormData {
|
): ProductUpdatePageFormData {
|
||||||
return {
|
return {
|
||||||
basePrice: maybe(
|
|
||||||
() => product.channelListings[0].discountedPrice.amount,
|
|
||||||
0
|
|
||||||
),
|
|
||||||
category: maybe(() => product.category.id, ""),
|
category: maybe(() => product.category.id, ""),
|
||||||
changeTaxCode: !!product?.taxType.taxCode,
|
changeTaxCode: !!product?.taxType.taxCode,
|
||||||
channelListings: currentChannels,
|
channelListings: currentChannels,
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load diff
|
@ -155,7 +155,6 @@ storiesOf("Views / Products / Product edit", module)
|
||||||
{...props}
|
{...props}
|
||||||
errors={([
|
errors={([
|
||||||
"attributes",
|
"attributes",
|
||||||
"basePrice",
|
|
||||||
"category",
|
"category",
|
||||||
"chargeTaxes",
|
"chargeTaxes",
|
||||||
"collections",
|
"collections",
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
|
@ -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;
|
|
||||||
}
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { AppErrorFragment } from "@saleor/apps/types/AppErrorFragment";
|
import { AppErrorFragment } from "@saleor/fragments/types/AppErrorFragment";
|
||||||
import { commonMessages } from "@saleor/intl";
|
import { commonMessages } from "@saleor/intl";
|
||||||
import { AppErrorCode } from "@saleor/types/globalTypes";
|
import { AppErrorCode } from "@saleor/types/globalTypes";
|
||||||
import { defineMessages, IntlShape } from "react-intl";
|
import { defineMessages, IntlShape } from "react-intl";
|
||||||
|
|
Loading…
Reference in a new issue