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,334 @@
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 _AttachmentPutModel = _interopRequireDefault(require("./AttachmentPutModel"));
9
+ var _AttachmentPutModelAutoTestStepResultsModel = _interopRequireDefault(require("./AttachmentPutModelAutoTestStepResultsModel"));
10
+ var _AvailableTestResultOutcome = _interopRequireDefault(require("./AvailableTestResultOutcome"));
11
+ var _FailureCategoryModel = _interopRequireDefault(require("./FailureCategoryModel"));
12
+ var _LinkPostModel = _interopRequireDefault(require("./LinkPostModel"));
13
+ var _TestStatusType = _interopRequireDefault(require("./TestStatusType"));
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
+ /**
16
+ * API
17
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
18
+ *
19
+ * The version of the OpenAPI document: adapters
20
+ *
21
+ *
22
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
+ * https://openapi-generator.tech
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
+
28
+ /**
29
+ * The AutoTestResultsForTestRunModel model module.
30
+ * @module model/AutoTestResultsForTestRunModel
31
+ * @version 1.0.0
32
+ */
33
+ class AutoTestResultsForTestRunModel {
34
+ /**
35
+ * Constructs a new <code>AutoTestResultsForTestRunModel</code>.
36
+ * @alias module:model/AutoTestResultsForTestRunModel
37
+ * @param configurationId {String} Specifies the GUID of the autotest configuration, which was specified when the test run was created.
38
+ * @param autoTestExternalId {String} Specifies the external ID of the autotest, which was specified when the test run was created.
39
+ */
40
+ constructor(configurationId, autoTestExternalId) {
41
+ AutoTestResultsForTestRunModel.initialize(this, configurationId, autoTestExternalId);
42
+ }
43
+
44
+ /**
45
+ * Initializes the fields of this object.
46
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
47
+ * Only for internal use.
48
+ */
49
+ static initialize(obj, configurationId, autoTestExternalId) {
50
+ obj['configurationId'] = configurationId;
51
+ obj['autoTestExternalId'] = autoTestExternalId;
52
+ }
53
+
54
+ /**
55
+ * Constructs a <code>AutoTestResultsForTestRunModel</code> from a plain JavaScript object, optionally creating a new instance.
56
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
57
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
58
+ * @param {module:model/AutoTestResultsForTestRunModel} obj Optional instance to populate.
59
+ * @return {module:model/AutoTestResultsForTestRunModel} The populated <code>AutoTestResultsForTestRunModel</code> instance.
60
+ */
61
+ static constructFromObject(data, obj) {
62
+ if (data) {
63
+ obj = obj || new AutoTestResultsForTestRunModel();
64
+ if (data.hasOwnProperty('configurationId')) {
65
+ obj['configurationId'] = _ApiClient.default.convertToType(data['configurationId'], 'String');
66
+ }
67
+ if (data.hasOwnProperty('links')) {
68
+ obj['links'] = _ApiClient.default.convertToType(data['links'], [_LinkPostModel.default]);
69
+ }
70
+ if (data.hasOwnProperty('failureReasonNames')) {
71
+ obj['failureReasonNames'] = _ApiClient.default.convertToType(data['failureReasonNames'], [_FailureCategoryModel.default]);
72
+ }
73
+ if (data.hasOwnProperty('autoTestExternalId')) {
74
+ obj['autoTestExternalId'] = _ApiClient.default.convertToType(data['autoTestExternalId'], 'String');
75
+ }
76
+ if (data.hasOwnProperty('outcome')) {
77
+ obj['outcome'] = _ApiClient.default.convertToType(data['outcome'], _AvailableTestResultOutcome.default);
78
+ }
79
+ if (data.hasOwnProperty('statusCode')) {
80
+ obj['statusCode'] = _ApiClient.default.convertToType(data['statusCode'], 'String');
81
+ }
82
+ if (data.hasOwnProperty('statusType')) {
83
+ obj['statusType'] = _ApiClient.default.convertToType(data['statusType'], _TestStatusType.default);
84
+ }
85
+ if (data.hasOwnProperty('message')) {
86
+ obj['message'] = _ApiClient.default.convertToType(data['message'], 'String');
87
+ }
88
+ if (data.hasOwnProperty('traces')) {
89
+ obj['traces'] = _ApiClient.default.convertToType(data['traces'], 'String');
90
+ }
91
+ if (data.hasOwnProperty('startedOn')) {
92
+ obj['startedOn'] = _ApiClient.default.convertToType(data['startedOn'], 'Date');
93
+ }
94
+ if (data.hasOwnProperty('completedOn')) {
95
+ obj['completedOn'] = _ApiClient.default.convertToType(data['completedOn'], 'Date');
96
+ }
97
+ if (data.hasOwnProperty('duration')) {
98
+ obj['duration'] = _ApiClient.default.convertToType(data['duration'], 'Number');
99
+ }
100
+ if (data.hasOwnProperty('attachments')) {
101
+ obj['attachments'] = _ApiClient.default.convertToType(data['attachments'], [_AttachmentPutModel.default]);
102
+ }
103
+ if (data.hasOwnProperty('parameters')) {
104
+ obj['parameters'] = _ApiClient.default.convertToType(data['parameters'], {
105
+ 'String': 'String'
106
+ });
107
+ }
108
+ if (data.hasOwnProperty('properties')) {
109
+ obj['properties'] = _ApiClient.default.convertToType(data['properties'], {
110
+ 'String': 'String'
111
+ });
112
+ }
113
+ if (data.hasOwnProperty('stepResults')) {
114
+ obj['stepResults'] = _ApiClient.default.convertToType(data['stepResults'], [_AttachmentPutModelAutoTestStepResultsModel.default]);
115
+ }
116
+ if (data.hasOwnProperty('setupResults')) {
117
+ obj['setupResults'] = _ApiClient.default.convertToType(data['setupResults'], [_AttachmentPutModelAutoTestStepResultsModel.default]);
118
+ }
119
+ if (data.hasOwnProperty('teardownResults')) {
120
+ obj['teardownResults'] = _ApiClient.default.convertToType(data['teardownResults'], [_AttachmentPutModelAutoTestStepResultsModel.default]);
121
+ }
122
+ }
123
+ return obj;
124
+ }
125
+
126
+ /**
127
+ * Validates the JSON data with respect to <code>AutoTestResultsForTestRunModel</code>.
128
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
129
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>AutoTestResultsForTestRunModel</code>.
130
+ */
131
+ static validateJSON(data) {
132
+ // check to make sure all required properties are present in the JSON string
133
+ for (const property of AutoTestResultsForTestRunModel.RequiredProperties) {
134
+ if (!data.hasOwnProperty(property)) {
135
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
136
+ }
137
+ }
138
+ // ensure the json data is a string
139
+ if (data['configurationId'] && !(typeof data['configurationId'] === 'string' || data['configurationId'] instanceof String)) {
140
+ throw new Error("Expected the field `configurationId` to be a primitive type in the JSON string but got " + data['configurationId']);
141
+ }
142
+ if (data['links']) {
143
+ // data not null
144
+ // ensure the json data is an array
145
+ if (!Array.isArray(data['links'])) {
146
+ throw new Error("Expected the field `links` to be an array in the JSON data but got " + data['links']);
147
+ }
148
+ // validate the optional field `links` (array)
149
+ for (const item of data['links']) {
150
+ _LinkPostModel.default.validateJSON(item);
151
+ }
152
+ ;
153
+ }
154
+ // ensure the json data is an array
155
+ if (!Array.isArray(data['failureReasonNames'])) {
156
+ throw new Error("Expected the field `failureReasonNames` to be an array in the JSON data but got " + data['failureReasonNames']);
157
+ }
158
+ // ensure the json data is a string
159
+ if (data['autoTestExternalId'] && !(typeof data['autoTestExternalId'] === 'string' || data['autoTestExternalId'] instanceof String)) {
160
+ throw new Error("Expected the field `autoTestExternalId` to be a primitive type in the JSON string but got " + data['autoTestExternalId']);
161
+ }
162
+ // ensure the json data is a string
163
+ if (data['statusCode'] && !(typeof data['statusCode'] === 'string' || data['statusCode'] instanceof String)) {
164
+ throw new Error("Expected the field `statusCode` to be a primitive type in the JSON string but got " + data['statusCode']);
165
+ }
166
+ // ensure the json data is a string
167
+ if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
168
+ throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
169
+ }
170
+ // ensure the json data is a string
171
+ if (data['traces'] && !(typeof data['traces'] === 'string' || data['traces'] instanceof String)) {
172
+ throw new Error("Expected the field `traces` to be a primitive type in the JSON string but got " + data['traces']);
173
+ }
174
+ if (data['attachments']) {
175
+ // data not null
176
+ // ensure the json data is an array
177
+ if (!Array.isArray(data['attachments'])) {
178
+ throw new Error("Expected the field `attachments` to be an array in the JSON data but got " + data['attachments']);
179
+ }
180
+ // validate the optional field `attachments` (array)
181
+ for (const item of data['attachments']) {
182
+ _AttachmentPutModel.default.validateJSON(item);
183
+ }
184
+ ;
185
+ }
186
+ if (data['stepResults']) {
187
+ // data not null
188
+ // ensure the json data is an array
189
+ if (!Array.isArray(data['stepResults'])) {
190
+ throw new Error("Expected the field `stepResults` to be an array in the JSON data but got " + data['stepResults']);
191
+ }
192
+ // validate the optional field `stepResults` (array)
193
+ for (const item of data['stepResults']) {
194
+ _AttachmentPutModelAutoTestStepResultsModel.default.validateJSON(item);
195
+ }
196
+ ;
197
+ }
198
+ if (data['setupResults']) {
199
+ // data not null
200
+ // ensure the json data is an array
201
+ if (!Array.isArray(data['setupResults'])) {
202
+ throw new Error("Expected the field `setupResults` to be an array in the JSON data but got " + data['setupResults']);
203
+ }
204
+ // validate the optional field `setupResults` (array)
205
+ for (const item of data['setupResults']) {
206
+ _AttachmentPutModelAutoTestStepResultsModel.default.validateJSON(item);
207
+ }
208
+ ;
209
+ }
210
+ if (data['teardownResults']) {
211
+ // data not null
212
+ // ensure the json data is an array
213
+ if (!Array.isArray(data['teardownResults'])) {
214
+ throw new Error("Expected the field `teardownResults` to be an array in the JSON data but got " + data['teardownResults']);
215
+ }
216
+ // validate the optional field `teardownResults` (array)
217
+ for (const item of data['teardownResults']) {
218
+ _AttachmentPutModelAutoTestStepResultsModel.default.validateJSON(item);
219
+ }
220
+ ;
221
+ }
222
+ return true;
223
+ }
224
+ }
225
+ AutoTestResultsForTestRunModel.RequiredProperties = ["configurationId", "autoTestExternalId"];
226
+
227
+ /**
228
+ * Specifies the GUID of the autotest configuration, which was specified when the test run was created.
229
+ * @member {String} configurationId
230
+ */
231
+ AutoTestResultsForTestRunModel.prototype['configurationId'] = undefined;
232
+
233
+ /**
234
+ * Specifies the links in the autotest.
235
+ * @member {Array.<module:model/LinkPostModel>} links
236
+ */
237
+ AutoTestResultsForTestRunModel.prototype['links'] = undefined;
238
+
239
+ /**
240
+ * Specifies the cause of autotest failure.
241
+ * @member {Array.<module:model/FailureCategoryModel>} failureReasonNames
242
+ */
243
+ AutoTestResultsForTestRunModel.prototype['failureReasonNames'] = undefined;
244
+
245
+ /**
246
+ * Specifies the external ID of the autotest, which was specified when the test run was created.
247
+ * @member {String} autoTestExternalId
248
+ */
249
+ AutoTestResultsForTestRunModel.prototype['autoTestExternalId'] = undefined;
250
+
251
+ /**
252
+ * Specifies the result of the autotest execution.
253
+ * @member {module:model/AvailableTestResultOutcome} outcome
254
+ */
255
+ AutoTestResultsForTestRunModel.prototype['outcome'] = undefined;
256
+
257
+ /**
258
+ * Specifies code of result status of the autotest execution.
259
+ * @member {String} statusCode
260
+ */
261
+ AutoTestResultsForTestRunModel.prototype['statusCode'] = undefined;
262
+
263
+ /**
264
+ * Specifies type of result status of the autotest execution.
265
+ * @member {module:model/TestStatusType} statusType
266
+ */
267
+ AutoTestResultsForTestRunModel.prototype['statusType'] = undefined;
268
+
269
+ /**
270
+ * A comment for the result.
271
+ * @member {String} message
272
+ */
273
+ AutoTestResultsForTestRunModel.prototype['message'] = undefined;
274
+
275
+ /**
276
+ * An extended comment or a stack trace.
277
+ * @member {String} traces
278
+ */
279
+ AutoTestResultsForTestRunModel.prototype['traces'] = undefined;
280
+
281
+ /**
282
+ * Test run start date.
283
+ * @member {Date} startedOn
284
+ */
285
+ AutoTestResultsForTestRunModel.prototype['startedOn'] = undefined;
286
+
287
+ /**
288
+ * Test run end date.
289
+ * @member {Date} completedOn
290
+ */
291
+ AutoTestResultsForTestRunModel.prototype['completedOn'] = undefined;
292
+
293
+ /**
294
+ * Expected or actual duration of the test run execution in milliseconds.
295
+ * @member {Number} duration
296
+ */
297
+ AutoTestResultsForTestRunModel.prototype['duration'] = undefined;
298
+
299
+ /**
300
+ * Specifies an attachment GUID. Multiple values can be sent.
301
+ * @member {Array.<module:model/AttachmentPutModel>} attachments
302
+ */
303
+ AutoTestResultsForTestRunModel.prototype['attachments'] = undefined;
304
+
305
+ /**
306
+ * \"<b>parameter</b>\": \"<b>value</b>\" pair with arbitrary custom parameters. Multiple parameters can be sent.
307
+ * @member {Object.<String, String>} parameters
308
+ */
309
+ AutoTestResultsForTestRunModel.prototype['parameters'] = undefined;
310
+
311
+ /**
312
+ * \"<b>property</b>\": \"<b>value</b>\" pair with arbitrary custom properties. Multiple properties can be sent.
313
+ * @member {Object.<String, String>} properties
314
+ */
315
+ AutoTestResultsForTestRunModel.prototype['properties'] = undefined;
316
+
317
+ /**
318
+ * Specifies the results of individual steps.
319
+ * @member {Array.<module:model/AttachmentPutModelAutoTestStepResultsModel>} stepResults
320
+ */
321
+ AutoTestResultsForTestRunModel.prototype['stepResults'] = undefined;
322
+
323
+ /**
324
+ * Specifies the results of setup steps. For information on supported values, see the `stepResults` parameter above.
325
+ * @member {Array.<module:model/AttachmentPutModelAutoTestStepResultsModel>} setupResults
326
+ */
327
+ AutoTestResultsForTestRunModel.prototype['setupResults'] = undefined;
328
+
329
+ /**
330
+ * Specifies the results of the teardown steps. For information on supported values, see the `stepResults` parameter above.
331
+ * @member {Array.<module:model/AttachmentPutModelAutoTestStepResultsModel>} teardownResults
332
+ */
333
+ AutoTestResultsForTestRunModel.prototype['teardownResults'] = undefined;
334
+ var _default = exports.default = AutoTestResultsForTestRunModel;
@@ -0,0 +1,96 @@
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 _AutoTestFilterApiModel = _interopRequireDefault(require("./AutoTestFilterApiModel"));
9
+ var _AutoTestSearchIncludeApiModel = _interopRequireDefault(require("./AutoTestSearchIncludeApiModel"));
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ /**
12
+ * API
13
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
14
+ *
15
+ * The version of the OpenAPI document: adapters
16
+ *
17
+ *
18
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
19
+ * https://openapi-generator.tech
20
+ * Do not edit the class manually.
21
+ *
22
+ */
23
+
24
+ /**
25
+ * The AutoTestSearchApiModel model module.
26
+ * @module model/AutoTestSearchApiModel
27
+ * @version 1.0.0
28
+ */
29
+ class AutoTestSearchApiModel {
30
+ /**
31
+ * Constructs a new <code>AutoTestSearchApiModel</code>.
32
+ * @alias module:model/AutoTestSearchApiModel
33
+ */
34
+ constructor() {
35
+ AutoTestSearchApiModel.initialize(this);
36
+ }
37
+
38
+ /**
39
+ * Initializes the fields of this object.
40
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
41
+ * Only for internal use.
42
+ */
43
+ static initialize(obj) {}
44
+
45
+ /**
46
+ * Constructs a <code>AutoTestSearchApiModel</code> from a plain JavaScript object, optionally creating a new instance.
47
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
48
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
49
+ * @param {module:model/AutoTestSearchApiModel} obj Optional instance to populate.
50
+ * @return {module:model/AutoTestSearchApiModel} The populated <code>AutoTestSearchApiModel</code> instance.
51
+ */
52
+ static constructFromObject(data, obj) {
53
+ if (data) {
54
+ obj = obj || new AutoTestSearchApiModel();
55
+ if (data.hasOwnProperty('filter')) {
56
+ obj['filter'] = _ApiClient.default.convertToType(data['filter'], _AutoTestFilterApiModel.default);
57
+ }
58
+ if (data.hasOwnProperty('includes')) {
59
+ obj['includes'] = _ApiClient.default.convertToType(data['includes'], _AutoTestSearchIncludeApiModel.default);
60
+ }
61
+ }
62
+ return obj;
63
+ }
64
+
65
+ /**
66
+ * Validates the JSON data with respect to <code>AutoTestSearchApiModel</code>.
67
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
68
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>AutoTestSearchApiModel</code>.
69
+ */
70
+ static validateJSON(data) {
71
+ // validate the optional field `filter`
72
+ if (data['filter']) {
73
+ // data not null
74
+ _AutoTestFilterApiModel.default.validateJSON(data['filter']);
75
+ }
76
+ // validate the optional field `includes`
77
+ if (data['includes']) {
78
+ // data not null
79
+ _AutoTestSearchIncludeApiModel.default.validateJSON(data['includes']);
80
+ }
81
+ return true;
82
+ }
83
+ }
84
+
85
+ /**
86
+ * Object containing different filters to adjust search
87
+ * @member {module:model/AutoTestFilterApiModel} filter
88
+ */
89
+ AutoTestSearchApiModel.prototype['filter'] = undefined;
90
+
91
+ /**
92
+ * Object specifying data to be included
93
+ * @member {module:model/AutoTestSearchIncludeApiModel} includes
94
+ */
95
+ AutoTestSearchApiModel.prototype['includes'] = undefined;
96
+ var _default = exports.default = AutoTestSearchApiModel;
@@ -0,0 +1,93 @@
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 AutoTestSearchIncludeApiModel model module.
24
+ * @module model/AutoTestSearchIncludeApiModel
25
+ * @version 1.0.0
26
+ */
27
+ class AutoTestSearchIncludeApiModel {
28
+ /**
29
+ * Constructs a new <code>AutoTestSearchIncludeApiModel</code>.
30
+ * @alias module:model/AutoTestSearchIncludeApiModel
31
+ */
32
+ constructor() {
33
+ AutoTestSearchIncludeApiModel.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>AutoTestSearchIncludeApiModel</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/AutoTestSearchIncludeApiModel} obj Optional instance to populate.
48
+ * @return {module:model/AutoTestSearchIncludeApiModel} The populated <code>AutoTestSearchIncludeApiModel</code> instance.
49
+ */
50
+ static constructFromObject(data, obj) {
51
+ if (data) {
52
+ obj = obj || new AutoTestSearchIncludeApiModel();
53
+ if (data.hasOwnProperty('includeSteps')) {
54
+ obj['includeSteps'] = _ApiClient.default.convertToType(data['includeSteps'], 'Boolean');
55
+ }
56
+ if (data.hasOwnProperty('includeLinks')) {
57
+ obj['includeLinks'] = _ApiClient.default.convertToType(data['includeLinks'], 'Boolean');
58
+ }
59
+ if (data.hasOwnProperty('includeLabels')) {
60
+ obj['includeLabels'] = _ApiClient.default.convertToType(data['includeLabels'], 'Boolean');
61
+ }
62
+ }
63
+ return obj;
64
+ }
65
+
66
+ /**
67
+ * Validates the JSON data with respect to <code>AutoTestSearchIncludeApiModel</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>AutoTestSearchIncludeApiModel</code>.
70
+ */
71
+ static validateJSON(data) {
72
+ return true;
73
+ }
74
+ }
75
+
76
+ /**
77
+ * If autotest steps will be included
78
+ * @member {Boolean} includeSteps
79
+ */
80
+ AutoTestSearchIncludeApiModel.prototype['includeSteps'] = undefined;
81
+
82
+ /**
83
+ * If autotest links will be included
84
+ * @member {Boolean} includeLinks
85
+ */
86
+ AutoTestSearchIncludeApiModel.prototype['includeLinks'] = undefined;
87
+
88
+ /**
89
+ * If autotest labels will be included
90
+ * @member {Boolean} includeLabels
91
+ */
92
+ AutoTestSearchIncludeApiModel.prototype['includeLabels'] = undefined;
93
+ var _default = exports.default = AutoTestSearchIncludeApiModel;
@@ -0,0 +1,123 @@
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 AutoTestStep model module.
24
+ * @module model/AutoTestStep
25
+ * @version 1.0.0
26
+ */
27
+ class AutoTestStep {
28
+ /**
29
+ * Constructs a new <code>AutoTestStep</code>.
30
+ * @alias module:model/AutoTestStep
31
+ * @param title {String} Step name.
32
+ */
33
+ constructor(title) {
34
+ AutoTestStep.initialize(this, title);
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, title) {
43
+ obj['title'] = title;
44
+ }
45
+
46
+ /**
47
+ * Constructs a <code>AutoTestStep</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/AutoTestStep} obj Optional instance to populate.
51
+ * @return {module:model/AutoTestStep} The populated <code>AutoTestStep</code> instance.
52
+ */
53
+ static constructFromObject(data, obj) {
54
+ if (data) {
55
+ obj = obj || new AutoTestStep();
56
+ if (data.hasOwnProperty('title')) {
57
+ obj['title'] = _ApiClient.default.convertToType(data['title'], 'String');
58
+ }
59
+ if (data.hasOwnProperty('description')) {
60
+ obj['description'] = _ApiClient.default.convertToType(data['description'], 'String');
61
+ }
62
+ if (data.hasOwnProperty('steps')) {
63
+ obj['steps'] = _ApiClient.default.convertToType(data['steps'], [AutoTestStep]);
64
+ }
65
+ }
66
+ return obj;
67
+ }
68
+
69
+ /**
70
+ * Validates the JSON data with respect to <code>AutoTestStep</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>AutoTestStep</code>.
73
+ */
74
+ static validateJSON(data) {
75
+ // check to make sure all required properties are present in the JSON string
76
+ for (const property of AutoTestStep.RequiredProperties) {
77
+ if (!data.hasOwnProperty(property)) {
78
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
79
+ }
80
+ }
81
+ // ensure the json data is a string
82
+ if (data['title'] && !(typeof data['title'] === 'string' || data['title'] instanceof String)) {
83
+ throw new Error("Expected the field `title` to be a primitive type in the JSON string but got " + data['title']);
84
+ }
85
+ // ensure the json data is a string
86
+ if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
87
+ throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
88
+ }
89
+ if (data['steps']) {
90
+ // data not null
91
+ // ensure the json data is an array
92
+ if (!Array.isArray(data['steps'])) {
93
+ throw new Error("Expected the field `steps` to be an array in the JSON data but got " + data['steps']);
94
+ }
95
+ // validate the optional field `steps` (array)
96
+ for (const item of data['steps']) {
97
+ AutoTestStep.validateJSON(item);
98
+ }
99
+ ;
100
+ }
101
+ return true;
102
+ }
103
+ }
104
+ AutoTestStep.RequiredProperties = ["title"];
105
+
106
+ /**
107
+ * Step name.
108
+ * @member {String} title
109
+ */
110
+ AutoTestStep.prototype['title'] = undefined;
111
+
112
+ /**
113
+ * Detailed step description. It appears when the step is unfolded.
114
+ * @member {String} description
115
+ */
116
+ AutoTestStep.prototype['description'] = undefined;
117
+
118
+ /**
119
+ * Includes a nested step inside another step. The maximum nesting level is 15.
120
+ * @member {Array.<module:model/AutoTestStep>} steps
121
+ */
122
+ AutoTestStep.prototype['steps'] = undefined;
123
+ var _default = exports.default = AutoTestStep;