2021-08-27 08:10:41 +00:00
|
|
|
import { address } from "@saleor/fixtures";
|
|
|
|
|
2020-01-30 11:46:35 +00:00
|
|
|
import { shippingZones } from "../shipping/fixtures";
|
2021-08-27 08:10:41 +00:00
|
|
|
import { WarehouseClickAndCollectOptionEnum } from "./../types/globalTypes";
|
|
|
|
import { WarehouseDetails_warehouse } from "./types/WarehouseDetails";
|
2020-01-30 11:46:35 +00:00
|
|
|
import { WarehouseList_warehouses_edges_node } from "./types/WarehouseList";
|
|
|
|
|
|
|
|
export const warehouseList: WarehouseList_warehouses_edges_node[] = [
|
|
|
|
{
|
|
|
|
__typename: "Warehouse",
|
|
|
|
id: "V2FyZWhvdXNlOmEzMThmMGZlLTcwMmYtNDNjYy1hYmFjLWZmZmMzN2Y3ZTliYw==",
|
|
|
|
name: "C our wares",
|
|
|
|
shippingZones: {
|
|
|
|
__typename: "ShippingZoneCountableConnection",
|
|
|
|
edges: shippingZones.map(node => ({
|
|
|
|
__typename: "ShippingZoneCountableEdge",
|
|
|
|
node
|
|
|
|
}))
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Warehouse",
|
|
|
|
id: "V2FyZWhvdXNlOjJmN2UyOTlmLWEwMzMtNDhjZS1iYmM5LTFkZDM4NjU2ZjMwYw==",
|
|
|
|
name: "Be stocked",
|
|
|
|
shippingZones: {
|
|
|
|
__typename: "ShippingZoneCountableConnection",
|
|
|
|
edges: shippingZones.map(node => ({
|
|
|
|
__typename: "ShippingZoneCountableEdge",
|
|
|
|
node
|
|
|
|
}))
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Warehouse",
|
|
|
|
id: "V2FyZWhvdXNlOmM0ZmQ3Nzc0LWZlMjYtNDE1YS1hYjk1LWFlYTFjMjI0NTgwNg==",
|
|
|
|
name: "A Warehouse",
|
|
|
|
shippingZones: {
|
|
|
|
__typename: "ShippingZoneCountableConnection",
|
|
|
|
edges: shippingZones.map(node => ({
|
|
|
|
__typename: "ShippingZoneCountableEdge",
|
|
|
|
node
|
|
|
|
}))
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Warehouse",
|
|
|
|
id: "V2FyZWhvdXNlOmNlMmNiZDhhLWRkYmQtNDhiNS1hM2UxLTNmZGVkZGI5MWZkMg==",
|
|
|
|
name: "Darkwares",
|
|
|
|
shippingZones: {
|
|
|
|
__typename: "ShippingZoneCountableConnection",
|
|
|
|
edges: shippingZones.map(node => ({
|
|
|
|
__typename: "ShippingZoneCountableEdge",
|
|
|
|
node
|
|
|
|
}))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
];
|
2021-08-27 08:10:41 +00:00
|
|
|
|
|
|
|
export const warehouse: WarehouseDetails_warehouse = {
|
|
|
|
...warehouseList[0],
|
|
|
|
isPrivate: true,
|
|
|
|
clickAndCollectOption: WarehouseClickAndCollectOptionEnum.DISABLED,
|
|
|
|
address
|
|
|
|
};
|
|
|
|
|
|
|
|
export const warehouseForPickup: WarehouseDetails_warehouse = {
|
|
|
|
...warehouseList[0],
|
|
|
|
isPrivate: false,
|
|
|
|
clickAndCollectOption: WarehouseClickAndCollectOptionEnum.ALL,
|
|
|
|
address
|
|
|
|
};
|