@usearazzo/runner 1.0.1-alpha.23 → 1.0.1-alpha.25
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 +3 -1
- package/dist/arazzo-runner.browser.js +400 -229
- 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/document/ArazzoDocument.cjs +33 -1
- package/src/document/ArazzoDocument.mjs +32 -1
- 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 +11 -11
- package/src/executor/OpenAPIOperationLocatorNormalizer.mjs +11 -11
- package/src/executor/StepExecutor.cjs +7 -7
- package/src/executor/StepExecutor.mjs +7 -7
- 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 +13 -13
- package/src/executor/WorkflowExecutor.mjs +13 -13
- 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 +228 -46
- 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
|
}
|
|
@@ -10641,16 +10573,27 @@ class APIDocument {
|
|
|
10641
10573
|
"use strict";
|
|
10642
10574
|
__webpack_require__.r(__webpack_exports__);
|
|
10643
10575
|
/* harmony import */ var _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7456);
|
|
10644
|
-
/* harmony import */ var
|
|
10576
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(62823);
|
|
10577
|
+
/* harmony import */ var _speclynx_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(94851);
|
|
10578
|
+
/* harmony import */ var _APIDocument_ts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(44919);
|
|
10579
|
+
|
|
10580
|
+
|
|
10581
|
+
|
|
10645
10582
|
|
|
10646
10583
|
|
|
10584
|
+
/**
|
|
10585
|
+
* A workflow of an Arazzo document, as listed by
|
|
10586
|
+
* {@link ArazzoDocument.listWorkflows}.
|
|
10587
|
+
* @public
|
|
10588
|
+
*/
|
|
10589
|
+
|
|
10647
10590
|
/**
|
|
10648
10591
|
* An Arazzo document held by the document registry: the parse result together
|
|
10649
10592
|
* with the indexes the provider built over it — a container, not a logic
|
|
10650
|
-
* bearer. The methods below are thin reads of
|
|
10593
|
+
* bearer. The methods below are thin reads of those indexes.
|
|
10651
10594
|
* @public
|
|
10652
10595
|
*/
|
|
10653
|
-
class ArazzoDocument extends
|
|
10596
|
+
class ArazzoDocument extends _APIDocument_ts__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
10654
10597
|
type = 'arazzo';
|
|
10655
10598
|
isEntry;
|
|
10656
10599
|
/**
|
|
@@ -10683,6 +10626,30 @@ class ArazzoDocument extends _APIDocument_ts__WEBPACK_IMPORTED_MODULE_1__["defau
|
|
|
10683
10626
|
return doc.type === 'arazzo';
|
|
10684
10627
|
}
|
|
10685
10628
|
|
|
10629
|
+
/**
|
|
10630
|
+
* The workflows of this document that can be addressed by `workflowId`, in
|
|
10631
|
+
* document order. Reads this document only: source descriptions are neither
|
|
10632
|
+
* loaded nor listed.
|
|
10633
|
+
*/
|
|
10634
|
+
listWorkflows() {
|
|
10635
|
+
return [...this.workflowIndex].map(([workflowId, jsonPointer]) => {
|
|
10636
|
+
const {
|
|
10637
|
+
summary,
|
|
10638
|
+
description
|
|
10639
|
+
} = (0,_speclynx_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_2__.evaluate)(this.parseResult.api, jsonPointer);
|
|
10640
|
+
return {
|
|
10641
|
+
workflowId,
|
|
10642
|
+
jsonPointer,
|
|
10643
|
+
...((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(summary) && {
|
|
10644
|
+
summary: (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(summary)
|
|
10645
|
+
}),
|
|
10646
|
+
...((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(description) && {
|
|
10647
|
+
description: (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(description)
|
|
10648
|
+
})
|
|
10649
|
+
};
|
|
10650
|
+
});
|
|
10651
|
+
}
|
|
10652
|
+
|
|
10686
10653
|
/**
|
|
10687
10654
|
* Resolves a source description name to its canonical URI — precomputed by
|
|
10688
10655
|
* the provider, resolved against this document's base URI.
|
|
@@ -11053,8 +11020,60 @@ class ClientError extends _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__["de
|
|
|
11053
11020
|
__webpack_require__.r(__webpack_exports__);
|
|
11054
11021
|
/* harmony import */ var _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23949);
|
|
11055
11022
|
|
|
11056
|
-
|
|
11057
|
-
|
|
11023
|
+
|
|
11024
|
+
/**
|
|
11025
|
+
* Carries a `reason`, one of the class's static reason fields.
|
|
11026
|
+
*
|
|
11027
|
+
* Every static on this class is a reason: {@link CriterionErrorReason} is
|
|
11028
|
+
* derived from the class's own statics, so a non-reason static would join the
|
|
11029
|
+
* union.
|
|
11030
|
+
* @public
|
|
11031
|
+
*/
|
|
11032
|
+
class CriterionError extends _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
11033
|
+
/** The element is not a Criterion Object. */
|
|
11034
|
+
static InvalidCriterion = 'invalid-criterion';
|
|
11035
|
+
/** The `condition` is missing or empty. */
|
|
11036
|
+
static MissingCondition = 'missing-condition';
|
|
11037
|
+
/** The `type` is present but unreadable. */
|
|
11038
|
+
static InvalidType = 'invalid-type';
|
|
11039
|
+
/** The `type` names no known criterion type. */
|
|
11040
|
+
static UnknownType = 'unknown-type';
|
|
11041
|
+
/** The expression type `version` is present but not a string. */
|
|
11042
|
+
static InvalidVersion = 'invalid-version';
|
|
11043
|
+
/** The expression type `version` is not the one this runner supports. */
|
|
11044
|
+
static UnsupportedVersion = 'unsupported-version';
|
|
11045
|
+
/** The `context` is not a runtime expression. */
|
|
11046
|
+
static InvalidContext = 'invalid-context';
|
|
11047
|
+
/** A `regex`, `jsonpath` or `xpath` criterion has no `context`. */
|
|
11048
|
+
static MissingContext = 'missing-context';
|
|
11049
|
+
/** The `simple` condition cannot be parsed. */
|
|
11050
|
+
static InvalidSimple = 'invalid-simple';
|
|
11051
|
+
/** The `regex` condition is not a valid regular expression. */
|
|
11052
|
+
static InvalidRegex = 'invalid-regex';
|
|
11053
|
+
/** The `jsonpath` condition is not a valid JSONPath query. */
|
|
11054
|
+
static InvalidJSONPath = 'invalid-jsonpath';
|
|
11055
|
+
/** The `xpath` condition is invalid or fails to evaluate. */
|
|
11056
|
+
static InvalidXPath = 'invalid-xpath';
|
|
11057
|
+
/** The resolved `xpath` context is not XML. */
|
|
11058
|
+
static InvalidXPathContext = 'invalid-xpath-context';
|
|
11059
|
+
constructor(message, options) {
|
|
11060
|
+
super(message, options);
|
|
11061
|
+
}
|
|
11062
|
+
}
|
|
11063
|
+
|
|
11064
|
+
/**
|
|
11065
|
+
* One of the reasons a {@link CriterionError} carries: a `CriterionError`
|
|
11066
|
+
* static such as `CriterionError.InvalidRegex`.
|
|
11067
|
+
*
|
|
11068
|
+
* Structural reasons mark a criterion that is malformed as written; they are
|
|
11069
|
+
* thrown as a plain `CriterionError`. Evaluation reasons (`InvalidSimple`,
|
|
11070
|
+
* `InvalidRegex`, `InvalidJSONPath`, `InvalidXPath`, `InvalidXPathContext`) mark
|
|
11071
|
+
* a condition that cannot be evaluated; they are thrown as a
|
|
11072
|
+
* {@link CriterionEvaluationError}, which `CriterionEvaluator` turns into an
|
|
11073
|
+
* unmet criterion.
|
|
11074
|
+
* @public
|
|
11075
|
+
*/
|
|
11076
|
+
|
|
11058
11077
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CriterionError);
|
|
11059
11078
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
11060
11079
|
/* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
|
|
@@ -11114,8 +11133,80 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11114
11133
|
/* harmony import */ var _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23949);
|
|
11115
11134
|
|
|
11116
11135
|
|
|
11117
|
-
/**
|
|
11118
|
-
class
|
|
11136
|
+
/**
|
|
11137
|
+
* Carries a `reason`, one of the class's static reason fields.
|
|
11138
|
+
*
|
|
11139
|
+
* Every static on this class is a reason: {@link ExecutionErrorReason} is
|
|
11140
|
+
* derived from the class's own statics, so a non-reason static would join the
|
|
11141
|
+
* union.
|
|
11142
|
+
* @public
|
|
11143
|
+
*/
|
|
11144
|
+
class ExecutionError extends _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
11145
|
+
/** The run was cancelled through its `AbortSignal`; the signal's reason is the `cause`. */
|
|
11146
|
+
static Aborted = 'aborted';
|
|
11147
|
+
/** A step or a `goto`/`retry` action declares more than one mutually exclusive target. */
|
|
11148
|
+
static AmbiguousTarget = 'ambiguous-target';
|
|
11149
|
+
/** The `dependsOn` edges alone form a cycle between workflows. */
|
|
11150
|
+
static DependsOnCycle = 'dependsOn-cycle';
|
|
11151
|
+
/** A `goto` action declares neither a `stepId` nor a `workflowId`. */
|
|
11152
|
+
static GotoTargetMissing = 'goto-target-missing';
|
|
11153
|
+
/** A `goto` action's `stepId` names no step in the workflow. */
|
|
11154
|
+
static GotoTargetNotFound = 'goto-target-not-found';
|
|
11155
|
+
/** An `operationId` or `operationPath` is not a valid operation reference. */
|
|
11156
|
+
static InvalidOperationReference = 'invalid-operation-reference';
|
|
11157
|
+
/** A `workflowId` is not a valid `$sourceDescriptions.{name}.{workflowId}` expression. */
|
|
11158
|
+
static InvalidWorkflowReference = 'invalid-workflow-reference';
|
|
11159
|
+
/** A workflow's `dependsOn` is not a list or holds a non-string entry. */
|
|
11160
|
+
static MalformedDependsOn = 'malformed-dependsOn';
|
|
11161
|
+
/** A workflow's `steps` is not a list or holds an entry that is not a Step Object. */
|
|
11162
|
+
static MalformedSteps = 'malformed-steps';
|
|
11163
|
+
/** A step run as an operation declares neither an `operationId` nor an `operationPath`. */
|
|
11164
|
+
static MissingOperation = 'missing-operation';
|
|
11165
|
+
/** An operation reference locates no operation in its OpenAPI source description. */
|
|
11166
|
+
static OperationNotFound = 'operation-not-found';
|
|
11167
|
+
/** A `retry` action references a step or workflow, but no run reference was given to run it. */
|
|
11168
|
+
static RetryReferenceUnsupported = 'retry-reference-unsupported';
|
|
11169
|
+
/** A `retry` action's `stepId` names no step in the workflow. */
|
|
11170
|
+
static RetryTargetNotFound = 'retry-target-not-found';
|
|
11171
|
+
/** A workflow reference names a source description that is not an Arazzo document. */
|
|
11172
|
+
static SourceDescriptionNotArazzo = 'source-description-not-arazzo';
|
|
11173
|
+
/** A reference names a source description the Arazzo document does not define. */
|
|
11174
|
+
static SourceDescriptionNotFound = 'source-description-not-found';
|
|
11175
|
+
/** An operation reference names a source description that is not an OpenAPI document. */
|
|
11176
|
+
static SourceDescriptionNotOpenAPI = 'source-description-not-openapi';
|
|
11177
|
+
/** A workflow exceeded its budget of step attempts. */
|
|
11178
|
+
static StepBudget = 'step-budget';
|
|
11179
|
+
/** An action declares a `type` other than `end`, `goto` or `retry`. */
|
|
11180
|
+
static UnknownActionType = 'unknown-action-type';
|
|
11181
|
+
/** `execute` received an option it does not know. */
|
|
11182
|
+
static UnknownExecuteOption = 'unknown-execute-option';
|
|
11183
|
+
/** A step produced a transition the workflow executor does not recognize. */
|
|
11184
|
+
static UnknownTransitionKind = 'unknown-transition-kind';
|
|
11185
|
+
/** A sub-workflow call (alone or together with `dependsOn`) forms a cycle between workflows. */
|
|
11186
|
+
static WorkflowCycle = 'workflow-cycle';
|
|
11187
|
+
/** Workflows nest deeper than the configured limit. */
|
|
11188
|
+
static WorkflowDepth = 'workflow-depth';
|
|
11189
|
+
/** A workflow reference names a workflow the Arazzo document does not define. */
|
|
11190
|
+
static WorkflowNotFound = 'workflow-not-found';
|
|
11191
|
+
/** A step that targets a workflow was handed to the step executor, which runs operations only. */
|
|
11192
|
+
static WorkflowStep = 'workflow-step';
|
|
11193
|
+
|
|
11194
|
+
/**
|
|
11195
|
+
* The chain of workflowIds the error concerns — the loop A → B → A for a
|
|
11196
|
+
* cycle, or the call chain in progress when a budget ran out.
|
|
11197
|
+
*/
|
|
11198
|
+
|
|
11199
|
+
constructor(message, options) {
|
|
11200
|
+
super(message, options);
|
|
11201
|
+
}
|
|
11202
|
+
}
|
|
11203
|
+
|
|
11204
|
+
/**
|
|
11205
|
+
* One of the reasons an {@link ExecutionError} carries: an `ExecutionError`
|
|
11206
|
+
* static such as `ExecutionError.OperationNotFound`.
|
|
11207
|
+
* @public
|
|
11208
|
+
*/
|
|
11209
|
+
|
|
11119
11210
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ExecutionError);
|
|
11120
11211
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
11121
11212
|
/* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
|
|
@@ -11186,8 +11277,60 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11186
11277
|
/* harmony import */ var _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23949);
|
|
11187
11278
|
|
|
11188
11279
|
|
|
11189
|
-
/**
|
|
11190
|
-
class
|
|
11280
|
+
/**
|
|
11281
|
+
* Carries a `reason`, one of the class's static reason fields.
|
|
11282
|
+
*
|
|
11283
|
+
* Every static on this class is a reason: {@link ResolverErrorReason} is
|
|
11284
|
+
* derived from the class's own statics, so a non-reason static would join the
|
|
11285
|
+
* union.
|
|
11286
|
+
* @public
|
|
11287
|
+
*/
|
|
11288
|
+
class ResolverError extends _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
11289
|
+
/** A parameter cannot be delivered unambiguously at its location. */
|
|
11290
|
+
static AmbiguousDelivery = 'ambiguous-delivery';
|
|
11291
|
+
/** An output or a request body payload holds a value that is not a valid runtime expression. */
|
|
11292
|
+
static InvalidExpression = 'invalid-expression';
|
|
11293
|
+
/** A parameter's location (`in`) is not one of the known locations. */
|
|
11294
|
+
static InvalidLocation = 'invalid-location';
|
|
11295
|
+
/** An `onSuccess`/`onFailure` list holds an entry that is not a Success/Failure Action Object. */
|
|
11296
|
+
static MalformedActionEntry = 'malformed-action-entry';
|
|
11297
|
+
/** A step's `onSuccess` or `onFailure` is present but is not a list. */
|
|
11298
|
+
static MalformedActions = 'malformed-actions';
|
|
11299
|
+
/** A step's `successCriteria` or an action's `criteria` is present but is not a list. */
|
|
11300
|
+
static MalformedCriteria = 'malformed-criteria';
|
|
11301
|
+
/** A criteria list holds an entry that is not a Criterion Object. */
|
|
11302
|
+
static MalformedCriterion = 'malformed-criterion';
|
|
11303
|
+
/** A parameter's location (`in`) is not a string. */
|
|
11304
|
+
static MalformedLocation = 'malformed-location';
|
|
11305
|
+
/** A step's or workflow's `outputs` is present but is not a map. */
|
|
11306
|
+
static MalformedOutputs = 'malformed-outputs';
|
|
11307
|
+
/** `parameters` is present but is not a list. */
|
|
11308
|
+
static MalformedParameters = 'malformed-parameters';
|
|
11309
|
+
/** `requestBody.replacements` is present but is not a list. */
|
|
11310
|
+
static MalformedReplacements = 'malformed-replacements';
|
|
11311
|
+
/** `requestBody` is present but is not a map. */
|
|
11312
|
+
static MalformedRequestBody = 'malformed-request-body';
|
|
11313
|
+
/** A parameter of a step that targets an operation declares no location (`in`). */
|
|
11314
|
+
static MissingLocation = 'missing-location';
|
|
11315
|
+
/** A parameter has a missing or non-string `name`. */
|
|
11316
|
+
static MissingName = 'missing-name';
|
|
11317
|
+
/** A runtime expression in the request body did not resolve. */
|
|
11318
|
+
static UnresolvedExpression = 'unresolved-expression';
|
|
11319
|
+
/** A `requestBody` replacement target does not resolve in the payload. */
|
|
11320
|
+
static UnresolvedTarget = 'unresolved-target';
|
|
11321
|
+
/** A `requestBody` replacement target is not a JSON Pointer. */
|
|
11322
|
+
static UnsupportedTarget = 'unsupported-target';
|
|
11323
|
+
constructor(message, options) {
|
|
11324
|
+
super(message, options);
|
|
11325
|
+
}
|
|
11326
|
+
}
|
|
11327
|
+
|
|
11328
|
+
/**
|
|
11329
|
+
* One of the reasons a {@link ResolverError} carries: a `ResolverError`
|
|
11330
|
+
* static such as `ResolverError.MalformedParameters`.
|
|
11331
|
+
* @public
|
|
11332
|
+
*/
|
|
11333
|
+
|
|
11191
11334
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ResolverError);
|
|
11192
11335
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
11193
11336
|
/* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
|
|
@@ -11204,8 +11347,39 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11204
11347
|
/* harmony import */ var _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23949);
|
|
11205
11348
|
|
|
11206
11349
|
|
|
11207
|
-
/**
|
|
11208
|
-
class
|
|
11350
|
+
/**
|
|
11351
|
+
* Carries a `reason`, one of the class's static reason fields.
|
|
11352
|
+
*
|
|
11353
|
+
* Every static on this class is a reason: {@link RuntimeExpressionErrorReason}
|
|
11354
|
+
* is derived from the class's own statics, so a non-reason static would join
|
|
11355
|
+
* the union.
|
|
11356
|
+
* @public
|
|
11357
|
+
*/
|
|
11358
|
+
class RuntimeExpressionError extends _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
11359
|
+
/** The expression is not a valid runtime expression. */
|
|
11360
|
+
static InvalidExpression = 'invalid-expression';
|
|
11361
|
+
/** The runtime expression parser failed on the expression. */
|
|
11362
|
+
static ParseError = 'parse-error';
|
|
11363
|
+
/**
|
|
11364
|
+
* The expression reads HTTP data (`$statusCode`, `$url`, `$method`, `$request`,
|
|
11365
|
+
* `$response`) in a step that calls a workflow and so made no HTTP call.
|
|
11366
|
+
*/
|
|
11367
|
+
static UnavailableExpression = 'unavailable-expression';
|
|
11368
|
+
/** The expression could not be resolved against the evaluation context. */
|
|
11369
|
+
static UnresolvedReference = 'unresolved-reference';
|
|
11370
|
+
/** The parsed expression contains a node the evaluator does not support. */
|
|
11371
|
+
static UnsupportedNode = 'unsupported-node';
|
|
11372
|
+
constructor(message, options) {
|
|
11373
|
+
super(message, options);
|
|
11374
|
+
}
|
|
11375
|
+
}
|
|
11376
|
+
|
|
11377
|
+
/**
|
|
11378
|
+
* One of the reasons a {@link RuntimeExpressionError} carries: a
|
|
11379
|
+
* `RuntimeExpressionError` static such as `RuntimeExpressionError.ParseError`.
|
|
11380
|
+
* @public
|
|
11381
|
+
*/
|
|
11382
|
+
|
|
11209
11383
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RuntimeExpressionError);
|
|
11210
11384
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
11211
11385
|
/* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
|
|
@@ -11311,7 +11485,7 @@ class ArazzoWorkflowLocatorNormalizer extends _SourceDescriptionsLocatorNormaliz
|
|
|
11311
11485
|
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
11486
|
workflowId: context.workflowId,
|
|
11313
11487
|
stepId: context.stepId,
|
|
11314
|
-
reason:
|
|
11488
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_1__["default"].WorkflowNotFound
|
|
11315
11489
|
});
|
|
11316
11490
|
}
|
|
11317
11491
|
return locator;
|
|
@@ -11340,7 +11514,7 @@ class ArazzoWorkflowLocatorNormalizer extends _SourceDescriptionsLocatorNormaliz
|
|
|
11340
11514
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_1__["default"](`workflow reference "${reference}" in workflow "${workflowId}" is not a $sourceDescriptions.{name}.{workflowId} expression`, {
|
|
11341
11515
|
workflowId,
|
|
11342
11516
|
stepId,
|
|
11343
|
-
reason:
|
|
11517
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_1__["default"].InvalidWorkflowReference
|
|
11344
11518
|
});
|
|
11345
11519
|
}
|
|
11346
11520
|
return {
|
|
@@ -11374,7 +11548,7 @@ class ArazzoWorkflowLocatorNormalizer extends _SourceDescriptionsLocatorNormaliz
|
|
|
11374
11548
|
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
11549
|
workflowId,
|
|
11376
11550
|
stepId,
|
|
11377
|
-
reason:
|
|
11551
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_1__["default"].SourceDescriptionNotFound
|
|
11378
11552
|
});
|
|
11379
11553
|
}
|
|
11380
11554
|
const source = await this.registry.acquire(uri);
|
|
@@ -11382,7 +11556,7 @@ class ArazzoWorkflowLocatorNormalizer extends _SourceDescriptionsLocatorNormaliz
|
|
|
11382
11556
|
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
11557
|
workflowId,
|
|
11384
11558
|
stepId,
|
|
11385
|
-
reason:
|
|
11559
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_1__["default"].SourceDescriptionNotArazzo
|
|
11386
11560
|
});
|
|
11387
11561
|
}
|
|
11388
11562
|
return {
|
|
@@ -12124,7 +12298,7 @@ class OpenAPIOperationLocatorNormalizer extends _SourceDescriptionsLocatorNormal
|
|
|
12124
12298
|
if (parsed !== undefined && document.resolveSourceDescriptionURI(parsed.sourceName) === undefined) {
|
|
12125
12299
|
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`, {
|
|
12126
12300
|
...scope,
|
|
12127
|
-
reason:
|
|
12301
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].SourceDescriptionNotFound
|
|
12128
12302
|
});
|
|
12129
12303
|
}
|
|
12130
12304
|
}
|
|
@@ -12138,21 +12312,21 @@ class OpenAPIOperationLocatorNormalizer extends _SourceDescriptionsLocatorNormal
|
|
|
12138
12312
|
if (documentURI === '') {
|
|
12139
12313
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`operationPath "${operationPath}" does not resolve to a source description URL`, {
|
|
12140
12314
|
...scope,
|
|
12141
|
-
reason:
|
|
12315
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].InvalidOperationReference
|
|
12142
12316
|
});
|
|
12143
12317
|
}
|
|
12144
12318
|
const jsonPointer = _swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_1__.URIFragmentIdentifier.fromURIReference(uriReference);
|
|
12145
12319
|
if (!(0,_swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_1__.testJSONPointer)(jsonPointer)) {
|
|
12146
12320
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`operationPath "${operationPath}" has an invalid JSON Pointer`, {
|
|
12147
12321
|
...scope,
|
|
12148
|
-
reason:
|
|
12322
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].InvalidOperationReference
|
|
12149
12323
|
});
|
|
12150
12324
|
}
|
|
12151
12325
|
const source = await this.registry.acquire(documentURI);
|
|
12152
12326
|
if (!_document_OpenAPIDocument_ts__WEBPACK_IMPORTED_MODULE_3__["default"].is(source)) {
|
|
12153
12327
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`operationPath "${operationPath}" references "${documentURI}", which is not an OpenAPI document`, {
|
|
12154
12328
|
...scope,
|
|
12155
|
-
reason:
|
|
12329
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].SourceDescriptionNotOpenAPI
|
|
12156
12330
|
});
|
|
12157
12331
|
}
|
|
12158
12332
|
|
|
@@ -12164,7 +12338,7 @@ class OpenAPIOperationLocatorNormalizer extends _SourceDescriptionsLocatorNormal
|
|
|
12164
12338
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`operationPath "${operationPath}" does not locate an operation in the OpenAPI document at "${source.uri}"`, {
|
|
12165
12339
|
cause: error,
|
|
12166
12340
|
...scope,
|
|
12167
|
-
reason:
|
|
12341
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].OperationNotFound
|
|
12168
12342
|
});
|
|
12169
12343
|
}
|
|
12170
12344
|
return {
|
|
@@ -12177,7 +12351,7 @@ class OpenAPIOperationLocatorNormalizer extends _SourceDescriptionsLocatorNormal
|
|
|
12177
12351
|
if (parsed === undefined) {
|
|
12178
12352
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`operationId "${expression}" is not a $sourceDescriptions.{name}.{operationId} expression`, {
|
|
12179
12353
|
...scope,
|
|
12180
|
-
reason:
|
|
12354
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].InvalidOperationReference
|
|
12181
12355
|
});
|
|
12182
12356
|
}
|
|
12183
12357
|
const {
|
|
@@ -12189,7 +12363,7 @@ class OpenAPIOperationLocatorNormalizer extends _SourceDescriptionsLocatorNormal
|
|
|
12189
12363
|
if (jsonPointer === undefined) {
|
|
12190
12364
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Operation "${operationId}" not found in source description "${sourceName}" at "${openapiDocument.uri}"`, {
|
|
12191
12365
|
...scope,
|
|
12192
|
-
reason:
|
|
12366
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].OperationNotFound
|
|
12193
12367
|
});
|
|
12194
12368
|
}
|
|
12195
12369
|
return {
|
|
@@ -12218,7 +12392,7 @@ class OpenAPIOperationLocatorNormalizer extends _SourceDescriptionsLocatorNormal
|
|
|
12218
12392
|
if (jsonPointer === undefined) {
|
|
12219
12393
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Operation "${operationId}" not found in source description at "${source.uri}"`, {
|
|
12220
12394
|
...scope,
|
|
12221
|
-
reason:
|
|
12395
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].OperationNotFound
|
|
12222
12396
|
});
|
|
12223
12397
|
}
|
|
12224
12398
|
return {
|
|
@@ -12231,7 +12405,7 @@ class OpenAPIOperationLocatorNormalizer extends _SourceDescriptionsLocatorNormal
|
|
|
12231
12405
|
// is simply no OpenAPI document for the operation to be in.
|
|
12232
12406
|
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`, {
|
|
12233
12407
|
...scope,
|
|
12234
|
-
reason:
|
|
12408
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].OperationNotFound
|
|
12235
12409
|
});
|
|
12236
12410
|
}
|
|
12237
12411
|
|
|
@@ -12243,14 +12417,14 @@ class OpenAPIOperationLocatorNormalizer extends _SourceDescriptionsLocatorNormal
|
|
|
12243
12417
|
if (uri === undefined) {
|
|
12244
12418
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Source description "${sourceName}" not found in the Arazzo document at "${document.uri}"`, {
|
|
12245
12419
|
...scope,
|
|
12246
|
-
reason:
|
|
12420
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].SourceDescriptionNotFound
|
|
12247
12421
|
});
|
|
12248
12422
|
}
|
|
12249
12423
|
const source = await this.registry.acquire(uri);
|
|
12250
12424
|
if (!_document_OpenAPIDocument_ts__WEBPACK_IMPORTED_MODULE_3__["default"].is(source)) {
|
|
12251
12425
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Source description "${sourceName}" at "${uri}" is not an OpenAPI document`, {
|
|
12252
12426
|
...scope,
|
|
12253
|
-
reason:
|
|
12427
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].SourceDescriptionNotOpenAPI
|
|
12254
12428
|
});
|
|
12255
12429
|
}
|
|
12256
12430
|
return source;
|
|
@@ -12460,7 +12634,7 @@ class StepExecutor {
|
|
|
12460
12634
|
* take precedence over it.
|
|
12461
12635
|
*
|
|
12462
12636
|
* A `signal` in that bag is honored here and not only at the transport: an
|
|
12463
|
-
* already-aborted signal throws
|
|
12637
|
+
* already-aborted signal throws with reason `ExecutionError.Aborted` instead of issuing a
|
|
12464
12638
|
* request nobody is waiting for, whose wire-level cancellation would surface
|
|
12465
12639
|
* as a transport {@link ClientError} — a request that failed on its own terms
|
|
12466
12640
|
* — rather than as the withdrawal it is.
|
|
@@ -12484,13 +12658,13 @@ class StepExecutor {
|
|
|
12484
12658
|
if (declaredTargets.length > 1) {
|
|
12485
12659
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_10__["default"](`Step "${stepId}" declares more than one of ${STEP_TARGET_FIELDS.join(', ')} (mutually exclusive)`, {
|
|
12486
12660
|
...scope,
|
|
12487
|
-
reason:
|
|
12661
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_10__["default"].AmbiguousTarget
|
|
12488
12662
|
});
|
|
12489
12663
|
}
|
|
12490
12664
|
if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(step.workflowId)) {
|
|
12491
12665
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_10__["default"](`Step "${stepId}" targets a workflowId; use the workflow executor`, {
|
|
12492
12666
|
...scope,
|
|
12493
|
-
reason:
|
|
12667
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_10__["default"].WorkflowStep
|
|
12494
12668
|
});
|
|
12495
12669
|
}
|
|
12496
12670
|
this.assertSuccessCriteria(step, workflowId);
|
|
@@ -12584,7 +12758,7 @@ class StepExecutor {
|
|
|
12584
12758
|
}
|
|
12585
12759
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_10__["default"](`Step "${scope.stepId}" has no operationId or operationPath`, {
|
|
12586
12760
|
...scope,
|
|
12587
|
-
reason:
|
|
12761
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_10__["default"].MissingOperation
|
|
12588
12762
|
});
|
|
12589
12763
|
}
|
|
12590
12764
|
|
|
@@ -12615,13 +12789,13 @@ class StepExecutor {
|
|
|
12615
12789
|
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isArrayElement)(criteria)) {
|
|
12616
12790
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_11__["default"]("A step's `successCriteria` is present but is not a list", {
|
|
12617
12791
|
...scope,
|
|
12618
|
-
reason:
|
|
12792
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_11__["default"].MalformedCriteria
|
|
12619
12793
|
});
|
|
12620
12794
|
}
|
|
12621
12795
|
if (![...criteria].every(_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_2__.isCriterionElement)) {
|
|
12622
12796
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_11__["default"]("A step's `successCriteria` contains an entry that is not a Criterion Object", {
|
|
12623
12797
|
...scope,
|
|
12624
|
-
reason:
|
|
12798
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_11__["default"].MalformedCriterion
|
|
12625
12799
|
});
|
|
12626
12800
|
}
|
|
12627
12801
|
}
|
|
@@ -12724,7 +12898,7 @@ class StepExecutor {
|
|
|
12724
12898
|
// a step that calls a workflow made no HTTP call, so a condition on one
|
|
12725
12899
|
// fails like any unevaluable condition; the diagnostic keeps the
|
|
12726
12900
|
// authoring mistake visible.
|
|
12727
|
-
if (error instanceof _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_12__["default"] && error.reason ===
|
|
12901
|
+
if (error instanceof _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_12__["default"] && error.reason === _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_12__["default"].UnavailableExpression) {
|
|
12728
12902
|
return {
|
|
12729
12903
|
condition,
|
|
12730
12904
|
met: false,
|
|
@@ -12997,7 +13171,7 @@ class StepRetryRunner {
|
|
|
12997
13171
|
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`, {
|
|
12998
13172
|
stepId: context.stepId,
|
|
12999
13173
|
workflowId: context.workflowId,
|
|
13000
|
-
reason:
|
|
13174
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_3__["default"].RetryReferenceUnsupported
|
|
13001
13175
|
});
|
|
13002
13176
|
}
|
|
13003
13177
|
}
|
|
@@ -13119,7 +13293,7 @@ class StepTransitionInterpreter {
|
|
|
13119
13293
|
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)`, {
|
|
13120
13294
|
stepId,
|
|
13121
13295
|
workflowId,
|
|
13122
|
-
reason:
|
|
13296
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].AmbiguousTarget
|
|
13123
13297
|
});
|
|
13124
13298
|
}
|
|
13125
13299
|
if (hasStepId) {
|
|
@@ -13137,13 +13311,13 @@ class StepTransitionInterpreter {
|
|
|
13137
13311
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_2__["default"](`goto action on step "${stepId}" in workflow "${workflowId}" has neither stepId nor workflowId`, {
|
|
13138
13312
|
stepId,
|
|
13139
13313
|
workflowId,
|
|
13140
|
-
reason:
|
|
13314
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].GotoTargetMissing
|
|
13141
13315
|
});
|
|
13142
13316
|
}
|
|
13143
13317
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_2__["default"](`action on step "${stepId}" in workflow "${workflowId}" has unsupported type "${type}"`, {
|
|
13144
13318
|
stepId,
|
|
13145
13319
|
workflowId,
|
|
13146
|
-
reason:
|
|
13320
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].UnknownActionType
|
|
13147
13321
|
});
|
|
13148
13322
|
}
|
|
13149
13323
|
|
|
@@ -13270,7 +13444,7 @@ class WorkflowCallStack {
|
|
|
13270
13444
|
// detects both, so a loop crossing the two mechanisms cannot slip between
|
|
13271
13445
|
// them.
|
|
13272
13446
|
const closingEdges = [...this.#calls.slice(repeated + 1).map(call => call.via), via];
|
|
13273
|
-
const reason = closingEdges.every(edge => edge === 'dependsOn') ?
|
|
13447
|
+
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;
|
|
13274
13448
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_0__["default"](`workflow "${workflowId}" is already in progress; its call chain forms a cycle (${path.join(' -> ')})`, {
|
|
13275
13449
|
workflowId,
|
|
13276
13450
|
reason,
|
|
@@ -13280,7 +13454,7 @@ class WorkflowCallStack {
|
|
|
13280
13454
|
if (this.#calls.length >= this.#maxDepth) {
|
|
13281
13455
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_0__["default"](`workflow "${workflowId}" nests deeper than the limit of ${this.#maxDepth} workflows`, {
|
|
13282
13456
|
workflowId,
|
|
13283
|
-
reason:
|
|
13457
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_0__["default"].WorkflowDepth,
|
|
13284
13458
|
path: [...this.path, this.#display(workflowId, documentURI)]
|
|
13285
13459
|
});
|
|
13286
13460
|
}
|
|
@@ -13566,7 +13740,7 @@ class WorkflowExecutor {
|
|
|
13566
13740
|
const unknown = Object.keys(options).filter(key => !WorkflowExecutor.#EXECUTE_OPTION_KEYS.has(key));
|
|
13567
13741
|
if (unknown.length === 0) return;
|
|
13568
13742
|
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"`, {
|
|
13569
|
-
reason:
|
|
13743
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].UnknownExecuteOption
|
|
13570
13744
|
});
|
|
13571
13745
|
}
|
|
13572
13746
|
|
|
@@ -13699,7 +13873,7 @@ class WorkflowExecutor {
|
|
|
13699
13873
|
break;
|
|
13700
13874
|
case 'goto':
|
|
13701
13875
|
index = this.#interpreter.indexOfStep(steps, transition.stepId, workflowId, {
|
|
13702
|
-
reason:
|
|
13876
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].GotoTargetNotFound,
|
|
13703
13877
|
label: 'goto target'
|
|
13704
13878
|
});
|
|
13705
13879
|
break;
|
|
@@ -13746,7 +13920,7 @@ class WorkflowExecutor {
|
|
|
13746
13920
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`step "${stepId}" in workflow "${workflowId}" produced an unrecognized transition ${JSON.stringify(unreachable)}`, {
|
|
13747
13921
|
workflowId,
|
|
13748
13922
|
stepId,
|
|
13749
|
-
reason:
|
|
13923
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].UnknownTransitionKind
|
|
13750
13924
|
});
|
|
13751
13925
|
}
|
|
13752
13926
|
}
|
|
@@ -13834,7 +14008,7 @@ class WorkflowExecutor {
|
|
|
13834
14008
|
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)`, {
|
|
13835
14009
|
workflowId: invocation.workflowId,
|
|
13836
14010
|
stepId,
|
|
13837
|
-
reason:
|
|
14011
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].StepBudget,
|
|
13838
14012
|
path: invocation.callStack.path
|
|
13839
14013
|
});
|
|
13840
14014
|
}
|
|
@@ -13939,7 +14113,7 @@ class WorkflowExecutor {
|
|
|
13939
14113
|
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)`, {
|
|
13940
14114
|
stepId,
|
|
13941
14115
|
workflowId,
|
|
13942
|
-
reason:
|
|
14116
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].AmbiguousTarget
|
|
13943
14117
|
});
|
|
13944
14118
|
}
|
|
13945
14119
|
if (hasWorkflowId) {
|
|
@@ -13963,7 +14137,7 @@ class WorkflowExecutor {
|
|
|
13963
14137
|
}
|
|
13964
14138
|
const refStepId = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(action.stepId);
|
|
13965
14139
|
const refIndex = this.#interpreter.indexOfStep(steps, refStepId, workflowId, {
|
|
13966
|
-
reason:
|
|
14140
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].RetryTargetNotFound,
|
|
13967
14141
|
label: 'retry reference'
|
|
13968
14142
|
});
|
|
13969
14143
|
const refStep = steps[refIndex];
|
|
@@ -14082,14 +14256,14 @@ class WorkflowExecutor {
|
|
|
14082
14256
|
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isArrayElement)(dependsOn)) {
|
|
14083
14257
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`workflow "${workflowId}" has a non-list "dependsOn"`, {
|
|
14084
14258
|
workflowId,
|
|
14085
|
-
reason:
|
|
14259
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].MalformedDependsOn
|
|
14086
14260
|
});
|
|
14087
14261
|
}
|
|
14088
14262
|
const references = [...dependsOn].map((entry, index) => {
|
|
14089
14263
|
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(entry)) {
|
|
14090
14264
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`workflow "${workflowId}" has a non-string entry at dependsOn[${index}]`, {
|
|
14091
14265
|
workflowId,
|
|
14092
|
-
reason:
|
|
14266
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].MalformedDependsOn
|
|
14093
14267
|
});
|
|
14094
14268
|
}
|
|
14095
14269
|
return (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(entry);
|
|
@@ -14274,7 +14448,7 @@ class WorkflowExecutor {
|
|
|
14274
14448
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`step "${stepId}" in workflow "${workflowId}" declares a workflowId alongside ${conflicting.join(', ')} (mutually exclusive)`, {
|
|
14275
14449
|
stepId,
|
|
14276
14450
|
workflowId,
|
|
14277
|
-
reason:
|
|
14451
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].AmbiguousTarget
|
|
14278
14452
|
});
|
|
14279
14453
|
}
|
|
14280
14454
|
return (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(step.workflowId);
|
|
@@ -14320,7 +14494,7 @@ class WorkflowExecutor {
|
|
|
14320
14494
|
if (!document.workflowIndex.has(workflowId)) {
|
|
14321
14495
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`workflow "${workflowId}" not found in Arazzo document at "${document.uri}"`, {
|
|
14322
14496
|
workflowId,
|
|
14323
|
-
reason:
|
|
14497
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].WorkflowNotFound
|
|
14324
14498
|
});
|
|
14325
14499
|
}
|
|
14326
14500
|
const workflow = await this.#normalizer.normalize(this.#extractor.extract(document, workflowId), document);
|
|
@@ -14351,14 +14525,14 @@ class WorkflowExecutor {
|
|
|
14351
14525
|
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isArrayElement)(steps)) {
|
|
14352
14526
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`workflow "${workflowId}" has a non-list "steps"`, {
|
|
14353
14527
|
workflowId,
|
|
14354
|
-
reason:
|
|
14528
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].MalformedSteps
|
|
14355
14529
|
});
|
|
14356
14530
|
}
|
|
14357
14531
|
return [...steps].map((step, index) => {
|
|
14358
14532
|
if (!(0,_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_2__.isStepElement)(step)) {
|
|
14359
14533
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`workflow "${workflowId}" has a non-step entry at steps[${index}]`, {
|
|
14360
14534
|
workflowId,
|
|
14361
|
-
reason:
|
|
14535
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].MalformedSteps
|
|
14362
14536
|
});
|
|
14363
14537
|
}
|
|
14364
14538
|
return step;
|
|
@@ -14381,7 +14555,7 @@ class WorkflowExecutor {
|
|
|
14381
14555
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_15__["default"]('`outputs` is present but is not a map', {
|
|
14382
14556
|
workflowId,
|
|
14383
14557
|
target: 'outputs',
|
|
14384
|
-
reason:
|
|
14558
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_15__["default"].MalformedOutputs
|
|
14385
14559
|
});
|
|
14386
14560
|
}
|
|
14387
14561
|
|
|
@@ -14460,8 +14634,8 @@ const readAbortSignal = options => {
|
|
|
14460
14634
|
};
|
|
14461
14635
|
|
|
14462
14636
|
/**
|
|
14463
|
-
* Throws
|
|
14464
|
-
* nothing otherwise.
|
|
14637
|
+
* Throws with reason `ExecutionError.Aborted` when the caller has cancelled
|
|
14638
|
+
* the run, and does nothing otherwise.
|
|
14465
14639
|
*
|
|
14466
14640
|
* Cancellation throws rather than resolving as a `failed` result because it is
|
|
14467
14641
|
* not a workflow outcome: nothing was judged by `successCriteria`, no failure
|
|
@@ -14482,7 +14656,7 @@ const throwIfAborted = (signal, context) => {
|
|
|
14482
14656
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_0__["default"](`run aborted before ${where}`, {
|
|
14483
14657
|
workflowId,
|
|
14484
14658
|
stepId,
|
|
14485
|
-
reason:
|
|
14659
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_0__["default"].Aborted,
|
|
14486
14660
|
path: callStack?.path,
|
|
14487
14661
|
cause: signal.reason
|
|
14488
14662
|
});
|
|
@@ -14601,7 +14775,7 @@ class RuntimeExpressionEvaluator {
|
|
|
14601
14775
|
if (value === undefined && this.#strict) {
|
|
14602
14776
|
throw new _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Runtime expression "${expression}" could not be resolved against the context`, {
|
|
14603
14777
|
expression,
|
|
14604
|
-
reason:
|
|
14778
|
+
reason: _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].UnresolvedReference
|
|
14605
14779
|
});
|
|
14606
14780
|
}
|
|
14607
14781
|
return value;
|
|
@@ -14647,13 +14821,13 @@ class RuntimeExpressionEvaluator {
|
|
|
14647
14821
|
throw new _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Failed to parse runtime expression "${expression}"`, {
|
|
14648
14822
|
cause: error,
|
|
14649
14823
|
expression,
|
|
14650
|
-
reason:
|
|
14824
|
+
reason: _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].ParseError
|
|
14651
14825
|
});
|
|
14652
14826
|
}
|
|
14653
14827
|
if (!result.result.success || result.tree === undefined) {
|
|
14654
14828
|
throw new _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Invalid runtime expression "${expression}"`, {
|
|
14655
14829
|
expression,
|
|
14656
|
-
reason:
|
|
14830
|
+
reason: _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].InvalidExpression
|
|
14657
14831
|
});
|
|
14658
14832
|
}
|
|
14659
14833
|
return result.tree;
|
|
@@ -14671,7 +14845,7 @@ class RuntimeExpressionEvaluator {
|
|
|
14671
14845
|
if (calledWorkflow === undefined || !HTTP_EXCHANGE_NODES.has(node.type)) return;
|
|
14672
14846
|
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`, {
|
|
14673
14847
|
expression,
|
|
14674
|
-
reason:
|
|
14848
|
+
reason: _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].UnavailableExpression
|
|
14675
14849
|
});
|
|
14676
14850
|
}
|
|
14677
14851
|
|
|
@@ -14708,7 +14882,7 @@ class RuntimeExpressionEvaluator {
|
|
|
14708
14882
|
default:
|
|
14709
14883
|
throw new _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Unsupported runtime expression node "${node.type}"`, {
|
|
14710
14884
|
expression,
|
|
14711
|
-
reason:
|
|
14885
|
+
reason: _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].UnsupportedNode
|
|
14712
14886
|
});
|
|
14713
14887
|
}
|
|
14714
14888
|
}
|
|
@@ -16540,7 +16714,7 @@ class OpenAPIOperationParameterResolver extends _StepParameterResolver_ts__WEBPA
|
|
|
16540
16714
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"]('`parameters` is present but is not a list', {
|
|
16541
16715
|
...scope,
|
|
16542
16716
|
target: 'parameters',
|
|
16543
|
-
reason:
|
|
16717
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].MalformedParameters
|
|
16544
16718
|
});
|
|
16545
16719
|
}
|
|
16546
16720
|
for (const parameter of parameters) {
|
|
@@ -16552,7 +16726,7 @@ class OpenAPIOperationParameterResolver extends _StepParameterResolver_ts__WEBPA
|
|
|
16552
16726
|
if (identity === undefined) {
|
|
16553
16727
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"]('Parameter has a missing or non-string name', {
|
|
16554
16728
|
...scope,
|
|
16555
|
-
reason:
|
|
16729
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].MissingName
|
|
16556
16730
|
});
|
|
16557
16731
|
}
|
|
16558
16732
|
const {
|
|
@@ -16563,21 +16737,21 @@ class OpenAPIOperationParameterResolver extends _StepParameterResolver_ts__WEBPA
|
|
|
16563
16737
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"](`Parameter "${name}" declares no location ("in"), which a step targeting an operation requires`, {
|
|
16564
16738
|
...scope,
|
|
16565
16739
|
target: name,
|
|
16566
|
-
reason:
|
|
16740
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].MissingLocation
|
|
16567
16741
|
});
|
|
16568
16742
|
}
|
|
16569
16743
|
if (location === null) {
|
|
16570
16744
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"](`Parameter "${name}" has a non-string location ("in")`, {
|
|
16571
16745
|
...scope,
|
|
16572
16746
|
target: name,
|
|
16573
|
-
reason:
|
|
16747
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].MalformedLocation
|
|
16574
16748
|
});
|
|
16575
16749
|
}
|
|
16576
16750
|
if (!identity.hasDefinedLocation) {
|
|
16577
16751
|
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(', ')}`, {
|
|
16578
16752
|
...scope,
|
|
16579
16753
|
target: name,
|
|
16580
|
-
reason:
|
|
16754
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].InvalidLocation
|
|
16581
16755
|
});
|
|
16582
16756
|
}
|
|
16583
16757
|
const {
|
|
@@ -16591,7 +16765,7 @@ class OpenAPIOperationParameterResolver extends _StepParameterResolver_ts__WEBPA
|
|
|
16591
16765
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"](`Parameter "${name}" (in: ${location}) ${why} and cannot be delivered unambiguously`, {
|
|
16592
16766
|
...scope,
|
|
16593
16767
|
target: name,
|
|
16594
|
-
reason:
|
|
16768
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].AmbiguousDelivery
|
|
16595
16769
|
});
|
|
16596
16770
|
}
|
|
16597
16771
|
delivery.set(key, this.resolveValue(parameter.value, resolve));
|
|
@@ -16642,7 +16816,7 @@ class OutputResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODULE_4_
|
|
|
16642
16816
|
*
|
|
16643
16817
|
* `scope` names the step or workflow the outputs belong to, for a thrown
|
|
16644
16818
|
* {@link ResolverError}. An output value that is not a valid runtime
|
|
16645
|
-
* expression throws with
|
|
16819
|
+
* expression throws with reason `ResolverError.InvalidExpression`.
|
|
16646
16820
|
*/
|
|
16647
16821
|
resolve(outputs, resolve, scope) {
|
|
16648
16822
|
const result = {};
|
|
@@ -16653,7 +16827,7 @@ class OutputResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODULE_4_
|
|
|
16653
16827
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_3__["default"]('`outputs` is present but is not a map', {
|
|
16654
16828
|
...scope,
|
|
16655
16829
|
target: 'outputs',
|
|
16656
|
-
reason:
|
|
16830
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_3__["default"].MalformedOutputs
|
|
16657
16831
|
});
|
|
16658
16832
|
}
|
|
16659
16833
|
outputs.forEach((value, key) => {
|
|
@@ -16663,7 +16837,7 @@ class OutputResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODULE_4_
|
|
|
16663
16837
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_3__["default"](`Output "${name}" is not a valid runtime expression`, {
|
|
16664
16838
|
...scope,
|
|
16665
16839
|
target: 'outputs',
|
|
16666
|
-
reason:
|
|
16840
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_3__["default"].InvalidExpression
|
|
16667
16841
|
});
|
|
16668
16842
|
}
|
|
16669
16843
|
// defined rather than assigned: a name like `__proto__` hits the
|
|
@@ -16772,7 +16946,7 @@ class RequestBodyResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODU
|
|
|
16772
16946
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"]('`requestBody` is present but is not a map', {
|
|
16773
16947
|
...scope,
|
|
16774
16948
|
target: 'requestBody',
|
|
16775
|
-
reason:
|
|
16949
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"].MalformedRequestBody
|
|
16776
16950
|
});
|
|
16777
16951
|
}
|
|
16778
16952
|
const authoredPayload = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_2__["default"])(requestBody.payload);
|
|
@@ -16784,7 +16958,7 @@ class RequestBodyResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODU
|
|
|
16784
16958
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"]('`requestBody.replacements` is present but is not a list', {
|
|
16785
16959
|
...scope,
|
|
16786
16960
|
target: 'requestBody.replacements',
|
|
16787
|
-
reason:
|
|
16961
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"].MalformedReplacements
|
|
16788
16962
|
});
|
|
16789
16963
|
}
|
|
16790
16964
|
for (const replacement of requestBody.replacements) {
|
|
@@ -16849,7 +17023,7 @@ class RequestBodyResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODU
|
|
|
16849
17023
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"](`Invalid runtime expression "${text}" in ${this.#payloadTarget(tokens)}`, {
|
|
16850
17024
|
...scope,
|
|
16851
17025
|
target: this.#payloadTarget(tokens),
|
|
16852
|
-
reason:
|
|
17026
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"].InvalidExpression
|
|
16853
17027
|
});
|
|
16854
17028
|
}
|
|
16855
17029
|
});
|
|
@@ -16868,7 +17042,7 @@ class RequestBodyResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODU
|
|
|
16868
17042
|
return new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"](`Runtime expression "${expression}" in ${target} did not resolve`, {
|
|
16869
17043
|
...scope,
|
|
16870
17044
|
target,
|
|
16871
|
-
reason:
|
|
17045
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"].UnresolvedExpression
|
|
16872
17046
|
});
|
|
16873
17047
|
}
|
|
16874
17048
|
|
|
@@ -16892,7 +17066,7 @@ class RequestBodyResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODU
|
|
|
16892
17066
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"](`Unsupported requestBody replacement target "${target}" (expected JSON Pointer)`, {
|
|
16893
17067
|
...scope,
|
|
16894
17068
|
target,
|
|
16895
|
-
reason:
|
|
17069
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"].UnsupportedTarget
|
|
16896
17070
|
});
|
|
16897
17071
|
}
|
|
16898
17072
|
|
|
@@ -16906,7 +17080,7 @@ class RequestBodyResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODU
|
|
|
16906
17080
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"](`requestBody replacement target "${target}" does not resolve in the payload`, {
|
|
16907
17081
|
...scope,
|
|
16908
17082
|
target,
|
|
16909
|
-
reason:
|
|
17083
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"].UnresolvedTarget
|
|
16910
17084
|
});
|
|
16911
17085
|
}
|
|
16912
17086
|
return (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(tokens, value, payload);
|
|
@@ -17006,7 +17180,7 @@ class WorkflowParameterResolver extends _StepParameterResolver_ts__WEBPACK_IMPOR
|
|
|
17006
17180
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_3__["default"]('`parameters` is present but is not a list', {
|
|
17007
17181
|
...scope,
|
|
17008
17182
|
target: 'parameters',
|
|
17009
|
-
reason:
|
|
17183
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_3__["default"].MalformedParameters
|
|
17010
17184
|
});
|
|
17011
17185
|
}
|
|
17012
17186
|
for (const parameter of parameters) {
|
|
@@ -117634,34 +117808,33 @@ let __webpack_exports__ = {};
|
|
|
117634
117808
|
__webpack_require__.r(__webpack_exports__);
|
|
117635
117809
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
117636
117810
|
/* harmony export */ APIDocument: () => (/* reexport safe */ _document_APIDocument_ts__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
|
117637
|
-
/* harmony export */ ActionResolver: () => (/* reexport safe */
|
|
117811
|
+
/* harmony export */ ActionResolver: () => (/* reexport safe */ _action_ActionResolver_ts__WEBPACK_IMPORTED_MODULE_41__["default"]),
|
|
117638
117812
|
/* harmony export */ ArazzoDocument: () => (/* reexport safe */ _document_ArazzoDocument_ts__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
117639
117813
|
/* harmony export */ ArazzoDocumentRegistryProvider: () => (/* reexport safe */ _registry_providers_ArazzoDocumentRegistryProvider_ts__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
117640
117814
|
/* harmony export */ ArazzoRunner: () => (/* reexport safe */ _ArazzoRunner_ts__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
117641
|
-
/* harmony export */ ArazzoRunnerError: () => (/* reexport safe */
|
|
117815
|
+
/* harmony export */ ArazzoRunnerError: () => (/* reexport safe */ _errors_ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_48__["default"]),
|
|
117642
117816
|
/* harmony export */ ArazzoSourceDescriptionIndex: () => (/* reexport safe */ _document_ArazzoSourceDescriptionIndex_ts__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
|
117643
117817
|
/* harmony export */ ArazzoStepExtractor: () => (/* reexport safe */ _extractor_ArazzoStepExtractor_ts__WEBPACK_IMPORTED_MODULE_13__["default"]),
|
|
117644
117818
|
/* harmony export */ ArazzoStepIndex: () => (/* reexport safe */ _document_ArazzoStepIndex_ts__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
|
117645
117819
|
/* harmony export */ ArazzoStepNormalizer: () => (/* reexport safe */ _normalizer_ArazzoStepNormalizer_ts__WEBPACK_IMPORTED_MODULE_16__["default"]),
|
|
117646
|
-
/* harmony export */ ArazzoValueResolver: () => (/* reexport safe */
|
|
117820
|
+
/* harmony export */ ArazzoValueResolver: () => (/* reexport safe */ _resolver_ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODULE_35__["default"]),
|
|
117647
117821
|
/* harmony export */ ArazzoWorkflowExtractor: () => (/* reexport safe */ _extractor_ArazzoWorkflowExtractor_ts__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
117648
117822
|
/* harmony export */ ArazzoWorkflowIndex: () => (/* reexport safe */ _document_ArazzoWorkflowIndex_ts__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
|
117649
|
-
/* harmony export */ ArazzoWorkflowLocatorNormalizer: () => (/* reexport safe */
|
|
117823
|
+
/* harmony export */ ArazzoWorkflowLocatorNormalizer: () => (/* reexport safe */ _executor_ArazzoWorkflowLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_47__["default"]),
|
|
117650
117824
|
/* harmony export */ ArazzoWorkflowNormalizer: () => (/* reexport safe */ _normalizer_ArazzoWorkflowNormalizer_ts__WEBPACK_IMPORTED_MODULE_15__["default"]),
|
|
117651
|
-
/* harmony export */ AssemblerError: () => (/* reexport safe */
|
|
117652
|
-
/* harmony export */ ClientError: () => (/* reexport safe */
|
|
117653
|
-
/* harmony export */ CriterionError: () => (/* reexport safe */
|
|
117654
|
-
/* harmony export */
|
|
117655
|
-
/* harmony export */ CriterionEvaluationError: () => (/* reexport safe */ _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_59__["default"]),
|
|
117825
|
+
/* harmony export */ AssemblerError: () => (/* reexport safe */ _errors_AssemblerError_ts__WEBPACK_IMPORTED_MODULE_49__["default"]),
|
|
117826
|
+
/* harmony export */ ClientError: () => (/* reexport safe */ _errors_ClientError_ts__WEBPACK_IMPORTED_MODULE_50__["default"]),
|
|
117827
|
+
/* harmony export */ CriterionError: () => (/* reexport safe */ _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_57__["default"]),
|
|
117828
|
+
/* harmony export */ CriterionEvaluationError: () => (/* reexport safe */ _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_58__["default"]),
|
|
117656
117829
|
/* harmony export */ CriterionEvaluator: () => (/* reexport safe */ _criterion_CriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_29__["default"]),
|
|
117657
|
-
/* harmony export */ DocumentLoadError: () => (/* reexport safe */
|
|
117830
|
+
/* harmony export */ DocumentLoadError: () => (/* reexport safe */ _errors_DocumentLoadError_ts__WEBPACK_IMPORTED_MODULE_55__["default"]),
|
|
117658
117831
|
/* harmony export */ DocumentRegistry: () => (/* reexport safe */ _registry_DocumentRegistry_ts__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
117659
117832
|
/* harmony export */ DocumentRegistryProvider: () => (/* reexport safe */ _registry_providers_DocumentRegistryProvider_ts__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
117660
|
-
/* harmony export */ ExecutionError: () => (/* reexport safe */
|
|
117661
|
-
/* harmony export */ ExtractionError: () => (/* reexport safe */
|
|
117662
|
-
/* harmony export */ InvalidEntryDocumentError: () => (/* reexport safe */
|
|
117833
|
+
/* harmony export */ ExecutionError: () => (/* reexport safe */ _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_60__["default"]),
|
|
117834
|
+
/* harmony export */ ExtractionError: () => (/* reexport safe */ _errors_ExtractionError_ts__WEBPACK_IMPORTED_MODULE_52__["default"]),
|
|
117835
|
+
/* harmony export */ InvalidEntryDocumentError: () => (/* reexport safe */ _errors_InvalidEntryDocumentError_ts__WEBPACK_IMPORTED_MODULE_53__["default"]),
|
|
117663
117836
|
/* harmony export */ JSONPathCriterionEvaluator: () => (/* reexport safe */ _criterion_JSONPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_32__["default"]),
|
|
117664
|
-
/* harmony export */ NormalizationError: () => (/* reexport safe */
|
|
117837
|
+
/* harmony export */ NormalizationError: () => (/* reexport safe */ _errors_NormalizationError_ts__WEBPACK_IMPORTED_MODULE_51__["default"]),
|
|
117665
117838
|
/* harmony export */ OpenAPI2DocumentAssembler: () => (/* reexport safe */ _assembler_OpenAPI2DocumentAssembler_ts__WEBPACK_IMPORTED_MODULE_22__["default"]),
|
|
117666
117839
|
/* harmony export */ OpenAPI2OperationNormalizer: () => (/* reexport safe */ _normalizer_OpenAPI2OperationNormalizer_ts__WEBPACK_IMPORTED_MODULE_18__["default"]),
|
|
117667
117840
|
/* harmony export */ OpenAPI30DocumentAssembler: () => (/* reexport safe */ _assembler_OpenAPI30DocumentAssembler_ts__WEBPACK_IMPORTED_MODULE_23__["default"]),
|
|
@@ -117671,31 +117844,31 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
117671
117844
|
/* harmony export */ OpenAPIDocument: () => (/* reexport safe */ _document_OpenAPIDocument_ts__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
117672
117845
|
/* harmony export */ OpenAPIDocumentAssembler: () => (/* reexport safe */ _assembler_OpenAPIDocumentAssembler_ts__WEBPACK_IMPORTED_MODULE_21__["default"]),
|
|
117673
117846
|
/* harmony export */ OpenAPIDocumentRegistryProvider: () => (/* reexport safe */ _registry_providers_OpenAPIDocumentRegistryProvider_ts__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
117674
|
-
/* harmony export */ OpenAPIOperationExecutor: () => (/* reexport safe */
|
|
117847
|
+
/* harmony export */ OpenAPIOperationExecutor: () => (/* reexport safe */ _executor_OpenAPIOperationExecutor_ts__WEBPACK_IMPORTED_MODULE_44__["default"]),
|
|
117675
117848
|
/* harmony export */ OpenAPIOperationExtractor: () => (/* reexport safe */ _extractor_OpenAPIOperationExtractor_ts__WEBPACK_IMPORTED_MODULE_14__["default"]),
|
|
117676
117849
|
/* harmony export */ OpenAPIOperationIndex: () => (/* reexport safe */ _document_OpenAPIOperationIndex_ts__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
117677
|
-
/* harmony export */ OpenAPIOperationLocatorNormalizer: () => (/* reexport safe */
|
|
117850
|
+
/* harmony export */ OpenAPIOperationLocatorNormalizer: () => (/* reexport safe */ _executor_OpenAPIOperationLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_46__["default"]),
|
|
117678
117851
|
/* harmony export */ OpenAPIOperationNormalizer: () => (/* reexport safe */ _normalizer_OpenAPIOperationNormalizer_ts__WEBPACK_IMPORTED_MODULE_17__["default"]),
|
|
117679
|
-
/* harmony export */ OpenAPIOperationParameterResolver: () => (/* reexport safe */
|
|
117852
|
+
/* harmony export */ OpenAPIOperationParameterResolver: () => (/* reexport safe */ _resolver_OpenAPIOperationParameterResolver_ts__WEBPACK_IMPORTED_MODULE_37__["default"]),
|
|
117680
117853
|
/* harmony export */ OpenAPIOperationResponse: () => (/* reexport safe */ _client_OpenAPIOperationResponse_ts__WEBPACK_IMPORTED_MODULE_26__["default"]),
|
|
117681
117854
|
/* harmony export */ OpenAPIOperationResponseNormalizer: () => (/* reexport safe */ _client_OpenAPIOperationResponseNormalizer_ts__WEBPACK_IMPORTED_MODULE_27__["default"]),
|
|
117682
|
-
/* harmony export */ OutputResolver: () => (/* reexport safe */
|
|
117855
|
+
/* harmony export */ OutputResolver: () => (/* reexport safe */ _resolver_OutputResolver_ts__WEBPACK_IMPORTED_MODULE_39__["default"]),
|
|
117683
117856
|
/* harmony export */ RegexCriterionEvaluator: () => (/* reexport safe */ _criterion_RegexCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_31__["default"]),
|
|
117684
|
-
/* harmony export */ RequestBodyResolver: () => (/* reexport safe */
|
|
117685
|
-
/* harmony export */ ResolverError: () => (/* reexport safe */
|
|
117686
|
-
/* harmony export */ RuntimeExpressionError: () => (/* reexport safe */
|
|
117857
|
+
/* harmony export */ RequestBodyResolver: () => (/* reexport safe */ _resolver_RequestBodyResolver_ts__WEBPACK_IMPORTED_MODULE_40__["default"]),
|
|
117858
|
+
/* harmony export */ ResolverError: () => (/* reexport safe */ _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_59__["default"]),
|
|
117859
|
+
/* harmony export */ RuntimeExpressionError: () => (/* reexport safe */ _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_56__["default"]),
|
|
117687
117860
|
/* harmony export */ RuntimeExpressionEvaluator: () => (/* reexport safe */ _expression_RuntimeExpressionEvaluator_ts__WEBPACK_IMPORTED_MODULE_28__["default"]),
|
|
117688
117861
|
/* harmony export */ SimpleCriterionEvaluator: () => (/* reexport safe */ _criterion_SimpleCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_30__["default"]),
|
|
117689
|
-
/* harmony export */ SourceDescriptionsLocatorNormalizer: () => (/* reexport safe */
|
|
117690
|
-
/* harmony export */ StepExecutor: () => (/* reexport safe */
|
|
117691
|
-
/* harmony export */ StepParameterResolver: () => (/* reexport safe */
|
|
117692
|
-
/* harmony export */ UnmatchedProviderError: () => (/* reexport safe */
|
|
117693
|
-
/* harmony export */ WorkflowExecutionState: () => (/* reexport safe */
|
|
117694
|
-
/* harmony export */ WorkflowExecutor: () => (/* reexport safe */
|
|
117695
|
-
/* harmony export */ WorkflowParameterResolver: () => (/* reexport safe */
|
|
117862
|
+
/* harmony export */ SourceDescriptionsLocatorNormalizer: () => (/* reexport safe */ _executor_SourceDescriptionsLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_45__["default"]),
|
|
117863
|
+
/* harmony export */ StepExecutor: () => (/* reexport safe */ _executor_StepExecutor_ts__WEBPACK_IMPORTED_MODULE_43__["default"]),
|
|
117864
|
+
/* harmony export */ StepParameterResolver: () => (/* reexport safe */ _resolver_StepParameterResolver_ts__WEBPACK_IMPORTED_MODULE_36__["default"]),
|
|
117865
|
+
/* harmony export */ UnmatchedProviderError: () => (/* reexport safe */ _errors_UnmatchedProviderError_ts__WEBPACK_IMPORTED_MODULE_54__["default"]),
|
|
117866
|
+
/* harmony export */ WorkflowExecutionState: () => (/* reexport safe */ _state_WorkflowExecutionState_ts__WEBPACK_IMPORTED_MODULE_34__["default"]),
|
|
117867
|
+
/* harmony export */ WorkflowExecutor: () => (/* reexport safe */ _executor_WorkflowExecutor_ts__WEBPACK_IMPORTED_MODULE_42__["default"]),
|
|
117868
|
+
/* harmony export */ WorkflowParameterResolver: () => (/* reexport safe */ _resolver_WorkflowParameterResolver_ts__WEBPACK_IMPORTED_MODULE_38__["default"]),
|
|
117696
117869
|
/* harmony export */ XPathCriterionEvaluator: () => (/* reexport safe */ _criterion_XPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_33__["default"]),
|
|
117697
117870
|
/* harmony export */ httpClientFetch: () => (/* reexport safe */ _client_HTTPClientFetch_ts__WEBPACK_IMPORTED_MODULE_25__["default"]),
|
|
117698
|
-
/* harmony export */ settledResult: () => (/* reexport safe */
|
|
117871
|
+
/* harmony export */ settledResult: () => (/* reexport safe */ _executor_WorkflowExecutor_ts__WEBPACK_IMPORTED_MODULE_42__.settledResult)
|
|
117699
117872
|
/* harmony export */ });
|
|
117700
117873
|
/* harmony import */ var _ArazzoRunner_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57253);
|
|
117701
117874
|
/* harmony import */ var _registry_DocumentRegistry_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4044);
|
|
@@ -117731,34 +117904,33 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
117731
117904
|
/* harmony import */ var _criterion_RegexCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(13517);
|
|
117732
117905
|
/* harmony import */ var _criterion_JSONPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(90089);
|
|
117733
117906
|
/* harmony import */ var _criterion_XPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(84997);
|
|
117734
|
-
/* harmony import */ var
|
|
117735
|
-
/* harmony import */ var
|
|
117736
|
-
/* harmony import */ var
|
|
117737
|
-
/* harmony import */ var
|
|
117738
|
-
/* harmony import */ var
|
|
117739
|
-
/* harmony import */ var
|
|
117740
|
-
/* harmony import */ var
|
|
117741
|
-
/* harmony import */ var
|
|
117742
|
-
/* harmony import */ var
|
|
117743
|
-
/* harmony import */ var
|
|
117744
|
-
/* harmony import */ var
|
|
117745
|
-
/* harmony import */ var
|
|
117746
|
-
/* harmony import */ var
|
|
117747
|
-
/* harmony import */ var
|
|
117748
|
-
/* harmony import */ var
|
|
117749
|
-
/* harmony import */ var
|
|
117750
|
-
/* harmony import */ var
|
|
117751
|
-
/* harmony import */ var
|
|
117752
|
-
/* harmony import */ var
|
|
117753
|
-
/* harmony import */ var
|
|
117754
|
-
/* harmony import */ var
|
|
117755
|
-
/* harmony import */ var
|
|
117756
|
-
/* harmony import */ var
|
|
117757
|
-
/* harmony import */ var
|
|
117758
|
-
/* harmony import */ var
|
|
117759
|
-
/* harmony import */ var
|
|
117760
|
-
/* harmony import */ var
|
|
117761
|
-
/* harmony import */ var _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(17658);
|
|
117907
|
+
/* harmony import */ var _state_WorkflowExecutionState_ts__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(61596);
|
|
117908
|
+
/* harmony import */ var _resolver_ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(22411);
|
|
117909
|
+
/* harmony import */ var _resolver_StepParameterResolver_ts__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(92126);
|
|
117910
|
+
/* harmony import */ var _resolver_OpenAPIOperationParameterResolver_ts__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(3347);
|
|
117911
|
+
/* harmony import */ var _resolver_WorkflowParameterResolver_ts__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(95839);
|
|
117912
|
+
/* harmony import */ var _resolver_OutputResolver_ts__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(99494);
|
|
117913
|
+
/* harmony import */ var _resolver_RequestBodyResolver_ts__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(67410);
|
|
117914
|
+
/* harmony import */ var _action_ActionResolver_ts__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(51097);
|
|
117915
|
+
/* harmony import */ var _executor_WorkflowExecutor_ts__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(92152);
|
|
117916
|
+
/* harmony import */ var _executor_StepExecutor_ts__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(96007);
|
|
117917
|
+
/* harmony import */ var _executor_OpenAPIOperationExecutor_ts__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(57680);
|
|
117918
|
+
/* harmony import */ var _executor_SourceDescriptionsLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(83461);
|
|
117919
|
+
/* harmony import */ var _executor_OpenAPIOperationLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(7308);
|
|
117920
|
+
/* harmony import */ var _executor_ArazzoWorkflowLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(98885);
|
|
117921
|
+
/* harmony import */ var _errors_ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(23949);
|
|
117922
|
+
/* harmony import */ var _errors_AssemblerError_ts__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(90706);
|
|
117923
|
+
/* harmony import */ var _errors_ClientError_ts__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(81763);
|
|
117924
|
+
/* harmony import */ var _errors_NormalizationError_ts__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(35523);
|
|
117925
|
+
/* harmony import */ var _errors_ExtractionError_ts__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(90713);
|
|
117926
|
+
/* harmony import */ var _errors_InvalidEntryDocumentError_ts__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(40198);
|
|
117927
|
+
/* harmony import */ var _errors_UnmatchedProviderError_ts__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(46132);
|
|
117928
|
+
/* harmony import */ var _errors_DocumentLoadError_ts__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(24089);
|
|
117929
|
+
/* harmony import */ var _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(48770);
|
|
117930
|
+
/* harmony import */ var _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(41233);
|
|
117931
|
+
/* harmony import */ var _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(71731);
|
|
117932
|
+
/* harmony import */ var _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(8696);
|
|
117933
|
+
/* harmony import */ var _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(17658);
|
|
117762
117934
|
/* Runner */
|
|
117763
117935
|
|
|
117764
117936
|
|
|
@@ -117812,7 +117984,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
117812
117984
|
|
|
117813
117985
|
|
|
117814
117986
|
|
|
117815
|
-
|
|
117816
117987
|
/* Execution State */
|
|
117817
117988
|
|
|
117818
117989
|
/* Resolvers */
|