import { Result } from "@webiny/feature/api"; import type { CmsEntry, CmsEntryValues, CmsModel } from "../../../types/index.js"; import type { EntryNotAuthorizedError, EntryPersistenceError } from "../../../domain/contentEntry/errors.js"; /** * GetLatestEntriesByIds Use Case - Fetches latest revisions by entry IDs. * Returns array of latest entries (excludes deleted entries via decorator). */ export interface IGetLatestEntriesByIdsUseCase { execute(model: CmsModel, ids: string[]): Promise[], UseCaseError>>; } export interface IGetLatestEntriesByIdsUseCaseErrors { notAuthorized: EntryNotAuthorizedError; storage: EntryPersistenceError; } type UseCaseError = IGetLatestEntriesByIdsUseCaseErrors[keyof IGetLatestEntriesByIdsUseCaseErrors]; /** Retrieve the latest revisions for multiple entries. */ export declare const GetLatestEntriesByIdsUseCase: import("@webiny/di").Abstraction; export declare namespace GetLatestEntriesByIdsUseCase { type Interface = IGetLatestEntriesByIdsUseCase; type Error = UseCaseError; type Return = Promise[], UseCaseError>>; } /** * GetLatestEntriesByIdsRepository - Fetches latest entries from storage by entry IDs. */ export interface IGetLatestEntriesByIdsRepository { execute(model: CmsModel, ids: string[]): Promise[], RepositoryError>>; } export interface IGetLatestEntriesByIdsRepositoryErrors { storage: EntryPersistenceError; } type RepositoryError = IGetLatestEntriesByIdsRepositoryErrors[keyof IGetLatestEntriesByIdsRepositoryErrors]; export declare const GetLatestEntriesByIdsRepository: import("@webiny/di").Abstraction; export declare namespace GetLatestEntriesByIdsRepository { type Interface = IGetLatestEntriesByIdsRepository; type Error = RepositoryError; type Return = Promise[], RepositoryError>>; } export {};