testit-js-commons 5.0.8-TMS-5.8 → 5.0.9
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 +6 -5
- package/lib/adapters-api/dist/api/AttachmentsApi.js +5 -5
- package/lib/adapters-api/dist/api/AutoTestsApi.js +11 -11
- package/lib/adapters-api/dist/api/ConfigurationsApi.js +1 -1
- package/lib/adapters-api/dist/api/CustomAttributesApi.js +201 -0
- package/lib/adapters-api/dist/api/ParametersApi.js +3 -3
- package/lib/adapters-api/dist/api/ProjectAttributesApi.js +6 -6
- package/lib/adapters-api/dist/api/ProjectSectionsApi.js +1 -1
- package/lib/adapters-api/dist/api/ProjectWorkItemsApi.js +1 -1
- package/lib/adapters-api/dist/api/ProjectsApi.js +4 -4
- package/lib/adapters-api/dist/api/SectionsApi.js +2 -2
- package/lib/adapters-api/dist/api/TestResultsApi.js +3 -3
- package/lib/adapters-api/dist/api/TestRunsApi.js +8 -8
- package/lib/adapters-api/dist/api/WorkItemsApi.js +3 -3
- package/lib/adapters-api/dist/api/WorkflowsApi.js +1 -1
- package/lib/adapters-api/dist/index.js +80 -3
- package/lib/adapters-api/dist/model/AttachmentPutModelAutoTestStepResultsModel.js +1 -1
- package/lib/adapters-api/dist/model/AutoTestApiResult.js +15 -0
- package/lib/adapters-api/dist/model/AutoTestCreateApiModel.js +15 -0
- package/lib/adapters-api/dist/model/AutoTestStepResult.js +1 -1
- package/lib/adapters-api/dist/model/AutoTestStepResultUpdateRequest.js +1 -1
- package/lib/adapters-api/dist/model/AutoTestUpdateApiModel.js +30 -4
- package/lib/adapters-api/dist/model/CreateEmptyTestRunApiModel.js +2 -2
- package/lib/adapters-api/dist/model/CustomAttributeApiResult.js +56 -6
- package/lib/adapters-api/dist/model/{CustomAttributeGetModel.js → CustomAttributeModel.js} +89 -39
- package/lib/adapters-api/dist/model/CustomAttributeOptionPostApiModel.js +98 -0
- package/lib/adapters-api/dist/model/CustomAttributeOptionUpdateApiModel.js +124 -0
- package/lib/adapters-api/dist/model/CustomAttributePutModel.js +1 -1
- package/lib/adapters-api/dist/model/CustomAttributeSearchApiModel.js +137 -0
- package/lib/adapters-api/dist/model/CustomAttributeSearchApiResult.js +281 -0
- package/lib/adapters-api/dist/model/GlobalCustomAttributePostApiModel.js +141 -0
- package/lib/adapters-api/dist/model/GlobalCustomAttributeUpdateApiModel.js +129 -0
- package/lib/adapters-api/dist/model/LabelApiModel.js +4 -15
- package/lib/adapters-api/dist/model/LayerApiModel.js +102 -0
- package/lib/adapters-api/dist/model/LayerApiResult.js +102 -0
- package/lib/adapters-api/dist/model/LayerSource.js +61 -0
- package/lib/adapters-api/dist/model/ProjectShortestApiResult.js +138 -0
- package/lib/adapters-api/dist/model/ProjectsFilterModel.js +13 -13
- package/lib/adapters-api/dist/model/TestResultResponse.js +18 -4
- package/lib/adapters-api/dist/model/TestResultShortResponse.js +15 -4
- package/lib/adapters-api/dist/model/TestResultsFilterApiModel.js +14 -0
- package/lib/adapters-api/dist/model/TestRunApiResult.js +45 -4
- package/lib/adapters-api/dist/model/UpdateEmptyTestRunApiModel.js +1 -1
- package/lib/adapters-api/index.d.ts +758 -204
- package/lib/common/index.d.ts +1 -0
- package/lib/common/index.js +1 -0
- package/lib/common/test-layers.d.ts +11 -0
- package/lib/common/test-layers.js +13 -0
- package/lib/common/types/common.type.d.ts +6 -0
- package/lib/common/utils/tms-load-test-run-debug.d.ts +2 -0
- package/lib/common/utils/tms-load-test-run-debug.js +6 -0
- package/lib/helpers/config/config.helper.js +1 -1
- package/lib/services/autotests/autotests.converter.d.ts +6 -2
- package/lib/services/autotests/autotests.converter.js +41 -16
- package/lib/services/autotests/autotests.converter.test.d.ts +1 -0
- package/lib/services/autotests/autotests.converter.test.js +39 -0
- package/lib/services/autotests/autotests.service.js +3 -3
- package/lib/services/autotests/autotests.type.d.ts +2 -0
- package/lib/services/syncstorage/syncstorage.runner.js +6 -5
- package/lib/services/syncstorage/syncstorage.runner.test.js +16 -0
- package/lib/services/testruns/testruns.handler.d.ts +2 -2
- package/lib/services/testruns/testruns.handler.js +12 -2
- package/lib/services/testruns/testruns.service.js +21 -6
- package/lib/services/testruns/testruns.service.test.js +0 -43
- package/lib/sync-storage/dist/ApiClient.js +3 -0
- package/package.json +1 -1
|
@@ -34,14 +34,15 @@ class TestRunApiResult {
|
|
|
34
34
|
* @alias module:model/TestRunApiResult
|
|
35
35
|
* @param id {String} Test run unique identifier
|
|
36
36
|
* @param name {String} Test run name
|
|
37
|
+
* @param projectId {String} Project unique identifier This property is used to link test run with project.
|
|
37
38
|
* @param stateName {module:model/TestRunState} Test run state
|
|
38
39
|
* @param status {module:model/TestStatusApiResult} Test run status
|
|
39
40
|
* @param attachments {Array.<module:model/AttachmentApiResult>} Collection of attachments related to the test run
|
|
40
41
|
* @param links {Array.<module:model/LinkApiResult>} Collection of links related to the test run
|
|
41
42
|
* @param tags {Array.<String>} Collection of tags associated with the test run
|
|
42
43
|
*/
|
|
43
|
-
constructor(id, name, stateName, status, attachments, links, tags) {
|
|
44
|
-
TestRunApiResult.initialize(this, id, name, stateName, status, attachments, links, tags);
|
|
44
|
+
constructor(id, name, projectId, stateName, status, attachments, links, tags) {
|
|
45
|
+
TestRunApiResult.initialize(this, id, name, projectId, stateName, status, attachments, links, tags);
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
/**
|
|
@@ -49,9 +50,10 @@ class TestRunApiResult {
|
|
|
49
50
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
50
51
|
* Only for internal use.
|
|
51
52
|
*/
|
|
52
|
-
static initialize(obj, id, name, stateName, status, attachments, links, tags) {
|
|
53
|
+
static initialize(obj, id, name, projectId, stateName, status, attachments, links, tags) {
|
|
53
54
|
obj['id'] = id;
|
|
54
55
|
obj['name'] = name;
|
|
56
|
+
obj['projectId'] = projectId;
|
|
55
57
|
obj['stateName'] = stateName;
|
|
56
58
|
obj['status'] = status;
|
|
57
59
|
obj['attachments'] = attachments;
|
|
@@ -75,6 +77,15 @@ class TestRunApiResult {
|
|
|
75
77
|
if (data.hasOwnProperty('name')) {
|
|
76
78
|
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String');
|
|
77
79
|
}
|
|
80
|
+
if (data.hasOwnProperty('description')) {
|
|
81
|
+
obj['description'] = _ApiClient.default.convertToType(data['description'], 'String');
|
|
82
|
+
}
|
|
83
|
+
if (data.hasOwnProperty('launchSource')) {
|
|
84
|
+
obj['launchSource'] = _ApiClient.default.convertToType(data['launchSource'], 'String');
|
|
85
|
+
}
|
|
86
|
+
if (data.hasOwnProperty('projectId')) {
|
|
87
|
+
obj['projectId'] = _ApiClient.default.convertToType(data['projectId'], 'String');
|
|
88
|
+
}
|
|
78
89
|
if (data.hasOwnProperty('stateName')) {
|
|
79
90
|
obj['stateName'] = _ApiClient.default.convertToType(data['stateName'], _TestRunState.default);
|
|
80
91
|
}
|
|
@@ -114,6 +125,18 @@ class TestRunApiResult {
|
|
|
114
125
|
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
115
126
|
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
116
127
|
}
|
|
128
|
+
// ensure the json data is a string
|
|
129
|
+
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
130
|
+
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
|
131
|
+
}
|
|
132
|
+
// ensure the json data is a string
|
|
133
|
+
if (data['launchSource'] && !(typeof data['launchSource'] === 'string' || data['launchSource'] instanceof String)) {
|
|
134
|
+
throw new Error("Expected the field `launchSource` to be a primitive type in the JSON string but got " + data['launchSource']);
|
|
135
|
+
}
|
|
136
|
+
// ensure the json data is a string
|
|
137
|
+
if (data['projectId'] && !(typeof data['projectId'] === 'string' || data['projectId'] instanceof String)) {
|
|
138
|
+
throw new Error("Expected the field `projectId` to be a primitive type in the JSON string but got " + data['projectId']);
|
|
139
|
+
}
|
|
117
140
|
// validate the optional field `status`
|
|
118
141
|
if (data['status']) {
|
|
119
142
|
// data not null
|
|
@@ -150,7 +173,7 @@ class TestRunApiResult {
|
|
|
150
173
|
return true;
|
|
151
174
|
}
|
|
152
175
|
}
|
|
153
|
-
TestRunApiResult.RequiredProperties = ["id", "name", "stateName", "status", "attachments", "links", "tags"];
|
|
176
|
+
TestRunApiResult.RequiredProperties = ["id", "name", "projectId", "stateName", "status", "attachments", "links", "tags"];
|
|
154
177
|
|
|
155
178
|
/**
|
|
156
179
|
* Test run unique identifier
|
|
@@ -164,6 +187,24 @@ TestRunApiResult.prototype['id'] = undefined;
|
|
|
164
187
|
*/
|
|
165
188
|
TestRunApiResult.prototype['name'] = undefined;
|
|
166
189
|
|
|
190
|
+
/**
|
|
191
|
+
* Test run description
|
|
192
|
+
* @member {String} description
|
|
193
|
+
*/
|
|
194
|
+
TestRunApiResult.prototype['description'] = undefined;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Test run launch source Once launch source is specified it cannot be updated.
|
|
198
|
+
* @member {String} launchSource
|
|
199
|
+
*/
|
|
200
|
+
TestRunApiResult.prototype['launchSource'] = undefined;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Project unique identifier This property is used to link test run with project.
|
|
204
|
+
* @member {String} projectId
|
|
205
|
+
*/
|
|
206
|
+
TestRunApiResult.prototype['projectId'] = undefined;
|
|
207
|
+
|
|
167
208
|
/**
|
|
168
209
|
* Test run state
|
|
169
210
|
* @member {module:model/TestRunState} stateName
|
|
@@ -162,7 +162,7 @@ UpdateEmptyTestRunApiModel.prototype['name'] = undefined;
|
|
|
162
162
|
UpdateEmptyTestRunApiModel.prototype['description'] = undefined;
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
|
-
* Test run launch source
|
|
165
|
+
* Test run launch source Once launch source is specified it cannot be updated
|
|
166
166
|
* @member {String} launchSource
|
|
167
167
|
*/
|
|
168
168
|
UpdateEmptyTestRunApiModel.prototype['launchSource'] = undefined;
|