diff --git a/src/channels/queries.ts b/src/channels/queries.ts index c373d0d20..efe2e46b1 100644 --- a/src/channels/queries.ts +++ b/src/channels/queries.ts @@ -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( + channelsListBase +); export const useChannelsList = makeQuery(channelsList); export const useChannelDetails = makeQuery( channelDetails diff --git a/src/channels/types/BaseChannels.ts b/src/channels/types/BaseChannels.ts new file mode 100644 index 000000000..aa43e7ac1 --- /dev/null +++ b/src/channels/types/BaseChannels.ts @@ -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; +} diff --git a/src/components/AppLayout/AppChannelContext.tsx b/src/components/AppLayout/AppChannelContext.tsx index 3bfb62fa1..3b479efe7 100644 --- a/src/components/AppLayout/AppChannelContext.tsx +++ b/src/components/AppLayout/AppChannelContext.tsx @@ -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({ 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 }); diff --git a/src/components/AppLayout/AppChannelSelect.tsx b/src/components/AppLayout/AppChannelSelect.tsx index 944443585..0bdfeb5f3 100644 --- a/src/components/AppLayout/AppChannelSelect.tsx +++ b/src/components/AppLayout/AppChannelSelect.tsx @@ -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; } diff --git a/src/customers/types/CustomerDetails.ts b/src/customers/types/CustomerDetails.ts index 840e0a996..89532aa61 100644 --- a/src/customers/types/CustomerDetails.ts +++ b/src/customers/types/CustomerDetails.ts @@ -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 { diff --git a/src/fragments/channels.ts b/src/fragments/channels.ts index 20b468ded..494dec1cd 100644 --- a/src/fragments/channels.ts +++ b/src/fragments/channels.ts @@ -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 } `; diff --git a/src/fragments/types/ChannelFragment.ts b/src/fragments/types/ChannelFragment.ts new file mode 100644 index 000000000..629e7e94f --- /dev/null +++ b/src/fragments/types/ChannelFragment.ts @@ -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; +} diff --git a/src/fragments/types/FulfillmentFragment.ts b/src/fragments/types/FulfillmentFragment.ts index 9299ac8f2..94066f13b 100644 --- a/src/fragments/types/FulfillmentFragment.ts +++ b/src/fragments/types/FulfillmentFragment.ts @@ -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; } diff --git a/src/fragments/types/MetadataFragment.ts b/src/fragments/types/MetadataFragment.ts index 53ae1cb06..e5952e01d 100644 --- a/src/fragments/types/MetadataFragment.ts +++ b/src/fragments/types/MetadataFragment.ts @@ -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)[]; } diff --git a/src/fragments/types/OrderDetailsFragment.ts b/src/fragments/types/OrderDetailsFragment.ts index 104e2109f..1fa3cf605 100644 --- a/src/fragments/types/OrderDetailsFragment.ts +++ b/src/fragments/types/OrderDetailsFragment.ts @@ -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; } diff --git a/src/fragments/types/OrderLineFragment.ts b/src/fragments/types/OrderLineFragment.ts index e61e981a1..737dceff4 100644 --- a/src/fragments/types/OrderLineFragment.ts +++ b/src/fragments/types/OrderLineFragment.ts @@ -44,6 +44,6 @@ export interface OrderLineFragment { productSku: string; quantity: number; quantityFulfilled: number; - unitPrice: OrderLineFragment_unitPrice | null; + unitPrice: OrderLineFragment_unitPrice; thumbnail: OrderLineFragment_thumbnail | null; } diff --git a/src/fragments/types/RefundOrderLineFragment.ts b/src/fragments/types/RefundOrderLineFragment.ts index aeb89fa1b..aa7d15d0a 100644 --- a/src/fragments/types/RefundOrderLineFragment.ts +++ b/src/fragments/types/RefundOrderLineFragment.ts @@ -27,6 +27,6 @@ export interface RefundOrderLineFragment { id: string; productName: string; quantity: number; - unitPrice: RefundOrderLineFragment_unitPrice | null; + unitPrice: RefundOrderLineFragment_unitPrice; thumbnail: RefundOrderLineFragment_thumbnail | null; } diff --git a/src/orders/types/FulfillOrder.ts b/src/orders/types/FulfillOrder.ts index 45aeb0896..7693b56ce 100644 --- a/src/orders/types/FulfillOrder.ts +++ b/src/orders/types/FulfillOrder.ts @@ -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 { diff --git a/src/orders/types/OrderCancel.ts b/src/orders/types/OrderCancel.ts index 822c51b6f..649fb708f 100644 --- a/src/orders/types/OrderCancel.ts +++ b/src/orders/types/OrderCancel.ts @@ -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 { diff --git a/src/orders/types/OrderCapture.ts b/src/orders/types/OrderCapture.ts index 3420640b0..0212eeffe 100644 --- a/src/orders/types/OrderCapture.ts +++ b/src/orders/types/OrderCapture.ts @@ -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 { diff --git a/src/orders/types/OrderConfirm.ts b/src/orders/types/OrderConfirm.ts index fe95a9613..a2e096f95 100644 --- a/src/orders/types/OrderConfirm.ts +++ b/src/orders/types/OrderConfirm.ts @@ -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 { diff --git a/src/orders/types/OrderDetails.ts b/src/orders/types/OrderDetails.ts index 34b754218..8030eca4a 100644 --- a/src/orders/types/OrderDetails.ts +++ b/src/orders/types/OrderDetails.ts @@ -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 { diff --git a/src/orders/types/OrderDraftCancel.ts b/src/orders/types/OrderDraftCancel.ts index 515e4061b..58100ff8a 100644 --- a/src/orders/types/OrderDraftCancel.ts +++ b/src/orders/types/OrderDraftCancel.ts @@ -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 { diff --git a/src/orders/types/OrderDraftFinalize.ts b/src/orders/types/OrderDraftFinalize.ts index d896114bd..508ff56a2 100644 --- a/src/orders/types/OrderDraftFinalize.ts +++ b/src/orders/types/OrderDraftFinalize.ts @@ -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 { diff --git a/src/orders/types/OrderDraftList.ts b/src/orders/types/OrderDraftList.ts index d8ddd8ab5..2ea43c3ad 100644 --- a/src/orders/types/OrderDraftList.ts +++ b/src/orders/types/OrderDraftList.ts @@ -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; } diff --git a/src/orders/types/OrderDraftUpdate.ts b/src/orders/types/OrderDraftUpdate.ts index 739060f42..2d3a06c0d 100644 --- a/src/orders/types/OrderDraftUpdate.ts +++ b/src/orders/types/OrderDraftUpdate.ts @@ -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 { diff --git a/src/orders/types/OrderFulfillmentCancel.ts b/src/orders/types/OrderFulfillmentCancel.ts index 54ecd69ee..97708d011 100644 --- a/src/orders/types/OrderFulfillmentCancel.ts +++ b/src/orders/types/OrderFulfillmentCancel.ts @@ -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 { diff --git a/src/orders/types/OrderFulfillmentRefundProducts.ts b/src/orders/types/OrderFulfillmentRefundProducts.ts index 5cc66f5a3..6f516cd1e 100644 --- a/src/orders/types/OrderFulfillmentRefundProducts.ts +++ b/src/orders/types/OrderFulfillmentRefundProducts.ts @@ -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 { diff --git a/src/orders/types/OrderFulfillmentUpdateTracking.ts b/src/orders/types/OrderFulfillmentUpdateTracking.ts index 810f4c66f..f3bc4a753 100644 --- a/src/orders/types/OrderFulfillmentUpdateTracking.ts +++ b/src/orders/types/OrderFulfillmentUpdateTracking.ts @@ -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 { diff --git a/src/orders/types/OrderLineDelete.ts b/src/orders/types/OrderLineDelete.ts index adf804d37..1e92b971c 100644 --- a/src/orders/types/OrderLineDelete.ts +++ b/src/orders/types/OrderLineDelete.ts @@ -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 { diff --git a/src/orders/types/OrderLineUpdate.ts b/src/orders/types/OrderLineUpdate.ts index 4f373e6ea..53e7fae4e 100644 --- a/src/orders/types/OrderLineUpdate.ts +++ b/src/orders/types/OrderLineUpdate.ts @@ -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 { diff --git a/src/orders/types/OrderLinesAdd.ts b/src/orders/types/OrderLinesAdd.ts index 4d2390378..7bc72649e 100644 --- a/src/orders/types/OrderLinesAdd.ts +++ b/src/orders/types/OrderLinesAdd.ts @@ -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 { diff --git a/src/orders/types/OrderList.ts b/src/orders/types/OrderList.ts index e1fcdb607..71a1bb178 100644 --- a/src/orders/types/OrderList.ts +++ b/src/orders/types/OrderList.ts @@ -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; } diff --git a/src/orders/types/OrderMarkAsPaid.ts b/src/orders/types/OrderMarkAsPaid.ts index 4ac19d2b8..0b664b6a9 100644 --- a/src/orders/types/OrderMarkAsPaid.ts +++ b/src/orders/types/OrderMarkAsPaid.ts @@ -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 { diff --git a/src/orders/types/OrderRefund.ts b/src/orders/types/OrderRefund.ts index 55c3b8887..7919326e4 100644 --- a/src/orders/types/OrderRefund.ts +++ b/src/orders/types/OrderRefund.ts @@ -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 { diff --git a/src/orders/types/OrderRefundData.ts b/src/orders/types/OrderRefundData.ts index 31c134628..7eb447030 100644 --- a/src/orders/types/OrderRefundData.ts +++ b/src/orders/types/OrderRefundData.ts @@ -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)[]; } diff --git a/src/orders/types/OrderShippingMethodUpdate.ts b/src/orders/types/OrderShippingMethodUpdate.ts index 7a91fdbf9..7d6687ab9 100644 --- a/src/orders/types/OrderShippingMethodUpdate.ts +++ b/src/orders/types/OrderShippingMethodUpdate.ts @@ -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 { diff --git a/src/orders/types/OrderUpdate.ts b/src/orders/types/OrderUpdate.ts index 3e496557c..06cf8928d 100644 --- a/src/orders/types/OrderUpdate.ts +++ b/src/orders/types/OrderUpdate.ts @@ -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 { diff --git a/src/orders/types/OrderVoid.ts b/src/orders/types/OrderVoid.ts index a772e25e1..2f6f3ed8f 100644 --- a/src/orders/types/OrderVoid.ts +++ b/src/orders/types/OrderVoid.ts @@ -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 { diff --git a/src/products/components/ProductExportDialog/ProductExportDialog.tsx b/src/products/components/ProductExportDialog/ProductExportDialog.tsx index d5403ea02..16d608598 100644 --- a/src/products/components/ProductExportDialog/ProductExportDialog.tsx +++ b/src/products/components/ProductExportDialog/ProductExportDialog.tsx @@ -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(); 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 = ({ ); }; - const handleChannelSelect = (option: Channels_channels) => { + const handleChannelSelect = (option: ChannelFragment) => { change({ target: { name: "exportInfo", @@ -168,7 +168,7 @@ const ProductExportDialog: React.FC = ({ }; const handleToggleAllChannels = ( - items: Channels_channels[], + items: ChannelFragment[], selected: number ) => { setSelectedChannels(selected === items.length ? [] : channels); diff --git a/src/products/components/ProductExportDialog/ProductExportDialogInfo.tsx b/src/products/components/ProductExportDialog/ProductExportDialogInfo.tsx index e317938bf..849f67d20 100644 --- a/src/products/components/ProductExportDialog/ProductExportDialogInfo.tsx +++ b/src/products/components/ProductExportDialog/ProductExportDialogInfo.tsx @@ -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 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 = ({ diff --git a/src/products/views/ProductList/ProductList.tsx b/src/products/views/ProductList/ProductList.tsx index 98cbce0d4..dac6be8da 100644 --- a/src/products/views/ProductList/ProductList.tsx +++ b/src/products/views/ProductList/ProductList.tsx @@ -224,8 +224,9 @@ export const ProductList: React.FC = ({ 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( () => ({ ...paginationState, diff --git a/src/types/globalTypes.ts b/src/types/globalTypes.ts index a971e3497..e4db5bd07 100644 --- a/src/types/globalTypes.ts +++ b/src/types/globalTypes.ts @@ -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 { diff --git a/src/utils/metadata/types/UpdateMetadata.ts b/src/utils/metadata/types/UpdateMetadata.ts index 40628865d..b716158a1 100644 --- a/src/utils/metadata/types/UpdateMetadata.ts +++ b/src/utils/metadata/types/UpdateMetadata.ts @@ -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; diff --git a/src/utils/metadata/types/UpdatePrivateMetadata.ts b/src/utils/metadata/types/UpdatePrivateMetadata.ts index 173568570..1b1ebc89d 100644 --- a/src/utils/metadata/types/UpdatePrivateMetadata.ts +++ b/src/utils/metadata/types/UpdatePrivateMetadata.ts @@ -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;