import { SessionRevisionsMetadataOptions } from "./IRevisionsSessionOperations.js"; import { DocumentType } from "../DocumentAbstractions.js"; import { Lazy } from "../Lazy.js"; import { MetadataAsDictionary } from "../../Mapping/MetadataAsDictionary.js"; import { RevisionsCollectionObject } from "../../Types/index.js"; /** * Revisions advanced synchronous Lazy session operations */ export interface ILazyRevisionsOperations { /** * Returns all previous document revisions for specified document * ordered by most recent revisions first. */ getFor(id: string): Lazy; /** * Returns previous document revisions for specified document (with optional paging) * ordered by most recent revisions first. */ getFor(id: string, options: LazySessionRevisionsOptions): Lazy; /** * Returns metadata of all previous document revisions for specified document * ordered by most recent revisions first. */ getMetadataFor(id: string): Lazy; /** * Returns metadata of previous document revisions for specified document (with optional paging) * ordered by most recent revisions first. */ getMetadataFor(id: string, options: SessionRevisionsMetadataOptions): Lazy; /** * Returns a document revision by date. */ get(id: string, date: Date): Lazy; /** * Returns a document revision by change vector. */ get(changeVector: string): Lazy; /** * Returns a document revision by change vector. */ get(changeVector: string, documentType: DocumentType): Lazy; /** * Returns a document revision by change vectors. */ get(changeVectors: string[]): Lazy>; /** * Returns a document revision by change vectors. */ get(changeVectors: string[], documentType: DocumentType): Lazy>; } export interface LazySessionRevisionsOptions { start?: number; pageSize?: number; documentType?: DocumentType; } export interface LazySessionRevisionsMetadataOptions { start?: number; pageSize?: number; } //# sourceMappingURL=ILazyRevisionsOperations.d.ts.map