testit-js-commons 5.1.0-TMS-6.0 → 5.1.1
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 +118 -10
- package/lib/adapters-api/dist/api/ConfigurationsApi.js +1 -1
- package/lib/adapters-api/dist/api/CustomAttributesApi.js +4 -4
- package/lib/adapters-api/dist/api/ParametersApi.js +3 -3
- package/lib/adapters-api/dist/api/ProjectAttributesApi.js +2 -2
- 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 +0 -7
- package/lib/adapters-api/dist/model/AutoTestFilterApiModel.js +0 -27
- package/lib/adapters-api/dist/model/AutoTestModel.js +0 -15
- package/lib/adapters-api/dist/model/AutoTestUpdateApiModel.js +6 -4
- package/lib/adapters-api/dist/model/CreateWorkItemApiModel.js +0 -22
- package/lib/adapters-api/dist/model/CustomAttributeType.js +0 -6
- package/lib/adapters-api/dist/model/CustomAttributeTypesEnum.js +0 -6
- package/lib/adapters-api/dist/model/WorkItemApiResult.js +4 -28
- package/lib/adapters-api/dist/model/WorkItemEntityTypeApiModel.js +0 -6
- package/lib/adapters-api/dist/model/WorkItemFilterApiModel.js +0 -40
- package/lib/adapters-api/dist/model/WorkItemTypeModel.js +0 -6
- package/lib/adapters-api/index.d.ts +96 -85
- package/lib/common/base.service.js +1 -4
- 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/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 +7 -2
- package/lib/adapters-api/dist/model/AutoTestCaseModel.js +0 -85
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var _AutoTestCaseModel = _interopRequireDefault(require("./AutoTestCaseModel"));
|
|
9
8
|
var _AutoTestStepModel = _interopRequireDefault(require("./AutoTestStepModel"));
|
|
10
9
|
var _ConfigurationShortModel = _interopRequireDefault(require("./ConfigurationShortModel"));
|
|
11
10
|
var _LabelShortModel = _interopRequireDefault(require("./LabelShortModel"));
|
|
@@ -120,9 +119,6 @@ class AutoTestModel {
|
|
|
120
119
|
if (data.hasOwnProperty('stabilityPercentage')) {
|
|
121
120
|
obj['stabilityPercentage'] = _ApiClient.default.convertToType(data['stabilityPercentage'], 'Number');
|
|
122
121
|
}
|
|
123
|
-
if (data.hasOwnProperty('autoTestCase')) {
|
|
124
|
-
obj['autoTestCase'] = _ApiClient.default.convertToType(data['autoTestCase'], _AutoTestCaseModel.default);
|
|
125
|
-
}
|
|
126
122
|
if (data.hasOwnProperty('externalId')) {
|
|
127
123
|
obj['externalId'] = _ApiClient.default.convertToType(data['externalId'], 'String');
|
|
128
124
|
}
|
|
@@ -219,11 +215,6 @@ class AutoTestModel {
|
|
|
219
215
|
// data not null
|
|
220
216
|
_TestStatusModel.default.validateJSON(data['lastTestResultStatus']);
|
|
221
217
|
}
|
|
222
|
-
// validate the optional field `autoTestCase`
|
|
223
|
-
if (data['autoTestCase']) {
|
|
224
|
-
// data not null
|
|
225
|
-
_AutoTestCaseModel.default.validateJSON(data['autoTestCase']);
|
|
226
|
-
}
|
|
227
218
|
// ensure the json data is a string
|
|
228
219
|
if (data['externalId'] && !(typeof data['externalId'] === 'string' || data['externalId'] instanceof String)) {
|
|
229
220
|
throw new Error("Expected the field `externalId` to be a primitive type in the JSON string but got " + data['externalId']);
|
|
@@ -411,12 +402,6 @@ AutoTestModel.prototype['lastTestResultStatus'] = undefined;
|
|
|
411
402
|
*/
|
|
412
403
|
AutoTestModel.prototype['stabilityPercentage'] = undefined;
|
|
413
404
|
|
|
414
|
-
/**
|
|
415
|
-
* Auto test case linked with the autotest
|
|
416
|
-
* @member {module:model/AutoTestCaseModel} autoTestCase
|
|
417
|
-
*/
|
|
418
|
-
AutoTestModel.prototype['autoTestCase'] = undefined;
|
|
419
|
-
|
|
420
405
|
/**
|
|
421
406
|
* External ID of the autotest
|
|
422
407
|
* @member {String} externalId
|
|
@@ -35,9 +35,10 @@ class AutoTestUpdateApiModel {
|
|
|
35
35
|
* @param projectId {String} Unique ID of the autotest project
|
|
36
36
|
* @param externalId {String} External ID of the autotest
|
|
37
37
|
* @param name {String} Name of the autotest
|
|
38
|
+
* @param resetLayer {Boolean} Indicates if the autotest layer should be reset.
|
|
38
39
|
*/
|
|
39
|
-
constructor(projectId, externalId, name) {
|
|
40
|
-
AutoTestUpdateApiModel.initialize(this, projectId, externalId, name);
|
|
40
|
+
constructor(projectId, externalId, name, resetLayer) {
|
|
41
|
+
AutoTestUpdateApiModel.initialize(this, projectId, externalId, name, resetLayer);
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
/**
|
|
@@ -45,10 +46,11 @@ class AutoTestUpdateApiModel {
|
|
|
45
46
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
46
47
|
* Only for internal use.
|
|
47
48
|
*/
|
|
48
|
-
static initialize(obj, projectId, externalId, name) {
|
|
49
|
+
static initialize(obj, projectId, externalId, name, resetLayer) {
|
|
49
50
|
obj['projectId'] = projectId;
|
|
50
51
|
obj['externalId'] = externalId;
|
|
51
52
|
obj['name'] = name;
|
|
53
|
+
obj['resetLayer'] = resetLayer;
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
/**
|
|
@@ -239,7 +241,7 @@ class AutoTestUpdateApiModel {
|
|
|
239
241
|
return true;
|
|
240
242
|
}
|
|
241
243
|
}
|
|
242
|
-
AutoTestUpdateApiModel.RequiredProperties = ["projectId", "externalId", "name"];
|
|
244
|
+
AutoTestUpdateApiModel.RequiredProperties = ["projectId", "externalId", "name", "resetLayer"];
|
|
243
245
|
|
|
244
246
|
/**
|
|
245
247
|
* Autotest unique internal identifier
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _AssignAttachmentApiModel = _interopRequireDefault(require("./AssignAttachmentApiModel"));
|
|
9
|
-
var _AssignAutoTestCaseIdApiModel = _interopRequireDefault(require("./AssignAutoTestCaseIdApiModel"));
|
|
10
9
|
var _AssignIterationApiModel = _interopRequireDefault(require("./AssignIterationApiModel"));
|
|
11
10
|
var _AutoTestIdModel = _interopRequireDefault(require("./AutoTestIdModel"));
|
|
12
11
|
var _CreateLinkApiModel = _interopRequireDefault(require("./CreateLinkApiModel"));
|
|
@@ -121,9 +120,6 @@ class CreateWorkItemApiModel {
|
|
|
121
120
|
if (data.hasOwnProperty('autoTests')) {
|
|
122
121
|
obj['autoTests'] = _ApiClient.default.convertToType(data['autoTests'], [_AutoTestIdModel.default]);
|
|
123
122
|
}
|
|
124
|
-
if (data.hasOwnProperty('autoTestCases')) {
|
|
125
|
-
obj['autoTestCases'] = _ApiClient.default.convertToType(data['autoTestCases'], [_AssignAutoTestCaseIdApiModel.default]);
|
|
126
|
-
}
|
|
127
123
|
if (data.hasOwnProperty('attachments')) {
|
|
128
124
|
obj['attachments'] = _ApiClient.default.convertToType(data['attachments'], [_AssignAttachmentApiModel.default]);
|
|
129
125
|
}
|
|
@@ -237,18 +233,6 @@ class CreateWorkItemApiModel {
|
|
|
237
233
|
}
|
|
238
234
|
;
|
|
239
235
|
}
|
|
240
|
-
if (data['autoTestCases']) {
|
|
241
|
-
// data not null
|
|
242
|
-
// ensure the json data is an array
|
|
243
|
-
if (!Array.isArray(data['autoTestCases'])) {
|
|
244
|
-
throw new Error("Expected the field `autoTestCases` to be an array in the JSON data but got " + data['autoTestCases']);
|
|
245
|
-
}
|
|
246
|
-
// validate the optional field `autoTestCases` (array)
|
|
247
|
-
for (const item of data['autoTestCases']) {
|
|
248
|
-
_AssignAutoTestCaseIdApiModel.default.validateJSON(item);
|
|
249
|
-
}
|
|
250
|
-
;
|
|
251
|
-
}
|
|
252
236
|
if (data['attachments']) {
|
|
253
237
|
// data not null
|
|
254
238
|
// ensure the json data is an array
|
|
@@ -380,12 +364,6 @@ CreateWorkItemApiModel.prototype['iterations'] = undefined;
|
|
|
380
364
|
*/
|
|
381
365
|
CreateWorkItemApiModel.prototype['autoTests'] = undefined;
|
|
382
366
|
|
|
383
|
-
/**
|
|
384
|
-
* Set of automated test cases linked to the work item
|
|
385
|
-
* @member {Array.<module:model/AssignAutoTestCaseIdApiModel>} autoTestCases
|
|
386
|
-
*/
|
|
387
|
-
CreateWorkItemApiModel.prototype['autoTestCases'] = undefined;
|
|
388
|
-
|
|
389
367
|
/**
|
|
390
368
|
* Set of files attached to the work item
|
|
391
369
|
* @member {Array.<module:model/AssignAttachmentApiModel>} attachments
|
|
@@ -61,12 +61,6 @@ class CustomAttributeType {
|
|
|
61
61
|
*/
|
|
62
62
|
"checkbox" = "checkbox";
|
|
63
63
|
|
|
64
|
-
/**
|
|
65
|
-
* value: "numeric"
|
|
66
|
-
* @const
|
|
67
|
-
*/
|
|
68
|
-
"numeric" = "numeric";
|
|
69
|
-
|
|
70
64
|
/**
|
|
71
65
|
* Returns a <code>CustomAttributeType</code> enum value from a Javascript object name.
|
|
72
66
|
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
@@ -61,12 +61,6 @@ class CustomAttributeTypesEnum {
|
|
|
61
61
|
*/
|
|
62
62
|
"checkbox" = "checkbox";
|
|
63
63
|
|
|
64
|
-
/**
|
|
65
|
-
* value: "numeric"
|
|
66
|
-
* @const
|
|
67
|
-
*/
|
|
68
|
-
"numeric" = "numeric";
|
|
69
|
-
|
|
70
64
|
/**
|
|
71
65
|
* Returns a <code>CustomAttributeTypesEnum</code> enum value from a Javascript object name.
|
|
72
66
|
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _AttachmentModel = _interopRequireDefault(require("./AttachmentModel"));
|
|
9
|
-
var _AutoTestCaseApiModel = _interopRequireDefault(require("./AutoTestCaseApiModel"));
|
|
10
9
|
var _AutoTestModel = _interopRequireDefault(require("./AutoTestModel"));
|
|
11
10
|
var _IterationModel = _interopRequireDefault(require("./IterationModel"));
|
|
12
11
|
var _LinkModel = _interopRequireDefault(require("./LinkModel"));
|
|
@@ -58,14 +57,13 @@ class WorkItemApiResult {
|
|
|
58
57
|
* @param postconditionSteps {Array.<module:model/StepModel>} Set of postcondition steps that are executed after completing the main steps
|
|
59
58
|
* @param iterations {Array.<module:model/IterationModel>} Associated iterations linked to the work item
|
|
60
59
|
* @param autoTests {Array.<module:model/AutoTestModel>} Automated tests associated with the work item
|
|
61
|
-
* @param autoTestCases {Array.<module:model/AutoTestCaseApiModel>} Set of automated test cases linked to the work item
|
|
62
60
|
* @param attachments {Array.<module:model/AttachmentModel>} Files attached to the work item
|
|
63
61
|
* @param links {Array.<module:model/LinkModel>} Set of links related to the work item
|
|
64
62
|
* @param parameters {Array.<module:model/WorkItemParameterKeyApiResult>} Set of parameters related to the work item
|
|
65
63
|
* @param isDeleted {Boolean} Indicates whether the work item is marked as deleted
|
|
66
64
|
*/
|
|
67
|
-
constructor(id, globalId, projectId, sectionId, name, entityTypeName, duration, state, priority, isAutomated, attributes, tags, sectionPreconditionSteps, sectionPostconditionSteps, preconditionSteps, steps, postconditionSteps, iterations, autoTests,
|
|
68
|
-
WorkItemApiResult.initialize(this, id, globalId, projectId, sectionId, name, entityTypeName, duration, state, priority, isAutomated, attributes, tags, sectionPreconditionSteps, sectionPostconditionSteps, preconditionSteps, steps, postconditionSteps, iterations, autoTests,
|
|
65
|
+
constructor(id, globalId, projectId, sectionId, name, entityTypeName, duration, state, priority, isAutomated, attributes, tags, sectionPreconditionSteps, sectionPostconditionSteps, preconditionSteps, steps, postconditionSteps, iterations, autoTests, attachments, links, parameters, isDeleted) {
|
|
66
|
+
WorkItemApiResult.initialize(this, id, globalId, projectId, sectionId, name, entityTypeName, duration, state, priority, isAutomated, attributes, tags, sectionPreconditionSteps, sectionPostconditionSteps, preconditionSteps, steps, postconditionSteps, iterations, autoTests, attachments, links, parameters, isDeleted);
|
|
69
67
|
}
|
|
70
68
|
|
|
71
69
|
/**
|
|
@@ -73,7 +71,7 @@ class WorkItemApiResult {
|
|
|
73
71
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
74
72
|
* Only for internal use.
|
|
75
73
|
*/
|
|
76
|
-
static initialize(obj, id, globalId, projectId, sectionId, name, entityTypeName, duration, state, priority, isAutomated, attributes, tags, sectionPreconditionSteps, sectionPostconditionSteps, preconditionSteps, steps, postconditionSteps, iterations, autoTests,
|
|
74
|
+
static initialize(obj, id, globalId, projectId, sectionId, name, entityTypeName, duration, state, priority, isAutomated, attributes, tags, sectionPreconditionSteps, sectionPostconditionSteps, preconditionSteps, steps, postconditionSteps, iterations, autoTests, attachments, links, parameters, isDeleted) {
|
|
77
75
|
obj['id'] = id;
|
|
78
76
|
obj['globalId'] = globalId;
|
|
79
77
|
obj['projectId'] = projectId;
|
|
@@ -93,7 +91,6 @@ class WorkItemApiResult {
|
|
|
93
91
|
obj['postconditionSteps'] = postconditionSteps;
|
|
94
92
|
obj['iterations'] = iterations;
|
|
95
93
|
obj['autoTests'] = autoTests;
|
|
96
|
-
obj['autoTestCases'] = autoTestCases;
|
|
97
94
|
obj['attachments'] = attachments;
|
|
98
95
|
obj['links'] = links;
|
|
99
96
|
obj['parameters'] = parameters;
|
|
@@ -172,9 +169,6 @@ class WorkItemApiResult {
|
|
|
172
169
|
if (data.hasOwnProperty('autoTests')) {
|
|
173
170
|
obj['autoTests'] = _ApiClient.default.convertToType(data['autoTests'], [_AutoTestModel.default]);
|
|
174
171
|
}
|
|
175
|
-
if (data.hasOwnProperty('autoTestCases')) {
|
|
176
|
-
obj['autoTestCases'] = _ApiClient.default.convertToType(data['autoTestCases'], [_AutoTestCaseApiModel.default]);
|
|
177
|
-
}
|
|
178
172
|
if (data.hasOwnProperty('attachments')) {
|
|
179
173
|
obj['attachments'] = _ApiClient.default.convertToType(data['attachments'], [_AttachmentModel.default]);
|
|
180
174
|
}
|
|
@@ -319,18 +313,6 @@ class WorkItemApiResult {
|
|
|
319
313
|
}
|
|
320
314
|
;
|
|
321
315
|
}
|
|
322
|
-
if (data['autoTestCases']) {
|
|
323
|
-
// data not null
|
|
324
|
-
// ensure the json data is an array
|
|
325
|
-
if (!Array.isArray(data['autoTestCases'])) {
|
|
326
|
-
throw new Error("Expected the field `autoTestCases` to be an array in the JSON data but got " + data['autoTestCases']);
|
|
327
|
-
}
|
|
328
|
-
// validate the optional field `autoTestCases` (array)
|
|
329
|
-
for (const item of data['autoTestCases']) {
|
|
330
|
-
_AutoTestCaseApiModel.default.validateJSON(item);
|
|
331
|
-
}
|
|
332
|
-
;
|
|
333
|
-
}
|
|
334
316
|
if (data['attachments']) {
|
|
335
317
|
// data not null
|
|
336
318
|
// ensure the json data is an array
|
|
@@ -370,7 +352,7 @@ class WorkItemApiResult {
|
|
|
370
352
|
return true;
|
|
371
353
|
}
|
|
372
354
|
}
|
|
373
|
-
WorkItemApiResult.RequiredProperties = ["id", "globalId", "projectId", "sectionId", "name", "entityTypeName", "duration", "state", "priority", "isAutomated", "attributes", "tags", "sectionPreconditionSteps", "sectionPostconditionSteps", "preconditionSteps", "steps", "postconditionSteps", "iterations", "autoTests", "
|
|
355
|
+
WorkItemApiResult.RequiredProperties = ["id", "globalId", "projectId", "sectionId", "name", "entityTypeName", "duration", "state", "priority", "isAutomated", "attributes", "tags", "sectionPreconditionSteps", "sectionPostconditionSteps", "preconditionSteps", "steps", "postconditionSteps", "iterations", "autoTests", "attachments", "links", "parameters", "isDeleted"];
|
|
374
356
|
|
|
375
357
|
/**
|
|
376
358
|
* Unique identifier of the work item
|
|
@@ -491,12 +473,6 @@ WorkItemApiResult.prototype['iterations'] = undefined;
|
|
|
491
473
|
*/
|
|
492
474
|
WorkItemApiResult.prototype['autoTests'] = undefined;
|
|
493
475
|
|
|
494
|
-
/**
|
|
495
|
-
* Set of automated test cases linked to the work item
|
|
496
|
-
* @member {Array.<module:model/AutoTestCaseApiModel>} autoTestCases
|
|
497
|
-
*/
|
|
498
|
-
WorkItemApiResult.prototype['autoTestCases'] = undefined;
|
|
499
|
-
|
|
500
476
|
/**
|
|
501
477
|
* Files attached to the work item
|
|
502
478
|
* @member {Array.<module:model/AttachmentModel>} attachments
|
|
@@ -43,12 +43,6 @@ class WorkItemEntityTypeApiModel {
|
|
|
43
43
|
*/
|
|
44
44
|
"SharedSteps" = "SharedSteps";
|
|
45
45
|
|
|
46
|
-
/**
|
|
47
|
-
* value: "AutoTestCases"
|
|
48
|
-
* @const
|
|
49
|
-
*/
|
|
50
|
-
"AutoTestCases" = "AutoTestCases";
|
|
51
|
-
|
|
52
46
|
/**
|
|
53
47
|
* Returns a <code>WorkItemEntityTypeApiModel</code> enum value from a Javascript object name.
|
|
54
48
|
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _Int32RangeSelectorModel = _interopRequireDefault(require("./Int32RangeSelectorModel"));
|
|
9
|
-
var _LayerSource = _interopRequireDefault(require("./LayerSource"));
|
|
10
9
|
var _WorkItemPriorityModel = _interopRequireDefault(require("./WorkItemPriorityModel"));
|
|
11
10
|
var _WorkItemSourceTypeModel = _interopRequireDefault(require("./WorkItemSourceTypeModel"));
|
|
12
11
|
var _WorkItemStates = _interopRequireDefault(require("./WorkItemStates"));
|
|
@@ -115,15 +114,6 @@ class WorkItemFilterApiModel {
|
|
|
115
114
|
if (data.hasOwnProperty('autoTestIds')) {
|
|
116
115
|
obj['autoTestIds'] = _ApiClient.default.convertToType(data['autoTestIds'], ['String']);
|
|
117
116
|
}
|
|
118
|
-
if (data.hasOwnProperty('layers')) {
|
|
119
|
-
obj['layers'] = _ApiClient.default.convertToType(data['layers'], ['String']);
|
|
120
|
-
}
|
|
121
|
-
if (data.hasOwnProperty('layerSources')) {
|
|
122
|
-
obj['layerSources'] = _ApiClient.default.convertToType(data['layerSources'], [_LayerSource.default]);
|
|
123
|
-
}
|
|
124
|
-
if (data.hasOwnProperty('externalId')) {
|
|
125
|
-
obj['externalId'] = _ApiClient.default.convertToType(data['externalId'], 'String');
|
|
126
|
-
}
|
|
127
117
|
}
|
|
128
118
|
return obj;
|
|
129
119
|
}
|
|
@@ -199,18 +189,6 @@ class WorkItemFilterApiModel {
|
|
|
199
189
|
if (!Array.isArray(data['autoTestIds'])) {
|
|
200
190
|
throw new Error("Expected the field `autoTestIds` to be an array in the JSON data but got " + data['autoTestIds']);
|
|
201
191
|
}
|
|
202
|
-
// ensure the json data is an array
|
|
203
|
-
if (!Array.isArray(data['layers'])) {
|
|
204
|
-
throw new Error("Expected the field `layers` to be an array in the JSON data but got " + data['layers']);
|
|
205
|
-
}
|
|
206
|
-
// ensure the json data is an array
|
|
207
|
-
if (!Array.isArray(data['layerSources'])) {
|
|
208
|
-
throw new Error("Expected the field `layerSources` to be an array in the JSON data but got " + data['layerSources']);
|
|
209
|
-
}
|
|
210
|
-
// ensure the json data is a string
|
|
211
|
-
if (data['externalId'] && !(typeof data['externalId'] === 'string' || data['externalId'] instanceof String)) {
|
|
212
|
-
throw new Error("Expected the field `externalId` to be a primitive type in the JSON string but got " + data['externalId']);
|
|
213
|
-
}
|
|
214
192
|
return true;
|
|
215
193
|
}
|
|
216
194
|
}
|
|
@@ -328,22 +306,4 @@ WorkItemFilterApiModel.prototype['excludeTags'] = undefined;
|
|
|
328
306
|
* @member {Array.<String>} autoTestIds
|
|
329
307
|
*/
|
|
330
308
|
WorkItemFilterApiModel.prototype['autoTestIds'] = undefined;
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* Specifies auto test case layers to search for
|
|
334
|
-
* @member {Array.<String>} layers
|
|
335
|
-
*/
|
|
336
|
-
WorkItemFilterApiModel.prototype['layers'] = undefined;
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* Specifies list of auto test case layer sources to search for
|
|
340
|
-
* @member {Array.<module:model/LayerSource>} layerSources
|
|
341
|
-
*/
|
|
342
|
-
WorkItemFilterApiModel.prototype['layerSources'] = undefined;
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* External identifier of the work item
|
|
346
|
-
* @member {String} externalId
|
|
347
|
-
*/
|
|
348
|
-
WorkItemFilterApiModel.prototype['externalId'] = undefined;
|
|
349
309
|
var _default = exports.default = WorkItemFilterApiModel;
|
|
@@ -43,12 +43,6 @@ class WorkItemTypeModel {
|
|
|
43
43
|
*/
|
|
44
44
|
"SharedSteps" = "SharedSteps";
|
|
45
45
|
|
|
46
|
-
/**
|
|
47
|
-
* value: "AutoTestCases"
|
|
48
|
-
* @const
|
|
49
|
-
*/
|
|
50
|
-
"AutoTestCases" = "AutoTestCases";
|
|
51
|
-
|
|
52
46
|
/**
|
|
53
47
|
* Returns a <code>WorkItemTypeModel</code> enum value from a Javascript object name.
|
|
54
48
|
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
@@ -69,7 +69,7 @@ declare module 'adapters-api/api/AttachmentsApi' {
|
|
|
69
69
|
}): Promise<any>;
|
|
70
70
|
/**
|
|
71
71
|
* Upload new attachment file
|
|
72
|
-
* File size is restricted to
|
|
72
|
+
* File size is restricted to 50 MB (52 428 800 bytes)
|
|
73
73
|
* @param {Object} opts Optional parameters
|
|
74
74
|
* @param {File} [file]
|
|
75
75
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AttachmentModel} and HTTP response
|
|
@@ -77,7 +77,7 @@ declare module 'adapters-api/api/AttachmentsApi' {
|
|
|
77
77
|
adaptersAttachmentsPostWithHttpInfo(opts: Object): Promise<any>;
|
|
78
78
|
/**
|
|
79
79
|
* Upload new attachment file
|
|
80
|
-
* File size is restricted to
|
|
80
|
+
* File size is restricted to 50 MB (52 428 800 bytes)
|
|
81
81
|
* @param {Object} opts Optional parameters
|
|
82
82
|
* @param {File} opts.file
|
|
83
83
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AttachmentModel}
|
|
@@ -144,6 +144,95 @@ declare module 'adapters-api/api/AutoTestsApi' {
|
|
|
144
144
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
145
145
|
*/
|
|
146
146
|
adaptersAutoTestsBulkPut(opts: Object): Promise<any>;
|
|
147
|
+
/**
|
|
148
|
+
* @param {Object} opts Optional parameters
|
|
149
|
+
* @param {String} [projectId] Project internal ID
|
|
150
|
+
* @param {String} [externalId] Autotest external ID
|
|
151
|
+
* @param {Number} [globalId] Autotest global ID
|
|
152
|
+
* @param {String} [namespace] Namespace in which autotest is located
|
|
153
|
+
* @param {Boolean} [isNamespaceNull] OBSOLETE: Use `includeEmptyNamespaces` instead
|
|
154
|
+
* @param {Boolean} [includeEmptyNamespaces] If result must contain autotests without namespace
|
|
155
|
+
* @param {String} [className] Name of class in which autotest is located
|
|
156
|
+
* @param {Boolean} [isClassnameNull] OBSOLETE: Use `includeEmptyClassNames` instead
|
|
157
|
+
* @param {Boolean} [includeEmptyClassNames] If result must contain autotests without class
|
|
158
|
+
* @param {Boolean} [isDeleted] OBSOLETE: Use `deleted` instead
|
|
159
|
+
* @param {Boolean} [deleted] Is autotest deleted
|
|
160
|
+
* @param {Array.<String>} [labels] Include only autotests with provided labels
|
|
161
|
+
* @param {Number} [stabilityMinimal] OBSOLETE: Use `minStability` instead
|
|
162
|
+
* @param {Number} [minStability] Minimum stability value of autotest
|
|
163
|
+
* @param {Number} [stabilityMaximal] OBSOLETE: Use `maxStability` instead
|
|
164
|
+
* @param {Number} [maxStability] Maximum stability value of autotest
|
|
165
|
+
* @param {Boolean} [isFlaky] OBSOLETE: Use `flaky` instead
|
|
166
|
+
* @param {Boolean} [flaky] Is autotest marked as \"Flaky\"
|
|
167
|
+
* @param {Boolean} [includeSteps] If result must also include autotest steps
|
|
168
|
+
* @param {Boolean} [includeLabels] If result must also include autotest labels
|
|
169
|
+
* @param {String} [externalKey] External key of autotest
|
|
170
|
+
* @param {Number} [skip] Amount of items to be skipped (offset)
|
|
171
|
+
* @param {Number} [take] Amount of items to be taken (limit)
|
|
172
|
+
* @param {String} [orderBy] SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC)
|
|
173
|
+
* @param {String} [searchField] Property name for searching
|
|
174
|
+
* @param {String} [searchValue] Value for searching
|
|
175
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/AutoTestModel>} and HTTP response
|
|
176
|
+
*/
|
|
177
|
+
adaptersAutoTestsGetWithHttpInfo(opts: Object): Promise<any>;
|
|
178
|
+
/**
|
|
179
|
+
* @param {Object} opts Optional parameters
|
|
180
|
+
* @param {String} opts.projectId Project internal ID
|
|
181
|
+
* @param {String} opts.externalId Autotest external ID
|
|
182
|
+
* @param {Number} opts.globalId Autotest global ID
|
|
183
|
+
* @param {String} opts.namespace Namespace in which autotest is located
|
|
184
|
+
* @param {Boolean} opts.isNamespaceNull OBSOLETE: Use `includeEmptyNamespaces` instead
|
|
185
|
+
* @param {Boolean} opts.includeEmptyNamespaces If result must contain autotests without namespace
|
|
186
|
+
* @param {String} opts.className Name of class in which autotest is located
|
|
187
|
+
* @param {Boolean} opts.isClassnameNull OBSOLETE: Use `includeEmptyClassNames` instead
|
|
188
|
+
* @param {Boolean} opts.includeEmptyClassNames If result must contain autotests without class
|
|
189
|
+
* @param {Boolean} opts.isDeleted OBSOLETE: Use `deleted` instead
|
|
190
|
+
* @param {Boolean} opts.deleted Is autotest deleted
|
|
191
|
+
* @param {Array.<String>} opts.labels Include only autotests with provided labels
|
|
192
|
+
* @param {Number} opts.stabilityMinimal OBSOLETE: Use `minStability` instead
|
|
193
|
+
* @param {Number} opts.minStability Minimum stability value of autotest
|
|
194
|
+
* @param {Number} opts.stabilityMaximal OBSOLETE: Use `maxStability` instead
|
|
195
|
+
* @param {Number} opts.maxStability Maximum stability value of autotest
|
|
196
|
+
* @param {Boolean} opts.isFlaky OBSOLETE: Use `flaky` instead
|
|
197
|
+
* @param {Boolean} opts.flaky Is autotest marked as \"Flaky\"
|
|
198
|
+
* @param {Boolean} opts.includeSteps If result must also include autotest steps
|
|
199
|
+
* @param {Boolean} opts.includeLabels If result must also include autotest labels
|
|
200
|
+
* @param {String} opts.externalKey External key of autotest
|
|
201
|
+
* @param {Number} opts.skip Amount of items to be skipped (offset)
|
|
202
|
+
* @param {Number} opts.take Amount of items to be taken (limit)
|
|
203
|
+
* @param {String} opts.orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC)
|
|
204
|
+
* @param {String} opts.searchField Property name for searching
|
|
205
|
+
* @param {String} opts.searchValue Value for searching
|
|
206
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/AutoTestModel>}
|
|
207
|
+
*/
|
|
208
|
+
adaptersAutoTestsGet(opts: {
|
|
209
|
+
projectId: string;
|
|
210
|
+
externalId: string;
|
|
211
|
+
globalId: number;
|
|
212
|
+
namespace: string;
|
|
213
|
+
isNamespaceNull: boolean;
|
|
214
|
+
includeEmptyNamespaces: boolean;
|
|
215
|
+
className: string;
|
|
216
|
+
isClassnameNull: boolean;
|
|
217
|
+
includeEmptyClassNames: boolean;
|
|
218
|
+
isDeleted: boolean;
|
|
219
|
+
deleted: boolean;
|
|
220
|
+
labels: Array<string>;
|
|
221
|
+
stabilityMinimal: number;
|
|
222
|
+
minStability: number;
|
|
223
|
+
stabilityMaximal: number;
|
|
224
|
+
maxStability: number;
|
|
225
|
+
isFlaky: boolean;
|
|
226
|
+
flaky: boolean;
|
|
227
|
+
includeSteps: boolean;
|
|
228
|
+
includeLabels: boolean;
|
|
229
|
+
externalKey: string;
|
|
230
|
+
skip: number;
|
|
231
|
+
take: number;
|
|
232
|
+
orderBy: string;
|
|
233
|
+
searchField: string;
|
|
234
|
+
searchValue: string;
|
|
235
|
+
}): Promise<any>;
|
|
147
236
|
/**
|
|
148
237
|
* Get autotest by internal or global ID
|
|
149
238
|
* @param {String} id Internal (UUID) or global (integer) identifier
|
|
@@ -1539,7 +1628,6 @@ declare module 'adapters-api/index' {
|
|
|
1539
1628
|
import AutoTest from 'adapters-api/model/AutoTest';
|
|
1540
1629
|
import AutoTestApiResult from 'adapters-api/model/AutoTestApiResult';
|
|
1541
1630
|
import AutoTestCaseApiModel from 'adapters-api/model/AutoTestCaseApiModel';
|
|
1542
|
-
import AutoTestCaseModel from 'adapters-api/model/AutoTestCaseModel';
|
|
1543
1631
|
import AutoTestCreateApiModel from 'adapters-api/model/AutoTestCreateApiModel';
|
|
1544
1632
|
import AutoTestFilterApiModel from 'adapters-api/model/AutoTestFilterApiModel';
|
|
1545
1633
|
import AutoTestIdModel from 'adapters-api/model/AutoTestIdModel';
|
|
@@ -1766,11 +1854,6 @@ declare module 'adapters-api/index' {
|
|
|
1766
1854
|
* @property {module:model/AutoTestCaseApiModel}
|
|
1767
1855
|
*/
|
|
1768
1856
|
AutoTestCaseApiModel,
|
|
1769
|
-
/**
|
|
1770
|
-
* The AutoTestCaseModel model constructor.
|
|
1771
|
-
* @property {module:model/AutoTestCaseModel}
|
|
1772
|
-
*/
|
|
1773
|
-
AutoTestCaseModel,
|
|
1774
1857
|
/**
|
|
1775
1858
|
* The AutoTestCreateApiModel model constructor.
|
|
1776
1859
|
* @property {module:model/AutoTestCreateApiModel}
|
|
@@ -3029,58 +3112,6 @@ declare module 'adapters-api/model/AutoTestCaseApiModel' {
|
|
|
3029
3112
|
}
|
|
3030
3113
|
export default AutoTestCaseApiModel;
|
|
3031
3114
|
|
|
3032
|
-
}
|
|
3033
|
-
declare module 'adapters-api/model/AutoTestCaseModel' {
|
|
3034
|
-
/**
|
|
3035
|
-
* API
|
|
3036
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
3037
|
-
*
|
|
3038
|
-
* The version of the OpenAPI document: adapters
|
|
3039
|
-
*
|
|
3040
|
-
*
|
|
3041
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3042
|
-
* https://openapi-generator.tech
|
|
3043
|
-
* Do not edit the class manually.
|
|
3044
|
-
*
|
|
3045
|
-
*/
|
|
3046
|
-
/**
|
|
3047
|
-
* The AutoTestCaseModel model module.
|
|
3048
|
-
* @module model/AutoTestCaseModel
|
|
3049
|
-
* @version 1.0.0
|
|
3050
|
-
*/
|
|
3051
|
-
class AutoTestCaseModel {
|
|
3052
|
-
/**
|
|
3053
|
-
* Constructs a new <code>AutoTestCaseModel</code>.
|
|
3054
|
-
* @alias module:model/AutoTestCaseModel
|
|
3055
|
-
* @param globalId {Number} Global ID of the auto test case
|
|
3056
|
-
*/
|
|
3057
|
-
constructor(globalId: number);
|
|
3058
|
-
/**
|
|
3059
|
-
* Initializes the fields of this object.
|
|
3060
|
-
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
3061
|
-
* Only for internal use.
|
|
3062
|
-
*/
|
|
3063
|
-
static initialize(obj: any, globalId: any): void;
|
|
3064
|
-
/**
|
|
3065
|
-
* Constructs a <code>AutoTestCaseModel</code> from a plain JavaScript object, optionally creating a new instance.
|
|
3066
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
3067
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
3068
|
-
* @param {module:model/AutoTestCaseModel} obj Optional instance to populate.
|
|
3069
|
-
* @return {module:model/AutoTestCaseModel} The populated <code>AutoTestCaseModel</code> instance.
|
|
3070
|
-
*/
|
|
3071
|
-
static constructFromObject(data: Object, obj: module): module;
|
|
3072
|
-
/**
|
|
3073
|
-
* Validates the JSON data with respect to <code>AutoTestCaseModel</code>.
|
|
3074
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
3075
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>AutoTestCaseModel</code>.
|
|
3076
|
-
*/
|
|
3077
|
-
static validateJSON(data: Object): boolean;
|
|
3078
|
-
}
|
|
3079
|
-
namespace AutoTestCaseModel {
|
|
3080
|
-
var RequiredProperties: string[];
|
|
3081
|
-
}
|
|
3082
|
-
export default AutoTestCaseModel;
|
|
3083
|
-
|
|
3084
3115
|
}
|
|
3085
3116
|
declare module 'adapters-api/model/AutoTestCreateApiModel' {
|
|
3086
3117
|
/**
|
|
@@ -3827,14 +3858,15 @@ declare module 'adapters-api/model/AutoTestUpdateApiModel' {
|
|
|
3827
3858
|
* @param projectId {String} Unique ID of the autotest project
|
|
3828
3859
|
* @param externalId {String} External ID of the autotest
|
|
3829
3860
|
* @param name {String} Name of the autotest
|
|
3861
|
+
* @param resetLayer {Boolean} Indicates if the autotest layer should be reset.
|
|
3830
3862
|
*/
|
|
3831
|
-
constructor(projectId: string, externalId: string, name: string);
|
|
3863
|
+
constructor(projectId: string, externalId: string, name: string, resetLayer: boolean);
|
|
3832
3864
|
/**
|
|
3833
3865
|
* Initializes the fields of this object.
|
|
3834
3866
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
3835
3867
|
* Only for internal use.
|
|
3836
3868
|
*/
|
|
3837
|
-
static initialize(obj: any, projectId: any, externalId: any, name: any): void;
|
|
3869
|
+
static initialize(obj: any, projectId: any, externalId: any, name: any, resetLayer: any): void;
|
|
3838
3870
|
/**
|
|
3839
3871
|
* Constructs a <code>AutoTestUpdateApiModel</code> from a plain JavaScript object, optionally creating a new instance.
|
|
3840
3872
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -4993,11 +5025,6 @@ declare module 'adapters-api/model/CustomAttributeType' {
|
|
|
4993
5025
|
* @const
|
|
4994
5026
|
*/
|
|
4995
5027
|
"checkbox": string;
|
|
4996
|
-
/**
|
|
4997
|
-
* value: "numeric"
|
|
4998
|
-
* @const
|
|
4999
|
-
*/
|
|
5000
|
-
"numeric": string;
|
|
5001
5028
|
/**
|
|
5002
5029
|
* Returns a <code>CustomAttributeType</code> enum value from a Javascript object name.
|
|
5003
5030
|
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
@@ -5056,11 +5083,6 @@ declare module 'adapters-api/model/CustomAttributeTypesEnum' {
|
|
|
5056
5083
|
* @const
|
|
5057
5084
|
*/
|
|
5058
5085
|
"checkbox": string;
|
|
5059
|
-
/**
|
|
5060
|
-
* value: "numeric"
|
|
5061
|
-
* @const
|
|
5062
|
-
*/
|
|
5063
|
-
"numeric": string;
|
|
5064
5086
|
/**
|
|
5065
5087
|
* Returns a <code>CustomAttributeTypesEnum</code> enum value from a Javascript object name.
|
|
5066
5088
|
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
@@ -8717,19 +8739,18 @@ declare module 'adapters-api/model/WorkItemApiResult' {
|
|
|
8717
8739
|
* @param postconditionSteps {Array.<module:model/StepModel>} Set of postcondition steps that are executed after completing the main steps
|
|
8718
8740
|
* @param iterations {Array.<module:model/IterationModel>} Associated iterations linked to the work item
|
|
8719
8741
|
* @param autoTests {Array.<module:model/AutoTestModel>} Automated tests associated with the work item
|
|
8720
|
-
* @param autoTestCases {Array.<module:model/AutoTestCaseApiModel>} Set of automated test cases linked to the work item
|
|
8721
8742
|
* @param attachments {Array.<module:model/AttachmentModel>} Files attached to the work item
|
|
8722
8743
|
* @param links {Array.<module:model/LinkModel>} Set of links related to the work item
|
|
8723
8744
|
* @param parameters {Array.<module:model/WorkItemParameterKeyApiResult>} Set of parameters related to the work item
|
|
8724
8745
|
* @param isDeleted {Boolean} Indicates whether the work item is marked as deleted
|
|
8725
8746
|
*/
|
|
8726
|
-
constructor(id: string, globalId: number, projectId: string, sectionId: string, name: string, entityTypeName: module, duration: number, state: module, priority: module, isAutomated: boolean, attributes: Record<string, Object>, tags: Array<any>, sectionPreconditionSteps: Array<any>, sectionPostconditionSteps: Array<any>, preconditionSteps: Array<any>, steps: Array<any>, postconditionSteps: Array<any>, iterations: Array<any>, autoTests: Array<any>,
|
|
8747
|
+
constructor(id: string, globalId: number, projectId: string, sectionId: string, name: string, entityTypeName: module, duration: number, state: module, priority: module, isAutomated: boolean, attributes: Record<string, Object>, tags: Array<any>, sectionPreconditionSteps: Array<any>, sectionPostconditionSteps: Array<any>, preconditionSteps: Array<any>, steps: Array<any>, postconditionSteps: Array<any>, iterations: Array<any>, autoTests: Array<any>, attachments: Array<any>, links: Array<any>, parameters: Array<any>, isDeleted: boolean);
|
|
8727
8748
|
/**
|
|
8728
8749
|
* Initializes the fields of this object.
|
|
8729
8750
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
8730
8751
|
* Only for internal use.
|
|
8731
8752
|
*/
|
|
8732
|
-
static initialize(obj: any, id: any, globalId: any, projectId: any, sectionId: any, name: any, entityTypeName: any, duration: any, state: any, priority: any, isAutomated: any, attributes: any, tags: any, sectionPreconditionSteps: any, sectionPostconditionSteps: any, preconditionSteps: any, steps: any, postconditionSteps: any, iterations: any, autoTests: any,
|
|
8753
|
+
static initialize(obj: any, id: any, globalId: any, projectId: any, sectionId: any, name: any, entityTypeName: any, duration: any, state: any, priority: any, isAutomated: any, attributes: any, tags: any, sectionPreconditionSteps: any, sectionPostconditionSteps: any, preconditionSteps: any, steps: any, postconditionSteps: any, iterations: any, autoTests: any, attachments: any, links: any, parameters: any, isDeleted: any): void;
|
|
8733
8754
|
/**
|
|
8734
8755
|
* Constructs a <code>WorkItemApiResult</code> from a plain JavaScript object, optionally creating a new instance.
|
|
8735
8756
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -8785,11 +8806,6 @@ declare module 'adapters-api/model/WorkItemEntityTypeApiModel' {
|
|
|
8785
8806
|
* @const
|
|
8786
8807
|
*/
|
|
8787
8808
|
"SharedSteps": string;
|
|
8788
|
-
/**
|
|
8789
|
-
* value: "AutoTestCases"
|
|
8790
|
-
* @const
|
|
8791
|
-
*/
|
|
8792
|
-
"AutoTestCases": string;
|
|
8793
8809
|
/**
|
|
8794
8810
|
* Returns a <code>WorkItemEntityTypeApiModel</code> enum value from a Javascript object name.
|
|
8795
8811
|
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
@@ -9385,11 +9401,6 @@ declare module 'adapters-api/model/WorkItemTypeModel' {
|
|
|
9385
9401
|
* @const
|
|
9386
9402
|
*/
|
|
9387
9403
|
"SharedSteps": string;
|
|
9388
|
-
/**
|
|
9389
|
-
* value: "AutoTestCases"
|
|
9390
|
-
* @const
|
|
9391
|
-
*/
|
|
9392
|
-
"AutoTestCases": string;
|
|
9393
9404
|
/**
|
|
9394
9405
|
* Returns a <code>WorkItemTypeModel</code> enum value from a Javascript object name.
|
|
9395
9406
|
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
@@ -19,11 +19,8 @@ class BaseService {
|
|
|
19
19
|
throw new Error("Project id is not defined");
|
|
20
20
|
const defaultClient = AdaptersApi.ApiClient.instance;
|
|
21
21
|
defaultClient.basePath = config.url;
|
|
22
|
-
// @ts-ignore
|
|
22
|
+
// @ts-ignore
|
|
23
23
|
const auth = defaultClient.authentications["PrivateToken"];
|
|
24
|
-
if (!auth) {
|
|
25
|
-
throw new Error(`adapters-api auth must expose "PrivateToken", got: [${Object.keys(defaultClient.authentications).join(", ")}]`);
|
|
26
|
-
}
|
|
27
24
|
auth.apiKeyPrefix = "PrivateToken";
|
|
28
25
|
auth.apiKey = config.privateToken;
|
|
29
26
|
if (config.certValidation === false) {
|
package/lib/common/index.d.ts
CHANGED
package/lib/common/index.js
CHANGED
|
@@ -16,5 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./types"), exports);
|
|
18
18
|
__exportStar(require("./utils"), exports);
|
|
19
|
+
__exportStar(require("./test-layers"), exports);
|
|
19
20
|
__exportStar(require("./base.converter"), exports);
|
|
20
21
|
__exportStar(require("./base.service"), exports);
|