@usearazzo/runner 1.0.1-alpha.22 → 1.0.1-alpha.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +1 -1
  3. package/dist/arazzo-runner.browser.js +473 -293
  4. package/dist/arazzo-runner.browser.min.js +1 -1
  5. package/package.json +4 -4
  6. package/src/action/ActionResolver.cjs +4 -4
  7. package/src/action/ActionResolver.mjs +4 -4
  8. package/src/criterion/CriterionEvaluator.cjs +8 -9
  9. package/src/criterion/CriterionEvaluator.mjs +8 -9
  10. package/src/criterion/JSONPathCriterionEvaluator.cjs +1 -2
  11. package/src/criterion/JSONPathCriterionEvaluator.mjs +1 -2
  12. package/src/criterion/RegexCriterionEvaluator.cjs +1 -2
  13. package/src/criterion/RegexCriterionEvaluator.mjs +1 -2
  14. package/src/criterion/SimpleCriterionEvaluator.cjs +1 -2
  15. package/src/criterion/SimpleCriterionEvaluator.mjs +1 -2
  16. package/src/criterion/XPathCriterionEvaluator.cjs +4 -5
  17. package/src/criterion/XPathCriterionEvaluator.mjs +4 -5
  18. package/src/errors/CriterionError.cjs +52 -2
  19. package/src/errors/CriterionError.mjs +53 -2
  20. package/src/errors/ExecutionError.cjs +73 -2
  21. package/src/errors/ExecutionError.mjs +74 -2
  22. package/src/errors/ResolverError.cjs +53 -2
  23. package/src/errors/ResolverError.mjs +54 -2
  24. package/src/errors/RuntimeExpressionError.cjs +32 -2
  25. package/src/errors/RuntimeExpressionError.mjs +33 -2
  26. package/src/executor/ArazzoWorkflowLocatorNormalizer.cjs +4 -4
  27. package/src/executor/ArazzoWorkflowLocatorNormalizer.mjs +4 -4
  28. package/src/executor/OpenAPIOperationLocatorNormalizer.cjs +79 -47
  29. package/src/executor/OpenAPIOperationLocatorNormalizer.mjs +80 -48
  30. package/src/executor/StepExecutor.cjs +42 -32
  31. package/src/executor/StepExecutor.mjs +42 -32
  32. package/src/executor/StepRetryRunner.cjs +1 -1
  33. package/src/executor/StepRetryRunner.mjs +1 -1
  34. package/src/executor/StepTransitionInterpreter.cjs +3 -3
  35. package/src/executor/StepTransitionInterpreter.mjs +3 -3
  36. package/src/executor/WorkflowCallStack.cjs +2 -2
  37. package/src/executor/WorkflowCallStack.mjs +2 -2
  38. package/src/executor/WorkflowExecutor.cjs +17 -16
  39. package/src/executor/WorkflowExecutor.mjs +17 -16
  40. package/src/executor/abort.cjs +3 -3
  41. package/src/executor/abort.mjs +3 -3
  42. package/src/expression/RuntimeExpressionEvaluator.cjs +5 -5
  43. package/src/expression/RuntimeExpressionEvaluator.mjs +5 -5
  44. package/src/index.cjs +0 -7
  45. package/src/index.mjs +0 -1
  46. package/src/resolver/OpenAPIOperationParameterResolver.cjs +6 -6
  47. package/src/resolver/OpenAPIOperationParameterResolver.mjs +6 -6
  48. package/src/resolver/OutputResolver.cjs +3 -3
  49. package/src/resolver/OutputResolver.mjs +3 -3
  50. package/src/resolver/RequestBodyResolver.cjs +6 -6
  51. package/src/resolver/RequestBodyResolver.mjs +6 -6
  52. package/src/resolver/WorkflowParameterResolver.cjs +1 -1
  53. package/src/resolver/WorkflowParameterResolver.mjs +1 -1
  54. package/types/runner.d.ts +236 -60
  55. package/src/criterion/CriterionErrorReason.cjs +0 -51
  56. package/src/criterion/CriterionErrorReason.mjs +0 -46
@@ -1,46 +0,0 @@
1
- /**
2
- * The `reason` a {@link CriterionError} carries.
3
- *
4
- * Structural reasons mark a criterion that is malformed as written; they are
5
- * thrown as a plain `CriterionError`. Evaluation reasons (`InvalidSimple`,
6
- * `InvalidRegex`, `InvalidJSONPath`, `InvalidXPath`, `InvalidXPathContext`) mark
7
- * a condition that cannot be evaluated; they are thrown as a
8
- * {@link CriterionEvaluationError}, which `CriterionEvaluator` turns into an
9
- * unmet criterion.
10
- * @public
11
- */
12
- const CriterionErrorReason = {
13
- /** The element is not a Criterion Object. */
14
- InvalidCriterion: 'invalid-criterion',
15
- /** The `condition` is missing or empty. */
16
- MissingCondition: 'missing-condition',
17
- /** The `type` is present but unreadable. */
18
- InvalidType: 'invalid-type',
19
- /** The `type` names no known criterion type. */
20
- UnknownType: 'unknown-type',
21
- /** The expression type `version` is present but not a string. */
22
- InvalidVersion: 'invalid-version',
23
- /** The expression type `version` is not the one this runner supports. */
24
- UnsupportedVersion: 'unsupported-version',
25
- /** The `context` is not a runtime expression. */
26
- InvalidContext: 'invalid-context',
27
- /** A `regex`, `jsonpath` or `xpath` criterion has no `context`. */
28
- MissingContext: 'missing-context',
29
- /** The `simple` condition cannot be parsed. */
30
- InvalidSimple: 'invalid-simple',
31
- /** The `regex` condition is not a valid regular expression. */
32
- InvalidRegex: 'invalid-regex',
33
- /** The `jsonpath` condition is not a valid JSONPath query. */
34
- InvalidJSONPath: 'invalid-jsonpath',
35
- /** The `xpath` condition is invalid or fails to evaluate. */
36
- InvalidXPath: 'invalid-xpath',
37
- /** The resolved `xpath` context is not XML. */
38
- InvalidXPathContext: 'invalid-xpath-context'
39
- };
40
-
41
- /**
42
- * One of the `CriterionErrorReason` values.
43
- * @public
44
- */
45
-
46
- export default CriterionErrorReason;