migros-api-wrapper
Version:
Making the api of migros more accessible to the public.
19 lines (18 loc) • 811 B
TypeScript
import { Region } from "../enums/Region";
import { Language } from "../enums/Language";
import { Algorithm } from "../enums/Algorithm";
import { SortFields } from "../enums/SortFields";
import { SortOrder } from "../enums/SortOrder";
import { IMigrosNecessaryHeaders } from "../interfaces/headers";
export type IProductSearchOptions = Record<string, any>;
export interface IProductSearchBody extends Record<string, any> {
regionId?: Region;
language?: Language;
productIds?: string[];
query: string;
sortFields?: SortFields[];
sortOrder?: SortOrder;
algorithm?: Algorithm;
filters?: Record<any, any>;
}
export declare function postProductSearch(productSearchBody: IProductSearchBody, headers: IMigrosNecessaryHeaders, productSearchOptions?: IProductSearchOptions): Promise<any>;