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
|
@@ -55,7 +55,7 @@ class WorkflowsApi {
|
|
|
55
55
|
let queryParams = {};
|
|
56
56
|
let headerParams = {};
|
|
57
57
|
let formParams = {};
|
|
58
|
-
let authNames = ['PrivateToken', '
|
|
58
|
+
let authNames = ['PrivateToken', 'Identity.Application'];
|
|
59
59
|
let contentTypes = [];
|
|
60
60
|
let accepts = ['application/json'];
|
|
61
61
|
let returnType = _WorkflowApiResult.default;
|
|
@@ -255,10 +255,10 @@ Object.defineProperty(exports, "CustomAttributeApiResult", {
|
|
|
255
255
|
return _CustomAttributeApiResult.default;
|
|
256
256
|
}
|
|
257
257
|
});
|
|
258
|
-
Object.defineProperty(exports, "
|
|
258
|
+
Object.defineProperty(exports, "CustomAttributeModel", {
|
|
259
259
|
enumerable: true,
|
|
260
260
|
get: function () {
|
|
261
|
-
return
|
|
261
|
+
return _CustomAttributeModel.default;
|
|
262
262
|
}
|
|
263
263
|
});
|
|
264
264
|
Object.defineProperty(exports, "CustomAttributeOptionApiResult", {
|
|
@@ -273,12 +273,36 @@ Object.defineProperty(exports, "CustomAttributeOptionModel", {
|
|
|
273
273
|
return _CustomAttributeOptionModel.default;
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
|
+
Object.defineProperty(exports, "CustomAttributeOptionPostApiModel", {
|
|
277
|
+
enumerable: true,
|
|
278
|
+
get: function () {
|
|
279
|
+
return _CustomAttributeOptionPostApiModel.default;
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
Object.defineProperty(exports, "CustomAttributeOptionUpdateApiModel", {
|
|
283
|
+
enumerable: true,
|
|
284
|
+
get: function () {
|
|
285
|
+
return _CustomAttributeOptionUpdateApiModel.default;
|
|
286
|
+
}
|
|
287
|
+
});
|
|
276
288
|
Object.defineProperty(exports, "CustomAttributePutModel", {
|
|
277
289
|
enumerable: true,
|
|
278
290
|
get: function () {
|
|
279
291
|
return _CustomAttributePutModel.default;
|
|
280
292
|
}
|
|
281
293
|
});
|
|
294
|
+
Object.defineProperty(exports, "CustomAttributeSearchApiModel", {
|
|
295
|
+
enumerable: true,
|
|
296
|
+
get: function () {
|
|
297
|
+
return _CustomAttributeSearchApiModel.default;
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
Object.defineProperty(exports, "CustomAttributeSearchApiResult", {
|
|
301
|
+
enumerable: true,
|
|
302
|
+
get: function () {
|
|
303
|
+
return _CustomAttributeSearchApiResult.default;
|
|
304
|
+
}
|
|
305
|
+
});
|
|
282
306
|
Object.defineProperty(exports, "CustomAttributeType", {
|
|
283
307
|
enumerable: true,
|
|
284
308
|
get: function () {
|
|
@@ -291,6 +315,12 @@ Object.defineProperty(exports, "CustomAttributeTypesEnum", {
|
|
|
291
315
|
return _CustomAttributeTypesEnum.default;
|
|
292
316
|
}
|
|
293
317
|
});
|
|
318
|
+
Object.defineProperty(exports, "CustomAttributesApi", {
|
|
319
|
+
enumerable: true,
|
|
320
|
+
get: function () {
|
|
321
|
+
return _CustomAttributesApi.default;
|
|
322
|
+
}
|
|
323
|
+
});
|
|
294
324
|
Object.defineProperty(exports, "DateTimeRangeSelectorModel", {
|
|
295
325
|
enumerable: true,
|
|
296
326
|
get: function () {
|
|
@@ -315,6 +345,18 @@ Object.defineProperty(exports, "FailureCategoryModel", {
|
|
|
315
345
|
return _FailureCategoryModel.default;
|
|
316
346
|
}
|
|
317
347
|
});
|
|
348
|
+
Object.defineProperty(exports, "GlobalCustomAttributePostApiModel", {
|
|
349
|
+
enumerable: true,
|
|
350
|
+
get: function () {
|
|
351
|
+
return _GlobalCustomAttributePostApiModel.default;
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
Object.defineProperty(exports, "GlobalCustomAttributeUpdateApiModel", {
|
|
355
|
+
enumerable: true,
|
|
356
|
+
get: function () {
|
|
357
|
+
return _GlobalCustomAttributeUpdateApiModel.default;
|
|
358
|
+
}
|
|
359
|
+
});
|
|
318
360
|
Object.defineProperty(exports, "GuidExtractionModel", {
|
|
319
361
|
enumerable: true,
|
|
320
362
|
get: function () {
|
|
@@ -369,6 +411,24 @@ Object.defineProperty(exports, "LabelShortModel", {
|
|
|
369
411
|
return _LabelShortModel.default;
|
|
370
412
|
}
|
|
371
413
|
});
|
|
414
|
+
Object.defineProperty(exports, "LayerApiModel", {
|
|
415
|
+
enumerable: true,
|
|
416
|
+
get: function () {
|
|
417
|
+
return _LayerApiModel.default;
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
Object.defineProperty(exports, "LayerApiResult", {
|
|
421
|
+
enumerable: true,
|
|
422
|
+
get: function () {
|
|
423
|
+
return _LayerApiResult.default;
|
|
424
|
+
}
|
|
425
|
+
});
|
|
426
|
+
Object.defineProperty(exports, "LayerSource", {
|
|
427
|
+
enumerable: true,
|
|
428
|
+
get: function () {
|
|
429
|
+
return _LayerSource.default;
|
|
430
|
+
}
|
|
431
|
+
});
|
|
372
432
|
Object.defineProperty(exports, "LinkApiResult", {
|
|
373
433
|
enumerable: true,
|
|
374
434
|
get: function () {
|
|
@@ -507,6 +567,12 @@ Object.defineProperty(exports, "ProjectSectionsApi", {
|
|
|
507
567
|
return _ProjectSectionsApi.default;
|
|
508
568
|
}
|
|
509
569
|
});
|
|
570
|
+
Object.defineProperty(exports, "ProjectShortestApiResult", {
|
|
571
|
+
enumerable: true,
|
|
572
|
+
get: function () {
|
|
573
|
+
return _ProjectShortestApiResult.default;
|
|
574
|
+
}
|
|
575
|
+
});
|
|
510
576
|
Object.defineProperty(exports, "ProjectTypeModel", {
|
|
511
577
|
enumerable: true,
|
|
512
578
|
get: function () {
|
|
@@ -852,16 +918,22 @@ var _CreateProjectApiModel = _interopRequireDefault(require("./model/CreateProje
|
|
|
852
918
|
var _CreateStepApiModel = _interopRequireDefault(require("./model/CreateStepApiModel"));
|
|
853
919
|
var _CreateWorkItemApiModel = _interopRequireDefault(require("./model/CreateWorkItemApiModel"));
|
|
854
920
|
var _CustomAttributeApiResult = _interopRequireDefault(require("./model/CustomAttributeApiResult"));
|
|
855
|
-
var
|
|
921
|
+
var _CustomAttributeModel = _interopRequireDefault(require("./model/CustomAttributeModel"));
|
|
856
922
|
var _CustomAttributeOptionApiResult = _interopRequireDefault(require("./model/CustomAttributeOptionApiResult"));
|
|
857
923
|
var _CustomAttributeOptionModel = _interopRequireDefault(require("./model/CustomAttributeOptionModel"));
|
|
924
|
+
var _CustomAttributeOptionPostApiModel = _interopRequireDefault(require("./model/CustomAttributeOptionPostApiModel"));
|
|
925
|
+
var _CustomAttributeOptionUpdateApiModel = _interopRequireDefault(require("./model/CustomAttributeOptionUpdateApiModel"));
|
|
858
926
|
var _CustomAttributePutModel = _interopRequireDefault(require("./model/CustomAttributePutModel"));
|
|
927
|
+
var _CustomAttributeSearchApiModel = _interopRequireDefault(require("./model/CustomAttributeSearchApiModel"));
|
|
928
|
+
var _CustomAttributeSearchApiResult = _interopRequireDefault(require("./model/CustomAttributeSearchApiResult"));
|
|
859
929
|
var _CustomAttributeType = _interopRequireDefault(require("./model/CustomAttributeType"));
|
|
860
930
|
var _CustomAttributeTypesEnum = _interopRequireDefault(require("./model/CustomAttributeTypesEnum"));
|
|
861
931
|
var _DateTimeRangeSelectorModel = _interopRequireDefault(require("./model/DateTimeRangeSelectorModel"));
|
|
862
932
|
var _DeletionState = _interopRequireDefault(require("./model/DeletionState"));
|
|
863
933
|
var _DetailedProjectApiResult = _interopRequireDefault(require("./model/DetailedProjectApiResult"));
|
|
864
934
|
var _FailureCategoryModel = _interopRequireDefault(require("./model/FailureCategoryModel"));
|
|
935
|
+
var _GlobalCustomAttributePostApiModel = _interopRequireDefault(require("./model/GlobalCustomAttributePostApiModel"));
|
|
936
|
+
var _GlobalCustomAttributeUpdateApiModel = _interopRequireDefault(require("./model/GlobalCustomAttributeUpdateApiModel"));
|
|
865
937
|
var _GuidExtractionModel = _interopRequireDefault(require("./model/GuidExtractionModel"));
|
|
866
938
|
var _ImageResizeType = _interopRequireDefault(require("./model/ImageResizeType"));
|
|
867
939
|
var _Int32RangeSelectorModel = _interopRequireDefault(require("./model/Int32RangeSelectorModel"));
|
|
@@ -871,6 +943,9 @@ var _IterationModel = _interopRequireDefault(require("./model/IterationModel"));
|
|
|
871
943
|
var _LabelApiModel = _interopRequireDefault(require("./model/LabelApiModel"));
|
|
872
944
|
var _LabelApiResult = _interopRequireDefault(require("./model/LabelApiResult"));
|
|
873
945
|
var _LabelShortModel = _interopRequireDefault(require("./model/LabelShortModel"));
|
|
946
|
+
var _LayerApiModel = _interopRequireDefault(require("./model/LayerApiModel"));
|
|
947
|
+
var _LayerApiResult = _interopRequireDefault(require("./model/LayerApiResult"));
|
|
948
|
+
var _LayerSource = _interopRequireDefault(require("./model/LayerSource"));
|
|
874
949
|
var _LinkApiResult = _interopRequireDefault(require("./model/LinkApiResult"));
|
|
875
950
|
var _LinkCreateApiModel = _interopRequireDefault(require("./model/LinkCreateApiModel"));
|
|
876
951
|
var _LinkModel = _interopRequireDefault(require("./model/LinkModel"));
|
|
@@ -891,6 +966,7 @@ var _ParametersFilterApiModel = _interopRequireDefault(require("./model/Paramete
|
|
|
891
966
|
var _ProblemDetails = _interopRequireDefault(require("./model/ProblemDetails"));
|
|
892
967
|
var _ProjectApiResult = _interopRequireDefault(require("./model/ProjectApiResult"));
|
|
893
968
|
var _ProjectAttributesFilterModel = _interopRequireDefault(require("./model/ProjectAttributesFilterModel"));
|
|
969
|
+
var _ProjectShortestApiResult = _interopRequireDefault(require("./model/ProjectShortestApiResult"));
|
|
894
970
|
var _ProjectTypeModel = _interopRequireDefault(require("./model/ProjectTypeModel"));
|
|
895
971
|
var _ProjectsFilterModel = _interopRequireDefault(require("./model/ProjectsFilterModel"));
|
|
896
972
|
var _SectionModel = _interopRequireDefault(require("./model/SectionModel"));
|
|
@@ -938,6 +1014,7 @@ var _WorkflowStatusApiResult = _interopRequireDefault(require("./model/WorkflowS
|
|
|
938
1014
|
var _AttachmentsApi = _interopRequireDefault(require("./api/AttachmentsApi"));
|
|
939
1015
|
var _AutoTestsApi = _interopRequireDefault(require("./api/AutoTestsApi"));
|
|
940
1016
|
var _ConfigurationsApi = _interopRequireDefault(require("./api/ConfigurationsApi"));
|
|
1017
|
+
var _CustomAttributesApi = _interopRequireDefault(require("./api/CustomAttributesApi"));
|
|
941
1018
|
var _ParametersApi = _interopRequireDefault(require("./api/ParametersApi"));
|
|
942
1019
|
var _ProjectAttributesApi = _interopRequireDefault(require("./api/ProjectAttributesApi"));
|
|
943
1020
|
var _ProjectSectionsApi = _interopRequireDefault(require("./api/ProjectSectionsApi"));
|
|
@@ -183,7 +183,7 @@ AttachmentPutModelAutoTestStepResultsModel.prototype['outcome'] = undefined;
|
|
|
183
183
|
AttachmentPutModelAutoTestStepResultsModel.prototype['stepResults'] = undefined;
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
|
-
* /// <summary>
|
|
186
|
+
* /// <summary> Specifies an attachment GUID. Multiple values can be sent. </summary>
|
|
187
187
|
* @member {Array.<module:model/AttachmentPutModel>} attachments
|
|
188
188
|
*/
|
|
189
189
|
AttachmentPutModelAutoTestStepResultsModel.prototype['attachments'] = undefined;
|
|
@@ -7,6 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _AutoTestStepApiResult = _interopRequireDefault(require("./AutoTestStepApiResult"));
|
|
9
9
|
var _LabelApiResult = _interopRequireDefault(require("./LabelApiResult"));
|
|
10
|
+
var _LayerApiResult = _interopRequireDefault(require("./LayerApiResult"));
|
|
10
11
|
var _LinkApiResult = _interopRequireDefault(require("./LinkApiResult"));
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
13
|
/**
|
|
@@ -106,6 +107,9 @@ class AutoTestApiResult {
|
|
|
106
107
|
if (data.hasOwnProperty('globalId')) {
|
|
107
108
|
obj['globalId'] = _ApiClient.default.convertToType(data['globalId'], 'Number');
|
|
108
109
|
}
|
|
110
|
+
if (data.hasOwnProperty('layer')) {
|
|
111
|
+
obj['layer'] = _ApiClient.default.convertToType(data['layer'], _LayerApiResult.default);
|
|
112
|
+
}
|
|
109
113
|
if (data.hasOwnProperty('links')) {
|
|
110
114
|
obj['links'] = _ApiClient.default.convertToType(data['links'], [_LinkApiResult.default]);
|
|
111
115
|
}
|
|
@@ -203,6 +207,11 @@ class AutoTestApiResult {
|
|
|
203
207
|
if (data['externalKey'] && !(typeof data['externalKey'] === 'string' || data['externalKey'] instanceof String)) {
|
|
204
208
|
throw new Error("Expected the field `externalKey` to be a primitive type in the JSON string but got " + data['externalKey']);
|
|
205
209
|
}
|
|
210
|
+
// validate the optional field `layer`
|
|
211
|
+
if (data['layer']) {
|
|
212
|
+
// data not null
|
|
213
|
+
_LayerApiResult.default.validateJSON(data['layer']);
|
|
214
|
+
}
|
|
206
215
|
if (data['links']) {
|
|
207
216
|
// data not null
|
|
208
217
|
// ensure the json data is an array
|
|
@@ -306,6 +315,12 @@ AutoTestApiResult.prototype['externalKey'] = undefined;
|
|
|
306
315
|
*/
|
|
307
316
|
AutoTestApiResult.prototype['globalId'] = undefined;
|
|
308
317
|
|
|
318
|
+
/**
|
|
319
|
+
* Model of auto test layer for use in responses.
|
|
320
|
+
* @member {module:model/LayerApiResult} layer
|
|
321
|
+
*/
|
|
322
|
+
AutoTestApiResult.prototype['layer'] = undefined;
|
|
323
|
+
|
|
309
324
|
/**
|
|
310
325
|
* @member {Array.<module:model/LinkApiResult>} links
|
|
311
326
|
*/
|
|
@@ -7,6 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _AutoTestStepApiModel = _interopRequireDefault(require("./AutoTestStepApiModel"));
|
|
9
9
|
var _LabelApiModel = _interopRequireDefault(require("./LabelApiModel"));
|
|
10
|
+
var _LayerApiModel = _interopRequireDefault(require("./LayerApiModel"));
|
|
10
11
|
var _LinkCreateApiModel = _interopRequireDefault(require("./LinkCreateApiModel"));
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
13
|
/**
|
|
@@ -87,6 +88,9 @@ class AutoTestCreateApiModel {
|
|
|
87
88
|
if (data.hasOwnProperty('isFlaky')) {
|
|
88
89
|
obj['isFlaky'] = _ApiClient.default.convertToType(data['isFlaky'], 'Boolean');
|
|
89
90
|
}
|
|
91
|
+
if (data.hasOwnProperty('layer')) {
|
|
92
|
+
obj['layer'] = _ApiClient.default.convertToType(data['layer'], _LayerApiModel.default);
|
|
93
|
+
}
|
|
90
94
|
if (data.hasOwnProperty('steps')) {
|
|
91
95
|
obj['steps'] = _ApiClient.default.convertToType(data['steps'], [_AutoTestStepApiModel.default]);
|
|
92
96
|
}
|
|
@@ -156,6 +160,11 @@ class AutoTestCreateApiModel {
|
|
|
156
160
|
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
157
161
|
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
|
158
162
|
}
|
|
163
|
+
// validate the optional field `layer`
|
|
164
|
+
if (data['layer']) {
|
|
165
|
+
// data not null
|
|
166
|
+
_LayerApiModel.default.validateJSON(data['layer']);
|
|
167
|
+
}
|
|
159
168
|
if (data['steps']) {
|
|
160
169
|
// data not null
|
|
161
170
|
// ensure the json data is an array
|
|
@@ -279,6 +288,12 @@ AutoTestCreateApiModel.prototype['description'] = undefined;
|
|
|
279
288
|
*/
|
|
280
289
|
AutoTestCreateApiModel.prototype['isFlaky'] = undefined;
|
|
281
290
|
|
|
291
|
+
/**
|
|
292
|
+
* Layer of the autotest. Assigns layer by rules if omitted.
|
|
293
|
+
* @member {module:model/LayerApiModel} layer
|
|
294
|
+
*/
|
|
295
|
+
AutoTestCreateApiModel.prototype['layer'] = undefined;
|
|
296
|
+
|
|
282
297
|
/**
|
|
283
298
|
* Collection of the autotest steps
|
|
284
299
|
* @member {Array.<module:model/AutoTestStepApiModel>} steps
|
|
@@ -183,7 +183,7 @@ AutoTestStepResult.prototype['outcome'] = undefined;
|
|
|
183
183
|
AutoTestStepResult.prototype['stepResults'] = undefined;
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
|
-
* /// <summary>
|
|
186
|
+
* /// <summary> Specifies an attachment GUID. Multiple values can be sent. </summary>
|
|
187
187
|
* @member {Array.<module:model/AttachmentApiResult>} attachments
|
|
188
188
|
*/
|
|
189
189
|
AutoTestStepResult.prototype['attachments'] = undefined;
|
|
@@ -183,7 +183,7 @@ AutoTestStepResultUpdateRequest.prototype['outcome'] = undefined;
|
|
|
183
183
|
AutoTestStepResultUpdateRequest.prototype['stepResults'] = undefined;
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
|
-
* /// <summary>
|
|
186
|
+
* /// <summary> Specifies an attachment GUID. Multiple values can be sent. </summary>
|
|
187
187
|
* @member {Array.<module:model/AttachmentUpdateRequest>} attachments
|
|
188
188
|
*/
|
|
189
189
|
AutoTestStepResultUpdateRequest.prototype['attachments'] = undefined;
|
|
@@ -7,6 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _AutoTestStepApiModel = _interopRequireDefault(require("./AutoTestStepApiModel"));
|
|
9
9
|
var _LabelApiModel = _interopRequireDefault(require("./LabelApiModel"));
|
|
10
|
+
var _LayerApiModel = _interopRequireDefault(require("./LayerApiModel"));
|
|
10
11
|
var _LinkUpdateApiModel = _interopRequireDefault(require("./LinkUpdateApiModel"));
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
13
|
/**
|
|
@@ -34,9 +35,10 @@ class AutoTestUpdateApiModel {
|
|
|
34
35
|
* @param projectId {String} Unique ID of the autotest project
|
|
35
36
|
* @param externalId {String} External ID of the autotest
|
|
36
37
|
* @param name {String} Name of the autotest
|
|
38
|
+
* @param resetLayer {Boolean} Indicates if the autotest layer should be reset.
|
|
37
39
|
*/
|
|
38
|
-
constructor(projectId, externalId, name) {
|
|
39
|
-
AutoTestUpdateApiModel.initialize(this, projectId, externalId, name);
|
|
40
|
+
constructor(projectId, externalId, name, resetLayer) {
|
|
41
|
+
AutoTestUpdateApiModel.initialize(this, projectId, externalId, name, resetLayer);
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
/**
|
|
@@ -44,10 +46,11 @@ class AutoTestUpdateApiModel {
|
|
|
44
46
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
45
47
|
* Only for internal use.
|
|
46
48
|
*/
|
|
47
|
-
static initialize(obj, projectId, externalId, name) {
|
|
49
|
+
static initialize(obj, projectId, externalId, name, resetLayer) {
|
|
48
50
|
obj['projectId'] = projectId;
|
|
49
51
|
obj['externalId'] = externalId;
|
|
50
52
|
obj['name'] = name;
|
|
53
|
+
obj['resetLayer'] = resetLayer;
|
|
51
54
|
}
|
|
52
55
|
|
|
53
56
|
/**
|
|
@@ -90,6 +93,12 @@ class AutoTestUpdateApiModel {
|
|
|
90
93
|
if (data.hasOwnProperty('isFlaky')) {
|
|
91
94
|
obj['isFlaky'] = _ApiClient.default.convertToType(data['isFlaky'], 'Boolean');
|
|
92
95
|
}
|
|
96
|
+
if (data.hasOwnProperty('layer')) {
|
|
97
|
+
obj['layer'] = _ApiClient.default.convertToType(data['layer'], _LayerApiModel.default);
|
|
98
|
+
}
|
|
99
|
+
if (data.hasOwnProperty('resetLayer')) {
|
|
100
|
+
obj['resetLayer'] = _ApiClient.default.convertToType(data['resetLayer'], 'Boolean');
|
|
101
|
+
}
|
|
93
102
|
if (data.hasOwnProperty('steps')) {
|
|
94
103
|
obj['steps'] = _ApiClient.default.convertToType(data['steps'], [_AutoTestStepApiModel.default]);
|
|
95
104
|
}
|
|
@@ -160,6 +169,11 @@ class AutoTestUpdateApiModel {
|
|
|
160
169
|
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
161
170
|
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
|
162
171
|
}
|
|
172
|
+
// validate the optional field `layer`
|
|
173
|
+
if (data['layer']) {
|
|
174
|
+
// data not null
|
|
175
|
+
_LayerApiModel.default.validateJSON(data['layer']);
|
|
176
|
+
}
|
|
163
177
|
if (data['steps']) {
|
|
164
178
|
// data not null
|
|
165
179
|
// ensure the json data is an array
|
|
@@ -227,7 +241,7 @@ class AutoTestUpdateApiModel {
|
|
|
227
241
|
return true;
|
|
228
242
|
}
|
|
229
243
|
}
|
|
230
|
-
AutoTestUpdateApiModel.RequiredProperties = ["projectId", "externalId", "name"];
|
|
244
|
+
AutoTestUpdateApiModel.RequiredProperties = ["projectId", "externalId", "name", "resetLayer"];
|
|
231
245
|
|
|
232
246
|
/**
|
|
233
247
|
* Autotest unique internal identifier
|
|
@@ -289,6 +303,18 @@ AutoTestUpdateApiModel.prototype['description'] = undefined;
|
|
|
289
303
|
*/
|
|
290
304
|
AutoTestUpdateApiModel.prototype['isFlaky'] = undefined;
|
|
291
305
|
|
|
306
|
+
/**
|
|
307
|
+
* Layer of the autotest. Assigns layer by rules if omitted.
|
|
308
|
+
* @member {module:model/LayerApiModel} layer
|
|
309
|
+
*/
|
|
310
|
+
AutoTestUpdateApiModel.prototype['layer'] = undefined;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Indicates if the autotest layer should be reset.
|
|
314
|
+
* @member {Boolean} resetLayer
|
|
315
|
+
*/
|
|
316
|
+
AutoTestUpdateApiModel.prototype['resetLayer'] = undefined;
|
|
317
|
+
|
|
292
318
|
/**
|
|
293
319
|
* Collection of the autotest steps
|
|
294
320
|
* @member {Array.<module:model/AutoTestStepApiModel>} steps
|
|
@@ -30,7 +30,7 @@ class CreateEmptyTestRunApiModel {
|
|
|
30
30
|
/**
|
|
31
31
|
* Constructs a new <code>CreateEmptyTestRunApiModel</code>.
|
|
32
32
|
* @alias module:model/CreateEmptyTestRunApiModel
|
|
33
|
-
* @param projectId {String} Project unique identifier
|
|
33
|
+
* @param projectId {String} Project unique identifier This property is to link test run with a project
|
|
34
34
|
*/
|
|
35
35
|
constructor(projectId) {
|
|
36
36
|
CreateEmptyTestRunApiModel.initialize(this, projectId);
|
|
@@ -142,7 +142,7 @@ class CreateEmptyTestRunApiModel {
|
|
|
142
142
|
CreateEmptyTestRunApiModel.RequiredProperties = ["projectId"];
|
|
143
143
|
|
|
144
144
|
/**
|
|
145
|
-
* Project unique identifier
|
|
145
|
+
* Project unique identifier This property is to link test run with a project
|
|
146
146
|
* @member {String} projectId
|
|
147
147
|
*/
|
|
148
148
|
CreateEmptyTestRunApiModel.prototype['projectId'] = undefined;
|
|
@@ -31,16 +31,19 @@ class CustomAttributeApiResult {
|
|
|
31
31
|
* Constructs a new <code>CustomAttributeApiResult</code>.
|
|
32
32
|
* @alias module:model/CustomAttributeApiResult
|
|
33
33
|
* @param id {String} Unique ID of the attribute
|
|
34
|
-
* @param options {Array.<module:model/CustomAttributeOptionApiResult>} Collection of the attribute options
|
|
34
|
+
* @param options {Array.<module:model/CustomAttributeOptionApiResult>} Collection of the attribute options Available for attributes of type `options` and `multiple options` only
|
|
35
35
|
* @param type {module:model/CustomAttributeType} Type of the attribute
|
|
36
36
|
* @param isDeleted {Boolean} Indicates if the attribute is deleted
|
|
37
37
|
* @param name {String} Name of the attribute
|
|
38
38
|
* @param isEnabled {Boolean} Indicates if the attribute is enabled
|
|
39
39
|
* @param isRequired {Boolean} Indicates if the attribute value is mandatory to specify
|
|
40
40
|
* @param isGlobal {Boolean} Indicates if the attribute is available across all projects
|
|
41
|
+
* @param isReadOnly {Boolean} Indicates if the attribute is read-only
|
|
42
|
+
* @param isSystem {Boolean} Indicates if the attribute is system
|
|
43
|
+
* @param targets {Array.<String>} Collection of the attribute targets Defines where the attribute can be used (e.g., TestCases, AutoTestCases, TestPlans)
|
|
41
44
|
*/
|
|
42
|
-
constructor(id, options, type, isDeleted, name, isEnabled, isRequired, isGlobal) {
|
|
43
|
-
CustomAttributeApiResult.initialize(this, id, options, type, isDeleted, name, isEnabled, isRequired, isGlobal);
|
|
45
|
+
constructor(id, options, type, isDeleted, name, isEnabled, isRequired, isGlobal, isReadOnly, isSystem, targets) {
|
|
46
|
+
CustomAttributeApiResult.initialize(this, id, options, type, isDeleted, name, isEnabled, isRequired, isGlobal, isReadOnly, isSystem, targets);
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
/**
|
|
@@ -48,7 +51,7 @@ class CustomAttributeApiResult {
|
|
|
48
51
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
49
52
|
* Only for internal use.
|
|
50
53
|
*/
|
|
51
|
-
static initialize(obj, id, options, type, isDeleted, name, isEnabled, isRequired, isGlobal) {
|
|
54
|
+
static initialize(obj, id, options, type, isDeleted, name, isEnabled, isRequired, isGlobal, isReadOnly, isSystem, targets) {
|
|
52
55
|
obj['id'] = id;
|
|
53
56
|
obj['options'] = options;
|
|
54
57
|
obj['type'] = type;
|
|
@@ -57,6 +60,9 @@ class CustomAttributeApiResult {
|
|
|
57
60
|
obj['isEnabled'] = isEnabled;
|
|
58
61
|
obj['isRequired'] = isRequired;
|
|
59
62
|
obj['isGlobal'] = isGlobal;
|
|
63
|
+
obj['isReadOnly'] = isReadOnly;
|
|
64
|
+
obj['isSystem'] = isSystem;
|
|
65
|
+
obj['targets'] = targets;
|
|
60
66
|
}
|
|
61
67
|
|
|
62
68
|
/**
|
|
@@ -72,6 +78,9 @@ class CustomAttributeApiResult {
|
|
|
72
78
|
if (data.hasOwnProperty('id')) {
|
|
73
79
|
obj['id'] = _ApiClient.default.convertToType(data['id'], 'String');
|
|
74
80
|
}
|
|
81
|
+
if (data.hasOwnProperty('code')) {
|
|
82
|
+
obj['code'] = _ApiClient.default.convertToType(data['code'], 'String');
|
|
83
|
+
}
|
|
75
84
|
if (data.hasOwnProperty('options')) {
|
|
76
85
|
obj['options'] = _ApiClient.default.convertToType(data['options'], [_CustomAttributeOptionApiResult.default]);
|
|
77
86
|
}
|
|
@@ -93,6 +102,15 @@ class CustomAttributeApiResult {
|
|
|
93
102
|
if (data.hasOwnProperty('isGlobal')) {
|
|
94
103
|
obj['isGlobal'] = _ApiClient.default.convertToType(data['isGlobal'], 'Boolean');
|
|
95
104
|
}
|
|
105
|
+
if (data.hasOwnProperty('isReadOnly')) {
|
|
106
|
+
obj['isReadOnly'] = _ApiClient.default.convertToType(data['isReadOnly'], 'Boolean');
|
|
107
|
+
}
|
|
108
|
+
if (data.hasOwnProperty('isSystem')) {
|
|
109
|
+
obj['isSystem'] = _ApiClient.default.convertToType(data['isSystem'], 'Boolean');
|
|
110
|
+
}
|
|
111
|
+
if (data.hasOwnProperty('targets')) {
|
|
112
|
+
obj['targets'] = _ApiClient.default.convertToType(data['targets'], ['String']);
|
|
113
|
+
}
|
|
96
114
|
}
|
|
97
115
|
return obj;
|
|
98
116
|
}
|
|
@@ -113,6 +131,10 @@ class CustomAttributeApiResult {
|
|
|
113
131
|
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
|
114
132
|
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
|
115
133
|
}
|
|
134
|
+
// ensure the json data is a string
|
|
135
|
+
if (data['code'] && !(typeof data['code'] === 'string' || data['code'] instanceof String)) {
|
|
136
|
+
throw new Error("Expected the field `code` to be a primitive type in the JSON string but got " + data['code']);
|
|
137
|
+
}
|
|
116
138
|
if (data['options']) {
|
|
117
139
|
// data not null
|
|
118
140
|
// ensure the json data is an array
|
|
@@ -129,10 +151,14 @@ class CustomAttributeApiResult {
|
|
|
129
151
|
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
130
152
|
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
131
153
|
}
|
|
154
|
+
// ensure the json data is an array
|
|
155
|
+
if (!Array.isArray(data['targets'])) {
|
|
156
|
+
throw new Error("Expected the field `targets` to be an array in the JSON data but got " + data['targets']);
|
|
157
|
+
}
|
|
132
158
|
return true;
|
|
133
159
|
}
|
|
134
160
|
}
|
|
135
|
-
CustomAttributeApiResult.RequiredProperties = ["id", "options", "type", "isDeleted", "name", "isEnabled", "isRequired", "isGlobal"];
|
|
161
|
+
CustomAttributeApiResult.RequiredProperties = ["id", "options", "type", "isDeleted", "name", "isEnabled", "isRequired", "isGlobal", "isReadOnly", "isSystem", "targets"];
|
|
136
162
|
|
|
137
163
|
/**
|
|
138
164
|
* Unique ID of the attribute
|
|
@@ -141,7 +167,13 @@ CustomAttributeApiResult.RequiredProperties = ["id", "options", "type", "isDelet
|
|
|
141
167
|
CustomAttributeApiResult.prototype['id'] = undefined;
|
|
142
168
|
|
|
143
169
|
/**
|
|
144
|
-
*
|
|
170
|
+
* Optional code identifier for the attribute
|
|
171
|
+
* @member {String} code
|
|
172
|
+
*/
|
|
173
|
+
CustomAttributeApiResult.prototype['code'] = undefined;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Collection of the attribute options Available for attributes of type `options` and `multiple options` only
|
|
145
177
|
* @member {Array.<module:model/CustomAttributeOptionApiResult>} options
|
|
146
178
|
*/
|
|
147
179
|
CustomAttributeApiResult.prototype['options'] = undefined;
|
|
@@ -181,4 +213,22 @@ CustomAttributeApiResult.prototype['isRequired'] = undefined;
|
|
|
181
213
|
* @member {Boolean} isGlobal
|
|
182
214
|
*/
|
|
183
215
|
CustomAttributeApiResult.prototype['isGlobal'] = undefined;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Indicates if the attribute is read-only
|
|
219
|
+
* @member {Boolean} isReadOnly
|
|
220
|
+
*/
|
|
221
|
+
CustomAttributeApiResult.prototype['isReadOnly'] = undefined;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Indicates if the attribute is system
|
|
225
|
+
* @member {Boolean} isSystem
|
|
226
|
+
*/
|
|
227
|
+
CustomAttributeApiResult.prototype['isSystem'] = undefined;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Collection of the attribute targets Defines where the attribute can be used (e.g., TestCases, AutoTestCases, TestPlans)
|
|
231
|
+
* @member {Array.<String>} targets
|
|
232
|
+
*/
|
|
233
|
+
CustomAttributeApiResult.prototype['targets'] = undefined;
|
|
184
234
|
var _default = exports.default = CustomAttributeApiResult;
|