import { AxiosResponse } from "axios"; import { ApiRequest } from "../client/ApiRequest"; import { IOptions, IRequestOptions, IStandardParameters, IStandardResponse } from "../types"; export interface IShopSection { /** * The numeric ID of the shop section. */ shop_section_id: number; /** * The title of the section. */ title: string; /** * Display order. */ rank: number; /** * The ID of the user who owns this shop section. */ user_id: number; /** * The number of active listings currently in the section. */ active_listing_count: number; } export interface IFindAllShopSectionsParameters { shop_id: string | number; } export interface ICreateShopSectionParameters { shop_id: string | number; title?: string; user_id?: number; } export interface IGetShopSectionParameters { shop_id: string | number; shop_section_id: number[]; } export interface IUpdateShopSectionParameters { shop_id: string | number; shop_section_id: number; title?: string; user_id?: number; } export interface IDeleteShopSectionParameters { shop_id: string | number; shop_section_id: number; } export declare class ShopSection extends ApiRequest { constructor(options: IOptions); /** * Retrieves a set of ShopSection objects associated to a Shop. */ findAllShopSections(params: IFindAllShopSectionsParameters & IStandardParameters, extra?: IRequestOptions): Promise>>; /** * Creates a new ShopSection. */ createShopSection(params: ICreateShopSectionParameters & IStandardParameters, extra?: IRequestOptions): Promise>>; /** * Retrieves a ShopSection by id and shop_id */ getShopSection(params: IGetShopSectionParameters & IStandardParameters, extra?: IRequestOptions): Promise>>; /** * Updates a ShopSection with the given id. */ updateShopSection(params: IUpdateShopSectionParameters & IStandardParameters, extra?: IRequestOptions): Promise>>; /** * Deletes the ShopSection with the given id. */ deleteShopSection(params: IDeleteShopSectionParameters & IStandardParameters, extra?: IRequestOptions): Promise>>; }