/* eslint-disable local-rules/no-direct-api-import */
import { documentItemCache } from './document-item.server.cache.js';
import { DocumentService } from '../../../../core/backend-api/index.js';
import { UmbManagementApiItemDataRequestManager, UmbManagementApiInFlightRequestCache, } from '../../../../management-api/index.js';
export class UmbManagementApiDocumentItemDataRequestManager extends UmbManagementApiItemDataRequestManager {
    static #inflightRequestCache = new UmbManagementApiInFlightRequestCache();
    constructor(host) {
        super(host, {
            getItems: (ids) => DocumentService.getItemDocument({ query: { id: ids } }),
            dataCache: documentItemCache,
            inflightRequestCache: UmbManagementApiDocumentItemDataRequestManager.#inflightRequestCache,
            getUniqueMethod: (item) => item.id,
        });
    }
}
