saleor-dashboard/src/warehouses/queries.ts
Dawid e610aefcfa
Add allocation strategies with sortable warehouses (#2258)
* Add allocation strategy options in channel view

* Update schema with channel allocation strategy

* Reorder channel warehouses after channel saving

* Refactor and clean code of allocation strategy options

* Update schema with allocation strategy

* Trigger CI

* Update allocation starategy options UI

* Update allocation strategy messages

* Trigger CI

* Fix shipping zones and warehouses cards style

* Fix message

* Fix snapshots

Co-authored-by: Michał Droń <dron.official@yahoo.com>
2022-08-29 13:35:55 +02:00

46 lines
774 B
TypeScript

import { gql } from "@apollo/client";
export const warehouseList = gql`
query WarehouseList(
$first: Int
$after: String
$last: Int
$before: String
$filter: WarehouseFilterInput
$sort: WarehouseSortingInput
) {
warehouses(
before: $before
after: $after
first: $first
last: $last
filter: $filter
sortBy: $sort
) {
edges {
node {
...WarehouseWithShipping
}
}
pageInfo {
...PageInfo
}
}
}
`;
export const warehouseDetails = gql`
query WarehouseDetails($id: ID!) {
warehouse(id: $id) {
...WarehouseDetails
}
}
`;
export const warehousesCount = gql`
query WarehousesCount {
warehouses {
totalCount
}
}
`;