( flow: AutonomyFlowRecord, stepIndex: number, )
| 344 | } |
| 345 | |
| 346 | function buildQueueInstruction( |
| 347 | flow: AutonomyFlowRecord, |
| 348 | stepIndex: number, |
| 349 | ): ManagedAutonomyFlowQueueInstruction | undefined { |
| 350 | const step = getManagedStep(flow, stepIndex) |
| 351 | if (!step) { |
| 352 | return undefined |
| 353 | } |
| 354 | return { |
| 355 | flowId: flow.flowId, |
| 356 | flowKey: flow.flowKey, |
| 357 | stepIndex, |
| 358 | step: cloneFlowStep(step), |
| 359 | } |
| 360 | } |
| 361 | |
| 362 | function markRemainingStepsCancelled( |
| 363 | state: ManagedAutonomyFlowState, |
no test coverage detected