Show channel picker to all staff members (#969)
This commit is contained in:
parent
836fc6dce4
commit
8ece366660
40 changed files with 273 additions and 213 deletions
|
@ -1,10 +1,23 @@
|
|||
import { channelDetailsFragment } from "@saleor/fragments/channels";
|
||||
import {
|
||||
channelDetailsFragment,
|
||||
channelFragment
|
||||
} from "@saleor/fragments/channels";
|
||||
import makeQuery from "@saleor/hooks/makeQuery";
|
||||
import gql from "graphql-tag";
|
||||
|
||||
import { BaseChannels } from "./types/BaseChannels";
|
||||
import { Channel, ChannelVariables } from "./types/Channel";
|
||||
import { Channels } from "./types/Channels";
|
||||
|
||||
export const channelsListBase = gql`
|
||||
${channelFragment}
|
||||
query BaseChannels {
|
||||
channels {
|
||||
...ChannelFragment
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const channelsList = gql`
|
||||
${channelDetailsFragment}
|
||||
query Channels {
|
||||
|
@ -23,6 +36,9 @@ export const channelDetails = gql`
|
|||
}
|
||||
`;
|
||||
|
||||
export const useBaseChannelsList = makeQuery<BaseChannels, {}>(
|
||||
channelsListBase
|
||||
);
|
||||
export const useChannelsList = makeQuery<Channels, {}>(channelsList);
|
||||
export const useChannelDetails = makeQuery<Channel, ChannelVariables>(
|
||||
channelDetails
|
||||
|
|
20
src/channels/types/BaseChannels.ts
Normal file
20
src/channels/types/BaseChannels.ts
Normal file
|
@ -0,0 +1,20 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
// ====================================================
|
||||
// GraphQL query operation: BaseChannels
|
||||
// ====================================================
|
||||
|
||||
export interface BaseChannels_channels {
|
||||
__typename: "Channel";
|
||||
id: string;
|
||||
isActive: boolean;
|
||||
name: string;
|
||||
slug: string;
|
||||
currencyCode: string;
|
||||
}
|
||||
|
||||
export interface BaseChannels {
|
||||
channels: BaseChannels_channels[] | null;
|
||||
}
|
|
@ -1,12 +1,12 @@
|
|||
import { useAuth } from "@saleor/auth/AuthProvider";
|
||||
import { useChannelsList } from "@saleor/channels/queries";
|
||||
import { ChannelDetailsFragment } from "@saleor/fragments/types/ChannelDetailsFragment";
|
||||
import { useBaseChannelsList } from "@saleor/channels/queries";
|
||||
import { ChannelFragment } from "@saleor/fragments/types/ChannelFragment";
|
||||
import useLocalStorage from "@saleor/hooks/useLocalStorage";
|
||||
import React from "react";
|
||||
|
||||
interface UseAppChannel {
|
||||
availableChannels: ChannelDetailsFragment[];
|
||||
channel: ChannelDetailsFragment;
|
||||
availableChannels: ChannelFragment[];
|
||||
channel: ChannelFragment;
|
||||
isPickerActive: boolean;
|
||||
refreshChannels: () => void;
|
||||
setChannel: (id: string) => void;
|
||||
|
@ -27,7 +27,7 @@ const AppChannelContext = React.createContext<AppChannelContextData>({
|
|||
export const AppChannelProvider: React.FC = ({ children }) => {
|
||||
const { isAuthenticated } = useAuth();
|
||||
const [selectedChannel, setSelectedChannel] = useLocalStorage("channel", "");
|
||||
const { data: channelData, refetch } = useChannelsList({
|
||||
const { data: channelData, refetch } = useBaseChannelsList({
|
||||
skip: !isAuthenticated
|
||||
});
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import makeStyles from "@material-ui/core/styles/makeStyles";
|
||||
import { ChannelDetailsFragment } from "@saleor/fragments/types/ChannelDetailsFragment";
|
||||
import { ChannelFragment } from "@saleor/fragments/types/ChannelFragment";
|
||||
import { ChannelProps } from "@saleor/types";
|
||||
import { mapNodeToChoice } from "@saleor/utils/maps";
|
||||
import React from "react";
|
||||
|
@ -22,7 +22,7 @@ const useStyles = makeStyles(
|
|||
);
|
||||
|
||||
export interface AppChannelSelectProps extends ChannelProps {
|
||||
channels: ChannelDetailsFragment[];
|
||||
channels: ChannelFragment[];
|
||||
disabled: boolean;
|
||||
onChannelSelect: (id: string) => void;
|
||||
}
|
||||
|
|
|
@ -80,8 +80,8 @@ export interface CustomerDetails_user_orders_edges_node {
|
|||
id: string;
|
||||
created: any;
|
||||
number: string | null;
|
||||
paymentStatus: PaymentChargeStatusEnum | null;
|
||||
total: CustomerDetails_user_orders_edges_node_total | null;
|
||||
paymentStatus: PaymentChargeStatusEnum;
|
||||
total: CustomerDetails_user_orders_edges_node_total;
|
||||
}
|
||||
|
||||
export interface CustomerDetails_user_orders_edges {
|
||||
|
|
|
@ -8,13 +8,21 @@ export const channelErrorFragment = gql`
|
|||
}
|
||||
`;
|
||||
|
||||
export const channelDetailsFragment = gql`
|
||||
fragment ChannelDetailsFragment on Channel {
|
||||
export const channelFragment = gql`
|
||||
fragment ChannelFragment on Channel {
|
||||
id
|
||||
isActive
|
||||
name
|
||||
slug
|
||||
currencyCode
|
||||
}
|
||||
`;
|
||||
|
||||
export const channelDetailsFragment = gql`
|
||||
${channelFragment}
|
||||
|
||||
fragment ChannelDetailsFragment on Channel {
|
||||
...ChannelFragment
|
||||
hasOrders
|
||||
}
|
||||
`;
|
||||
|
|
16
src/fragments/types/ChannelFragment.ts
Normal file
16
src/fragments/types/ChannelFragment.ts
Normal file
|
@ -0,0 +1,16 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
// ====================================================
|
||||
// GraphQL fragment: ChannelFragment
|
||||
// ====================================================
|
||||
|
||||
export interface ChannelFragment {
|
||||
__typename: "Channel";
|
||||
id: string;
|
||||
isActive: boolean;
|
||||
name: string;
|
||||
slug: string;
|
||||
currencyCode: string;
|
||||
}
|
|
@ -46,7 +46,7 @@ export interface FulfillmentFragment_lines_orderLine {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: FulfillmentFragment_lines_orderLine_unitPrice | null;
|
||||
unitPrice: FulfillmentFragment_lines_orderLine_unitPrice;
|
||||
thumbnail: FulfillmentFragment_lines_orderLine_thumbnail | null;
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ export interface MetadataFragment_privateMetadata {
|
|||
}
|
||||
|
||||
export interface MetadataFragment {
|
||||
__typename: "App" | "ShippingZone" | "ShippingMethod" | "Product" | "ProductType" | "Attribute" | "Category" | "ProductVariant" | "DigitalContent" | "Collection" | "Page" | "PageType" | "MenuItem" | "Menu" | "User" | "Checkout" | "Order" | "Fulfillment" | "Invoice";
|
||||
__typename: "App" | "Warehouse" | "ShippingZone" | "ShippingMethod" | "Product" | "ProductType" | "Attribute" | "Category" | "ProductVariant" | "DigitalContent" | "Collection" | "Page" | "PageType" | "MenuItem" | "Menu" | "User" | "Checkout" | "Order" | "Fulfillment" | "Invoice";
|
||||
metadata: (MetadataFragment_metadata | null)[];
|
||||
privateMetadata: (MetadataFragment_privateMetadata | null)[];
|
||||
}
|
||||
|
|
|
@ -125,7 +125,7 @@ export interface OrderDetailsFragment_fulfillments_lines_orderLine {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderDetailsFragment_fulfillments_lines_orderLine_unitPrice | null;
|
||||
unitPrice: OrderDetailsFragment_fulfillments_lines_orderLine_unitPrice;
|
||||
thumbnail: OrderDetailsFragment_fulfillments_lines_orderLine_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -190,7 +190,7 @@ export interface OrderDetailsFragment_lines {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderDetailsFragment_lines_unitPrice | null;
|
||||
unitPrice: OrderDetailsFragment_lines_unitPrice;
|
||||
thumbnail: OrderDetailsFragment_lines_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -328,22 +328,22 @@ export interface OrderDetailsFragment {
|
|||
fulfillments: (OrderDetailsFragment_fulfillments | null)[];
|
||||
lines: (OrderDetailsFragment_lines | null)[];
|
||||
number: string | null;
|
||||
paymentStatus: PaymentChargeStatusEnum | null;
|
||||
paymentStatus: PaymentChargeStatusEnum;
|
||||
shippingAddress: OrderDetailsFragment_shippingAddress | null;
|
||||
shippingMethod: OrderDetailsFragment_shippingMethod | null;
|
||||
shippingMethodName: string | null;
|
||||
shippingPrice: OrderDetailsFragment_shippingPrice | null;
|
||||
shippingPrice: OrderDetailsFragment_shippingPrice;
|
||||
status: OrderStatus;
|
||||
subtotal: OrderDetailsFragment_subtotal | null;
|
||||
total: OrderDetailsFragment_total | null;
|
||||
subtotal: OrderDetailsFragment_subtotal;
|
||||
total: OrderDetailsFragment_total;
|
||||
actions: (OrderAction | null)[];
|
||||
totalAuthorized: OrderDetailsFragment_totalAuthorized | null;
|
||||
totalCaptured: OrderDetailsFragment_totalCaptured | null;
|
||||
totalAuthorized: OrderDetailsFragment_totalAuthorized;
|
||||
totalCaptured: OrderDetailsFragment_totalCaptured;
|
||||
user: OrderDetailsFragment_user | null;
|
||||
userEmail: string | null;
|
||||
availableShippingMethods: (OrderDetailsFragment_availableShippingMethods | null)[] | null;
|
||||
discount: OrderDetailsFragment_discount | null;
|
||||
invoices: (OrderDetailsFragment_invoices | null)[] | null;
|
||||
channel: OrderDetailsFragment_channel;
|
||||
isPaid: boolean | null;
|
||||
isPaid: boolean;
|
||||
}
|
||||
|
|
|
@ -44,6 +44,6 @@ export interface OrderLineFragment {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderLineFragment_unitPrice | null;
|
||||
unitPrice: OrderLineFragment_unitPrice;
|
||||
thumbnail: OrderLineFragment_thumbnail | null;
|
||||
}
|
||||
|
|
|
@ -27,6 +27,6 @@ export interface RefundOrderLineFragment {
|
|||
id: string;
|
||||
productName: string;
|
||||
quantity: number;
|
||||
unitPrice: RefundOrderLineFragment_unitPrice | null;
|
||||
unitPrice: RefundOrderLineFragment_unitPrice;
|
||||
thumbnail: RefundOrderLineFragment_thumbnail | null;
|
||||
}
|
||||
|
|
|
@ -133,7 +133,7 @@ export interface FulfillOrder_orderFulfill_order_fulfillments_lines_orderLine {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: FulfillOrder_orderFulfill_order_fulfillments_lines_orderLine_unitPrice | null;
|
||||
unitPrice: FulfillOrder_orderFulfill_order_fulfillments_lines_orderLine_unitPrice;
|
||||
thumbnail: FulfillOrder_orderFulfill_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -198,7 +198,7 @@ export interface FulfillOrder_orderFulfill_order_lines {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: FulfillOrder_orderFulfill_order_lines_unitPrice | null;
|
||||
unitPrice: FulfillOrder_orderFulfill_order_lines_unitPrice;
|
||||
thumbnail: FulfillOrder_orderFulfill_order_lines_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -336,24 +336,24 @@ export interface FulfillOrder_orderFulfill_order {
|
|||
fulfillments: (FulfillOrder_orderFulfill_order_fulfillments | null)[];
|
||||
lines: (FulfillOrder_orderFulfill_order_lines | null)[];
|
||||
number: string | null;
|
||||
paymentStatus: PaymentChargeStatusEnum | null;
|
||||
paymentStatus: PaymentChargeStatusEnum;
|
||||
shippingAddress: FulfillOrder_orderFulfill_order_shippingAddress | null;
|
||||
shippingMethod: FulfillOrder_orderFulfill_order_shippingMethod | null;
|
||||
shippingMethodName: string | null;
|
||||
shippingPrice: FulfillOrder_orderFulfill_order_shippingPrice | null;
|
||||
shippingPrice: FulfillOrder_orderFulfill_order_shippingPrice;
|
||||
status: OrderStatus;
|
||||
subtotal: FulfillOrder_orderFulfill_order_subtotal | null;
|
||||
total: FulfillOrder_orderFulfill_order_total | null;
|
||||
subtotal: FulfillOrder_orderFulfill_order_subtotal;
|
||||
total: FulfillOrder_orderFulfill_order_total;
|
||||
actions: (OrderAction | null)[];
|
||||
totalAuthorized: FulfillOrder_orderFulfill_order_totalAuthorized | null;
|
||||
totalCaptured: FulfillOrder_orderFulfill_order_totalCaptured | null;
|
||||
totalAuthorized: FulfillOrder_orderFulfill_order_totalAuthorized;
|
||||
totalCaptured: FulfillOrder_orderFulfill_order_totalCaptured;
|
||||
user: FulfillOrder_orderFulfill_order_user | null;
|
||||
userEmail: string | null;
|
||||
availableShippingMethods: (FulfillOrder_orderFulfill_order_availableShippingMethods | null)[] | null;
|
||||
discount: FulfillOrder_orderFulfill_order_discount | null;
|
||||
invoices: (FulfillOrder_orderFulfill_order_invoices | null)[] | null;
|
||||
channel: FulfillOrder_orderFulfill_order_channel;
|
||||
isPaid: boolean | null;
|
||||
isPaid: boolean;
|
||||
}
|
||||
|
||||
export interface FulfillOrder_orderFulfill {
|
||||
|
|
|
@ -131,7 +131,7 @@ export interface OrderCancel_orderCancel_order_fulfillments_lines_orderLine {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderCancel_orderCancel_order_fulfillments_lines_orderLine_unitPrice | null;
|
||||
unitPrice: OrderCancel_orderCancel_order_fulfillments_lines_orderLine_unitPrice;
|
||||
thumbnail: OrderCancel_orderCancel_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -196,7 +196,7 @@ export interface OrderCancel_orderCancel_order_lines {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderCancel_orderCancel_order_lines_unitPrice | null;
|
||||
unitPrice: OrderCancel_orderCancel_order_lines_unitPrice;
|
||||
thumbnail: OrderCancel_orderCancel_order_lines_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -334,24 +334,24 @@ export interface OrderCancel_orderCancel_order {
|
|||
fulfillments: (OrderCancel_orderCancel_order_fulfillments | null)[];
|
||||
lines: (OrderCancel_orderCancel_order_lines | null)[];
|
||||
number: string | null;
|
||||
paymentStatus: PaymentChargeStatusEnum | null;
|
||||
paymentStatus: PaymentChargeStatusEnum;
|
||||
shippingAddress: OrderCancel_orderCancel_order_shippingAddress | null;
|
||||
shippingMethod: OrderCancel_orderCancel_order_shippingMethod | null;
|
||||
shippingMethodName: string | null;
|
||||
shippingPrice: OrderCancel_orderCancel_order_shippingPrice | null;
|
||||
shippingPrice: OrderCancel_orderCancel_order_shippingPrice;
|
||||
status: OrderStatus;
|
||||
subtotal: OrderCancel_orderCancel_order_subtotal | null;
|
||||
total: OrderCancel_orderCancel_order_total | null;
|
||||
subtotal: OrderCancel_orderCancel_order_subtotal;
|
||||
total: OrderCancel_orderCancel_order_total;
|
||||
actions: (OrderAction | null)[];
|
||||
totalAuthorized: OrderCancel_orderCancel_order_totalAuthorized | null;
|
||||
totalCaptured: OrderCancel_orderCancel_order_totalCaptured | null;
|
||||
totalAuthorized: OrderCancel_orderCancel_order_totalAuthorized;
|
||||
totalCaptured: OrderCancel_orderCancel_order_totalCaptured;
|
||||
user: OrderCancel_orderCancel_order_user | null;
|
||||
userEmail: string | null;
|
||||
availableShippingMethods: (OrderCancel_orderCancel_order_availableShippingMethods | null)[] | null;
|
||||
discount: OrderCancel_orderCancel_order_discount | null;
|
||||
invoices: (OrderCancel_orderCancel_order_invoices | null)[] | null;
|
||||
channel: OrderCancel_orderCancel_order_channel;
|
||||
isPaid: boolean | null;
|
||||
isPaid: boolean;
|
||||
}
|
||||
|
||||
export interface OrderCancel_orderCancel {
|
||||
|
|
|
@ -131,7 +131,7 @@ export interface OrderCapture_orderCapture_order_fulfillments_lines_orderLine {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderCapture_orderCapture_order_fulfillments_lines_orderLine_unitPrice | null;
|
||||
unitPrice: OrderCapture_orderCapture_order_fulfillments_lines_orderLine_unitPrice;
|
||||
thumbnail: OrderCapture_orderCapture_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -196,7 +196,7 @@ export interface OrderCapture_orderCapture_order_lines {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderCapture_orderCapture_order_lines_unitPrice | null;
|
||||
unitPrice: OrderCapture_orderCapture_order_lines_unitPrice;
|
||||
thumbnail: OrderCapture_orderCapture_order_lines_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -334,24 +334,24 @@ export interface OrderCapture_orderCapture_order {
|
|||
fulfillments: (OrderCapture_orderCapture_order_fulfillments | null)[];
|
||||
lines: (OrderCapture_orderCapture_order_lines | null)[];
|
||||
number: string | null;
|
||||
paymentStatus: PaymentChargeStatusEnum | null;
|
||||
paymentStatus: PaymentChargeStatusEnum;
|
||||
shippingAddress: OrderCapture_orderCapture_order_shippingAddress | null;
|
||||
shippingMethod: OrderCapture_orderCapture_order_shippingMethod | null;
|
||||
shippingMethodName: string | null;
|
||||
shippingPrice: OrderCapture_orderCapture_order_shippingPrice | null;
|
||||
shippingPrice: OrderCapture_orderCapture_order_shippingPrice;
|
||||
status: OrderStatus;
|
||||
subtotal: OrderCapture_orderCapture_order_subtotal | null;
|
||||
total: OrderCapture_orderCapture_order_total | null;
|
||||
subtotal: OrderCapture_orderCapture_order_subtotal;
|
||||
total: OrderCapture_orderCapture_order_total;
|
||||
actions: (OrderAction | null)[];
|
||||
totalAuthorized: OrderCapture_orderCapture_order_totalAuthorized | null;
|
||||
totalCaptured: OrderCapture_orderCapture_order_totalCaptured | null;
|
||||
totalAuthorized: OrderCapture_orderCapture_order_totalAuthorized;
|
||||
totalCaptured: OrderCapture_orderCapture_order_totalCaptured;
|
||||
user: OrderCapture_orderCapture_order_user | null;
|
||||
userEmail: string | null;
|
||||
availableShippingMethods: (OrderCapture_orderCapture_order_availableShippingMethods | null)[] | null;
|
||||
discount: OrderCapture_orderCapture_order_discount | null;
|
||||
invoices: (OrderCapture_orderCapture_order_invoices | null)[] | null;
|
||||
channel: OrderCapture_orderCapture_order_channel;
|
||||
isPaid: boolean | null;
|
||||
isPaid: boolean;
|
||||
}
|
||||
|
||||
export interface OrderCapture_orderCapture {
|
||||
|
|
|
@ -131,7 +131,7 @@ export interface OrderConfirm_orderConfirm_order_fulfillments_lines_orderLine {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderConfirm_orderConfirm_order_fulfillments_lines_orderLine_unitPrice | null;
|
||||
unitPrice: OrderConfirm_orderConfirm_order_fulfillments_lines_orderLine_unitPrice;
|
||||
thumbnail: OrderConfirm_orderConfirm_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -196,7 +196,7 @@ export interface OrderConfirm_orderConfirm_order_lines {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderConfirm_orderConfirm_order_lines_unitPrice | null;
|
||||
unitPrice: OrderConfirm_orderConfirm_order_lines_unitPrice;
|
||||
thumbnail: OrderConfirm_orderConfirm_order_lines_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -334,24 +334,24 @@ export interface OrderConfirm_orderConfirm_order {
|
|||
fulfillments: (OrderConfirm_orderConfirm_order_fulfillments | null)[];
|
||||
lines: (OrderConfirm_orderConfirm_order_lines | null)[];
|
||||
number: string | null;
|
||||
paymentStatus: PaymentChargeStatusEnum | null;
|
||||
paymentStatus: PaymentChargeStatusEnum;
|
||||
shippingAddress: OrderConfirm_orderConfirm_order_shippingAddress | null;
|
||||
shippingMethod: OrderConfirm_orderConfirm_order_shippingMethod | null;
|
||||
shippingMethodName: string | null;
|
||||
shippingPrice: OrderConfirm_orderConfirm_order_shippingPrice | null;
|
||||
shippingPrice: OrderConfirm_orderConfirm_order_shippingPrice;
|
||||
status: OrderStatus;
|
||||
subtotal: OrderConfirm_orderConfirm_order_subtotal | null;
|
||||
total: OrderConfirm_orderConfirm_order_total | null;
|
||||
subtotal: OrderConfirm_orderConfirm_order_subtotal;
|
||||
total: OrderConfirm_orderConfirm_order_total;
|
||||
actions: (OrderAction | null)[];
|
||||
totalAuthorized: OrderConfirm_orderConfirm_order_totalAuthorized | null;
|
||||
totalCaptured: OrderConfirm_orderConfirm_order_totalCaptured | null;
|
||||
totalAuthorized: OrderConfirm_orderConfirm_order_totalAuthorized;
|
||||
totalCaptured: OrderConfirm_orderConfirm_order_totalCaptured;
|
||||
user: OrderConfirm_orderConfirm_order_user | null;
|
||||
userEmail: string | null;
|
||||
availableShippingMethods: (OrderConfirm_orderConfirm_order_availableShippingMethods | null)[] | null;
|
||||
discount: OrderConfirm_orderConfirm_order_discount | null;
|
||||
invoices: (OrderConfirm_orderConfirm_order_invoices | null)[] | null;
|
||||
channel: OrderConfirm_orderConfirm_order_channel;
|
||||
isPaid: boolean | null;
|
||||
isPaid: boolean;
|
||||
}
|
||||
|
||||
export interface OrderConfirm_orderConfirm {
|
||||
|
|
|
@ -125,7 +125,7 @@ export interface OrderDetails_order_fulfillments_lines_orderLine {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderDetails_order_fulfillments_lines_orderLine_unitPrice | null;
|
||||
unitPrice: OrderDetails_order_fulfillments_lines_orderLine_unitPrice;
|
||||
thumbnail: OrderDetails_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -190,7 +190,7 @@ export interface OrderDetails_order_lines {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderDetails_order_lines_unitPrice | null;
|
||||
unitPrice: OrderDetails_order_lines_unitPrice;
|
||||
thumbnail: OrderDetails_order_lines_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -328,24 +328,24 @@ export interface OrderDetails_order {
|
|||
fulfillments: (OrderDetails_order_fulfillments | null)[];
|
||||
lines: (OrderDetails_order_lines | null)[];
|
||||
number: string | null;
|
||||
paymentStatus: PaymentChargeStatusEnum | null;
|
||||
paymentStatus: PaymentChargeStatusEnum;
|
||||
shippingAddress: OrderDetails_order_shippingAddress | null;
|
||||
shippingMethod: OrderDetails_order_shippingMethod | null;
|
||||
shippingMethodName: string | null;
|
||||
shippingPrice: OrderDetails_order_shippingPrice | null;
|
||||
shippingPrice: OrderDetails_order_shippingPrice;
|
||||
status: OrderStatus;
|
||||
subtotal: OrderDetails_order_subtotal | null;
|
||||
total: OrderDetails_order_total | null;
|
||||
subtotal: OrderDetails_order_subtotal;
|
||||
total: OrderDetails_order_total;
|
||||
actions: (OrderAction | null)[];
|
||||
totalAuthorized: OrderDetails_order_totalAuthorized | null;
|
||||
totalCaptured: OrderDetails_order_totalCaptured | null;
|
||||
totalAuthorized: OrderDetails_order_totalAuthorized;
|
||||
totalCaptured: OrderDetails_order_totalCaptured;
|
||||
user: OrderDetails_order_user | null;
|
||||
userEmail: string | null;
|
||||
availableShippingMethods: (OrderDetails_order_availableShippingMethods | null)[] | null;
|
||||
discount: OrderDetails_order_discount | null;
|
||||
invoices: (OrderDetails_order_invoices | null)[] | null;
|
||||
channel: OrderDetails_order_channel;
|
||||
isPaid: boolean | null;
|
||||
isPaid: boolean;
|
||||
}
|
||||
|
||||
export interface OrderDetails_shop_countries {
|
||||
|
|
|
@ -131,7 +131,7 @@ export interface OrderDraftCancel_draftOrderDelete_order_fulfillments_lines_orde
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderDraftCancel_draftOrderDelete_order_fulfillments_lines_orderLine_unitPrice | null;
|
||||
unitPrice: OrderDraftCancel_draftOrderDelete_order_fulfillments_lines_orderLine_unitPrice;
|
||||
thumbnail: OrderDraftCancel_draftOrderDelete_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -196,7 +196,7 @@ export interface OrderDraftCancel_draftOrderDelete_order_lines {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderDraftCancel_draftOrderDelete_order_lines_unitPrice | null;
|
||||
unitPrice: OrderDraftCancel_draftOrderDelete_order_lines_unitPrice;
|
||||
thumbnail: OrderDraftCancel_draftOrderDelete_order_lines_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -334,24 +334,24 @@ export interface OrderDraftCancel_draftOrderDelete_order {
|
|||
fulfillments: (OrderDraftCancel_draftOrderDelete_order_fulfillments | null)[];
|
||||
lines: (OrderDraftCancel_draftOrderDelete_order_lines | null)[];
|
||||
number: string | null;
|
||||
paymentStatus: PaymentChargeStatusEnum | null;
|
||||
paymentStatus: PaymentChargeStatusEnum;
|
||||
shippingAddress: OrderDraftCancel_draftOrderDelete_order_shippingAddress | null;
|
||||
shippingMethod: OrderDraftCancel_draftOrderDelete_order_shippingMethod | null;
|
||||
shippingMethodName: string | null;
|
||||
shippingPrice: OrderDraftCancel_draftOrderDelete_order_shippingPrice | null;
|
||||
shippingPrice: OrderDraftCancel_draftOrderDelete_order_shippingPrice;
|
||||
status: OrderStatus;
|
||||
subtotal: OrderDraftCancel_draftOrderDelete_order_subtotal | null;
|
||||
total: OrderDraftCancel_draftOrderDelete_order_total | null;
|
||||
subtotal: OrderDraftCancel_draftOrderDelete_order_subtotal;
|
||||
total: OrderDraftCancel_draftOrderDelete_order_total;
|
||||
actions: (OrderAction | null)[];
|
||||
totalAuthorized: OrderDraftCancel_draftOrderDelete_order_totalAuthorized | null;
|
||||
totalCaptured: OrderDraftCancel_draftOrderDelete_order_totalCaptured | null;
|
||||
totalAuthorized: OrderDraftCancel_draftOrderDelete_order_totalAuthorized;
|
||||
totalCaptured: OrderDraftCancel_draftOrderDelete_order_totalCaptured;
|
||||
user: OrderDraftCancel_draftOrderDelete_order_user | null;
|
||||
userEmail: string | null;
|
||||
availableShippingMethods: (OrderDraftCancel_draftOrderDelete_order_availableShippingMethods | null)[] | null;
|
||||
discount: OrderDraftCancel_draftOrderDelete_order_discount | null;
|
||||
invoices: (OrderDraftCancel_draftOrderDelete_order_invoices | null)[] | null;
|
||||
channel: OrderDraftCancel_draftOrderDelete_order_channel;
|
||||
isPaid: boolean | null;
|
||||
isPaid: boolean;
|
||||
}
|
||||
|
||||
export interface OrderDraftCancel_draftOrderDelete {
|
||||
|
|
|
@ -131,7 +131,7 @@ export interface OrderDraftFinalize_draftOrderComplete_order_fulfillments_lines_
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderDraftFinalize_draftOrderComplete_order_fulfillments_lines_orderLine_unitPrice | null;
|
||||
unitPrice: OrderDraftFinalize_draftOrderComplete_order_fulfillments_lines_orderLine_unitPrice;
|
||||
thumbnail: OrderDraftFinalize_draftOrderComplete_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -196,7 +196,7 @@ export interface OrderDraftFinalize_draftOrderComplete_order_lines {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderDraftFinalize_draftOrderComplete_order_lines_unitPrice | null;
|
||||
unitPrice: OrderDraftFinalize_draftOrderComplete_order_lines_unitPrice;
|
||||
thumbnail: OrderDraftFinalize_draftOrderComplete_order_lines_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -334,24 +334,24 @@ export interface OrderDraftFinalize_draftOrderComplete_order {
|
|||
fulfillments: (OrderDraftFinalize_draftOrderComplete_order_fulfillments | null)[];
|
||||
lines: (OrderDraftFinalize_draftOrderComplete_order_lines | null)[];
|
||||
number: string | null;
|
||||
paymentStatus: PaymentChargeStatusEnum | null;
|
||||
paymentStatus: PaymentChargeStatusEnum;
|
||||
shippingAddress: OrderDraftFinalize_draftOrderComplete_order_shippingAddress | null;
|
||||
shippingMethod: OrderDraftFinalize_draftOrderComplete_order_shippingMethod | null;
|
||||
shippingMethodName: string | null;
|
||||
shippingPrice: OrderDraftFinalize_draftOrderComplete_order_shippingPrice | null;
|
||||
shippingPrice: OrderDraftFinalize_draftOrderComplete_order_shippingPrice;
|
||||
status: OrderStatus;
|
||||
subtotal: OrderDraftFinalize_draftOrderComplete_order_subtotal | null;
|
||||
total: OrderDraftFinalize_draftOrderComplete_order_total | null;
|
||||
subtotal: OrderDraftFinalize_draftOrderComplete_order_subtotal;
|
||||
total: OrderDraftFinalize_draftOrderComplete_order_total;
|
||||
actions: (OrderAction | null)[];
|
||||
totalAuthorized: OrderDraftFinalize_draftOrderComplete_order_totalAuthorized | null;
|
||||
totalCaptured: OrderDraftFinalize_draftOrderComplete_order_totalCaptured | null;
|
||||
totalAuthorized: OrderDraftFinalize_draftOrderComplete_order_totalAuthorized;
|
||||
totalCaptured: OrderDraftFinalize_draftOrderComplete_order_totalCaptured;
|
||||
user: OrderDraftFinalize_draftOrderComplete_order_user | null;
|
||||
userEmail: string | null;
|
||||
availableShippingMethods: (OrderDraftFinalize_draftOrderComplete_order_availableShippingMethods | null)[] | null;
|
||||
discount: OrderDraftFinalize_draftOrderComplete_order_discount | null;
|
||||
invoices: (OrderDraftFinalize_draftOrderComplete_order_invoices | null)[] | null;
|
||||
channel: OrderDraftFinalize_draftOrderComplete_order_channel;
|
||||
isPaid: boolean | null;
|
||||
isPaid: boolean;
|
||||
}
|
||||
|
||||
export interface OrderDraftFinalize_draftOrderComplete {
|
||||
|
|
|
@ -47,9 +47,9 @@ export interface OrderDraftList_draftOrders_edges_node {
|
|||
created: any;
|
||||
id: string;
|
||||
number: string | null;
|
||||
paymentStatus: PaymentChargeStatusEnum | null;
|
||||
paymentStatus: PaymentChargeStatusEnum;
|
||||
status: OrderStatus;
|
||||
total: OrderDraftList_draftOrders_edges_node_total | null;
|
||||
total: OrderDraftList_draftOrders_edges_node_total;
|
||||
userEmail: string | null;
|
||||
}
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@ export interface OrderDraftUpdate_draftOrderUpdate_order_fulfillments_lines_orde
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderDraftUpdate_draftOrderUpdate_order_fulfillments_lines_orderLine_unitPrice | null;
|
||||
unitPrice: OrderDraftUpdate_draftOrderUpdate_order_fulfillments_lines_orderLine_unitPrice;
|
||||
thumbnail: OrderDraftUpdate_draftOrderUpdate_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -196,7 +196,7 @@ export interface OrderDraftUpdate_draftOrderUpdate_order_lines {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderDraftUpdate_draftOrderUpdate_order_lines_unitPrice | null;
|
||||
unitPrice: OrderDraftUpdate_draftOrderUpdate_order_lines_unitPrice;
|
||||
thumbnail: OrderDraftUpdate_draftOrderUpdate_order_lines_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -334,24 +334,24 @@ export interface OrderDraftUpdate_draftOrderUpdate_order {
|
|||
fulfillments: (OrderDraftUpdate_draftOrderUpdate_order_fulfillments | null)[];
|
||||
lines: (OrderDraftUpdate_draftOrderUpdate_order_lines | null)[];
|
||||
number: string | null;
|
||||
paymentStatus: PaymentChargeStatusEnum | null;
|
||||
paymentStatus: PaymentChargeStatusEnum;
|
||||
shippingAddress: OrderDraftUpdate_draftOrderUpdate_order_shippingAddress | null;
|
||||
shippingMethod: OrderDraftUpdate_draftOrderUpdate_order_shippingMethod | null;
|
||||
shippingMethodName: string | null;
|
||||
shippingPrice: OrderDraftUpdate_draftOrderUpdate_order_shippingPrice | null;
|
||||
shippingPrice: OrderDraftUpdate_draftOrderUpdate_order_shippingPrice;
|
||||
status: OrderStatus;
|
||||
subtotal: OrderDraftUpdate_draftOrderUpdate_order_subtotal | null;
|
||||
total: OrderDraftUpdate_draftOrderUpdate_order_total | null;
|
||||
subtotal: OrderDraftUpdate_draftOrderUpdate_order_subtotal;
|
||||
total: OrderDraftUpdate_draftOrderUpdate_order_total;
|
||||
actions: (OrderAction | null)[];
|
||||
totalAuthorized: OrderDraftUpdate_draftOrderUpdate_order_totalAuthorized | null;
|
||||
totalCaptured: OrderDraftUpdate_draftOrderUpdate_order_totalCaptured | null;
|
||||
totalAuthorized: OrderDraftUpdate_draftOrderUpdate_order_totalAuthorized;
|
||||
totalCaptured: OrderDraftUpdate_draftOrderUpdate_order_totalCaptured;
|
||||
user: OrderDraftUpdate_draftOrderUpdate_order_user | null;
|
||||
userEmail: string | null;
|
||||
availableShippingMethods: (OrderDraftUpdate_draftOrderUpdate_order_availableShippingMethods | null)[] | null;
|
||||
discount: OrderDraftUpdate_draftOrderUpdate_order_discount | null;
|
||||
invoices: (OrderDraftUpdate_draftOrderUpdate_order_invoices | null)[] | null;
|
||||
channel: OrderDraftUpdate_draftOrderUpdate_order_channel;
|
||||
isPaid: boolean | null;
|
||||
isPaid: boolean;
|
||||
}
|
||||
|
||||
export interface OrderDraftUpdate_draftOrderUpdate {
|
||||
|
|
|
@ -131,7 +131,7 @@ export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillment
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillments_lines_orderLine_unitPrice | null;
|
||||
unitPrice: OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillments_lines_orderLine_unitPrice;
|
||||
thumbnail: OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -196,7 +196,7 @@ export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_lines {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderFulfillmentCancel_orderFulfillmentCancel_order_lines_unitPrice | null;
|
||||
unitPrice: OrderFulfillmentCancel_orderFulfillmentCancel_order_lines_unitPrice;
|
||||
thumbnail: OrderFulfillmentCancel_orderFulfillmentCancel_order_lines_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -334,24 +334,24 @@ export interface OrderFulfillmentCancel_orderFulfillmentCancel_order {
|
|||
fulfillments: (OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillments | null)[];
|
||||
lines: (OrderFulfillmentCancel_orderFulfillmentCancel_order_lines | null)[];
|
||||
number: string | null;
|
||||
paymentStatus: PaymentChargeStatusEnum | null;
|
||||
paymentStatus: PaymentChargeStatusEnum;
|
||||
shippingAddress: OrderFulfillmentCancel_orderFulfillmentCancel_order_shippingAddress | null;
|
||||
shippingMethod: OrderFulfillmentCancel_orderFulfillmentCancel_order_shippingMethod | null;
|
||||
shippingMethodName: string | null;
|
||||
shippingPrice: OrderFulfillmentCancel_orderFulfillmentCancel_order_shippingPrice | null;
|
||||
shippingPrice: OrderFulfillmentCancel_orderFulfillmentCancel_order_shippingPrice;
|
||||
status: OrderStatus;
|
||||
subtotal: OrderFulfillmentCancel_orderFulfillmentCancel_order_subtotal | null;
|
||||
total: OrderFulfillmentCancel_orderFulfillmentCancel_order_total | null;
|
||||
subtotal: OrderFulfillmentCancel_orderFulfillmentCancel_order_subtotal;
|
||||
total: OrderFulfillmentCancel_orderFulfillmentCancel_order_total;
|
||||
actions: (OrderAction | null)[];
|
||||
totalAuthorized: OrderFulfillmentCancel_orderFulfillmentCancel_order_totalAuthorized | null;
|
||||
totalCaptured: OrderFulfillmentCancel_orderFulfillmentCancel_order_totalCaptured | null;
|
||||
totalAuthorized: OrderFulfillmentCancel_orderFulfillmentCancel_order_totalAuthorized;
|
||||
totalCaptured: OrderFulfillmentCancel_orderFulfillmentCancel_order_totalCaptured;
|
||||
user: OrderFulfillmentCancel_orderFulfillmentCancel_order_user | null;
|
||||
userEmail: string | null;
|
||||
availableShippingMethods: (OrderFulfillmentCancel_orderFulfillmentCancel_order_availableShippingMethods | null)[] | null;
|
||||
discount: OrderFulfillmentCancel_orderFulfillmentCancel_order_discount | null;
|
||||
invoices: (OrderFulfillmentCancel_orderFulfillmentCancel_order_invoices | null)[] | null;
|
||||
channel: OrderFulfillmentCancel_orderFulfillmentCancel_order_channel;
|
||||
isPaid: boolean | null;
|
||||
isPaid: boolean;
|
||||
}
|
||||
|
||||
export interface OrderFulfillmentCancel_orderFulfillmentCancel {
|
||||
|
|
|
@ -52,7 +52,7 @@ export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_f
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_fulfillment_lines_orderLine_unitPrice | null;
|
||||
unitPrice: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_fulfillment_lines_orderLine_unitPrice;
|
||||
thumbnail: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_fulfillment_lines_orderLine_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -196,7 +196,7 @@ export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_o
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_fulfillments_lines_orderLine_unitPrice | null;
|
||||
unitPrice: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_fulfillments_lines_orderLine_unitPrice;
|
||||
thumbnail: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -261,7 +261,7 @@ export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_o
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_lines_unitPrice | null;
|
||||
unitPrice: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_lines_unitPrice;
|
||||
thumbnail: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_lines_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -399,24 +399,24 @@ export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_o
|
|||
fulfillments: (OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_fulfillments | null)[];
|
||||
lines: (OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_lines | null)[];
|
||||
number: string | null;
|
||||
paymentStatus: PaymentChargeStatusEnum | null;
|
||||
paymentStatus: PaymentChargeStatusEnum;
|
||||
shippingAddress: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_shippingAddress | null;
|
||||
shippingMethod: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_shippingMethod | null;
|
||||
shippingMethodName: string | null;
|
||||
shippingPrice: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_shippingPrice | null;
|
||||
shippingPrice: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_shippingPrice;
|
||||
status: OrderStatus;
|
||||
subtotal: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_subtotal | null;
|
||||
total: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_total | null;
|
||||
subtotal: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_subtotal;
|
||||
total: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_total;
|
||||
actions: (OrderAction | null)[];
|
||||
totalAuthorized: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_totalAuthorized | null;
|
||||
totalCaptured: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_totalCaptured | null;
|
||||
totalAuthorized: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_totalAuthorized;
|
||||
totalCaptured: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_totalCaptured;
|
||||
user: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_user | null;
|
||||
userEmail: string | null;
|
||||
availableShippingMethods: (OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_availableShippingMethods | null)[] | null;
|
||||
discount: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_discount | null;
|
||||
invoices: (OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_invoices | null)[] | null;
|
||||
channel: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_channel;
|
||||
isPaid: boolean | null;
|
||||
isPaid: boolean;
|
||||
}
|
||||
|
||||
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts {
|
||||
|
|
|
@ -131,7 +131,7 @@ export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_o
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_fulfillments_lines_orderLine_unitPrice | null;
|
||||
unitPrice: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_fulfillments_lines_orderLine_unitPrice;
|
||||
thumbnail: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -196,7 +196,7 @@ export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_o
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_lines_unitPrice | null;
|
||||
unitPrice: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_lines_unitPrice;
|
||||
thumbnail: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_lines_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -334,24 +334,24 @@ export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_o
|
|||
fulfillments: (OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_fulfillments | null)[];
|
||||
lines: (OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_lines | null)[];
|
||||
number: string | null;
|
||||
paymentStatus: PaymentChargeStatusEnum | null;
|
||||
paymentStatus: PaymentChargeStatusEnum;
|
||||
shippingAddress: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_shippingAddress | null;
|
||||
shippingMethod: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_shippingMethod | null;
|
||||
shippingMethodName: string | null;
|
||||
shippingPrice: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_shippingPrice | null;
|
||||
shippingPrice: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_shippingPrice;
|
||||
status: OrderStatus;
|
||||
subtotal: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_subtotal | null;
|
||||
total: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_total | null;
|
||||
subtotal: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_subtotal;
|
||||
total: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_total;
|
||||
actions: (OrderAction | null)[];
|
||||
totalAuthorized: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_totalAuthorized | null;
|
||||
totalCaptured: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_totalCaptured | null;
|
||||
totalAuthorized: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_totalAuthorized;
|
||||
totalCaptured: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_totalCaptured;
|
||||
user: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_user | null;
|
||||
userEmail: string | null;
|
||||
availableShippingMethods: (OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_availableShippingMethods | null)[] | null;
|
||||
discount: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_discount | null;
|
||||
invoices: (OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_invoices | null)[] | null;
|
||||
channel: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_channel;
|
||||
isPaid: boolean | null;
|
||||
isPaid: boolean;
|
||||
}
|
||||
|
||||
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking {
|
||||
|
|
|
@ -131,7 +131,7 @@ export interface OrderLineDelete_draftOrderLineDelete_order_fulfillments_lines_o
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderLineDelete_draftOrderLineDelete_order_fulfillments_lines_orderLine_unitPrice | null;
|
||||
unitPrice: OrderLineDelete_draftOrderLineDelete_order_fulfillments_lines_orderLine_unitPrice;
|
||||
thumbnail: OrderLineDelete_draftOrderLineDelete_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -196,7 +196,7 @@ export interface OrderLineDelete_draftOrderLineDelete_order_lines {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderLineDelete_draftOrderLineDelete_order_lines_unitPrice | null;
|
||||
unitPrice: OrderLineDelete_draftOrderLineDelete_order_lines_unitPrice;
|
||||
thumbnail: OrderLineDelete_draftOrderLineDelete_order_lines_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -334,24 +334,24 @@ export interface OrderLineDelete_draftOrderLineDelete_order {
|
|||
fulfillments: (OrderLineDelete_draftOrderLineDelete_order_fulfillments | null)[];
|
||||
lines: (OrderLineDelete_draftOrderLineDelete_order_lines | null)[];
|
||||
number: string | null;
|
||||
paymentStatus: PaymentChargeStatusEnum | null;
|
||||
paymentStatus: PaymentChargeStatusEnum;
|
||||
shippingAddress: OrderLineDelete_draftOrderLineDelete_order_shippingAddress | null;
|
||||
shippingMethod: OrderLineDelete_draftOrderLineDelete_order_shippingMethod | null;
|
||||
shippingMethodName: string | null;
|
||||
shippingPrice: OrderLineDelete_draftOrderLineDelete_order_shippingPrice | null;
|
||||
shippingPrice: OrderLineDelete_draftOrderLineDelete_order_shippingPrice;
|
||||
status: OrderStatus;
|
||||
subtotal: OrderLineDelete_draftOrderLineDelete_order_subtotal | null;
|
||||
total: OrderLineDelete_draftOrderLineDelete_order_total | null;
|
||||
subtotal: OrderLineDelete_draftOrderLineDelete_order_subtotal;
|
||||
total: OrderLineDelete_draftOrderLineDelete_order_total;
|
||||
actions: (OrderAction | null)[];
|
||||
totalAuthorized: OrderLineDelete_draftOrderLineDelete_order_totalAuthorized | null;
|
||||
totalCaptured: OrderLineDelete_draftOrderLineDelete_order_totalCaptured | null;
|
||||
totalAuthorized: OrderLineDelete_draftOrderLineDelete_order_totalAuthorized;
|
||||
totalCaptured: OrderLineDelete_draftOrderLineDelete_order_totalCaptured;
|
||||
user: OrderLineDelete_draftOrderLineDelete_order_user | null;
|
||||
userEmail: string | null;
|
||||
availableShippingMethods: (OrderLineDelete_draftOrderLineDelete_order_availableShippingMethods | null)[] | null;
|
||||
discount: OrderLineDelete_draftOrderLineDelete_order_discount | null;
|
||||
invoices: (OrderLineDelete_draftOrderLineDelete_order_invoices | null)[] | null;
|
||||
channel: OrderLineDelete_draftOrderLineDelete_order_channel;
|
||||
isPaid: boolean | null;
|
||||
isPaid: boolean;
|
||||
}
|
||||
|
||||
export interface OrderLineDelete_draftOrderLineDelete {
|
||||
|
|
|
@ -131,7 +131,7 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order_fulfillments_lines_o
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderLineUpdate_draftOrderLineUpdate_order_fulfillments_lines_orderLine_unitPrice | null;
|
||||
unitPrice: OrderLineUpdate_draftOrderLineUpdate_order_fulfillments_lines_orderLine_unitPrice;
|
||||
thumbnail: OrderLineUpdate_draftOrderLineUpdate_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -196,7 +196,7 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order_lines {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderLineUpdate_draftOrderLineUpdate_order_lines_unitPrice | null;
|
||||
unitPrice: OrderLineUpdate_draftOrderLineUpdate_order_lines_unitPrice;
|
||||
thumbnail: OrderLineUpdate_draftOrderLineUpdate_order_lines_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -334,24 +334,24 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order {
|
|||
fulfillments: (OrderLineUpdate_draftOrderLineUpdate_order_fulfillments | null)[];
|
||||
lines: (OrderLineUpdate_draftOrderLineUpdate_order_lines | null)[];
|
||||
number: string | null;
|
||||
paymentStatus: PaymentChargeStatusEnum | null;
|
||||
paymentStatus: PaymentChargeStatusEnum;
|
||||
shippingAddress: OrderLineUpdate_draftOrderLineUpdate_order_shippingAddress | null;
|
||||
shippingMethod: OrderLineUpdate_draftOrderLineUpdate_order_shippingMethod | null;
|
||||
shippingMethodName: string | null;
|
||||
shippingPrice: OrderLineUpdate_draftOrderLineUpdate_order_shippingPrice | null;
|
||||
shippingPrice: OrderLineUpdate_draftOrderLineUpdate_order_shippingPrice;
|
||||
status: OrderStatus;
|
||||
subtotal: OrderLineUpdate_draftOrderLineUpdate_order_subtotal | null;
|
||||
total: OrderLineUpdate_draftOrderLineUpdate_order_total | null;
|
||||
subtotal: OrderLineUpdate_draftOrderLineUpdate_order_subtotal;
|
||||
total: OrderLineUpdate_draftOrderLineUpdate_order_total;
|
||||
actions: (OrderAction | null)[];
|
||||
totalAuthorized: OrderLineUpdate_draftOrderLineUpdate_order_totalAuthorized | null;
|
||||
totalCaptured: OrderLineUpdate_draftOrderLineUpdate_order_totalCaptured | null;
|
||||
totalAuthorized: OrderLineUpdate_draftOrderLineUpdate_order_totalAuthorized;
|
||||
totalCaptured: OrderLineUpdate_draftOrderLineUpdate_order_totalCaptured;
|
||||
user: OrderLineUpdate_draftOrderLineUpdate_order_user | null;
|
||||
userEmail: string | null;
|
||||
availableShippingMethods: (OrderLineUpdate_draftOrderLineUpdate_order_availableShippingMethods | null)[] | null;
|
||||
discount: OrderLineUpdate_draftOrderLineUpdate_order_discount | null;
|
||||
invoices: (OrderLineUpdate_draftOrderLineUpdate_order_invoices | null)[] | null;
|
||||
channel: OrderLineUpdate_draftOrderLineUpdate_order_channel;
|
||||
isPaid: boolean | null;
|
||||
isPaid: boolean;
|
||||
}
|
||||
|
||||
export interface OrderLineUpdate_draftOrderLineUpdate {
|
||||
|
|
|
@ -131,7 +131,7 @@ export interface OrderLinesAdd_draftOrderLinesCreate_order_fulfillments_lines_or
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderLinesAdd_draftOrderLinesCreate_order_fulfillments_lines_orderLine_unitPrice | null;
|
||||
unitPrice: OrderLinesAdd_draftOrderLinesCreate_order_fulfillments_lines_orderLine_unitPrice;
|
||||
thumbnail: OrderLinesAdd_draftOrderLinesCreate_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -196,7 +196,7 @@ export interface OrderLinesAdd_draftOrderLinesCreate_order_lines {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderLinesAdd_draftOrderLinesCreate_order_lines_unitPrice | null;
|
||||
unitPrice: OrderLinesAdd_draftOrderLinesCreate_order_lines_unitPrice;
|
||||
thumbnail: OrderLinesAdd_draftOrderLinesCreate_order_lines_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -334,24 +334,24 @@ export interface OrderLinesAdd_draftOrderLinesCreate_order {
|
|||
fulfillments: (OrderLinesAdd_draftOrderLinesCreate_order_fulfillments | null)[];
|
||||
lines: (OrderLinesAdd_draftOrderLinesCreate_order_lines | null)[];
|
||||
number: string | null;
|
||||
paymentStatus: PaymentChargeStatusEnum | null;
|
||||
paymentStatus: PaymentChargeStatusEnum;
|
||||
shippingAddress: OrderLinesAdd_draftOrderLinesCreate_order_shippingAddress | null;
|
||||
shippingMethod: OrderLinesAdd_draftOrderLinesCreate_order_shippingMethod | null;
|
||||
shippingMethodName: string | null;
|
||||
shippingPrice: OrderLinesAdd_draftOrderLinesCreate_order_shippingPrice | null;
|
||||
shippingPrice: OrderLinesAdd_draftOrderLinesCreate_order_shippingPrice;
|
||||
status: OrderStatus;
|
||||
subtotal: OrderLinesAdd_draftOrderLinesCreate_order_subtotal | null;
|
||||
total: OrderLinesAdd_draftOrderLinesCreate_order_total | null;
|
||||
subtotal: OrderLinesAdd_draftOrderLinesCreate_order_subtotal;
|
||||
total: OrderLinesAdd_draftOrderLinesCreate_order_total;
|
||||
actions: (OrderAction | null)[];
|
||||
totalAuthorized: OrderLinesAdd_draftOrderLinesCreate_order_totalAuthorized | null;
|
||||
totalCaptured: OrderLinesAdd_draftOrderLinesCreate_order_totalCaptured | null;
|
||||
totalAuthorized: OrderLinesAdd_draftOrderLinesCreate_order_totalAuthorized;
|
||||
totalCaptured: OrderLinesAdd_draftOrderLinesCreate_order_totalCaptured;
|
||||
user: OrderLinesAdd_draftOrderLinesCreate_order_user | null;
|
||||
userEmail: string | null;
|
||||
availableShippingMethods: (OrderLinesAdd_draftOrderLinesCreate_order_availableShippingMethods | null)[] | null;
|
||||
discount: OrderLinesAdd_draftOrderLinesCreate_order_discount | null;
|
||||
invoices: (OrderLinesAdd_draftOrderLinesCreate_order_invoices | null)[] | null;
|
||||
channel: OrderLinesAdd_draftOrderLinesCreate_order_channel;
|
||||
isPaid: boolean | null;
|
||||
isPaid: boolean;
|
||||
}
|
||||
|
||||
export interface OrderLinesAdd_draftOrderLinesCreate {
|
||||
|
|
|
@ -47,9 +47,9 @@ export interface OrderList_orders_edges_node {
|
|||
created: any;
|
||||
id: string;
|
||||
number: string | null;
|
||||
paymentStatus: PaymentChargeStatusEnum | null;
|
||||
paymentStatus: PaymentChargeStatusEnum;
|
||||
status: OrderStatus;
|
||||
total: OrderList_orders_edges_node_total | null;
|
||||
total: OrderList_orders_edges_node_total;
|
||||
userEmail: string | null;
|
||||
}
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@ export interface OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments_lines_orderL
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments_lines_orderLine_unitPrice | null;
|
||||
unitPrice: OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments_lines_orderLine_unitPrice;
|
||||
thumbnail: OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -196,7 +196,7 @@ export interface OrderMarkAsPaid_orderMarkAsPaid_order_lines {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderMarkAsPaid_orderMarkAsPaid_order_lines_unitPrice | null;
|
||||
unitPrice: OrderMarkAsPaid_orderMarkAsPaid_order_lines_unitPrice;
|
||||
thumbnail: OrderMarkAsPaid_orderMarkAsPaid_order_lines_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -334,24 +334,24 @@ export interface OrderMarkAsPaid_orderMarkAsPaid_order {
|
|||
fulfillments: (OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments | null)[];
|
||||
lines: (OrderMarkAsPaid_orderMarkAsPaid_order_lines | null)[];
|
||||
number: string | null;
|
||||
paymentStatus: PaymentChargeStatusEnum | null;
|
||||
paymentStatus: PaymentChargeStatusEnum;
|
||||
shippingAddress: OrderMarkAsPaid_orderMarkAsPaid_order_shippingAddress | null;
|
||||
shippingMethod: OrderMarkAsPaid_orderMarkAsPaid_order_shippingMethod | null;
|
||||
shippingMethodName: string | null;
|
||||
shippingPrice: OrderMarkAsPaid_orderMarkAsPaid_order_shippingPrice | null;
|
||||
shippingPrice: OrderMarkAsPaid_orderMarkAsPaid_order_shippingPrice;
|
||||
status: OrderStatus;
|
||||
subtotal: OrderMarkAsPaid_orderMarkAsPaid_order_subtotal | null;
|
||||
total: OrderMarkAsPaid_orderMarkAsPaid_order_total | null;
|
||||
subtotal: OrderMarkAsPaid_orderMarkAsPaid_order_subtotal;
|
||||
total: OrderMarkAsPaid_orderMarkAsPaid_order_total;
|
||||
actions: (OrderAction | null)[];
|
||||
totalAuthorized: OrderMarkAsPaid_orderMarkAsPaid_order_totalAuthorized | null;
|
||||
totalCaptured: OrderMarkAsPaid_orderMarkAsPaid_order_totalCaptured | null;
|
||||
totalAuthorized: OrderMarkAsPaid_orderMarkAsPaid_order_totalAuthorized;
|
||||
totalCaptured: OrderMarkAsPaid_orderMarkAsPaid_order_totalCaptured;
|
||||
user: OrderMarkAsPaid_orderMarkAsPaid_order_user | null;
|
||||
userEmail: string | null;
|
||||
availableShippingMethods: (OrderMarkAsPaid_orderMarkAsPaid_order_availableShippingMethods | null)[] | null;
|
||||
discount: OrderMarkAsPaid_orderMarkAsPaid_order_discount | null;
|
||||
invoices: (OrderMarkAsPaid_orderMarkAsPaid_order_invoices | null)[] | null;
|
||||
channel: OrderMarkAsPaid_orderMarkAsPaid_order_channel;
|
||||
isPaid: boolean | null;
|
||||
isPaid: boolean;
|
||||
}
|
||||
|
||||
export interface OrderMarkAsPaid_orderMarkAsPaid {
|
||||
|
|
|
@ -131,7 +131,7 @@ export interface OrderRefund_orderRefund_order_fulfillments_lines_orderLine {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderRefund_orderRefund_order_fulfillments_lines_orderLine_unitPrice | null;
|
||||
unitPrice: OrderRefund_orderRefund_order_fulfillments_lines_orderLine_unitPrice;
|
||||
thumbnail: OrderRefund_orderRefund_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -196,7 +196,7 @@ export interface OrderRefund_orderRefund_order_lines {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderRefund_orderRefund_order_lines_unitPrice | null;
|
||||
unitPrice: OrderRefund_orderRefund_order_lines_unitPrice;
|
||||
thumbnail: OrderRefund_orderRefund_order_lines_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -334,24 +334,24 @@ export interface OrderRefund_orderRefund_order {
|
|||
fulfillments: (OrderRefund_orderRefund_order_fulfillments | null)[];
|
||||
lines: (OrderRefund_orderRefund_order_lines | null)[];
|
||||
number: string | null;
|
||||
paymentStatus: PaymentChargeStatusEnum | null;
|
||||
paymentStatus: PaymentChargeStatusEnum;
|
||||
shippingAddress: OrderRefund_orderRefund_order_shippingAddress | null;
|
||||
shippingMethod: OrderRefund_orderRefund_order_shippingMethod | null;
|
||||
shippingMethodName: string | null;
|
||||
shippingPrice: OrderRefund_orderRefund_order_shippingPrice | null;
|
||||
shippingPrice: OrderRefund_orderRefund_order_shippingPrice;
|
||||
status: OrderStatus;
|
||||
subtotal: OrderRefund_orderRefund_order_subtotal | null;
|
||||
total: OrderRefund_orderRefund_order_total | null;
|
||||
subtotal: OrderRefund_orderRefund_order_subtotal;
|
||||
total: OrderRefund_orderRefund_order_total;
|
||||
actions: (OrderAction | null)[];
|
||||
totalAuthorized: OrderRefund_orderRefund_order_totalAuthorized | null;
|
||||
totalCaptured: OrderRefund_orderRefund_order_totalCaptured | null;
|
||||
totalAuthorized: OrderRefund_orderRefund_order_totalAuthorized;
|
||||
totalCaptured: OrderRefund_orderRefund_order_totalCaptured;
|
||||
user: OrderRefund_orderRefund_order_user | null;
|
||||
userEmail: string | null;
|
||||
availableShippingMethods: (OrderRefund_orderRefund_order_availableShippingMethods | null)[] | null;
|
||||
discount: OrderRefund_orderRefund_order_discount | null;
|
||||
invoices: (OrderRefund_orderRefund_order_invoices | null)[] | null;
|
||||
channel: OrderRefund_orderRefund_order_channel;
|
||||
isPaid: boolean | null;
|
||||
isPaid: boolean;
|
||||
}
|
||||
|
||||
export interface OrderRefund_orderRefund {
|
||||
|
|
|
@ -57,7 +57,7 @@ export interface OrderRefundData_order_lines {
|
|||
id: string;
|
||||
productName: string;
|
||||
quantity: number;
|
||||
unitPrice: OrderRefundData_order_lines_unitPrice | null;
|
||||
unitPrice: OrderRefundData_order_lines_unitPrice;
|
||||
thumbnail: OrderRefundData_order_lines_thumbnail | null;
|
||||
quantityFulfilled: number;
|
||||
}
|
||||
|
@ -83,7 +83,7 @@ export interface OrderRefundData_order_fulfillments_lines_orderLine {
|
|||
id: string;
|
||||
productName: string;
|
||||
quantity: number;
|
||||
unitPrice: OrderRefundData_order_fulfillments_lines_orderLine_unitPrice | null;
|
||||
unitPrice: OrderRefundData_order_fulfillments_lines_orderLine_unitPrice;
|
||||
thumbnail: OrderRefundData_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -106,9 +106,9 @@ export interface OrderRefundData_order {
|
|||
__typename: "Order";
|
||||
id: string;
|
||||
number: string | null;
|
||||
total: OrderRefundData_order_total | null;
|
||||
totalCaptured: OrderRefundData_order_totalCaptured | null;
|
||||
shippingPrice: OrderRefundData_order_shippingPrice | null;
|
||||
total: OrderRefundData_order_total;
|
||||
totalCaptured: OrderRefundData_order_totalCaptured;
|
||||
shippingPrice: OrderRefundData_order_shippingPrice;
|
||||
lines: (OrderRefundData_order_lines | null)[];
|
||||
fulfillments: (OrderRefundData_order_fulfillments | null)[];
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ export interface OrderShippingMethodUpdate_orderUpdateShipping_order {
|
|||
id: string;
|
||||
shippingMethod: OrderShippingMethodUpdate_orderUpdateShipping_order_shippingMethod | null;
|
||||
shippingMethodName: string | null;
|
||||
shippingPrice: OrderShippingMethodUpdate_orderUpdateShipping_order_shippingPrice | null;
|
||||
shippingPrice: OrderShippingMethodUpdate_orderUpdateShipping_order_shippingPrice;
|
||||
}
|
||||
|
||||
export interface OrderShippingMethodUpdate_orderUpdateShipping {
|
||||
|
|
|
@ -131,7 +131,7 @@ export interface OrderUpdate_orderUpdate_order_fulfillments_lines_orderLine {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderUpdate_orderUpdate_order_fulfillments_lines_orderLine_unitPrice | null;
|
||||
unitPrice: OrderUpdate_orderUpdate_order_fulfillments_lines_orderLine_unitPrice;
|
||||
thumbnail: OrderUpdate_orderUpdate_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -196,7 +196,7 @@ export interface OrderUpdate_orderUpdate_order_lines {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderUpdate_orderUpdate_order_lines_unitPrice | null;
|
||||
unitPrice: OrderUpdate_orderUpdate_order_lines_unitPrice;
|
||||
thumbnail: OrderUpdate_orderUpdate_order_lines_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -334,24 +334,24 @@ export interface OrderUpdate_orderUpdate_order {
|
|||
fulfillments: (OrderUpdate_orderUpdate_order_fulfillments | null)[];
|
||||
lines: (OrderUpdate_orderUpdate_order_lines | null)[];
|
||||
number: string | null;
|
||||
paymentStatus: PaymentChargeStatusEnum | null;
|
||||
paymentStatus: PaymentChargeStatusEnum;
|
||||
shippingAddress: OrderUpdate_orderUpdate_order_shippingAddress | null;
|
||||
shippingMethod: OrderUpdate_orderUpdate_order_shippingMethod | null;
|
||||
shippingMethodName: string | null;
|
||||
shippingPrice: OrderUpdate_orderUpdate_order_shippingPrice | null;
|
||||
shippingPrice: OrderUpdate_orderUpdate_order_shippingPrice;
|
||||
status: OrderStatus;
|
||||
subtotal: OrderUpdate_orderUpdate_order_subtotal | null;
|
||||
total: OrderUpdate_orderUpdate_order_total | null;
|
||||
subtotal: OrderUpdate_orderUpdate_order_subtotal;
|
||||
total: OrderUpdate_orderUpdate_order_total;
|
||||
actions: (OrderAction | null)[];
|
||||
totalAuthorized: OrderUpdate_orderUpdate_order_totalAuthorized | null;
|
||||
totalCaptured: OrderUpdate_orderUpdate_order_totalCaptured | null;
|
||||
totalAuthorized: OrderUpdate_orderUpdate_order_totalAuthorized;
|
||||
totalCaptured: OrderUpdate_orderUpdate_order_totalCaptured;
|
||||
user: OrderUpdate_orderUpdate_order_user | null;
|
||||
userEmail: string | null;
|
||||
availableShippingMethods: (OrderUpdate_orderUpdate_order_availableShippingMethods | null)[] | null;
|
||||
discount: OrderUpdate_orderUpdate_order_discount | null;
|
||||
invoices: (OrderUpdate_orderUpdate_order_invoices | null)[] | null;
|
||||
channel: OrderUpdate_orderUpdate_order_channel;
|
||||
isPaid: boolean | null;
|
||||
isPaid: boolean;
|
||||
}
|
||||
|
||||
export interface OrderUpdate_orderUpdate {
|
||||
|
|
|
@ -131,7 +131,7 @@ export interface OrderVoid_orderVoid_order_fulfillments_lines_orderLine {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderVoid_orderVoid_order_fulfillments_lines_orderLine_unitPrice | null;
|
||||
unitPrice: OrderVoid_orderVoid_order_fulfillments_lines_orderLine_unitPrice;
|
||||
thumbnail: OrderVoid_orderVoid_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -196,7 +196,7 @@ export interface OrderVoid_orderVoid_order_lines {
|
|||
productSku: string;
|
||||
quantity: number;
|
||||
quantityFulfilled: number;
|
||||
unitPrice: OrderVoid_orderVoid_order_lines_unitPrice | null;
|
||||
unitPrice: OrderVoid_orderVoid_order_lines_unitPrice;
|
||||
thumbnail: OrderVoid_orderVoid_order_lines_thumbnail | null;
|
||||
}
|
||||
|
||||
|
@ -334,24 +334,24 @@ export interface OrderVoid_orderVoid_order {
|
|||
fulfillments: (OrderVoid_orderVoid_order_fulfillments | null)[];
|
||||
lines: (OrderVoid_orderVoid_order_lines | null)[];
|
||||
number: string | null;
|
||||
paymentStatus: PaymentChargeStatusEnum | null;
|
||||
paymentStatus: PaymentChargeStatusEnum;
|
||||
shippingAddress: OrderVoid_orderVoid_order_shippingAddress | null;
|
||||
shippingMethod: OrderVoid_orderVoid_order_shippingMethod | null;
|
||||
shippingMethodName: string | null;
|
||||
shippingPrice: OrderVoid_orderVoid_order_shippingPrice | null;
|
||||
shippingPrice: OrderVoid_orderVoid_order_shippingPrice;
|
||||
status: OrderStatus;
|
||||
subtotal: OrderVoid_orderVoid_order_subtotal | null;
|
||||
total: OrderVoid_orderVoid_order_total | null;
|
||||
subtotal: OrderVoid_orderVoid_order_subtotal;
|
||||
total: OrderVoid_orderVoid_order_total;
|
||||
actions: (OrderAction | null)[];
|
||||
totalAuthorized: OrderVoid_orderVoid_order_totalAuthorized | null;
|
||||
totalCaptured: OrderVoid_orderVoid_order_totalCaptured | null;
|
||||
totalAuthorized: OrderVoid_orderVoid_order_totalAuthorized;
|
||||
totalCaptured: OrderVoid_orderVoid_order_totalCaptured;
|
||||
user: OrderVoid_orderVoid_order_user | null;
|
||||
userEmail: string | null;
|
||||
availableShippingMethods: (OrderVoid_orderVoid_order_availableShippingMethods | null)[] | null;
|
||||
discount: OrderVoid_orderVoid_order_discount | null;
|
||||
invoices: (OrderVoid_orderVoid_order_invoices | null)[] | null;
|
||||
channel: OrderVoid_orderVoid_order_channel;
|
||||
isPaid: boolean | null;
|
||||
isPaid: boolean;
|
||||
}
|
||||
|
||||
export interface OrderVoid_orderVoid {
|
||||
|
|
|
@ -4,12 +4,12 @@ import DialogActions from "@material-ui/core/DialogActions";
|
|||
import DialogContent from "@material-ui/core/DialogContent";
|
||||
import DialogTitle from "@material-ui/core/DialogTitle";
|
||||
import Typography from "@material-ui/core/Typography";
|
||||
import { Channels_channels } from "@saleor/channels/types/Channels";
|
||||
import ConfirmButton, {
|
||||
ConfirmButtonTransitionState
|
||||
} from "@saleor/components/ConfirmButton";
|
||||
import makeCreatorSteps, { Step } from "@saleor/components/CreatorSteps";
|
||||
import { MultiAutocompleteChoiceType } from "@saleor/components/MultiAutocompleteSelectField";
|
||||
import { ChannelFragment } from "@saleor/fragments/types/ChannelFragment";
|
||||
import { ExportErrorFragment } from "@saleor/fragments/types/ExportErrorFragment";
|
||||
import useForm, { FormChange } from "@saleor/hooks/useForm";
|
||||
import useModalDialogErrors from "@saleor/hooks/useModalDialogErrors";
|
||||
|
@ -79,7 +79,7 @@ const ProductExportSteps = makeCreatorSteps<ProductExportStep>();
|
|||
|
||||
export interface ProductExportDialogProps extends DialogProps, FetchMoreProps {
|
||||
attributes: SearchAttributes_search_edges_node[];
|
||||
channels: Channels_channels[];
|
||||
channels: ChannelFragment[];
|
||||
confirmButtonState: ConfirmButtonTransitionState;
|
||||
errors: ExportErrorFragment[];
|
||||
productQuantity: ProductQuantity;
|
||||
|
@ -146,7 +146,7 @@ const ProductExportDialog: React.FC<ProductExportDialogProps> = ({
|
|||
);
|
||||
};
|
||||
|
||||
const handleChannelSelect = (option: Channels_channels) => {
|
||||
const handleChannelSelect = (option: ChannelFragment) => {
|
||||
change({
|
||||
target: {
|
||||
name: "exportInfo",
|
||||
|
@ -168,7 +168,7 @@ const ProductExportDialog: React.FC<ProductExportDialogProps> = ({
|
|||
};
|
||||
|
||||
const handleToggleAllChannels = (
|
||||
items: Channels_channels[],
|
||||
items: ChannelFragment[],
|
||||
selected: number
|
||||
) => {
|
||||
setSelectedChannels(selected === items.length ? [] : channels);
|
||||
|
|
|
@ -4,13 +4,13 @@ import FormControlLabel from "@material-ui/core/FormControlLabel";
|
|||
import makeStyles from "@material-ui/core/styles/makeStyles";
|
||||
import TextField from "@material-ui/core/TextField";
|
||||
import Typography from "@material-ui/core/Typography";
|
||||
import { Channels_channels } from "@saleor/channels/types/Channels";
|
||||
import Accordion, { AccordionProps } from "@saleor/components/Accordion";
|
||||
import ChannelsAvailabilityContent from "@saleor/components/ChannelsAvailabilityContent";
|
||||
import Checkbox from "@saleor/components/Checkbox";
|
||||
import Chip from "@saleor/components/Chip";
|
||||
import Hr from "@saleor/components/Hr";
|
||||
import { MultiAutocompleteChoiceType } from "@saleor/components/MultiAutocompleteSelectField";
|
||||
import { ChannelFragment } from "@saleor/fragments/types/ChannelFragment";
|
||||
import { ChangeEvent, FormChange } from "@saleor/hooks/useForm";
|
||||
import useSearchQuery from "@saleor/hooks/useSearchQuery";
|
||||
import { sectionNames } from "@saleor/intl";
|
||||
|
@ -207,8 +207,8 @@ const FieldAccordion: React.FC<AccordionProps & {
|
|||
|
||||
export interface ProductExportDialogInfoProps extends FetchMoreProps {
|
||||
attributes: MultiAutocompleteChoiceType[];
|
||||
channels: Channels_channels[];
|
||||
selectedChannels: Channels_channels[];
|
||||
channels: ChannelFragment[];
|
||||
selectedChannels: ChannelFragment[];
|
||||
warehouses: MultiAutocompleteChoiceType[];
|
||||
data: ExportProductsInput;
|
||||
selectedAttributes: MultiAutocompleteChoiceType[];
|
||||
|
@ -217,8 +217,8 @@ export interface ProductExportDialogInfoProps extends FetchMoreProps {
|
|||
onChange: FormChange;
|
||||
onFetch: (query: string) => void;
|
||||
onSelectAllWarehouses: FormChange;
|
||||
onSelectAllChannels: (items: Channels_channels[], selected: number) => void;
|
||||
onChannelSelect: (option: Channels_channels) => void;
|
||||
onSelectAllChannels: (items: ChannelFragment[], selected: number) => void;
|
||||
onChannelSelect: (option: ChannelFragment) => void;
|
||||
}
|
||||
|
||||
const ProductExportDialogInfo: React.FC<ProductExportDialogInfoProps> = ({
|
||||
|
|
|
@ -224,8 +224,9 @@ export const ProductList: React.FC<ProductListProps> = ({ params }) => {
|
|||
);
|
||||
|
||||
const paginationState = createPaginationState(settings.rowNumber, params);
|
||||
const filter = !noChannel ? getFilterVariables(params, channel.slug) : null;
|
||||
const sort = !noChannel ? getSortQueryVariables(params, channel.slug) : null;
|
||||
const channelSlug = noChannel ? null : channel.slug;
|
||||
const filter = getFilterVariables(params, channelSlug);
|
||||
const sort = getSortQueryVariables(params, channelSlug);
|
||||
const queryVariables = React.useMemo<ProductListVariables>(
|
||||
() => ({
|
||||
...paginationState,
|
||||
|
|
|
@ -1453,8 +1453,7 @@ export interface PageTranslationInput {
|
|||
seoTitle?: string | null;
|
||||
seoDescription?: string | null;
|
||||
title?: string | null;
|
||||
content?: string | null;
|
||||
contentJson?: any | null;
|
||||
content?: any | null;
|
||||
}
|
||||
|
||||
export interface PageTypeCreateInput {
|
||||
|
|
|
@ -38,7 +38,7 @@ export interface UpdateMetadata_deleteMetadata_item_privateMetadata {
|
|||
}
|
||||
|
||||
export interface UpdateMetadata_deleteMetadata_item {
|
||||
__typename: "App" | "ShippingZone" | "ShippingMethod" | "Product" | "ProductType" | "Attribute" | "Category" | "ProductVariant" | "DigitalContent" | "Collection" | "Page" | "PageType" | "MenuItem" | "Menu" | "User" | "Checkout" | "Order" | "Fulfillment" | "Invoice";
|
||||
__typename: "App" | "Warehouse" | "ShippingZone" | "ShippingMethod" | "Product" | "ProductType" | "Attribute" | "Category" | "ProductVariant" | "DigitalContent" | "Collection" | "Page" | "PageType" | "MenuItem" | "Menu" | "User" | "Checkout" | "Order" | "Fulfillment" | "Invoice";
|
||||
metadata: (UpdateMetadata_deleteMetadata_item_metadata | null)[];
|
||||
privateMetadata: (UpdateMetadata_deleteMetadata_item_privateMetadata | null)[];
|
||||
id: string;
|
||||
|
|
|
@ -38,7 +38,7 @@ export interface UpdatePrivateMetadata_deletePrivateMetadata_item_privateMetadat
|
|||
}
|
||||
|
||||
export interface UpdatePrivateMetadata_deletePrivateMetadata_item {
|
||||
__typename: "App" | "ShippingZone" | "ShippingMethod" | "Product" | "ProductType" | "Attribute" | "Category" | "ProductVariant" | "DigitalContent" | "Collection" | "Page" | "PageType" | "MenuItem" | "Menu" | "User" | "Checkout" | "Order" | "Fulfillment" | "Invoice";
|
||||
__typename: "App" | "Warehouse" | "ShippingZone" | "ShippingMethod" | "Product" | "ProductType" | "Attribute" | "Category" | "ProductVariant" | "DigitalContent" | "Collection" | "Page" | "PageType" | "MenuItem" | "Menu" | "User" | "Checkout" | "Order" | "Fulfillment" | "Invoice";
|
||||
metadata: (UpdatePrivateMetadata_deletePrivateMetadata_item_metadata | null)[];
|
||||
privateMetadata: (UpdatePrivateMetadata_deletePrivateMetadata_item_privateMetadata | null)[];
|
||||
id: string;
|
||||
|
|
Loading…
Reference in a new issue