@usearazzo/runner 1.0.1-alpha.19 → 1.0.1-alpha.21
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 +31 -0
- package/README.md +2 -2
- package/dist/arazzo-runner.browser.js +376 -156
- package/dist/arazzo-runner.browser.min.js +1 -1
- package/package.json +4 -4
- package/src/action/ActionResolver.cjs +8 -4
- package/src/action/ActionResolver.mjs +8 -4
- package/src/criterion/CriterionErrorReason.cjs +51 -0
- package/src/criterion/CriterionErrorReason.mjs +46 -0
- package/src/criterion/CriterionEvaluator.cjs +83 -38
- package/src/criterion/CriterionEvaluator.mjs +82 -38
- package/src/criterion/JSONPathCriterionEvaluator.cjs +8 -4
- package/src/criterion/JSONPathCriterionEvaluator.mjs +9 -5
- package/src/criterion/RegexCriterionEvaluator.cjs +7 -4
- package/src/criterion/RegexCriterionEvaluator.mjs +7 -4
- package/src/criterion/SimpleCriterionEvaluator.cjs +5 -4
- package/src/criterion/SimpleCriterionEvaluator.mjs +5 -4
- package/src/criterion/XPathCriterionEvaluator.cjs +16 -12
- package/src/criterion/XPathCriterionEvaluator.mjs +16 -12
- package/src/errors/CriterionEvaluationError.cjs +18 -0
- package/src/errors/CriterionEvaluationError.mjs +11 -0
- package/src/executor/StepExecutor.cjs +80 -24
- package/src/executor/StepExecutor.mjs +80 -24
- package/src/executor/WorkflowExecutor.cjs +13 -4
- package/src/executor/WorkflowExecutor.mjs +13 -4
- package/src/index.cjs +14 -0
- package/src/index.mjs +2 -0
- package/types/runner.d.ts +180 -22
|
@@ -8960,10 +8960,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8960
8960
|
|
|
8961
8961
|
|
|
8962
8962
|
/**
|
|
8963
|
-
* Determines whether a single criterion is met.
|
|
8963
|
+
* Determines whether a single criterion of an action is met. Receives the
|
|
8964
|
+
* action declaring the criterion, so a caller can attribute the outcome to it.
|
|
8964
8965
|
*
|
|
8965
8966
|
* Bridged to a criterion evaluator
|
|
8966
|
-
* (`(criterion) => criterionEvaluator.evaluate(criterion, resolve)`); an
|
|
8967
|
+
* (`(criterion) => criterionEvaluator.evaluate(criterion, resolve).met`); an
|
|
8967
8968
|
* unresolvable/failing criterion is `false`, not an error.
|
|
8968
8969
|
* @public
|
|
8969
8970
|
*/
|
|
@@ -9095,6 +9096,7 @@ class ActionResolver {
|
|
|
9095
9096
|
reason: 'malformed-criteria'
|
|
9096
9097
|
});
|
|
9097
9098
|
}
|
|
9099
|
+
let met = true;
|
|
9098
9100
|
for (const criterion of criteria) {
|
|
9099
9101
|
if (!(0,_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_1__.isCriterionElement)(criterion)) {
|
|
9100
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,9 +9105,11 @@ class ActionResolver {
|
|
|
9103
9105
|
reason: 'malformed-criterion'
|
|
9104
9106
|
});
|
|
9105
9107
|
}
|
|
9106
|
-
|
|
9108
|
+
// every criterion is evaluated, not only up to the first unmet one, so
|
|
9109
|
+
// a predicate that records outcomes sees the whole list.
|
|
9110
|
+
if (!isCriterionMet(criterion, action)) met = false;
|
|
9107
9111
|
}
|
|
9108
|
-
return
|
|
9112
|
+
return met;
|
|
9109
9113
|
}
|
|
9110
9114
|
}
|
|
9111
9115
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ActionResolver);
|
|
@@ -9934,6 +9938,64 @@ const MAX_DOCUMENT_REGISTRY_SIZE = 4;
|
|
|
9934
9938
|
/* harmony export */ ]);
|
|
9935
9939
|
|
|
9936
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
|
+
|
|
9937
9999
|
/***/ },
|
|
9938
10000
|
|
|
9939
10001
|
/***/ 98936
|
|
@@ -9946,10 +10008,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9946
10008
|
/* harmony import */ var _speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(75728);
|
|
9947
10009
|
/* harmony import */ var _swaggerexpert_arazzo_runtime_expression__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(26847);
|
|
9948
10010
|
/* harmony import */ var _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(41233);
|
|
9949
|
-
/* harmony import */ var
|
|
9950
|
-
/* harmony import */ var
|
|
9951
|
-
/* harmony import */ var
|
|
9952
|
-
/* harmony import */ var
|
|
10011
|
+
/* harmony import */ var _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71731);
|
|
10012
|
+
/* harmony import */ var _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(94547);
|
|
10013
|
+
/* harmony import */ var _RegexCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(13517);
|
|
10014
|
+
/* harmony import */ var _SimpleCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(41346);
|
|
10015
|
+
/* harmony import */ var _JSONPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(90089);
|
|
10016
|
+
/* harmony import */ var _XPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(84997);
|
|
10017
|
+
|
|
10018
|
+
|
|
9953
10019
|
|
|
9954
10020
|
|
|
9955
10021
|
|
|
@@ -9972,13 +10038,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9972
10038
|
* @public
|
|
9973
10039
|
*/
|
|
9974
10040
|
|
|
10041
|
+
/**
|
|
10042
|
+
* The outcome of evaluating one criterion.
|
|
10043
|
+
* @public
|
|
10044
|
+
*/
|
|
10045
|
+
|
|
9975
10046
|
/**
|
|
9976
10047
|
* Options for the CriterionEvaluator.
|
|
10048
|
+
*
|
|
10049
|
+
* An injected evaluator signals a condition it cannot evaluate by throwing a
|
|
10050
|
+
* {@link CriterionEvaluationError}, which fails the criterion; any other error
|
|
10051
|
+
* it throws, a plain {@link CriterionError} included, propagates.
|
|
9977
10052
|
* @public
|
|
9978
10053
|
*/
|
|
9979
10054
|
|
|
9980
10055
|
/**
|
|
9981
|
-
* Evaluates an Arazzo Criterion Object to a
|
|
10056
|
+
* Evaluates an Arazzo Criterion Object to a {@link CriterionOutcome}.
|
|
9982
10057
|
*
|
|
9983
10058
|
* Dispatches on the criterion's `type` (defaulting to `simple` when omitted):
|
|
9984
10059
|
* - `simple` — evaluates the condition directly, resolving the runtime
|
|
@@ -9987,12 +10062,27 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9987
10062
|
* pattern to the resolved value.
|
|
9988
10063
|
* - `jsonpath` — resolves the `context` runtime expression, then applies the
|
|
9989
10064
|
* JSONPath query to the resolved value (met when the query matches). Only the
|
|
9990
|
-
* `rfc9535` version is supported
|
|
9991
|
-
* throws.
|
|
10065
|
+
* `rfc9535` version is supported; an explicit other version throws.
|
|
9992
10066
|
* - `xpath` — resolves the `context` runtime expression, then applies the XPath
|
|
9993
10067
|
* 3.1 query to the resolved XML value (met by the Effective Boolean Value).
|
|
9994
|
-
* Only the `xpath-31` version is supported
|
|
9995
|
-
*
|
|
10068
|
+
* Only the `xpath-31` version is supported; an explicit other version throws.
|
|
10069
|
+
*
|
|
10070
|
+
* Versions follow Arazzo 1.1.0's Expression Type Object: `rfc9535` and
|
|
10071
|
+
* `xpath-31` are allowed values, and an omitted `version` defaults to them.
|
|
10072
|
+
* Arazzo 1.0.x lists neither and requires `version`; this evaluator applies
|
|
10073
|
+
* the 1.1.0 rule to every document, which accepts more but never evaluates a
|
|
10074
|
+
* query under the wrong dialect.
|
|
10075
|
+
*
|
|
10076
|
+
* A condition that cannot be evaluated fails the criterion (`met: false`), as
|
|
10077
|
+
* Arazzo 1.1.0 requires: a syntax error in the condition, a context the
|
|
10078
|
+
* condition cannot apply to (non-XML data for `xpath`), or an XPath evaluation
|
|
10079
|
+
* error. The type-specific evaluators report these as a
|
|
10080
|
+
* {@link CriterionEvaluationError}, which this facade returns as the
|
|
10081
|
+
* outcome's `error` so the caller can report it; any other error they raise
|
|
10082
|
+
* propagates. A criterion that is malformed as written still throws: a
|
|
10083
|
+
* missing `condition`, an unknown or unreadable `type`, an unsupported
|
|
10084
|
+
* expression `version`, or a `context` that is missing or not a runtime
|
|
10085
|
+
* expression.
|
|
9996
10086
|
*
|
|
9997
10087
|
* The evaluator is agnostic about how runtime expressions are resolved: the
|
|
9998
10088
|
* caller supplies a {@link CriterionContextResolver} per evaluation, keeping
|
|
@@ -10006,14 +10096,15 @@ class CriterionEvaluator {
|
|
|
10006
10096
|
#jsonpath;
|
|
10007
10097
|
#xpath;
|
|
10008
10098
|
constructor(options = {}) {
|
|
10009
|
-
this.#simple = options.simple ?? new
|
|
10010
|
-
this.#regex = options.regex ?? new
|
|
10011
|
-
this.#jsonpath = options.jsonpath ?? new
|
|
10012
|
-
this.#xpath = options.xpath ?? new
|
|
10099
|
+
this.#simple = options.simple ?? new _SimpleCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_8__["default"]();
|
|
10100
|
+
this.#regex = options.regex ?? new _RegexCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_7__["default"]();
|
|
10101
|
+
this.#jsonpath = options.jsonpath ?? new _JSONPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_9__["default"]();
|
|
10102
|
+
this.#xpath = options.xpath ?? new _XPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_10__["default"]();
|
|
10013
10103
|
}
|
|
10014
10104
|
|
|
10015
10105
|
/**
|
|
10016
|
-
* Evaluates a criterion element, returning whether the condition is met
|
|
10106
|
+
* Evaluates a criterion element, returning whether the condition is met and,
|
|
10107
|
+
* when it cannot be evaluated, why.
|
|
10017
10108
|
*
|
|
10018
10109
|
* `resolve` turns a runtime expression into a value: for `simple` it resolves
|
|
10019
10110
|
* the expressions embedded in the condition; for the other types it resolves
|
|
@@ -10022,7 +10113,7 @@ class CriterionEvaluator {
|
|
|
10022
10113
|
evaluate(criterion, resolve) {
|
|
10023
10114
|
if (!(0,_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_2__.isCriterionElement)(criterion)) {
|
|
10024
10115
|
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"]('Element is not a Criterion Object', {
|
|
10025
|
-
reason:
|
|
10116
|
+
reason: _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_6__["default"].InvalidCriterion
|
|
10026
10117
|
});
|
|
10027
10118
|
}
|
|
10028
10119
|
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;
|
|
@@ -10030,34 +10121,52 @@ class CriterionEvaluator {
|
|
|
10030
10121
|
// (e.g. an empty regex would match unconditionally), so reject it too.
|
|
10031
10122
|
if (condition === undefined || condition === '') {
|
|
10032
10123
|
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"]('Criterion is missing a "condition"', {
|
|
10033
|
-
reason:
|
|
10124
|
+
reason: _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_6__["default"].MissingCondition
|
|
10034
10125
|
});
|
|
10035
10126
|
}
|
|
10036
10127
|
const type = this.#resolveType(criterion);
|
|
10037
10128
|
this.#requireValidContext(criterion, type);
|
|
10038
|
-
|
|
10039
|
-
|
|
10040
|
-
|
|
10041
|
-
|
|
10042
|
-
|
|
10043
|
-
|
|
10044
|
-
|
|
10045
|
-
|
|
10046
|
-
|
|
10047
|
-
|
|
10048
|
-
|
|
10049
|
-
|
|
10050
|
-
|
|
10051
|
-
|
|
10052
|
-
|
|
10053
|
-
|
|
10054
|
-
|
|
10055
|
-
|
|
10056
|
-
|
|
10057
|
-
type,
|
|
10058
|
-
|
|
10059
|
-
|
|
10129
|
+
let met;
|
|
10130
|
+
try {
|
|
10131
|
+
switch (type) {
|
|
10132
|
+
case 'simple':
|
|
10133
|
+
met = this.#simple.evaluate(condition, resolve);
|
|
10134
|
+
break;
|
|
10135
|
+
case 'regex':
|
|
10136
|
+
met = this.#regex.evaluate(condition, this.#resolveContext(criterion, type, resolve));
|
|
10137
|
+
break;
|
|
10138
|
+
case 'jsonpath':
|
|
10139
|
+
// only rfc9535 is supported, Arazzo 1.1.0's default, so an omitted
|
|
10140
|
+
// version is accepted. draft-goessner has different semantics and is
|
|
10141
|
+
// rejected rather than mis-evaluated.
|
|
10142
|
+
this.#requireVersion(criterion, type, condition, 'rfc9535');
|
|
10143
|
+
met = this.#jsonpath.evaluate(condition, this.#resolveContext(criterion, type, resolve));
|
|
10144
|
+
break;
|
|
10145
|
+
case 'xpath':
|
|
10146
|
+
// only XPath 3.1 is supported; xpath-31 is Arazzo 1.1.0's default, so
|
|
10147
|
+
// an omitted version is accepted. Older versions are rejected.
|
|
10148
|
+
this.#requireVersion(criterion, type, condition, 'xpath-31');
|
|
10149
|
+
met = this.#xpath.evaluate(condition, this.#resolveContext(criterion, type, resolve));
|
|
10150
|
+
break;
|
|
10151
|
+
default:
|
|
10152
|
+
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"](`Unknown criterion type "${type}"`, {
|
|
10153
|
+
condition,
|
|
10154
|
+
type,
|
|
10155
|
+
reason: _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_6__["default"].UnknownType
|
|
10156
|
+
});
|
|
10157
|
+
}
|
|
10158
|
+
} catch (error) {
|
|
10159
|
+
// Arazzo 1.1.0: a condition that cannot be evaluated MUST evaluate to fail.
|
|
10160
|
+
// The structural checks throw a plain CriterionError and still propagate.
|
|
10161
|
+
if (error instanceof _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_5__["default"]) return {
|
|
10162
|
+
met: false,
|
|
10163
|
+
error
|
|
10164
|
+
};
|
|
10165
|
+
throw error;
|
|
10060
10166
|
}
|
|
10167
|
+
return {
|
|
10168
|
+
met
|
|
10169
|
+
};
|
|
10061
10170
|
}
|
|
10062
10171
|
|
|
10063
10172
|
/**
|
|
@@ -10074,15 +10183,15 @@ class CriterionEvaluator {
|
|
|
10074
10183
|
}
|
|
10075
10184
|
if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(type)) return (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(type);
|
|
10076
10185
|
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"]('Criterion has an invalid "type"', {
|
|
10077
|
-
reason:
|
|
10186
|
+
reason: _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_6__["default"].InvalidType
|
|
10078
10187
|
});
|
|
10079
10188
|
}
|
|
10080
10189
|
|
|
10081
10190
|
/**
|
|
10082
10191
|
* Extracts the expression `version` from a Criterion Expression Type Object,
|
|
10083
10192
|
* or `undefined` when no version is declared (a bare-string `type`, or a type
|
|
10084
|
-
* object without a `version`) — in which case
|
|
10085
|
-
* applies. A `version` that is present but not a string is malformed and
|
|
10193
|
+
* object without a `version`) — in which case Arazzo 1.1.0's default for the
|
|
10194
|
+
* type applies. A `version` that is present but not a string is malformed and
|
|
10086
10195
|
* throws a {@link CriterionError} rather than silently defaulting.
|
|
10087
10196
|
*/
|
|
10088
10197
|
#resolveVersion(criterion) {
|
|
@@ -10094,13 +10203,13 @@ class CriterionEvaluator {
|
|
|
10094
10203
|
return (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(type.version);
|
|
10095
10204
|
}
|
|
10096
10205
|
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"]('Criterion has an invalid expression type "version"', {
|
|
10097
|
-
reason:
|
|
10206
|
+
reason: _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_6__["default"].InvalidVersion
|
|
10098
10207
|
});
|
|
10099
10208
|
}
|
|
10100
10209
|
|
|
10101
10210
|
/**
|
|
10102
10211
|
* Enforces that a versioned condition type declares only the one version this
|
|
10103
|
-
* runner supports. An omitted version is accepted (
|
|
10212
|
+
* runner supports. An omitted version is accepted (Arazzo 1.1.0's default);
|
|
10104
10213
|
* any other declared version throws a {@link CriterionError}.
|
|
10105
10214
|
*/
|
|
10106
10215
|
#requireVersion(criterion, type, condition, supported) {
|
|
@@ -10109,7 +10218,7 @@ class CriterionEvaluator {
|
|
|
10109
10218
|
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"](`Unsupported ${type} version "${version}" (only ${supported})`, {
|
|
10110
10219
|
condition,
|
|
10111
10220
|
type,
|
|
10112
|
-
reason:
|
|
10221
|
+
reason: _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_6__["default"].UnsupportedVersion
|
|
10113
10222
|
});
|
|
10114
10223
|
}
|
|
10115
10224
|
}
|
|
@@ -10127,7 +10236,7 @@ class CriterionEvaluator {
|
|
|
10127
10236
|
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))) {
|
|
10128
10237
|
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"]('Criterion has a "context" that is not a valid runtime expression', {
|
|
10129
10238
|
type,
|
|
10130
|
-
reason:
|
|
10239
|
+
reason: _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_6__["default"].InvalidContext
|
|
10131
10240
|
});
|
|
10132
10241
|
}
|
|
10133
10242
|
}
|
|
@@ -10142,7 +10251,7 @@ class CriterionEvaluator {
|
|
|
10142
10251
|
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(criterion.context)) {
|
|
10143
10252
|
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"](`Criterion type "${type}" requires a "context"`, {
|
|
10144
10253
|
type,
|
|
10145
|
-
reason:
|
|
10254
|
+
reason: _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_6__["default"].MissingContext
|
|
10146
10255
|
});
|
|
10147
10256
|
}
|
|
10148
10257
|
return resolve((0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(criterion.context));
|
|
@@ -10162,7 +10271,9 @@ class CriterionEvaluator {
|
|
|
10162
10271
|
"use strict";
|
|
10163
10272
|
__webpack_require__.r(__webpack_exports__);
|
|
10164
10273
|
/* harmony import */ var _swaggerexpert_jsonpath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(84637);
|
|
10165
|
-
/* harmony import */ var
|
|
10274
|
+
/* 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
|
+
|
|
10166
10277
|
|
|
10167
10278
|
|
|
10168
10279
|
|
|
@@ -10184,7 +10295,7 @@ class JSONPathCriterionEvaluator {
|
|
|
10184
10295
|
* whether it matched anything.
|
|
10185
10296
|
*
|
|
10186
10297
|
* Returns `false` when the context is `null` or `undefined`. Throws
|
|
10187
|
-
* {@link
|
|
10298
|
+
* {@link CriterionEvaluationError} when the condition is not a valid JSONPath query.
|
|
10188
10299
|
*/
|
|
10189
10300
|
evaluate(condition, context) {
|
|
10190
10301
|
if (context === null || context === undefined) return false;
|
|
@@ -10192,11 +10303,14 @@ class JSONPathCriterionEvaluator {
|
|
|
10192
10303
|
return (0,_swaggerexpert_jsonpath__WEBPACK_IMPORTED_MODULE_0__.evaluate)(context, condition).length > 0;
|
|
10193
10304
|
} catch (error) {
|
|
10194
10305
|
if (error instanceof _swaggerexpert_jsonpath__WEBPACK_IMPORTED_MODULE_0__.JSONPathError) {
|
|
10195
|
-
|
|
10306
|
+
// a parse error describes the query only; an evaluation error ran
|
|
10307
|
+
// against the context, so its message is not surfaced.
|
|
10308
|
+
const detail = error instanceof _swaggerexpert_jsonpath__WEBPACK_IMPORTED_MODULE_0__.JSONPathParseError ? `: ${error.message}` : '';
|
|
10309
|
+
throw new _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_1__["default"](`Invalid jsonpath criterion condition "${condition}"${detail}`, {
|
|
10196
10310
|
cause: error,
|
|
10197
10311
|
condition,
|
|
10198
10312
|
type: 'jsonpath',
|
|
10199
|
-
reason:
|
|
10313
|
+
reason: _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_2__["default"].InvalidJSONPath
|
|
10200
10314
|
});
|
|
10201
10315
|
}
|
|
10202
10316
|
throw error;
|
|
@@ -10216,7 +10330,9 @@ class JSONPathCriterionEvaluator {
|
|
|
10216
10330
|
|
|
10217
10331
|
"use strict";
|
|
10218
10332
|
__webpack_require__.r(__webpack_exports__);
|
|
10219
|
-
/* harmony import */ var
|
|
10333
|
+
/* 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
|
+
|
|
10220
10336
|
|
|
10221
10337
|
|
|
10222
10338
|
/**
|
|
@@ -10246,7 +10362,7 @@ class RegexCriterionEvaluator {
|
|
|
10246
10362
|
* Tests the resolved context value against the regular expression `condition`.
|
|
10247
10363
|
*
|
|
10248
10364
|
* The context is coerced to a string before matching. Returns `false` when the
|
|
10249
|
-
* context is `null` or `undefined`. Throws {@link
|
|
10365
|
+
* context is `null` or `undefined`. Throws {@link CriterionEvaluationError} when the
|
|
10250
10366
|
* condition is not a valid regular expression.
|
|
10251
10367
|
*/
|
|
10252
10368
|
evaluate(condition, context) {
|
|
@@ -10255,11 +10371,13 @@ class RegexCriterionEvaluator {
|
|
|
10255
10371
|
try {
|
|
10256
10372
|
regExp = new RegExp(condition);
|
|
10257
10373
|
} catch (error) {
|
|
10258
|
-
|
|
10374
|
+
// the engine has seen only the pattern, never the context, so its
|
|
10375
|
+
// message is safe to surface.
|
|
10376
|
+
throw new _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_0__["default"](`Invalid regex criterion condition "${condition}": ${error.message}`, {
|
|
10259
10377
|
cause: error,
|
|
10260
10378
|
condition,
|
|
10261
10379
|
type: 'regex',
|
|
10262
|
-
reason:
|
|
10380
|
+
reason: _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_1__["default"].InvalidRegex
|
|
10263
10381
|
});
|
|
10264
10382
|
}
|
|
10265
10383
|
return regExp.test(this.#stringify(context));
|
|
@@ -10291,7 +10409,9 @@ class RegexCriterionEvaluator {
|
|
|
10291
10409
|
"use strict";
|
|
10292
10410
|
__webpack_require__.r(__webpack_exports__);
|
|
10293
10411
|
/* harmony import */ var _swaggerexpert_arazzo_criterion__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88006);
|
|
10294
|
-
/* harmony import */ var
|
|
10412
|
+
/* 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
|
+
|
|
10295
10415
|
|
|
10296
10416
|
|
|
10297
10417
|
/**
|
|
@@ -10308,7 +10428,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10308
10428
|
* compared per the library's rules (e.g. `undefined == x` and relational
|
|
10309
10429
|
* comparisons are false, matching the spec's "null equals only null"), so a
|
|
10310
10430
|
* negated or disjunctive condition may still pass. A malformed condition throws
|
|
10311
|
-
* {@link
|
|
10431
|
+
* {@link CriterionEvaluationError}.
|
|
10312
10432
|
* @public
|
|
10313
10433
|
*/
|
|
10314
10434
|
class SimpleCriterionEvaluator {
|
|
@@ -10323,11 +10443,11 @@ class SimpleCriterionEvaluator {
|
|
|
10323
10443
|
});
|
|
10324
10444
|
} catch (error) {
|
|
10325
10445
|
if (error instanceof _swaggerexpert_arazzo_criterion__WEBPACK_IMPORTED_MODULE_0__.ArazzoCriterionError) {
|
|
10326
|
-
throw new
|
|
10446
|
+
throw new _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_1__["default"](`Invalid simple criterion condition "${condition}"`, {
|
|
10327
10447
|
cause: error,
|
|
10328
10448
|
condition,
|
|
10329
10449
|
type: 'simple',
|
|
10330
|
-
reason:
|
|
10450
|
+
reason: _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_2__["default"].InvalidSimple
|
|
10331
10451
|
});
|
|
10332
10452
|
}
|
|
10333
10453
|
throw error;
|
|
@@ -10349,12 +10469,14 @@ class SimpleCriterionEvaluator {
|
|
|
10349
10469
|
__webpack_require__.r(__webpack_exports__);
|
|
10350
10470
|
/* harmony import */ var fontoxpath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38406);
|
|
10351
10471
|
/* harmony import */ var _xmldom_xmldom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17937);
|
|
10352
|
-
/* harmony import */ var
|
|
10472
|
+
/* 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);
|
|
10353
10474
|
// fontoxpath is CommonJS and its named exports are not statically resolvable
|
|
10354
10475
|
// under ESM, so import the default and destructure.
|
|
10355
10476
|
|
|
10356
10477
|
|
|
10357
10478
|
|
|
10479
|
+
|
|
10358
10480
|
const {
|
|
10359
10481
|
evaluateXPathToBoolean,
|
|
10360
10482
|
evaluateXPath
|
|
@@ -10372,7 +10494,7 @@ const {
|
|
|
10372
10494
|
*
|
|
10373
10495
|
* Only XPath 3.1 is supported (`fontoxpath`'s engine); version gating happens in
|
|
10374
10496
|
* the facade. Per Arazzo 1.1.0, a `null` or `undefined` context fails the
|
|
10375
|
-
* condition. An invalid query throws {@link
|
|
10497
|
+
* condition. An invalid query throws {@link CriterionEvaluationError}.
|
|
10376
10498
|
* @public
|
|
10377
10499
|
*/
|
|
10378
10500
|
class XPathCriterionEvaluator {
|
|
@@ -10381,7 +10503,7 @@ class XPathCriterionEvaluator {
|
|
|
10381
10503
|
* its Effective Boolean Value.
|
|
10382
10504
|
*
|
|
10383
10505
|
* Returns `false` when the context is `null` or `undefined`. Throws
|
|
10384
|
-
* {@link
|
|
10506
|
+
* {@link CriterionEvaluationError} when the context is not XML or the query is invalid.
|
|
10385
10507
|
*/
|
|
10386
10508
|
evaluate(condition, context) {
|
|
10387
10509
|
if (context === null || context === undefined) return false;
|
|
@@ -10391,11 +10513,14 @@ class XPathCriterionEvaluator {
|
|
|
10391
10513
|
language: evaluateXPath.XPATH_3_1_LANGUAGE
|
|
10392
10514
|
});
|
|
10393
10515
|
} catch (error) {
|
|
10394
|
-
|
|
10516
|
+
// no engine detail: the query has run against the context, and it can
|
|
10517
|
+
// put context values into its own error (a dynamic error, or fn:error
|
|
10518
|
+
// with a code and description of the query's choosing).
|
|
10519
|
+
throw new _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_2__["default"](`Invalid xpath criterion condition "${condition}"`, {
|
|
10395
10520
|
cause: error,
|
|
10396
10521
|
condition,
|
|
10397
10522
|
type: 'xpath',
|
|
10398
|
-
reason:
|
|
10523
|
+
reason: _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_3__["default"].InvalidXPath
|
|
10399
10524
|
});
|
|
10400
10525
|
}
|
|
10401
10526
|
}
|
|
@@ -10408,10 +10533,10 @@ class XPathCriterionEvaluator {
|
|
|
10408
10533
|
#toNode(condition, context) {
|
|
10409
10534
|
if (this.#isNode(context)) return context;
|
|
10410
10535
|
if (typeof context !== 'string') {
|
|
10411
|
-
throw new
|
|
10536
|
+
throw new _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_2__["default"]('xpath criterion context is not XML', {
|
|
10412
10537
|
condition,
|
|
10413
10538
|
type: 'xpath',
|
|
10414
|
-
reason:
|
|
10539
|
+
reason: _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_3__["default"].InvalidXPathContext
|
|
10415
10540
|
});
|
|
10416
10541
|
}
|
|
10417
10542
|
|
|
@@ -10427,21 +10552,21 @@ class XPathCriterionEvaluator {
|
|
|
10427
10552
|
}
|
|
10428
10553
|
}).parseFromString(context, 'text/xml');
|
|
10429
10554
|
if (parseError !== undefined) {
|
|
10430
|
-
throw new
|
|
10555
|
+
throw new _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_2__["default"]('xpath criterion context is not valid XML', {
|
|
10431
10556
|
cause: parseError,
|
|
10432
10557
|
condition,
|
|
10433
10558
|
type: 'xpath',
|
|
10434
|
-
reason:
|
|
10559
|
+
reason: _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_3__["default"].InvalidXPathContext
|
|
10435
10560
|
});
|
|
10436
10561
|
}
|
|
10437
10562
|
return document;
|
|
10438
10563
|
} catch (error) {
|
|
10439
|
-
if (error instanceof
|
|
10440
|
-
throw new
|
|
10564
|
+
if (error instanceof _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_2__["default"]) throw error;
|
|
10565
|
+
throw new _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_2__["default"]('xpath criterion context is not valid XML', {
|
|
10441
10566
|
cause: error,
|
|
10442
10567
|
condition,
|
|
10443
10568
|
type: 'xpath',
|
|
10444
|
-
reason:
|
|
10569
|
+
reason: _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_3__["default"].InvalidXPathContext
|
|
10445
10570
|
});
|
|
10446
10571
|
}
|
|
10447
10572
|
}
|
|
@@ -10928,7 +11053,6 @@ class ClientError extends _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__["de
|
|
|
10928
11053
|
__webpack_require__.r(__webpack_exports__);
|
|
10929
11054
|
/* harmony import */ var _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23949);
|
|
10930
11055
|
|
|
10931
|
-
|
|
10932
11056
|
/** @public */
|
|
10933
11057
|
class CriterionError extends _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
|
10934
11058
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CriterionError);
|
|
@@ -10937,6 +11061,31 @@ class CriterionError extends _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__[
|
|
|
10937
11061
|
/* harmony export */ ]);
|
|
10938
11062
|
|
|
10939
11063
|
|
|
11064
|
+
/***/ },
|
|
11065
|
+
|
|
11066
|
+
/***/ 71731
|
|
11067
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11068
|
+
|
|
11069
|
+
"use strict";
|
|
11070
|
+
__webpack_require__.r(__webpack_exports__);
|
|
11071
|
+
/* harmony import */ var _CriterionError_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41233);
|
|
11072
|
+
|
|
11073
|
+
|
|
11074
|
+
/**
|
|
11075
|
+
* A criterion condition that cannot be evaluated: a syntax error in the
|
|
11076
|
+
* condition, a context the condition cannot apply to, or an error raised while
|
|
11077
|
+
* evaluating it. The type-specific criterion evaluators throw it;
|
|
11078
|
+
* `CriterionEvaluator` turns it into an unmet criterion, as Arazzo 1.1.0
|
|
11079
|
+
* requires.
|
|
11080
|
+
* @public
|
|
11081
|
+
*/
|
|
11082
|
+
class CriterionEvaluationError extends _CriterionError_ts__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
|
11083
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CriterionEvaluationError);
|
|
11084
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
11085
|
+
/* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
|
|
11086
|
+
/* harmony export */ ]);
|
|
11087
|
+
|
|
11088
|
+
|
|
10940
11089
|
/***/ },
|
|
10941
11090
|
|
|
10942
11091
|
/***/ 24089
|
|
@@ -12181,6 +12330,12 @@ const STEP_TARGET_FIELDS = ['operationId', 'operationPath', 'workflowId'];
|
|
|
12181
12330
|
* @public
|
|
12182
12331
|
*/
|
|
12183
12332
|
|
|
12333
|
+
/**
|
|
12334
|
+
* The outcome of one criterion a step evaluated: one of its `successCriteria`,
|
|
12335
|
+
* or one of the `criteria` of an action it considered.
|
|
12336
|
+
* @public
|
|
12337
|
+
*/
|
|
12338
|
+
|
|
12184
12339
|
/**
|
|
12185
12340
|
* The outcome of executing a single step.
|
|
12186
12341
|
* @public
|
|
@@ -12327,16 +12482,22 @@ class StepExecutor {
|
|
|
12327
12482
|
// evaluate criteria, outputs, and the next action against the post-request
|
|
12328
12483
|
// context (with $request / $url / $method and $response / $statusCode).
|
|
12329
12484
|
const postContext = state.toContext(this.#requestContext(response), this.#responseContext(response));
|
|
12330
|
-
const
|
|
12485
|
+
const successCriteria = this.evaluateCriteria(step, postContext);
|
|
12486
|
+
const successful = successCriteria.every(criterion => criterion.met);
|
|
12331
12487
|
const outputs = this.#outputResolver.resolve(step.outputs, expression => this.#evaluate(postContext, expression), scope);
|
|
12332
|
-
const
|
|
12488
|
+
const {
|
|
12489
|
+
matchedActions,
|
|
12490
|
+
actionCriteria
|
|
12491
|
+
} = this.selectActions(step, successful, postContext);
|
|
12333
12492
|
return {
|
|
12334
12493
|
stepId,
|
|
12335
12494
|
response,
|
|
12336
12495
|
successful,
|
|
12337
12496
|
outputs,
|
|
12338
12497
|
action: matchedActions[0],
|
|
12339
|
-
matchedActions
|
|
12498
|
+
matchedActions,
|
|
12499
|
+
successCriteria,
|
|
12500
|
+
actionCriteria
|
|
12340
12501
|
};
|
|
12341
12502
|
}
|
|
12342
12503
|
|
|
@@ -12409,9 +12570,12 @@ class StepExecutor {
|
|
|
12409
12570
|
}
|
|
12410
12571
|
|
|
12411
12572
|
/**
|
|
12412
|
-
* Evaluates the step's `successCriteria
|
|
12413
|
-
*
|
|
12414
|
-
*
|
|
12573
|
+
* Evaluates the step's `successCriteria`, returning one record per criterion
|
|
12574
|
+
* in list order; the step succeeds when every record is met. Every criterion
|
|
12575
|
+
* is evaluated, so the records explain each unmet one, not only the first. A
|
|
12576
|
+
* step with no criteria returns no records and succeeds on a received
|
|
12577
|
+
* response. An unreadable `successCriteria` throws, see
|
|
12578
|
+
* {@link StepExecutor.assertSuccessCriteria}.
|
|
12415
12579
|
*
|
|
12416
12580
|
* Public for the same reason as {@link StepExecutor.selectActions}: a step
|
|
12417
12581
|
* targeting a `workflowId` is run by the workflow executor and never reaches
|
|
@@ -12421,15 +12585,16 @@ class StepExecutor {
|
|
|
12421
12585
|
evaluateCriteria(step, context) {
|
|
12422
12586
|
this.assertSuccessCriteria(step);
|
|
12423
12587
|
const criteria = step.successCriteria;
|
|
12424
|
-
if (criteria === undefined) return
|
|
12588
|
+
if (criteria === undefined) return [];
|
|
12425
12589
|
|
|
12426
12590
|
// assertSuccessCriteria above guarantees every entry is a Criterion Object
|
|
12427
|
-
return [...criteria].
|
|
12591
|
+
return [...criteria].map(criterion => this.#evaluateCriterion(criterion, context));
|
|
12428
12592
|
}
|
|
12429
12593
|
|
|
12430
12594
|
/**
|
|
12431
12595
|
* Selects every matching `onSuccess` / `onFailure` action for the outcome, in
|
|
12432
|
-
* list order, gating each action's criteria against the context
|
|
12596
|
+
* list order, gating each action's criteria against the context, and records
|
|
12597
|
+
* the outcome of every action criterion evaluated.
|
|
12433
12598
|
*
|
|
12434
12599
|
* The step's own list is the whole story here: a step that declares none of
|
|
12435
12600
|
* its own already carries the workflow-level defaults, inherited by
|
|
@@ -12448,25 +12613,65 @@ class StepExecutor {
|
|
|
12448
12613
|
* the expression context through this one method rather than wiring their own.
|
|
12449
12614
|
*/
|
|
12450
12615
|
selectActions(step, successful, context) {
|
|
12451
|
-
const
|
|
12452
|
-
|
|
12453
|
-
|
|
12454
|
-
|
|
12455
|
-
|
|
12456
|
-
|
|
12457
|
-
|
|
12458
|
-
|
|
12459
|
-
// abort over a default written for the operation steps.
|
|
12460
|
-
if (error instanceof _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_12__["default"] && error.reason === 'unavailable-expression') {
|
|
12461
|
-
return false;
|
|
12462
|
-
}
|
|
12463
|
-
throw error;
|
|
12464
|
-
}
|
|
12616
|
+
const actionCriteria = [];
|
|
12617
|
+
const isCriterionMet = (criterion, action) => {
|
|
12618
|
+
const record = {
|
|
12619
|
+
...this.#evaluateCriterion(criterion, context),
|
|
12620
|
+
actionName: (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(action.name)
|
|
12621
|
+
};
|
|
12622
|
+
actionCriteria.push(record);
|
|
12623
|
+
return record.met;
|
|
12465
12624
|
};
|
|
12466
12625
|
const scope = {
|
|
12467
12626
|
stepId: (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(step.stepId)
|
|
12468
12627
|
};
|
|
12469
|
-
|
|
12628
|
+
const matchedActions = successful ? this.#actionResolver.resolveOnSuccess(step.onSuccess, isCriterionMet, scope) : this.#actionResolver.resolveOnFailure(step.onFailure, isCriterionMet, scope);
|
|
12629
|
+
return {
|
|
12630
|
+
matchedActions,
|
|
12631
|
+
actionCriteria
|
|
12632
|
+
};
|
|
12633
|
+
}
|
|
12634
|
+
|
|
12635
|
+
/**
|
|
12636
|
+
* Evaluates one criterion into a {@link CriterionEvaluationRecord}. A
|
|
12637
|
+
* condition that cannot be evaluated is unmet and records why; any other
|
|
12638
|
+
* error propagates.
|
|
12639
|
+
*/
|
|
12640
|
+
#evaluateCriterion(criterion, context) {
|
|
12641
|
+
const condition = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(criterion.condition);
|
|
12642
|
+
try {
|
|
12643
|
+
const {
|
|
12644
|
+
met,
|
|
12645
|
+
error
|
|
12646
|
+
} = this.#criterionEvaluator.evaluate(criterion, expression => this.#evaluate(context, expression));
|
|
12647
|
+
if (error === undefined) return {
|
|
12648
|
+
condition,
|
|
12649
|
+
met
|
|
12650
|
+
};
|
|
12651
|
+
return {
|
|
12652
|
+
condition,
|
|
12653
|
+
met,
|
|
12654
|
+
diagnostic: {
|
|
12655
|
+
code: error.reason,
|
|
12656
|
+
message: error.message
|
|
12657
|
+
}
|
|
12658
|
+
};
|
|
12659
|
+
} catch (error) {
|
|
12660
|
+
// a step that calls a workflow made no HTTP call, so a condition on one
|
|
12661
|
+
// fails like any unevaluable condition; the diagnostic keeps the
|
|
12662
|
+
// authoring mistake visible.
|
|
12663
|
+
if (error instanceof _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_12__["default"] && error.reason === 'unavailable-expression') {
|
|
12664
|
+
return {
|
|
12665
|
+
condition,
|
|
12666
|
+
met: false,
|
|
12667
|
+
diagnostic: {
|
|
12668
|
+
code: error.reason,
|
|
12669
|
+
message: error.message
|
|
12670
|
+
}
|
|
12671
|
+
};
|
|
12672
|
+
}
|
|
12673
|
+
throw error;
|
|
12674
|
+
}
|
|
12470
12675
|
}
|
|
12471
12676
|
|
|
12472
12677
|
/**
|
|
@@ -13421,6 +13626,8 @@ class WorkflowExecutor {
|
|
|
13421
13626
|
action,
|
|
13422
13627
|
attempts,
|
|
13423
13628
|
durationMs: this.#now() - stepStartedAt,
|
|
13629
|
+
successCriteria: outcome.successCriteria,
|
|
13630
|
+
actionCriteria: outcome.actionCriteria,
|
|
13424
13631
|
...(subWorkflows.length > 0 ? {
|
|
13425
13632
|
subWorkflows
|
|
13426
13633
|
} : {}),
|
|
@@ -13951,19 +14158,26 @@ class WorkflowExecutor {
|
|
|
13951
14158
|
// apply on top — they are the author's assertion about this step, and
|
|
13952
14159
|
// dropping them because the step happens to target a workflow would
|
|
13953
14160
|
// silently discard it. They see the sub-run's own outputs (`{}` when it
|
|
13954
|
-
// transferred) through `$outputs` and `$workflows
|
|
14161
|
+
// transferred) through `$outputs` and `$workflows`, and are evaluated
|
|
14162
|
+
// even when the sub-run failed, so the record explains them either way.
|
|
13955
14163
|
// the criteria and actions are the *calling* step's, so they are
|
|
13956
14164
|
// evaluated by the parent document's step executor — only the sub-run
|
|
13957
14165
|
// itself switched documents.
|
|
13958
14166
|
const stepExecutor = this.#stepExecutor.forDocument(document);
|
|
13959
|
-
const
|
|
13960
|
-
const
|
|
14167
|
+
const successCriteria = stepExecutor.evaluateCriteria(step, context);
|
|
14168
|
+
const successful = !this.#settledFailed(result) && successCriteria.every(criterion => criterion.met);
|
|
14169
|
+
const {
|
|
14170
|
+
matchedActions,
|
|
14171
|
+
actionCriteria
|
|
14172
|
+
} = stepExecutor.selectActions(step, successful, context);
|
|
13961
14173
|
return {
|
|
13962
14174
|
stepId,
|
|
13963
14175
|
successful,
|
|
13964
14176
|
outputs,
|
|
13965
14177
|
action: matchedActions[0],
|
|
13966
|
-
matchedActions
|
|
14178
|
+
matchedActions,
|
|
14179
|
+
successCriteria,
|
|
14180
|
+
actionCriteria
|
|
13967
14181
|
};
|
|
13968
14182
|
};
|
|
13969
14183
|
}
|
|
@@ -115133,32 +115347,34 @@ let __webpack_exports__ = {};
|
|
|
115133
115347
|
__webpack_require__.r(__webpack_exports__);
|
|
115134
115348
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
115135
115349
|
/* harmony export */ APIDocument: () => (/* reexport safe */ _document_APIDocument_ts__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
|
115136
|
-
/* harmony export */ ActionResolver: () => (/* reexport safe */
|
|
115350
|
+
/* harmony export */ ActionResolver: () => (/* reexport safe */ _action_ActionResolver_ts__WEBPACK_IMPORTED_MODULE_42__["default"]),
|
|
115137
115351
|
/* harmony export */ ArazzoDocument: () => (/* reexport safe */ _document_ArazzoDocument_ts__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
115138
115352
|
/* harmony export */ ArazzoDocumentRegistryProvider: () => (/* reexport safe */ _registry_providers_ArazzoDocumentRegistryProvider_ts__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
115139
115353
|
/* harmony export */ ArazzoRunner: () => (/* reexport safe */ _ArazzoRunner_ts__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
115140
|
-
/* harmony export */ ArazzoRunnerError: () => (/* reexport safe */
|
|
115354
|
+
/* harmony export */ ArazzoRunnerError: () => (/* reexport safe */ _errors_ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_49__["default"]),
|
|
115141
115355
|
/* harmony export */ ArazzoSourceDescriptionIndex: () => (/* reexport safe */ _document_ArazzoSourceDescriptionIndex_ts__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
|
115142
115356
|
/* harmony export */ ArazzoStepExtractor: () => (/* reexport safe */ _extractor_ArazzoStepExtractor_ts__WEBPACK_IMPORTED_MODULE_13__["default"]),
|
|
115143
115357
|
/* harmony export */ ArazzoStepIndex: () => (/* reexport safe */ _document_ArazzoStepIndex_ts__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
|
115144
115358
|
/* harmony export */ ArazzoStepNormalizer: () => (/* reexport safe */ _normalizer_ArazzoStepNormalizer_ts__WEBPACK_IMPORTED_MODULE_16__["default"]),
|
|
115145
|
-
/* harmony export */ ArazzoValueResolver: () => (/* reexport safe */
|
|
115359
|
+
/* harmony export */ ArazzoValueResolver: () => (/* reexport safe */ _resolver_ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODULE_36__["default"]),
|
|
115146
115360
|
/* harmony export */ ArazzoWorkflowExtractor: () => (/* reexport safe */ _extractor_ArazzoWorkflowExtractor_ts__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
115147
115361
|
/* harmony export */ ArazzoWorkflowIndex: () => (/* reexport safe */ _document_ArazzoWorkflowIndex_ts__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
|
115148
|
-
/* harmony export */ ArazzoWorkflowLocatorNormalizer: () => (/* reexport safe */
|
|
115362
|
+
/* harmony export */ ArazzoWorkflowLocatorNormalizer: () => (/* reexport safe */ _executor_ArazzoWorkflowLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_48__["default"]),
|
|
115149
115363
|
/* harmony export */ ArazzoWorkflowNormalizer: () => (/* reexport safe */ _normalizer_ArazzoWorkflowNormalizer_ts__WEBPACK_IMPORTED_MODULE_15__["default"]),
|
|
115150
|
-
/* harmony export */ AssemblerError: () => (/* reexport safe */
|
|
115151
|
-
/* harmony export */ ClientError: () => (/* reexport safe */
|
|
115152
|
-
/* harmony export */ CriterionError: () => (/* reexport safe */
|
|
115364
|
+
/* harmony export */ AssemblerError: () => (/* reexport safe */ _errors_AssemblerError_ts__WEBPACK_IMPORTED_MODULE_50__["default"]),
|
|
115365
|
+
/* harmony export */ ClientError: () => (/* reexport safe */ _errors_ClientError_ts__WEBPACK_IMPORTED_MODULE_51__["default"]),
|
|
115366
|
+
/* harmony export */ CriterionError: () => (/* reexport safe */ _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_58__["default"]),
|
|
115367
|
+
/* harmony export */ CriterionErrorReason: () => (/* reexport safe */ _criterion_CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_34__["default"]),
|
|
115368
|
+
/* harmony export */ CriterionEvaluationError: () => (/* reexport safe */ _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_59__["default"]),
|
|
115153
115369
|
/* harmony export */ CriterionEvaluator: () => (/* reexport safe */ _criterion_CriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_29__["default"]),
|
|
115154
|
-
/* harmony export */ DocumentLoadError: () => (/* reexport safe */
|
|
115370
|
+
/* harmony export */ DocumentLoadError: () => (/* reexport safe */ _errors_DocumentLoadError_ts__WEBPACK_IMPORTED_MODULE_56__["default"]),
|
|
115155
115371
|
/* harmony export */ DocumentRegistry: () => (/* reexport safe */ _registry_DocumentRegistry_ts__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
115156
115372
|
/* harmony export */ DocumentRegistryProvider: () => (/* reexport safe */ _registry_providers_DocumentRegistryProvider_ts__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
115157
|
-
/* harmony export */ ExecutionError: () => (/* reexport safe */
|
|
115158
|
-
/* harmony export */ ExtractionError: () => (/* reexport safe */
|
|
115159
|
-
/* harmony export */ InvalidEntryDocumentError: () => (/* reexport safe */
|
|
115373
|
+
/* harmony export */ ExecutionError: () => (/* reexport safe */ _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_61__["default"]),
|
|
115374
|
+
/* harmony export */ ExtractionError: () => (/* reexport safe */ _errors_ExtractionError_ts__WEBPACK_IMPORTED_MODULE_53__["default"]),
|
|
115375
|
+
/* harmony export */ InvalidEntryDocumentError: () => (/* reexport safe */ _errors_InvalidEntryDocumentError_ts__WEBPACK_IMPORTED_MODULE_54__["default"]),
|
|
115160
115376
|
/* harmony export */ JSONPathCriterionEvaluator: () => (/* reexport safe */ _criterion_JSONPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_32__["default"]),
|
|
115161
|
-
/* harmony export */ NormalizationError: () => (/* reexport safe */
|
|
115377
|
+
/* harmony export */ NormalizationError: () => (/* reexport safe */ _errors_NormalizationError_ts__WEBPACK_IMPORTED_MODULE_52__["default"]),
|
|
115162
115378
|
/* harmony export */ OpenAPI2DocumentAssembler: () => (/* reexport safe */ _assembler_OpenAPI2DocumentAssembler_ts__WEBPACK_IMPORTED_MODULE_22__["default"]),
|
|
115163
115379
|
/* harmony export */ OpenAPI2OperationNormalizer: () => (/* reexport safe */ _normalizer_OpenAPI2OperationNormalizer_ts__WEBPACK_IMPORTED_MODULE_18__["default"]),
|
|
115164
115380
|
/* harmony export */ OpenAPI30DocumentAssembler: () => (/* reexport safe */ _assembler_OpenAPI30DocumentAssembler_ts__WEBPACK_IMPORTED_MODULE_23__["default"]),
|
|
@@ -115168,31 +115384,31 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
115168
115384
|
/* harmony export */ OpenAPIDocument: () => (/* reexport safe */ _document_OpenAPIDocument_ts__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
115169
115385
|
/* harmony export */ OpenAPIDocumentAssembler: () => (/* reexport safe */ _assembler_OpenAPIDocumentAssembler_ts__WEBPACK_IMPORTED_MODULE_21__["default"]),
|
|
115170
115386
|
/* harmony export */ OpenAPIDocumentRegistryProvider: () => (/* reexport safe */ _registry_providers_OpenAPIDocumentRegistryProvider_ts__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
115171
|
-
/* harmony export */ OpenAPIOperationExecutor: () => (/* reexport safe */
|
|
115387
|
+
/* harmony export */ OpenAPIOperationExecutor: () => (/* reexport safe */ _executor_OpenAPIOperationExecutor_ts__WEBPACK_IMPORTED_MODULE_45__["default"]),
|
|
115172
115388
|
/* harmony export */ OpenAPIOperationExtractor: () => (/* reexport safe */ _extractor_OpenAPIOperationExtractor_ts__WEBPACK_IMPORTED_MODULE_14__["default"]),
|
|
115173
115389
|
/* harmony export */ OpenAPIOperationIndex: () => (/* reexport safe */ _document_OpenAPIOperationIndex_ts__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
115174
|
-
/* harmony export */ OpenAPIOperationLocatorNormalizer: () => (/* reexport safe */
|
|
115390
|
+
/* harmony export */ OpenAPIOperationLocatorNormalizer: () => (/* reexport safe */ _executor_OpenAPIOperationLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_47__["default"]),
|
|
115175
115391
|
/* harmony export */ OpenAPIOperationNormalizer: () => (/* reexport safe */ _normalizer_OpenAPIOperationNormalizer_ts__WEBPACK_IMPORTED_MODULE_17__["default"]),
|
|
115176
|
-
/* harmony export */ OpenAPIOperationParameterResolver: () => (/* reexport safe */
|
|
115392
|
+
/* harmony export */ OpenAPIOperationParameterResolver: () => (/* reexport safe */ _resolver_OpenAPIOperationParameterResolver_ts__WEBPACK_IMPORTED_MODULE_38__["default"]),
|
|
115177
115393
|
/* harmony export */ OpenAPIOperationResponse: () => (/* reexport safe */ _client_OpenAPIOperationResponse_ts__WEBPACK_IMPORTED_MODULE_26__["default"]),
|
|
115178
115394
|
/* harmony export */ OpenAPIOperationResponseNormalizer: () => (/* reexport safe */ _client_OpenAPIOperationResponseNormalizer_ts__WEBPACK_IMPORTED_MODULE_27__["default"]),
|
|
115179
|
-
/* harmony export */ OutputResolver: () => (/* reexport safe */
|
|
115395
|
+
/* harmony export */ OutputResolver: () => (/* reexport safe */ _resolver_OutputResolver_ts__WEBPACK_IMPORTED_MODULE_40__["default"]),
|
|
115180
115396
|
/* harmony export */ RegexCriterionEvaluator: () => (/* reexport safe */ _criterion_RegexCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_31__["default"]),
|
|
115181
|
-
/* harmony export */ RequestBodyResolver: () => (/* reexport safe */
|
|
115182
|
-
/* harmony export */ ResolverError: () => (/* reexport safe */
|
|
115183
|
-
/* harmony export */ RuntimeExpressionError: () => (/* reexport safe */
|
|
115397
|
+
/* harmony export */ RequestBodyResolver: () => (/* reexport safe */ _resolver_RequestBodyResolver_ts__WEBPACK_IMPORTED_MODULE_41__["default"]),
|
|
115398
|
+
/* harmony export */ ResolverError: () => (/* reexport safe */ _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_60__["default"]),
|
|
115399
|
+
/* harmony export */ RuntimeExpressionError: () => (/* reexport safe */ _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_57__["default"]),
|
|
115184
115400
|
/* harmony export */ RuntimeExpressionEvaluator: () => (/* reexport safe */ _expression_RuntimeExpressionEvaluator_ts__WEBPACK_IMPORTED_MODULE_28__["default"]),
|
|
115185
115401
|
/* harmony export */ SimpleCriterionEvaluator: () => (/* reexport safe */ _criterion_SimpleCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_30__["default"]),
|
|
115186
|
-
/* harmony export */ SourceDescriptionsLocatorNormalizer: () => (/* reexport safe */
|
|
115187
|
-
/* harmony export */ StepExecutor: () => (/* reexport safe */
|
|
115188
|
-
/* harmony export */ StepParameterResolver: () => (/* reexport safe */
|
|
115189
|
-
/* harmony export */ UnmatchedProviderError: () => (/* reexport safe */
|
|
115190
|
-
/* harmony export */ WorkflowExecutionState: () => (/* reexport safe */
|
|
115191
|
-
/* harmony export */ WorkflowExecutor: () => (/* reexport safe */
|
|
115192
|
-
/* harmony export */ WorkflowParameterResolver: () => (/* reexport safe */
|
|
115402
|
+
/* harmony export */ SourceDescriptionsLocatorNormalizer: () => (/* reexport safe */ _executor_SourceDescriptionsLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_46__["default"]),
|
|
115403
|
+
/* harmony export */ StepExecutor: () => (/* reexport safe */ _executor_StepExecutor_ts__WEBPACK_IMPORTED_MODULE_44__["default"]),
|
|
115404
|
+
/* harmony export */ StepParameterResolver: () => (/* reexport safe */ _resolver_StepParameterResolver_ts__WEBPACK_IMPORTED_MODULE_37__["default"]),
|
|
115405
|
+
/* harmony export */ UnmatchedProviderError: () => (/* reexport safe */ _errors_UnmatchedProviderError_ts__WEBPACK_IMPORTED_MODULE_55__["default"]),
|
|
115406
|
+
/* harmony export */ WorkflowExecutionState: () => (/* reexport safe */ _state_WorkflowExecutionState_ts__WEBPACK_IMPORTED_MODULE_35__["default"]),
|
|
115407
|
+
/* harmony export */ WorkflowExecutor: () => (/* reexport safe */ _executor_WorkflowExecutor_ts__WEBPACK_IMPORTED_MODULE_43__["default"]),
|
|
115408
|
+
/* harmony export */ WorkflowParameterResolver: () => (/* reexport safe */ _resolver_WorkflowParameterResolver_ts__WEBPACK_IMPORTED_MODULE_39__["default"]),
|
|
115193
115409
|
/* harmony export */ XPathCriterionEvaluator: () => (/* reexport safe */ _criterion_XPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_33__["default"]),
|
|
115194
115410
|
/* harmony export */ httpClientFetch: () => (/* reexport safe */ _client_HTTPClientFetch_ts__WEBPACK_IMPORTED_MODULE_25__["default"]),
|
|
115195
|
-
/* harmony export */ settledResult: () => (/* reexport safe */
|
|
115411
|
+
/* harmony export */ settledResult: () => (/* reexport safe */ _executor_WorkflowExecutor_ts__WEBPACK_IMPORTED_MODULE_43__.settledResult)
|
|
115196
115412
|
/* harmony export */ });
|
|
115197
115413
|
/* harmony import */ var _ArazzoRunner_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57253);
|
|
115198
115414
|
/* harmony import */ var _registry_DocumentRegistry_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4044);
|
|
@@ -115228,32 +115444,34 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
115228
115444
|
/* harmony import */ var _criterion_RegexCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(13517);
|
|
115229
115445
|
/* harmony import */ var _criterion_JSONPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(90089);
|
|
115230
115446
|
/* harmony import */ var _criterion_XPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(84997);
|
|
115231
|
-
/* harmony import */ var
|
|
115232
|
-
/* harmony import */ var
|
|
115233
|
-
/* harmony import */ var
|
|
115234
|
-
/* harmony import */ var
|
|
115235
|
-
/* harmony import */ var
|
|
115236
|
-
/* harmony import */ var
|
|
115237
|
-
/* harmony import */ var
|
|
115238
|
-
/* harmony import */ var
|
|
115239
|
-
/* harmony import */ var
|
|
115240
|
-
/* harmony import */ var
|
|
115241
|
-
/* harmony import */ var
|
|
115242
|
-
/* harmony import */ var
|
|
115243
|
-
/* harmony import */ var
|
|
115244
|
-
/* harmony import */ var
|
|
115245
|
-
/* harmony import */ var
|
|
115246
|
-
/* harmony import */ var
|
|
115247
|
-
/* harmony import */ var
|
|
115248
|
-
/* harmony import */ var
|
|
115249
|
-
/* harmony import */ var
|
|
115250
|
-
/* harmony import */ var
|
|
115251
|
-
/* harmony import */ var
|
|
115252
|
-
/* harmony import */ var
|
|
115253
|
-
/* harmony import */ var
|
|
115254
|
-
/* harmony import */ var
|
|
115255
|
-
/* harmony import */ var
|
|
115256
|
-
/* harmony import */ var
|
|
115447
|
+
/* harmony import */ var _criterion_CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(94547);
|
|
115448
|
+
/* harmony import */ var _state_WorkflowExecutionState_ts__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(61596);
|
|
115449
|
+
/* harmony import */ var _resolver_ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(22411);
|
|
115450
|
+
/* harmony import */ var _resolver_StepParameterResolver_ts__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(92126);
|
|
115451
|
+
/* harmony import */ var _resolver_OpenAPIOperationParameterResolver_ts__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(3347);
|
|
115452
|
+
/* harmony import */ var _resolver_WorkflowParameterResolver_ts__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(95839);
|
|
115453
|
+
/* harmony import */ var _resolver_OutputResolver_ts__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(99494);
|
|
115454
|
+
/* harmony import */ var _resolver_RequestBodyResolver_ts__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(67410);
|
|
115455
|
+
/* harmony import */ var _action_ActionResolver_ts__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(51097);
|
|
115456
|
+
/* harmony import */ var _executor_WorkflowExecutor_ts__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(92152);
|
|
115457
|
+
/* harmony import */ var _executor_StepExecutor_ts__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(96007);
|
|
115458
|
+
/* harmony import */ var _executor_OpenAPIOperationExecutor_ts__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(57680);
|
|
115459
|
+
/* harmony import */ var _executor_SourceDescriptionsLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(83461);
|
|
115460
|
+
/* harmony import */ var _executor_OpenAPIOperationLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(7308);
|
|
115461
|
+
/* harmony import */ var _executor_ArazzoWorkflowLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(98885);
|
|
115462
|
+
/* harmony import */ var _errors_ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(23949);
|
|
115463
|
+
/* harmony import */ var _errors_AssemblerError_ts__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(90706);
|
|
115464
|
+
/* harmony import */ var _errors_ClientError_ts__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(81763);
|
|
115465
|
+
/* harmony import */ var _errors_NormalizationError_ts__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(35523);
|
|
115466
|
+
/* harmony import */ var _errors_ExtractionError_ts__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(90713);
|
|
115467
|
+
/* harmony import */ var _errors_InvalidEntryDocumentError_ts__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(40198);
|
|
115468
|
+
/* harmony import */ var _errors_UnmatchedProviderError_ts__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(46132);
|
|
115469
|
+
/* harmony import */ var _errors_DocumentLoadError_ts__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(24089);
|
|
115470
|
+
/* harmony import */ var _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(48770);
|
|
115471
|
+
/* harmony import */ var _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(41233);
|
|
115472
|
+
/* harmony import */ var _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(71731);
|
|
115473
|
+
/* harmony import */ var _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(8696);
|
|
115474
|
+
/* harmony import */ var _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(17658);
|
|
115257
115475
|
/* Runner */
|
|
115258
115476
|
|
|
115259
115477
|
|
|
@@ -115307,6 +115525,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
115307
115525
|
|
|
115308
115526
|
|
|
115309
115527
|
|
|
115528
|
+
|
|
115310
115529
|
/* Execution State */
|
|
115311
115530
|
|
|
115312
115531
|
/* Resolvers */
|
|
@@ -115338,6 +115557,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
115338
115557
|
|
|
115339
115558
|
|
|
115340
115559
|
|
|
115560
|
+
|
|
115341
115561
|
})();
|
|
115342
115562
|
|
|
115343
115563
|
/******/ return __webpack_exports__;
|