@symanticreative/vendure-admin-client
Version:
A TypeScript GraphQL client for Vendure Admin API to create custom dashboards
13 lines (12 loc) • 2.18 kB
TypeScript
/**
* GraphQL query for getting a paginated list of orders
*/
export declare const GET_ORDERS = "\n query GetOrders($options: OrderListOptions) {\n orders(options: $options) {\n items {\n id\n code\n state\n total\n currencyCode\n customer {\n id\n firstName\n lastName\n emailAddress\n }\n shippingAddress {\n fullName\n streetLine1\n streetLine2\n city\n province\n postalCode\n country\n }\n }\n totalItems\n currentPage\n totalPages\n perPage\n }\n }\n";
/**
* GraphQL query for getting a single order by ID
*/
export declare const GET_ORDER = "\n query GetOrder($id: ID!) {\n order(id: $id) {\n id\n code\n state\n active\n total\n currencyCode\n customer {\n id\n firstName\n lastName\n emailAddress\n phoneNumber\n }\n lines {\n id\n productVariant {\n id\n name\n sku\n product {\n id\n name\n slug\n }\n }\n unitPrice\n quantity\n totalPrice\n }\n shippingAddress {\n fullName\n company\n streetLine1\n streetLine2\n city\n province\n postalCode\n country\n phoneNumber\n }\n billingAddress {\n fullName\n company\n streetLine1\n streetLine2\n city\n province\n postalCode\n country\n phoneNumber\n }\n payments {\n id\n amount\n method\n state\n transactionId\n metadata\n }\n fulfillments {\n id\n state\n method\n trackingCode\n }\n }\n }\n";
/**
* GraphQL mutation for updating an order's status
*/
export declare const UPDATE_ORDER_STATUS = "\n mutation TransitionOrderToState($id: ID!, $state: String!) {\n transitionOrderToState(id: $id, state: $state) {\n id\n code\n state\n }\n }\n";