@symanticreative/vendure-admin-client
Version:
A TypeScript GraphQL client for Vendure Admin API to create custom dashboards
17 lines (16 loc) • 1.98 kB
TypeScript
/**
* GraphQL query for getting a paginated list of customers
*/
export declare const GET_CUSTOMERS = "\n query GetCustomers($options: CustomerListOptions) {\n customers(options: $options) {\n items {\n id\n firstName\n lastName\n emailAddress\n phoneNumber\n user {\n id\n verified\n }\n addresses {\n id\n fullName\n streetLine1\n city\n postalCode\n country\n }\n }\n totalItems\n currentPage\n totalPages\n perPage\n }\n }\n";
/**
* GraphQL query for getting a single customer by ID
*/
export declare const GET_CUSTOMER = "\n query GetCustomer($id: ID!) {\n customer(id: $id) {\n id\n firstName\n lastName\n emailAddress\n phoneNumber\n user {\n id\n verified\n lastLogin\n }\n addresses {\n id\n fullName\n company\n streetLine1\n streetLine2\n city\n province\n postalCode\n country\n phoneNumber\n defaultBillingAddress\n defaultShippingAddress\n }\n orders {\n id\n code\n state\n total\n currencyCode\n orderPlacedAt\n }\n }\n }\n";
/**
* GraphQL mutation for creating a customer
*/
export declare const CREATE_CUSTOMER = "\n mutation CreateCustomer($input: CreateCustomerInput!) {\n createCustomer(input: $input) {\n customer {\n id\n firstName\n lastName\n emailAddress\n phoneNumber\n }\n }\n }\n";
/**
* GraphQL mutation for updating a customer
*/
export declare const UPDATE_CUSTOMER = "\n mutation UpdateCustomer($input: UpdateCustomerInput!) {\n updateCustomer(input: $input) {\n customer {\n id\n firstName\n lastName\n emailAddress\n phoneNumber\n }\n }\n }\n";