UNPKG

@symanticreative/vendure-admin-client

Version:

A TypeScript GraphQL client for Vendure Admin API to create custom dashboards

46 lines (45 loc) 1.28 kB
import { VendureAdminClientConfig } from '../core/config/client-config'; import { AuthService } from '../services/auth.service'; import { ProductService } from '../services/product.service'; import { OrderService } from '../services/order.service'; import { CustomerService } from '../services/customer.service'; import { SettingsService } from '../services/settings.service'; /** * Main client class for interacting with the Vendure Admin API * Provides access to all service modules via a clean, fluent interface */ export declare class VendureAdminClient { /** * Authentication service */ readonly auth: AuthService; /** * Product service */ readonly products: ProductService; /** * Order service */ readonly orders: OrderService; /** * Customer service */ readonly customers: CustomerService; /** * Settings service */ readonly settings: SettingsService; /** * GraphQL client service */ private readonly graphQLClient; /** * Dependency injection container */ private readonly container; /** * Initialize the client with configuration * @param config - Client configuration */ constructor(config: VendureAdminClientConfig); }