/** * 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 { Keyword } from '../model/Keyword'; import { AuthenticationProvider } from '../../icc-x-api/auth/AuthenticationProvider'; import { ListOfIds } from '../model/ListOfIds'; import { PaginatedListKeyword } from '../model/PaginatedListKeyword'; export declare class IccKeywordApi { 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; /** * Returns an instance of created keyword. * @summary Create a keyword with the current user * @param body */ createKeyword(body?: Keyword): Promise; /** * @summary Deletes a batch of keywords. * @param keywordIds a ListOfIds containing the ids of the keywords to delete. * @return a Promise that will resolve in an array of DocIdentifiers of the successfully delete keywords. */ deleteKeywords(keywordIds: ListOfIds): Promise>; /** * * @summary Get a keyword * @param keywordId */ getKeyword(keywordId: string): Promise; /** * @deprecated use {@link getKeywordsWithPagination} instead. * @summary Gets all keywords. */ getKeywords(): Promise>; /** * @summary Gets all keywords 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 PaginatedListKeyword. */ getKeywordsWithPagination(startDocumentId?: string, limit?: number): Promise; /** * * @summary Get keywords by user * @param userId */ getKeywordsByUser(userId: string): Promise>; /** * Returns the modified keyword. * @summary Modify a keyword * @param body */ modifyKeyword(body?: Keyword): Promise; }