import { AxiosResponse } from "axios"; import { ApiRequest } from "../client/ApiRequest"; import { IOptions, IRequestOptions, IStandardParameters, IStandardResponse } from "../types"; export interface IPropertyValue { /** * The numeric ID of this property. */ property_id: number; /** * The name of the property, in the requested locale language. */ property_name: string; /** * The numeric ID of the scale (if any). */ scale_id: number; /** * The label used to describe the chosen scale (if any). */ scale_name: string; /** * The numeric IDs of the values. */ value_ids: number[]; /** * The literal values of the value. */ values: string[]; } export interface IGetAttributesParameters { listing_id: number; } export interface IGetAttributeParameters { listing_id: number; property_id: number; } export interface IUpdateAttributeParameters { listing_id: number; property_id: number; value_ids?: number[]; values?: string[]; scale_id?: number; } export interface IDeleteAttributeParameters { listing_id: number; property_id: number; } export declare class PropertyValue extends ApiRequest { constructor(options: IOptions); /** * Get all of the attributes for a listing */ getAttributes(params: IGetAttributesParameters & IStandardParameters, extra?: IRequestOptions): Promise>>; /** * Get an attribute for a listing */ getAttribute(params: IGetAttributeParameters & IStandardParameters, extra?: IRequestOptions): Promise>>; /** * Update or populate an attribute for a listing */ updateAttribute(params: IUpdateAttributeParameters & IStandardParameters, extra?: IRequestOptions): Promise>>; /** * Delete an attribute for a listing */ deleteAttribute(params: IDeleteAttributeParameters & IStandardParameters, extra?: IRequestOptions): Promise>>; }