UNPKG

@symanticreative/vendure-admin-client

Version:

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

52 lines (51 loc) 925 B
/** * Product interface */ export interface Product { id: string; name: string; slug: string; description?: string; enabled: boolean; variants?: ProductVariant[]; featuredAsset?: Asset; assets?: Asset[]; [key: string]: any; } /** * Product variant interface */ export interface ProductVariant { id: string; name: string; sku: string; price: number; stockLevel?: string; stockOnHand?: number; assets?: Asset[]; [key: string]: any; } /** * Asset interface */ export interface Asset { id: string; preview: string; source?: string; [key: string]: any; } /** * Product creation input */ export interface CreateProductInput { name: string; slug: string; description?: string; [key: string]: any; } /** * Product update input */ export interface UpdateProductInput extends Partial<Omit<Product, 'id'>> { id: string; }