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

22 lines (21 loc) 523 B
export interface JsonApiDocument { id: string; type: string; attributes: any; relationships: any; } export interface JsonApiResponse { data: JsonApiDocument | JsonApiDocument[]; included?: JsonApiDocument[]; } export interface JsonApiListResponse extends JsonApiResponse { data: JsonApiDocument[]; meta?: { total_pages: number; total_count: number; count: number; }; } export interface JsonApiSingleResponse extends JsonApiResponse { data: JsonApiDocument; }