import { findAllMeasures } from "../../../../utils/index.js";
const dataConfig = (spec, context)=>{
    const { advancedVSeed } = context;
    const measures = findAllMeasures(advancedVSeed.measureTree);
    const aggregationRules = measures.map((measure)=>({
            field: measure.id,
            aggregationType: 'NONE',
            indicatorKey: measure.id
        }));
    return {
        ...spec,
        dataConfig: {
            aggregationRules
        }
    };
};
export { dataConfig };

//# sourceMappingURL=pivotDataConfig.js.map