/** * 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 { ReplicateCommand } from '../model/ReplicateCommand'; import { ReplicatorDocument } from '../model/ReplicatorDocument'; import { ReplicatorResponse } from '../model/ReplicatorResponse'; import { AuthenticationProvider } from '../../icc-x-api/auth/AuthenticationProvider'; export declare class IccReplicationApi { 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; /** * Create a document to start a continuous replication * @summary Create continuous replication document * @param body */ createContinuousReplicationDoc(body?: ReplicateCommand): Promise; /** * Create a document to start a one time replication * @summary Create one time replication document * @param body */ createOneTimeReplicationDoc(body?: ReplicateCommand): Promise; /** * DocId is the id provided by a replicator document from replication/docs * @summary Delete replication document to stop it * @param docId */ deleteReplicationDoc(docId: string): Promise; /** * Get all replication infos and states * @summary Get replication documents */ getReplicationDocs(): Promise>; }