testit-js-commons 5.0.4 → 5.0.6
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/api/CustomAttributesApi.js +201 -0
- package/lib/adapters-api/dist/index.js +77 -0
- 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/AutoTestUpdateApiModel.js +30 -4
- package/lib/adapters-api/dist/model/CustomAttributeApiResult.js +54 -4
- 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/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/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/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/index.d.ts +718 -8
- 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 +2 -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 +1 -1
- package/lib/services/testruns/testruns.converter.d.ts +3 -0
- package/lib/services/testruns/testruns.converter.js +12 -0
- package/lib/services/testruns/testruns.converter.test.d.ts +1 -0
- package/lib/services/testruns/testruns.converter.test.js +30 -0
- package/lib/services/testruns/testruns.service.d.ts +5 -2
- package/lib/services/testruns/testruns.service.js +58 -24
- package/lib/services/testruns/testruns.service.test.d.ts +1 -0
- package/lib/services/testruns/testruns.service.test.js +83 -0
- package/lib/services/testruns/testruns.type.d.ts +2 -0
- package/lib/strategy/base.strategy.d.ts +1 -0
- package/lib/strategy/base.strategy.js +5 -0
- package/lib/strategy/strategy.type.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,201 @@
|
|
|
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 _CustomAttributeApiResult = _interopRequireDefault(require("../model/CustomAttributeApiResult"));
|
|
9
|
+
var _CustomAttributeSearchApiModel = _interopRequireDefault(require("../model/CustomAttributeSearchApiModel"));
|
|
10
|
+
var _CustomAttributeSearchApiResult = _interopRequireDefault(require("../model/CustomAttributeSearchApiResult"));
|
|
11
|
+
var _GlobalCustomAttributePostApiModel = _interopRequireDefault(require("../model/GlobalCustomAttributePostApiModel"));
|
|
12
|
+
var _GlobalCustomAttributeUpdateApiModel = _interopRequireDefault(require("../model/GlobalCustomAttributeUpdateApiModel"));
|
|
13
|
+
var _ProblemDetails = _interopRequireDefault(require("../model/ProblemDetails"));
|
|
14
|
+
var _ValidationProblemDetails = _interopRequireDefault(require("../model/ValidationProblemDetails"));
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
/**
|
|
17
|
+
* API
|
|
18
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
19
|
+
*
|
|
20
|
+
* The version of the OpenAPI document: adapters
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
+
* https://openapi-generator.tech
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* CustomAttributes service.
|
|
31
|
+
* @module api/CustomAttributesApi
|
|
32
|
+
* @version 1.0.0
|
|
33
|
+
*/
|
|
34
|
+
class CustomAttributesApi {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new CustomAttributesApi.
|
|
37
|
+
* @alias module:api/CustomAttributesApi
|
|
38
|
+
* @class
|
|
39
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
40
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
41
|
+
*/
|
|
42
|
+
constructor(apiClient) {
|
|
43
|
+
this.apiClient = apiClient || _ApiClient.default.instance;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Update global attribute
|
|
48
|
+
* @param {String} id Unique ID of attribute
|
|
49
|
+
* @param {Object} opts Optional parameters
|
|
50
|
+
* @param {module:model/GlobalCustomAttributeUpdateApiModel} [globalCustomAttributeUpdateApiModel]
|
|
51
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CustomAttributeApiResult} and HTTP response
|
|
52
|
+
*/
|
|
53
|
+
adaptersCustomAttributesGlobalIdPutWithHttpInfo(id, opts) {
|
|
54
|
+
opts = opts || {};
|
|
55
|
+
let postBody = opts['globalCustomAttributeUpdateApiModel'];
|
|
56
|
+
// verify the required parameter 'id' is set
|
|
57
|
+
if (id === undefined || id === null) {
|
|
58
|
+
throw new Error("Missing the required parameter 'id' when calling adaptersCustomAttributesGlobalIdPut");
|
|
59
|
+
}
|
|
60
|
+
let pathParams = {
|
|
61
|
+
'id': id
|
|
62
|
+
};
|
|
63
|
+
let queryParams = {};
|
|
64
|
+
let headerParams = {};
|
|
65
|
+
let formParams = {};
|
|
66
|
+
let authNames = ['PrivateToken', 'Identity.Application'];
|
|
67
|
+
let contentTypes = ['application/json'];
|
|
68
|
+
let accepts = ['application/json'];
|
|
69
|
+
let returnType = _CustomAttributeApiResult.default;
|
|
70
|
+
return this.apiClient.callApi('/adapters/customAttributes/global/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Update global attribute
|
|
75
|
+
* @param {String} id Unique ID of attribute
|
|
76
|
+
* @param {Object} opts Optional parameters
|
|
77
|
+
* @param {module:model/GlobalCustomAttributeUpdateApiModel} opts.globalCustomAttributeUpdateApiModel
|
|
78
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CustomAttributeApiResult}
|
|
79
|
+
*/
|
|
80
|
+
adaptersCustomAttributesGlobalIdPut(id, opts) {
|
|
81
|
+
return this.adaptersCustomAttributesGlobalIdPutWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
82
|
+
return response_and_data.data;
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Create global attribute
|
|
88
|
+
* @param {Object} opts Optional parameters
|
|
89
|
+
* @param {module:model/GlobalCustomAttributePostApiModel} [globalCustomAttributePostApiModel]
|
|
90
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CustomAttributeApiResult} and HTTP response
|
|
91
|
+
*/
|
|
92
|
+
adaptersCustomAttributesGlobalPostWithHttpInfo(opts) {
|
|
93
|
+
opts = opts || {};
|
|
94
|
+
let postBody = opts['globalCustomAttributePostApiModel'];
|
|
95
|
+
let pathParams = {};
|
|
96
|
+
let queryParams = {};
|
|
97
|
+
let headerParams = {};
|
|
98
|
+
let formParams = {};
|
|
99
|
+
let authNames = ['PrivateToken', 'Identity.Application'];
|
|
100
|
+
let contentTypes = ['application/json'];
|
|
101
|
+
let accepts = ['application/json'];
|
|
102
|
+
let returnType = _CustomAttributeApiResult.default;
|
|
103
|
+
return this.apiClient.callApi('/adapters/customAttributes/global', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Create global attribute
|
|
108
|
+
* @param {Object} opts Optional parameters
|
|
109
|
+
* @param {module:model/GlobalCustomAttributePostApiModel} opts.globalCustomAttributePostApiModel
|
|
110
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CustomAttributeApiResult}
|
|
111
|
+
*/
|
|
112
|
+
adaptersCustomAttributesGlobalPost(opts) {
|
|
113
|
+
return this.adaptersCustomAttributesGlobalPostWithHttpInfo(opts).then(function (response_and_data) {
|
|
114
|
+
return response_and_data.data;
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Get attribute by ID
|
|
120
|
+
* @param {String} id Unique ID of attribute
|
|
121
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CustomAttributeApiResult} and HTTP response
|
|
122
|
+
*/
|
|
123
|
+
adaptersCustomAttributesIdGetWithHttpInfo(id) {
|
|
124
|
+
let postBody = null;
|
|
125
|
+
// verify the required parameter 'id' is set
|
|
126
|
+
if (id === undefined || id === null) {
|
|
127
|
+
throw new Error("Missing the required parameter 'id' when calling adaptersCustomAttributesIdGet");
|
|
128
|
+
}
|
|
129
|
+
let pathParams = {
|
|
130
|
+
'id': id
|
|
131
|
+
};
|
|
132
|
+
let queryParams = {};
|
|
133
|
+
let headerParams = {};
|
|
134
|
+
let formParams = {};
|
|
135
|
+
let authNames = ['PrivateToken', 'Identity.Application'];
|
|
136
|
+
let contentTypes = [];
|
|
137
|
+
let accepts = ['application/json'];
|
|
138
|
+
let returnType = _CustomAttributeApiResult.default;
|
|
139
|
+
return this.apiClient.callApi('/adapters/customAttributes/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Get attribute by ID
|
|
144
|
+
* @param {String} id Unique ID of attribute
|
|
145
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CustomAttributeApiResult}
|
|
146
|
+
*/
|
|
147
|
+
adaptersCustomAttributesIdGet(id) {
|
|
148
|
+
return this.adaptersCustomAttributesIdGetWithHttpInfo(id).then(function (response_and_data) {
|
|
149
|
+
return response_and_data.data;
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Search for attributes
|
|
155
|
+
* @param {Object} opts Optional parameters
|
|
156
|
+
* @param {Number} [skip] Amount of items to be skipped (offset)
|
|
157
|
+
* @param {Number} [take] Amount of items to be taken (limit)
|
|
158
|
+
* @param {String} [orderBy] SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC)
|
|
159
|
+
* @param {String} [searchField] Property name for searching
|
|
160
|
+
* @param {String} [searchValue] Value for searching
|
|
161
|
+
* @param {module:model/CustomAttributeSearchApiModel} [customAttributeSearchApiModel]
|
|
162
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/CustomAttributeSearchApiResult>} and HTTP response
|
|
163
|
+
*/
|
|
164
|
+
adaptersCustomAttributesSearchPostWithHttpInfo(opts) {
|
|
165
|
+
opts = opts || {};
|
|
166
|
+
let postBody = opts['customAttributeSearchApiModel'];
|
|
167
|
+
let pathParams = {};
|
|
168
|
+
let queryParams = {
|
|
169
|
+
'Skip': opts['skip'],
|
|
170
|
+
'Take': opts['take'],
|
|
171
|
+
'OrderBy': opts['orderBy'],
|
|
172
|
+
'SearchField': opts['searchField'],
|
|
173
|
+
'SearchValue': opts['searchValue']
|
|
174
|
+
};
|
|
175
|
+
let headerParams = {};
|
|
176
|
+
let formParams = {};
|
|
177
|
+
let authNames = ['PrivateToken', 'Identity.Application'];
|
|
178
|
+
let contentTypes = ['application/json'];
|
|
179
|
+
let accepts = ['application/json'];
|
|
180
|
+
let returnType = [_CustomAttributeSearchApiResult.default];
|
|
181
|
+
return this.apiClient.callApi('/adapters/customAttributes/search', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Search for attributes
|
|
186
|
+
* @param {Object} opts Optional parameters
|
|
187
|
+
* @param {Number} opts.skip Amount of items to be skipped (offset)
|
|
188
|
+
* @param {Number} opts.take Amount of items to be taken (limit)
|
|
189
|
+
* @param {String} opts.orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC)
|
|
190
|
+
* @param {String} opts.searchField Property name for searching
|
|
191
|
+
* @param {String} opts.searchValue Value for searching
|
|
192
|
+
* @param {module:model/CustomAttributeSearchApiModel} opts.customAttributeSearchApiModel
|
|
193
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/CustomAttributeSearchApiResult>}
|
|
194
|
+
*/
|
|
195
|
+
adaptersCustomAttributesSearchPost(opts) {
|
|
196
|
+
return this.adaptersCustomAttributesSearchPostWithHttpInfo(opts).then(function (response_and_data) {
|
|
197
|
+
return response_and_data.data;
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
exports.default = CustomAttributesApi;
|
|
@@ -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 () {
|
|
@@ -855,13 +921,19 @@ var _CustomAttributeApiResult = _interopRequireDefault(require("./model/CustomAt
|
|
|
855
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"));
|
|
@@ -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
|
|
@@ -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
|
|
@@ -38,9 +38,12 @@ class CustomAttributeApiResult {
|
|
|
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
|
|
@@ -140,6 +166,12 @@ CustomAttributeApiResult.RequiredProperties = ["id", "options", "type", "isDelet
|
|
|
140
166
|
*/
|
|
141
167
|
CustomAttributeApiResult.prototype['id'] = undefined;
|
|
142
168
|
|
|
169
|
+
/**
|
|
170
|
+
* Optional code identifier for the attribute
|
|
171
|
+
* @member {String} code
|
|
172
|
+
*/
|
|
173
|
+
CustomAttributeApiResult.prototype['code'] = undefined;
|
|
174
|
+
|
|
143
175
|
/**
|
|
144
176
|
* Collection of the attribute options Available for attributes of type `options` and `multiple options` only
|
|
145
177
|
* @member {Array.<module:model/CustomAttributeOptionApiResult>} options
|
|
@@ -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;
|