testit-js-commons 5.1.0-TMS-5.8 → 5.1.0-TMS-6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/adapters-api/dist/api/AutoTestsApi.js +0 -108
- package/lib/adapters-api/dist/api/CustomAttributesApi.js +201 -0
- package/lib/adapters-api/dist/api/ProjectAttributesApi.js +4 -4
- package/lib/adapters-api/dist/index.js +87 -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/AutoTestCaseModel.js +85 -0
- package/lib/adapters-api/dist/model/AutoTestCreateApiModel.js +15 -0
- package/lib/adapters-api/dist/model/AutoTestFilterApiModel.js +27 -0
- package/lib/adapters-api/dist/model/AutoTestModel.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 +24 -0
- package/lib/adapters-api/dist/model/CreateEmptyTestRunApiModel.js +2 -2
- package/lib/adapters-api/dist/model/CreateWorkItemApiModel.js +22 -0
- 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/CustomAttributeType.js +6 -0
- package/lib/adapters-api/dist/model/CustomAttributeTypesEnum.js +6 -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/dist/model/WorkItemApiResult.js +28 -4
- package/lib/adapters-api/dist/model/WorkItemEntityTypeApiModel.js +6 -0
- package/lib/adapters-api/dist/model/WorkItemFilterApiModel.js +40 -0
- package/lib/adapters-api/dist/model/WorkItemTypeModel.js +6 -0
- package/lib/adapters-api/index.d.ts +853 -310
- package/lib/common/base.service.js +4 -1
- package/package.json +1 -1
|
@@ -7,7 +7,6 @@ exports.default = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _AutoTestApiResult = _interopRequireDefault(require("../model/AutoTestApiResult"));
|
|
9
9
|
var _AutoTestCreateApiModel = _interopRequireDefault(require("../model/AutoTestCreateApiModel"));
|
|
10
|
-
var _AutoTestModel = _interopRequireDefault(require("../model/AutoTestModel"));
|
|
11
10
|
var _AutoTestSearchApiModel = _interopRequireDefault(require("../model/AutoTestSearchApiModel"));
|
|
12
11
|
var _AutoTestUpdateApiModel = _interopRequireDefault(require("../model/AutoTestUpdateApiModel"));
|
|
13
12
|
var _AutoTestWorkItemIdentifierApiResult = _interopRequireDefault(require("../model/AutoTestWorkItemIdentifierApiResult"));
|
|
@@ -110,113 +109,6 @@ class AutoTestsApi {
|
|
|
110
109
|
});
|
|
111
110
|
}
|
|
112
111
|
|
|
113
|
-
/**
|
|
114
|
-
* @param {Object} opts Optional parameters
|
|
115
|
-
* @param {String} [projectId] Project internal ID
|
|
116
|
-
* @param {String} [externalId] Autotest external ID
|
|
117
|
-
* @param {Number} [globalId] Autotest global ID
|
|
118
|
-
* @param {String} [namespace] Namespace in which autotest is located
|
|
119
|
-
* @param {Boolean} [isNamespaceNull] OBSOLETE: Use `includeEmptyNamespaces` instead
|
|
120
|
-
* @param {Boolean} [includeEmptyNamespaces] If result must contain autotests without namespace
|
|
121
|
-
* @param {String} [className] Name of class in which autotest is located
|
|
122
|
-
* @param {Boolean} [isClassnameNull] OBSOLETE: Use `includeEmptyClassNames` instead
|
|
123
|
-
* @param {Boolean} [includeEmptyClassNames] If result must contain autotests without class
|
|
124
|
-
* @param {Boolean} [isDeleted] OBSOLETE: Use `deleted` instead
|
|
125
|
-
* @param {Boolean} [deleted] Is autotest deleted
|
|
126
|
-
* @param {Array.<String>} [labels] Include only autotests with provided labels
|
|
127
|
-
* @param {Number} [stabilityMinimal] OBSOLETE: Use `minStability` instead
|
|
128
|
-
* @param {Number} [minStability] Minimum stability value of autotest
|
|
129
|
-
* @param {Number} [stabilityMaximal] OBSOLETE: Use `maxStability` instead
|
|
130
|
-
* @param {Number} [maxStability] Maximum stability value of autotest
|
|
131
|
-
* @param {Boolean} [isFlaky] OBSOLETE: Use `flaky` instead
|
|
132
|
-
* @param {Boolean} [flaky] Is autotest marked as \"Flaky\"
|
|
133
|
-
* @param {Boolean} [includeSteps] If result must also include autotest steps
|
|
134
|
-
* @param {Boolean} [includeLabels] If result must also include autotest labels
|
|
135
|
-
* @param {String} [externalKey] External key of autotest
|
|
136
|
-
* @param {Number} [skip] Amount of items to be skipped (offset)
|
|
137
|
-
* @param {Number} [take] Amount of items to be taken (limit)
|
|
138
|
-
* @param {String} [orderBy] SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC)
|
|
139
|
-
* @param {String} [searchField] Property name for searching
|
|
140
|
-
* @param {String} [searchValue] Value for searching
|
|
141
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/AutoTestModel>} and HTTP response
|
|
142
|
-
*/
|
|
143
|
-
adaptersAutoTestsGetWithHttpInfo(opts) {
|
|
144
|
-
opts = opts || {};
|
|
145
|
-
let postBody = null;
|
|
146
|
-
let pathParams = {};
|
|
147
|
-
let queryParams = {
|
|
148
|
-
'projectId': opts['projectId'],
|
|
149
|
-
'externalId': opts['externalId'],
|
|
150
|
-
'globalId': opts['globalId'],
|
|
151
|
-
'namespace': opts['namespace'],
|
|
152
|
-
'isNamespaceNull': opts['isNamespaceNull'],
|
|
153
|
-
'includeEmptyNamespaces': opts['includeEmptyNamespaces'],
|
|
154
|
-
'className': opts['className'],
|
|
155
|
-
'isClassnameNull': opts['isClassnameNull'],
|
|
156
|
-
'includeEmptyClassNames': opts['includeEmptyClassNames'],
|
|
157
|
-
'isDeleted': opts['isDeleted'],
|
|
158
|
-
'deleted': opts['deleted'],
|
|
159
|
-
'labels': this.apiClient.buildCollectionParam(opts['labels'], 'multi'),
|
|
160
|
-
'stabilityMinimal': opts['stabilityMinimal'],
|
|
161
|
-
'minStability': opts['minStability'],
|
|
162
|
-
'stabilityMaximal': opts['stabilityMaximal'],
|
|
163
|
-
'maxStability': opts['maxStability'],
|
|
164
|
-
'isFlaky': opts['isFlaky'],
|
|
165
|
-
'flaky': opts['flaky'],
|
|
166
|
-
'includeSteps': opts['includeSteps'],
|
|
167
|
-
'includeLabels': opts['includeLabels'],
|
|
168
|
-
'externalKey': opts['externalKey'],
|
|
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', 'Cookies'];
|
|
178
|
-
let contentTypes = [];
|
|
179
|
-
let accepts = ['application/json'];
|
|
180
|
-
let returnType = [_AutoTestModel.default];
|
|
181
|
-
return this.apiClient.callApi('/adapters/autoTests', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* @param {Object} opts Optional parameters
|
|
186
|
-
* @param {String} opts.projectId Project internal ID
|
|
187
|
-
* @param {String} opts.externalId Autotest external ID
|
|
188
|
-
* @param {Number} opts.globalId Autotest global ID
|
|
189
|
-
* @param {String} opts.namespace Namespace in which autotest is located
|
|
190
|
-
* @param {Boolean} opts.isNamespaceNull OBSOLETE: Use `includeEmptyNamespaces` instead
|
|
191
|
-
* @param {Boolean} opts.includeEmptyNamespaces If result must contain autotests without namespace
|
|
192
|
-
* @param {String} opts.className Name of class in which autotest is located
|
|
193
|
-
* @param {Boolean} opts.isClassnameNull OBSOLETE: Use `includeEmptyClassNames` instead
|
|
194
|
-
* @param {Boolean} opts.includeEmptyClassNames If result must contain autotests without class
|
|
195
|
-
* @param {Boolean} opts.isDeleted OBSOLETE: Use `deleted` instead
|
|
196
|
-
* @param {Boolean} opts.deleted Is autotest deleted
|
|
197
|
-
* @param {Array.<String>} opts.labels Include only autotests with provided labels
|
|
198
|
-
* @param {Number} opts.stabilityMinimal OBSOLETE: Use `minStability` instead
|
|
199
|
-
* @param {Number} opts.minStability Minimum stability value of autotest
|
|
200
|
-
* @param {Number} opts.stabilityMaximal OBSOLETE: Use `maxStability` instead
|
|
201
|
-
* @param {Number} opts.maxStability Maximum stability value of autotest
|
|
202
|
-
* @param {Boolean} opts.isFlaky OBSOLETE: Use `flaky` instead
|
|
203
|
-
* @param {Boolean} opts.flaky Is autotest marked as \"Flaky\"
|
|
204
|
-
* @param {Boolean} opts.includeSteps If result must also include autotest steps
|
|
205
|
-
* @param {Boolean} opts.includeLabels If result must also include autotest labels
|
|
206
|
-
* @param {String} opts.externalKey External key of autotest
|
|
207
|
-
* @param {Number} opts.skip Amount of items to be skipped (offset)
|
|
208
|
-
* @param {Number} opts.take Amount of items to be taken (limit)
|
|
209
|
-
* @param {String} opts.orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC)
|
|
210
|
-
* @param {String} opts.searchField Property name for searching
|
|
211
|
-
* @param {String} opts.searchValue Value for searching
|
|
212
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/AutoTestModel>}
|
|
213
|
-
*/
|
|
214
|
-
adaptersAutoTestsGet(opts) {
|
|
215
|
-
return this.adaptersAutoTestsGetWithHttpInfo(opts).then(function (response_and_data) {
|
|
216
|
-
return response_and_data.data;
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
|
|
220
112
|
/**
|
|
221
113
|
* Get autotest by internal or global ID
|
|
222
114
|
* @param {String} id Internal (UUID) or global (integer) identifier
|
|
@@ -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', 'Cookies'];
|
|
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', 'Cookies'];
|
|
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', 'Cookies'];
|
|
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', 'Cookies'];
|
|
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;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var
|
|
8
|
+
var _CustomAttributeModel = _interopRequireDefault(require("../model/CustomAttributeModel"));
|
|
9
9
|
var _CustomAttributePutModel = _interopRequireDefault(require("../model/CustomAttributePutModel"));
|
|
10
10
|
var _ProblemDetails = _interopRequireDefault(require("../model/ProblemDetails"));
|
|
11
11
|
var _ProjectAttributesFilterModel = _interopRequireDefault(require("../model/ProjectAttributesFilterModel"));
|
|
@@ -91,7 +91,7 @@ class ProjectAttributesApi {
|
|
|
91
91
|
* @param {String} [searchField] Property name for searching
|
|
92
92
|
* @param {String} [searchValue] Value for searching
|
|
93
93
|
* @param {module:model/ProjectAttributesFilterModel} [projectAttributesFilterModel]
|
|
94
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/
|
|
94
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/CustomAttributeModel>} and HTTP response
|
|
95
95
|
*/
|
|
96
96
|
adaptersProjectsProjectIdAttributesSearchPostWithHttpInfo(projectId, opts) {
|
|
97
97
|
opts = opts || {};
|
|
@@ -115,7 +115,7 @@ class ProjectAttributesApi {
|
|
|
115
115
|
let authNames = ['PrivateToken', 'Cookies'];
|
|
116
116
|
let contentTypes = ['application/json'];
|
|
117
117
|
let accepts = ['application/json'];
|
|
118
|
-
let returnType = [
|
|
118
|
+
let returnType = [_CustomAttributeModel.default];
|
|
119
119
|
return this.apiClient.callApi('/adapters/projects/{projectId}/attributes/search', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -129,7 +129,7 @@ class ProjectAttributesApi {
|
|
|
129
129
|
* @param {String} opts.searchField Property name for searching
|
|
130
130
|
* @param {String} opts.searchValue Value for searching
|
|
131
131
|
* @param {module:model/ProjectAttributesFilterModel} opts.projectAttributesFilterModel
|
|
132
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/
|
|
132
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/CustomAttributeModel>}
|
|
133
133
|
*/
|
|
134
134
|
adaptersProjectsProjectIdAttributesSearchPost(projectId, opts) {
|
|
135
135
|
return this.adaptersProjectsProjectIdAttributesSearchPostWithHttpInfo(projectId, opts).then(function (response_and_data) {
|
|
@@ -81,6 +81,12 @@ Object.defineProperty(exports, "AutoTestCaseApiModel", {
|
|
|
81
81
|
return _AutoTestCaseApiModel.default;
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
|
+
Object.defineProperty(exports, "AutoTestCaseModel", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () {
|
|
87
|
+
return _AutoTestCaseModel.default;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
84
90
|
Object.defineProperty(exports, "AutoTestCreateApiModel", {
|
|
85
91
|
enumerable: true,
|
|
86
92
|
get: function () {
|
|
@@ -255,10 +261,10 @@ Object.defineProperty(exports, "CustomAttributeApiResult", {
|
|
|
255
261
|
return _CustomAttributeApiResult.default;
|
|
256
262
|
}
|
|
257
263
|
});
|
|
258
|
-
Object.defineProperty(exports, "
|
|
264
|
+
Object.defineProperty(exports, "CustomAttributeModel", {
|
|
259
265
|
enumerable: true,
|
|
260
266
|
get: function () {
|
|
261
|
-
return
|
|
267
|
+
return _CustomAttributeModel.default;
|
|
262
268
|
}
|
|
263
269
|
});
|
|
264
270
|
Object.defineProperty(exports, "CustomAttributeOptionApiResult", {
|
|
@@ -273,12 +279,36 @@ Object.defineProperty(exports, "CustomAttributeOptionModel", {
|
|
|
273
279
|
return _CustomAttributeOptionModel.default;
|
|
274
280
|
}
|
|
275
281
|
});
|
|
282
|
+
Object.defineProperty(exports, "CustomAttributeOptionPostApiModel", {
|
|
283
|
+
enumerable: true,
|
|
284
|
+
get: function () {
|
|
285
|
+
return _CustomAttributeOptionPostApiModel.default;
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
Object.defineProperty(exports, "CustomAttributeOptionUpdateApiModel", {
|
|
289
|
+
enumerable: true,
|
|
290
|
+
get: function () {
|
|
291
|
+
return _CustomAttributeOptionUpdateApiModel.default;
|
|
292
|
+
}
|
|
293
|
+
});
|
|
276
294
|
Object.defineProperty(exports, "CustomAttributePutModel", {
|
|
277
295
|
enumerable: true,
|
|
278
296
|
get: function () {
|
|
279
297
|
return _CustomAttributePutModel.default;
|
|
280
298
|
}
|
|
281
299
|
});
|
|
300
|
+
Object.defineProperty(exports, "CustomAttributeSearchApiModel", {
|
|
301
|
+
enumerable: true,
|
|
302
|
+
get: function () {
|
|
303
|
+
return _CustomAttributeSearchApiModel.default;
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
Object.defineProperty(exports, "CustomAttributeSearchApiResult", {
|
|
307
|
+
enumerable: true,
|
|
308
|
+
get: function () {
|
|
309
|
+
return _CustomAttributeSearchApiResult.default;
|
|
310
|
+
}
|
|
311
|
+
});
|
|
282
312
|
Object.defineProperty(exports, "CustomAttributeType", {
|
|
283
313
|
enumerable: true,
|
|
284
314
|
get: function () {
|
|
@@ -291,6 +321,12 @@ Object.defineProperty(exports, "CustomAttributeTypesEnum", {
|
|
|
291
321
|
return _CustomAttributeTypesEnum.default;
|
|
292
322
|
}
|
|
293
323
|
});
|
|
324
|
+
Object.defineProperty(exports, "CustomAttributesApi", {
|
|
325
|
+
enumerable: true,
|
|
326
|
+
get: function () {
|
|
327
|
+
return _CustomAttributesApi.default;
|
|
328
|
+
}
|
|
329
|
+
});
|
|
294
330
|
Object.defineProperty(exports, "DateTimeRangeSelectorModel", {
|
|
295
331
|
enumerable: true,
|
|
296
332
|
get: function () {
|
|
@@ -315,6 +351,18 @@ Object.defineProperty(exports, "FailureCategoryModel", {
|
|
|
315
351
|
return _FailureCategoryModel.default;
|
|
316
352
|
}
|
|
317
353
|
});
|
|
354
|
+
Object.defineProperty(exports, "GlobalCustomAttributePostApiModel", {
|
|
355
|
+
enumerable: true,
|
|
356
|
+
get: function () {
|
|
357
|
+
return _GlobalCustomAttributePostApiModel.default;
|
|
358
|
+
}
|
|
359
|
+
});
|
|
360
|
+
Object.defineProperty(exports, "GlobalCustomAttributeUpdateApiModel", {
|
|
361
|
+
enumerable: true,
|
|
362
|
+
get: function () {
|
|
363
|
+
return _GlobalCustomAttributeUpdateApiModel.default;
|
|
364
|
+
}
|
|
365
|
+
});
|
|
318
366
|
Object.defineProperty(exports, "GuidExtractionModel", {
|
|
319
367
|
enumerable: true,
|
|
320
368
|
get: function () {
|
|
@@ -369,6 +417,24 @@ Object.defineProperty(exports, "LabelShortModel", {
|
|
|
369
417
|
return _LabelShortModel.default;
|
|
370
418
|
}
|
|
371
419
|
});
|
|
420
|
+
Object.defineProperty(exports, "LayerApiModel", {
|
|
421
|
+
enumerable: true,
|
|
422
|
+
get: function () {
|
|
423
|
+
return _LayerApiModel.default;
|
|
424
|
+
}
|
|
425
|
+
});
|
|
426
|
+
Object.defineProperty(exports, "LayerApiResult", {
|
|
427
|
+
enumerable: true,
|
|
428
|
+
get: function () {
|
|
429
|
+
return _LayerApiResult.default;
|
|
430
|
+
}
|
|
431
|
+
});
|
|
432
|
+
Object.defineProperty(exports, "LayerSource", {
|
|
433
|
+
enumerable: true,
|
|
434
|
+
get: function () {
|
|
435
|
+
return _LayerSource.default;
|
|
436
|
+
}
|
|
437
|
+
});
|
|
372
438
|
Object.defineProperty(exports, "LinkApiResult", {
|
|
373
439
|
enumerable: true,
|
|
374
440
|
get: function () {
|
|
@@ -507,6 +573,12 @@ Object.defineProperty(exports, "ProjectSectionsApi", {
|
|
|
507
573
|
return _ProjectSectionsApi.default;
|
|
508
574
|
}
|
|
509
575
|
});
|
|
576
|
+
Object.defineProperty(exports, "ProjectShortestApiResult", {
|
|
577
|
+
enumerable: true,
|
|
578
|
+
get: function () {
|
|
579
|
+
return _ProjectShortestApiResult.default;
|
|
580
|
+
}
|
|
581
|
+
});
|
|
510
582
|
Object.defineProperty(exports, "ProjectTypeModel", {
|
|
511
583
|
enumerable: true,
|
|
512
584
|
get: function () {
|
|
@@ -825,6 +897,7 @@ var _AttachmentUpdateRequest = _interopRequireDefault(require("./model/Attachmen
|
|
|
825
897
|
var _AutoTest = _interopRequireDefault(require("./model/AutoTest"));
|
|
826
898
|
var _AutoTestApiResult = _interopRequireDefault(require("./model/AutoTestApiResult"));
|
|
827
899
|
var _AutoTestCaseApiModel = _interopRequireDefault(require("./model/AutoTestCaseApiModel"));
|
|
900
|
+
var _AutoTestCaseModel = _interopRequireDefault(require("./model/AutoTestCaseModel"));
|
|
828
901
|
var _AutoTestCreateApiModel = _interopRequireDefault(require("./model/AutoTestCreateApiModel"));
|
|
829
902
|
var _AutoTestFilterApiModel = _interopRequireDefault(require("./model/AutoTestFilterApiModel"));
|
|
830
903
|
var _AutoTestIdModel = _interopRequireDefault(require("./model/AutoTestIdModel"));
|
|
@@ -852,16 +925,22 @@ var _CreateProjectApiModel = _interopRequireDefault(require("./model/CreateProje
|
|
|
852
925
|
var _CreateStepApiModel = _interopRequireDefault(require("./model/CreateStepApiModel"));
|
|
853
926
|
var _CreateWorkItemApiModel = _interopRequireDefault(require("./model/CreateWorkItemApiModel"));
|
|
854
927
|
var _CustomAttributeApiResult = _interopRequireDefault(require("./model/CustomAttributeApiResult"));
|
|
855
|
-
var
|
|
928
|
+
var _CustomAttributeModel = _interopRequireDefault(require("./model/CustomAttributeModel"));
|
|
856
929
|
var _CustomAttributeOptionApiResult = _interopRequireDefault(require("./model/CustomAttributeOptionApiResult"));
|
|
857
930
|
var _CustomAttributeOptionModel = _interopRequireDefault(require("./model/CustomAttributeOptionModel"));
|
|
931
|
+
var _CustomAttributeOptionPostApiModel = _interopRequireDefault(require("./model/CustomAttributeOptionPostApiModel"));
|
|
932
|
+
var _CustomAttributeOptionUpdateApiModel = _interopRequireDefault(require("./model/CustomAttributeOptionUpdateApiModel"));
|
|
858
933
|
var _CustomAttributePutModel = _interopRequireDefault(require("./model/CustomAttributePutModel"));
|
|
934
|
+
var _CustomAttributeSearchApiModel = _interopRequireDefault(require("./model/CustomAttributeSearchApiModel"));
|
|
935
|
+
var _CustomAttributeSearchApiResult = _interopRequireDefault(require("./model/CustomAttributeSearchApiResult"));
|
|
859
936
|
var _CustomAttributeType = _interopRequireDefault(require("./model/CustomAttributeType"));
|
|
860
937
|
var _CustomAttributeTypesEnum = _interopRequireDefault(require("./model/CustomAttributeTypesEnum"));
|
|
861
938
|
var _DateTimeRangeSelectorModel = _interopRequireDefault(require("./model/DateTimeRangeSelectorModel"));
|
|
862
939
|
var _DeletionState = _interopRequireDefault(require("./model/DeletionState"));
|
|
863
940
|
var _DetailedProjectApiResult = _interopRequireDefault(require("./model/DetailedProjectApiResult"));
|
|
864
941
|
var _FailureCategoryModel = _interopRequireDefault(require("./model/FailureCategoryModel"));
|
|
942
|
+
var _GlobalCustomAttributePostApiModel = _interopRequireDefault(require("./model/GlobalCustomAttributePostApiModel"));
|
|
943
|
+
var _GlobalCustomAttributeUpdateApiModel = _interopRequireDefault(require("./model/GlobalCustomAttributeUpdateApiModel"));
|
|
865
944
|
var _GuidExtractionModel = _interopRequireDefault(require("./model/GuidExtractionModel"));
|
|
866
945
|
var _ImageResizeType = _interopRequireDefault(require("./model/ImageResizeType"));
|
|
867
946
|
var _Int32RangeSelectorModel = _interopRequireDefault(require("./model/Int32RangeSelectorModel"));
|
|
@@ -871,6 +950,9 @@ var _IterationModel = _interopRequireDefault(require("./model/IterationModel"));
|
|
|
871
950
|
var _LabelApiModel = _interopRequireDefault(require("./model/LabelApiModel"));
|
|
872
951
|
var _LabelApiResult = _interopRequireDefault(require("./model/LabelApiResult"));
|
|
873
952
|
var _LabelShortModel = _interopRequireDefault(require("./model/LabelShortModel"));
|
|
953
|
+
var _LayerApiModel = _interopRequireDefault(require("./model/LayerApiModel"));
|
|
954
|
+
var _LayerApiResult = _interopRequireDefault(require("./model/LayerApiResult"));
|
|
955
|
+
var _LayerSource = _interopRequireDefault(require("./model/LayerSource"));
|
|
874
956
|
var _LinkApiResult = _interopRequireDefault(require("./model/LinkApiResult"));
|
|
875
957
|
var _LinkCreateApiModel = _interopRequireDefault(require("./model/LinkCreateApiModel"));
|
|
876
958
|
var _LinkModel = _interopRequireDefault(require("./model/LinkModel"));
|
|
@@ -891,6 +973,7 @@ var _ParametersFilterApiModel = _interopRequireDefault(require("./model/Paramete
|
|
|
891
973
|
var _ProblemDetails = _interopRequireDefault(require("./model/ProblemDetails"));
|
|
892
974
|
var _ProjectApiResult = _interopRequireDefault(require("./model/ProjectApiResult"));
|
|
893
975
|
var _ProjectAttributesFilterModel = _interopRequireDefault(require("./model/ProjectAttributesFilterModel"));
|
|
976
|
+
var _ProjectShortestApiResult = _interopRequireDefault(require("./model/ProjectShortestApiResult"));
|
|
894
977
|
var _ProjectTypeModel = _interopRequireDefault(require("./model/ProjectTypeModel"));
|
|
895
978
|
var _ProjectsFilterModel = _interopRequireDefault(require("./model/ProjectsFilterModel"));
|
|
896
979
|
var _SectionModel = _interopRequireDefault(require("./model/SectionModel"));
|
|
@@ -938,6 +1021,7 @@ var _WorkflowStatusApiResult = _interopRequireDefault(require("./model/WorkflowS
|
|
|
938
1021
|
var _AttachmentsApi = _interopRequireDefault(require("./api/AttachmentsApi"));
|
|
939
1022
|
var _AutoTestsApi = _interopRequireDefault(require("./api/AutoTestsApi"));
|
|
940
1023
|
var _ConfigurationsApi = _interopRequireDefault(require("./api/ConfigurationsApi"));
|
|
1024
|
+
var _CustomAttributesApi = _interopRequireDefault(require("./api/CustomAttributesApi"));
|
|
941
1025
|
var _ParametersApi = _interopRequireDefault(require("./api/ParametersApi"));
|
|
942
1026
|
var _ProjectAttributesApi = _interopRequireDefault(require("./api/ProjectAttributesApi"));
|
|
943
1027
|
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
|
*/
|