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

27 lines (26 loc) 770 B
import { WithCommonOptions } from './WithCommonOptions'; export interface AuthTokenAttr { username: string; password: string; } export interface RefreshTokenAttr { refresh_token: string; } export interface RevokeTokenAttr { token: string; } export interface AuthTokenParams { username: string; password: string; grant_type: 'password'; } export interface RefreshTokenParams { refresh_token: string; grant_type: 'refresh_token'; } export interface RevokeTokenParams { token: string; } export declare type GetTokenOptions = WithCommonOptions<null, AuthTokenAttr>; export declare type RefreshTokenOptions = WithCommonOptions<null, RefreshTokenAttr>; export declare type RevokeTokenOptions = WithCommonOptions<null, RevokeTokenAttr>;