@activepieces/shared 0.10.68 → 0.10.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -54,9 +54,11 @@ export declare class LoopStepOutput extends GenericStepOutput<ActionType.LOOP_ON
|
|
|
54
54
|
static init({ input }: {
|
|
55
55
|
input: unknown;
|
|
56
56
|
}): LoopStepOutput;
|
|
57
|
-
|
|
57
|
+
hasIteration(iteration: number): boolean;
|
|
58
|
+
setItemAndIndex({ item, index }: {
|
|
58
59
|
item: unknown;
|
|
59
60
|
index: number;
|
|
60
61
|
}): LoopStepOutput;
|
|
62
|
+
addIteration(): LoopStepOutput;
|
|
61
63
|
}
|
|
62
64
|
export {};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LoopStepOutput = exports.BranchStepOutput = exports.GenericStepOutput = exports.StepOutputStatus = void 0;
|
|
4
4
|
const action_1 = require("../../flows/actions/action");
|
|
5
|
+
const common_1 = require("../../common");
|
|
5
6
|
var StepOutputStatus;
|
|
6
7
|
(function (StepOutputStatus) {
|
|
7
8
|
StepOutputStatus["FAILED"] = "FAILED";
|
|
@@ -71,12 +72,24 @@ class LoopStepOutput extends GenericStepOutput {
|
|
|
71
72
|
status: StepOutputStatus.SUCCEEDED,
|
|
72
73
|
});
|
|
73
74
|
}
|
|
74
|
-
|
|
75
|
+
hasIteration(iteration) {
|
|
76
|
+
var _a;
|
|
77
|
+
return !(0, common_1.isNil)((_a = this.output) === null || _a === void 0 ? void 0 : _a.iterations[iteration]);
|
|
78
|
+
}
|
|
79
|
+
setItemAndIndex({ item, index }) {
|
|
75
80
|
var _a, _b;
|
|
76
81
|
return new LoopStepOutput(Object.assign(Object.assign({}, this), { output: {
|
|
77
82
|
item,
|
|
78
83
|
index,
|
|
79
|
-
iterations:
|
|
84
|
+
iterations: (_b = (_a = this.output) === null || _a === void 0 ? void 0 : _a.iterations) !== null && _b !== void 0 ? _b : [],
|
|
85
|
+
} }));
|
|
86
|
+
}
|
|
87
|
+
addIteration() {
|
|
88
|
+
var _a, _b, _c, _d;
|
|
89
|
+
return new LoopStepOutput(Object.assign(Object.assign({}, this), { output: {
|
|
90
|
+
item: (_a = this.output) === null || _a === void 0 ? void 0 : _a.item,
|
|
91
|
+
index: (_b = this.output) === null || _b === void 0 ? void 0 : _b.index,
|
|
92
|
+
iterations: [...((_d = (_c = this.output) === null || _c === void 0 ? void 0 : _c.iterations) !== null && _d !== void 0 ? _d : []), {}],
|
|
80
93
|
} }));
|
|
81
94
|
}
|
|
82
95
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-output.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flow-run/execution/step-output.ts"],"names":[],"mappings":";;;AACA,uDAAuD;
|
|
1
|
+
{"version":3,"file":"step-output.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flow-run/execution/step-output.ts"],"names":[],"mappings":";;;AACA,uDAAuD;AACvD,yCAAoC;AAEpC,IAAY,gBAMX;AAND,WAAY,gBAAgB;IACxB,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;IACjB,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,2CAAuB,CAAA;AAC3B,CAAC,EANW,gBAAgB,gCAAhB,gBAAgB,QAM3B;AAWD,MAAa,iBAAiB;IAQ1B,YAAY,IAAqC;QAC7C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAA;QACrB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;QACzB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAA;QACvB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;QACzB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAA;QAC7B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAA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