UNPKG

shopify-storefront

Version:
21 lines 748 B
import { GraphQLClient } from 'astraql'; import { IProduct } from './interfaces/IProduct'; export interface IGetProductsProps { first?: number; last?: number; query?: string; reverse?: boolean; sortKey?: 'TITLE' | 'PRODUCT_TYPE' | 'VENDOR' | 'UPDATED_AT' | 'CREATED_AT' | 'BEST_SELLING' | 'PRICE' | 'ID' | 'RELEVANCE'; } export interface IGetProductProps { handle?: string; id?: string; } export declare class ProductsClient { private readonly graphql; constructor(graphql: GraphQLClient); getProduct(props: IGetProductProps): Promise<IProduct>; getProducts(props: IGetProductsProps): Promise<IProduct[]>; } export default ProductsClient; //# sourceMappingURL=products-client.d.ts.map