UNPKG

@spree/storefront-api-v2-sdk

Version:

Node module to easily integrate your JavaScript or TypeScript application with Spree API V2. You can create an entirely custom Storefront in JS/TS with this package including one page checkout, Single Page Apps, PWAs and so on

36 lines (35 loc) 1.24 kB
import { Account, Authentication, Cart, Checkout, Countries, DigitalAssets, Menus, Order, Pages, Products, Taxons, Vendors, Wishlists } from './endpoints'; import type { Fetcher, IClientConfig } from './interfaces/ClientConfig'; declare class Client { account: Account; authentication: Authentication; cart: Cart; checkout: Checkout; countries: Countries; digitalAssets: DigitalAssets; menus: Menus; order: Order; pages: Pages; products: Products; taxons: Taxons; vendors: Vendors; wishlists: Wishlists; protected host: string; protected fetcher: Fetcher; constructor(customOptions: IClientConfig); protected addEndpoints(): void; protected makeAccount(): Account; protected makeAuthentication(): Authentication; protected makeCart(): Cart; protected makeCheckout(): Checkout; protected makeCountries(): Countries; protected makeOrder(): Order; protected makePages(): Pages; protected makeProducts(): Products; protected makeTaxons(): Taxons; protected makeDigitalAssets(): DigitalAssets; protected makeMenus(): Menus; protected makeVendors(): Vendors; protected makeWishlists(): Wishlists; } export default Client;