X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/16860c6f2fedc5c150cab796e93aa21067f28e97..bf5703f285ed90bb3334f531ce0a46e5e00d122f:/src/store/process-panel/process-panel.ts diff --git a/src/store/process-panel/process-panel.ts b/src/store/process-panel/process-panel.ts index 935cfa58..36c3e29f 100644 --- a/src/store/process-panel/process-panel.ts +++ b/src/store/process-panel/process-panel.ts @@ -2,7 +2,29 @@ // // SPDX-License-Identifier: AGPL-3.0 +import { WorkflowInputsData } from 'models/workflow'; +import { RouterState } from "react-router-redux"; +import { matchProcessRoute } from "routes/routes"; +import { ProcessIOParameter } from "views/process-panel/process-io-card"; +import { CommandOutputParameter } from 'cwlts/mappings/v1.0/CommandOutputParameter'; + +export type OutputDetails = { + rawOutputs?: any; + pdh?: string; +} + export interface ProcessPanel { containerRequestUuid: string; filters: { [status: string]: boolean }; + inputRaw: WorkflowInputsData | null; + inputParams: ProcessIOParameter[] | null; + outputRaw: OutputDetails | null; + outputDefinitions: CommandOutputParameter[]; + outputParams: ProcessIOParameter[] | null; } + +export const getProcessPanelCurrentUuid = (router: RouterState) => { + const pathname = router.location ? router.location.pathname : ''; + const match = matchProcessRoute(pathname); + return match ? match.params.id : undefined; +};