@swagger-api/apidom-ns-arazzo-1 1.0.0-beta.30

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 (159) hide show
  1. package/CHANGELOG.md +252 -0
  2. package/LICENSES/AFL-3.0.txt +182 -0
  3. package/LICENSES/Apache-2.0.txt +202 -0
  4. package/LICENSES/BSD-3-Clause.txt +26 -0
  5. package/LICENSES/MIT.txt +9 -0
  6. package/NOTICE +83 -0
  7. package/README.md +203 -0
  8. package/dist/apidom-ns-arazzo-1.browser.js +26005 -0
  9. package/dist/apidom-ns-arazzo-1.browser.min.js +1 -0
  10. package/package.json +63 -0
  11. package/src/elements/ArazzoSpec.cjs +17 -0
  12. package/src/elements/ArazzoSpec.mjs +14 -0
  13. package/src/elements/ArazzoSpecification1.cjs +47 -0
  14. package/src/elements/ArazzoSpecification1.mjs +43 -0
  15. package/src/elements/Components.cjs +27 -0
  16. package/src/elements/Components.mjs +24 -0
  17. package/src/elements/Criterion.cjs +33 -0
  18. package/src/elements/Criterion.mjs +30 -0
  19. package/src/elements/FailureAction.cjs +51 -0
  20. package/src/elements/FailureAction.mjs +48 -0
  21. package/src/elements/Info.cjs +40 -0
  22. package/src/elements/Info.mjs +37 -0
  23. package/src/elements/Parameter.cjs +45 -0
  24. package/src/elements/Parameter.mjs +42 -0
  25. package/src/elements/Reference.cjs +28 -0
  26. package/src/elements/Reference.mjs +25 -0
  27. package/src/elements/SourceDescription.cjs +33 -0
  28. package/src/elements/SourceDescription.mjs +30 -0
  29. package/src/elements/Step.cjs +81 -0
  30. package/src/elements/Step.mjs +78 -0
  31. package/src/elements/SuccessAction.cjs +39 -0
  32. package/src/elements/SuccessAction.mjs +36 -0
  33. package/src/elements/Workflow.cjs +51 -0
  34. package/src/elements/Workflow.mjs +47 -0
  35. package/src/elements/nces/ComponentsInputs.cjs +16 -0
  36. package/src/elements/nces/ComponentsInputs.mjs +13 -0
  37. package/src/elements/nces/ComponentsParameters.cjs +16 -0
  38. package/src/elements/nces/ComponentsParameters.mjs +13 -0
  39. package/src/elements/nces/FailureActionCriteria.cjs +17 -0
  40. package/src/elements/nces/FailureActionCriteria.mjs +14 -0
  41. package/src/elements/nces/SourceDescriptions.cjs +16 -0
  42. package/src/elements/nces/SourceDescriptions.mjs +13 -0
  43. package/src/elements/nces/StepDependsOn.cjs +16 -0
  44. package/src/elements/nces/StepDependsOn.mjs +13 -0
  45. package/src/elements/nces/StepOnFailure.cjs +16 -0
  46. package/src/elements/nces/StepOnFailure.mjs +13 -0
  47. package/src/elements/nces/StepOnSuccess.cjs +16 -0
  48. package/src/elements/nces/StepOnSuccess.mjs +13 -0
  49. package/src/elements/nces/StepOutputs.cjs +16 -0
  50. package/src/elements/nces/StepOutputs.mjs +13 -0
  51. package/src/elements/nces/StepParameters.cjs +17 -0
  52. package/src/elements/nces/StepParameters.mjs +14 -0
  53. package/src/elements/nces/StepSuccessCriteria.cjs +17 -0
  54. package/src/elements/nces/StepSuccessCriteria.mjs +14 -0
  55. package/src/elements/nces/SuccessActionCriteria.cjs +17 -0
  56. package/src/elements/nces/SuccessActionCriteria.mjs +14 -0
  57. package/src/elements/nces/WorkflowOutputs.cjs +16 -0
  58. package/src/elements/nces/WorkflowOutputs.mjs +13 -0
  59. package/src/elements/nces/WorkflowSteps.cjs +16 -0
  60. package/src/elements/nces/WorkflowSteps.mjs +13 -0
  61. package/src/elements/nces/Workflows.cjs +16 -0
  62. package/src/elements/nces/Workflows.mjs +13 -0
  63. package/src/index.cjs +115 -0
  64. package/src/index.mjs +32 -0
  65. package/src/media-types.cjs +34 -0
  66. package/src/media-types.mjs +30 -0
  67. package/src/namespace.cjs +43 -0
  68. package/src/namespace.mjs +38 -0
  69. package/src/predicates.cjs +311 -0
  70. package/src/predicates.mjs +305 -0
  71. package/src/refractor/index.cjs +52 -0
  72. package/src/refractor/index.mjs +46 -0
  73. package/src/refractor/plugins/replace-empty-element.cjs +89 -0
  74. package/src/refractor/plugins/replace-empty-element.mjs +83 -0
  75. package/src/refractor/predicates.cjs +17 -0
  76. package/src/refractor/predicates.mjs +11 -0
  77. package/src/refractor/registration.cjs +44 -0
  78. package/src/refractor/registration.mjs +28 -0
  79. package/src/refractor/specification.cjs +237 -0
  80. package/src/refractor/specification.mjs +231 -0
  81. package/src/refractor/toolbox.cjs +23 -0
  82. package/src/refractor/toolbox.mjs +17 -0
  83. package/src/refractor/visitors/FallbackVisitor.cjs +24 -0
  84. package/src/refractor/visitors/FallbackVisitor.mjs +18 -0
  85. package/src/refractor/visitors/SpecificationExtensionVisitor.cjs +18 -0
  86. package/src/refractor/visitors/SpecificationExtensionVisitor.mjs +13 -0
  87. package/src/refractor/visitors/SpecificationVisitor.cjs +74 -0
  88. package/src/refractor/visitors/SpecificationVisitor.mjs +68 -0
  89. package/src/refractor/visitors/Visitor.cjs +34 -0
  90. package/src/refractor/visitors/Visitor.mjs +31 -0
  91. package/src/refractor/visitors/arazzo-1/ArazzoSpecVisitor.cjs +26 -0
  92. package/src/refractor/visitors/arazzo-1/ArazzoSpecVisitor.mjs +20 -0
  93. package/src/refractor/visitors/arazzo-1/FailureActionCriteriaVisitor.cjs +34 -0
  94. package/src/refractor/visitors/arazzo-1/FailureActionCriteriaVisitor.mjs +28 -0
  95. package/src/refractor/visitors/arazzo-1/ParametersVisitor.cjs +39 -0
  96. package/src/refractor/visitors/arazzo-1/ParametersVisitor.mjs +33 -0
  97. package/src/refractor/visitors/arazzo-1/SourceDescriptionsVisitor.cjs +34 -0
  98. package/src/refractor/visitors/arazzo-1/SourceDescriptionsVisitor.mjs +28 -0
  99. package/src/refractor/visitors/arazzo-1/SuccessActionCriteriaVisitor.cjs +34 -0
  100. package/src/refractor/visitors/arazzo-1/SuccessActionCriteriaVisitor.mjs +28 -0
  101. package/src/refractor/visitors/arazzo-1/WorkflowsVisitor.cjs +34 -0
  102. package/src/refractor/visitors/arazzo-1/WorkflowsVisitor.mjs +28 -0
  103. package/src/refractor/visitors/arazzo-1/components/InputsVisitor.cjs +25 -0
  104. package/src/refractor/visitors/arazzo-1/components/InputsVisitor.mjs +19 -0
  105. package/src/refractor/visitors/arazzo-1/components/ParametersVisitor.cjs +25 -0
  106. package/src/refractor/visitors/arazzo-1/components/ParametersVisitor.mjs +19 -0
  107. package/src/refractor/visitors/arazzo-1/components/index.cjs +26 -0
  108. package/src/refractor/visitors/arazzo-1/components/index.mjs +20 -0
  109. package/src/refractor/visitors/arazzo-1/criterion/index.cjs +26 -0
  110. package/src/refractor/visitors/arazzo-1/criterion/index.mjs +20 -0
  111. package/src/refractor/visitors/arazzo-1/failure-action/index.cjs +26 -0
  112. package/src/refractor/visitors/arazzo-1/failure-action/index.mjs +20 -0
  113. package/src/refractor/visitors/arazzo-1/index.cjs +32 -0
  114. package/src/refractor/visitors/arazzo-1/index.mjs +26 -0
  115. package/src/refractor/visitors/arazzo-1/info/VersionVisitor.cjs +18 -0
  116. package/src/refractor/visitors/arazzo-1/info/VersionVisitor.mjs +13 -0
  117. package/src/refractor/visitors/arazzo-1/info/index.cjs +26 -0
  118. package/src/refractor/visitors/arazzo-1/info/index.mjs +20 -0
  119. package/src/refractor/visitors/arazzo-1/parameter/index.cjs +26 -0
  120. package/src/refractor/visitors/arazzo-1/parameter/index.mjs +20 -0
  121. package/src/refractor/visitors/arazzo-1/reference/$RefVisitor.cjs +18 -0
  122. package/src/refractor/visitors/arazzo-1/reference/$RefVisitor.mjs +12 -0
  123. package/src/refractor/visitors/arazzo-1/reference/index.cjs +36 -0
  124. package/src/refractor/visitors/arazzo-1/reference/index.mjs +30 -0
  125. package/src/refractor/visitors/arazzo-1/source-description/UrlVisitor.cjs +17 -0
  126. package/src/refractor/visitors/arazzo-1/source-description/UrlVisitor.mjs +12 -0
  127. package/src/refractor/visitors/arazzo-1/source-description/index.cjs +26 -0
  128. package/src/refractor/visitors/arazzo-1/source-description/index.mjs +20 -0
  129. package/src/refractor/visitors/arazzo-1/step/DependsOnVisitor.cjs +26 -0
  130. package/src/refractor/visitors/arazzo-1/step/DependsOnVisitor.mjs +20 -0
  131. package/src/refractor/visitors/arazzo-1/step/OnFailureVisitor.cjs +33 -0
  132. package/src/refractor/visitors/arazzo-1/step/OnFailureVisitor.mjs +27 -0
  133. package/src/refractor/visitors/arazzo-1/step/OnSuccessVisitor.cjs +33 -0
  134. package/src/refractor/visitors/arazzo-1/step/OnSuccessVisitor.mjs +27 -0
  135. package/src/refractor/visitors/arazzo-1/step/OutputsVisitor.cjs +25 -0
  136. package/src/refractor/visitors/arazzo-1/step/OutputsVisitor.mjs +19 -0
  137. package/src/refractor/visitors/arazzo-1/step/ParametersVisitor.cjs +38 -0
  138. package/src/refractor/visitors/arazzo-1/step/ParametersVisitor.mjs +32 -0
  139. package/src/refractor/visitors/arazzo-1/step/SuccessCriteriaVisitor.cjs +33 -0
  140. package/src/refractor/visitors/arazzo-1/step/SuccessCriteriaVisitor.mjs +27 -0
  141. package/src/refractor/visitors/arazzo-1/step/index.cjs +26 -0
  142. package/src/refractor/visitors/arazzo-1/step/index.mjs +20 -0
  143. package/src/refractor/visitors/arazzo-1/success-action/index.cjs +26 -0
  144. package/src/refractor/visitors/arazzo-1/success-action/index.mjs +20 -0
  145. package/src/refractor/visitors/arazzo-1/workflow/OutputsVisitor.cjs +25 -0
  146. package/src/refractor/visitors/arazzo-1/workflow/OutputsVisitor.mjs +19 -0
  147. package/src/refractor/visitors/arazzo-1/workflow/StepsVisitor.cjs +33 -0
  148. package/src/refractor/visitors/arazzo-1/workflow/StepsVisitor.mjs +27 -0
  149. package/src/refractor/visitors/arazzo-1/workflow/index.cjs +26 -0
  150. package/src/refractor/visitors/arazzo-1/workflow/index.mjs +20 -0
  151. package/src/refractor/visitors/generics/FixedFieldsVisitor.cjs +67 -0
  152. package/src/refractor/visitors/generics/FixedFieldsVisitor.mjs +60 -0
  153. package/src/refractor/visitors/generics/MapVisitor.cjs +21 -0
  154. package/src/refractor/visitors/generics/MapVisitor.mjs +15 -0
  155. package/src/refractor/visitors/generics/PatternedFieldsVisitor.cjs +67 -0
  156. package/src/refractor/visitors/generics/PatternedFieldsVisitor.mjs +61 -0
  157. package/src/traversal/visitor.cjs +35 -0
  158. package/src/traversal/visitor.mjs +32 -0
  159. package/types/apidom-ns-arazzo-1.d.ts +1549 -0
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
4
+ exports.__esModule = true;
5
+ exports.default = void 0;
6
+ var _ramda = require("ramda");
7
+ var _ramdaAdjunct = require("ramda-adjunct");
8
+ var _apidomCore = require("@swagger-api/apidom-core");
9
+ var _Visitor = _interopRequireDefault(require("./Visitor.cjs"));
10
+ var _FallbackVisitor = _interopRequireDefault(require("./FallbackVisitor.cjs"));
11
+ /**
12
+ * This is a base Type for every visitor that does
13
+ * internal look-ups to retrieve other child visitors.
14
+ * @public
15
+ */
16
+
17
+ /**
18
+ * @public
19
+ */
20
+ class SpecificationVisitor extends _Visitor.default {
21
+ specObj;
22
+ passingOptionsNames = ['specObj'];
23
+ constructor({
24
+ specObj,
25
+ ...rest
26
+ }) {
27
+ super({
28
+ ...rest
29
+ });
30
+ this.specObj = specObj;
31
+ }
32
+ retrievePassingOptions() {
33
+ return (0, _ramda.pick)(this.passingOptionsNames, this);
34
+ }
35
+ retrieveFixedFields(specPath) {
36
+ const fixedFields = (0, _ramda.path)(['visitors', ...specPath, 'fixedFields'], this.specObj);
37
+ if (typeof fixedFields === 'object' && fixedFields !== null) {
38
+ return Object.keys(fixedFields);
39
+ }
40
+ return [];
41
+ }
42
+ retrieveVisitor(specPath) {
43
+ if ((0, _ramda.pathSatisfies)(_ramdaAdjunct.isFunction, ['visitors', ...specPath], this.specObj)) {
44
+ return (0, _ramda.path)(['visitors', ...specPath], this.specObj);
45
+ }
46
+ return (0, _ramda.path)(['visitors', ...specPath, '$visitor'], this.specObj);
47
+ }
48
+ retrieveVisitorInstance(specPath, options = {}) {
49
+ const passingOpts = this.retrievePassingOptions();
50
+ const VisitorClz = this.retrieveVisitor(specPath);
51
+ const visitorOpts = {
52
+ ...passingOpts,
53
+ ...options
54
+ };
55
+ return new VisitorClz(visitorOpts);
56
+ }
57
+ toRefractedElement(specPath, element, options = {}) {
58
+ /**
59
+ * This is `Visitor shortcut`: mechanism for short-circuiting the traversal and replacing
60
+ * it by basic node cloning.
61
+ *
62
+ * Visiting the element is equivalent to cloning it if the prototype of a visitor
63
+ * is the same as the prototype of FallbackVisitor. If that's the case, we can avoid
64
+ * bootstrapping the traversal cycle for fields that don't require any special visiting.
65
+ */
66
+ const visitor = this.retrieveVisitorInstance(specPath, options);
67
+ if (visitor instanceof _FallbackVisitor.default && (visitor == null ? void 0 : visitor.constructor) === _FallbackVisitor.default) {
68
+ return (0, _apidomCore.cloneDeep)(element);
69
+ }
70
+ (0, _apidomCore.visit)(element, visitor, options);
71
+ return visitor.element;
72
+ }
73
+ }
74
+ var _default = exports.default = SpecificationVisitor;
@@ -0,0 +1,68 @@
1
+ import { pathSatisfies, path, pick } from 'ramda';
2
+ import { isFunction } from 'ramda-adjunct';
3
+ import { visit, cloneDeep } from '@swagger-api/apidom-core';
4
+ import Visitor from "./Visitor.mjs";
5
+ import FallbackVisitor from "./FallbackVisitor.mjs";
6
+ /**
7
+ * This is a base Type for every visitor that does
8
+ * internal look-ups to retrieve other child visitors.
9
+ * @public
10
+ */
11
+ /**
12
+ * @public
13
+ */
14
+ class SpecificationVisitor extends Visitor {
15
+ specObj;
16
+ passingOptionsNames = ['specObj'];
17
+ constructor({
18
+ specObj,
19
+ ...rest
20
+ }) {
21
+ super({
22
+ ...rest
23
+ });
24
+ this.specObj = specObj;
25
+ }
26
+ retrievePassingOptions() {
27
+ return pick(this.passingOptionsNames, this);
28
+ }
29
+ retrieveFixedFields(specPath) {
30
+ const fixedFields = path(['visitors', ...specPath, 'fixedFields'], this.specObj);
31
+ if (typeof fixedFields === 'object' && fixedFields !== null) {
32
+ return Object.keys(fixedFields);
33
+ }
34
+ return [];
35
+ }
36
+ retrieveVisitor(specPath) {
37
+ if (pathSatisfies(isFunction, ['visitors', ...specPath], this.specObj)) {
38
+ return path(['visitors', ...specPath], this.specObj);
39
+ }
40
+ return path(['visitors', ...specPath, '$visitor'], this.specObj);
41
+ }
42
+ retrieveVisitorInstance(specPath, options = {}) {
43
+ const passingOpts = this.retrievePassingOptions();
44
+ const VisitorClz = this.retrieveVisitor(specPath);
45
+ const visitorOpts = {
46
+ ...passingOpts,
47
+ ...options
48
+ };
49
+ return new VisitorClz(visitorOpts);
50
+ }
51
+ toRefractedElement(specPath, element, options = {}) {
52
+ /**
53
+ * This is `Visitor shortcut`: mechanism for short-circuiting the traversal and replacing
54
+ * it by basic node cloning.
55
+ *
56
+ * Visiting the element is equivalent to cloning it if the prototype of a visitor
57
+ * is the same as the prototype of FallbackVisitor. If that's the case, we can avoid
58
+ * bootstrapping the traversal cycle for fields that don't require any special visiting.
59
+ */
60
+ const visitor = this.retrieveVisitorInstance(specPath, options);
61
+ if (visitor instanceof FallbackVisitor && (visitor === null || visitor === void 0 ? void 0 : visitor.constructor) === FallbackVisitor) {
62
+ return cloneDeep(element);
63
+ }
64
+ visit(element, visitor, options);
65
+ return visitor.element;
66
+ }
67
+ }
68
+ export default SpecificationVisitor;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _apidomCore = require("@swagger-api/apidom-core");
6
+ /**
7
+ * @public
8
+ */
9
+
10
+ /**
11
+ * @public
12
+ */
13
+ class Visitor {
14
+ element;
15
+ constructor(options = {}) {
16
+ Object.assign(this, options);
17
+ }
18
+
19
+ /* eslint-disable class-methods-use-this, no-param-reassign */
20
+ copyMetaAndAttributes(from, to) {
21
+ if (from.meta.length > 0 || to.meta.length > 0) {
22
+ to.meta = (0, _apidomCore.deepmerge)(to.meta, from.meta);
23
+ if ((0, _apidomCore.hasElementSourceMap)(from)) {
24
+ // avoid deep merging of source maps
25
+ to.meta.set('sourceMap', from.meta.get('sourceMap'));
26
+ }
27
+ }
28
+ if (from.attributes.length > 0 || from.meta.length > 0) {
29
+ to.attributes = (0, _apidomCore.deepmerge)(to.attributes, from.attributes); // eslint-disable-line no-param-reassign
30
+ }
31
+ }
32
+ /* eslint-enable class-methods-use-this, no-param-reassign */
33
+ }
34
+ var _default = exports.default = Visitor;
@@ -0,0 +1,31 @@
1
+ import { deepmerge, hasElementSourceMap } from '@swagger-api/apidom-core';
2
+
3
+ /**
4
+ * @public
5
+ */
6
+
7
+ /**
8
+ * @public
9
+ */
10
+ class Visitor {
11
+ element;
12
+ constructor(options = {}) {
13
+ Object.assign(this, options);
14
+ }
15
+
16
+ /* eslint-disable class-methods-use-this, no-param-reassign */
17
+ copyMetaAndAttributes(from, to) {
18
+ if (from.meta.length > 0 || to.meta.length > 0) {
19
+ to.meta = deepmerge(to.meta, from.meta);
20
+ if (hasElementSourceMap(from)) {
21
+ // avoid deep merging of source maps
22
+ to.meta.set('sourceMap', from.meta.get('sourceMap'));
23
+ }
24
+ }
25
+ if (from.attributes.length > 0 || from.meta.length > 0) {
26
+ to.attributes = deepmerge(to.attributes, from.attributes); // eslint-disable-line no-param-reassign
27
+ }
28
+ }
29
+ /* eslint-enable class-methods-use-this, no-param-reassign */
30
+ }
31
+ export default Visitor;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
4
+ exports.__esModule = true;
5
+ exports.default = void 0;
6
+ var _tsMixer = require("ts-mixer");
7
+ var _apidomCore = require("@swagger-api/apidom-core");
8
+ var _FallbackVisitor = _interopRequireDefault(require("../FallbackVisitor.cjs"));
9
+ var _SpecificationVisitor = _interopRequireDefault(require("../SpecificationVisitor.cjs"));
10
+ var _ArazzoSpec = _interopRequireDefault(require("../../../elements/ArazzoSpec.cjs"));
11
+ /**
12
+ * @public
13
+ */
14
+
15
+ /**
16
+ * @public
17
+ */
18
+ class ArazzoSpecVisitor extends (0, _tsMixer.Mixin)(_SpecificationVisitor.default, _FallbackVisitor.default) {
19
+ StringElement(stringElement) {
20
+ const arazzoSpecElement = new _ArazzoSpec.default((0, _apidomCore.toValue)(stringElement));
21
+ this.copyMetaAndAttributes(stringElement, arazzoSpecElement);
22
+ this.element = arazzoSpecElement;
23
+ return _apidomCore.BREAK;
24
+ }
25
+ }
26
+ var _default = exports.default = ArazzoSpecVisitor;
@@ -0,0 +1,20 @@
1
+ import { Mixin } from 'ts-mixer';
2
+ import { BREAK, toValue } from '@swagger-api/apidom-core';
3
+ import FallbackVisitor from "../FallbackVisitor.mjs";
4
+ import SpecificationVisitor from "../SpecificationVisitor.mjs";
5
+ import ArazzoSpecElement from "../../../elements/ArazzoSpec.mjs";
6
+ /**
7
+ * @public
8
+ */
9
+ /**
10
+ * @public
11
+ */
12
+ class ArazzoSpecVisitor extends Mixin(SpecificationVisitor, FallbackVisitor) {
13
+ StringElement(stringElement) {
14
+ const arazzoSpecElement = new ArazzoSpecElement(toValue(stringElement));
15
+ this.copyMetaAndAttributes(stringElement, arazzoSpecElement);
16
+ this.element = arazzoSpecElement;
17
+ return BREAK;
18
+ }
19
+ }
20
+ export default ArazzoSpecVisitor;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
4
+ exports.__esModule = true;
5
+ exports.default = void 0;
6
+ var _tsMixer = require("ts-mixer");
7
+ var _apidomCore = require("@swagger-api/apidom-core");
8
+ var _FailureActionCriteria = _interopRequireDefault(require("../../../elements/nces/FailureActionCriteria.cjs"));
9
+ var _SpecificationVisitor = _interopRequireDefault(require("../SpecificationVisitor.cjs"));
10
+ var _FallbackVisitor = _interopRequireDefault(require("../FallbackVisitor.cjs"));
11
+ /**
12
+ * @public
13
+ */
14
+
15
+ /**
16
+ * @public
17
+ */
18
+ class FailureActionCriteriaVisitor extends (0, _tsMixer.Mixin)(_SpecificationVisitor.default, _FallbackVisitor.default) {
19
+ element;
20
+ constructor(options) {
21
+ super(options);
22
+ this.element = new _FailureActionCriteria.default();
23
+ }
24
+ ArrayElement(arrayElement) {
25
+ arrayElement.forEach(item => {
26
+ const specPath = ['document', 'objects', 'Criterion'];
27
+ const element = this.toRefractedElement(specPath, item);
28
+ this.element.push(element);
29
+ });
30
+ this.copyMetaAndAttributes(arrayElement, this.element);
31
+ return _apidomCore.BREAK;
32
+ }
33
+ }
34
+ var _default = exports.default = FailureActionCriteriaVisitor;
@@ -0,0 +1,28 @@
1
+ import { Mixin } from 'ts-mixer';
2
+ import { BREAK } from '@swagger-api/apidom-core';
3
+ import FailureActionCriteriaElement from "../../../elements/nces/FailureActionCriteria.mjs";
4
+ import SpecificationVisitor from "../SpecificationVisitor.mjs";
5
+ import FallbackVisitor from "../FallbackVisitor.mjs";
6
+ /**
7
+ * @public
8
+ */
9
+ /**
10
+ * @public
11
+ */
12
+ class FailureActionCriteriaVisitor extends Mixin(SpecificationVisitor, FallbackVisitor) {
13
+ element;
14
+ constructor(options) {
15
+ super(options);
16
+ this.element = new FailureActionCriteriaElement();
17
+ }
18
+ ArrayElement(arrayElement) {
19
+ arrayElement.forEach(item => {
20
+ const specPath = ['document', 'objects', 'Criterion'];
21
+ const element = this.toRefractedElement(specPath, item);
22
+ this.element.push(element);
23
+ });
24
+ this.copyMetaAndAttributes(arrayElement, this.element);
25
+ return BREAK;
26
+ }
27
+ }
28
+ export default FailureActionCriteriaVisitor;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
4
+ exports.__esModule = true;
5
+ exports.default = void 0;
6
+ var _tsMixer = require("ts-mixer");
7
+ var _apidomCore = require("@swagger-api/apidom-core");
8
+ var _FallbackVisitor = _interopRequireDefault(require("../FallbackVisitor.cjs"));
9
+ var _SpecificationVisitor = _interopRequireDefault(require("../SpecificationVisitor.cjs"));
10
+ var _predicates = require("../../predicates.cjs");
11
+ var _predicates2 = require("../../../predicates.cjs");
12
+ /**
13
+ * @public
14
+ */
15
+
16
+ /**
17
+ * @public
18
+ */
19
+ class ParametersVisitor extends (0, _tsMixer.Mixin)(_SpecificationVisitor.default, _FallbackVisitor.default) {
20
+ element;
21
+ constructor(options) {
22
+ super(options);
23
+ this.element = new _apidomCore.ArrayElement();
24
+ this.element.classes.push('parameters');
25
+ }
26
+ ArrayElement(arrayElement) {
27
+ arrayElement.forEach(item => {
28
+ const specPath = (0, _predicates.isReferenceLikeElement)(item) ? ['document', 'objects', 'Reference'] : ['document', 'objects', 'Parameter'];
29
+ const element = this.toRefractedElement(specPath, item);
30
+ if ((0, _predicates2.isReferenceElement)(element)) {
31
+ element.setMetaProperty('referenced-element', 'parameter');
32
+ }
33
+ this.element.push(element);
34
+ });
35
+ this.copyMetaAndAttributes(arrayElement, this.element);
36
+ return _apidomCore.BREAK;
37
+ }
38
+ }
39
+ var _default = exports.default = ParametersVisitor;
@@ -0,0 +1,33 @@
1
+ import { Mixin } from 'ts-mixer';
2
+ import { ArrayElement, BREAK } from '@swagger-api/apidom-core';
3
+ import FallbackVisitor from "../FallbackVisitor.mjs";
4
+ import SpecificationVisitor from "../SpecificationVisitor.mjs";
5
+ import { isReferenceLikeElement } from "../../predicates.mjs";
6
+ import { isReferenceElement } from "../../../predicates.mjs";
7
+ /**
8
+ * @public
9
+ */
10
+ /**
11
+ * @public
12
+ */
13
+ class ParametersVisitor extends Mixin(SpecificationVisitor, FallbackVisitor) {
14
+ element;
15
+ constructor(options) {
16
+ super(options);
17
+ this.element = new ArrayElement();
18
+ this.element.classes.push('parameters');
19
+ }
20
+ ArrayElement(arrayElement) {
21
+ arrayElement.forEach(item => {
22
+ const specPath = isReferenceLikeElement(item) ? ['document', 'objects', 'Reference'] : ['document', 'objects', 'Parameter'];
23
+ const element = this.toRefractedElement(specPath, item);
24
+ if (isReferenceElement(element)) {
25
+ element.setMetaProperty('referenced-element', 'parameter');
26
+ }
27
+ this.element.push(element);
28
+ });
29
+ this.copyMetaAndAttributes(arrayElement, this.element);
30
+ return BREAK;
31
+ }
32
+ }
33
+ export default ParametersVisitor;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
4
+ exports.__esModule = true;
5
+ exports.default = void 0;
6
+ var _tsMixer = require("ts-mixer");
7
+ var _apidomCore = require("@swagger-api/apidom-core");
8
+ var _SourceDescriptions = _interopRequireDefault(require("../../../elements/nces/SourceDescriptions.cjs"));
9
+ var _SpecificationVisitor = _interopRequireDefault(require("../SpecificationVisitor.cjs"));
10
+ var _FallbackVisitor = _interopRequireDefault(require("../FallbackVisitor.cjs"));
11
+ /**
12
+ * @public
13
+ */
14
+
15
+ /**
16
+ * @public
17
+ */
18
+ class SourceDescriptionsVisitor extends (0, _tsMixer.Mixin)(_SpecificationVisitor.default, _FallbackVisitor.default) {
19
+ element;
20
+ constructor(options) {
21
+ super(options);
22
+ this.element = new _SourceDescriptions.default();
23
+ }
24
+ ArrayElement(arrayElement) {
25
+ arrayElement.forEach(item => {
26
+ const specPath = ['document', 'objects', 'SourceDescription'];
27
+ const element = this.toRefractedElement(specPath, item);
28
+ this.element.push(element);
29
+ });
30
+ this.copyMetaAndAttributes(arrayElement, this.element);
31
+ return _apidomCore.BREAK;
32
+ }
33
+ }
34
+ var _default = exports.default = SourceDescriptionsVisitor;
@@ -0,0 +1,28 @@
1
+ import { Mixin } from 'ts-mixer';
2
+ import { BREAK } from '@swagger-api/apidom-core';
3
+ import SourceDescriptionsElement from "../../../elements/nces/SourceDescriptions.mjs";
4
+ import SpecificationVisitor from "../SpecificationVisitor.mjs";
5
+ import FallbackVisitor from "../FallbackVisitor.mjs";
6
+ /**
7
+ * @public
8
+ */
9
+ /**
10
+ * @public
11
+ */
12
+ class SourceDescriptionsVisitor extends Mixin(SpecificationVisitor, FallbackVisitor) {
13
+ element;
14
+ constructor(options) {
15
+ super(options);
16
+ this.element = new SourceDescriptionsElement();
17
+ }
18
+ ArrayElement(arrayElement) {
19
+ arrayElement.forEach(item => {
20
+ const specPath = ['document', 'objects', 'SourceDescription'];
21
+ const element = this.toRefractedElement(specPath, item);
22
+ this.element.push(element);
23
+ });
24
+ this.copyMetaAndAttributes(arrayElement, this.element);
25
+ return BREAK;
26
+ }
27
+ }
28
+ export default SourceDescriptionsVisitor;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
4
+ exports.__esModule = true;
5
+ exports.default = void 0;
6
+ var _tsMixer = require("ts-mixer");
7
+ var _apidomCore = require("@swagger-api/apidom-core");
8
+ var _SuccessActionCriteria = _interopRequireDefault(require("../../../elements/nces/SuccessActionCriteria.cjs"));
9
+ var _SpecificationVisitor = _interopRequireDefault(require("../SpecificationVisitor.cjs"));
10
+ var _FallbackVisitor = _interopRequireDefault(require("../FallbackVisitor.cjs"));
11
+ /**
12
+ * @public
13
+ */
14
+
15
+ /**
16
+ * @public
17
+ */
18
+ class SuccessActionCriteriaVisitor extends (0, _tsMixer.Mixin)(_SpecificationVisitor.default, _FallbackVisitor.default) {
19
+ element;
20
+ constructor(options) {
21
+ super(options);
22
+ this.element = new _SuccessActionCriteria.default();
23
+ }
24
+ ArrayElement(arrayElement) {
25
+ arrayElement.forEach(item => {
26
+ const specPath = ['document', 'objects', 'Criterion'];
27
+ const element = this.toRefractedElement(specPath, item);
28
+ this.element.push(element);
29
+ });
30
+ this.copyMetaAndAttributes(arrayElement, this.element);
31
+ return _apidomCore.BREAK;
32
+ }
33
+ }
34
+ var _default = exports.default = SuccessActionCriteriaVisitor;
@@ -0,0 +1,28 @@
1
+ import { Mixin } from 'ts-mixer';
2
+ import { BREAK } from '@swagger-api/apidom-core';
3
+ import SuccessActionCriteriaElement from "../../../elements/nces/SuccessActionCriteria.mjs";
4
+ import SpecificationVisitor from "../SpecificationVisitor.mjs";
5
+ import FallbackVisitor from "../FallbackVisitor.mjs";
6
+ /**
7
+ * @public
8
+ */
9
+ /**
10
+ * @public
11
+ */
12
+ class SuccessActionCriteriaVisitor extends Mixin(SpecificationVisitor, FallbackVisitor) {
13
+ element;
14
+ constructor(options) {
15
+ super(options);
16
+ this.element = new SuccessActionCriteriaElement();
17
+ }
18
+ ArrayElement(arrayElement) {
19
+ arrayElement.forEach(item => {
20
+ const specPath = ['document', 'objects', 'Criterion'];
21
+ const element = this.toRefractedElement(specPath, item);
22
+ this.element.push(element);
23
+ });
24
+ this.copyMetaAndAttributes(arrayElement, this.element);
25
+ return BREAK;
26
+ }
27
+ }
28
+ export default SuccessActionCriteriaVisitor;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
4
+ exports.__esModule = true;
5
+ exports.default = void 0;
6
+ var _tsMixer = require("ts-mixer");
7
+ var _apidomCore = require("@swagger-api/apidom-core");
8
+ var _Workflows = _interopRequireDefault(require("../../../elements/nces/Workflows.cjs"));
9
+ var _SpecificationVisitor = _interopRequireDefault(require("../SpecificationVisitor.cjs"));
10
+ var _FallbackVisitor = _interopRequireDefault(require("../FallbackVisitor.cjs"));
11
+ /**
12
+ * @public
13
+ */
14
+
15
+ /**
16
+ * @public
17
+ */
18
+ class WorkflowsVisitor extends (0, _tsMixer.Mixin)(_SpecificationVisitor.default, _FallbackVisitor.default) {
19
+ element;
20
+ constructor(options) {
21
+ super(options);
22
+ this.element = new _Workflows.default();
23
+ }
24
+ ArrayElement(arrayElement) {
25
+ arrayElement.forEach(item => {
26
+ const specPath = ['document', 'objects', 'Workflow'];
27
+ const element = this.toRefractedElement(specPath, item);
28
+ this.element.push(element);
29
+ });
30
+ this.copyMetaAndAttributes(arrayElement, this.element);
31
+ return _apidomCore.BREAK;
32
+ }
33
+ }
34
+ var _default = exports.default = WorkflowsVisitor;
@@ -0,0 +1,28 @@
1
+ import { Mixin } from 'ts-mixer';
2
+ import { BREAK } from '@swagger-api/apidom-core';
3
+ import WorkflowsElement from "../../../elements/nces/Workflows.mjs";
4
+ import SpecificationVisitor from "../SpecificationVisitor.mjs";
5
+ import FallbackVisitor from "../FallbackVisitor.mjs";
6
+ /**
7
+ * @public
8
+ */
9
+ /**
10
+ * @public
11
+ */
12
+ class WorkflowsVisitor extends Mixin(SpecificationVisitor, FallbackVisitor) {
13
+ element;
14
+ constructor(options) {
15
+ super(options);
16
+ this.element = new WorkflowsElement();
17
+ }
18
+ ArrayElement(arrayElement) {
19
+ arrayElement.forEach(item => {
20
+ const specPath = ['document', 'objects', 'Workflow'];
21
+ const element = this.toRefractedElement(specPath, item);
22
+ this.element.push(element);
23
+ });
24
+ this.copyMetaAndAttributes(arrayElement, this.element);
25
+ return BREAK;
26
+ }
27
+ }
28
+ export default WorkflowsVisitor;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
4
+ exports.__esModule = true;
5
+ exports.default = void 0;
6
+ var _tsMixer = require("ts-mixer");
7
+ var _ramda = require("ramda");
8
+ var _ComponentsInputs = _interopRequireDefault(require("../../../../elements/nces/ComponentsInputs.cjs"));
9
+ var _MapVisitor = _interopRequireDefault(require("../../generics/MapVisitor.cjs"));
10
+ var _FallbackVisitor = _interopRequireDefault(require("../../FallbackVisitor.cjs"));
11
+ /**
12
+ * @public
13
+ */
14
+
15
+ /**
16
+ * @public
17
+ */
18
+ class InputsVisitor extends (0, _tsMixer.Mixin)(_MapVisitor.default, _FallbackVisitor.default) {
19
+ constructor(options) {
20
+ super(options);
21
+ this.element = new _ComponentsInputs.default();
22
+ this.specPath = (0, _ramda.always)(['document', 'objects', 'JSONSchema']);
23
+ }
24
+ }
25
+ var _default = exports.default = InputsVisitor;
@@ -0,0 +1,19 @@
1
+ import { Mixin } from 'ts-mixer';
2
+ import { always } from 'ramda';
3
+ import ComponentsInputsElement from "../../../../elements/nces/ComponentsInputs.mjs";
4
+ import MapVisitor from "../../generics/MapVisitor.mjs";
5
+ import FallbackVisitor from "../../FallbackVisitor.mjs";
6
+ /**
7
+ * @public
8
+ */
9
+ /**
10
+ * @public
11
+ */
12
+ class InputsVisitor extends Mixin(MapVisitor, FallbackVisitor) {
13
+ constructor(options) {
14
+ super(options);
15
+ this.element = new ComponentsInputsElement();
16
+ this.specPath = always(['document', 'objects', 'JSONSchema']);
17
+ }
18
+ }
19
+ export default InputsVisitor;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
4
+ exports.__esModule = true;
5
+ exports.default = void 0;
6
+ var _tsMixer = require("ts-mixer");
7
+ var _ramda = require("ramda");
8
+ var _ComponentsParameters = _interopRequireDefault(require("../../../../elements/nces/ComponentsParameters.cjs"));
9
+ var _FallbackVisitor = _interopRequireDefault(require("../../FallbackVisitor.cjs"));
10
+ var _MapVisitor = _interopRequireDefault(require("../../generics/MapVisitor.cjs"));
11
+ /**
12
+ * @public
13
+ */
14
+
15
+ /**
16
+ * @public
17
+ */
18
+ class ParametersVisitor extends (0, _tsMixer.Mixin)(_MapVisitor.default, _FallbackVisitor.default) {
19
+ constructor(options) {
20
+ super(options);
21
+ this.element = new _ComponentsParameters.default();
22
+ this.specPath = (0, _ramda.always)(['document', 'objects', 'Parameter']);
23
+ }
24
+ }
25
+ var _default = exports.default = ParametersVisitor;