/** * 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 { Classification } from '../model/Classification'; import { DocIdentifier } from '../model/DocIdentifier'; import { AuthenticationProvider } from '../../icc-x-api/auth/AuthenticationProvider'; import { EntityBulkShareResult } from '../model/requests/EntityBulkShareResult'; import { MinimalEntityBulkShareResult } from '../model/requests/MinimalEntityBulkShareResult'; import { ListOfIds } from '../model/ListOfIds'; import { BulkShareOrUpdateMetadataParams } from '../model/requests/BulkShareOrUpdateMetadataParams'; export declare class IccClassificationApi { host: string; _headers: Array; authenticationProvider: AuthenticationProvider; fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise; get headers(): Promise>; constructor(host: string, headers: any, authenticationProvider?: AuthenticationProvider, fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise); setHeaders(h: Array): void; handleError(e: XHR.XHRError): never; /** * Returns an instance of created classification Template. * @summary Create a classification with the current user * @param body */ createClassification(body?: Classification): Promise; /** * @summary Deletes a batch of classifications. * * @param classificationIds a ListOfIds containing the ids of the classification to delete. * @return a Promise that will resolve in an array of DocIdentifiers of the successfully deleted classifications. */ deleteClassifications(classificationIds: ListOfIds): Promise>; /** * @summary Deletes a single classification by id. * * @param classificationId the id of the classification to delete. * @return a Promise that will resolve in the DocIdentifier of the deleted classification. */ deleteClassification(classificationId: string): Promise; /** * Keys have to be delimited by comma * @deprecated use {@link findClassificationIdsByDataOwnerPatientCreated} instead. * @summary List classification Templates found By Healthcare Party and secret foreign keys. * @param hcPartyId * @param secretFKeys */ findClassificationsByHCPartyPatientForeignKeys(hcPartyId: string, secretFKeys: string): Promise>; /** * @summary List Classification ids by data owner and a set of secret foreign key. The ids will be sorted by Classification created, in ascending or descending * order according to the specified parameter value. * * @param dataOwnerId the data owner id. * @param secretFKeys an array of secret foreign keys. * @param startDate a timestamp in epoch milliseconds. If undefined, all the classification ids since the beginning of time will be returned. * @param endDate a timestamp in epoch milliseconds. If undefined, all the classification ids until the end of time will be returned. * @param descending whether to return the ids ordered in ascending or descending order by Classification created * @return a promise that will resolve in an Array of Classification ids. */ findClassificationIdsByDataOwnerPatientCreated(dataOwnerId: string, secretFKeys: string[], startDate?: number, endDate?: number, descending?: boolean): Promise; /** * * @summary Get a classification Template * @param classificationId */ getClassification(classificationId: string): Promise; getClassifications(body?: ListOfIds): Promise>; /** * @summary Get a list of classifications by their ids. * @param ids */ getClassificationByHcPartyId(ids: ListOfIds): Promise>; /** * Returns the modified classification Template. * @summary Modify a classification Template * @param body */ modifyClassification(body?: Classification): Promise; /** * @internal this method is for internal use only and may be changed without notice */ bulkShareClassifications(request: BulkShareOrUpdateMetadataParams): Promise[]>; /** * @internal this method is for internal use only and may be changed without notice */ bulkShareClassificationsMinimal(request: BulkShareOrUpdateMetadataParams): Promise; }