
* 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>
36 lines
555 B
TypeScript
36 lines
555 B
TypeScript
import { gql } from "@apollo/client";
|
|
|
|
export const channelErrorFragment = gql`
|
|
fragment ChannelError on ChannelError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const channelFragment = gql`
|
|
fragment Channel on Channel {
|
|
id
|
|
isActive
|
|
name
|
|
slug
|
|
currencyCode
|
|
defaultCountry {
|
|
code
|
|
country
|
|
}
|
|
stockSettings {
|
|
allocationStrategy
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const channelDetailsFragment = gql`
|
|
fragment ChannelDetails on Channel {
|
|
...Channel
|
|
hasOrders
|
|
warehouses {
|
|
...Warehouse
|
|
}
|
|
}
|
|
`;
|