import { Client } from '../client'; import { BaseError } from '../errors'; import { ThBaseHandler } from '../base'; import { UriHelper } from '../uri-helper'; export interface ReasonsOptions { user?: string; base?: string; } export interface ReasonsQuery { limit?: number; uri?: string; query?: { deleted?: boolean; active?: boolean; }; } export interface ReasonsResponse { data: Reason[]; metadata: Record; } export interface ReasonResponse { data?: Reason; metadata?: { count?: number; patch?: any; }; msg?: string; } export interface Reason { id?: string; name?: string; description?: string; type?: string; behavior?: Behavior; } export interface Behavior { stock?: string; stock_location?: string; navigation?: string; } export declare class Reasons extends ThBaseHandler { static baseEndpoint: string; endpoint: string; http: Client; options: ReasonsOptions; uriHelper: UriHelper; constructor(options: ReasonsOptions, http: Client); getAll(queryOrOptions?: ReasonsQuery | undefined): Promise; get(reasonId: string): Promise; put(reasonId: string, reason: Reason): Promise; create(reason: Reason): Promise; delete(reasonId: string): Promise; } export declare class ReasonsFetchFailed extends BaseError { message: string; name: string; constructor(message?: string, properties?: Record); } export declare class ReasonsFetchOneFailed extends BaseError { message: string; name: string; constructor(message?: string, properties?: Record); } export declare class ReasonsPutFailed extends BaseError { message: string; name: string; constructor(message?: string, properties?: Record); } export declare class ReasonsCreationFailed extends BaseError { message: string; name: string; constructor(message?: string, properties?: Record); } export declare class ReasonsDeleteFailed extends BaseError { message: string; name: string; constructor(message?: string, properties?: Record); }