UNPKG

@ortros/stoux-lib

Version:

Library of shared types/interfaces for the stoux marketplace

28 lines (27 loc) 860 B
import { ProductTemplate } from '../types'; export type RetrieveProductTemplate = Pick<ProductTemplate, 'id' | 'handle' | 'barcode' | 'title' | 'thumbnail' | 'metadata'> & { category_id: string; category_title: string; category_handle: string; category_mpath: string; category_parent_id: string | null; quantity: number; min_price: number | null; currency_code: string | null; }; export type RetrieveProductTemplateRes = { templates: RetrieveProductTemplate[]; count: number; limit: number; offset: number; }; export type RetrieveProductTemplateAlgolia = RetrieveProductTemplate & { objectID?: string; _highlightResult?: { title: { value: string; matchLevel: 'none' | 'partial' | 'full'; matchedWords: string[]; }; }; };