@lowdefy/build 0.0.0-experimental-20241113085758 → 0.0.0-experimental-20250218100608
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/dist/build/buildApi/buildEndpoint.js +0 -4
- package/dist/build/buildApi/buildRoutine/controlTypes.js +6 -2
- package/dist/build/buildApi/buildRoutine/validateStep.js +1 -5
- package/dist/defaultTypesMap.js +467 -467
- package/package.json +38 -38
- package/dist/build/buildApi/buildRoutine/countOperators.js +0 -0
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import buildRoutine from './buildRoutine/buildRoutine.js';
|
|
16
16
|
import validateEndpoint from './validateEndpoint.js';
|
|
17
|
-
import createCheckDuplicateId from '../../utils/createCheckDuplicateId.js';
|
|
18
17
|
function buildEndpoint({ endpoint, index, context, checkDuplicateEndpointId }) {
|
|
19
18
|
validateEndpoint({
|
|
20
19
|
endpoint,
|
|
@@ -23,9 +22,6 @@ function buildEndpoint({ endpoint, index, context, checkDuplicateEndpointId }) {
|
|
|
23
22
|
});
|
|
24
23
|
endpoint.endpointId = endpoint.id;
|
|
25
24
|
buildRoutine(endpoint.routine, {
|
|
26
|
-
checkDuplicateStepId: createCheckDuplicateId({
|
|
27
|
-
message: 'Duplicate stepId "{{ id }}" on endpoint "{{ eventId }}"'
|
|
28
|
-
}),
|
|
29
25
|
endpointId: endpoint.endpointId,
|
|
30
26
|
typeCounters: context.typeCounters
|
|
31
27
|
});
|
|
@@ -75,7 +75,9 @@ const controlTypes = {
|
|
|
75
75
|
':reject'
|
|
76
76
|
],
|
|
77
77
|
routine: [],
|
|
78
|
-
optional: [
|
|
78
|
+
optional: [
|
|
79
|
+
':cause'
|
|
80
|
+
]
|
|
79
81
|
},
|
|
80
82
|
':return': {
|
|
81
83
|
required: [
|
|
@@ -110,7 +112,9 @@ const controlTypes = {
|
|
|
110
112
|
':throw'
|
|
111
113
|
],
|
|
112
114
|
routine: [],
|
|
113
|
-
optional: [
|
|
115
|
+
optional: [
|
|
116
|
+
':cause'
|
|
117
|
+
]
|
|
114
118
|
},
|
|
115
119
|
':try': {
|
|
116
120
|
required: [
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import { type } from '@lowdefy/helpers';
|
|
16
|
-
function validateStep(step, { endpointId
|
|
16
|
+
function validateStep(step, { endpointId }) {
|
|
17
17
|
if (Object.keys(step).length === 0) {
|
|
18
18
|
throw new Error(`Step is not defined at endpoint "${endpointId}"`);
|
|
19
19
|
}
|
|
@@ -38,9 +38,5 @@ function validateStep(step, { endpointId, checkDuplicateStepId }) {
|
|
|
38
38
|
if (!type.isString(step.connectionId)) {
|
|
39
39
|
throw new Error(`Step connectionId is not a string at endpoint "${endpointId}". Received ${JSON.stringify(step.connectionId)}.`);
|
|
40
40
|
}
|
|
41
|
-
checkDuplicateStepId({
|
|
42
|
-
id: step.id,
|
|
43
|
-
eventId: endpointId
|
|
44
|
-
});
|
|
45
41
|
}
|
|
46
42
|
export default validateStep;
|