UNPKG

@spree/storefront-api-v2-sdk

Version:

Node module to easily integrate your JavaScript or TypeScript application with Spree Storefront 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.

26 lines (25 loc) 962 B
import { Client as CoreClient } from '@spree/core-api-v2-sdk'; import type { IClientConfig } from '@spree/core-api-v2-sdk'; import { Account, Authentication, Cart, Checkout, Countries, DigitalAssets, Menus, Order, Pages, Products, Taxons, Vendors, Wishlists } from './endpoints'; declare const endpoints: { account: typeof Account; authentication: typeof Authentication; cart: typeof Cart; checkout: typeof Checkout; countries: typeof Countries; digitalAssets: typeof DigitalAssets; menus: typeof Menus; order: typeof Order; pages: typeof Pages; products: typeof Products; taxons: typeof Taxons; vendors: typeof Vendors; wishlists: typeof Wishlists; }; type Endpoints = { [key in keyof typeof endpoints]: InstanceType<typeof endpoints[key]>; }; type Client = CoreClient & Endpoints; declare const makeClient: (config: IClientConfig) => Client; export type { Client, Endpoints }; export default makeClient;