@activepieces/shared
Advanced tools
Comparing version 0.3.43 to 0.3.44
{ | ||
"name": "@activepieces/shared", | ||
"version": "0.3.43", | ||
"version": "0.3.44", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -17,2 +17,3 @@ import { FlowOperationRequest } from './flow-operations'; | ||
declare function getAllSteps(trigger: Trigger): (Action | Trigger)[]; | ||
declare function getAllParentSteps(step: Trigger): (Action | Trigger)[]; | ||
declare function getAllChildSteps(action: LoopOnItemsAction | BranchAction): (Action)[]; | ||
@@ -32,3 +33,4 @@ declare function getStep(flowVersion: FlowVersion, stepName: string): Action | Trigger | undefined; | ||
getAllChildSteps: typeof getAllChildSteps; | ||
getAllParentSteps: typeof getAllParentSteps; | ||
}; | ||
export {}; |
@@ -85,2 +85,10 @@ "use strict"; | ||
} | ||
function getAllParentSteps(step) { | ||
const steps = []; | ||
while (step !== undefined && step !== null) { | ||
steps.push(step); | ||
step = step.nextAction; | ||
} | ||
return steps; | ||
} | ||
function getAllChildSteps(action) { | ||
@@ -330,3 +338,4 @@ switch (action.type) { | ||
getAllChildSteps, | ||
getAllParentSteps | ||
}; | ||
//# sourceMappingURL=flow-helper.js.map |
Sorry, the diff of this file is not supported yet
285945
4021