UNPKG

ravendb

Version:
28 lines 1.6 kB
import { CompareExchangeValue } from "./CompareExchangeValue.js"; import { CompareExchangeValueState } from "./CompareExchangeValueState.js"; import { CompareExchangeResultClass } from "../../../Types/index.js"; import { DocumentConventions } from "../../Conventions/DocumentConventions.js"; import { ICommandData } from "../../Commands/CommandData.js"; import { ITypesAwareObjectMapper } from "../../../Mapping/ObjectMapper.js"; import { IMetadataDictionary } from "../../Session/IMetadataDictionary.js"; export declare class CompareExchangeSessionValue { private readonly _key; private _index; private _originalValue; private _value; private _state; constructor(key: string, index: number, state: CompareExchangeValueState); constructor(value: CompareExchangeValue<any>); getValue<T>(clazz: CompareExchangeResultClass<T>, conventions: DocumentConventions): CompareExchangeValue<T>; create<T>(item: T): CompareExchangeValue<T>; delete(index: number): void; private _assertState; getCommand(conventions: DocumentConventions): ICommandData; private _convertEntity; hasChanged(originalValue: CompareExchangeValue<unknown>, newValue: CompareExchangeValue<unknown>): boolean; updateState(index: number): void; updateValue(value: CompareExchangeValue<object>, mapper: ITypesAwareObjectMapper): void; static prepareMetadataForPut(key: string, metadataDictionary: IMetadataDictionary, conventions: DocumentConventions): object; private static _throwInvalidExpiresMetadata; } //# sourceMappingURL=CompareExchangeSessionValue.d.ts.map