UNPKG

@azure/cosmos

Version:
33 lines 2.02 kB
import type { PartitionKey } from "../../documents/index.js"; import type { FeedRange } from "./FeedRange.js"; import { ChangeFeedStartFromNow } from "./ChangeFeedStartFromNow.js"; import { ChangeFeedStartFromBeginning } from "./ChangeFeedStartFromBeginning.js"; import { ChangeFeedStartFromTime } from "./ChangeFeedStartFromTime.js"; import { ChangeFeedStartFromContinuation } from "./ChangeFeedStartFromContinuation.js"; /** * Base class for where to start a ChangeFeedIterator. */ export declare abstract class ChangeFeedStartFrom { /** * Returns an object that tells the ChangeFeedIterator to start from the beginning of time. * @param cfResource - PartitionKey or FeedRange for which changes are to be fetched. Leave blank for fetching changes for entire container. */ static Beginning(cfResource?: PartitionKey | FeedRange): ChangeFeedStartFromBeginning; /** * Returns an object that tells the ChangeFeedIterator to start reading changes from this moment onward. * @param cfResource - PartitionKey or FeedRange for which changes are to be fetched. Leave blank for fetching changes for entire container. **/ static Now(cfResource?: PartitionKey | FeedRange): ChangeFeedStartFromNow; /** * Returns an object that tells the ChangeFeedIterator to start reading changes from some point in time onward. * @param startTime - Date object specfiying the time to start reading changes from. * @param cfResource - PartitionKey or FeedRange for which changes are to be fetched. Leave blank for fetching changes for entire container. */ static Time(startTime: Date, cfResource?: PartitionKey | FeedRange): ChangeFeedStartFromTime; /** * Returns an object that tells the ChangeFeedIterator to start reading changes from a save point. * @param continuation - The continuation to resume from. */ static Continuation(continuationToken: string): ChangeFeedStartFromContinuation; } //# sourceMappingURL=ChangeFeedStartFrom.d.ts.map