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