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

45 lines (36 loc) 1.16 kB
import { JsonApiDocument, JsonApiListResponse, JsonApiSingleResponse } from './JsonApi' import { IRelationships } from './Relationships' import { ResultResponse } from './ResultResponse' import { WithCommonOptions } from './WithCommonOptions' export interface TaxonAttr extends JsonApiDocument { type: string id: string attributes: { name: string pretty_name: string permalink: string seo_title: string meta_title: string | null meta_description: string | null meta_keywords: string | null 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> {} export type ListOptions = WithCommonOptions<{ suggestQuery: true }> export type ShowOptions = WithCommonOptions<{ suggestQuery: true }, { id: string }>