export const getSequentialPayload = (data) => {
    return data.flatMap((item) => item.runLevelExecutionDataSets.map((runLevel, index) => {
        const { runLevelExecutionDataSets, ...rest } = item;
        return {
            ...rest,
            ...runLevel,
            runCount: index + 1,
        };
    }));
};
//# sourceMappingURL=getSequentialPayload.js.map