UNPKG

ravendb

Version:
45 lines 2.3 kB
import { HttpRequestParameters } from "../../Primitives/Http.js"; import { PatchRequest } from "./PatchRequest.js"; import { IOperation, OperationResultType } from "./OperationAbstractions.js"; import { PatchStatus } from "./PatchStatus.js"; import { RavenCommand } from "../../Http/RavenCommand.js"; import { IDocumentStore } from "../IDocumentStore.js"; import { DocumentConventions } from "../Conventions/DocumentConventions.js"; import { HttpCache } from "../../Http/HttpCache.js"; import { ServerNode } from "../../Http/ServerNode.js"; import { PatchResult } from "./PatchResult.js"; import { Stream } from "node:stream"; export interface Payload { patch: PatchRequest; patchIfMissing: PatchRequest; } export declare class PatchOperationResult<TEntity> { status: PatchStatus; document: TEntity; } export declare class PatchOperation implements IOperation<PatchResult> { private readonly _id; private readonly _changeVector; private readonly _patch; private readonly _patchIfMissing; private readonly _skipPatchIfChangeVectorMismatch; get resultType(): OperationResultType; constructor(id: string, changeVector: string, patch: PatchRequest); constructor(id: string, changeVector: string, patch: PatchRequest, patchIfMissing: PatchRequest, skipPatchIfChangeVectorMismatch: boolean); getCommand(store: IDocumentStore, conventions: DocumentConventions, cache: HttpCache, returnDebugInformation?: boolean, test?: boolean): RavenCommand<PatchResult>; } export declare class PatchCommand extends RavenCommand<PatchResult> { private readonly _id; private readonly _changeVector; private readonly _patch; private readonly _skipPatchIfChangeVectorMismatch; private readonly _returnDebugInformation; private readonly _test; private _conventions; constructor(conventions: DocumentConventions, id: string, changeVector: string, patch: PatchRequest, patchIfMissing: PatchRequest, skipPatchIfChangeVectorMismatch: boolean, returnDebugInformation: boolean, test: boolean); get isReadRequest(): boolean; createRequest(node: ServerNode): HttpRequestParameters; setResponseAsync(bodyStream: Stream, fromCache: boolean): Promise<string>; private static _mapToLocalObject; } //# sourceMappingURL=PatchOperation.d.ts.map