// (C) 2021-2025 GoodData Corporation
import { createSlice } from "@reduxjs/toolkit";
import { executionResultsAdapter } from "./executionResultsEntityAdapter.js";
const executionResultsSlice = createSlice({
    name: "executionResults",
    initialState: executionResultsAdapter.getInitialState(),
    reducers: {
        upsertExecutionResult: executionResultsAdapter.upsertOne,
        clearAllExecutionResults: executionResultsAdapter.removeAll,
    },
});
export const executionResultsSliceReducer = executionResultsSlice.reducer;
// Spread "fixes" TS2742 error
export const executionResultsActions = { ...executionResultsSlice.actions };
//# sourceMappingURL=index.js.map