import { ILazyLoaderWithInclude } from "../../Loaders/ILazyLoaderWithInclude.js"; import { ObjectTypeDescriptor, EntitiesCollectionObject } from "../../../../Types/index.js"; import { Lazy } from "../../../Lazy.js"; import { SessionLoadStartingWithOptions } from "../../IDocumentSession.js"; import { ConditionalLoadResult } from "../../ConditionalLoadResult.js"; /** * Specify interface for lazy operation for the session */ export interface ILazySessionOperations { /** * Begin a load while including the specified path */ include(path: string): ILazyLoaderWithInclude; /** * Loads the specified entities with the specified ids. */ load(ids: string[], clazz: ObjectTypeDescriptor): Lazy>; /** * Loads the specified entities with the specified ids. */ load(ids: string[]): Lazy>; /** * Loads the specified entity with the specified id. */ load(id: string): Lazy; /** * Loads the specified entity with the specified id. */ load(id: string, clazz: ObjectTypeDescriptor): Lazy; /** * Loads multiple entities that contain common prefix. */ loadStartingWith(idPrefix: string): Lazy>; /** * Loads multiple entities that contain common prefix. */ loadStartingWith(idPrefix: string, clazz: ObjectTypeDescriptor): Lazy>; /** * Loads multiple entities that contain common prefix. */ loadStartingWith(idPrefix: string, opts: SessionLoadStartingWithOptions): Lazy>; /** * Loads the specified entity with the specified id and changeVector. * If the entity is loaded into the session, the tracked entity will be returned otherwise * the entity will be loaded only if it is fresher then the provided changeVector. * @param id Identifier of a entity that will be conditional loaded. * @param changeVector Change vector of a entity that will be conditional loaded. * @param clazz Result class */ conditionalLoad(id: string, changeVector: string, clazz: ObjectTypeDescriptor): Lazy>; } //# sourceMappingURL=ILazySessionOperations.d.ts.map