/* eslint-disable local-rules/no-direct-api-import */
import { dataTypeDetailCache } from './data-type-detail.server.cache.js';
import { DataTypeService, } from '../../../../core/backend-api/index.js';
import { UmbManagementApiDetailDataRequestManager, UmbManagementApiInFlightRequestCache, } from '../../../../management-api/index.js';
export class UmbManagementApiDataTypeDetailDataRequestManager extends UmbManagementApiDetailDataRequestManager {
    static #inflightRequestCache = new UmbManagementApiInFlightRequestCache();
    constructor(host) {
        super(host, {
            create: (body) => DataTypeService.postDataType({ body }),
            read: (id) => DataTypeService.getDataTypeById({ path: { id } }),
            update: (id, body) => DataTypeService.putDataTypeById({ path: { id }, body }),
            delete: (id) => DataTypeService.deleteDataTypeById({ path: { id } }),
            readMany: (ids) => DataTypeService.getDataTypeBatch({ query: { id: ids } }),
            dataCache: dataTypeDetailCache,
            inflightRequestCache: UmbManagementApiDataTypeDetailDataRequestManager.#inflightRequestCache,
        });
    }
}
