import { Client } from '../client'; import { UriHelper } from '../uri-helper'; import { BaseError } from '../errors/baseError'; import { ThBaseHandler } from '../base'; export interface ServicesOptions { user?: string; base?: string; } export interface ServiceResponse { data?: ServicesObject; metadata?: { count?: number; patch?: any; }; msg?: string; } export interface ServicesObject { name: string; category?: string; duration: number; description?: string; linked_product: string; id?: string; deleted?: boolean; locations?: null | string[]; } export declare class Services extends ThBaseHandler { static baseEndpoint: string; endpoint: string; http: Client; options: ServicesOptions; uriHelper: UriHelper; constructor(options: ServicesOptions, http: Client); create(service: ServicesObject): Promise; put(serviceId: string, service: ServicesObject): Promise; } export declare class ServiceCreationFailed extends BaseError { message: string; name: string; constructor(message?: string, properties?: Record); } export declare class ServicePutFailed extends BaseError { message: string; name: string; constructor(message?: string, properties?: Record); }