
* Add initial form of c&c related properties for warehouse * Add Typography & styling to RadioButtons, drop duplicated state * Add fields for warehouse fixtures + cleanup * Add order collectionPointName field + handle click&collect display in order * Fix review issues + add snapshots * Modify choices in WarehouseZones with filter * Rename WarehouseZones to WarehouseSettings * Add translations messages * Update schema * Fix review issues pt.2 * Fix review issues pt.3 * Fix review issues * Align defaultMessages.json to messages refactor * Rename interface WarehouseInfo -> WarehouseSettings * Add pickup annotation to shipping address in order details * Introduce fragment matcher + small change in deliveryMethod query * Fixes after rebase * Add resolve fulfillment option for local warehouse * Align types after rebase * Update snapshots * Repair weird union behaviour * Add entry to CHANGELOG.md
37 lines
739 B
TypeScript
37 lines
739 B
TypeScript
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 {
|
|
isPrivate
|
|
clickAndCollectOption
|
|
...WarehouseWithShippingFragment
|
|
address {
|
|
...AddressFragment
|
|
}
|
|
}
|
|
`;
|