Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | import { EXECUTION_STEP_EXECUTE } from "../../../../../constants/index.ts"; import { apiSlice } from "../../../../app/apiSlice.ts"; import { store } from "../../../../index.ts"; import { playbookSelector } from "../../playbookSlice.ts"; export const executionStepExecuteApi = apiSlice.injectEndpoints({ endpoints: (builder) => ({ executionStepExecute: builder.mutation<any, any>({ query: (step) => { const { executionId } = playbookSelector(store.getState()); return { url: EXECUTION_STEP_EXECUTE, body: { playbook_run_id: executionId, step }, method: "POST", }; }, }), }), }); export const { endpoints: { executionStepExecute }, } = executionStepExecuteApi; |