ravendb
Version:
RavenDB client for Node.js
52 lines • 2.47 kB
TypeScript
import { HttpRequestParameters } from "../../../Primitives/Http.js";
import { IOperation, OperationResultType } from "../OperationAbstractions.js";
import { CompareExchangeValue } from "./CompareExchangeValue.js";
import { CompareExchangeResultClass, ServerCasing, ServerResponse } from "../../../Types/index.js";
import { IDocumentStore } from "../../IDocumentStore.js";
import { DocumentConventions } from "../../Conventions/DocumentConventions.js";
import { HttpCache } from "../../../Http/HttpCache.js";
import { RavenCommand } from "../../../Http/RavenCommand.js";
import { ServerNode } from "../../../Http/ServerNode.js";
import { GetCompareExchangeValuesResponse } from "./CompareExchangeValueResultParser.js";
import { Stream } from "node:stream";
export interface GetCompareExchangeValuesParameters<T> {
keys?: string[];
startWith?: string;
start?: number;
pageSize?: number;
materializeMetadata?: boolean;
clazz?: CompareExchangeResultClass<T>;
}
export declare class GetCompareExchangeValuesOperation<T> implements IOperation<{
[key: string]: CompareExchangeValue<T>;
}> {
private readonly _clazz;
private readonly _keys;
private readonly _startWith;
private readonly _start;
private readonly _pageSize;
private readonly _materializeMetadata;
get keys(): string[];
get startWith(): string;
get start(): number;
get pageSize(): number;
get clazz(): CompareExchangeResultClass<T>;
constructor(parameters: GetCompareExchangeValuesParameters<T>);
getCommand(store: IDocumentStore, conventions: DocumentConventions, cache: HttpCache): RavenCommand<{
[key: string]: CompareExchangeValue<T>;
}>;
get resultType(): OperationResultType;
}
export declare class GetCompareExchangeValuesCommand<T> extends RavenCommand<{
[key: string]: CompareExchangeValue<T>;
}> {
private _operation;
private readonly _materializeMetadata;
private readonly _conventions;
constructor(operation: GetCompareExchangeValuesOperation<T>, materializeMetadata: boolean, conventions: DocumentConventions);
get isReadRequest(): boolean;
createRequest(node: ServerNode): HttpRequestParameters;
setResponseAsync(bodyStream: Stream, fromCache: boolean): Promise<string>;
static mapToLocalObject(json: ServerCasing<ServerResponse<GetCompareExchangeValuesResponse>>): GetCompareExchangeValuesResponse;
}
//# sourceMappingURL=GetCompareExchangeValuesOperation.d.ts.map