testit-js-commons 4.2.0-TMS-5.8 → 5.0.0

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 (157) hide show
  1. package/lib/adapters-api/dist/ApiClient.js +683 -0
  2. package/lib/adapters-api/dist/api/AttachmentsApi.js +165 -0
  3. package/lib/adapters-api/dist/api/AutoTestsApi.js +536 -0
  4. package/lib/adapters-api/dist/api/ConfigurationsApi.js +91 -0
  5. package/lib/adapters-api/dist/api/ParametersApi.js +159 -0
  6. package/lib/adapters-api/dist/api/ProjectAttributesApi.js +140 -0
  7. package/lib/adapters-api/dist/api/ProjectSectionsApi.js +96 -0
  8. package/lib/adapters-api/dist/api/ProjectWorkItemsApi.js +99 -0
  9. package/lib/adapters-api/dist/api/ProjectsApi.js +200 -0
  10. package/lib/adapters-api/dist/api/SectionsApi.js +118 -0
  11. package/lib/adapters-api/dist/api/TestResultsApi.js +168 -0
  12. package/lib/adapters-api/dist/api/TestRunsApi.js +331 -0
  13. package/lib/adapters-api/dist/api/WorkItemsApi.js +170 -0
  14. package/lib/adapters-api/dist/api/WorkflowsApi.js +75 -0
  15. package/lib/adapters-api/dist/index.js +951 -0
  16. package/lib/adapters-api/dist/model/AssignAttachmentApiModel.js +89 -0
  17. package/lib/adapters-api/dist/model/AssignAutoTestCaseIdApiModel.js +89 -0
  18. package/lib/adapters-api/dist/model/AssignIterationApiModel.js +112 -0
  19. package/lib/adapters-api/dist/model/AttachmentApiResult.js +145 -0
  20. package/lib/adapters-api/dist/model/AttachmentModel.js +193 -0
  21. package/lib/adapters-api/dist/model/AttachmentPutModel.js +89 -0
  22. package/lib/adapters-api/dist/model/AttachmentPutModelAutoTestStepResultsModel.js +196 -0
  23. package/lib/adapters-api/dist/model/AttachmentUpdateRequest.js +89 -0
  24. package/lib/adapters-api/dist/model/AutoTest.js +327 -0
  25. package/lib/adapters-api/dist/model/AutoTestApiResult.js +323 -0
  26. package/lib/adapters-api/dist/model/AutoTestCaseApiModel.js +89 -0
  27. package/lib/adapters-api/dist/model/AutoTestCreateApiModel.js +323 -0
  28. package/lib/adapters-api/dist/model/AutoTestFilterApiModel.js +201 -0
  29. package/lib/adapters-api/dist/model/AutoTestIdModel.js +88 -0
  30. package/lib/adapters-api/dist/model/AutoTestModel.js +488 -0
  31. package/lib/adapters-api/dist/model/AutoTestResultReasonShort.js +99 -0
  32. package/lib/adapters-api/dist/model/AutoTestResultsForTestRunModel.js +334 -0
  33. package/lib/adapters-api/dist/model/AutoTestSearchApiModel.js +96 -0
  34. package/lib/adapters-api/dist/model/AutoTestSearchIncludeApiModel.js +93 -0
  35. package/lib/adapters-api/dist/model/AutoTestStep.js +123 -0
  36. package/lib/adapters-api/dist/model/AutoTestStepApiModel.js +123 -0
  37. package/lib/adapters-api/dist/model/AutoTestStepApiResult.js +123 -0
  38. package/lib/adapters-api/dist/model/AutoTestStepModel.js +123 -0
  39. package/lib/adapters-api/dist/model/AutoTestStepResult.js +196 -0
  40. package/lib/adapters-api/dist/model/AutoTestStepResultUpdateRequest.js +196 -0
  41. package/lib/adapters-api/dist/model/AutoTestUpdateApiModel.js +327 -0
  42. package/lib/adapters-api/dist/model/AutoTestWorkItemIdentifierApiResult.js +100 -0
  43. package/lib/adapters-api/dist/model/AvailableTestResultOutcome.js +67 -0
  44. package/lib/adapters-api/dist/model/ConfigurationFilterModel.js +114 -0
  45. package/lib/adapters-api/dist/model/ConfigurationModel.js +213 -0
  46. package/lib/adapters-api/dist/model/ConfigurationShortModel.js +102 -0
  47. package/lib/adapters-api/dist/model/CreateEmptyTestRunApiModel.js +185 -0
  48. package/lib/adapters-api/dist/model/CreateLinkApiModel.js +127 -0
  49. package/lib/adapters-api/dist/model/CreateParameterApiModel.js +117 -0
  50. package/lib/adapters-api/dist/model/CreateProjectApiModel.js +124 -0
  51. package/lib/adapters-api/dist/model/CreateStepApiModel.js +131 -0
  52. package/lib/adapters-api/dist/model/CreateWorkItemApiModel.js +384 -0
  53. package/lib/adapters-api/dist/model/CustomAttributeApiResult.js +184 -0
  54. package/lib/adapters-api/dist/model/CustomAttributeGetModel.js +184 -0
  55. package/lib/adapters-api/dist/model/CustomAttributeOptionApiResult.js +124 -0
  56. package/lib/adapters-api/dist/model/CustomAttributeOptionModel.js +124 -0
  57. package/lib/adapters-api/dist/model/CustomAttributePutModel.js +182 -0
  58. package/lib/adapters-api/dist/model/CustomAttributeType.js +73 -0
  59. package/lib/adapters-api/dist/model/CustomAttributeTypesEnum.js +73 -0
  60. package/lib/adapters-api/dist/model/DateTimeRangeSelectorModel.js +82 -0
  61. package/lib/adapters-api/dist/model/DeletionState.js +55 -0
  62. package/lib/adapters-api/dist/model/DetailedProjectApiResult.js +204 -0
  63. package/lib/adapters-api/dist/model/FailureCategoryModel.js +67 -0
  64. package/lib/adapters-api/dist/model/GuidExtractionModel.js +90 -0
  65. package/lib/adapters-api/dist/model/ImageResizeType.js +49 -0
  66. package/lib/adapters-api/dist/model/Int32RangeSelectorModel.js +82 -0
  67. package/lib/adapters-api/dist/model/Int64RangeSelectorModel.js +82 -0
  68. package/lib/adapters-api/dist/model/IterationApiResult.js +109 -0
  69. package/lib/adapters-api/dist/model/IterationModel.js +109 -0
  70. package/lib/adapters-api/dist/model/LabelApiModel.js +100 -0
  71. package/lib/adapters-api/dist/model/LabelApiResult.js +100 -0
  72. package/lib/adapters-api/dist/model/LabelShortModel.js +100 -0
  73. package/lib/adapters-api/dist/model/LinkApiResult.js +140 -0
  74. package/lib/adapters-api/dist/model/LinkCreateApiModel.js +127 -0
  75. package/lib/adapters-api/dist/model/LinkModel.js +149 -0
  76. package/lib/adapters-api/dist/model/LinkPostModel.js +137 -0
  77. package/lib/adapters-api/dist/model/LinkPutModel.js +149 -0
  78. package/lib/adapters-api/dist/model/LinkShortApiResult.js +126 -0
  79. package/lib/adapters-api/dist/model/LinkType.js +73 -0
  80. package/lib/adapters-api/dist/model/LinkUpdateApiModel.js +140 -0
  81. package/lib/adapters-api/dist/model/ManualRerunApiResult.js +84 -0
  82. package/lib/adapters-api/dist/model/ManualRerunSelectTestResultsApiModel.js +109 -0
  83. package/lib/adapters-api/dist/model/ManualRerunTestResultApiModel.js +81 -0
  84. package/lib/adapters-api/dist/model/Operation.js +110 -0
  85. package/lib/adapters-api/dist/model/ParameterApiResult.js +154 -0
  86. package/lib/adapters-api/dist/model/ParameterIterationModel.js +100 -0
  87. package/lib/adapters-api/dist/model/ParameterShortApiResult.js +132 -0
  88. package/lib/adapters-api/dist/model/ParameterShortModel.js +158 -0
  89. package/lib/adapters-api/dist/model/ParametersFilterApiModel.js +98 -0
  90. package/lib/adapters-api/dist/model/ProblemDetails.js +124 -0
  91. package/lib/adapters-api/dist/model/ProjectApiResult.js +165 -0
  92. package/lib/adapters-api/dist/model/ProjectAttributesFilterModel.js +132 -0
  93. package/lib/adapters-api/dist/model/ProjectTypeModel.js +49 -0
  94. package/lib/adapters-api/dist/model/ProjectsFilterModel.js +209 -0
  95. package/lib/adapters-api/dist/model/SectionModel.js +180 -0
  96. package/lib/adapters-api/dist/model/SectionPostModel.js +178 -0
  97. package/lib/adapters-api/dist/model/SectionWithStepsModel.js +242 -0
  98. package/lib/adapters-api/dist/model/SharedStepModel.js +145 -0
  99. package/lib/adapters-api/dist/model/SharedStepResultApiModel.js +102 -0
  100. package/lib/adapters-api/dist/model/StepCommentApiModel.js +207 -0
  101. package/lib/adapters-api/dist/model/StepModel.js +163 -0
  102. package/lib/adapters-api/dist/model/StepPostModel.js +126 -0
  103. package/lib/adapters-api/dist/model/StepResultApiModel.js +149 -0
  104. package/lib/adapters-api/dist/model/TagModel.js +88 -0
  105. package/lib/adapters-api/dist/model/TestResultLinkApiResult.js +153 -0
  106. package/lib/adapters-api/dist/model/TestResultOutcome.js +67 -0
  107. package/lib/adapters-api/dist/model/TestResultResponse.js +400 -0
  108. package/lib/adapters-api/dist/model/TestResultShortResponse.js +311 -0
  109. package/lib/adapters-api/dist/model/TestResultStepCommentUpdateRequest.js +152 -0
  110. package/lib/adapters-api/dist/model/TestResultUpdateRequest.js +285 -0
  111. package/lib/adapters-api/dist/model/TestResultsFilterApiModel.js +226 -0
  112. package/lib/adapters-api/dist/model/TestRunApiResult.js +196 -0
  113. package/lib/adapters-api/dist/model/TestRunState.js +61 -0
  114. package/lib/adapters-api/dist/model/TestStatusApiResult.js +114 -0
  115. package/lib/adapters-api/dist/model/TestStatusApiType.js +67 -0
  116. package/lib/adapters-api/dist/model/TestStatusModel.js +149 -0
  117. package/lib/adapters-api/dist/model/TestStatusType.js +67 -0
  118. package/lib/adapters-api/dist/model/UpdateEmptyTestRunApiModel.js +187 -0
  119. package/lib/adapters-api/dist/model/UpdateLinkApiModel.js +140 -0
  120. package/lib/adapters-api/dist/model/ValidationProblemDetails.js +144 -0
  121. package/lib/adapters-api/dist/model/WorkItemApiResult.js +499 -0
  122. package/lib/adapters-api/dist/model/WorkItemEntityTypeApiModel.js +55 -0
  123. package/lib/adapters-api/dist/model/WorkItemFilterApiModel.js +309 -0
  124. package/lib/adapters-api/dist/model/WorkItemIdApiModel.js +89 -0
  125. package/lib/adapters-api/dist/model/WorkItemParameterKeyApiModel.js +89 -0
  126. package/lib/adapters-api/dist/model/WorkItemParameterKeyApiResult.js +88 -0
  127. package/lib/adapters-api/dist/model/WorkItemPriorityApiModel.js +67 -0
  128. package/lib/adapters-api/dist/model/WorkItemPriorityModel.js +67 -0
  129. package/lib/adapters-api/dist/model/WorkItemSelectApiModel.js +90 -0
  130. package/lib/adapters-api/dist/model/WorkItemShortApiResult.js +316 -0
  131. package/lib/adapters-api/dist/model/WorkItemSourceTypeModel.js +49 -0
  132. package/lib/adapters-api/dist/model/WorkItemStateApiModel.js +55 -0
  133. package/lib/adapters-api/dist/model/WorkItemStates.js +55 -0
  134. package/lib/adapters-api/dist/model/WorkItemTypeModel.js +55 -0
  135. package/lib/adapters-api/dist/model/WorkflowApiResult.js +111 -0
  136. package/lib/adapters-api/dist/model/WorkflowStatusApiResult.js +114 -0
  137. package/lib/adapters-api/index.d.ts +8862 -0
  138. package/lib/common/base.converter.d.ts +16 -17
  139. package/lib/common/base.converter.js +12 -14
  140. package/lib/common/base.service.d.ts +1 -1
  141. package/lib/common/base.service.js +6 -36
  142. package/lib/services/attachments/attachments.service.d.ts +1 -2
  143. package/lib/services/attachments/attachments.service.js +7 -7
  144. package/lib/services/autotests/autotests.converter.d.ts +2 -3
  145. package/lib/services/autotests/autotests.converter.js +0 -5
  146. package/lib/services/autotests/autotests.service.d.ts +1 -2
  147. package/lib/services/autotests/autotests.service.js +11 -44
  148. package/lib/services/testresults/testresults.converter.d.ts +4 -5
  149. package/lib/services/testresults/testresults.converter.js +0 -15
  150. package/lib/services/testresults/testresults.service.d.ts +2 -3
  151. package/lib/services/testresults/testresults.service.js +16 -44
  152. package/lib/services/testresults/testresults.type.d.ts +1 -1
  153. package/lib/services/testruns/testruns.converter.d.ts +12 -13
  154. package/lib/services/testruns/testruns.converter.js +19 -8
  155. package/lib/services/testruns/testruns.service.d.ts +1 -2
  156. package/lib/services/testruns/testruns.service.js +13 -46
  157. package/package.json +7 -5
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _GuidExtractionModel = _interopRequireDefault(require("./GuidExtractionModel"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ /**
11
+ * API
12
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
13
+ *
14
+ * The version of the OpenAPI document: adapters
15
+ *
16
+ *
17
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
18
+ * https://openapi-generator.tech
19
+ * Do not edit the class manually.
20
+ *
21
+ */
22
+
23
+ /**
24
+ * The ManualRerunTestResultApiModel model module.
25
+ * @module model/ManualRerunTestResultApiModel
26
+ * @version 1.0.0
27
+ */
28
+ class ManualRerunTestResultApiModel {
29
+ /**
30
+ * Constructs a new <code>ManualRerunTestResultApiModel</code>.
31
+ * @alias module:model/ManualRerunTestResultApiModel
32
+ */
33
+ constructor() {
34
+ ManualRerunTestResultApiModel.initialize(this);
35
+ }
36
+
37
+ /**
38
+ * Initializes the fields of this object.
39
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
40
+ * Only for internal use.
41
+ */
42
+ static initialize(obj) {}
43
+
44
+ /**
45
+ * Constructs a <code>ManualRerunTestResultApiModel</code> from a plain JavaScript object, optionally creating a new instance.
46
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
47
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
48
+ * @param {module:model/ManualRerunTestResultApiModel} obj Optional instance to populate.
49
+ * @return {module:model/ManualRerunTestResultApiModel} The populated <code>ManualRerunTestResultApiModel</code> instance.
50
+ */
51
+ static constructFromObject(data, obj) {
52
+ if (data) {
53
+ obj = obj || new ManualRerunTestResultApiModel();
54
+ if (data.hasOwnProperty('testResultIds')) {
55
+ obj['testResultIds'] = _ApiClient.default.convertToType(data['testResultIds'], _GuidExtractionModel.default);
56
+ }
57
+ }
58
+ return obj;
59
+ }
60
+
61
+ /**
62
+ * Validates the JSON data with respect to <code>ManualRerunTestResultApiModel</code>.
63
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
64
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ManualRerunTestResultApiModel</code>.
65
+ */
66
+ static validateJSON(data) {
67
+ // validate the optional field `testResultIds`
68
+ if (data['testResultIds']) {
69
+ // data not null
70
+ _GuidExtractionModel.default.validateJSON(data['testResultIds']);
71
+ }
72
+ return true;
73
+ }
74
+ }
75
+
76
+ /**
77
+ * Set of extracted test result IDs
78
+ * @member {module:model/GuidExtractionModel} testResultIds
79
+ */
80
+ ManualRerunTestResultApiModel.prototype['testResultIds'] = undefined;
81
+ var _default = exports.default = ManualRerunTestResultApiModel;
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ /**
10
+ * API
11
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
12
+ *
13
+ * The version of the OpenAPI document: adapters
14
+ *
15
+ *
16
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
17
+ * https://openapi-generator.tech
18
+ * Do not edit the class manually.
19
+ *
20
+ */
21
+
22
+ /**
23
+ * The Operation model module.
24
+ * @module model/Operation
25
+ * @version 1.0.0
26
+ */
27
+ class Operation {
28
+ /**
29
+ * Constructs a new <code>Operation</code>.
30
+ * @alias module:model/Operation
31
+ */
32
+ constructor() {
33
+ Operation.initialize(this);
34
+ }
35
+
36
+ /**
37
+ * Initializes the fields of this object.
38
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
39
+ * Only for internal use.
40
+ */
41
+ static initialize(obj) {}
42
+
43
+ /**
44
+ * Constructs a <code>Operation</code> from a plain JavaScript object, optionally creating a new instance.
45
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
46
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
47
+ * @param {module:model/Operation} obj Optional instance to populate.
48
+ * @return {module:model/Operation} The populated <code>Operation</code> instance.
49
+ */
50
+ static constructFromObject(data, obj) {
51
+ if (data) {
52
+ obj = obj || new Operation();
53
+ if (data.hasOwnProperty('value')) {
54
+ obj['value'] = _ApiClient.default.convertToType(data['value'], Object);
55
+ }
56
+ if (data.hasOwnProperty('path')) {
57
+ obj['path'] = _ApiClient.default.convertToType(data['path'], 'String');
58
+ }
59
+ if (data.hasOwnProperty('op')) {
60
+ obj['op'] = _ApiClient.default.convertToType(data['op'], 'String');
61
+ }
62
+ if (data.hasOwnProperty('from')) {
63
+ obj['from'] = _ApiClient.default.convertToType(data['from'], 'String');
64
+ }
65
+ }
66
+ return obj;
67
+ }
68
+
69
+ /**
70
+ * Validates the JSON data with respect to <code>Operation</code>.
71
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
72
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>Operation</code>.
73
+ */
74
+ static validateJSON(data) {
75
+ // ensure the json data is a string
76
+ if (data['path'] && !(typeof data['path'] === 'string' || data['path'] instanceof String)) {
77
+ throw new Error("Expected the field `path` to be a primitive type in the JSON string but got " + data['path']);
78
+ }
79
+ // ensure the json data is a string
80
+ if (data['op'] && !(typeof data['op'] === 'string' || data['op'] instanceof String)) {
81
+ throw new Error("Expected the field `op` to be a primitive type in the JSON string but got " + data['op']);
82
+ }
83
+ // ensure the json data is a string
84
+ if (data['from'] && !(typeof data['from'] === 'string' || data['from'] instanceof String)) {
85
+ throw new Error("Expected the field `from` to be a primitive type in the JSON string but got " + data['from']);
86
+ }
87
+ return true;
88
+ }
89
+ }
90
+
91
+ /**
92
+ * @member {Object} value
93
+ */
94
+ Operation.prototype['value'] = undefined;
95
+
96
+ /**
97
+ * @member {String} path
98
+ */
99
+ Operation.prototype['path'] = undefined;
100
+
101
+ /**
102
+ * @member {String} op
103
+ */
104
+ Operation.prototype['op'] = undefined;
105
+
106
+ /**
107
+ * @member {String} from
108
+ */
109
+ Operation.prototype['from'] = undefined;
110
+ var _default = exports.default = Operation;
@@ -0,0 +1,154 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ /**
10
+ * API
11
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
12
+ *
13
+ * The version of the OpenAPI document: adapters
14
+ *
15
+ *
16
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
17
+ * https://openapi-generator.tech
18
+ * Do not edit the class manually.
19
+ *
20
+ */
21
+
22
+ /**
23
+ * The ParameterApiResult model module.
24
+ * @module model/ParameterApiResult
25
+ * @version 1.0.0
26
+ */
27
+ class ParameterApiResult {
28
+ /**
29
+ * Constructs a new <code>ParameterApiResult</code>.
30
+ * @alias module:model/ParameterApiResult
31
+ * @param id {String}
32
+ * @param parameterKeyId {String}
33
+ * @param name {String}
34
+ * @param value {String}
35
+ * @param isDeleted {Boolean}
36
+ * @param projectIds {Array.<String>}
37
+ */
38
+ constructor(id, parameterKeyId, name, value, isDeleted, projectIds) {
39
+ ParameterApiResult.initialize(this, id, parameterKeyId, name, value, isDeleted, projectIds);
40
+ }
41
+
42
+ /**
43
+ * Initializes the fields of this object.
44
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
+ * Only for internal use.
46
+ */
47
+ static initialize(obj, id, parameterKeyId, name, value, isDeleted, projectIds) {
48
+ obj['id'] = id;
49
+ obj['parameterKeyId'] = parameterKeyId;
50
+ obj['name'] = name;
51
+ obj['value'] = value;
52
+ obj['isDeleted'] = isDeleted;
53
+ obj['projectIds'] = projectIds;
54
+ }
55
+
56
+ /**
57
+ * Constructs a <code>ParameterApiResult</code> from a plain JavaScript object, optionally creating a new instance.
58
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
59
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
60
+ * @param {module:model/ParameterApiResult} obj Optional instance to populate.
61
+ * @return {module:model/ParameterApiResult} The populated <code>ParameterApiResult</code> instance.
62
+ */
63
+ static constructFromObject(data, obj) {
64
+ if (data) {
65
+ obj = obj || new ParameterApiResult();
66
+ if (data.hasOwnProperty('id')) {
67
+ obj['id'] = _ApiClient.default.convertToType(data['id'], 'String');
68
+ }
69
+ if (data.hasOwnProperty('parameterKeyId')) {
70
+ obj['parameterKeyId'] = _ApiClient.default.convertToType(data['parameterKeyId'], 'String');
71
+ }
72
+ if (data.hasOwnProperty('name')) {
73
+ obj['name'] = _ApiClient.default.convertToType(data['name'], 'String');
74
+ }
75
+ if (data.hasOwnProperty('value')) {
76
+ obj['value'] = _ApiClient.default.convertToType(data['value'], 'String');
77
+ }
78
+ if (data.hasOwnProperty('isDeleted')) {
79
+ obj['isDeleted'] = _ApiClient.default.convertToType(data['isDeleted'], 'Boolean');
80
+ }
81
+ if (data.hasOwnProperty('projectIds')) {
82
+ obj['projectIds'] = _ApiClient.default.convertToType(data['projectIds'], ['String']);
83
+ }
84
+ }
85
+ return obj;
86
+ }
87
+
88
+ /**
89
+ * Validates the JSON data with respect to <code>ParameterApiResult</code>.
90
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
91
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ParameterApiResult</code>.
92
+ */
93
+ static validateJSON(data) {
94
+ // check to make sure all required properties are present in the JSON string
95
+ for (const property of ParameterApiResult.RequiredProperties) {
96
+ if (!data.hasOwnProperty(property)) {
97
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
98
+ }
99
+ }
100
+ // ensure the json data is a string
101
+ if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
102
+ throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
103
+ }
104
+ // ensure the json data is a string
105
+ if (data['parameterKeyId'] && !(typeof data['parameterKeyId'] === 'string' || data['parameterKeyId'] instanceof String)) {
106
+ throw new Error("Expected the field `parameterKeyId` to be a primitive type in the JSON string but got " + data['parameterKeyId']);
107
+ }
108
+ // ensure the json data is a string
109
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
110
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
111
+ }
112
+ // ensure the json data is a string
113
+ if (data['value'] && !(typeof data['value'] === 'string' || data['value'] instanceof String)) {
114
+ throw new Error("Expected the field `value` to be a primitive type in the JSON string but got " + data['value']);
115
+ }
116
+ // ensure the json data is an array
117
+ if (!Array.isArray(data['projectIds'])) {
118
+ throw new Error("Expected the field `projectIds` to be an array in the JSON data but got " + data['projectIds']);
119
+ }
120
+ return true;
121
+ }
122
+ }
123
+ ParameterApiResult.RequiredProperties = ["id", "parameterKeyId", "name", "value", "isDeleted", "projectIds"];
124
+
125
+ /**
126
+ * @member {String} id
127
+ */
128
+ ParameterApiResult.prototype['id'] = undefined;
129
+
130
+ /**
131
+ * @member {String} parameterKeyId
132
+ */
133
+ ParameterApiResult.prototype['parameterKeyId'] = undefined;
134
+
135
+ /**
136
+ * @member {String} name
137
+ */
138
+ ParameterApiResult.prototype['name'] = undefined;
139
+
140
+ /**
141
+ * @member {String} value
142
+ */
143
+ ParameterApiResult.prototype['value'] = undefined;
144
+
145
+ /**
146
+ * @member {Boolean} isDeleted
147
+ */
148
+ ParameterApiResult.prototype['isDeleted'] = undefined;
149
+
150
+ /**
151
+ * @member {Array.<String>} projectIds
152
+ */
153
+ ParameterApiResult.prototype['projectIds'] = undefined;
154
+ var _default = exports.default = ParameterApiResult;
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ /**
10
+ * API
11
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
12
+ *
13
+ * The version of the OpenAPI document: adapters
14
+ *
15
+ *
16
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
17
+ * https://openapi-generator.tech
18
+ * Do not edit the class manually.
19
+ *
20
+ */
21
+
22
+ /**
23
+ * The ParameterIterationModel model module.
24
+ * @module model/ParameterIterationModel
25
+ * @version 1.0.0
26
+ */
27
+ class ParameterIterationModel {
28
+ /**
29
+ * Constructs a new <code>ParameterIterationModel</code>.
30
+ * @alias module:model/ParameterIterationModel
31
+ * @param id {String}
32
+ */
33
+ constructor(id) {
34
+ ParameterIterationModel.initialize(this, id);
35
+ }
36
+
37
+ /**
38
+ * Initializes the fields of this object.
39
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
40
+ * Only for internal use.
41
+ */
42
+ static initialize(obj, id) {
43
+ obj['id'] = id;
44
+ }
45
+
46
+ /**
47
+ * Constructs a <code>ParameterIterationModel</code> from a plain JavaScript object, optionally creating a new instance.
48
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
49
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
50
+ * @param {module:model/ParameterIterationModel} obj Optional instance to populate.
51
+ * @return {module:model/ParameterIterationModel} The populated <code>ParameterIterationModel</code> instance.
52
+ */
53
+ static constructFromObject(data, obj) {
54
+ if (data) {
55
+ obj = obj || new ParameterIterationModel();
56
+ if (data.hasOwnProperty('id')) {
57
+ obj['id'] = _ApiClient.default.convertToType(data['id'], 'String');
58
+ }
59
+ if (data.hasOwnProperty('sharedStepId')) {
60
+ obj['sharedStepId'] = _ApiClient.default.convertToType(data['sharedStepId'], 'String');
61
+ }
62
+ }
63
+ return obj;
64
+ }
65
+
66
+ /**
67
+ * Validates the JSON data with respect to <code>ParameterIterationModel</code>.
68
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
69
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ParameterIterationModel</code>.
70
+ */
71
+ static validateJSON(data) {
72
+ // check to make sure all required properties are present in the JSON string
73
+ for (const property of ParameterIterationModel.RequiredProperties) {
74
+ if (!data.hasOwnProperty(property)) {
75
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
76
+ }
77
+ }
78
+ // ensure the json data is a string
79
+ if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
80
+ throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
81
+ }
82
+ // ensure the json data is a string
83
+ if (data['sharedStepId'] && !(typeof data['sharedStepId'] === 'string' || data['sharedStepId'] instanceof String)) {
84
+ throw new Error("Expected the field `sharedStepId` to be a primitive type in the JSON string but got " + data['sharedStepId']);
85
+ }
86
+ return true;
87
+ }
88
+ }
89
+ ParameterIterationModel.RequiredProperties = ["id"];
90
+
91
+ /**
92
+ * @member {String} id
93
+ */
94
+ ParameterIterationModel.prototype['id'] = undefined;
95
+
96
+ /**
97
+ * @member {String} sharedStepId
98
+ */
99
+ ParameterIterationModel.prototype['sharedStepId'] = undefined;
100
+ var _default = exports.default = ParameterIterationModel;
@@ -0,0 +1,132 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ /**
10
+ * API
11
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
12
+ *
13
+ * The version of the OpenAPI document: adapters
14
+ *
15
+ *
16
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
17
+ * https://openapi-generator.tech
18
+ * Do not edit the class manually.
19
+ *
20
+ */
21
+
22
+ /**
23
+ * The ParameterShortApiResult model module.
24
+ * @module model/ParameterShortApiResult
25
+ * @version 1.0.0
26
+ */
27
+ class ParameterShortApiResult {
28
+ /**
29
+ * Constructs a new <code>ParameterShortApiResult</code>.
30
+ * @alias module:model/ParameterShortApiResult
31
+ * @param id {String}
32
+ * @param parameterKeyId {String}
33
+ * @param value {String} Value of the parameter
34
+ * @param name {String} Key of the parameter
35
+ */
36
+ constructor(id, parameterKeyId, value, name) {
37
+ ParameterShortApiResult.initialize(this, id, parameterKeyId, value, name);
38
+ }
39
+
40
+ /**
41
+ * Initializes the fields of this object.
42
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
43
+ * Only for internal use.
44
+ */
45
+ static initialize(obj, id, parameterKeyId, value, name) {
46
+ obj['id'] = id;
47
+ obj['parameterKeyId'] = parameterKeyId;
48
+ obj['value'] = value;
49
+ obj['name'] = name;
50
+ }
51
+
52
+ /**
53
+ * Constructs a <code>ParameterShortApiResult</code> from a plain JavaScript object, optionally creating a new instance.
54
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
55
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
56
+ * @param {module:model/ParameterShortApiResult} obj Optional instance to populate.
57
+ * @return {module:model/ParameterShortApiResult} The populated <code>ParameterShortApiResult</code> instance.
58
+ */
59
+ static constructFromObject(data, obj) {
60
+ if (data) {
61
+ obj = obj || new ParameterShortApiResult();
62
+ if (data.hasOwnProperty('id')) {
63
+ obj['id'] = _ApiClient.default.convertToType(data['id'], 'String');
64
+ }
65
+ if (data.hasOwnProperty('parameterKeyId')) {
66
+ obj['parameterKeyId'] = _ApiClient.default.convertToType(data['parameterKeyId'], 'String');
67
+ }
68
+ if (data.hasOwnProperty('value')) {
69
+ obj['value'] = _ApiClient.default.convertToType(data['value'], 'String');
70
+ }
71
+ if (data.hasOwnProperty('name')) {
72
+ obj['name'] = _ApiClient.default.convertToType(data['name'], 'String');
73
+ }
74
+ }
75
+ return obj;
76
+ }
77
+
78
+ /**
79
+ * Validates the JSON data with respect to <code>ParameterShortApiResult</code>.
80
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
81
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ParameterShortApiResult</code>.
82
+ */
83
+ static validateJSON(data) {
84
+ // check to make sure all required properties are present in the JSON string
85
+ for (const property of ParameterShortApiResult.RequiredProperties) {
86
+ if (!data.hasOwnProperty(property)) {
87
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
88
+ }
89
+ }
90
+ // ensure the json data is a string
91
+ if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
92
+ throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
93
+ }
94
+ // ensure the json data is a string
95
+ if (data['parameterKeyId'] && !(typeof data['parameterKeyId'] === 'string' || data['parameterKeyId'] instanceof String)) {
96
+ throw new Error("Expected the field `parameterKeyId` to be a primitive type in the JSON string but got " + data['parameterKeyId']);
97
+ }
98
+ // ensure the json data is a string
99
+ if (data['value'] && !(typeof data['value'] === 'string' || data['value'] instanceof String)) {
100
+ throw new Error("Expected the field `value` to be a primitive type in the JSON string but got " + data['value']);
101
+ }
102
+ // ensure the json data is a string
103
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
104
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
105
+ }
106
+ return true;
107
+ }
108
+ }
109
+ ParameterShortApiResult.RequiredProperties = ["id", "parameterKeyId", "value", "name"];
110
+
111
+ /**
112
+ * @member {String} id
113
+ */
114
+ ParameterShortApiResult.prototype['id'] = undefined;
115
+
116
+ /**
117
+ * @member {String} parameterKeyId
118
+ */
119
+ ParameterShortApiResult.prototype['parameterKeyId'] = undefined;
120
+
121
+ /**
122
+ * Value of the parameter
123
+ * @member {String} value
124
+ */
125
+ ParameterShortApiResult.prototype['value'] = undefined;
126
+
127
+ /**
128
+ * Key of the parameter
129
+ * @member {String} name
130
+ */
131
+ ParameterShortApiResult.prototype['name'] = undefined;
132
+ var _default = exports.default = ParameterShortApiResult;