/** * iCure Data Stack API Documentation * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2. * * OpenAPI spec version: v1 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ import { XHR } from './XHR'; import { DocIdentifier } from '../model/DocIdentifier'; import { MedicalLocation } from '../model/MedicalLocation'; import { AuthenticationProvider } from '../../icc-x-api/auth/AuthenticationProvider'; import { ListOfIds } from '../model/ListOfIds'; import { PaginatedListMedicalLocation } from '../model/PaginatedListMedicalLocation'; export declare class IccMedicallocationApi { host: string; headers: Array; authenticationProvider: AuthenticationProvider; fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise; constructor(host: string, headers: any, authenticationProvider?: AuthenticationProvider, fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise); setHeaders(h: Array): void; handleError(e: XHR.XHRError): never; /** * * @summary Creates a medical location * @param body */ createMedicalLocation(body?: MedicalLocation): Promise; /** * @summary Deletes a batch of medical locations. * * @param locationIds a ListOfIds containing the ids of the medical locations to delete. * @return a Promise that will resolve in an array of DocIdentifiers of the successfully deleted medical locations. */ deleteMedicalLocations(locationIds: ListOfIds): Promise>; /** * * @summary Gets a medical location * @param locationId */ getMedicalLocation(locationId: string): Promise; /** * @deprecated use {@link getMedicalLocationsWithPagination} instead. * @summary Gets all medical locations. */ getMedicalLocations(): Promise>; /** * @summary Gets all medical locations with pagination. * @param startDocumentId the startDocumentId provided by the previous page or undefined for the first page. * @param limit the number of elements that the page should contain. * @return a promise that will resolve in a PaginatedListMedicalLocation. */ getMedicalLocationsWithPagination(startDocumentId?: string, limit?: number): Promise; /** * * @summary Modifies a medical location * @param body */ modifyMedicalLocation(body?: MedicalLocation): Promise; }