UNPKG

channel3-sdk

Version:

The official TypeScript/JavaScript SDK for Channel3 AI Shopping API

20 lines 872 B
import type { Product, ProductDetail, Brand, SearchRequest, PaginatedResponseBrand } from './generated/models'; import type { GetBrandsV0BrandsGetRequest } from './generated/apis/Channel3ApiApi'; export interface Channel3ClientConfig { apiKey: string; } export declare class Channel3Client { private readonly apiKey; private readonly timeoutMs; private readonly api; constructor(config: Channel3ClientConfig); private createTimeoutOverride; private handleGeneratedCall; private rethrowAsChannel3Error; search(options?: SearchRequest): Promise<Product[]>; getProduct(productId: string): Promise<ProductDetail>; getBrands(options?: GetBrandsV0BrandsGetRequest): Promise<PaginatedResponseBrand>; getBrand(brandId: string): Promise<Brand>; } export { Channel3Client as AsyncChannel3Client }; //# sourceMappingURL=client.d.ts.map