UNPKG

migros-api-wrapper

Version:

Making the api of migros more accessible to the public.

21 lines (20 loc) 863 B
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 ICategoryListOptions = Record<string, any>; export interface ICategoryListBody extends Record<string, any> { algorithm?: Algorithm; categoryId: number; filters?: Record<any, any>; from: number; language?: Language; productIds?: string[]; regionId?: Region; requestSponsoredProducts?: boolean; sortFields?: SortFields[]; sortOrder?: SortOrder; } export declare function categoryList(categoryListBody: ICategoryListBody, headers: IMigrosNecessaryHeaders, categoryListOptions?: ICategoryListOptions): Promise<any>;