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 (26 loc) 721 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 type GetTokenOptions = WithCommonOptions<null, AuthTokenAttr> export type RefreshTokenOptions = WithCommonOptions<null, RefreshTokenAttr> export type RevokeTokenOptions = WithCommonOptions<null, RevokeTokenAttr>