@ortros/stoux-lib
Version:
Library of shared types/interfaces for the stoux marketplace
19 lines (18 loc) • 612 B
TypeScript
import { Store } from '@medusajs/medusa';
import { RetrieveCategory } from '../category/retrieve-category';
import { RetrieveProductTemplate } from '../product-template/retrieve-product-template';
export type MinimalStore = Pick<Store, 'id' | 'name'>;
export type ExecuteSearchRes = {
items: RetrieveProductTemplate[];
itemCount: number;
page: number;
pageCount: number;
hasPreviousPage: boolean;
hasNextPage: boolean;
_filters: {
categories: RetrieveCategory[];
minPrice: number;
maxPrice: number;
vendors: MinimalStore[];
};
};