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.44 kB
export declare const storefrontPath = "api/v2/storefront"; export declare const Routes: { productsPath: () => string; productPath: (id: string) => string; taxonsPath: () => string; taxonPath: (id: string) => string; countriesPath: () => string; countryPath: (iso: string) => string; cartPath: () => string; cartAddItemPath: () => string; cartRemoveItemPath: (id: string) => string; cartEmptyPath: () => string; cartSetItemQuantity: () => string; cartApplyCodePath: () => string; cartRemoveCodePath: (code?: string) => string; cartEstimateShippingMethodsPath: () => string; checkoutPath: () => string; checkoutNextPath: () => string; checkoutAdvancePath: () => string; checkoutCompletePath: () => string; checkoutAddStoreCreditsPath: () => string; checkoutRemoveStoreCreditsPath: () => string; checkoutPaymentMethodsPath: () => string; checkoutShippingMethodsPath: () => string; oauthTokenPath: () => string; accountPath: () => string; accountAddressPath: (id: string) => string; accountAddressesPath: () => string; accountConfirmPath: (confirmationToken: string) => string; accountCreditCardsPath: () => string; accountDefaultCreditCardPath: () => string; accountCompletedOrdersPath: () => string; accountCompletedOrderPath: (orderNumber: string) => string; orderStatusPath: (orderNumber: string) => string; };