@usearazzo/runner 1.0.1-alpha.22 → 1.0.1-alpha.24
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/CHANGELOG.md +20 -0
- package/README.md +1 -1
- package/dist/arazzo-runner.browser.js +473 -293
- package/dist/arazzo-runner.browser.min.js +1 -1
- package/package.json +4 -4
- package/src/action/ActionResolver.cjs +4 -4
- package/src/action/ActionResolver.mjs +4 -4
- package/src/criterion/CriterionEvaluator.cjs +8 -9
- package/src/criterion/CriterionEvaluator.mjs +8 -9
- package/src/criterion/JSONPathCriterionEvaluator.cjs +1 -2
- package/src/criterion/JSONPathCriterionEvaluator.mjs +1 -2
- package/src/criterion/RegexCriterionEvaluator.cjs +1 -2
- package/src/criterion/RegexCriterionEvaluator.mjs +1 -2
- package/src/criterion/SimpleCriterionEvaluator.cjs +1 -2
- package/src/criterion/SimpleCriterionEvaluator.mjs +1 -2
- package/src/criterion/XPathCriterionEvaluator.cjs +4 -5
- package/src/criterion/XPathCriterionEvaluator.mjs +4 -5
- package/src/errors/CriterionError.cjs +52 -2
- package/src/errors/CriterionError.mjs +53 -2
- package/src/errors/ExecutionError.cjs +73 -2
- package/src/errors/ExecutionError.mjs +74 -2
- package/src/errors/ResolverError.cjs +53 -2
- package/src/errors/ResolverError.mjs +54 -2
- package/src/errors/RuntimeExpressionError.cjs +32 -2
- package/src/errors/RuntimeExpressionError.mjs +33 -2
- package/src/executor/ArazzoWorkflowLocatorNormalizer.cjs +4 -4
- package/src/executor/ArazzoWorkflowLocatorNormalizer.mjs +4 -4
- package/src/executor/OpenAPIOperationLocatorNormalizer.cjs +79 -47
- package/src/executor/OpenAPIOperationLocatorNormalizer.mjs +80 -48
- package/src/executor/StepExecutor.cjs +42 -32
- package/src/executor/StepExecutor.mjs +42 -32
- package/src/executor/StepRetryRunner.cjs +1 -1
- package/src/executor/StepRetryRunner.mjs +1 -1
- package/src/executor/StepTransitionInterpreter.cjs +3 -3
- package/src/executor/StepTransitionInterpreter.mjs +3 -3
- package/src/executor/WorkflowCallStack.cjs +2 -2
- package/src/executor/WorkflowCallStack.mjs +2 -2
- package/src/executor/WorkflowExecutor.cjs +17 -16
- package/src/executor/WorkflowExecutor.mjs +17 -16
- package/src/executor/abort.cjs +3 -3
- package/src/executor/abort.mjs +3 -3
- package/src/expression/RuntimeExpressionEvaluator.cjs +5 -5
- package/src/expression/RuntimeExpressionEvaluator.mjs +5 -5
- package/src/index.cjs +0 -7
- package/src/index.mjs +0 -1
- package/src/resolver/OpenAPIOperationParameterResolver.cjs +6 -6
- package/src/resolver/OpenAPIOperationParameterResolver.mjs +6 -6
- package/src/resolver/OutputResolver.cjs +3 -3
- package/src/resolver/OutputResolver.mjs +3 -3
- package/src/resolver/RequestBodyResolver.cjs +6 -6
- package/src/resolver/RequestBodyResolver.mjs +6 -6
- package/src/resolver/WorkflowParameterResolver.cjs +1 -1
- package/src/resolver/WorkflowParameterResolver.mjs +1 -1
- package/types/runner.d.ts +236 -60
- package/src/criterion/CriterionErrorReason.cjs +0 -51
- package/src/criterion/CriterionErrorReason.mjs +0 -46
|
@@ -9057,7 +9057,7 @@ class ActionResolver {
|
|
|
9057
9057
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_2__["default"](`\`${field}\` is present but is not a list`, {
|
|
9058
9058
|
...scope,
|
|
9059
9059
|
target: field,
|
|
9060
|
-
reason:
|
|
9060
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].MalformedActions
|
|
9061
9061
|
});
|
|
9062
9062
|
}
|
|
9063
9063
|
const matched = [];
|
|
@@ -9066,7 +9066,7 @@ class ActionResolver {
|
|
|
9066
9066
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_2__["default"](`\`${field}\` contains an entry that is not a Success/Failure Action Object`, {
|
|
9067
9067
|
...scope,
|
|
9068
9068
|
target: field,
|
|
9069
|
-
reason:
|
|
9069
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].MalformedActionEntry
|
|
9070
9070
|
});
|
|
9071
9071
|
}
|
|
9072
9072
|
if (this.#criteriaMet(action, isCriterionMet, scope)) {
|
|
@@ -9093,7 +9093,7 @@ class ActionResolver {
|
|
|
9093
9093
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_2__["default"]("An action's `criteria` is present but is not a list", {
|
|
9094
9094
|
...scope,
|
|
9095
9095
|
target: 'criteria',
|
|
9096
|
-
reason:
|
|
9096
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].MalformedCriteria
|
|
9097
9097
|
});
|
|
9098
9098
|
}
|
|
9099
9099
|
let met = true;
|
|
@@ -9102,7 +9102,7 @@ class ActionResolver {
|
|
|
9102
9102
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_2__["default"]("An action's `criteria` contains an entry that is not a Criterion Object", {
|
|
9103
9103
|
...scope,
|
|
9104
9104
|
target: 'criteria',
|
|
9105
|
-
reason:
|
|
9105
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].MalformedCriterion
|
|
9106
9106
|
});
|
|
9107
9107
|
}
|
|
9108
9108
|
// every criterion is evaluated, not only up to the first unmet one, so
|
|
@@ -9938,64 +9938,6 @@ const MAX_DOCUMENT_REGISTRY_SIZE = 4;
|
|
|
9938
9938
|
/* harmony export */ ]);
|
|
9939
9939
|
|
|
9940
9940
|
|
|
9941
|
-
/***/ },
|
|
9942
|
-
|
|
9943
|
-
/***/ 94547
|
|
9944
|
-
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
9945
|
-
|
|
9946
|
-
"use strict";
|
|
9947
|
-
__webpack_require__.r(__webpack_exports__);
|
|
9948
|
-
/**
|
|
9949
|
-
* The `reason` a {@link CriterionError} carries.
|
|
9950
|
-
*
|
|
9951
|
-
* Structural reasons mark a criterion that is malformed as written; they are
|
|
9952
|
-
* thrown as a plain `CriterionError`. Evaluation reasons (`InvalidSimple`,
|
|
9953
|
-
* `InvalidRegex`, `InvalidJSONPath`, `InvalidXPath`, `InvalidXPathContext`) mark
|
|
9954
|
-
* a condition that cannot be evaluated; they are thrown as a
|
|
9955
|
-
* {@link CriterionEvaluationError}, which `CriterionEvaluator` turns into an
|
|
9956
|
-
* unmet criterion.
|
|
9957
|
-
* @public
|
|
9958
|
-
*/
|
|
9959
|
-
const CriterionErrorReason = {
|
|
9960
|
-
/** The element is not a Criterion Object. */
|
|
9961
|
-
InvalidCriterion: 'invalid-criterion',
|
|
9962
|
-
/** The `condition` is missing or empty. */
|
|
9963
|
-
MissingCondition: 'missing-condition',
|
|
9964
|
-
/** The `type` is present but unreadable. */
|
|
9965
|
-
InvalidType: 'invalid-type',
|
|
9966
|
-
/** The `type` names no known criterion type. */
|
|
9967
|
-
UnknownType: 'unknown-type',
|
|
9968
|
-
/** The expression type `version` is present but not a string. */
|
|
9969
|
-
InvalidVersion: 'invalid-version',
|
|
9970
|
-
/** The expression type `version` is not the one this runner supports. */
|
|
9971
|
-
UnsupportedVersion: 'unsupported-version',
|
|
9972
|
-
/** The `context` is not a runtime expression. */
|
|
9973
|
-
InvalidContext: 'invalid-context',
|
|
9974
|
-
/** A `regex`, `jsonpath` or `xpath` criterion has no `context`. */
|
|
9975
|
-
MissingContext: 'missing-context',
|
|
9976
|
-
/** The `simple` condition cannot be parsed. */
|
|
9977
|
-
InvalidSimple: 'invalid-simple',
|
|
9978
|
-
/** The `regex` condition is not a valid regular expression. */
|
|
9979
|
-
InvalidRegex: 'invalid-regex',
|
|
9980
|
-
/** The `jsonpath` condition is not a valid JSONPath query. */
|
|
9981
|
-
InvalidJSONPath: 'invalid-jsonpath',
|
|
9982
|
-
/** The `xpath` condition is invalid or fails to evaluate. */
|
|
9983
|
-
InvalidXPath: 'invalid-xpath',
|
|
9984
|
-
/** The resolved `xpath` context is not XML. */
|
|
9985
|
-
InvalidXPathContext: 'invalid-xpath-context'
|
|
9986
|
-
};
|
|
9987
|
-
|
|
9988
|
-
/**
|
|
9989
|
-
* One of the `CriterionErrorReason` values.
|
|
9990
|
-
* @public
|
|
9991
|
-
*/
|
|
9992
|
-
|
|
9993
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CriterionErrorReason);
|
|
9994
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
9995
|
-
/* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
|
|
9996
|
-
/* harmony export */ ]);
|
|
9997
|
-
|
|
9998
|
-
|
|
9999
9941
|
/***/ },
|
|
10000
9942
|
|
|
10001
9943
|
/***/ 98936
|
|
@@ -10009,12 +9951,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10009
9951
|
/* harmony import */ var _swaggerexpert_arazzo_runtime_expression__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(26847);
|
|
10010
9952
|
/* harmony import */ var _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(41233);
|
|
10011
9953
|
/* harmony import */ var _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71731);
|
|
10012
|
-
/* harmony import */ var
|
|
10013
|
-
/* harmony import */ var
|
|
10014
|
-
/* harmony import */ var
|
|
10015
|
-
/* harmony import */ var
|
|
10016
|
-
/* harmony import */ var _XPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(84997);
|
|
10017
|
-
|
|
9954
|
+
/* harmony import */ var _RegexCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(13517);
|
|
9955
|
+
/* harmony import */ var _SimpleCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(41346);
|
|
9956
|
+
/* harmony import */ var _JSONPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(90089);
|
|
9957
|
+
/* harmony import */ var _XPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(84997);
|
|
10018
9958
|
|
|
10019
9959
|
|
|
10020
9960
|
|
|
@@ -10096,10 +10036,10 @@ class CriterionEvaluator {
|
|
|
10096
10036
|
#jsonpath;
|
|
10097
10037
|
#xpath;
|
|
10098
10038
|
constructor(options = {}) {
|
|
10099
|
-
this.#simple = options.simple ?? new
|
|
10100
|
-
this.#regex = options.regex ?? new
|
|
10101
|
-
this.#jsonpath = options.jsonpath ?? new
|
|
10102
|
-
this.#xpath = options.xpath ?? new
|
|
10039
|
+
this.#simple = options.simple ?? new _SimpleCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_7__["default"]();
|
|
10040
|
+
this.#regex = options.regex ?? new _RegexCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
10041
|
+
this.#jsonpath = options.jsonpath ?? new _JSONPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_8__["default"]();
|
|
10042
|
+
this.#xpath = options.xpath ?? new _XPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_9__["default"]();
|
|
10103
10043
|
}
|
|
10104
10044
|
|
|
10105
10045
|
/**
|
|
@@ -10113,7 +10053,7 @@ class CriterionEvaluator {
|
|
|
10113
10053
|
evaluate(criterion, resolve) {
|
|
10114
10054
|
if (!(0,_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_2__.isCriterionElement)(criterion)) {
|
|
10115
10055
|
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"]('Element is not a Criterion Object', {
|
|
10116
|
-
reason:
|
|
10056
|
+
reason: _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].InvalidCriterion
|
|
10117
10057
|
});
|
|
10118
10058
|
}
|
|
10119
10059
|
const condition = (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(criterion.condition) ? (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(criterion.condition) : undefined;
|
|
@@ -10121,7 +10061,7 @@ class CriterionEvaluator {
|
|
|
10121
10061
|
// (e.g. an empty regex would match unconditionally), so reject it too.
|
|
10122
10062
|
if (condition === undefined || condition === '') {
|
|
10123
10063
|
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"]('Criterion is missing a "condition"', {
|
|
10124
|
-
reason:
|
|
10064
|
+
reason: _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].MissingCondition
|
|
10125
10065
|
});
|
|
10126
10066
|
}
|
|
10127
10067
|
const type = this.#resolveType(criterion);
|
|
@@ -10152,7 +10092,7 @@ class CriterionEvaluator {
|
|
|
10152
10092
|
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"](`Unknown criterion type "${type}"`, {
|
|
10153
10093
|
condition,
|
|
10154
10094
|
type,
|
|
10155
|
-
reason:
|
|
10095
|
+
reason: _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].UnknownType
|
|
10156
10096
|
});
|
|
10157
10097
|
}
|
|
10158
10098
|
} catch (error) {
|
|
@@ -10183,7 +10123,7 @@ class CriterionEvaluator {
|
|
|
10183
10123
|
}
|
|
10184
10124
|
if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(type)) return (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(type);
|
|
10185
10125
|
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"]('Criterion has an invalid "type"', {
|
|
10186
|
-
reason:
|
|
10126
|
+
reason: _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].InvalidType
|
|
10187
10127
|
});
|
|
10188
10128
|
}
|
|
10189
10129
|
|
|
@@ -10203,7 +10143,7 @@ class CriterionEvaluator {
|
|
|
10203
10143
|
return (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(type.version);
|
|
10204
10144
|
}
|
|
10205
10145
|
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"]('Criterion has an invalid expression type "version"', {
|
|
10206
|
-
reason:
|
|
10146
|
+
reason: _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].InvalidVersion
|
|
10207
10147
|
});
|
|
10208
10148
|
}
|
|
10209
10149
|
|
|
@@ -10218,7 +10158,7 @@ class CriterionEvaluator {
|
|
|
10218
10158
|
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"](`Unsupported ${type} version "${version}" (only ${supported})`, {
|
|
10219
10159
|
condition,
|
|
10220
10160
|
type,
|
|
10221
|
-
reason:
|
|
10161
|
+
reason: _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].UnsupportedVersion
|
|
10222
10162
|
});
|
|
10223
10163
|
}
|
|
10224
10164
|
}
|
|
@@ -10236,7 +10176,7 @@ class CriterionEvaluator {
|
|
|
10236
10176
|
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(context) || !(0,_swaggerexpert_arazzo_runtime_expression__WEBPACK_IMPORTED_MODULE_3__.test)((0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(context))) {
|
|
10237
10177
|
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"]('Criterion has a "context" that is not a valid runtime expression', {
|
|
10238
10178
|
type,
|
|
10239
|
-
reason:
|
|
10179
|
+
reason: _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].InvalidContext
|
|
10240
10180
|
});
|
|
10241
10181
|
}
|
|
10242
10182
|
}
|
|
@@ -10251,7 +10191,7 @@ class CriterionEvaluator {
|
|
|
10251
10191
|
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(criterion.context)) {
|
|
10252
10192
|
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"](`Criterion type "${type}" requires a "context"`, {
|
|
10253
10193
|
type,
|
|
10254
|
-
reason:
|
|
10194
|
+
reason: _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].MissingContext
|
|
10255
10195
|
});
|
|
10256
10196
|
}
|
|
10257
10197
|
return resolve((0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(criterion.context));
|
|
@@ -10272,8 +10212,6 @@ class CriterionEvaluator {
|
|
|
10272
10212
|
__webpack_require__.r(__webpack_exports__);
|
|
10273
10213
|
/* harmony import */ var _swaggerexpert_jsonpath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(84637);
|
|
10274
10214
|
/* harmony import */ var _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71731);
|
|
10275
|
-
/* harmony import */ var _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(94547);
|
|
10276
|
-
|
|
10277
10215
|
|
|
10278
10216
|
|
|
10279
10217
|
|
|
@@ -10310,7 +10248,7 @@ class JSONPathCriterionEvaluator {
|
|
|
10310
10248
|
cause: error,
|
|
10311
10249
|
condition,
|
|
10312
10250
|
type: 'jsonpath',
|
|
10313
|
-
reason:
|
|
10251
|
+
reason: _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_1__["default"].InvalidJSONPath
|
|
10314
10252
|
});
|
|
10315
10253
|
}
|
|
10316
10254
|
throw error;
|
|
@@ -10331,8 +10269,6 @@ class JSONPathCriterionEvaluator {
|
|
|
10331
10269
|
"use strict";
|
|
10332
10270
|
__webpack_require__.r(__webpack_exports__);
|
|
10333
10271
|
/* harmony import */ var _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71731);
|
|
10334
|
-
/* harmony import */ var _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94547);
|
|
10335
|
-
|
|
10336
10272
|
|
|
10337
10273
|
|
|
10338
10274
|
/**
|
|
@@ -10377,7 +10313,7 @@ class RegexCriterionEvaluator {
|
|
|
10377
10313
|
cause: error,
|
|
10378
10314
|
condition,
|
|
10379
10315
|
type: 'regex',
|
|
10380
|
-
reason:
|
|
10316
|
+
reason: _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_0__["default"].InvalidRegex
|
|
10381
10317
|
});
|
|
10382
10318
|
}
|
|
10383
10319
|
return regExp.test(this.#stringify(context));
|
|
@@ -10410,8 +10346,6 @@ class RegexCriterionEvaluator {
|
|
|
10410
10346
|
__webpack_require__.r(__webpack_exports__);
|
|
10411
10347
|
/* harmony import */ var _swaggerexpert_arazzo_criterion__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88006);
|
|
10412
10348
|
/* harmony import */ var _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71731);
|
|
10413
|
-
/* harmony import */ var _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(94547);
|
|
10414
|
-
|
|
10415
10349
|
|
|
10416
10350
|
|
|
10417
10351
|
/**
|
|
@@ -10447,7 +10381,7 @@ class SimpleCriterionEvaluator {
|
|
|
10447
10381
|
cause: error,
|
|
10448
10382
|
condition,
|
|
10449
10383
|
type: 'simple',
|
|
10450
|
-
reason:
|
|
10384
|
+
reason: _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_1__["default"].InvalidSimple
|
|
10451
10385
|
});
|
|
10452
10386
|
}
|
|
10453
10387
|
throw error;
|
|
@@ -10470,13 +10404,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10470
10404
|
/* harmony import */ var fontoxpath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38406);
|
|
10471
10405
|
/* harmony import */ var _xmldom_xmldom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17937);
|
|
10472
10406
|
/* harmony import */ var _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71731);
|
|
10473
|
-
/* harmony import */ var _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(94547);
|
|
10474
10407
|
// fontoxpath is CommonJS and its named exports are not statically resolvable
|
|
10475
10408
|
// under ESM, so import the default and destructure.
|
|
10476
10409
|
|
|
10477
10410
|
|
|
10478
10411
|
|
|
10479
|
-
|
|
10480
10412
|
const {
|
|
10481
10413
|
evaluateXPathToBoolean,
|
|
10482
10414
|
evaluateXPath
|
|
@@ -10520,7 +10452,7 @@ class XPathCriterionEvaluator {
|
|
|
10520
10452
|
cause: error,
|
|
10521
10453
|
condition,
|
|
10522
10454
|
type: 'xpath',
|
|
10523
|
-
reason:
|
|
10455
|
+
reason: _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].InvalidXPath
|
|
10524
10456
|
});
|
|
10525
10457
|
}
|
|
10526
10458
|
}
|
|
@@ -10536,7 +10468,7 @@ class XPathCriterionEvaluator {
|
|
|
10536
10468
|
throw new _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_2__["default"]('xpath criterion context is not XML', {
|
|
10537
10469
|
condition,
|
|
10538
10470
|
type: 'xpath',
|
|
10539
|
-
reason:
|
|
10471
|
+
reason: _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].InvalidXPathContext
|
|
10540
10472
|
});
|
|
10541
10473
|
}
|
|
10542
10474
|
|
|
@@ -10556,7 +10488,7 @@ class XPathCriterionEvaluator {
|
|
|
10556
10488
|
cause: parseError,
|
|
10557
10489
|
condition,
|
|
10558
10490
|
type: 'xpath',
|
|
10559
|
-
reason:
|
|
10491
|
+
reason: _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].InvalidXPathContext
|
|
10560
10492
|
});
|
|
10561
10493
|
}
|
|
10562
10494
|
return document;
|
|
@@ -10566,7 +10498,7 @@ class XPathCriterionEvaluator {
|
|
|
10566
10498
|
cause: error,
|
|
10567
10499
|
condition,
|
|
10568
10500
|
type: 'xpath',
|
|
10569
|
-
reason:
|
|
10501
|
+
reason: _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].InvalidXPathContext
|
|
10570
10502
|
});
|
|
10571
10503
|
}
|
|
10572
10504
|
}
|
|
@@ -11053,8 +10985,60 @@ class ClientError extends _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__["de
|
|
|
11053
10985
|
__webpack_require__.r(__webpack_exports__);
|
|
11054
10986
|
/* harmony import */ var _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23949);
|
|
11055
10987
|
|
|
11056
|
-
|
|
11057
|
-
|
|
10988
|
+
|
|
10989
|
+
/**
|
|
10990
|
+
* Carries a `reason`, one of the class's static reason fields.
|
|
10991
|
+
*
|
|
10992
|
+
* Every static on this class is a reason: {@link CriterionErrorReason} is
|
|
10993
|
+
* derived from the class's own statics, so a non-reason static would join the
|
|
10994
|
+
* union.
|
|
10995
|
+
* @public
|
|
10996
|
+
*/
|
|
10997
|
+
class CriterionError extends _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
10998
|
+
/** The element is not a Criterion Object. */
|
|
10999
|
+
static InvalidCriterion = 'invalid-criterion';
|
|
11000
|
+
/** The `condition` is missing or empty. */
|
|
11001
|
+
static MissingCondition = 'missing-condition';
|
|
11002
|
+
/** The `type` is present but unreadable. */
|
|
11003
|
+
static InvalidType = 'invalid-type';
|
|
11004
|
+
/** The `type` names no known criterion type. */
|
|
11005
|
+
static UnknownType = 'unknown-type';
|
|
11006
|
+
/** The expression type `version` is present but not a string. */
|
|
11007
|
+
static InvalidVersion = 'invalid-version';
|
|
11008
|
+
/** The expression type `version` is not the one this runner supports. */
|
|
11009
|
+
static UnsupportedVersion = 'unsupported-version';
|
|
11010
|
+
/** The `context` is not a runtime expression. */
|
|
11011
|
+
static InvalidContext = 'invalid-context';
|
|
11012
|
+
/** A `regex`, `jsonpath` or `xpath` criterion has no `context`. */
|
|
11013
|
+
static MissingContext = 'missing-context';
|
|
11014
|
+
/** The `simple` condition cannot be parsed. */
|
|
11015
|
+
static InvalidSimple = 'invalid-simple';
|
|
11016
|
+
/** The `regex` condition is not a valid regular expression. */
|
|
11017
|
+
static InvalidRegex = 'invalid-regex';
|
|
11018
|
+
/** The `jsonpath` condition is not a valid JSONPath query. */
|
|
11019
|
+
static InvalidJSONPath = 'invalid-jsonpath';
|
|
11020
|
+
/** The `xpath` condition is invalid or fails to evaluate. */
|
|
11021
|
+
static InvalidXPath = 'invalid-xpath';
|
|
11022
|
+
/** The resolved `xpath` context is not XML. */
|
|
11023
|
+
static InvalidXPathContext = 'invalid-xpath-context';
|
|
11024
|
+
constructor(message, options) {
|
|
11025
|
+
super(message, options);
|
|
11026
|
+
}
|
|
11027
|
+
}
|
|
11028
|
+
|
|
11029
|
+
/**
|
|
11030
|
+
* One of the reasons a {@link CriterionError} carries: a `CriterionError`
|
|
11031
|
+
* static such as `CriterionError.InvalidRegex`.
|
|
11032
|
+
*
|
|
11033
|
+
* Structural reasons mark a criterion that is malformed as written; they are
|
|
11034
|
+
* thrown as a plain `CriterionError`. Evaluation reasons (`InvalidSimple`,
|
|
11035
|
+
* `InvalidRegex`, `InvalidJSONPath`, `InvalidXPath`, `InvalidXPathContext`) mark
|
|
11036
|
+
* a condition that cannot be evaluated; they are thrown as a
|
|
11037
|
+
* {@link CriterionEvaluationError}, which `CriterionEvaluator` turns into an
|
|
11038
|
+
* unmet criterion.
|
|
11039
|
+
* @public
|
|
11040
|
+
*/
|
|
11041
|
+
|
|
11058
11042
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CriterionError);
|
|
11059
11043
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
11060
11044
|
/* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
|
|
@@ -11114,8 +11098,80 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11114
11098
|
/* harmony import */ var _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23949);
|
|
11115
11099
|
|
|
11116
11100
|
|
|
11117
|
-
/**
|
|
11118
|
-
class
|
|
11101
|
+
/**
|
|
11102
|
+
* Carries a `reason`, one of the class's static reason fields.
|
|
11103
|
+
*
|
|
11104
|
+
* Every static on this class is a reason: {@link ExecutionErrorReason} is
|
|
11105
|
+
* derived from the class's own statics, so a non-reason static would join the
|
|
11106
|
+
* union.
|
|
11107
|
+
* @public
|
|
11108
|
+
*/
|
|
11109
|
+
class ExecutionError extends _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
11110
|
+
/** The run was cancelled through its `AbortSignal`; the signal's reason is the `cause`. */
|
|
11111
|
+
static Aborted = 'aborted';
|
|
11112
|
+
/** A step or a `goto`/`retry` action declares more than one mutually exclusive target. */
|
|
11113
|
+
static AmbiguousTarget = 'ambiguous-target';
|
|
11114
|
+
/** The `dependsOn` edges alone form a cycle between workflows. */
|
|
11115
|
+
static DependsOnCycle = 'dependsOn-cycle';
|
|
11116
|
+
/** A `goto` action declares neither a `stepId` nor a `workflowId`. */
|
|
11117
|
+
static GotoTargetMissing = 'goto-target-missing';
|
|
11118
|
+
/** A `goto` action's `stepId` names no step in the workflow. */
|
|
11119
|
+
static GotoTargetNotFound = 'goto-target-not-found';
|
|
11120
|
+
/** An `operationId` or `operationPath` is not a valid operation reference. */
|
|
11121
|
+
static InvalidOperationReference = 'invalid-operation-reference';
|
|
11122
|
+
/** A `workflowId` is not a valid `$sourceDescriptions.{name}.{workflowId}` expression. */
|
|
11123
|
+
static InvalidWorkflowReference = 'invalid-workflow-reference';
|
|
11124
|
+
/** A workflow's `dependsOn` is not a list or holds a non-string entry. */
|
|
11125
|
+
static MalformedDependsOn = 'malformed-dependsOn';
|
|
11126
|
+
/** A workflow's `steps` is not a list or holds an entry that is not a Step Object. */
|
|
11127
|
+
static MalformedSteps = 'malformed-steps';
|
|
11128
|
+
/** A step run as an operation declares neither an `operationId` nor an `operationPath`. */
|
|
11129
|
+
static MissingOperation = 'missing-operation';
|
|
11130
|
+
/** An operation reference locates no operation in its OpenAPI source description. */
|
|
11131
|
+
static OperationNotFound = 'operation-not-found';
|
|
11132
|
+
/** A `retry` action references a step or workflow, but no run reference was given to run it. */
|
|
11133
|
+
static RetryReferenceUnsupported = 'retry-reference-unsupported';
|
|
11134
|
+
/** A `retry` action's `stepId` names no step in the workflow. */
|
|
11135
|
+
static RetryTargetNotFound = 'retry-target-not-found';
|
|
11136
|
+
/** A workflow reference names a source description that is not an Arazzo document. */
|
|
11137
|
+
static SourceDescriptionNotArazzo = 'source-description-not-arazzo';
|
|
11138
|
+
/** A reference names a source description the Arazzo document does not define. */
|
|
11139
|
+
static SourceDescriptionNotFound = 'source-description-not-found';
|
|
11140
|
+
/** An operation reference names a source description that is not an OpenAPI document. */
|
|
11141
|
+
static SourceDescriptionNotOpenAPI = 'source-description-not-openapi';
|
|
11142
|
+
/** A workflow exceeded its budget of step attempts. */
|
|
11143
|
+
static StepBudget = 'step-budget';
|
|
11144
|
+
/** An action declares a `type` other than `end`, `goto` or `retry`. */
|
|
11145
|
+
static UnknownActionType = 'unknown-action-type';
|
|
11146
|
+
/** `execute` received an option it does not know. */
|
|
11147
|
+
static UnknownExecuteOption = 'unknown-execute-option';
|
|
11148
|
+
/** A step produced a transition the workflow executor does not recognize. */
|
|
11149
|
+
static UnknownTransitionKind = 'unknown-transition-kind';
|
|
11150
|
+
/** A sub-workflow call (alone or together with `dependsOn`) forms a cycle between workflows. */
|
|
11151
|
+
static WorkflowCycle = 'workflow-cycle';
|
|
11152
|
+
/** Workflows nest deeper than the configured limit. */
|
|
11153
|
+
static WorkflowDepth = 'workflow-depth';
|
|
11154
|
+
/** A workflow reference names a workflow the Arazzo document does not define. */
|
|
11155
|
+
static WorkflowNotFound = 'workflow-not-found';
|
|
11156
|
+
/** A step that targets a workflow was handed to the step executor, which runs operations only. */
|
|
11157
|
+
static WorkflowStep = 'workflow-step';
|
|
11158
|
+
|
|
11159
|
+
/**
|
|
11160
|
+
* The chain of workflowIds the error concerns — the loop A → B → A for a
|
|
11161
|
+
* cycle, or the call chain in progress when a budget ran out.
|
|
11162
|
+
*/
|
|
11163
|
+
|
|
11164
|
+
constructor(message, options) {
|
|
11165
|
+
super(message, options);
|
|
11166
|
+
}
|
|
11167
|
+
}
|
|
11168
|
+
|
|
11169
|
+
/**
|
|
11170
|
+
* One of the reasons an {@link ExecutionError} carries: an `ExecutionError`
|
|
11171
|
+
* static such as `ExecutionError.OperationNotFound`.
|
|
11172
|
+
* @public
|
|
11173
|
+
*/
|
|
11174
|
+
|
|
11119
11175
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ExecutionError);
|
|
11120
11176
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
11121
11177
|
/* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
|
|
@@ -11186,8 +11242,60 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11186
11242
|
/* harmony import */ var _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23949);
|
|
11187
11243
|
|
|
11188
11244
|
|
|
11189
|
-
/**
|
|
11190
|
-
class
|
|
11245
|
+
/**
|
|
11246
|
+
* Carries a `reason`, one of the class's static reason fields.
|
|
11247
|
+
*
|
|
11248
|
+
* Every static on this class is a reason: {@link ResolverErrorReason} is
|
|
11249
|
+
* derived from the class's own statics, so a non-reason static would join the
|
|
11250
|
+
* union.
|
|
11251
|
+
* @public
|
|
11252
|
+
*/
|
|
11253
|
+
class ResolverError extends _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
11254
|
+
/** A parameter cannot be delivered unambiguously at its location. */
|
|
11255
|
+
static AmbiguousDelivery = 'ambiguous-delivery';
|
|
11256
|
+
/** An output or a request body payload holds a value that is not a valid runtime expression. */
|
|
11257
|
+
static InvalidExpression = 'invalid-expression';
|
|
11258
|
+
/** A parameter's location (`in`) is not one of the known locations. */
|
|
11259
|
+
static InvalidLocation = 'invalid-location';
|
|
11260
|
+
/** An `onSuccess`/`onFailure` list holds an entry that is not a Success/Failure Action Object. */
|
|
11261
|
+
static MalformedActionEntry = 'malformed-action-entry';
|
|
11262
|
+
/** A step's `onSuccess` or `onFailure` is present but is not a list. */
|
|
11263
|
+
static MalformedActions = 'malformed-actions';
|
|
11264
|
+
/** A step's `successCriteria` or an action's `criteria` is present but is not a list. */
|
|
11265
|
+
static MalformedCriteria = 'malformed-criteria';
|
|
11266
|
+
/** A criteria list holds an entry that is not a Criterion Object. */
|
|
11267
|
+
static MalformedCriterion = 'malformed-criterion';
|
|
11268
|
+
/** A parameter's location (`in`) is not a string. */
|
|
11269
|
+
static MalformedLocation = 'malformed-location';
|
|
11270
|
+
/** A step's or workflow's `outputs` is present but is not a map. */
|
|
11271
|
+
static MalformedOutputs = 'malformed-outputs';
|
|
11272
|
+
/** `parameters` is present but is not a list. */
|
|
11273
|
+
static MalformedParameters = 'malformed-parameters';
|
|
11274
|
+
/** `requestBody.replacements` is present but is not a list. */
|
|
11275
|
+
static MalformedReplacements = 'malformed-replacements';
|
|
11276
|
+
/** `requestBody` is present but is not a map. */
|
|
11277
|
+
static MalformedRequestBody = 'malformed-request-body';
|
|
11278
|
+
/** A parameter of a step that targets an operation declares no location (`in`). */
|
|
11279
|
+
static MissingLocation = 'missing-location';
|
|
11280
|
+
/** A parameter has a missing or non-string `name`. */
|
|
11281
|
+
static MissingName = 'missing-name';
|
|
11282
|
+
/** A runtime expression in the request body did not resolve. */
|
|
11283
|
+
static UnresolvedExpression = 'unresolved-expression';
|
|
11284
|
+
/** A `requestBody` replacement target does not resolve in the payload. */
|
|
11285
|
+
static UnresolvedTarget = 'unresolved-target';
|
|
11286
|
+
/** A `requestBody` replacement target is not a JSON Pointer. */
|
|
11287
|
+
static UnsupportedTarget = 'unsupported-target';
|
|
11288
|
+
constructor(message, options) {
|
|
11289
|
+
super(message, options);
|
|
11290
|
+
}
|
|
11291
|
+
}
|
|
11292
|
+
|
|
11293
|
+
/**
|
|
11294
|
+
* One of the reasons a {@link ResolverError} carries: a `ResolverError`
|
|
11295
|
+
* static such as `ResolverError.MalformedParameters`.
|
|
11296
|
+
* @public
|
|
11297
|
+
*/
|
|
11298
|
+
|
|
11191
11299
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ResolverError);
|
|
11192
11300
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
11193
11301
|
/* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
|
|
@@ -11204,8 +11312,39 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11204
11312
|
/* harmony import */ var _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23949);
|
|
11205
11313
|
|
|
11206
11314
|
|
|
11207
|
-
/**
|
|
11208
|
-
class
|
|
11315
|
+
/**
|
|
11316
|
+
* Carries a `reason`, one of the class's static reason fields.
|
|
11317
|
+
*
|
|
11318
|
+
* Every static on this class is a reason: {@link RuntimeExpressionErrorReason}
|
|
11319
|
+
* is derived from the class's own statics, so a non-reason static would join
|
|
11320
|
+
* the union.
|
|
11321
|
+
* @public
|
|
11322
|
+
*/
|
|
11323
|
+
class RuntimeExpressionError extends _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
11324
|
+
/** The expression is not a valid runtime expression. */
|
|
11325
|
+
static InvalidExpression = 'invalid-expression';
|
|
11326
|
+
/** The runtime expression parser failed on the expression. */
|
|
11327
|
+
static ParseError = 'parse-error';
|
|
11328
|
+
/**
|
|
11329
|
+
* The expression reads HTTP data (`$statusCode`, `$url`, `$method`, `$request`,
|
|
11330
|
+
* `$response`) in a step that calls a workflow and so made no HTTP call.
|
|
11331
|
+
*/
|
|
11332
|
+
static UnavailableExpression = 'unavailable-expression';
|
|
11333
|
+
/** The expression could not be resolved against the evaluation context. */
|
|
11334
|
+
static UnresolvedReference = 'unresolved-reference';
|
|
11335
|
+
/** The parsed expression contains a node the evaluator does not support. */
|
|
11336
|
+
static UnsupportedNode = 'unsupported-node';
|
|
11337
|
+
constructor(message, options) {
|
|
11338
|
+
super(message, options);
|
|
11339
|
+
}
|
|
11340
|
+
}
|
|
11341
|
+
|
|
11342
|
+
/**
|
|
11343
|
+
* One of the reasons a {@link RuntimeExpressionError} carries: a
|
|
11344
|
+
* `RuntimeExpressionError` static such as `RuntimeExpressionError.ParseError`.
|
|
11345
|
+
* @public
|
|
11346
|
+
*/
|
|
11347
|
+
|
|
11209
11348
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RuntimeExpressionError);
|
|
11210
11349
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
11211
11350
|
/* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
|
|
@@ -11311,7 +11450,7 @@ class ArazzoWorkflowLocatorNormalizer extends _SourceDescriptionsLocatorNormaliz
|
|
|
11311
11450
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_1__["default"](`workflow reference "${reference}" in workflow "${context.workflowId}" names workflow "${locator.workflowId}", which the Arazzo document at "${locator.document.uri}" does not define`, {
|
|
11312
11451
|
workflowId: context.workflowId,
|
|
11313
11452
|
stepId: context.stepId,
|
|
11314
|
-
reason:
|
|
11453
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_1__["default"].WorkflowNotFound
|
|
11315
11454
|
});
|
|
11316
11455
|
}
|
|
11317
11456
|
return locator;
|
|
@@ -11340,7 +11479,7 @@ class ArazzoWorkflowLocatorNormalizer extends _SourceDescriptionsLocatorNormaliz
|
|
|
11340
11479
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_1__["default"](`workflow reference "${reference}" in workflow "${workflowId}" is not a $sourceDescriptions.{name}.{workflowId} expression`, {
|
|
11341
11480
|
workflowId,
|
|
11342
11481
|
stepId,
|
|
11343
|
-
reason:
|
|
11482
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_1__["default"].InvalidWorkflowReference
|
|
11344
11483
|
});
|
|
11345
11484
|
}
|
|
11346
11485
|
return {
|
|
@@ -11374,7 +11513,7 @@ class ArazzoWorkflowLocatorNormalizer extends _SourceDescriptionsLocatorNormaliz
|
|
|
11374
11513
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_1__["default"](`workflow reference "${parsed.reference}" in workflow "${workflowId}" names source description "${parsed.sourceName}", which the Arazzo document at "${document.uri}" does not define`, {
|
|
11375
11514
|
workflowId,
|
|
11376
11515
|
stepId,
|
|
11377
|
-
reason:
|
|
11516
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_1__["default"].SourceDescriptionNotFound
|
|
11378
11517
|
});
|
|
11379
11518
|
}
|
|
11380
11519
|
const source = await this.registry.acquire(uri);
|
|
@@ -11382,7 +11521,7 @@ class ArazzoWorkflowLocatorNormalizer extends _SourceDescriptionsLocatorNormaliz
|
|
|
11382
11521
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_1__["default"](`workflow reference "${parsed.reference}" in workflow "${workflowId}" names source description "${parsed.sourceName}" at "${uri}", which is not an Arazzo document`, {
|
|
11383
11522
|
workflowId,
|
|
11384
11523
|
stepId,
|
|
11385
|
-
reason:
|
|
11524
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_1__["default"].SourceDescriptionNotArazzo
|
|
11386
11525
|
});
|
|
11387
11526
|
}
|
|
11388
11527
|
return {
|
|
@@ -12031,8 +12170,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12031
12170
|
/* harmony import */ var _speclynx_apidom_reference_configuration_empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(30698);
|
|
12032
12171
|
/* harmony import */ var _document_OpenAPIDocument_ts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(35043);
|
|
12033
12172
|
/* harmony import */ var _expression_RuntimeExpressionEvaluator_ts__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(77370);
|
|
12034
|
-
/* harmony import */ var
|
|
12035
|
-
/* harmony import */ var
|
|
12173
|
+
/* harmony import */ var _extractor_OpenAPIOperationExtractor_ts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(57658);
|
|
12174
|
+
/* harmony import */ var _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(17658);
|
|
12175
|
+
/* harmony import */ var _SourceDescriptionsLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(83461);
|
|
12176
|
+
|
|
12036
12177
|
|
|
12037
12178
|
|
|
12038
12179
|
|
|
@@ -12063,7 +12204,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12063
12204
|
* `$sourceDescriptions.{name}.{operationId}`. Per the Arazzo Specification, a
|
|
12064
12205
|
* plain name is only valid when a single (non-arazzo) source description is
|
|
12065
12206
|
* defined; multiple sources require the expression form. A plain name is
|
|
12066
|
-
* therefore
|
|
12207
|
+
* therefore looked up in the first OpenAPI source description only.
|
|
12067
12208
|
* - `operationPath` embeds a `{$sourceDescriptions.{name}.url}` runtime
|
|
12068
12209
|
* expression followed by a JSON Pointer to the operation.
|
|
12069
12210
|
*
|
|
@@ -12071,21 +12212,31 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12071
12212
|
* or wrong); a source is classified by what it actually parses to. The
|
|
12072
12213
|
* normalizer acquires the referenced source documents from the registry on
|
|
12073
12214
|
* demand.
|
|
12215
|
+
*
|
|
12216
|
+
* A reference that cannot be resolved throws {@link ExecutionError}, attributed
|
|
12217
|
+
* to the referencing step when a {@link StepScope} is given:
|
|
12218
|
+
* `operation-not-found` when no operation answers it,
|
|
12219
|
+
* `source-description-not-found` for a source name the document does not
|
|
12220
|
+
* define, `source-description-not-openapi` for a source that is not an OpenAPI
|
|
12221
|
+
* document, and `invalid-operation-reference` for a reference malformed as
|
|
12222
|
+
* written. Every returned locator names an existing operation.
|
|
12074
12223
|
* @public
|
|
12075
12224
|
*/
|
|
12076
|
-
class OpenAPIOperationLocatorNormalizer extends
|
|
12225
|
+
class OpenAPIOperationLocatorNormalizer extends _SourceDescriptionsLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_7__["default"] {
|
|
12226
|
+
#extractor = new _extractor_OpenAPIOperationExtractor_ts__WEBPACK_IMPORTED_MODULE_5__["default"]();
|
|
12227
|
+
|
|
12077
12228
|
/**
|
|
12078
12229
|
* Normalizes a plain or expression `operationId` to a canonical locator.
|
|
12079
12230
|
*
|
|
12080
12231
|
* A whole runtime expression (`$sourceDescriptions.{name}.{operationId}`) is
|
|
12081
|
-
* resolved against its named source; a plain name is
|
|
12082
|
-
*
|
|
12232
|
+
* resolved against its named source; a plain name is looked up in the first
|
|
12233
|
+
* OpenAPI source description only.
|
|
12083
12234
|
*/
|
|
12084
|
-
async normalizeOperationId(operationId, document) {
|
|
12235
|
+
async normalizeOperationId(operationId, document, scope) {
|
|
12085
12236
|
if ((0,_swaggerexpert_arazzo_runtime_expression__WEBPACK_IMPORTED_MODULE_0__.test)(operationId)) {
|
|
12086
|
-
return this.#resolveSourced(operationId, document);
|
|
12237
|
+
return this.#resolveSourced(operationId, document, scope);
|
|
12087
12238
|
}
|
|
12088
|
-
return this.#resolvePlainOperationId(operationId, document);
|
|
12239
|
+
return this.#resolvePlainOperationId(operationId, document, scope);
|
|
12089
12240
|
}
|
|
12090
12241
|
|
|
12091
12242
|
/**
|
|
@@ -12101,10 +12252,21 @@ class OpenAPIOperationLocatorNormalizer extends _SourceDescriptionsLocatorNormal
|
|
|
12101
12252
|
* The runner only needs a URL and a JSON Pointer, so it does not enforce that
|
|
12102
12253
|
* the source description is identified by a runtime expression rather than a
|
|
12103
12254
|
* literal URL (a literal URL interpolates to itself and still resolves) — that
|
|
12104
|
-
* is a conformance concern for the validator.
|
|
12105
|
-
* not
|
|
12106
|
-
|
|
12107
|
-
|
|
12255
|
+
* is a conformance concern for the validator. A source name the document does
|
|
12256
|
+
* not define is detected before interpolation, so it is reported as such
|
|
12257
|
+
* rather than as the empty URL it would interpolate to; the JSON Pointer must
|
|
12258
|
+
* locate an operation in the acquired OpenAPI document.
|
|
12259
|
+
*/
|
|
12260
|
+
async normalizeOperationPath(operationPath, document, scope) {
|
|
12261
|
+
for (const expression of (0,_swaggerexpert_arazzo_runtime_expression__WEBPACK_IMPORTED_MODULE_0__.extract)(operationPath) ?? []) {
|
|
12262
|
+
const parsed = this.parseSourceDescriptionsExpression(expression);
|
|
12263
|
+
if (parsed !== undefined && document.resolveSourceDescriptionURI(parsed.sourceName) === undefined) {
|
|
12264
|
+
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`operationPath "${operationPath}" names source description "${parsed.sourceName}", which the Arazzo document at "${document.uri}" does not define`, {
|
|
12265
|
+
...scope,
|
|
12266
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].SourceDescriptionNotFound
|
|
12267
|
+
});
|
|
12268
|
+
}
|
|
12269
|
+
}
|
|
12108
12270
|
const evaluator = new _expression_RuntimeExpressionEvaluator_ts__WEBPACK_IMPORTED_MODULE_4__["default"]({}, {
|
|
12109
12271
|
strict: false,
|
|
12110
12272
|
document,
|
|
@@ -12113,23 +12275,35 @@ class OpenAPIOperationLocatorNormalizer extends _SourceDescriptionsLocatorNormal
|
|
|
12113
12275
|
const uriReference = evaluator.interpolate(operationPath);
|
|
12114
12276
|
const documentURI = _speclynx_apidom_reference_configuration_empty__WEBPACK_IMPORTED_MODULE_2__.sanitize(_speclynx_apidom_reference_configuration_empty__WEBPACK_IMPORTED_MODULE_2__.stripHash(uriReference));
|
|
12115
12277
|
if (documentURI === '') {
|
|
12116
|
-
throw new
|
|
12117
|
-
|
|
12118
|
-
|
|
12278
|
+
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`operationPath "${operationPath}" does not resolve to a source description URL`, {
|
|
12279
|
+
...scope,
|
|
12280
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].InvalidOperationReference
|
|
12119
12281
|
});
|
|
12120
12282
|
}
|
|
12121
12283
|
const jsonPointer = _swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_1__.URIFragmentIdentifier.fromURIReference(uriReference);
|
|
12122
12284
|
if (!(0,_swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_1__.testJSONPointer)(jsonPointer)) {
|
|
12123
|
-
throw new
|
|
12124
|
-
|
|
12125
|
-
|
|
12285
|
+
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`operationPath "${operationPath}" has an invalid JSON Pointer`, {
|
|
12286
|
+
...scope,
|
|
12287
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].InvalidOperationReference
|
|
12126
12288
|
});
|
|
12127
12289
|
}
|
|
12128
12290
|
const source = await this.registry.acquire(documentURI);
|
|
12129
12291
|
if (!_document_OpenAPIDocument_ts__WEBPACK_IMPORTED_MODULE_3__["default"].is(source)) {
|
|
12130
|
-
throw new
|
|
12131
|
-
|
|
12132
|
-
|
|
12292
|
+
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`operationPath "${operationPath}" references "${documentURI}", which is not an OpenAPI document`, {
|
|
12293
|
+
...scope,
|
|
12294
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].SourceDescriptionNotOpenAPI
|
|
12295
|
+
});
|
|
12296
|
+
}
|
|
12297
|
+
|
|
12298
|
+
// the extractor owns locating an operation by pointer; its failure here
|
|
12299
|
+
// means the pointer names no operation in this document.
|
|
12300
|
+
try {
|
|
12301
|
+
this.#extractor.extractByPointer(source, jsonPointer);
|
|
12302
|
+
} catch (error) {
|
|
12303
|
+
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`operationPath "${operationPath}" does not locate an operation in the OpenAPI document at "${source.uri}"`, {
|
|
12304
|
+
cause: error,
|
|
12305
|
+
...scope,
|
|
12306
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].OperationNotFound
|
|
12133
12307
|
});
|
|
12134
12308
|
}
|
|
12135
12309
|
return {
|
|
@@ -12137,31 +12311,24 @@ class OpenAPIOperationLocatorNormalizer extends _SourceDescriptionsLocatorNormal
|
|
|
12137
12311
|
jsonPointer
|
|
12138
12312
|
};
|
|
12139
12313
|
}
|
|
12140
|
-
|
|
12141
|
-
/**
|
|
12142
|
-
* Parses a `$sourceDescriptions.{name}.{reference}` expression, asserting
|
|
12143
|
-
* it is a source-descriptions expression.
|
|
12144
|
-
*/
|
|
12145
|
-
#parseSourceDescriptionsExpression(expression) {
|
|
12314
|
+
async #resolveSourced(expression, document, scope) {
|
|
12146
12315
|
const parsed = this.parseSourceDescriptionsExpression(expression);
|
|
12147
12316
|
if (parsed === undefined) {
|
|
12148
|
-
throw new
|
|
12149
|
-
|
|
12317
|
+
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`operationId "${expression}" is not a $sourceDescriptions.{name}.{operationId} expression`, {
|
|
12318
|
+
...scope,
|
|
12319
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].InvalidOperationReference
|
|
12150
12320
|
});
|
|
12151
12321
|
}
|
|
12152
|
-
return parsed;
|
|
12153
|
-
}
|
|
12154
|
-
async #resolveSourced(expression, document) {
|
|
12155
12322
|
const {
|
|
12156
12323
|
sourceName,
|
|
12157
12324
|
reference: operationId
|
|
12158
|
-
} =
|
|
12159
|
-
const openapiDocument = await this.#sourceDocument(sourceName, document);
|
|
12325
|
+
} = parsed;
|
|
12326
|
+
const openapiDocument = await this.#sourceDocument(sourceName, document, scope);
|
|
12160
12327
|
const jsonPointer = openapiDocument.operationIndex.get(operationId);
|
|
12161
12328
|
if (jsonPointer === undefined) {
|
|
12162
|
-
throw new
|
|
12163
|
-
|
|
12164
|
-
|
|
12329
|
+
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Operation "${operationId}" not found in source description "${sourceName}" at "${openapiDocument.uri}"`, {
|
|
12330
|
+
...scope,
|
|
12331
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].OperationNotFound
|
|
12165
12332
|
});
|
|
12166
12333
|
}
|
|
12167
12334
|
return {
|
|
@@ -12182,15 +12349,15 @@ class OpenAPIOperationLocatorNormalizer extends _SourceDescriptionsLocatorNormal
|
|
|
12182
12349
|
* Non-OpenAPI (arazzo) sources are skipped. Sources are acquired one at a time
|
|
12183
12350
|
* until the first OpenAPI source is reached.
|
|
12184
12351
|
*/
|
|
12185
|
-
async #resolvePlainOperationId(operationId, document) {
|
|
12352
|
+
async #resolvePlainOperationId(operationId, document, scope) {
|
|
12186
12353
|
for (const uri of document.sourceDescriptionURIs()) {
|
|
12187
12354
|
const source = await this.registry.acquire(uri);
|
|
12188
12355
|
if (!_document_OpenAPIDocument_ts__WEBPACK_IMPORTED_MODULE_3__["default"].is(source)) continue;
|
|
12189
12356
|
const jsonPointer = source.operationIndex.get(operationId);
|
|
12190
12357
|
if (jsonPointer === undefined) {
|
|
12191
|
-
throw new
|
|
12192
|
-
|
|
12193
|
-
|
|
12358
|
+
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Operation "${operationId}" not found in source description at "${source.uri}"`, {
|
|
12359
|
+
...scope,
|
|
12360
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].OperationNotFound
|
|
12194
12361
|
});
|
|
12195
12362
|
}
|
|
12196
12363
|
return {
|
|
@@ -12198,26 +12365,31 @@ class OpenAPIOperationLocatorNormalizer extends _SourceDescriptionsLocatorNormal
|
|
|
12198
12365
|
jsonPointer
|
|
12199
12366
|
};
|
|
12200
12367
|
}
|
|
12201
|
-
|
|
12202
|
-
|
|
12203
|
-
|
|
12368
|
+
|
|
12369
|
+
// no source was named, so this is not a missing source description: there
|
|
12370
|
+
// is simply no OpenAPI document for the operation to be in.
|
|
12371
|
+
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Operation "${operationId}" not found: the Arazzo document at "${document.uri}" has no OpenAPI source description`, {
|
|
12372
|
+
...scope,
|
|
12373
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].OperationNotFound
|
|
12204
12374
|
});
|
|
12205
12375
|
}
|
|
12206
12376
|
|
|
12207
12377
|
/**
|
|
12208
12378
|
* Acquires a source description by name and asserts it is an OpenAPI document.
|
|
12209
12379
|
*/
|
|
12210
|
-
async #sourceDocument(sourceName, document) {
|
|
12380
|
+
async #sourceDocument(sourceName, document, scope) {
|
|
12211
12381
|
const uri = document.resolveSourceDescriptionURI(sourceName);
|
|
12212
12382
|
if (uri === undefined) {
|
|
12213
|
-
throw new
|
|
12214
|
-
|
|
12383
|
+
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Source description "${sourceName}" not found in the Arazzo document at "${document.uri}"`, {
|
|
12384
|
+
...scope,
|
|
12385
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].SourceDescriptionNotFound
|
|
12215
12386
|
});
|
|
12216
12387
|
}
|
|
12217
12388
|
const source = await this.registry.acquire(uri);
|
|
12218
12389
|
if (!_document_OpenAPIDocument_ts__WEBPACK_IMPORTED_MODULE_3__["default"].is(source)) {
|
|
12219
|
-
throw new
|
|
12220
|
-
|
|
12390
|
+
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Source description "${sourceName}" at "${uri}" is not an OpenAPI document`, {
|
|
12391
|
+
...scope,
|
|
12392
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].SourceDescriptionNotOpenAPI
|
|
12221
12393
|
});
|
|
12222
12394
|
}
|
|
12223
12395
|
return source;
|
|
@@ -12427,42 +12599,49 @@ class StepExecutor {
|
|
|
12427
12599
|
* take precedence over it.
|
|
12428
12600
|
*
|
|
12429
12601
|
* A `signal` in that bag is honored here and not only at the transport: an
|
|
12430
|
-
* already-aborted signal throws
|
|
12602
|
+
* already-aborted signal throws with reason `ExecutionError.Aborted` instead of issuing a
|
|
12431
12603
|
* request nobody is waiting for, whose wire-level cancellation would surface
|
|
12432
12604
|
* as a transport {@link ClientError} — a request that failed on its own terms
|
|
12433
12605
|
* — rather than as the withdrawal it is.
|
|
12606
|
+
*
|
|
12607
|
+
* `workflowId` names the workflow the step belongs to; every error raised
|
|
12608
|
+
* here then carries it alongside the `stepId`, since step ids are only
|
|
12609
|
+
* unique within a workflow. The workflow executor always passes it.
|
|
12434
12610
|
*/
|
|
12435
|
-
async execute(step, state, executeOptions = {}) {
|
|
12611
|
+
async execute(step, state, executeOptions = {}, workflowId) {
|
|
12436
12612
|
const stepId = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(step.stepId);
|
|
12613
|
+
const scope = {
|
|
12614
|
+
...(workflowId === undefined ? {} : {
|
|
12615
|
+
workflowId
|
|
12616
|
+
}),
|
|
12617
|
+
stepId
|
|
12618
|
+
};
|
|
12437
12619
|
|
|
12438
12620
|
// a step's target fields are mutually exclusive; declaring more than one is
|
|
12439
12621
|
// malformed and has no defined resolution.
|
|
12440
12622
|
const declaredTargets = STEP_TARGET_FIELDS.filter(field => (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(step[field]));
|
|
12441
12623
|
if (declaredTargets.length > 1) {
|
|
12442
12624
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_10__["default"](`Step "${stepId}" declares more than one of ${STEP_TARGET_FIELDS.join(', ')} (mutually exclusive)`, {
|
|
12443
|
-
|
|
12444
|
-
reason:
|
|
12625
|
+
...scope,
|
|
12626
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_10__["default"].AmbiguousTarget
|
|
12445
12627
|
});
|
|
12446
12628
|
}
|
|
12447
12629
|
if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(step.workflowId)) {
|
|
12448
12630
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_10__["default"](`Step "${stepId}" targets a workflowId; use the workflow executor`, {
|
|
12449
|
-
|
|
12450
|
-
reason:
|
|
12631
|
+
...scope,
|
|
12632
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_10__["default"].WorkflowStep
|
|
12451
12633
|
});
|
|
12452
12634
|
}
|
|
12453
|
-
this.assertSuccessCriteria(step);
|
|
12635
|
+
this.assertSuccessCriteria(step, workflowId);
|
|
12454
12636
|
|
|
12455
12637
|
// locate which operation the step invokes — reduced to a (document, JSON
|
|
12456
12638
|
// Pointer) locator that the operation executor extracts, normalizes,
|
|
12457
12639
|
// assembles into a standalone doc, and runs.
|
|
12458
|
-
const locator = await this.#locateOperation(step,
|
|
12640
|
+
const locator = await this.#locateOperation(step, scope);
|
|
12459
12641
|
|
|
12460
12642
|
// resolve parameters and request body against the pre-request context.
|
|
12461
12643
|
// keyed by '{in}.{name}' rather than bare name, so two parameters that
|
|
12462
12644
|
// legally differ only in their location each reach their own place.
|
|
12463
|
-
const scope = {
|
|
12464
|
-
stepId
|
|
12465
|
-
};
|
|
12466
12645
|
const preContext = state.toContext();
|
|
12467
12646
|
const parameters = this.#parameterResolver.resolve(step.parameters, expression => this.#evaluate(preContext, expression), scope);
|
|
12468
12647
|
const requestBody = this.#requestBodyResolver.resolve(step.requestBody, expression => this.#evaluate(preContext, expression), scope);
|
|
@@ -12473,9 +12652,7 @@ class StepExecutor {
|
|
|
12473
12652
|
// live side effect. The signal stays in the bag, so a request already in
|
|
12474
12653
|
// flight is aborted by the transport as before.
|
|
12475
12654
|
const signal = (0,_abort_ts__WEBPACK_IMPORTED_MODULE_13__.readAbortSignal)(executeOptions);
|
|
12476
|
-
(0,_abort_ts__WEBPACK_IMPORTED_MODULE_13__.throwIfAborted)(signal,
|
|
12477
|
-
stepId
|
|
12478
|
-
});
|
|
12655
|
+
(0,_abort_ts__WEBPACK_IMPORTED_MODULE_13__.throwIfAborted)(signal, scope);
|
|
12479
12656
|
|
|
12480
12657
|
// the Arazzo-derived parameters and request body are spread after the opaque
|
|
12481
12658
|
// executeOptions bag so they take precedence over it. the operation executor
|
|
@@ -12494,22 +12671,20 @@ class StepExecutor {
|
|
|
12494
12671
|
// cancelled, it did not: reporting it as the abort keeps one error shape
|
|
12495
12672
|
// whether the run was withdrawn between two steps or mid-flight, and keeps
|
|
12496
12673
|
// the whole feature from reading differently per transport.
|
|
12497
|
-
;(0,_abort_ts__WEBPACK_IMPORTED_MODULE_13__.throwIfAborted)(signal,
|
|
12498
|
-
stepId
|
|
12499
|
-
});
|
|
12674
|
+
;(0,_abort_ts__WEBPACK_IMPORTED_MODULE_13__.throwIfAborted)(signal, scope);
|
|
12500
12675
|
throw error;
|
|
12501
12676
|
}
|
|
12502
12677
|
|
|
12503
12678
|
// evaluate criteria, outputs, and the next action against the post-request
|
|
12504
12679
|
// context (with $request / $url / $method and $response / $statusCode).
|
|
12505
12680
|
const postContext = state.toContext(this.#requestContext(response), this.#responseContext(response));
|
|
12506
|
-
const successCriteria = this.evaluateCriteria(step, postContext);
|
|
12681
|
+
const successCriteria = this.evaluateCriteria(step, postContext, workflowId);
|
|
12507
12682
|
const successful = successCriteria.every(criterion => criterion.met);
|
|
12508
12683
|
const outputs = this.#outputResolver.resolve(step.outputs, expression => this.#evaluate(postContext, expression), scope);
|
|
12509
12684
|
const {
|
|
12510
12685
|
matchedActions,
|
|
12511
12686
|
actionCriteria
|
|
12512
|
-
} = this.selectActions(step, successful, postContext);
|
|
12687
|
+
} = this.selectActions(step, successful, postContext, workflowId);
|
|
12513
12688
|
return {
|
|
12514
12689
|
stepId,
|
|
12515
12690
|
response,
|
|
@@ -12539,16 +12714,16 @@ class StepExecutor {
|
|
|
12539
12714
|
requestContentType: requestBody.contentType
|
|
12540
12715
|
};
|
|
12541
12716
|
}
|
|
12542
|
-
async #locateOperation(step,
|
|
12717
|
+
async #locateOperation(step, scope) {
|
|
12543
12718
|
if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(step.operationId)) {
|
|
12544
|
-
return this.#locatorNormalizer.normalizeOperationId((0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(step.operationId), this.#document);
|
|
12719
|
+
return this.#locatorNormalizer.normalizeOperationId((0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(step.operationId), this.#document, scope);
|
|
12545
12720
|
}
|
|
12546
12721
|
if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(step.operationPath)) {
|
|
12547
|
-
return this.#locatorNormalizer.normalizeOperationPath((0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(step.operationPath), this.#document);
|
|
12722
|
+
return this.#locatorNormalizer.normalizeOperationPath((0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(step.operationPath), this.#document, scope);
|
|
12548
12723
|
}
|
|
12549
|
-
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_10__["default"](`Step "${stepId}" has no operationId or operationPath`, {
|
|
12550
|
-
|
|
12551
|
-
reason:
|
|
12724
|
+
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_10__["default"](`Step "${scope.stepId}" has no operationId or operationPath`, {
|
|
12725
|
+
...scope,
|
|
12726
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_10__["default"].MissingOperation
|
|
12552
12727
|
});
|
|
12553
12728
|
}
|
|
12554
12729
|
|
|
@@ -12579,13 +12754,13 @@ class StepExecutor {
|
|
|
12579
12754
|
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isArrayElement)(criteria)) {
|
|
12580
12755
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_11__["default"]("A step's `successCriteria` is present but is not a list", {
|
|
12581
12756
|
...scope,
|
|
12582
|
-
reason:
|
|
12757
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_11__["default"].MalformedCriteria
|
|
12583
12758
|
});
|
|
12584
12759
|
}
|
|
12585
12760
|
if (![...criteria].every(_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_2__.isCriterionElement)) {
|
|
12586
12761
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_11__["default"]("A step's `successCriteria` contains an entry that is not a Criterion Object", {
|
|
12587
12762
|
...scope,
|
|
12588
|
-
reason:
|
|
12763
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_11__["default"].MalformedCriterion
|
|
12589
12764
|
});
|
|
12590
12765
|
}
|
|
12591
12766
|
}
|
|
@@ -12601,10 +12776,12 @@ class StepExecutor {
|
|
|
12601
12776
|
* Public for the same reason as {@link StepExecutor.selectActions}: a step
|
|
12602
12777
|
* targeting a `workflowId` is run by the workflow executor and never reaches
|
|
12603
12778
|
* {@link StepExecutor.execute}, but its criteria are still the author's
|
|
12604
|
-
* assertion about the step and must be evaluated somewhere.
|
|
12779
|
+
* assertion about the step and must be evaluated somewhere. `workflowId`
|
|
12780
|
+
* names the step's workflow on a thrown error, as for
|
|
12781
|
+
* {@link StepExecutor.execute}.
|
|
12605
12782
|
*/
|
|
12606
|
-
evaluateCriteria(step, context) {
|
|
12607
|
-
this.assertSuccessCriteria(step);
|
|
12783
|
+
evaluateCriteria(step, context, workflowId) {
|
|
12784
|
+
this.assertSuccessCriteria(step, workflowId);
|
|
12608
12785
|
const criteria = step.successCriteria;
|
|
12609
12786
|
if (criteria === undefined) return [];
|
|
12610
12787
|
|
|
@@ -12632,8 +12809,10 @@ class StepExecutor {
|
|
|
12632
12809
|
* it runs itself and which therefore never reaches
|
|
12633
12810
|
* {@link StepExecutor.execute}. Both callers reach the criteria evaluator and
|
|
12634
12811
|
* the expression context through this one method rather than wiring their own.
|
|
12812
|
+
* `workflowId` names the step's workflow on a thrown error, as for
|
|
12813
|
+
* {@link StepExecutor.execute}.
|
|
12635
12814
|
*/
|
|
12636
|
-
selectActions(step, successful, context) {
|
|
12815
|
+
selectActions(step, successful, context, workflowId) {
|
|
12637
12816
|
const actionCriteria = [];
|
|
12638
12817
|
const isCriterionMet = (criterion, action) => {
|
|
12639
12818
|
const record = {
|
|
@@ -12644,6 +12823,9 @@ class StepExecutor {
|
|
|
12644
12823
|
return record.met;
|
|
12645
12824
|
};
|
|
12646
12825
|
const scope = {
|
|
12826
|
+
...(workflowId === undefined ? {} : {
|
|
12827
|
+
workflowId
|
|
12828
|
+
}),
|
|
12647
12829
|
stepId: (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(step.stepId)
|
|
12648
12830
|
};
|
|
12649
12831
|
const matchedActions = successful ? this.#actionResolver.resolveOnSuccess(step.onSuccess, isCriterionMet, scope) : this.#actionResolver.resolveOnFailure(step.onFailure, isCriterionMet, scope);
|
|
@@ -12681,7 +12863,7 @@ class StepExecutor {
|
|
|
12681
12863
|
// a step that calls a workflow made no HTTP call, so a condition on one
|
|
12682
12864
|
// fails like any unevaluable condition; the diagnostic keeps the
|
|
12683
12865
|
// authoring mistake visible.
|
|
12684
|
-
if (error instanceof _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_12__["default"] && error.reason ===
|
|
12866
|
+
if (error instanceof _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_12__["default"] && error.reason === _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_12__["default"].UnavailableExpression) {
|
|
12685
12867
|
return {
|
|
12686
12868
|
condition,
|
|
12687
12869
|
met: false,
|
|
@@ -12954,7 +13136,7 @@ class StepRetryRunner {
|
|
|
12954
13136
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_3__["default"](`retry action on step "${context.stepId}" in workflow "${context.workflowId}" carries a stepId/workflowId reference, but no runReference was given to run it`, {
|
|
12955
13137
|
stepId: context.stepId,
|
|
12956
13138
|
workflowId: context.workflowId,
|
|
12957
|
-
reason:
|
|
13139
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_3__["default"].RetryReferenceUnsupported
|
|
12958
13140
|
});
|
|
12959
13141
|
}
|
|
12960
13142
|
}
|
|
@@ -13076,7 +13258,7 @@ class StepTransitionInterpreter {
|
|
|
13076
13258
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_2__["default"](`goto action on step "${stepId}" in workflow "${workflowId}" declares both a stepId and a workflowId (mutually exclusive)`, {
|
|
13077
13259
|
stepId,
|
|
13078
13260
|
workflowId,
|
|
13079
|
-
reason:
|
|
13261
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].AmbiguousTarget
|
|
13080
13262
|
});
|
|
13081
13263
|
}
|
|
13082
13264
|
if (hasStepId) {
|
|
@@ -13094,13 +13276,13 @@ class StepTransitionInterpreter {
|
|
|
13094
13276
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_2__["default"](`goto action on step "${stepId}" in workflow "${workflowId}" has neither stepId nor workflowId`, {
|
|
13095
13277
|
stepId,
|
|
13096
13278
|
workflowId,
|
|
13097
|
-
reason:
|
|
13279
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].GotoTargetMissing
|
|
13098
13280
|
});
|
|
13099
13281
|
}
|
|
13100
13282
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_2__["default"](`action on step "${stepId}" in workflow "${workflowId}" has unsupported type "${type}"`, {
|
|
13101
13283
|
stepId,
|
|
13102
13284
|
workflowId,
|
|
13103
|
-
reason:
|
|
13285
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].UnknownActionType
|
|
13104
13286
|
});
|
|
13105
13287
|
}
|
|
13106
13288
|
|
|
@@ -13227,7 +13409,7 @@ class WorkflowCallStack {
|
|
|
13227
13409
|
// detects both, so a loop crossing the two mechanisms cannot slip between
|
|
13228
13410
|
// them.
|
|
13229
13411
|
const closingEdges = [...this.#calls.slice(repeated + 1).map(call => call.via), via];
|
|
13230
|
-
const reason = closingEdges.every(edge => edge === 'dependsOn') ?
|
|
13412
|
+
const reason = closingEdges.every(edge => edge === 'dependsOn') ? _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_0__["default"].DependsOnCycle : _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_0__["default"].WorkflowCycle;
|
|
13231
13413
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_0__["default"](`workflow "${workflowId}" is already in progress; its call chain forms a cycle (${path.join(' -> ')})`, {
|
|
13232
13414
|
workflowId,
|
|
13233
13415
|
reason,
|
|
@@ -13237,7 +13419,7 @@ class WorkflowCallStack {
|
|
|
13237
13419
|
if (this.#calls.length >= this.#maxDepth) {
|
|
13238
13420
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_0__["default"](`workflow "${workflowId}" nests deeper than the limit of ${this.#maxDepth} workflows`, {
|
|
13239
13421
|
workflowId,
|
|
13240
|
-
reason:
|
|
13422
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_0__["default"].WorkflowDepth,
|
|
13241
13423
|
path: [...this.path, this.#display(workflowId, documentURI)]
|
|
13242
13424
|
});
|
|
13243
13425
|
}
|
|
@@ -13523,7 +13705,7 @@ class WorkflowExecutor {
|
|
|
13523
13705
|
const unknown = Object.keys(options).filter(key => !WorkflowExecutor.#EXECUTE_OPTION_KEYS.has(key));
|
|
13524
13706
|
if (unknown.length === 0) return;
|
|
13525
13707
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`execute received unknown option(s) ${unknown.join(', ')}; it takes (workflowId, { inputs, executeOptions, dependencyInputs, runDependencies, signal }) — workflow inputs go under "inputs"`, {
|
|
13526
|
-
reason:
|
|
13708
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].UnknownExecuteOption
|
|
13527
13709
|
});
|
|
13528
13710
|
}
|
|
13529
13711
|
|
|
@@ -13656,7 +13838,7 @@ class WorkflowExecutor {
|
|
|
13656
13838
|
break;
|
|
13657
13839
|
case 'goto':
|
|
13658
13840
|
index = this.#interpreter.indexOfStep(steps, transition.stepId, workflowId, {
|
|
13659
|
-
reason:
|
|
13841
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].GotoTargetNotFound,
|
|
13660
13842
|
label: 'goto target'
|
|
13661
13843
|
});
|
|
13662
13844
|
break;
|
|
@@ -13703,7 +13885,7 @@ class WorkflowExecutor {
|
|
|
13703
13885
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`step "${stepId}" in workflow "${workflowId}" produced an unrecognized transition ${JSON.stringify(unreachable)}`, {
|
|
13704
13886
|
workflowId,
|
|
13705
13887
|
stepId,
|
|
13706
|
-
reason:
|
|
13888
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].UnknownTransitionKind
|
|
13707
13889
|
});
|
|
13708
13890
|
}
|
|
13709
13891
|
}
|
|
@@ -13791,7 +13973,7 @@ class WorkflowExecutor {
|
|
|
13791
13973
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`workflow "${invocation.workflowId}" exceeded its budget of ${this.#maxSteps} step attempts (a goto loop, excessive retries, or runaway sub-workflow calls)`, {
|
|
13792
13974
|
workflowId: invocation.workflowId,
|
|
13793
13975
|
stepId,
|
|
13794
|
-
reason:
|
|
13976
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].StepBudget,
|
|
13795
13977
|
path: invocation.callStack.path
|
|
13796
13978
|
});
|
|
13797
13979
|
}
|
|
@@ -13896,7 +14078,7 @@ class WorkflowExecutor {
|
|
|
13896
14078
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`retry action on step "${stepId}" in workflow "${workflowId}" declares both a stepId and a workflowId (mutually exclusive)`, {
|
|
13897
14079
|
stepId,
|
|
13898
14080
|
workflowId,
|
|
13899
|
-
reason:
|
|
14081
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].AmbiguousTarget
|
|
13900
14082
|
});
|
|
13901
14083
|
}
|
|
13902
14084
|
if (hasWorkflowId) {
|
|
@@ -13920,7 +14102,7 @@ class WorkflowExecutor {
|
|
|
13920
14102
|
}
|
|
13921
14103
|
const refStepId = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(action.stepId);
|
|
13922
14104
|
const refIndex = this.#interpreter.indexOfStep(steps, refStepId, workflowId, {
|
|
13923
|
-
reason:
|
|
14105
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].RetryTargetNotFound,
|
|
13924
14106
|
label: 'retry reference'
|
|
13925
14107
|
});
|
|
13926
14108
|
const refStep = steps[refIndex];
|
|
@@ -14039,14 +14221,14 @@ class WorkflowExecutor {
|
|
|
14039
14221
|
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isArrayElement)(dependsOn)) {
|
|
14040
14222
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`workflow "${workflowId}" has a non-list "dependsOn"`, {
|
|
14041
14223
|
workflowId,
|
|
14042
|
-
reason:
|
|
14224
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].MalformedDependsOn
|
|
14043
14225
|
});
|
|
14044
14226
|
}
|
|
14045
14227
|
const references = [...dependsOn].map((entry, index) => {
|
|
14046
14228
|
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(entry)) {
|
|
14047
14229
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`workflow "${workflowId}" has a non-string entry at dependsOn[${index}]`, {
|
|
14048
14230
|
workflowId,
|
|
14049
|
-
reason:
|
|
14231
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].MalformedDependsOn
|
|
14050
14232
|
});
|
|
14051
14233
|
}
|
|
14052
14234
|
return (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(entry);
|
|
@@ -14088,10 +14270,11 @@ class WorkflowExecutor {
|
|
|
14088
14270
|
callStack
|
|
14089
14271
|
} = invocation;
|
|
14090
14272
|
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(step.workflowId)) {
|
|
14091
|
-
return () => this.#stepExecutor.forDocument(document).execute(step, state, scope.executeOptions);
|
|
14273
|
+
return () => this.#stepExecutor.forDocument(document).execute(step, state, scope.executeOptions, workflowId);
|
|
14092
14274
|
}
|
|
14093
14275
|
const reference = this.#subWorkflowReference(step, stepId, workflowId);
|
|
14094
14276
|
const stepScope = {
|
|
14277
|
+
workflowId,
|
|
14095
14278
|
stepId
|
|
14096
14279
|
};
|
|
14097
14280
|
// the reference resolves to the same locator on every attempt, so it is
|
|
@@ -14169,12 +14352,12 @@ class WorkflowExecutor {
|
|
|
14169
14352
|
// evaluated by the parent document's step executor — only the sub-run
|
|
14170
14353
|
// itself switched documents.
|
|
14171
14354
|
const stepExecutor = this.#stepExecutor.forDocument(document);
|
|
14172
|
-
const successCriteria = stepExecutor.evaluateCriteria(step, context);
|
|
14355
|
+
const successCriteria = stepExecutor.evaluateCriteria(step, context, workflowId);
|
|
14173
14356
|
const successful = !this.#settledFailed(result) && successCriteria.every(criterion => criterion.met);
|
|
14174
14357
|
const {
|
|
14175
14358
|
matchedActions,
|
|
14176
14359
|
actionCriteria
|
|
14177
|
-
} = stepExecutor.selectActions(step, successful, context);
|
|
14360
|
+
} = stepExecutor.selectActions(step, successful, context, workflowId);
|
|
14178
14361
|
return {
|
|
14179
14362
|
stepId,
|
|
14180
14363
|
successful,
|
|
@@ -14230,7 +14413,7 @@ class WorkflowExecutor {
|
|
|
14230
14413
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`step "${stepId}" in workflow "${workflowId}" declares a workflowId alongside ${conflicting.join(', ')} (mutually exclusive)`, {
|
|
14231
14414
|
stepId,
|
|
14232
14415
|
workflowId,
|
|
14233
|
-
reason:
|
|
14416
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].AmbiguousTarget
|
|
14234
14417
|
});
|
|
14235
14418
|
}
|
|
14236
14419
|
return (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(step.workflowId);
|
|
@@ -14276,7 +14459,7 @@ class WorkflowExecutor {
|
|
|
14276
14459
|
if (!document.workflowIndex.has(workflowId)) {
|
|
14277
14460
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`workflow "${workflowId}" not found in Arazzo document at "${document.uri}"`, {
|
|
14278
14461
|
workflowId,
|
|
14279
|
-
reason:
|
|
14462
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].WorkflowNotFound
|
|
14280
14463
|
});
|
|
14281
14464
|
}
|
|
14282
14465
|
const workflow = await this.#normalizer.normalize(this.#extractor.extract(document, workflowId), document);
|
|
@@ -14307,14 +14490,14 @@ class WorkflowExecutor {
|
|
|
14307
14490
|
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isArrayElement)(steps)) {
|
|
14308
14491
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`workflow "${workflowId}" has a non-list "steps"`, {
|
|
14309
14492
|
workflowId,
|
|
14310
|
-
reason:
|
|
14493
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].MalformedSteps
|
|
14311
14494
|
});
|
|
14312
14495
|
}
|
|
14313
14496
|
return [...steps].map((step, index) => {
|
|
14314
14497
|
if (!(0,_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_2__.isStepElement)(step)) {
|
|
14315
14498
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`workflow "${workflowId}" has a non-step entry at steps[${index}]`, {
|
|
14316
14499
|
workflowId,
|
|
14317
|
-
reason:
|
|
14500
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].MalformedSteps
|
|
14318
14501
|
});
|
|
14319
14502
|
}
|
|
14320
14503
|
return step;
|
|
@@ -14337,7 +14520,7 @@ class WorkflowExecutor {
|
|
|
14337
14520
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_15__["default"]('`outputs` is present but is not a map', {
|
|
14338
14521
|
workflowId,
|
|
14339
14522
|
target: 'outputs',
|
|
14340
|
-
reason:
|
|
14523
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_15__["default"].MalformedOutputs
|
|
14341
14524
|
});
|
|
14342
14525
|
}
|
|
14343
14526
|
|
|
@@ -14416,8 +14599,8 @@ const readAbortSignal = options => {
|
|
|
14416
14599
|
};
|
|
14417
14600
|
|
|
14418
14601
|
/**
|
|
14419
|
-
* Throws
|
|
14420
|
-
* nothing otherwise.
|
|
14602
|
+
* Throws with reason `ExecutionError.Aborted` when the caller has cancelled
|
|
14603
|
+
* the run, and does nothing otherwise.
|
|
14421
14604
|
*
|
|
14422
14605
|
* Cancellation throws rather than resolving as a `failed` result because it is
|
|
14423
14606
|
* not a workflow outcome: nothing was judged by `successCriteria`, no failure
|
|
@@ -14438,7 +14621,7 @@ const throwIfAborted = (signal, context) => {
|
|
|
14438
14621
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_0__["default"](`run aborted before ${where}`, {
|
|
14439
14622
|
workflowId,
|
|
14440
14623
|
stepId,
|
|
14441
|
-
reason:
|
|
14624
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_0__["default"].Aborted,
|
|
14442
14625
|
path: callStack?.path,
|
|
14443
14626
|
cause: signal.reason
|
|
14444
14627
|
});
|
|
@@ -14557,7 +14740,7 @@ class RuntimeExpressionEvaluator {
|
|
|
14557
14740
|
if (value === undefined && this.#strict) {
|
|
14558
14741
|
throw new _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Runtime expression "${expression}" could not be resolved against the context`, {
|
|
14559
14742
|
expression,
|
|
14560
|
-
reason:
|
|
14743
|
+
reason: _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].UnresolvedReference
|
|
14561
14744
|
});
|
|
14562
14745
|
}
|
|
14563
14746
|
return value;
|
|
@@ -14603,13 +14786,13 @@ class RuntimeExpressionEvaluator {
|
|
|
14603
14786
|
throw new _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Failed to parse runtime expression "${expression}"`, {
|
|
14604
14787
|
cause: error,
|
|
14605
14788
|
expression,
|
|
14606
|
-
reason:
|
|
14789
|
+
reason: _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].ParseError
|
|
14607
14790
|
});
|
|
14608
14791
|
}
|
|
14609
14792
|
if (!result.result.success || result.tree === undefined) {
|
|
14610
14793
|
throw new _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Invalid runtime expression "${expression}"`, {
|
|
14611
14794
|
expression,
|
|
14612
|
-
reason:
|
|
14795
|
+
reason: _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].InvalidExpression
|
|
14613
14796
|
});
|
|
14614
14797
|
}
|
|
14615
14798
|
return result.tree;
|
|
@@ -14627,7 +14810,7 @@ class RuntimeExpressionEvaluator {
|
|
|
14627
14810
|
if (calledWorkflow === undefined || !HTTP_EXCHANGE_NODES.has(node.type)) return;
|
|
14628
14811
|
throw new _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Runtime expression "${expression}" is not available: step "${calledWorkflow.stepId}" calls workflow "${calledWorkflow.workflowId}", not an operation, so it has no HTTP request or response`, {
|
|
14629
14812
|
expression,
|
|
14630
|
-
reason:
|
|
14813
|
+
reason: _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].UnavailableExpression
|
|
14631
14814
|
});
|
|
14632
14815
|
}
|
|
14633
14816
|
|
|
@@ -14664,7 +14847,7 @@ class RuntimeExpressionEvaluator {
|
|
|
14664
14847
|
default:
|
|
14665
14848
|
throw new _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Unsupported runtime expression node "${node.type}"`, {
|
|
14666
14849
|
expression,
|
|
14667
|
-
reason:
|
|
14850
|
+
reason: _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].UnsupportedNode
|
|
14668
14851
|
});
|
|
14669
14852
|
}
|
|
14670
14853
|
}
|
|
@@ -16496,7 +16679,7 @@ class OpenAPIOperationParameterResolver extends _StepParameterResolver_ts__WEBPA
|
|
|
16496
16679
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"]('`parameters` is present but is not a list', {
|
|
16497
16680
|
...scope,
|
|
16498
16681
|
target: 'parameters',
|
|
16499
|
-
reason:
|
|
16682
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].MalformedParameters
|
|
16500
16683
|
});
|
|
16501
16684
|
}
|
|
16502
16685
|
for (const parameter of parameters) {
|
|
@@ -16508,7 +16691,7 @@ class OpenAPIOperationParameterResolver extends _StepParameterResolver_ts__WEBPA
|
|
|
16508
16691
|
if (identity === undefined) {
|
|
16509
16692
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"]('Parameter has a missing or non-string name', {
|
|
16510
16693
|
...scope,
|
|
16511
|
-
reason:
|
|
16694
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].MissingName
|
|
16512
16695
|
});
|
|
16513
16696
|
}
|
|
16514
16697
|
const {
|
|
@@ -16519,21 +16702,21 @@ class OpenAPIOperationParameterResolver extends _StepParameterResolver_ts__WEBPA
|
|
|
16519
16702
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"](`Parameter "${name}" declares no location ("in"), which a step targeting an operation requires`, {
|
|
16520
16703
|
...scope,
|
|
16521
16704
|
target: name,
|
|
16522
|
-
reason:
|
|
16705
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].MissingLocation
|
|
16523
16706
|
});
|
|
16524
16707
|
}
|
|
16525
16708
|
if (location === null) {
|
|
16526
16709
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"](`Parameter "${name}" has a non-string location ("in")`, {
|
|
16527
16710
|
...scope,
|
|
16528
16711
|
target: name,
|
|
16529
|
-
reason:
|
|
16712
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].MalformedLocation
|
|
16530
16713
|
});
|
|
16531
16714
|
}
|
|
16532
16715
|
if (!identity.hasDefinedLocation) {
|
|
16533
16716
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"](`Parameter "${name}" has location "${location}", which is not one of ` + `${_document_ParameterIdentity_ts__WEBPACK_IMPORTED_MODULE_3__["default"].LOCATIONS.join(', ')}`, {
|
|
16534
16717
|
...scope,
|
|
16535
16718
|
target: name,
|
|
16536
|
-
reason:
|
|
16719
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].InvalidLocation
|
|
16537
16720
|
});
|
|
16538
16721
|
}
|
|
16539
16722
|
const {
|
|
@@ -16547,7 +16730,7 @@ class OpenAPIOperationParameterResolver extends _StepParameterResolver_ts__WEBPA
|
|
|
16547
16730
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"](`Parameter "${name}" (in: ${location}) ${why} and cannot be delivered unambiguously`, {
|
|
16548
16731
|
...scope,
|
|
16549
16732
|
target: name,
|
|
16550
|
-
reason:
|
|
16733
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].AmbiguousDelivery
|
|
16551
16734
|
});
|
|
16552
16735
|
}
|
|
16553
16736
|
delivery.set(key, this.resolveValue(parameter.value, resolve));
|
|
@@ -16598,7 +16781,7 @@ class OutputResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODULE_4_
|
|
|
16598
16781
|
*
|
|
16599
16782
|
* `scope` names the step or workflow the outputs belong to, for a thrown
|
|
16600
16783
|
* {@link ResolverError}. An output value that is not a valid runtime
|
|
16601
|
-
* expression throws with
|
|
16784
|
+
* expression throws with reason `ResolverError.InvalidExpression`.
|
|
16602
16785
|
*/
|
|
16603
16786
|
resolve(outputs, resolve, scope) {
|
|
16604
16787
|
const result = {};
|
|
@@ -16609,7 +16792,7 @@ class OutputResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODULE_4_
|
|
|
16609
16792
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_3__["default"]('`outputs` is present but is not a map', {
|
|
16610
16793
|
...scope,
|
|
16611
16794
|
target: 'outputs',
|
|
16612
|
-
reason:
|
|
16795
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_3__["default"].MalformedOutputs
|
|
16613
16796
|
});
|
|
16614
16797
|
}
|
|
16615
16798
|
outputs.forEach((value, key) => {
|
|
@@ -16619,7 +16802,7 @@ class OutputResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODULE_4_
|
|
|
16619
16802
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_3__["default"](`Output "${name}" is not a valid runtime expression`, {
|
|
16620
16803
|
...scope,
|
|
16621
16804
|
target: 'outputs',
|
|
16622
|
-
reason:
|
|
16805
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_3__["default"].InvalidExpression
|
|
16623
16806
|
});
|
|
16624
16807
|
}
|
|
16625
16808
|
// defined rather than assigned: a name like `__proto__` hits the
|
|
@@ -16728,7 +16911,7 @@ class RequestBodyResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODU
|
|
|
16728
16911
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"]('`requestBody` is present but is not a map', {
|
|
16729
16912
|
...scope,
|
|
16730
16913
|
target: 'requestBody',
|
|
16731
|
-
reason:
|
|
16914
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"].MalformedRequestBody
|
|
16732
16915
|
});
|
|
16733
16916
|
}
|
|
16734
16917
|
const authoredPayload = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_2__["default"])(requestBody.payload);
|
|
@@ -16740,7 +16923,7 @@ class RequestBodyResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODU
|
|
|
16740
16923
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"]('`requestBody.replacements` is present but is not a list', {
|
|
16741
16924
|
...scope,
|
|
16742
16925
|
target: 'requestBody.replacements',
|
|
16743
|
-
reason:
|
|
16926
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"].MalformedReplacements
|
|
16744
16927
|
});
|
|
16745
16928
|
}
|
|
16746
16929
|
for (const replacement of requestBody.replacements) {
|
|
@@ -16805,7 +16988,7 @@ class RequestBodyResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODU
|
|
|
16805
16988
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"](`Invalid runtime expression "${text}" in ${this.#payloadTarget(tokens)}`, {
|
|
16806
16989
|
...scope,
|
|
16807
16990
|
target: this.#payloadTarget(tokens),
|
|
16808
|
-
reason:
|
|
16991
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"].InvalidExpression
|
|
16809
16992
|
});
|
|
16810
16993
|
}
|
|
16811
16994
|
});
|
|
@@ -16824,7 +17007,7 @@ class RequestBodyResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODU
|
|
|
16824
17007
|
return new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"](`Runtime expression "${expression}" in ${target} did not resolve`, {
|
|
16825
17008
|
...scope,
|
|
16826
17009
|
target,
|
|
16827
|
-
reason:
|
|
17010
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"].UnresolvedExpression
|
|
16828
17011
|
});
|
|
16829
17012
|
}
|
|
16830
17013
|
|
|
@@ -16848,7 +17031,7 @@ class RequestBodyResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODU
|
|
|
16848
17031
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"](`Unsupported requestBody replacement target "${target}" (expected JSON Pointer)`, {
|
|
16849
17032
|
...scope,
|
|
16850
17033
|
target,
|
|
16851
|
-
reason:
|
|
17034
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"].UnsupportedTarget
|
|
16852
17035
|
});
|
|
16853
17036
|
}
|
|
16854
17037
|
|
|
@@ -16862,7 +17045,7 @@ class RequestBodyResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODU
|
|
|
16862
17045
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"](`requestBody replacement target "${target}" does not resolve in the payload`, {
|
|
16863
17046
|
...scope,
|
|
16864
17047
|
target,
|
|
16865
|
-
reason:
|
|
17048
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"].UnresolvedTarget
|
|
16866
17049
|
});
|
|
16867
17050
|
}
|
|
16868
17051
|
return (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(tokens, value, payload);
|
|
@@ -16962,7 +17145,7 @@ class WorkflowParameterResolver extends _StepParameterResolver_ts__WEBPACK_IMPOR
|
|
|
16962
17145
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_3__["default"]('`parameters` is present but is not a list', {
|
|
16963
17146
|
...scope,
|
|
16964
17147
|
target: 'parameters',
|
|
16965
|
-
reason:
|
|
17148
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_3__["default"].MalformedParameters
|
|
16966
17149
|
});
|
|
16967
17150
|
}
|
|
16968
17151
|
for (const parameter of parameters) {
|
|
@@ -117590,34 +117773,33 @@ let __webpack_exports__ = {};
|
|
|
117590
117773
|
__webpack_require__.r(__webpack_exports__);
|
|
117591
117774
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
117592
117775
|
/* harmony export */ APIDocument: () => (/* reexport safe */ _document_APIDocument_ts__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
|
117593
|
-
/* harmony export */ ActionResolver: () => (/* reexport safe */
|
|
117776
|
+
/* harmony export */ ActionResolver: () => (/* reexport safe */ _action_ActionResolver_ts__WEBPACK_IMPORTED_MODULE_41__["default"]),
|
|
117594
117777
|
/* harmony export */ ArazzoDocument: () => (/* reexport safe */ _document_ArazzoDocument_ts__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
117595
117778
|
/* harmony export */ ArazzoDocumentRegistryProvider: () => (/* reexport safe */ _registry_providers_ArazzoDocumentRegistryProvider_ts__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
117596
117779
|
/* harmony export */ ArazzoRunner: () => (/* reexport safe */ _ArazzoRunner_ts__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
117597
|
-
/* harmony export */ ArazzoRunnerError: () => (/* reexport safe */
|
|
117780
|
+
/* harmony export */ ArazzoRunnerError: () => (/* reexport safe */ _errors_ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_48__["default"]),
|
|
117598
117781
|
/* harmony export */ ArazzoSourceDescriptionIndex: () => (/* reexport safe */ _document_ArazzoSourceDescriptionIndex_ts__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
|
117599
117782
|
/* harmony export */ ArazzoStepExtractor: () => (/* reexport safe */ _extractor_ArazzoStepExtractor_ts__WEBPACK_IMPORTED_MODULE_13__["default"]),
|
|
117600
117783
|
/* harmony export */ ArazzoStepIndex: () => (/* reexport safe */ _document_ArazzoStepIndex_ts__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
|
117601
117784
|
/* harmony export */ ArazzoStepNormalizer: () => (/* reexport safe */ _normalizer_ArazzoStepNormalizer_ts__WEBPACK_IMPORTED_MODULE_16__["default"]),
|
|
117602
|
-
/* harmony export */ ArazzoValueResolver: () => (/* reexport safe */
|
|
117785
|
+
/* harmony export */ ArazzoValueResolver: () => (/* reexport safe */ _resolver_ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODULE_35__["default"]),
|
|
117603
117786
|
/* harmony export */ ArazzoWorkflowExtractor: () => (/* reexport safe */ _extractor_ArazzoWorkflowExtractor_ts__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
117604
117787
|
/* harmony export */ ArazzoWorkflowIndex: () => (/* reexport safe */ _document_ArazzoWorkflowIndex_ts__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
|
117605
|
-
/* harmony export */ ArazzoWorkflowLocatorNormalizer: () => (/* reexport safe */
|
|
117788
|
+
/* harmony export */ ArazzoWorkflowLocatorNormalizer: () => (/* reexport safe */ _executor_ArazzoWorkflowLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_47__["default"]),
|
|
117606
117789
|
/* harmony export */ ArazzoWorkflowNormalizer: () => (/* reexport safe */ _normalizer_ArazzoWorkflowNormalizer_ts__WEBPACK_IMPORTED_MODULE_15__["default"]),
|
|
117607
|
-
/* harmony export */ AssemblerError: () => (/* reexport safe */
|
|
117608
|
-
/* harmony export */ ClientError: () => (/* reexport safe */
|
|
117609
|
-
/* harmony export */ CriterionError: () => (/* reexport safe */
|
|
117610
|
-
/* harmony export */
|
|
117611
|
-
/* harmony export */ CriterionEvaluationError: () => (/* reexport safe */ _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_59__["default"]),
|
|
117790
|
+
/* harmony export */ AssemblerError: () => (/* reexport safe */ _errors_AssemblerError_ts__WEBPACK_IMPORTED_MODULE_49__["default"]),
|
|
117791
|
+
/* harmony export */ ClientError: () => (/* reexport safe */ _errors_ClientError_ts__WEBPACK_IMPORTED_MODULE_50__["default"]),
|
|
117792
|
+
/* harmony export */ CriterionError: () => (/* reexport safe */ _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_57__["default"]),
|
|
117793
|
+
/* harmony export */ CriterionEvaluationError: () => (/* reexport safe */ _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_58__["default"]),
|
|
117612
117794
|
/* harmony export */ CriterionEvaluator: () => (/* reexport safe */ _criterion_CriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_29__["default"]),
|
|
117613
|
-
/* harmony export */ DocumentLoadError: () => (/* reexport safe */
|
|
117795
|
+
/* harmony export */ DocumentLoadError: () => (/* reexport safe */ _errors_DocumentLoadError_ts__WEBPACK_IMPORTED_MODULE_55__["default"]),
|
|
117614
117796
|
/* harmony export */ DocumentRegistry: () => (/* reexport safe */ _registry_DocumentRegistry_ts__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
117615
117797
|
/* harmony export */ DocumentRegistryProvider: () => (/* reexport safe */ _registry_providers_DocumentRegistryProvider_ts__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
117616
|
-
/* harmony export */ ExecutionError: () => (/* reexport safe */
|
|
117617
|
-
/* harmony export */ ExtractionError: () => (/* reexport safe */
|
|
117618
|
-
/* harmony export */ InvalidEntryDocumentError: () => (/* reexport safe */
|
|
117798
|
+
/* harmony export */ ExecutionError: () => (/* reexport safe */ _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_60__["default"]),
|
|
117799
|
+
/* harmony export */ ExtractionError: () => (/* reexport safe */ _errors_ExtractionError_ts__WEBPACK_IMPORTED_MODULE_52__["default"]),
|
|
117800
|
+
/* harmony export */ InvalidEntryDocumentError: () => (/* reexport safe */ _errors_InvalidEntryDocumentError_ts__WEBPACK_IMPORTED_MODULE_53__["default"]),
|
|
117619
117801
|
/* harmony export */ JSONPathCriterionEvaluator: () => (/* reexport safe */ _criterion_JSONPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_32__["default"]),
|
|
117620
|
-
/* harmony export */ NormalizationError: () => (/* reexport safe */
|
|
117802
|
+
/* harmony export */ NormalizationError: () => (/* reexport safe */ _errors_NormalizationError_ts__WEBPACK_IMPORTED_MODULE_51__["default"]),
|
|
117621
117803
|
/* harmony export */ OpenAPI2DocumentAssembler: () => (/* reexport safe */ _assembler_OpenAPI2DocumentAssembler_ts__WEBPACK_IMPORTED_MODULE_22__["default"]),
|
|
117622
117804
|
/* harmony export */ OpenAPI2OperationNormalizer: () => (/* reexport safe */ _normalizer_OpenAPI2OperationNormalizer_ts__WEBPACK_IMPORTED_MODULE_18__["default"]),
|
|
117623
117805
|
/* harmony export */ OpenAPI30DocumentAssembler: () => (/* reexport safe */ _assembler_OpenAPI30DocumentAssembler_ts__WEBPACK_IMPORTED_MODULE_23__["default"]),
|
|
@@ -117627,31 +117809,31 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
117627
117809
|
/* harmony export */ OpenAPIDocument: () => (/* reexport safe */ _document_OpenAPIDocument_ts__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
117628
117810
|
/* harmony export */ OpenAPIDocumentAssembler: () => (/* reexport safe */ _assembler_OpenAPIDocumentAssembler_ts__WEBPACK_IMPORTED_MODULE_21__["default"]),
|
|
117629
117811
|
/* harmony export */ OpenAPIDocumentRegistryProvider: () => (/* reexport safe */ _registry_providers_OpenAPIDocumentRegistryProvider_ts__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
117630
|
-
/* harmony export */ OpenAPIOperationExecutor: () => (/* reexport safe */
|
|
117812
|
+
/* harmony export */ OpenAPIOperationExecutor: () => (/* reexport safe */ _executor_OpenAPIOperationExecutor_ts__WEBPACK_IMPORTED_MODULE_44__["default"]),
|
|
117631
117813
|
/* harmony export */ OpenAPIOperationExtractor: () => (/* reexport safe */ _extractor_OpenAPIOperationExtractor_ts__WEBPACK_IMPORTED_MODULE_14__["default"]),
|
|
117632
117814
|
/* harmony export */ OpenAPIOperationIndex: () => (/* reexport safe */ _document_OpenAPIOperationIndex_ts__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
117633
|
-
/* harmony export */ OpenAPIOperationLocatorNormalizer: () => (/* reexport safe */
|
|
117815
|
+
/* harmony export */ OpenAPIOperationLocatorNormalizer: () => (/* reexport safe */ _executor_OpenAPIOperationLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_46__["default"]),
|
|
117634
117816
|
/* harmony export */ OpenAPIOperationNormalizer: () => (/* reexport safe */ _normalizer_OpenAPIOperationNormalizer_ts__WEBPACK_IMPORTED_MODULE_17__["default"]),
|
|
117635
|
-
/* harmony export */ OpenAPIOperationParameterResolver: () => (/* reexport safe */
|
|
117817
|
+
/* harmony export */ OpenAPIOperationParameterResolver: () => (/* reexport safe */ _resolver_OpenAPIOperationParameterResolver_ts__WEBPACK_IMPORTED_MODULE_37__["default"]),
|
|
117636
117818
|
/* harmony export */ OpenAPIOperationResponse: () => (/* reexport safe */ _client_OpenAPIOperationResponse_ts__WEBPACK_IMPORTED_MODULE_26__["default"]),
|
|
117637
117819
|
/* harmony export */ OpenAPIOperationResponseNormalizer: () => (/* reexport safe */ _client_OpenAPIOperationResponseNormalizer_ts__WEBPACK_IMPORTED_MODULE_27__["default"]),
|
|
117638
|
-
/* harmony export */ OutputResolver: () => (/* reexport safe */
|
|
117820
|
+
/* harmony export */ OutputResolver: () => (/* reexport safe */ _resolver_OutputResolver_ts__WEBPACK_IMPORTED_MODULE_39__["default"]),
|
|
117639
117821
|
/* harmony export */ RegexCriterionEvaluator: () => (/* reexport safe */ _criterion_RegexCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_31__["default"]),
|
|
117640
|
-
/* harmony export */ RequestBodyResolver: () => (/* reexport safe */
|
|
117641
|
-
/* harmony export */ ResolverError: () => (/* reexport safe */
|
|
117642
|
-
/* harmony export */ RuntimeExpressionError: () => (/* reexport safe */
|
|
117822
|
+
/* harmony export */ RequestBodyResolver: () => (/* reexport safe */ _resolver_RequestBodyResolver_ts__WEBPACK_IMPORTED_MODULE_40__["default"]),
|
|
117823
|
+
/* harmony export */ ResolverError: () => (/* reexport safe */ _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_59__["default"]),
|
|
117824
|
+
/* harmony export */ RuntimeExpressionError: () => (/* reexport safe */ _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_56__["default"]),
|
|
117643
117825
|
/* harmony export */ RuntimeExpressionEvaluator: () => (/* reexport safe */ _expression_RuntimeExpressionEvaluator_ts__WEBPACK_IMPORTED_MODULE_28__["default"]),
|
|
117644
117826
|
/* harmony export */ SimpleCriterionEvaluator: () => (/* reexport safe */ _criterion_SimpleCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_30__["default"]),
|
|
117645
|
-
/* harmony export */ SourceDescriptionsLocatorNormalizer: () => (/* reexport safe */
|
|
117646
|
-
/* harmony export */ StepExecutor: () => (/* reexport safe */
|
|
117647
|
-
/* harmony export */ StepParameterResolver: () => (/* reexport safe */
|
|
117648
|
-
/* harmony export */ UnmatchedProviderError: () => (/* reexport safe */
|
|
117649
|
-
/* harmony export */ WorkflowExecutionState: () => (/* reexport safe */
|
|
117650
|
-
/* harmony export */ WorkflowExecutor: () => (/* reexport safe */
|
|
117651
|
-
/* harmony export */ WorkflowParameterResolver: () => (/* reexport safe */
|
|
117827
|
+
/* harmony export */ SourceDescriptionsLocatorNormalizer: () => (/* reexport safe */ _executor_SourceDescriptionsLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_45__["default"]),
|
|
117828
|
+
/* harmony export */ StepExecutor: () => (/* reexport safe */ _executor_StepExecutor_ts__WEBPACK_IMPORTED_MODULE_43__["default"]),
|
|
117829
|
+
/* harmony export */ StepParameterResolver: () => (/* reexport safe */ _resolver_StepParameterResolver_ts__WEBPACK_IMPORTED_MODULE_36__["default"]),
|
|
117830
|
+
/* harmony export */ UnmatchedProviderError: () => (/* reexport safe */ _errors_UnmatchedProviderError_ts__WEBPACK_IMPORTED_MODULE_54__["default"]),
|
|
117831
|
+
/* harmony export */ WorkflowExecutionState: () => (/* reexport safe */ _state_WorkflowExecutionState_ts__WEBPACK_IMPORTED_MODULE_34__["default"]),
|
|
117832
|
+
/* harmony export */ WorkflowExecutor: () => (/* reexport safe */ _executor_WorkflowExecutor_ts__WEBPACK_IMPORTED_MODULE_42__["default"]),
|
|
117833
|
+
/* harmony export */ WorkflowParameterResolver: () => (/* reexport safe */ _resolver_WorkflowParameterResolver_ts__WEBPACK_IMPORTED_MODULE_38__["default"]),
|
|
117652
117834
|
/* harmony export */ XPathCriterionEvaluator: () => (/* reexport safe */ _criterion_XPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_33__["default"]),
|
|
117653
117835
|
/* harmony export */ httpClientFetch: () => (/* reexport safe */ _client_HTTPClientFetch_ts__WEBPACK_IMPORTED_MODULE_25__["default"]),
|
|
117654
|
-
/* harmony export */ settledResult: () => (/* reexport safe */
|
|
117836
|
+
/* harmony export */ settledResult: () => (/* reexport safe */ _executor_WorkflowExecutor_ts__WEBPACK_IMPORTED_MODULE_42__.settledResult)
|
|
117655
117837
|
/* harmony export */ });
|
|
117656
117838
|
/* harmony import */ var _ArazzoRunner_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57253);
|
|
117657
117839
|
/* harmony import */ var _registry_DocumentRegistry_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4044);
|
|
@@ -117687,34 +117869,33 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
117687
117869
|
/* harmony import */ var _criterion_RegexCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(13517);
|
|
117688
117870
|
/* harmony import */ var _criterion_JSONPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(90089);
|
|
117689
117871
|
/* harmony import */ var _criterion_XPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(84997);
|
|
117690
|
-
/* harmony import */ var
|
|
117691
|
-
/* harmony import */ var
|
|
117692
|
-
/* harmony import */ var
|
|
117693
|
-
/* harmony import */ var
|
|
117694
|
-
/* harmony import */ var
|
|
117695
|
-
/* harmony import */ var
|
|
117696
|
-
/* harmony import */ var
|
|
117697
|
-
/* harmony import */ var
|
|
117698
|
-
/* harmony import */ var
|
|
117699
|
-
/* harmony import */ var
|
|
117700
|
-
/* harmony import */ var
|
|
117701
|
-
/* harmony import */ var
|
|
117702
|
-
/* harmony import */ var
|
|
117703
|
-
/* harmony import */ var
|
|
117704
|
-
/* harmony import */ var
|
|
117705
|
-
/* harmony import */ var
|
|
117706
|
-
/* harmony import */ var
|
|
117707
|
-
/* harmony import */ var
|
|
117708
|
-
/* harmony import */ var
|
|
117709
|
-
/* harmony import */ var
|
|
117710
|
-
/* harmony import */ var
|
|
117711
|
-
/* harmony import */ var
|
|
117712
|
-
/* harmony import */ var
|
|
117713
|
-
/* harmony import */ var
|
|
117714
|
-
/* harmony import */ var
|
|
117715
|
-
/* harmony import */ var
|
|
117716
|
-
/* harmony import */ var
|
|
117717
|
-
/* harmony import */ var _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(17658);
|
|
117872
|
+
/* harmony import */ var _state_WorkflowExecutionState_ts__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(61596);
|
|
117873
|
+
/* harmony import */ var _resolver_ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(22411);
|
|
117874
|
+
/* harmony import */ var _resolver_StepParameterResolver_ts__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(92126);
|
|
117875
|
+
/* harmony import */ var _resolver_OpenAPIOperationParameterResolver_ts__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(3347);
|
|
117876
|
+
/* harmony import */ var _resolver_WorkflowParameterResolver_ts__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(95839);
|
|
117877
|
+
/* harmony import */ var _resolver_OutputResolver_ts__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(99494);
|
|
117878
|
+
/* harmony import */ var _resolver_RequestBodyResolver_ts__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(67410);
|
|
117879
|
+
/* harmony import */ var _action_ActionResolver_ts__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(51097);
|
|
117880
|
+
/* harmony import */ var _executor_WorkflowExecutor_ts__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(92152);
|
|
117881
|
+
/* harmony import */ var _executor_StepExecutor_ts__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(96007);
|
|
117882
|
+
/* harmony import */ var _executor_OpenAPIOperationExecutor_ts__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(57680);
|
|
117883
|
+
/* harmony import */ var _executor_SourceDescriptionsLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(83461);
|
|
117884
|
+
/* harmony import */ var _executor_OpenAPIOperationLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(7308);
|
|
117885
|
+
/* harmony import */ var _executor_ArazzoWorkflowLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(98885);
|
|
117886
|
+
/* harmony import */ var _errors_ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(23949);
|
|
117887
|
+
/* harmony import */ var _errors_AssemblerError_ts__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(90706);
|
|
117888
|
+
/* harmony import */ var _errors_ClientError_ts__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(81763);
|
|
117889
|
+
/* harmony import */ var _errors_NormalizationError_ts__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(35523);
|
|
117890
|
+
/* harmony import */ var _errors_ExtractionError_ts__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(90713);
|
|
117891
|
+
/* harmony import */ var _errors_InvalidEntryDocumentError_ts__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(40198);
|
|
117892
|
+
/* harmony import */ var _errors_UnmatchedProviderError_ts__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(46132);
|
|
117893
|
+
/* harmony import */ var _errors_DocumentLoadError_ts__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(24089);
|
|
117894
|
+
/* harmony import */ var _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(48770);
|
|
117895
|
+
/* harmony import */ var _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(41233);
|
|
117896
|
+
/* harmony import */ var _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(71731);
|
|
117897
|
+
/* harmony import */ var _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(8696);
|
|
117898
|
+
/* harmony import */ var _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(17658);
|
|
117718
117899
|
/* Runner */
|
|
117719
117900
|
|
|
117720
117901
|
|
|
@@ -117768,7 +117949,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
117768
117949
|
|
|
117769
117950
|
|
|
117770
117951
|
|
|
117771
|
-
|
|
117772
117952
|
/* Execution State */
|
|
117773
117953
|
|
|
117774
117954
|
/* Resolvers */
|