2020-07-07 10:14:12 +00:00
|
|
|
import gql from "graphql-tag";
|
|
|
|
|
|
|
|
import { fragmentAddress } from "./address";
|
|
|
|
|
|
|
|
export const warehouseFragment = gql`
|
|
|
|
fragment WarehouseFragment on Warehouse {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
export const warehouseWithShippingFragment = gql`
|
|
|
|
${warehouseFragment}
|
|
|
|
fragment WarehouseWithShippingFragment on Warehouse {
|
|
|
|
...WarehouseFragment
|
|
|
|
shippingZones(first: 100) {
|
|
|
|
edges {
|
|
|
|
node {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const warehouseDetailsFragment = gql`
|
|
|
|
${fragmentAddress}
|
|
|
|
${warehouseWithShippingFragment}
|
|
|
|
fragment WarehouseDetailsFragment on Warehouse {
|
2021-08-27 08:10:41 +00:00
|
|
|
isPrivate
|
|
|
|
clickAndCollectOption
|
2020-07-07 10:14:12 +00:00
|
|
|
...WarehouseWithShippingFragment
|
|
|
|
address {
|
|
|
|
...AddressFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|