/** * 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 { CalendarItemType } from '../model/CalendarItemType'; import { DocIdentifier } from '../model/DocIdentifier'; import { AuthenticationProvider } from '../../icc-x-api/auth/AuthenticationProvider'; import { ListOfIds } from '../model/ListOfIds'; import { PaginatedListCalendarItemType } from '../model/PaginatedListCalendarItemType'; import { ConflictResolutionRequest } from '../model/ConflictResolutionRequest'; import { ConflictResolutionResult } from '../model/ConflictResolutionResult'; import { ConflictResolutionStrategy } from '../model/ConflictResolutionStrategy'; import { MergeResult } from '../model/MergeResult'; export declare class IccCalendarItemTypeApi { 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 calendarItemType * @param body */ createCalendarItemType(body?: CalendarItemType): Promise; /** * @summary Deletes a batch of calendarItemTypes. * * @param calendarItemTypeIds a ListOfIds containing the ids of the calendarItemTypes to delete. * @return a Promise that will resolve in an array of DocIdentifiers of the successfully deleted calendarItemTypes. */ deleteCalendarItemTypes(calendarItemTypeIds: ListOfIds): Promise>; /** * * @summary Gets an calendarItemType * @param calendarItemTypeId */ getCalendarItemType(calendarItemTypeId: string): Promise; /** * @deprecated use {@link getCalendarItemTypesWithPagination} instead. * @summary Gets all calendarItemTypes */ getCalendarItemTypes(): Promise>; /** * @summary Gets all calendarItemTypes 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 PaginatedListCalendarItemType. */ getCalendarItemTypesWithPagination(startDocumentId?: string, limit?: number): Promise; /** * @deprecated use {@link getCalendarItemTypesIncludeDeletedWithPagination} instead. * @summary Gets all calendarItemTypes include deleted */ getCalendarItemTypesIncludeDeleted(): Promise>; /** * @summary Gets all calendarItemTypes including deleted entities with pagination. * @param startKey the startKey provided by the previous page or undefined for the first page. * @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 PaginatedListCalendarItemType. */ getCalendarItemTypesIncludeDeletedWithPagination(startKey?: string, startDocumentId?: string, limit?: number): Promise; /** * * @summary Modifies an calendarItemType * @param body */ modifyCalendarItemType(body?: CalendarItemType): Promise; /** * Retrieves the ids of all the calendar item types that currently have conflicting revisions and therefore need to * be resolved. * @summary List the ids of the calendar item types that have conflicts. * @return the ids of the calendar item types with unresolved conflicts. */ getConflictingEntitiesIds(): Promise>; /** * Retrieves all the conflicting revisions of the calendar item type with the given id (the current revision is not * included). The returned entities are still encrypted. * @summary Get the conflicting revisions of a calendar item type. * @param entityId the id of the calendar item type to retrieve the conflicts for. * @return the conflicting revisions of the calendar item type. */ getConflictsForEntity(entityId: string): Promise>; /** * Resolves a conflict by declaring which revision of the calendar item type should be kept as winner and which * conflicting revisions should be purged. The provided document must already be encrypted. * @summary Declare the winning revision of a conflicting calendar item type. * @param body the {@link ConflictResolutionRequest} carrying the winning revision and the conflicts to purge. * @return the {@link ConflictResolutionResult} with the saved winner and the conflicts that are still unresolved. */ declareConflictWinner(body: ConflictResolutionRequest): Promise>; /** * Automatically resolves the conflicting revisions of the calendar item types with the given ids, according to the provided * {@link ConflictResolutionStrategy}. * @summary Automatically solve the conflicts of the calendar item types with the given ids. * @param entityIds the ids of the calendar item types to solve the conflicts for. * @param strategy the {@link ConflictResolutionStrategy} to use to resolve the conflicts. Defaults to `FullMergeability`. * @return the {@link MergeResult} of the conflict resolution for each requested entity. */ autoSolveConflicts(entityIds: Array, strategy?: ConflictResolutionStrategy): Promise>; /** * Like {@link autoSolveConflicts} but targets the entities of the group with the given id. * @summary Automatically solve the conflicts of the calendar item types with the given ids, in the given group. * @param groupId the id of the group to look into. * @param entityIds the ids of the calendar item types to solve the conflicts for. * @param strategy the {@link ConflictResolutionStrategy} to use to resolve the conflicts. Defaults to `FullMergeability`. * @return the {@link MergeResult} of the conflict resolution for each requested entity. */ autoSolveConflictsInGroup(groupId: string, entityIds: Array, strategy?: ConflictResolutionStrategy): Promise>; }