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

export { getSequentialPayload };
//# sourceMappingURL=getSequentialPayload.js.map
