"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.dataTablesRbacPreflight = dataTablesRbacPreflight;
async function dataTablesRbacPreflight(apiClient, dataTableIds = []) {
    if (!dataTableIds.length) {
        return [];
    }
    const dataTablePromises = [];
    for (const dataTableId of dataTableIds ?? []) {
        const promise = apiClient.getDataTable(dataTableId);
        dataTablePromises.push(promise);
    }
    return Promise.all(dataTablePromises);
}
