@symanticreative/vendure-admin-client
Version:
A TypeScript GraphQL client for Vendure Admin API to create custom dashboards
21 lines (20 loc) • 1.85 kB
TypeScript
/**
* GraphQL query for getting a paginated list of products
*/
export declare const GET_PRODUCTS = "\n query GetProducts($options: ProductListOptions) {\n products(options: $options) {\n items {\n id\n name\n slug\n description\n enabled\n featuredAsset {\n id\n preview\n }\n variants {\n id\n name\n price\n sku\n }\n }\n totalItems\n currentPage\n totalPages\n perPage\n }\n }\n";
/**
* GraphQL query for getting a single product by ID
*/
export declare const GET_PRODUCT = "\n query GetProduct($id: ID!) {\n product(id: $id) {\n id\n name\n slug\n description\n enabled\n featuredAsset {\n id\n preview\n }\n assets {\n id\n preview\n source\n }\n variants {\n id\n name\n price\n sku\n stockLevel\n stockOnHand\n assets {\n id\n preview\n }\n }\n }\n }\n";
/**
* GraphQL mutation for creating a product
*/
export declare const CREATE_PRODUCT = "\n mutation CreateProduct($input: CreateProductInput!) {\n createProduct(input: $input) {\n id\n name\n slug\n description\n enabled\n }\n }\n";
/**
* GraphQL mutation for updating a product
*/
export declare const UPDATE_PRODUCT = "\n mutation UpdateProduct($input: UpdateProductInput!) {\n updateProduct(input: $input) {\n id\n name\n slug\n description\n enabled\n }\n }\n";
/**
* GraphQL mutation for deleting a product
*/
export declare const DELETE_PRODUCT = "\n mutation DeleteProduct($id: ID!) {\n deleteProduct(id: $id) {\n result\n message\n success\n }\n }\n";