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