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