@usearazzo/runner 1.0.1-alpha.23 → 1.0.1-alpha.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +1 -1
- package/dist/arazzo-runner.browser.js +362 -226
- package/dist/arazzo-runner.browser.min.js +1 -1
- package/package.json +4 -4
- package/src/action/ActionResolver.cjs +4 -4
- package/src/action/ActionResolver.mjs +4 -4
- package/src/criterion/CriterionEvaluator.cjs +8 -9
- package/src/criterion/CriterionEvaluator.mjs +8 -9
- package/src/criterion/JSONPathCriterionEvaluator.cjs +1 -2
- package/src/criterion/JSONPathCriterionEvaluator.mjs +1 -2
- package/src/criterion/RegexCriterionEvaluator.cjs +1 -2
- package/src/criterion/RegexCriterionEvaluator.mjs +1 -2
- package/src/criterion/SimpleCriterionEvaluator.cjs +1 -2
- package/src/criterion/SimpleCriterionEvaluator.mjs +1 -2
- package/src/criterion/XPathCriterionEvaluator.cjs +4 -5
- package/src/criterion/XPathCriterionEvaluator.mjs +4 -5
- package/src/errors/CriterionError.cjs +52 -2
- package/src/errors/CriterionError.mjs +53 -2
- package/src/errors/ExecutionError.cjs +73 -2
- package/src/errors/ExecutionError.mjs +74 -2
- package/src/errors/ResolverError.cjs +53 -2
- package/src/errors/ResolverError.mjs +54 -2
- package/src/errors/RuntimeExpressionError.cjs +32 -2
- package/src/errors/RuntimeExpressionError.mjs +33 -2
- package/src/executor/ArazzoWorkflowLocatorNormalizer.cjs +4 -4
- package/src/executor/ArazzoWorkflowLocatorNormalizer.mjs +4 -4
- package/src/executor/OpenAPIOperationLocatorNormalizer.cjs +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 +196 -45
- package/src/criterion/CriterionErrorReason.cjs +0 -51
- package/src/criterion/CriterionErrorReason.mjs +0 -46
|
@@ -9057,7 +9057,7 @@ class ActionResolver {
|
|
|
9057
9057
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_2__["default"](`\`${field}\` is present but is not a list`, {
|
|
9058
9058
|
...scope,
|
|
9059
9059
|
target: field,
|
|
9060
|
-
reason:
|
|
9060
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].MalformedActions
|
|
9061
9061
|
});
|
|
9062
9062
|
}
|
|
9063
9063
|
const matched = [];
|
|
@@ -9066,7 +9066,7 @@ class ActionResolver {
|
|
|
9066
9066
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_2__["default"](`\`${field}\` contains an entry that is not a Success/Failure Action Object`, {
|
|
9067
9067
|
...scope,
|
|
9068
9068
|
target: field,
|
|
9069
|
-
reason:
|
|
9069
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].MalformedActionEntry
|
|
9070
9070
|
});
|
|
9071
9071
|
}
|
|
9072
9072
|
if (this.#criteriaMet(action, isCriterionMet, scope)) {
|
|
@@ -9093,7 +9093,7 @@ class ActionResolver {
|
|
|
9093
9093
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_2__["default"]("An action's `criteria` is present but is not a list", {
|
|
9094
9094
|
...scope,
|
|
9095
9095
|
target: 'criteria',
|
|
9096
|
-
reason:
|
|
9096
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].MalformedCriteria
|
|
9097
9097
|
});
|
|
9098
9098
|
}
|
|
9099
9099
|
let met = true;
|
|
@@ -9102,7 +9102,7 @@ class ActionResolver {
|
|
|
9102
9102
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_2__["default"]("An action's `criteria` contains an entry that is not a Criterion Object", {
|
|
9103
9103
|
...scope,
|
|
9104
9104
|
target: 'criteria',
|
|
9105
|
-
reason:
|
|
9105
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].MalformedCriterion
|
|
9106
9106
|
});
|
|
9107
9107
|
}
|
|
9108
9108
|
// every criterion is evaluated, not only up to the first unmet one, so
|
|
@@ -9938,64 +9938,6 @@ const MAX_DOCUMENT_REGISTRY_SIZE = 4;
|
|
|
9938
9938
|
/* harmony export */ ]);
|
|
9939
9939
|
|
|
9940
9940
|
|
|
9941
|
-
/***/ },
|
|
9942
|
-
|
|
9943
|
-
/***/ 94547
|
|
9944
|
-
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
9945
|
-
|
|
9946
|
-
"use strict";
|
|
9947
|
-
__webpack_require__.r(__webpack_exports__);
|
|
9948
|
-
/**
|
|
9949
|
-
* The `reason` a {@link CriterionError} carries.
|
|
9950
|
-
*
|
|
9951
|
-
* Structural reasons mark a criterion that is malformed as written; they are
|
|
9952
|
-
* thrown as a plain `CriterionError`. Evaluation reasons (`InvalidSimple`,
|
|
9953
|
-
* `InvalidRegex`, `InvalidJSONPath`, `InvalidXPath`, `InvalidXPathContext`) mark
|
|
9954
|
-
* a condition that cannot be evaluated; they are thrown as a
|
|
9955
|
-
* {@link CriterionEvaluationError}, which `CriterionEvaluator` turns into an
|
|
9956
|
-
* unmet criterion.
|
|
9957
|
-
* @public
|
|
9958
|
-
*/
|
|
9959
|
-
const CriterionErrorReason = {
|
|
9960
|
-
/** The element is not a Criterion Object. */
|
|
9961
|
-
InvalidCriterion: 'invalid-criterion',
|
|
9962
|
-
/** The `condition` is missing or empty. */
|
|
9963
|
-
MissingCondition: 'missing-condition',
|
|
9964
|
-
/** The `type` is present but unreadable. */
|
|
9965
|
-
InvalidType: 'invalid-type',
|
|
9966
|
-
/** The `type` names no known criterion type. */
|
|
9967
|
-
UnknownType: 'unknown-type',
|
|
9968
|
-
/** The expression type `version` is present but not a string. */
|
|
9969
|
-
InvalidVersion: 'invalid-version',
|
|
9970
|
-
/** The expression type `version` is not the one this runner supports. */
|
|
9971
|
-
UnsupportedVersion: 'unsupported-version',
|
|
9972
|
-
/** The `context` is not a runtime expression. */
|
|
9973
|
-
InvalidContext: 'invalid-context',
|
|
9974
|
-
/** A `regex`, `jsonpath` or `xpath` criterion has no `context`. */
|
|
9975
|
-
MissingContext: 'missing-context',
|
|
9976
|
-
/** The `simple` condition cannot be parsed. */
|
|
9977
|
-
InvalidSimple: 'invalid-simple',
|
|
9978
|
-
/** The `regex` condition is not a valid regular expression. */
|
|
9979
|
-
InvalidRegex: 'invalid-regex',
|
|
9980
|
-
/** The `jsonpath` condition is not a valid JSONPath query. */
|
|
9981
|
-
InvalidJSONPath: 'invalid-jsonpath',
|
|
9982
|
-
/** The `xpath` condition is invalid or fails to evaluate. */
|
|
9983
|
-
InvalidXPath: 'invalid-xpath',
|
|
9984
|
-
/** The resolved `xpath` context is not XML. */
|
|
9985
|
-
InvalidXPathContext: 'invalid-xpath-context'
|
|
9986
|
-
};
|
|
9987
|
-
|
|
9988
|
-
/**
|
|
9989
|
-
* One of the `CriterionErrorReason` values.
|
|
9990
|
-
* @public
|
|
9991
|
-
*/
|
|
9992
|
-
|
|
9993
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CriterionErrorReason);
|
|
9994
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
9995
|
-
/* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
|
|
9996
|
-
/* harmony export */ ]);
|
|
9997
|
-
|
|
9998
|
-
|
|
9999
9941
|
/***/ },
|
|
10000
9942
|
|
|
10001
9943
|
/***/ 98936
|
|
@@ -10009,12 +9951,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10009
9951
|
/* harmony import */ var _swaggerexpert_arazzo_runtime_expression__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(26847);
|
|
10010
9952
|
/* harmony import */ var _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(41233);
|
|
10011
9953
|
/* harmony import */ var _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71731);
|
|
10012
|
-
/* harmony import */ var
|
|
10013
|
-
/* harmony import */ var
|
|
10014
|
-
/* harmony import */ var
|
|
10015
|
-
/* harmony import */ var
|
|
10016
|
-
/* harmony import */ var _XPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(84997);
|
|
10017
|
-
|
|
9954
|
+
/* harmony import */ var _RegexCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(13517);
|
|
9955
|
+
/* harmony import */ var _SimpleCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(41346);
|
|
9956
|
+
/* harmony import */ var _JSONPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(90089);
|
|
9957
|
+
/* harmony import */ var _XPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(84997);
|
|
10018
9958
|
|
|
10019
9959
|
|
|
10020
9960
|
|
|
@@ -10096,10 +10036,10 @@ class CriterionEvaluator {
|
|
|
10096
10036
|
#jsonpath;
|
|
10097
10037
|
#xpath;
|
|
10098
10038
|
constructor(options = {}) {
|
|
10099
|
-
this.#simple = options.simple ?? new
|
|
10100
|
-
this.#regex = options.regex ?? new
|
|
10101
|
-
this.#jsonpath = options.jsonpath ?? new
|
|
10102
|
-
this.#xpath = options.xpath ?? new
|
|
10039
|
+
this.#simple = options.simple ?? new _SimpleCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_7__["default"]();
|
|
10040
|
+
this.#regex = options.regex ?? new _RegexCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
10041
|
+
this.#jsonpath = options.jsonpath ?? new _JSONPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_8__["default"]();
|
|
10042
|
+
this.#xpath = options.xpath ?? new _XPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_9__["default"]();
|
|
10103
10043
|
}
|
|
10104
10044
|
|
|
10105
10045
|
/**
|
|
@@ -10113,7 +10053,7 @@ class CriterionEvaluator {
|
|
|
10113
10053
|
evaluate(criterion, resolve) {
|
|
10114
10054
|
if (!(0,_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_2__.isCriterionElement)(criterion)) {
|
|
10115
10055
|
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"]('Element is not a Criterion Object', {
|
|
10116
|
-
reason:
|
|
10056
|
+
reason: _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].InvalidCriterion
|
|
10117
10057
|
});
|
|
10118
10058
|
}
|
|
10119
10059
|
const condition = (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(criterion.condition) ? (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(criterion.condition) : undefined;
|
|
@@ -10121,7 +10061,7 @@ class CriterionEvaluator {
|
|
|
10121
10061
|
// (e.g. an empty regex would match unconditionally), so reject it too.
|
|
10122
10062
|
if (condition === undefined || condition === '') {
|
|
10123
10063
|
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"]('Criterion is missing a "condition"', {
|
|
10124
|
-
reason:
|
|
10064
|
+
reason: _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].MissingCondition
|
|
10125
10065
|
});
|
|
10126
10066
|
}
|
|
10127
10067
|
const type = this.#resolveType(criterion);
|
|
@@ -10152,7 +10092,7 @@ class CriterionEvaluator {
|
|
|
10152
10092
|
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"](`Unknown criterion type "${type}"`, {
|
|
10153
10093
|
condition,
|
|
10154
10094
|
type,
|
|
10155
|
-
reason:
|
|
10095
|
+
reason: _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].UnknownType
|
|
10156
10096
|
});
|
|
10157
10097
|
}
|
|
10158
10098
|
} catch (error) {
|
|
@@ -10183,7 +10123,7 @@ class CriterionEvaluator {
|
|
|
10183
10123
|
}
|
|
10184
10124
|
if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(type)) return (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(type);
|
|
10185
10125
|
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"]('Criterion has an invalid "type"', {
|
|
10186
|
-
reason:
|
|
10126
|
+
reason: _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].InvalidType
|
|
10187
10127
|
});
|
|
10188
10128
|
}
|
|
10189
10129
|
|
|
@@ -10203,7 +10143,7 @@ class CriterionEvaluator {
|
|
|
10203
10143
|
return (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(type.version);
|
|
10204
10144
|
}
|
|
10205
10145
|
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"]('Criterion has an invalid expression type "version"', {
|
|
10206
|
-
reason:
|
|
10146
|
+
reason: _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].InvalidVersion
|
|
10207
10147
|
});
|
|
10208
10148
|
}
|
|
10209
10149
|
|
|
@@ -10218,7 +10158,7 @@ class CriterionEvaluator {
|
|
|
10218
10158
|
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"](`Unsupported ${type} version "${version}" (only ${supported})`, {
|
|
10219
10159
|
condition,
|
|
10220
10160
|
type,
|
|
10221
|
-
reason:
|
|
10161
|
+
reason: _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].UnsupportedVersion
|
|
10222
10162
|
});
|
|
10223
10163
|
}
|
|
10224
10164
|
}
|
|
@@ -10236,7 +10176,7 @@ class CriterionEvaluator {
|
|
|
10236
10176
|
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(context) || !(0,_swaggerexpert_arazzo_runtime_expression__WEBPACK_IMPORTED_MODULE_3__.test)((0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(context))) {
|
|
10237
10177
|
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"]('Criterion has a "context" that is not a valid runtime expression', {
|
|
10238
10178
|
type,
|
|
10239
|
-
reason:
|
|
10179
|
+
reason: _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].InvalidContext
|
|
10240
10180
|
});
|
|
10241
10181
|
}
|
|
10242
10182
|
}
|
|
@@ -10251,7 +10191,7 @@ class CriterionEvaluator {
|
|
|
10251
10191
|
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(criterion.context)) {
|
|
10252
10192
|
throw new _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"](`Criterion type "${type}" requires a "context"`, {
|
|
10253
10193
|
type,
|
|
10254
|
-
reason:
|
|
10194
|
+
reason: _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].MissingContext
|
|
10255
10195
|
});
|
|
10256
10196
|
}
|
|
10257
10197
|
return resolve((0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(criterion.context));
|
|
@@ -10272,8 +10212,6 @@ class CriterionEvaluator {
|
|
|
10272
10212
|
__webpack_require__.r(__webpack_exports__);
|
|
10273
10213
|
/* harmony import */ var _swaggerexpert_jsonpath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(84637);
|
|
10274
10214
|
/* harmony import */ var _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71731);
|
|
10275
|
-
/* harmony import */ var _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(94547);
|
|
10276
|
-
|
|
10277
10215
|
|
|
10278
10216
|
|
|
10279
10217
|
|
|
@@ -10310,7 +10248,7 @@ class JSONPathCriterionEvaluator {
|
|
|
10310
10248
|
cause: error,
|
|
10311
10249
|
condition,
|
|
10312
10250
|
type: 'jsonpath',
|
|
10313
|
-
reason:
|
|
10251
|
+
reason: _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_1__["default"].InvalidJSONPath
|
|
10314
10252
|
});
|
|
10315
10253
|
}
|
|
10316
10254
|
throw error;
|
|
@@ -10331,8 +10269,6 @@ class JSONPathCriterionEvaluator {
|
|
|
10331
10269
|
"use strict";
|
|
10332
10270
|
__webpack_require__.r(__webpack_exports__);
|
|
10333
10271
|
/* harmony import */ var _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71731);
|
|
10334
|
-
/* harmony import */ var _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94547);
|
|
10335
|
-
|
|
10336
10272
|
|
|
10337
10273
|
|
|
10338
10274
|
/**
|
|
@@ -10377,7 +10313,7 @@ class RegexCriterionEvaluator {
|
|
|
10377
10313
|
cause: error,
|
|
10378
10314
|
condition,
|
|
10379
10315
|
type: 'regex',
|
|
10380
|
-
reason:
|
|
10316
|
+
reason: _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_0__["default"].InvalidRegex
|
|
10381
10317
|
});
|
|
10382
10318
|
}
|
|
10383
10319
|
return regExp.test(this.#stringify(context));
|
|
@@ -10410,8 +10346,6 @@ class RegexCriterionEvaluator {
|
|
|
10410
10346
|
__webpack_require__.r(__webpack_exports__);
|
|
10411
10347
|
/* harmony import */ var _swaggerexpert_arazzo_criterion__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88006);
|
|
10412
10348
|
/* harmony import */ var _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71731);
|
|
10413
|
-
/* harmony import */ var _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(94547);
|
|
10414
|
-
|
|
10415
10349
|
|
|
10416
10350
|
|
|
10417
10351
|
/**
|
|
@@ -10447,7 +10381,7 @@ class SimpleCriterionEvaluator {
|
|
|
10447
10381
|
cause: error,
|
|
10448
10382
|
condition,
|
|
10449
10383
|
type: 'simple',
|
|
10450
|
-
reason:
|
|
10384
|
+
reason: _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_1__["default"].InvalidSimple
|
|
10451
10385
|
});
|
|
10452
10386
|
}
|
|
10453
10387
|
throw error;
|
|
@@ -10470,13 +10404,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10470
10404
|
/* harmony import */ var fontoxpath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38406);
|
|
10471
10405
|
/* harmony import */ var _xmldom_xmldom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17937);
|
|
10472
10406
|
/* harmony import */ var _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71731);
|
|
10473
|
-
/* harmony import */ var _CriterionErrorReason_ts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(94547);
|
|
10474
10407
|
// fontoxpath is CommonJS and its named exports are not statically resolvable
|
|
10475
10408
|
// under ESM, so import the default and destructure.
|
|
10476
10409
|
|
|
10477
10410
|
|
|
10478
10411
|
|
|
10479
|
-
|
|
10480
10412
|
const {
|
|
10481
10413
|
evaluateXPathToBoolean,
|
|
10482
10414
|
evaluateXPath
|
|
@@ -10520,7 +10452,7 @@ class XPathCriterionEvaluator {
|
|
|
10520
10452
|
cause: error,
|
|
10521
10453
|
condition,
|
|
10522
10454
|
type: 'xpath',
|
|
10523
|
-
reason:
|
|
10455
|
+
reason: _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].InvalidXPath
|
|
10524
10456
|
});
|
|
10525
10457
|
}
|
|
10526
10458
|
}
|
|
@@ -10536,7 +10468,7 @@ class XPathCriterionEvaluator {
|
|
|
10536
10468
|
throw new _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_2__["default"]('xpath criterion context is not XML', {
|
|
10537
10469
|
condition,
|
|
10538
10470
|
type: 'xpath',
|
|
10539
|
-
reason:
|
|
10471
|
+
reason: _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].InvalidXPathContext
|
|
10540
10472
|
});
|
|
10541
10473
|
}
|
|
10542
10474
|
|
|
@@ -10556,7 +10488,7 @@ class XPathCriterionEvaluator {
|
|
|
10556
10488
|
cause: parseError,
|
|
10557
10489
|
condition,
|
|
10558
10490
|
type: 'xpath',
|
|
10559
|
-
reason:
|
|
10491
|
+
reason: _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].InvalidXPathContext
|
|
10560
10492
|
});
|
|
10561
10493
|
}
|
|
10562
10494
|
return document;
|
|
@@ -10566,7 +10498,7 @@ class XPathCriterionEvaluator {
|
|
|
10566
10498
|
cause: error,
|
|
10567
10499
|
condition,
|
|
10568
10500
|
type: 'xpath',
|
|
10569
|
-
reason:
|
|
10501
|
+
reason: _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].InvalidXPathContext
|
|
10570
10502
|
});
|
|
10571
10503
|
}
|
|
10572
10504
|
}
|
|
@@ -11053,8 +10985,60 @@ class ClientError extends _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__["de
|
|
|
11053
10985
|
__webpack_require__.r(__webpack_exports__);
|
|
11054
10986
|
/* harmony import */ var _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23949);
|
|
11055
10987
|
|
|
11056
|
-
|
|
11057
|
-
|
|
10988
|
+
|
|
10989
|
+
/**
|
|
10990
|
+
* Carries a `reason`, one of the class's static reason fields.
|
|
10991
|
+
*
|
|
10992
|
+
* Every static on this class is a reason: {@link CriterionErrorReason} is
|
|
10993
|
+
* derived from the class's own statics, so a non-reason static would join the
|
|
10994
|
+
* union.
|
|
10995
|
+
* @public
|
|
10996
|
+
*/
|
|
10997
|
+
class CriterionError extends _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
10998
|
+
/** The element is not a Criterion Object. */
|
|
10999
|
+
static InvalidCriterion = 'invalid-criterion';
|
|
11000
|
+
/** The `condition` is missing or empty. */
|
|
11001
|
+
static MissingCondition = 'missing-condition';
|
|
11002
|
+
/** The `type` is present but unreadable. */
|
|
11003
|
+
static InvalidType = 'invalid-type';
|
|
11004
|
+
/** The `type` names no known criterion type. */
|
|
11005
|
+
static UnknownType = 'unknown-type';
|
|
11006
|
+
/** The expression type `version` is present but not a string. */
|
|
11007
|
+
static InvalidVersion = 'invalid-version';
|
|
11008
|
+
/** The expression type `version` is not the one this runner supports. */
|
|
11009
|
+
static UnsupportedVersion = 'unsupported-version';
|
|
11010
|
+
/** The `context` is not a runtime expression. */
|
|
11011
|
+
static InvalidContext = 'invalid-context';
|
|
11012
|
+
/** A `regex`, `jsonpath` or `xpath` criterion has no `context`. */
|
|
11013
|
+
static MissingContext = 'missing-context';
|
|
11014
|
+
/** The `simple` condition cannot be parsed. */
|
|
11015
|
+
static InvalidSimple = 'invalid-simple';
|
|
11016
|
+
/** The `regex` condition is not a valid regular expression. */
|
|
11017
|
+
static InvalidRegex = 'invalid-regex';
|
|
11018
|
+
/** The `jsonpath` condition is not a valid JSONPath query. */
|
|
11019
|
+
static InvalidJSONPath = 'invalid-jsonpath';
|
|
11020
|
+
/** The `xpath` condition is invalid or fails to evaluate. */
|
|
11021
|
+
static InvalidXPath = 'invalid-xpath';
|
|
11022
|
+
/** The resolved `xpath` context is not XML. */
|
|
11023
|
+
static InvalidXPathContext = 'invalid-xpath-context';
|
|
11024
|
+
constructor(message, options) {
|
|
11025
|
+
super(message, options);
|
|
11026
|
+
}
|
|
11027
|
+
}
|
|
11028
|
+
|
|
11029
|
+
/**
|
|
11030
|
+
* One of the reasons a {@link CriterionError} carries: a `CriterionError`
|
|
11031
|
+
* static such as `CriterionError.InvalidRegex`.
|
|
11032
|
+
*
|
|
11033
|
+
* Structural reasons mark a criterion that is malformed as written; they are
|
|
11034
|
+
* thrown as a plain `CriterionError`. Evaluation reasons (`InvalidSimple`,
|
|
11035
|
+
* `InvalidRegex`, `InvalidJSONPath`, `InvalidXPath`, `InvalidXPathContext`) mark
|
|
11036
|
+
* a condition that cannot be evaluated; they are thrown as a
|
|
11037
|
+
* {@link CriterionEvaluationError}, which `CriterionEvaluator` turns into an
|
|
11038
|
+
* unmet criterion.
|
|
11039
|
+
* @public
|
|
11040
|
+
*/
|
|
11041
|
+
|
|
11058
11042
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CriterionError);
|
|
11059
11043
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
11060
11044
|
/* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
|
|
@@ -11114,8 +11098,80 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11114
11098
|
/* harmony import */ var _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23949);
|
|
11115
11099
|
|
|
11116
11100
|
|
|
11117
|
-
/**
|
|
11118
|
-
class
|
|
11101
|
+
/**
|
|
11102
|
+
* Carries a `reason`, one of the class's static reason fields.
|
|
11103
|
+
*
|
|
11104
|
+
* Every static on this class is a reason: {@link ExecutionErrorReason} is
|
|
11105
|
+
* derived from the class's own statics, so a non-reason static would join the
|
|
11106
|
+
* union.
|
|
11107
|
+
* @public
|
|
11108
|
+
*/
|
|
11109
|
+
class ExecutionError extends _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
11110
|
+
/** The run was cancelled through its `AbortSignal`; the signal's reason is the `cause`. */
|
|
11111
|
+
static Aborted = 'aborted';
|
|
11112
|
+
/** A step or a `goto`/`retry` action declares more than one mutually exclusive target. */
|
|
11113
|
+
static AmbiguousTarget = 'ambiguous-target';
|
|
11114
|
+
/** The `dependsOn` edges alone form a cycle between workflows. */
|
|
11115
|
+
static DependsOnCycle = 'dependsOn-cycle';
|
|
11116
|
+
/** A `goto` action declares neither a `stepId` nor a `workflowId`. */
|
|
11117
|
+
static GotoTargetMissing = 'goto-target-missing';
|
|
11118
|
+
/** A `goto` action's `stepId` names no step in the workflow. */
|
|
11119
|
+
static GotoTargetNotFound = 'goto-target-not-found';
|
|
11120
|
+
/** An `operationId` or `operationPath` is not a valid operation reference. */
|
|
11121
|
+
static InvalidOperationReference = 'invalid-operation-reference';
|
|
11122
|
+
/** A `workflowId` is not a valid `$sourceDescriptions.{name}.{workflowId}` expression. */
|
|
11123
|
+
static InvalidWorkflowReference = 'invalid-workflow-reference';
|
|
11124
|
+
/** A workflow's `dependsOn` is not a list or holds a non-string entry. */
|
|
11125
|
+
static MalformedDependsOn = 'malformed-dependsOn';
|
|
11126
|
+
/** A workflow's `steps` is not a list or holds an entry that is not a Step Object. */
|
|
11127
|
+
static MalformedSteps = 'malformed-steps';
|
|
11128
|
+
/** A step run as an operation declares neither an `operationId` nor an `operationPath`. */
|
|
11129
|
+
static MissingOperation = 'missing-operation';
|
|
11130
|
+
/** An operation reference locates no operation in its OpenAPI source description. */
|
|
11131
|
+
static OperationNotFound = 'operation-not-found';
|
|
11132
|
+
/** A `retry` action references a step or workflow, but no run reference was given to run it. */
|
|
11133
|
+
static RetryReferenceUnsupported = 'retry-reference-unsupported';
|
|
11134
|
+
/** A `retry` action's `stepId` names no step in the workflow. */
|
|
11135
|
+
static RetryTargetNotFound = 'retry-target-not-found';
|
|
11136
|
+
/** A workflow reference names a source description that is not an Arazzo document. */
|
|
11137
|
+
static SourceDescriptionNotArazzo = 'source-description-not-arazzo';
|
|
11138
|
+
/** A reference names a source description the Arazzo document does not define. */
|
|
11139
|
+
static SourceDescriptionNotFound = 'source-description-not-found';
|
|
11140
|
+
/** An operation reference names a source description that is not an OpenAPI document. */
|
|
11141
|
+
static SourceDescriptionNotOpenAPI = 'source-description-not-openapi';
|
|
11142
|
+
/** A workflow exceeded its budget of step attempts. */
|
|
11143
|
+
static StepBudget = 'step-budget';
|
|
11144
|
+
/** An action declares a `type` other than `end`, `goto` or `retry`. */
|
|
11145
|
+
static UnknownActionType = 'unknown-action-type';
|
|
11146
|
+
/** `execute` received an option it does not know. */
|
|
11147
|
+
static UnknownExecuteOption = 'unknown-execute-option';
|
|
11148
|
+
/** A step produced a transition the workflow executor does not recognize. */
|
|
11149
|
+
static UnknownTransitionKind = 'unknown-transition-kind';
|
|
11150
|
+
/** A sub-workflow call (alone or together with `dependsOn`) forms a cycle between workflows. */
|
|
11151
|
+
static WorkflowCycle = 'workflow-cycle';
|
|
11152
|
+
/** Workflows nest deeper than the configured limit. */
|
|
11153
|
+
static WorkflowDepth = 'workflow-depth';
|
|
11154
|
+
/** A workflow reference names a workflow the Arazzo document does not define. */
|
|
11155
|
+
static WorkflowNotFound = 'workflow-not-found';
|
|
11156
|
+
/** A step that targets a workflow was handed to the step executor, which runs operations only. */
|
|
11157
|
+
static WorkflowStep = 'workflow-step';
|
|
11158
|
+
|
|
11159
|
+
/**
|
|
11160
|
+
* The chain of workflowIds the error concerns — the loop A → B → A for a
|
|
11161
|
+
* cycle, or the call chain in progress when a budget ran out.
|
|
11162
|
+
*/
|
|
11163
|
+
|
|
11164
|
+
constructor(message, options) {
|
|
11165
|
+
super(message, options);
|
|
11166
|
+
}
|
|
11167
|
+
}
|
|
11168
|
+
|
|
11169
|
+
/**
|
|
11170
|
+
* One of the reasons an {@link ExecutionError} carries: an `ExecutionError`
|
|
11171
|
+
* static such as `ExecutionError.OperationNotFound`.
|
|
11172
|
+
* @public
|
|
11173
|
+
*/
|
|
11174
|
+
|
|
11119
11175
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ExecutionError);
|
|
11120
11176
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
11121
11177
|
/* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
|
|
@@ -11186,8 +11242,60 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11186
11242
|
/* harmony import */ var _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23949);
|
|
11187
11243
|
|
|
11188
11244
|
|
|
11189
|
-
/**
|
|
11190
|
-
class
|
|
11245
|
+
/**
|
|
11246
|
+
* Carries a `reason`, one of the class's static reason fields.
|
|
11247
|
+
*
|
|
11248
|
+
* Every static on this class is a reason: {@link ResolverErrorReason} is
|
|
11249
|
+
* derived from the class's own statics, so a non-reason static would join the
|
|
11250
|
+
* union.
|
|
11251
|
+
* @public
|
|
11252
|
+
*/
|
|
11253
|
+
class ResolverError extends _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
11254
|
+
/** A parameter cannot be delivered unambiguously at its location. */
|
|
11255
|
+
static AmbiguousDelivery = 'ambiguous-delivery';
|
|
11256
|
+
/** An output or a request body payload holds a value that is not a valid runtime expression. */
|
|
11257
|
+
static InvalidExpression = 'invalid-expression';
|
|
11258
|
+
/** A parameter's location (`in`) is not one of the known locations. */
|
|
11259
|
+
static InvalidLocation = 'invalid-location';
|
|
11260
|
+
/** An `onSuccess`/`onFailure` list holds an entry that is not a Success/Failure Action Object. */
|
|
11261
|
+
static MalformedActionEntry = 'malformed-action-entry';
|
|
11262
|
+
/** A step's `onSuccess` or `onFailure` is present but is not a list. */
|
|
11263
|
+
static MalformedActions = 'malformed-actions';
|
|
11264
|
+
/** A step's `successCriteria` or an action's `criteria` is present but is not a list. */
|
|
11265
|
+
static MalformedCriteria = 'malformed-criteria';
|
|
11266
|
+
/** A criteria list holds an entry that is not a Criterion Object. */
|
|
11267
|
+
static MalformedCriterion = 'malformed-criterion';
|
|
11268
|
+
/** A parameter's location (`in`) is not a string. */
|
|
11269
|
+
static MalformedLocation = 'malformed-location';
|
|
11270
|
+
/** A step's or workflow's `outputs` is present but is not a map. */
|
|
11271
|
+
static MalformedOutputs = 'malformed-outputs';
|
|
11272
|
+
/** `parameters` is present but is not a list. */
|
|
11273
|
+
static MalformedParameters = 'malformed-parameters';
|
|
11274
|
+
/** `requestBody.replacements` is present but is not a list. */
|
|
11275
|
+
static MalformedReplacements = 'malformed-replacements';
|
|
11276
|
+
/** `requestBody` is present but is not a map. */
|
|
11277
|
+
static MalformedRequestBody = 'malformed-request-body';
|
|
11278
|
+
/** A parameter of a step that targets an operation declares no location (`in`). */
|
|
11279
|
+
static MissingLocation = 'missing-location';
|
|
11280
|
+
/** A parameter has a missing or non-string `name`. */
|
|
11281
|
+
static MissingName = 'missing-name';
|
|
11282
|
+
/** A runtime expression in the request body did not resolve. */
|
|
11283
|
+
static UnresolvedExpression = 'unresolved-expression';
|
|
11284
|
+
/** A `requestBody` replacement target does not resolve in the payload. */
|
|
11285
|
+
static UnresolvedTarget = 'unresolved-target';
|
|
11286
|
+
/** A `requestBody` replacement target is not a JSON Pointer. */
|
|
11287
|
+
static UnsupportedTarget = 'unsupported-target';
|
|
11288
|
+
constructor(message, options) {
|
|
11289
|
+
super(message, options);
|
|
11290
|
+
}
|
|
11291
|
+
}
|
|
11292
|
+
|
|
11293
|
+
/**
|
|
11294
|
+
* One of the reasons a {@link ResolverError} carries: a `ResolverError`
|
|
11295
|
+
* static such as `ResolverError.MalformedParameters`.
|
|
11296
|
+
* @public
|
|
11297
|
+
*/
|
|
11298
|
+
|
|
11191
11299
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ResolverError);
|
|
11192
11300
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
11193
11301
|
/* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
|
|
@@ -11204,8 +11312,39 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11204
11312
|
/* harmony import */ var _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23949);
|
|
11205
11313
|
|
|
11206
11314
|
|
|
11207
|
-
/**
|
|
11208
|
-
class
|
|
11315
|
+
/**
|
|
11316
|
+
* Carries a `reason`, one of the class's static reason fields.
|
|
11317
|
+
*
|
|
11318
|
+
* Every static on this class is a reason: {@link RuntimeExpressionErrorReason}
|
|
11319
|
+
* is derived from the class's own statics, so a non-reason static would join
|
|
11320
|
+
* the union.
|
|
11321
|
+
* @public
|
|
11322
|
+
*/
|
|
11323
|
+
class RuntimeExpressionError extends _ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
11324
|
+
/** The expression is not a valid runtime expression. */
|
|
11325
|
+
static InvalidExpression = 'invalid-expression';
|
|
11326
|
+
/** The runtime expression parser failed on the expression. */
|
|
11327
|
+
static ParseError = 'parse-error';
|
|
11328
|
+
/**
|
|
11329
|
+
* The expression reads HTTP data (`$statusCode`, `$url`, `$method`, `$request`,
|
|
11330
|
+
* `$response`) in a step that calls a workflow and so made no HTTP call.
|
|
11331
|
+
*/
|
|
11332
|
+
static UnavailableExpression = 'unavailable-expression';
|
|
11333
|
+
/** The expression could not be resolved against the evaluation context. */
|
|
11334
|
+
static UnresolvedReference = 'unresolved-reference';
|
|
11335
|
+
/** The parsed expression contains a node the evaluator does not support. */
|
|
11336
|
+
static UnsupportedNode = 'unsupported-node';
|
|
11337
|
+
constructor(message, options) {
|
|
11338
|
+
super(message, options);
|
|
11339
|
+
}
|
|
11340
|
+
}
|
|
11341
|
+
|
|
11342
|
+
/**
|
|
11343
|
+
* One of the reasons a {@link RuntimeExpressionError} carries: a
|
|
11344
|
+
* `RuntimeExpressionError` static such as `RuntimeExpressionError.ParseError`.
|
|
11345
|
+
* @public
|
|
11346
|
+
*/
|
|
11347
|
+
|
|
11209
11348
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RuntimeExpressionError);
|
|
11210
11349
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
11211
11350
|
/* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
|
|
@@ -11311,7 +11450,7 @@ class ArazzoWorkflowLocatorNormalizer extends _SourceDescriptionsLocatorNormaliz
|
|
|
11311
11450
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_1__["default"](`workflow reference "${reference}" in workflow "${context.workflowId}" names workflow "${locator.workflowId}", which the Arazzo document at "${locator.document.uri}" does not define`, {
|
|
11312
11451
|
workflowId: context.workflowId,
|
|
11313
11452
|
stepId: context.stepId,
|
|
11314
|
-
reason:
|
|
11453
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_1__["default"].WorkflowNotFound
|
|
11315
11454
|
});
|
|
11316
11455
|
}
|
|
11317
11456
|
return locator;
|
|
@@ -11340,7 +11479,7 @@ class ArazzoWorkflowLocatorNormalizer extends _SourceDescriptionsLocatorNormaliz
|
|
|
11340
11479
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_1__["default"](`workflow reference "${reference}" in workflow "${workflowId}" is not a $sourceDescriptions.{name}.{workflowId} expression`, {
|
|
11341
11480
|
workflowId,
|
|
11342
11481
|
stepId,
|
|
11343
|
-
reason:
|
|
11482
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_1__["default"].InvalidWorkflowReference
|
|
11344
11483
|
});
|
|
11345
11484
|
}
|
|
11346
11485
|
return {
|
|
@@ -11374,7 +11513,7 @@ class ArazzoWorkflowLocatorNormalizer extends _SourceDescriptionsLocatorNormaliz
|
|
|
11374
11513
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_1__["default"](`workflow reference "${parsed.reference}" in workflow "${workflowId}" names source description "${parsed.sourceName}", which the Arazzo document at "${document.uri}" does not define`, {
|
|
11375
11514
|
workflowId,
|
|
11376
11515
|
stepId,
|
|
11377
|
-
reason:
|
|
11516
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_1__["default"].SourceDescriptionNotFound
|
|
11378
11517
|
});
|
|
11379
11518
|
}
|
|
11380
11519
|
const source = await this.registry.acquire(uri);
|
|
@@ -11382,7 +11521,7 @@ class ArazzoWorkflowLocatorNormalizer extends _SourceDescriptionsLocatorNormaliz
|
|
|
11382
11521
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_1__["default"](`workflow reference "${parsed.reference}" in workflow "${workflowId}" names source description "${parsed.sourceName}" at "${uri}", which is not an Arazzo document`, {
|
|
11383
11522
|
workflowId,
|
|
11384
11523
|
stepId,
|
|
11385
|
-
reason:
|
|
11524
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_1__["default"].SourceDescriptionNotArazzo
|
|
11386
11525
|
});
|
|
11387
11526
|
}
|
|
11388
11527
|
return {
|
|
@@ -12124,7 +12263,7 @@ class OpenAPIOperationLocatorNormalizer extends _SourceDescriptionsLocatorNormal
|
|
|
12124
12263
|
if (parsed !== undefined && document.resolveSourceDescriptionURI(parsed.sourceName) === undefined) {
|
|
12125
12264
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`operationPath "${operationPath}" names source description "${parsed.sourceName}", which the Arazzo document at "${document.uri}" does not define`, {
|
|
12126
12265
|
...scope,
|
|
12127
|
-
reason:
|
|
12266
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].SourceDescriptionNotFound
|
|
12128
12267
|
});
|
|
12129
12268
|
}
|
|
12130
12269
|
}
|
|
@@ -12138,21 +12277,21 @@ class OpenAPIOperationLocatorNormalizer extends _SourceDescriptionsLocatorNormal
|
|
|
12138
12277
|
if (documentURI === '') {
|
|
12139
12278
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`operationPath "${operationPath}" does not resolve to a source description URL`, {
|
|
12140
12279
|
...scope,
|
|
12141
|
-
reason:
|
|
12280
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].InvalidOperationReference
|
|
12142
12281
|
});
|
|
12143
12282
|
}
|
|
12144
12283
|
const jsonPointer = _swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_1__.URIFragmentIdentifier.fromURIReference(uriReference);
|
|
12145
12284
|
if (!(0,_swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_1__.testJSONPointer)(jsonPointer)) {
|
|
12146
12285
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`operationPath "${operationPath}" has an invalid JSON Pointer`, {
|
|
12147
12286
|
...scope,
|
|
12148
|
-
reason:
|
|
12287
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].InvalidOperationReference
|
|
12149
12288
|
});
|
|
12150
12289
|
}
|
|
12151
12290
|
const source = await this.registry.acquire(documentURI);
|
|
12152
12291
|
if (!_document_OpenAPIDocument_ts__WEBPACK_IMPORTED_MODULE_3__["default"].is(source)) {
|
|
12153
12292
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`operationPath "${operationPath}" references "${documentURI}", which is not an OpenAPI document`, {
|
|
12154
12293
|
...scope,
|
|
12155
|
-
reason:
|
|
12294
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].SourceDescriptionNotOpenAPI
|
|
12156
12295
|
});
|
|
12157
12296
|
}
|
|
12158
12297
|
|
|
@@ -12164,7 +12303,7 @@ class OpenAPIOperationLocatorNormalizer extends _SourceDescriptionsLocatorNormal
|
|
|
12164
12303
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`operationPath "${operationPath}" does not locate an operation in the OpenAPI document at "${source.uri}"`, {
|
|
12165
12304
|
cause: error,
|
|
12166
12305
|
...scope,
|
|
12167
|
-
reason:
|
|
12306
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].OperationNotFound
|
|
12168
12307
|
});
|
|
12169
12308
|
}
|
|
12170
12309
|
return {
|
|
@@ -12177,7 +12316,7 @@ class OpenAPIOperationLocatorNormalizer extends _SourceDescriptionsLocatorNormal
|
|
|
12177
12316
|
if (parsed === undefined) {
|
|
12178
12317
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`operationId "${expression}" is not a $sourceDescriptions.{name}.{operationId} expression`, {
|
|
12179
12318
|
...scope,
|
|
12180
|
-
reason:
|
|
12319
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].InvalidOperationReference
|
|
12181
12320
|
});
|
|
12182
12321
|
}
|
|
12183
12322
|
const {
|
|
@@ -12189,7 +12328,7 @@ class OpenAPIOperationLocatorNormalizer extends _SourceDescriptionsLocatorNormal
|
|
|
12189
12328
|
if (jsonPointer === undefined) {
|
|
12190
12329
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Operation "${operationId}" not found in source description "${sourceName}" at "${openapiDocument.uri}"`, {
|
|
12191
12330
|
...scope,
|
|
12192
|
-
reason:
|
|
12331
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].OperationNotFound
|
|
12193
12332
|
});
|
|
12194
12333
|
}
|
|
12195
12334
|
return {
|
|
@@ -12218,7 +12357,7 @@ class OpenAPIOperationLocatorNormalizer extends _SourceDescriptionsLocatorNormal
|
|
|
12218
12357
|
if (jsonPointer === undefined) {
|
|
12219
12358
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Operation "${operationId}" not found in source description at "${source.uri}"`, {
|
|
12220
12359
|
...scope,
|
|
12221
|
-
reason:
|
|
12360
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].OperationNotFound
|
|
12222
12361
|
});
|
|
12223
12362
|
}
|
|
12224
12363
|
return {
|
|
@@ -12231,7 +12370,7 @@ class OpenAPIOperationLocatorNormalizer extends _SourceDescriptionsLocatorNormal
|
|
|
12231
12370
|
// is simply no OpenAPI document for the operation to be in.
|
|
12232
12371
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Operation "${operationId}" not found: the Arazzo document at "${document.uri}" has no OpenAPI source description`, {
|
|
12233
12372
|
...scope,
|
|
12234
|
-
reason:
|
|
12373
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].OperationNotFound
|
|
12235
12374
|
});
|
|
12236
12375
|
}
|
|
12237
12376
|
|
|
@@ -12243,14 +12382,14 @@ class OpenAPIOperationLocatorNormalizer extends _SourceDescriptionsLocatorNormal
|
|
|
12243
12382
|
if (uri === undefined) {
|
|
12244
12383
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Source description "${sourceName}" not found in the Arazzo document at "${document.uri}"`, {
|
|
12245
12384
|
...scope,
|
|
12246
|
-
reason:
|
|
12385
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].SourceDescriptionNotFound
|
|
12247
12386
|
});
|
|
12248
12387
|
}
|
|
12249
12388
|
const source = await this.registry.acquire(uri);
|
|
12250
12389
|
if (!_document_OpenAPIDocument_ts__WEBPACK_IMPORTED_MODULE_3__["default"].is(source)) {
|
|
12251
12390
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Source description "${sourceName}" at "${uri}" is not an OpenAPI document`, {
|
|
12252
12391
|
...scope,
|
|
12253
|
-
reason:
|
|
12392
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].SourceDescriptionNotOpenAPI
|
|
12254
12393
|
});
|
|
12255
12394
|
}
|
|
12256
12395
|
return source;
|
|
@@ -12460,7 +12599,7 @@ class StepExecutor {
|
|
|
12460
12599
|
* take precedence over it.
|
|
12461
12600
|
*
|
|
12462
12601
|
* A `signal` in that bag is honored here and not only at the transport: an
|
|
12463
|
-
* already-aborted signal throws
|
|
12602
|
+
* already-aborted signal throws with reason `ExecutionError.Aborted` instead of issuing a
|
|
12464
12603
|
* request nobody is waiting for, whose wire-level cancellation would surface
|
|
12465
12604
|
* as a transport {@link ClientError} — a request that failed on its own terms
|
|
12466
12605
|
* — rather than as the withdrawal it is.
|
|
@@ -12484,13 +12623,13 @@ class StepExecutor {
|
|
|
12484
12623
|
if (declaredTargets.length > 1) {
|
|
12485
12624
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_10__["default"](`Step "${stepId}" declares more than one of ${STEP_TARGET_FIELDS.join(', ')} (mutually exclusive)`, {
|
|
12486
12625
|
...scope,
|
|
12487
|
-
reason:
|
|
12626
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_10__["default"].AmbiguousTarget
|
|
12488
12627
|
});
|
|
12489
12628
|
}
|
|
12490
12629
|
if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(step.workflowId)) {
|
|
12491
12630
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_10__["default"](`Step "${stepId}" targets a workflowId; use the workflow executor`, {
|
|
12492
12631
|
...scope,
|
|
12493
|
-
reason:
|
|
12632
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_10__["default"].WorkflowStep
|
|
12494
12633
|
});
|
|
12495
12634
|
}
|
|
12496
12635
|
this.assertSuccessCriteria(step, workflowId);
|
|
@@ -12584,7 +12723,7 @@ class StepExecutor {
|
|
|
12584
12723
|
}
|
|
12585
12724
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_10__["default"](`Step "${scope.stepId}" has no operationId or operationPath`, {
|
|
12586
12725
|
...scope,
|
|
12587
|
-
reason:
|
|
12726
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_10__["default"].MissingOperation
|
|
12588
12727
|
});
|
|
12589
12728
|
}
|
|
12590
12729
|
|
|
@@ -12615,13 +12754,13 @@ class StepExecutor {
|
|
|
12615
12754
|
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isArrayElement)(criteria)) {
|
|
12616
12755
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_11__["default"]("A step's `successCriteria` is present but is not a list", {
|
|
12617
12756
|
...scope,
|
|
12618
|
-
reason:
|
|
12757
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_11__["default"].MalformedCriteria
|
|
12619
12758
|
});
|
|
12620
12759
|
}
|
|
12621
12760
|
if (![...criteria].every(_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_2__.isCriterionElement)) {
|
|
12622
12761
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_11__["default"]("A step's `successCriteria` contains an entry that is not a Criterion Object", {
|
|
12623
12762
|
...scope,
|
|
12624
|
-
reason:
|
|
12763
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_11__["default"].MalformedCriterion
|
|
12625
12764
|
});
|
|
12626
12765
|
}
|
|
12627
12766
|
}
|
|
@@ -12724,7 +12863,7 @@ class StepExecutor {
|
|
|
12724
12863
|
// a step that calls a workflow made no HTTP call, so a condition on one
|
|
12725
12864
|
// fails like any unevaluable condition; the diagnostic keeps the
|
|
12726
12865
|
// authoring mistake visible.
|
|
12727
|
-
if (error instanceof _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_12__["default"] && error.reason ===
|
|
12866
|
+
if (error instanceof _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_12__["default"] && error.reason === _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_12__["default"].UnavailableExpression) {
|
|
12728
12867
|
return {
|
|
12729
12868
|
condition,
|
|
12730
12869
|
met: false,
|
|
@@ -12997,7 +13136,7 @@ class StepRetryRunner {
|
|
|
12997
13136
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_3__["default"](`retry action on step "${context.stepId}" in workflow "${context.workflowId}" carries a stepId/workflowId reference, but no runReference was given to run it`, {
|
|
12998
13137
|
stepId: context.stepId,
|
|
12999
13138
|
workflowId: context.workflowId,
|
|
13000
|
-
reason:
|
|
13139
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_3__["default"].RetryReferenceUnsupported
|
|
13001
13140
|
});
|
|
13002
13141
|
}
|
|
13003
13142
|
}
|
|
@@ -13119,7 +13258,7 @@ class StepTransitionInterpreter {
|
|
|
13119
13258
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_2__["default"](`goto action on step "${stepId}" in workflow "${workflowId}" declares both a stepId and a workflowId (mutually exclusive)`, {
|
|
13120
13259
|
stepId,
|
|
13121
13260
|
workflowId,
|
|
13122
|
-
reason:
|
|
13261
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].AmbiguousTarget
|
|
13123
13262
|
});
|
|
13124
13263
|
}
|
|
13125
13264
|
if (hasStepId) {
|
|
@@ -13137,13 +13276,13 @@ class StepTransitionInterpreter {
|
|
|
13137
13276
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_2__["default"](`goto action on step "${stepId}" in workflow "${workflowId}" has neither stepId nor workflowId`, {
|
|
13138
13277
|
stepId,
|
|
13139
13278
|
workflowId,
|
|
13140
|
-
reason:
|
|
13279
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].GotoTargetMissing
|
|
13141
13280
|
});
|
|
13142
13281
|
}
|
|
13143
13282
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_2__["default"](`action on step "${stepId}" in workflow "${workflowId}" has unsupported type "${type}"`, {
|
|
13144
13283
|
stepId,
|
|
13145
13284
|
workflowId,
|
|
13146
|
-
reason:
|
|
13285
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_2__["default"].UnknownActionType
|
|
13147
13286
|
});
|
|
13148
13287
|
}
|
|
13149
13288
|
|
|
@@ -13270,7 +13409,7 @@ class WorkflowCallStack {
|
|
|
13270
13409
|
// detects both, so a loop crossing the two mechanisms cannot slip between
|
|
13271
13410
|
// them.
|
|
13272
13411
|
const closingEdges = [...this.#calls.slice(repeated + 1).map(call => call.via), via];
|
|
13273
|
-
const reason = closingEdges.every(edge => edge === 'dependsOn') ?
|
|
13412
|
+
const reason = closingEdges.every(edge => edge === 'dependsOn') ? _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_0__["default"].DependsOnCycle : _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_0__["default"].WorkflowCycle;
|
|
13274
13413
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_0__["default"](`workflow "${workflowId}" is already in progress; its call chain forms a cycle (${path.join(' -> ')})`, {
|
|
13275
13414
|
workflowId,
|
|
13276
13415
|
reason,
|
|
@@ -13280,7 +13419,7 @@ class WorkflowCallStack {
|
|
|
13280
13419
|
if (this.#calls.length >= this.#maxDepth) {
|
|
13281
13420
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_0__["default"](`workflow "${workflowId}" nests deeper than the limit of ${this.#maxDepth} workflows`, {
|
|
13282
13421
|
workflowId,
|
|
13283
|
-
reason:
|
|
13422
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_0__["default"].WorkflowDepth,
|
|
13284
13423
|
path: [...this.path, this.#display(workflowId, documentURI)]
|
|
13285
13424
|
});
|
|
13286
13425
|
}
|
|
@@ -13566,7 +13705,7 @@ class WorkflowExecutor {
|
|
|
13566
13705
|
const unknown = Object.keys(options).filter(key => !WorkflowExecutor.#EXECUTE_OPTION_KEYS.has(key));
|
|
13567
13706
|
if (unknown.length === 0) return;
|
|
13568
13707
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`execute received unknown option(s) ${unknown.join(', ')}; it takes (workflowId, { inputs, executeOptions, dependencyInputs, runDependencies, signal }) — workflow inputs go under "inputs"`, {
|
|
13569
|
-
reason:
|
|
13708
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].UnknownExecuteOption
|
|
13570
13709
|
});
|
|
13571
13710
|
}
|
|
13572
13711
|
|
|
@@ -13699,7 +13838,7 @@ class WorkflowExecutor {
|
|
|
13699
13838
|
break;
|
|
13700
13839
|
case 'goto':
|
|
13701
13840
|
index = this.#interpreter.indexOfStep(steps, transition.stepId, workflowId, {
|
|
13702
|
-
reason:
|
|
13841
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].GotoTargetNotFound,
|
|
13703
13842
|
label: 'goto target'
|
|
13704
13843
|
});
|
|
13705
13844
|
break;
|
|
@@ -13746,7 +13885,7 @@ class WorkflowExecutor {
|
|
|
13746
13885
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`step "${stepId}" in workflow "${workflowId}" produced an unrecognized transition ${JSON.stringify(unreachable)}`, {
|
|
13747
13886
|
workflowId,
|
|
13748
13887
|
stepId,
|
|
13749
|
-
reason:
|
|
13888
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].UnknownTransitionKind
|
|
13750
13889
|
});
|
|
13751
13890
|
}
|
|
13752
13891
|
}
|
|
@@ -13834,7 +13973,7 @@ class WorkflowExecutor {
|
|
|
13834
13973
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`workflow "${invocation.workflowId}" exceeded its budget of ${this.#maxSteps} step attempts (a goto loop, excessive retries, or runaway sub-workflow calls)`, {
|
|
13835
13974
|
workflowId: invocation.workflowId,
|
|
13836
13975
|
stepId,
|
|
13837
|
-
reason:
|
|
13976
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].StepBudget,
|
|
13838
13977
|
path: invocation.callStack.path
|
|
13839
13978
|
});
|
|
13840
13979
|
}
|
|
@@ -13939,7 +14078,7 @@ class WorkflowExecutor {
|
|
|
13939
14078
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`retry action on step "${stepId}" in workflow "${workflowId}" declares both a stepId and a workflowId (mutually exclusive)`, {
|
|
13940
14079
|
stepId,
|
|
13941
14080
|
workflowId,
|
|
13942
|
-
reason:
|
|
14081
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].AmbiguousTarget
|
|
13943
14082
|
});
|
|
13944
14083
|
}
|
|
13945
14084
|
if (hasWorkflowId) {
|
|
@@ -13963,7 +14102,7 @@ class WorkflowExecutor {
|
|
|
13963
14102
|
}
|
|
13964
14103
|
const refStepId = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(action.stepId);
|
|
13965
14104
|
const refIndex = this.#interpreter.indexOfStep(steps, refStepId, workflowId, {
|
|
13966
|
-
reason:
|
|
14105
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].RetryTargetNotFound,
|
|
13967
14106
|
label: 'retry reference'
|
|
13968
14107
|
});
|
|
13969
14108
|
const refStep = steps[refIndex];
|
|
@@ -14082,14 +14221,14 @@ class WorkflowExecutor {
|
|
|
14082
14221
|
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isArrayElement)(dependsOn)) {
|
|
14083
14222
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`workflow "${workflowId}" has a non-list "dependsOn"`, {
|
|
14084
14223
|
workflowId,
|
|
14085
|
-
reason:
|
|
14224
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].MalformedDependsOn
|
|
14086
14225
|
});
|
|
14087
14226
|
}
|
|
14088
14227
|
const references = [...dependsOn].map((entry, index) => {
|
|
14089
14228
|
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(entry)) {
|
|
14090
14229
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`workflow "${workflowId}" has a non-string entry at dependsOn[${index}]`, {
|
|
14091
14230
|
workflowId,
|
|
14092
|
-
reason:
|
|
14231
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].MalformedDependsOn
|
|
14093
14232
|
});
|
|
14094
14233
|
}
|
|
14095
14234
|
return (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(entry);
|
|
@@ -14274,7 +14413,7 @@ class WorkflowExecutor {
|
|
|
14274
14413
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`step "${stepId}" in workflow "${workflowId}" declares a workflowId alongside ${conflicting.join(', ')} (mutually exclusive)`, {
|
|
14275
14414
|
stepId,
|
|
14276
14415
|
workflowId,
|
|
14277
|
-
reason:
|
|
14416
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].AmbiguousTarget
|
|
14278
14417
|
});
|
|
14279
14418
|
}
|
|
14280
14419
|
return (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(step.workflowId);
|
|
@@ -14320,7 +14459,7 @@ class WorkflowExecutor {
|
|
|
14320
14459
|
if (!document.workflowIndex.has(workflowId)) {
|
|
14321
14460
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`workflow "${workflowId}" not found in Arazzo document at "${document.uri}"`, {
|
|
14322
14461
|
workflowId,
|
|
14323
|
-
reason:
|
|
14462
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].WorkflowNotFound
|
|
14324
14463
|
});
|
|
14325
14464
|
}
|
|
14326
14465
|
const workflow = await this.#normalizer.normalize(this.#extractor.extract(document, workflowId), document);
|
|
@@ -14351,14 +14490,14 @@ class WorkflowExecutor {
|
|
|
14351
14490
|
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isArrayElement)(steps)) {
|
|
14352
14491
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`workflow "${workflowId}" has a non-list "steps"`, {
|
|
14353
14492
|
workflowId,
|
|
14354
|
-
reason:
|
|
14493
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].MalformedSteps
|
|
14355
14494
|
});
|
|
14356
14495
|
}
|
|
14357
14496
|
return [...steps].map((step, index) => {
|
|
14358
14497
|
if (!(0,_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_2__.isStepElement)(step)) {
|
|
14359
14498
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`workflow "${workflowId}" has a non-step entry at steps[${index}]`, {
|
|
14360
14499
|
workflowId,
|
|
14361
|
-
reason:
|
|
14500
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"].MalformedSteps
|
|
14362
14501
|
});
|
|
14363
14502
|
}
|
|
14364
14503
|
return step;
|
|
@@ -14381,7 +14520,7 @@ class WorkflowExecutor {
|
|
|
14381
14520
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_15__["default"]('`outputs` is present but is not a map', {
|
|
14382
14521
|
workflowId,
|
|
14383
14522
|
target: 'outputs',
|
|
14384
|
-
reason:
|
|
14523
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_15__["default"].MalformedOutputs
|
|
14385
14524
|
});
|
|
14386
14525
|
}
|
|
14387
14526
|
|
|
@@ -14460,8 +14599,8 @@ const readAbortSignal = options => {
|
|
|
14460
14599
|
};
|
|
14461
14600
|
|
|
14462
14601
|
/**
|
|
14463
|
-
* Throws
|
|
14464
|
-
* nothing otherwise.
|
|
14602
|
+
* Throws with reason `ExecutionError.Aborted` when the caller has cancelled
|
|
14603
|
+
* the run, and does nothing otherwise.
|
|
14465
14604
|
*
|
|
14466
14605
|
* Cancellation throws rather than resolving as a `failed` result because it is
|
|
14467
14606
|
* not a workflow outcome: nothing was judged by `successCriteria`, no failure
|
|
@@ -14482,7 +14621,7 @@ const throwIfAborted = (signal, context) => {
|
|
|
14482
14621
|
throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_0__["default"](`run aborted before ${where}`, {
|
|
14483
14622
|
workflowId,
|
|
14484
14623
|
stepId,
|
|
14485
|
-
reason:
|
|
14624
|
+
reason: _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_0__["default"].Aborted,
|
|
14486
14625
|
path: callStack?.path,
|
|
14487
14626
|
cause: signal.reason
|
|
14488
14627
|
});
|
|
@@ -14601,7 +14740,7 @@ class RuntimeExpressionEvaluator {
|
|
|
14601
14740
|
if (value === undefined && this.#strict) {
|
|
14602
14741
|
throw new _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Runtime expression "${expression}" could not be resolved against the context`, {
|
|
14603
14742
|
expression,
|
|
14604
|
-
reason:
|
|
14743
|
+
reason: _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].UnresolvedReference
|
|
14605
14744
|
});
|
|
14606
14745
|
}
|
|
14607
14746
|
return value;
|
|
@@ -14647,13 +14786,13 @@ class RuntimeExpressionEvaluator {
|
|
|
14647
14786
|
throw new _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Failed to parse runtime expression "${expression}"`, {
|
|
14648
14787
|
cause: error,
|
|
14649
14788
|
expression,
|
|
14650
|
-
reason:
|
|
14789
|
+
reason: _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].ParseError
|
|
14651
14790
|
});
|
|
14652
14791
|
}
|
|
14653
14792
|
if (!result.result.success || result.tree === undefined) {
|
|
14654
14793
|
throw new _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Invalid runtime expression "${expression}"`, {
|
|
14655
14794
|
expression,
|
|
14656
|
-
reason:
|
|
14795
|
+
reason: _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].InvalidExpression
|
|
14657
14796
|
});
|
|
14658
14797
|
}
|
|
14659
14798
|
return result.tree;
|
|
@@ -14671,7 +14810,7 @@ class RuntimeExpressionEvaluator {
|
|
|
14671
14810
|
if (calledWorkflow === undefined || !HTTP_EXCHANGE_NODES.has(node.type)) return;
|
|
14672
14811
|
throw new _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Runtime expression "${expression}" is not available: step "${calledWorkflow.stepId}" calls workflow "${calledWorkflow.workflowId}", not an operation, so it has no HTTP request or response`, {
|
|
14673
14812
|
expression,
|
|
14674
|
-
reason:
|
|
14813
|
+
reason: _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].UnavailableExpression
|
|
14675
14814
|
});
|
|
14676
14815
|
}
|
|
14677
14816
|
|
|
@@ -14708,7 +14847,7 @@ class RuntimeExpressionEvaluator {
|
|
|
14708
14847
|
default:
|
|
14709
14848
|
throw new _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"](`Unsupported runtime expression node "${node.type}"`, {
|
|
14710
14849
|
expression,
|
|
14711
|
-
reason:
|
|
14850
|
+
reason: _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_6__["default"].UnsupportedNode
|
|
14712
14851
|
});
|
|
14713
14852
|
}
|
|
14714
14853
|
}
|
|
@@ -16540,7 +16679,7 @@ class OpenAPIOperationParameterResolver extends _StepParameterResolver_ts__WEBPA
|
|
|
16540
16679
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"]('`parameters` is present but is not a list', {
|
|
16541
16680
|
...scope,
|
|
16542
16681
|
target: 'parameters',
|
|
16543
|
-
reason:
|
|
16682
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].MalformedParameters
|
|
16544
16683
|
});
|
|
16545
16684
|
}
|
|
16546
16685
|
for (const parameter of parameters) {
|
|
@@ -16552,7 +16691,7 @@ class OpenAPIOperationParameterResolver extends _StepParameterResolver_ts__WEBPA
|
|
|
16552
16691
|
if (identity === undefined) {
|
|
16553
16692
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"]('Parameter has a missing or non-string name', {
|
|
16554
16693
|
...scope,
|
|
16555
|
-
reason:
|
|
16694
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].MissingName
|
|
16556
16695
|
});
|
|
16557
16696
|
}
|
|
16558
16697
|
const {
|
|
@@ -16563,21 +16702,21 @@ class OpenAPIOperationParameterResolver extends _StepParameterResolver_ts__WEBPA
|
|
|
16563
16702
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"](`Parameter "${name}" declares no location ("in"), which a step targeting an operation requires`, {
|
|
16564
16703
|
...scope,
|
|
16565
16704
|
target: name,
|
|
16566
|
-
reason:
|
|
16705
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].MissingLocation
|
|
16567
16706
|
});
|
|
16568
16707
|
}
|
|
16569
16708
|
if (location === null) {
|
|
16570
16709
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"](`Parameter "${name}" has a non-string location ("in")`, {
|
|
16571
16710
|
...scope,
|
|
16572
16711
|
target: name,
|
|
16573
|
-
reason:
|
|
16712
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].MalformedLocation
|
|
16574
16713
|
});
|
|
16575
16714
|
}
|
|
16576
16715
|
if (!identity.hasDefinedLocation) {
|
|
16577
16716
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"](`Parameter "${name}" has location "${location}", which is not one of ` + `${_document_ParameterIdentity_ts__WEBPACK_IMPORTED_MODULE_3__["default"].LOCATIONS.join(', ')}`, {
|
|
16578
16717
|
...scope,
|
|
16579
16718
|
target: name,
|
|
16580
|
-
reason:
|
|
16719
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].InvalidLocation
|
|
16581
16720
|
});
|
|
16582
16721
|
}
|
|
16583
16722
|
const {
|
|
@@ -16591,7 +16730,7 @@ class OpenAPIOperationParameterResolver extends _StepParameterResolver_ts__WEBPA
|
|
|
16591
16730
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"](`Parameter "${name}" (in: ${location}) ${why} and cannot be delivered unambiguously`, {
|
|
16592
16731
|
...scope,
|
|
16593
16732
|
target: name,
|
|
16594
|
-
reason:
|
|
16733
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_4__["default"].AmbiguousDelivery
|
|
16595
16734
|
});
|
|
16596
16735
|
}
|
|
16597
16736
|
delivery.set(key, this.resolveValue(parameter.value, resolve));
|
|
@@ -16642,7 +16781,7 @@ class OutputResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODULE_4_
|
|
|
16642
16781
|
*
|
|
16643
16782
|
* `scope` names the step or workflow the outputs belong to, for a thrown
|
|
16644
16783
|
* {@link ResolverError}. An output value that is not a valid runtime
|
|
16645
|
-
* expression throws with
|
|
16784
|
+
* expression throws with reason `ResolverError.InvalidExpression`.
|
|
16646
16785
|
*/
|
|
16647
16786
|
resolve(outputs, resolve, scope) {
|
|
16648
16787
|
const result = {};
|
|
@@ -16653,7 +16792,7 @@ class OutputResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODULE_4_
|
|
|
16653
16792
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_3__["default"]('`outputs` is present but is not a map', {
|
|
16654
16793
|
...scope,
|
|
16655
16794
|
target: 'outputs',
|
|
16656
|
-
reason:
|
|
16795
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_3__["default"].MalformedOutputs
|
|
16657
16796
|
});
|
|
16658
16797
|
}
|
|
16659
16798
|
outputs.forEach((value, key) => {
|
|
@@ -16663,7 +16802,7 @@ class OutputResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODULE_4_
|
|
|
16663
16802
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_3__["default"](`Output "${name}" is not a valid runtime expression`, {
|
|
16664
16803
|
...scope,
|
|
16665
16804
|
target: 'outputs',
|
|
16666
|
-
reason:
|
|
16805
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_3__["default"].InvalidExpression
|
|
16667
16806
|
});
|
|
16668
16807
|
}
|
|
16669
16808
|
// defined rather than assigned: a name like `__proto__` hits the
|
|
@@ -16772,7 +16911,7 @@ class RequestBodyResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODU
|
|
|
16772
16911
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"]('`requestBody` is present but is not a map', {
|
|
16773
16912
|
...scope,
|
|
16774
16913
|
target: 'requestBody',
|
|
16775
|
-
reason:
|
|
16914
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"].MalformedRequestBody
|
|
16776
16915
|
});
|
|
16777
16916
|
}
|
|
16778
16917
|
const authoredPayload = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_2__["default"])(requestBody.payload);
|
|
@@ -16784,7 +16923,7 @@ class RequestBodyResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODU
|
|
|
16784
16923
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"]('`requestBody.replacements` is present but is not a list', {
|
|
16785
16924
|
...scope,
|
|
16786
16925
|
target: 'requestBody.replacements',
|
|
16787
|
-
reason:
|
|
16926
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"].MalformedReplacements
|
|
16788
16927
|
});
|
|
16789
16928
|
}
|
|
16790
16929
|
for (const replacement of requestBody.replacements) {
|
|
@@ -16849,7 +16988,7 @@ class RequestBodyResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODU
|
|
|
16849
16988
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"](`Invalid runtime expression "${text}" in ${this.#payloadTarget(tokens)}`, {
|
|
16850
16989
|
...scope,
|
|
16851
16990
|
target: this.#payloadTarget(tokens),
|
|
16852
|
-
reason:
|
|
16991
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"].InvalidExpression
|
|
16853
16992
|
});
|
|
16854
16993
|
}
|
|
16855
16994
|
});
|
|
@@ -16868,7 +17007,7 @@ class RequestBodyResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODU
|
|
|
16868
17007
|
return new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"](`Runtime expression "${expression}" in ${target} did not resolve`, {
|
|
16869
17008
|
...scope,
|
|
16870
17009
|
target,
|
|
16871
|
-
reason:
|
|
17010
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"].UnresolvedExpression
|
|
16872
17011
|
});
|
|
16873
17012
|
}
|
|
16874
17013
|
|
|
@@ -16892,7 +17031,7 @@ class RequestBodyResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODU
|
|
|
16892
17031
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"](`Unsupported requestBody replacement target "${target}" (expected JSON Pointer)`, {
|
|
16893
17032
|
...scope,
|
|
16894
17033
|
target,
|
|
16895
|
-
reason:
|
|
17034
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"].UnsupportedTarget
|
|
16896
17035
|
});
|
|
16897
17036
|
}
|
|
16898
17037
|
|
|
@@ -16906,7 +17045,7 @@ class RequestBodyResolver extends _ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODU
|
|
|
16906
17045
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"](`requestBody replacement target "${target}" does not resolve in the payload`, {
|
|
16907
17046
|
...scope,
|
|
16908
17047
|
target,
|
|
16909
|
-
reason:
|
|
17048
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_7__["default"].UnresolvedTarget
|
|
16910
17049
|
});
|
|
16911
17050
|
}
|
|
16912
17051
|
return (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(tokens, value, payload);
|
|
@@ -17006,7 +17145,7 @@ class WorkflowParameterResolver extends _StepParameterResolver_ts__WEBPACK_IMPOR
|
|
|
17006
17145
|
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_3__["default"]('`parameters` is present but is not a list', {
|
|
17007
17146
|
...scope,
|
|
17008
17147
|
target: 'parameters',
|
|
17009
|
-
reason:
|
|
17148
|
+
reason: _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_3__["default"].MalformedParameters
|
|
17010
17149
|
});
|
|
17011
17150
|
}
|
|
17012
17151
|
for (const parameter of parameters) {
|
|
@@ -117634,34 +117773,33 @@ let __webpack_exports__ = {};
|
|
|
117634
117773
|
__webpack_require__.r(__webpack_exports__);
|
|
117635
117774
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
117636
117775
|
/* harmony export */ APIDocument: () => (/* reexport safe */ _document_APIDocument_ts__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
|
117637
|
-
/* harmony export */ ActionResolver: () => (/* reexport safe */
|
|
117776
|
+
/* harmony export */ ActionResolver: () => (/* reexport safe */ _action_ActionResolver_ts__WEBPACK_IMPORTED_MODULE_41__["default"]),
|
|
117638
117777
|
/* harmony export */ ArazzoDocument: () => (/* reexport safe */ _document_ArazzoDocument_ts__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
117639
117778
|
/* harmony export */ ArazzoDocumentRegistryProvider: () => (/* reexport safe */ _registry_providers_ArazzoDocumentRegistryProvider_ts__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
117640
117779
|
/* harmony export */ ArazzoRunner: () => (/* reexport safe */ _ArazzoRunner_ts__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
117641
|
-
/* harmony export */ ArazzoRunnerError: () => (/* reexport safe */
|
|
117780
|
+
/* harmony export */ ArazzoRunnerError: () => (/* reexport safe */ _errors_ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_48__["default"]),
|
|
117642
117781
|
/* harmony export */ ArazzoSourceDescriptionIndex: () => (/* reexport safe */ _document_ArazzoSourceDescriptionIndex_ts__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
|
117643
117782
|
/* harmony export */ ArazzoStepExtractor: () => (/* reexport safe */ _extractor_ArazzoStepExtractor_ts__WEBPACK_IMPORTED_MODULE_13__["default"]),
|
|
117644
117783
|
/* harmony export */ ArazzoStepIndex: () => (/* reexport safe */ _document_ArazzoStepIndex_ts__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
|
117645
117784
|
/* harmony export */ ArazzoStepNormalizer: () => (/* reexport safe */ _normalizer_ArazzoStepNormalizer_ts__WEBPACK_IMPORTED_MODULE_16__["default"]),
|
|
117646
|
-
/* harmony export */ ArazzoValueResolver: () => (/* reexport safe */
|
|
117785
|
+
/* harmony export */ ArazzoValueResolver: () => (/* reexport safe */ _resolver_ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODULE_35__["default"]),
|
|
117647
117786
|
/* harmony export */ ArazzoWorkflowExtractor: () => (/* reexport safe */ _extractor_ArazzoWorkflowExtractor_ts__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
117648
117787
|
/* harmony export */ ArazzoWorkflowIndex: () => (/* reexport safe */ _document_ArazzoWorkflowIndex_ts__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
|
117649
|
-
/* harmony export */ ArazzoWorkflowLocatorNormalizer: () => (/* reexport safe */
|
|
117788
|
+
/* harmony export */ ArazzoWorkflowLocatorNormalizer: () => (/* reexport safe */ _executor_ArazzoWorkflowLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_47__["default"]),
|
|
117650
117789
|
/* 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"]),
|
|
117790
|
+
/* harmony export */ AssemblerError: () => (/* reexport safe */ _errors_AssemblerError_ts__WEBPACK_IMPORTED_MODULE_49__["default"]),
|
|
117791
|
+
/* harmony export */ ClientError: () => (/* reexport safe */ _errors_ClientError_ts__WEBPACK_IMPORTED_MODULE_50__["default"]),
|
|
117792
|
+
/* harmony export */ CriterionError: () => (/* reexport safe */ _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_57__["default"]),
|
|
117793
|
+
/* harmony export */ CriterionEvaluationError: () => (/* reexport safe */ _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_58__["default"]),
|
|
117656
117794
|
/* harmony export */ CriterionEvaluator: () => (/* reexport safe */ _criterion_CriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_29__["default"]),
|
|
117657
|
-
/* harmony export */ DocumentLoadError: () => (/* reexport safe */
|
|
117795
|
+
/* harmony export */ DocumentLoadError: () => (/* reexport safe */ _errors_DocumentLoadError_ts__WEBPACK_IMPORTED_MODULE_55__["default"]),
|
|
117658
117796
|
/* harmony export */ DocumentRegistry: () => (/* reexport safe */ _registry_DocumentRegistry_ts__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
117659
117797
|
/* 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 */
|
|
117798
|
+
/* harmony export */ ExecutionError: () => (/* reexport safe */ _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_60__["default"]),
|
|
117799
|
+
/* harmony export */ ExtractionError: () => (/* reexport safe */ _errors_ExtractionError_ts__WEBPACK_IMPORTED_MODULE_52__["default"]),
|
|
117800
|
+
/* harmony export */ InvalidEntryDocumentError: () => (/* reexport safe */ _errors_InvalidEntryDocumentError_ts__WEBPACK_IMPORTED_MODULE_53__["default"]),
|
|
117663
117801
|
/* harmony export */ JSONPathCriterionEvaluator: () => (/* reexport safe */ _criterion_JSONPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_32__["default"]),
|
|
117664
|
-
/* harmony export */ NormalizationError: () => (/* reexport safe */
|
|
117802
|
+
/* harmony export */ NormalizationError: () => (/* reexport safe */ _errors_NormalizationError_ts__WEBPACK_IMPORTED_MODULE_51__["default"]),
|
|
117665
117803
|
/* harmony export */ OpenAPI2DocumentAssembler: () => (/* reexport safe */ _assembler_OpenAPI2DocumentAssembler_ts__WEBPACK_IMPORTED_MODULE_22__["default"]),
|
|
117666
117804
|
/* harmony export */ OpenAPI2OperationNormalizer: () => (/* reexport safe */ _normalizer_OpenAPI2OperationNormalizer_ts__WEBPACK_IMPORTED_MODULE_18__["default"]),
|
|
117667
117805
|
/* harmony export */ OpenAPI30DocumentAssembler: () => (/* reexport safe */ _assembler_OpenAPI30DocumentAssembler_ts__WEBPACK_IMPORTED_MODULE_23__["default"]),
|
|
@@ -117671,31 +117809,31 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
117671
117809
|
/* harmony export */ OpenAPIDocument: () => (/* reexport safe */ _document_OpenAPIDocument_ts__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
117672
117810
|
/* harmony export */ OpenAPIDocumentAssembler: () => (/* reexport safe */ _assembler_OpenAPIDocumentAssembler_ts__WEBPACK_IMPORTED_MODULE_21__["default"]),
|
|
117673
117811
|
/* harmony export */ OpenAPIDocumentRegistryProvider: () => (/* reexport safe */ _registry_providers_OpenAPIDocumentRegistryProvider_ts__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
117674
|
-
/* harmony export */ OpenAPIOperationExecutor: () => (/* reexport safe */
|
|
117812
|
+
/* harmony export */ OpenAPIOperationExecutor: () => (/* reexport safe */ _executor_OpenAPIOperationExecutor_ts__WEBPACK_IMPORTED_MODULE_44__["default"]),
|
|
117675
117813
|
/* harmony export */ OpenAPIOperationExtractor: () => (/* reexport safe */ _extractor_OpenAPIOperationExtractor_ts__WEBPACK_IMPORTED_MODULE_14__["default"]),
|
|
117676
117814
|
/* harmony export */ OpenAPIOperationIndex: () => (/* reexport safe */ _document_OpenAPIOperationIndex_ts__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
117677
|
-
/* harmony export */ OpenAPIOperationLocatorNormalizer: () => (/* reexport safe */
|
|
117815
|
+
/* harmony export */ OpenAPIOperationLocatorNormalizer: () => (/* reexport safe */ _executor_OpenAPIOperationLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_46__["default"]),
|
|
117678
117816
|
/* harmony export */ OpenAPIOperationNormalizer: () => (/* reexport safe */ _normalizer_OpenAPIOperationNormalizer_ts__WEBPACK_IMPORTED_MODULE_17__["default"]),
|
|
117679
|
-
/* harmony export */ OpenAPIOperationParameterResolver: () => (/* reexport safe */
|
|
117817
|
+
/* harmony export */ OpenAPIOperationParameterResolver: () => (/* reexport safe */ _resolver_OpenAPIOperationParameterResolver_ts__WEBPACK_IMPORTED_MODULE_37__["default"]),
|
|
117680
117818
|
/* harmony export */ OpenAPIOperationResponse: () => (/* reexport safe */ _client_OpenAPIOperationResponse_ts__WEBPACK_IMPORTED_MODULE_26__["default"]),
|
|
117681
117819
|
/* harmony export */ OpenAPIOperationResponseNormalizer: () => (/* reexport safe */ _client_OpenAPIOperationResponseNormalizer_ts__WEBPACK_IMPORTED_MODULE_27__["default"]),
|
|
117682
|
-
/* harmony export */ OutputResolver: () => (/* reexport safe */
|
|
117820
|
+
/* harmony export */ OutputResolver: () => (/* reexport safe */ _resolver_OutputResolver_ts__WEBPACK_IMPORTED_MODULE_39__["default"]),
|
|
117683
117821
|
/* 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 */
|
|
117822
|
+
/* harmony export */ RequestBodyResolver: () => (/* reexport safe */ _resolver_RequestBodyResolver_ts__WEBPACK_IMPORTED_MODULE_40__["default"]),
|
|
117823
|
+
/* harmony export */ ResolverError: () => (/* reexport safe */ _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_59__["default"]),
|
|
117824
|
+
/* harmony export */ RuntimeExpressionError: () => (/* reexport safe */ _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_56__["default"]),
|
|
117687
117825
|
/* harmony export */ RuntimeExpressionEvaluator: () => (/* reexport safe */ _expression_RuntimeExpressionEvaluator_ts__WEBPACK_IMPORTED_MODULE_28__["default"]),
|
|
117688
117826
|
/* 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 */
|
|
117827
|
+
/* harmony export */ SourceDescriptionsLocatorNormalizer: () => (/* reexport safe */ _executor_SourceDescriptionsLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_45__["default"]),
|
|
117828
|
+
/* harmony export */ StepExecutor: () => (/* reexport safe */ _executor_StepExecutor_ts__WEBPACK_IMPORTED_MODULE_43__["default"]),
|
|
117829
|
+
/* harmony export */ StepParameterResolver: () => (/* reexport safe */ _resolver_StepParameterResolver_ts__WEBPACK_IMPORTED_MODULE_36__["default"]),
|
|
117830
|
+
/* harmony export */ UnmatchedProviderError: () => (/* reexport safe */ _errors_UnmatchedProviderError_ts__WEBPACK_IMPORTED_MODULE_54__["default"]),
|
|
117831
|
+
/* harmony export */ WorkflowExecutionState: () => (/* reexport safe */ _state_WorkflowExecutionState_ts__WEBPACK_IMPORTED_MODULE_34__["default"]),
|
|
117832
|
+
/* harmony export */ WorkflowExecutor: () => (/* reexport safe */ _executor_WorkflowExecutor_ts__WEBPACK_IMPORTED_MODULE_42__["default"]),
|
|
117833
|
+
/* harmony export */ WorkflowParameterResolver: () => (/* reexport safe */ _resolver_WorkflowParameterResolver_ts__WEBPACK_IMPORTED_MODULE_38__["default"]),
|
|
117696
117834
|
/* harmony export */ XPathCriterionEvaluator: () => (/* reexport safe */ _criterion_XPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_33__["default"]),
|
|
117697
117835
|
/* harmony export */ httpClientFetch: () => (/* reexport safe */ _client_HTTPClientFetch_ts__WEBPACK_IMPORTED_MODULE_25__["default"]),
|
|
117698
|
-
/* harmony export */ settledResult: () => (/* reexport safe */
|
|
117836
|
+
/* harmony export */ settledResult: () => (/* reexport safe */ _executor_WorkflowExecutor_ts__WEBPACK_IMPORTED_MODULE_42__.settledResult)
|
|
117699
117837
|
/* harmony export */ });
|
|
117700
117838
|
/* harmony import */ var _ArazzoRunner_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57253);
|
|
117701
117839
|
/* harmony import */ var _registry_DocumentRegistry_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4044);
|
|
@@ -117731,34 +117869,33 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
117731
117869
|
/* harmony import */ var _criterion_RegexCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(13517);
|
|
117732
117870
|
/* harmony import */ var _criterion_JSONPathCriterionEvaluator_ts__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(90089);
|
|
117733
117871
|
/* 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);
|
|
117872
|
+
/* harmony import */ var _state_WorkflowExecutionState_ts__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(61596);
|
|
117873
|
+
/* harmony import */ var _resolver_ArazzoValueResolver_ts__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(22411);
|
|
117874
|
+
/* harmony import */ var _resolver_StepParameterResolver_ts__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(92126);
|
|
117875
|
+
/* harmony import */ var _resolver_OpenAPIOperationParameterResolver_ts__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(3347);
|
|
117876
|
+
/* harmony import */ var _resolver_WorkflowParameterResolver_ts__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(95839);
|
|
117877
|
+
/* harmony import */ var _resolver_OutputResolver_ts__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(99494);
|
|
117878
|
+
/* harmony import */ var _resolver_RequestBodyResolver_ts__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(67410);
|
|
117879
|
+
/* harmony import */ var _action_ActionResolver_ts__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(51097);
|
|
117880
|
+
/* harmony import */ var _executor_WorkflowExecutor_ts__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(92152);
|
|
117881
|
+
/* harmony import */ var _executor_StepExecutor_ts__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(96007);
|
|
117882
|
+
/* harmony import */ var _executor_OpenAPIOperationExecutor_ts__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(57680);
|
|
117883
|
+
/* harmony import */ var _executor_SourceDescriptionsLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(83461);
|
|
117884
|
+
/* harmony import */ var _executor_OpenAPIOperationLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(7308);
|
|
117885
|
+
/* harmony import */ var _executor_ArazzoWorkflowLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(98885);
|
|
117886
|
+
/* harmony import */ var _errors_ArazzoRunnerError_ts__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(23949);
|
|
117887
|
+
/* harmony import */ var _errors_AssemblerError_ts__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(90706);
|
|
117888
|
+
/* harmony import */ var _errors_ClientError_ts__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(81763);
|
|
117889
|
+
/* harmony import */ var _errors_NormalizationError_ts__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(35523);
|
|
117890
|
+
/* harmony import */ var _errors_ExtractionError_ts__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(90713);
|
|
117891
|
+
/* harmony import */ var _errors_InvalidEntryDocumentError_ts__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(40198);
|
|
117892
|
+
/* harmony import */ var _errors_UnmatchedProviderError_ts__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(46132);
|
|
117893
|
+
/* harmony import */ var _errors_DocumentLoadError_ts__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(24089);
|
|
117894
|
+
/* harmony import */ var _errors_RuntimeExpressionError_ts__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(48770);
|
|
117895
|
+
/* harmony import */ var _errors_CriterionError_ts__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(41233);
|
|
117896
|
+
/* harmony import */ var _errors_CriterionEvaluationError_ts__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(71731);
|
|
117897
|
+
/* harmony import */ var _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(8696);
|
|
117898
|
+
/* harmony import */ var _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(17658);
|
|
117762
117899
|
/* Runner */
|
|
117763
117900
|
|
|
117764
117901
|
|
|
@@ -117812,7 +117949,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
117812
117949
|
|
|
117813
117950
|
|
|
117814
117951
|
|
|
117815
|
-
|
|
117816
117952
|
/* Execution State */
|
|
117817
117953
|
|
|
117818
117954
|
/* Resolvers */
|