
* Require trailing commas * Add trailing commas * Add trailing commas in testUtils dir * Add trailing commas
41 lines
833 B
TypeScript
41 lines
833 B
TypeScript
import { gql } from "@apollo/client";
|
|
import {
|
|
SearchShippingZonesDocument,
|
|
SearchShippingZonesQuery,
|
|
SearchShippingZonesQueryVariables,
|
|
} from "@saleor/graphql";
|
|
import makeTopLevelSearch from "@saleor/hooks/makeTopLevelSearch";
|
|
|
|
export const searchShippingZones = gql`
|
|
query SearchShippingZones(
|
|
$query: String!
|
|
$first: Int!
|
|
$after: String
|
|
$last: Int
|
|
$before: String
|
|
) {
|
|
search: shippingZones(
|
|
filter: { search: $query }
|
|
first: $first
|
|
after: $after
|
|
last: $last
|
|
before: $before
|
|
) {
|
|
totalCount
|
|
edges {
|
|
node {
|
|
id
|
|
name
|
|
}
|
|
}
|
|
pageInfo {
|
|
...PageInfo
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export default makeTopLevelSearch<
|
|
SearchShippingZonesQuery,
|
|
SearchShippingZonesQueryVariables
|
|
>(SearchShippingZonesDocument);
|