@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.03 kB
TypeScript
import { JsonApiDocument, JsonApiListResponse, JsonApiSingleResponse } from './JsonApi';
import { IRelationships } from './Relationships';
import { ResultResponse } from './ResultResponse';
export interface TaxonAttr extends JsonApiDocument {
type: string;
id: string;
attributes: {
name: string;
pretty_name: string;
permalink: string;
seo_title: string;
meta_title: string;
meta_description: string;
meta_keywords: string;
left: number;
right: number;
position: number;
depth: number;
is_root: boolean;
is_child: boolean;
is_leaf: string;
updated_at: Date;
};
relationships: IRelationships;
}
export interface ITaxon extends JsonApiSingleResponse {
data: TaxonAttr;
}
export interface ITaxons extends JsonApiListResponse {
data: TaxonAttr[];
}
export interface ITaxonResult extends ResultResponse<ITaxon> {
}
export interface ITaxonsResult extends ResultResponse<ITaxons> {
}