testit-js-commons 4.2.0-TMS-5.8 → 5.0.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/ApiClient.js +683 -0
- package/lib/adapters-api/dist/api/AttachmentsApi.js +165 -0
- package/lib/adapters-api/dist/api/AutoTestsApi.js +536 -0
- package/lib/adapters-api/dist/api/ConfigurationsApi.js +91 -0
- package/lib/adapters-api/dist/api/ParametersApi.js +159 -0
- package/lib/adapters-api/dist/api/ProjectAttributesApi.js +140 -0
- package/lib/adapters-api/dist/api/ProjectSectionsApi.js +96 -0
- package/lib/adapters-api/dist/api/ProjectWorkItemsApi.js +99 -0
- package/lib/adapters-api/dist/api/ProjectsApi.js +200 -0
- package/lib/adapters-api/dist/api/SectionsApi.js +118 -0
- package/lib/adapters-api/dist/api/TestResultsApi.js +168 -0
- package/lib/adapters-api/dist/api/TestRunsApi.js +331 -0
- package/lib/adapters-api/dist/api/WorkItemsApi.js +170 -0
- package/lib/adapters-api/dist/api/WorkflowsApi.js +75 -0
- package/lib/adapters-api/dist/index.js +951 -0
- package/lib/adapters-api/dist/model/AssignAttachmentApiModel.js +89 -0
- package/lib/adapters-api/dist/model/AssignAutoTestCaseIdApiModel.js +89 -0
- package/lib/adapters-api/dist/model/AssignIterationApiModel.js +112 -0
- package/lib/adapters-api/dist/model/AttachmentApiResult.js +145 -0
- package/lib/adapters-api/dist/model/AttachmentModel.js +193 -0
- package/lib/adapters-api/dist/model/AttachmentPutModel.js +89 -0
- package/lib/adapters-api/dist/model/AttachmentPutModelAutoTestStepResultsModel.js +196 -0
- package/lib/adapters-api/dist/model/AttachmentUpdateRequest.js +89 -0
- package/lib/adapters-api/dist/model/AutoTest.js +327 -0
- package/lib/adapters-api/dist/model/AutoTestApiResult.js +323 -0
- package/lib/adapters-api/dist/model/AutoTestCaseApiModel.js +89 -0
- package/lib/adapters-api/dist/model/AutoTestCreateApiModel.js +323 -0
- package/lib/adapters-api/dist/model/AutoTestFilterApiModel.js +201 -0
- package/lib/adapters-api/dist/model/AutoTestIdModel.js +88 -0
- package/lib/adapters-api/dist/model/AutoTestModel.js +488 -0
- package/lib/adapters-api/dist/model/AutoTestResultReasonShort.js +99 -0
- package/lib/adapters-api/dist/model/AutoTestResultsForTestRunModel.js +334 -0
- package/lib/adapters-api/dist/model/AutoTestSearchApiModel.js +96 -0
- package/lib/adapters-api/dist/model/AutoTestSearchIncludeApiModel.js +93 -0
- package/lib/adapters-api/dist/model/AutoTestStep.js +123 -0
- package/lib/adapters-api/dist/model/AutoTestStepApiModel.js +123 -0
- package/lib/adapters-api/dist/model/AutoTestStepApiResult.js +123 -0
- package/lib/adapters-api/dist/model/AutoTestStepModel.js +123 -0
- package/lib/adapters-api/dist/model/AutoTestStepResult.js +196 -0
- package/lib/adapters-api/dist/model/AutoTestStepResultUpdateRequest.js +196 -0
- package/lib/adapters-api/dist/model/AutoTestUpdateApiModel.js +327 -0
- package/lib/adapters-api/dist/model/AutoTestWorkItemIdentifierApiResult.js +100 -0
- package/lib/adapters-api/dist/model/AvailableTestResultOutcome.js +67 -0
- package/lib/adapters-api/dist/model/ConfigurationFilterModel.js +114 -0
- package/lib/adapters-api/dist/model/ConfigurationModel.js +213 -0
- package/lib/adapters-api/dist/model/ConfigurationShortModel.js +102 -0
- package/lib/adapters-api/dist/model/CreateEmptyTestRunApiModel.js +185 -0
- package/lib/adapters-api/dist/model/CreateLinkApiModel.js +127 -0
- package/lib/adapters-api/dist/model/CreateParameterApiModel.js +117 -0
- package/lib/adapters-api/dist/model/CreateProjectApiModel.js +124 -0
- package/lib/adapters-api/dist/model/CreateStepApiModel.js +131 -0
- package/lib/adapters-api/dist/model/CreateWorkItemApiModel.js +384 -0
- package/lib/adapters-api/dist/model/CustomAttributeApiResult.js +184 -0
- package/lib/adapters-api/dist/model/CustomAttributeGetModel.js +184 -0
- package/lib/adapters-api/dist/model/CustomAttributeOptionApiResult.js +124 -0
- package/lib/adapters-api/dist/model/CustomAttributeOptionModel.js +124 -0
- package/lib/adapters-api/dist/model/CustomAttributePutModel.js +182 -0
- package/lib/adapters-api/dist/model/CustomAttributeType.js +73 -0
- package/lib/adapters-api/dist/model/CustomAttributeTypesEnum.js +73 -0
- package/lib/adapters-api/dist/model/DateTimeRangeSelectorModel.js +82 -0
- package/lib/adapters-api/dist/model/DeletionState.js +55 -0
- package/lib/adapters-api/dist/model/DetailedProjectApiResult.js +204 -0
- package/lib/adapters-api/dist/model/FailureCategoryModel.js +67 -0
- package/lib/adapters-api/dist/model/GuidExtractionModel.js +90 -0
- package/lib/adapters-api/dist/model/ImageResizeType.js +49 -0
- package/lib/adapters-api/dist/model/Int32RangeSelectorModel.js +82 -0
- package/lib/adapters-api/dist/model/Int64RangeSelectorModel.js +82 -0
- package/lib/adapters-api/dist/model/IterationApiResult.js +109 -0
- package/lib/adapters-api/dist/model/IterationModel.js +109 -0
- package/lib/adapters-api/dist/model/LabelApiModel.js +100 -0
- package/lib/adapters-api/dist/model/LabelApiResult.js +100 -0
- package/lib/adapters-api/dist/model/LabelShortModel.js +100 -0
- package/lib/adapters-api/dist/model/LinkApiResult.js +140 -0
- package/lib/adapters-api/dist/model/LinkCreateApiModel.js +127 -0
- package/lib/adapters-api/dist/model/LinkModel.js +149 -0
- package/lib/adapters-api/dist/model/LinkPostModel.js +137 -0
- package/lib/adapters-api/dist/model/LinkPutModel.js +149 -0
- package/lib/adapters-api/dist/model/LinkShortApiResult.js +126 -0
- package/lib/adapters-api/dist/model/LinkType.js +73 -0
- package/lib/adapters-api/dist/model/LinkUpdateApiModel.js +140 -0
- package/lib/adapters-api/dist/model/ManualRerunApiResult.js +84 -0
- package/lib/adapters-api/dist/model/ManualRerunSelectTestResultsApiModel.js +109 -0
- package/lib/adapters-api/dist/model/ManualRerunTestResultApiModel.js +81 -0
- package/lib/adapters-api/dist/model/Operation.js +110 -0
- package/lib/adapters-api/dist/model/ParameterApiResult.js +154 -0
- package/lib/adapters-api/dist/model/ParameterIterationModel.js +100 -0
- package/lib/adapters-api/dist/model/ParameterShortApiResult.js +132 -0
- package/lib/adapters-api/dist/model/ParameterShortModel.js +158 -0
- package/lib/adapters-api/dist/model/ParametersFilterApiModel.js +98 -0
- package/lib/adapters-api/dist/model/ProblemDetails.js +124 -0
- package/lib/adapters-api/dist/model/ProjectApiResult.js +165 -0
- package/lib/adapters-api/dist/model/ProjectAttributesFilterModel.js +132 -0
- package/lib/adapters-api/dist/model/ProjectTypeModel.js +49 -0
- package/lib/adapters-api/dist/model/ProjectsFilterModel.js +209 -0
- package/lib/adapters-api/dist/model/SectionModel.js +180 -0
- package/lib/adapters-api/dist/model/SectionPostModel.js +178 -0
- package/lib/adapters-api/dist/model/SectionWithStepsModel.js +242 -0
- package/lib/adapters-api/dist/model/SharedStepModel.js +145 -0
- package/lib/adapters-api/dist/model/SharedStepResultApiModel.js +102 -0
- package/lib/adapters-api/dist/model/StepCommentApiModel.js +207 -0
- package/lib/adapters-api/dist/model/StepModel.js +163 -0
- package/lib/adapters-api/dist/model/StepPostModel.js +126 -0
- package/lib/adapters-api/dist/model/StepResultApiModel.js +149 -0
- package/lib/adapters-api/dist/model/TagModel.js +88 -0
- package/lib/adapters-api/dist/model/TestResultLinkApiResult.js +153 -0
- package/lib/adapters-api/dist/model/TestResultOutcome.js +67 -0
- package/lib/adapters-api/dist/model/TestResultResponse.js +400 -0
- package/lib/adapters-api/dist/model/TestResultShortResponse.js +311 -0
- package/lib/adapters-api/dist/model/TestResultStepCommentUpdateRequest.js +152 -0
- package/lib/adapters-api/dist/model/TestResultUpdateRequest.js +285 -0
- package/lib/adapters-api/dist/model/TestResultsFilterApiModel.js +226 -0
- package/lib/adapters-api/dist/model/TestRunApiResult.js +196 -0
- package/lib/adapters-api/dist/model/TestRunState.js +61 -0
- package/lib/adapters-api/dist/model/TestStatusApiResult.js +114 -0
- package/lib/adapters-api/dist/model/TestStatusApiType.js +67 -0
- package/lib/adapters-api/dist/model/TestStatusModel.js +149 -0
- package/lib/adapters-api/dist/model/TestStatusType.js +67 -0
- package/lib/adapters-api/dist/model/UpdateEmptyTestRunApiModel.js +187 -0
- package/lib/adapters-api/dist/model/UpdateLinkApiModel.js +140 -0
- package/lib/adapters-api/dist/model/ValidationProblemDetails.js +144 -0
- package/lib/adapters-api/dist/model/WorkItemApiResult.js +499 -0
- package/lib/adapters-api/dist/model/WorkItemEntityTypeApiModel.js +55 -0
- package/lib/adapters-api/dist/model/WorkItemFilterApiModel.js +309 -0
- package/lib/adapters-api/dist/model/WorkItemIdApiModel.js +89 -0
- package/lib/adapters-api/dist/model/WorkItemParameterKeyApiModel.js +89 -0
- package/lib/adapters-api/dist/model/WorkItemParameterKeyApiResult.js +88 -0
- package/lib/adapters-api/dist/model/WorkItemPriorityApiModel.js +67 -0
- package/lib/adapters-api/dist/model/WorkItemPriorityModel.js +67 -0
- package/lib/adapters-api/dist/model/WorkItemSelectApiModel.js +90 -0
- package/lib/adapters-api/dist/model/WorkItemShortApiResult.js +316 -0
- package/lib/adapters-api/dist/model/WorkItemSourceTypeModel.js +49 -0
- package/lib/adapters-api/dist/model/WorkItemStateApiModel.js +55 -0
- package/lib/adapters-api/dist/model/WorkItemStates.js +55 -0
- package/lib/adapters-api/dist/model/WorkItemTypeModel.js +55 -0
- package/lib/adapters-api/dist/model/WorkflowApiResult.js +111 -0
- package/lib/adapters-api/dist/model/WorkflowStatusApiResult.js +114 -0
- package/lib/adapters-api/index.d.ts +8862 -0
- package/lib/common/base.converter.d.ts +16 -17
- package/lib/common/base.converter.js +12 -14
- package/lib/common/base.service.d.ts +1 -1
- package/lib/common/base.service.js +6 -36
- package/lib/services/attachments/attachments.service.d.ts +1 -2
- package/lib/services/attachments/attachments.service.js +7 -7
- package/lib/services/autotests/autotests.converter.d.ts +2 -3
- package/lib/services/autotests/autotests.converter.js +0 -5
- package/lib/services/autotests/autotests.service.d.ts +1 -2
- package/lib/services/autotests/autotests.service.js +11 -44
- package/lib/services/testresults/testresults.converter.d.ts +4 -5
- package/lib/services/testresults/testresults.converter.js +0 -15
- package/lib/services/testresults/testresults.service.d.ts +2 -3
- package/lib/services/testresults/testresults.service.js +16 -44
- package/lib/services/testresults/testresults.type.d.ts +1 -1
- package/lib/services/testruns/testruns.converter.d.ts +12 -13
- package/lib/services/testruns/testruns.converter.js +19 -8
- package/lib/services/testruns/testruns.service.d.ts +1 -2
- package/lib/services/testruns/testruns.service.js +13 -46
- package/package.json +7 -5
|
@@ -0,0 +1,536 @@
|
|
|
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 _AutoTestApiResult = _interopRequireDefault(require("../model/AutoTestApiResult"));
|
|
9
|
+
var _AutoTestCreateApiModel = _interopRequireDefault(require("../model/AutoTestCreateApiModel"));
|
|
10
|
+
var _AutoTestModel = _interopRequireDefault(require("../model/AutoTestModel"));
|
|
11
|
+
var _AutoTestSearchApiModel = _interopRequireDefault(require("../model/AutoTestSearchApiModel"));
|
|
12
|
+
var _AutoTestUpdateApiModel = _interopRequireDefault(require("../model/AutoTestUpdateApiModel"));
|
|
13
|
+
var _AutoTestWorkItemIdentifierApiResult = _interopRequireDefault(require("../model/AutoTestWorkItemIdentifierApiResult"));
|
|
14
|
+
var _Operation = _interopRequireDefault(require("../model/Operation"));
|
|
15
|
+
var _ProblemDetails = _interopRequireDefault(require("../model/ProblemDetails"));
|
|
16
|
+
var _ValidationProblemDetails = _interopRequireDefault(require("../model/ValidationProblemDetails"));
|
|
17
|
+
var _WorkItemIdApiModel = _interopRequireDefault(require("../model/WorkItemIdApiModel"));
|
|
18
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
|
+
/**
|
|
20
|
+
* API
|
|
21
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
22
|
+
*
|
|
23
|
+
* The version of the OpenAPI document: adapters
|
|
24
|
+
*
|
|
25
|
+
*
|
|
26
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
27
|
+
* https://openapi-generator.tech
|
|
28
|
+
* Do not edit the class manually.
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* AutoTests service.
|
|
34
|
+
* @module api/AutoTestsApi
|
|
35
|
+
* @version 1.0.0
|
|
36
|
+
*/
|
|
37
|
+
class AutoTestsApi {
|
|
38
|
+
/**
|
|
39
|
+
* Constructs a new AutoTestsApi.
|
|
40
|
+
* @alias module:api/AutoTestsApi
|
|
41
|
+
* @class
|
|
42
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
43
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
44
|
+
*/
|
|
45
|
+
constructor(apiClient) {
|
|
46
|
+
this.apiClient = apiClient || _ApiClient.default.instance;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Create multiple autotests
|
|
51
|
+
* @param {Object} opts Optional parameters
|
|
52
|
+
* @param {Array.<module:model/AutoTestCreateApiModel>} [autoTestCreateApiModel]
|
|
53
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/AutoTestApiResult>} and HTTP response
|
|
54
|
+
*/
|
|
55
|
+
adaptersAutoTestsBulkPostWithHttpInfo(opts) {
|
|
56
|
+
opts = opts || {};
|
|
57
|
+
let postBody = opts['autoTestCreateApiModel'];
|
|
58
|
+
let pathParams = {};
|
|
59
|
+
let queryParams = {};
|
|
60
|
+
let headerParams = {};
|
|
61
|
+
let formParams = {};
|
|
62
|
+
let authNames = ['PrivateToken', 'Cookies'];
|
|
63
|
+
let contentTypes = ['application/json'];
|
|
64
|
+
let accepts = ['application/json'];
|
|
65
|
+
let returnType = [_AutoTestApiResult.default];
|
|
66
|
+
return this.apiClient.callApi('/adapters/autoTests/bulk', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Create multiple autotests
|
|
71
|
+
* @param {Object} opts Optional parameters
|
|
72
|
+
* @param {Array.<module:model/AutoTestCreateApiModel>} opts.autoTestCreateApiModel
|
|
73
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/AutoTestApiResult>}
|
|
74
|
+
*/
|
|
75
|
+
adaptersAutoTestsBulkPost(opts) {
|
|
76
|
+
return this.adaptersAutoTestsBulkPostWithHttpInfo(opts).then(function (response_and_data) {
|
|
77
|
+
return response_and_data.data;
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Update multiple autotests
|
|
83
|
+
* @param {Object} opts Optional parameters
|
|
84
|
+
* @param {Array.<module:model/AutoTestUpdateApiModel>} [autoTestUpdateApiModel]
|
|
85
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
86
|
+
*/
|
|
87
|
+
adaptersAutoTestsBulkPutWithHttpInfo(opts) {
|
|
88
|
+
opts = opts || {};
|
|
89
|
+
let postBody = opts['autoTestUpdateApiModel'];
|
|
90
|
+
let pathParams = {};
|
|
91
|
+
let queryParams = {};
|
|
92
|
+
let headerParams = {};
|
|
93
|
+
let formParams = {};
|
|
94
|
+
let authNames = ['PrivateToken', 'Cookies'];
|
|
95
|
+
let contentTypes = ['application/json'];
|
|
96
|
+
let accepts = ['application/json'];
|
|
97
|
+
let returnType = null;
|
|
98
|
+
return this.apiClient.callApi('/adapters/autoTests/bulk', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Update multiple autotests
|
|
103
|
+
* @param {Object} opts Optional parameters
|
|
104
|
+
* @param {Array.<module:model/AutoTestUpdateApiModel>} opts.autoTestUpdateApiModel
|
|
105
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
106
|
+
*/
|
|
107
|
+
adaptersAutoTestsBulkPut(opts) {
|
|
108
|
+
return this.adaptersAutoTestsBulkPutWithHttpInfo(opts).then(function (response_and_data) {
|
|
109
|
+
return response_and_data.data;
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
|
|
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
|
+
/**
|
|
221
|
+
* Get autotest by internal or global ID
|
|
222
|
+
* @param {String} id Internal (UUID) or global (integer) identifier
|
|
223
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AutoTestApiResult} and HTTP response
|
|
224
|
+
*/
|
|
225
|
+
adaptersAutoTestsIdGetWithHttpInfo(id) {
|
|
226
|
+
let postBody = null;
|
|
227
|
+
// verify the required parameter 'id' is set
|
|
228
|
+
if (id === undefined || id === null) {
|
|
229
|
+
throw new Error("Missing the required parameter 'id' when calling adaptersAutoTestsIdGet");
|
|
230
|
+
}
|
|
231
|
+
let pathParams = {
|
|
232
|
+
'id': id
|
|
233
|
+
};
|
|
234
|
+
let queryParams = {};
|
|
235
|
+
let headerParams = {};
|
|
236
|
+
let formParams = {};
|
|
237
|
+
let authNames = ['PrivateToken', 'Cookies'];
|
|
238
|
+
let contentTypes = [];
|
|
239
|
+
let accepts = ['application/json'];
|
|
240
|
+
let returnType = _AutoTestApiResult.default;
|
|
241
|
+
return this.apiClient.callApi('/adapters/autoTests/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Get autotest by internal or global ID
|
|
246
|
+
* @param {String} id Internal (UUID) or global (integer) identifier
|
|
247
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AutoTestApiResult}
|
|
248
|
+
*/
|
|
249
|
+
adaptersAutoTestsIdGet(id) {
|
|
250
|
+
return this.adaptersAutoTestsIdGetWithHttpInfo(id).then(function (response_and_data) {
|
|
251
|
+
return response_and_data.data;
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Patch auto test
|
|
257
|
+
* See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details
|
|
258
|
+
* @param {String} id
|
|
259
|
+
* @param {Object} opts Optional parameters
|
|
260
|
+
* @param {Array.<module:model/Operation>} [operation]
|
|
261
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
262
|
+
*/
|
|
263
|
+
adaptersAutoTestsIdPatchWithHttpInfo(id, opts) {
|
|
264
|
+
opts = opts || {};
|
|
265
|
+
let postBody = opts['operation'];
|
|
266
|
+
// verify the required parameter 'id' is set
|
|
267
|
+
if (id === undefined || id === null) {
|
|
268
|
+
throw new Error("Missing the required parameter 'id' when calling adaptersAutoTestsIdPatch");
|
|
269
|
+
}
|
|
270
|
+
let pathParams = {
|
|
271
|
+
'id': id
|
|
272
|
+
};
|
|
273
|
+
let queryParams = {};
|
|
274
|
+
let headerParams = {};
|
|
275
|
+
let formParams = {};
|
|
276
|
+
let authNames = ['PrivateToken', 'Cookies'];
|
|
277
|
+
let contentTypes = ['application/json'];
|
|
278
|
+
let accepts = ['application/json'];
|
|
279
|
+
let returnType = null;
|
|
280
|
+
return this.apiClient.callApi('/adapters/autoTests/{id}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Patch auto test
|
|
285
|
+
* See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details
|
|
286
|
+
* @param {String} id
|
|
287
|
+
* @param {Object} opts Optional parameters
|
|
288
|
+
* @param {Array.<module:model/Operation>} opts.operation
|
|
289
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
290
|
+
*/
|
|
291
|
+
adaptersAutoTestsIdPatch(id, opts) {
|
|
292
|
+
return this.adaptersAutoTestsIdPatchWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
293
|
+
return response_and_data.data;
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Unlink autotest from work item
|
|
299
|
+
* @param {String} id Internal (UUID) or global (integer) identifier
|
|
300
|
+
* @param {Object} opts Optional parameters
|
|
301
|
+
* @param {String} [workItemId] Internal (UUID) or global (integer) identifier
|
|
302
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
303
|
+
*/
|
|
304
|
+
adaptersAutoTestsIdWorkItemsDeleteWithHttpInfo(id, opts) {
|
|
305
|
+
opts = opts || {};
|
|
306
|
+
let postBody = null;
|
|
307
|
+
// verify the required parameter 'id' is set
|
|
308
|
+
if (id === undefined || id === null) {
|
|
309
|
+
throw new Error("Missing the required parameter 'id' when calling adaptersAutoTestsIdWorkItemsDelete");
|
|
310
|
+
}
|
|
311
|
+
let pathParams = {
|
|
312
|
+
'id': id
|
|
313
|
+
};
|
|
314
|
+
let queryParams = {
|
|
315
|
+
'workItemId': opts['workItemId']
|
|
316
|
+
};
|
|
317
|
+
let headerParams = {};
|
|
318
|
+
let formParams = {};
|
|
319
|
+
let authNames = ['PrivateToken', 'Cookies'];
|
|
320
|
+
let contentTypes = [];
|
|
321
|
+
let accepts = ['application/json'];
|
|
322
|
+
let returnType = null;
|
|
323
|
+
return this.apiClient.callApi('/adapters/autoTests/{id}/work-items', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Unlink autotest from work item
|
|
328
|
+
* @param {String} id Internal (UUID) or global (integer) identifier
|
|
329
|
+
* @param {Object} opts Optional parameters
|
|
330
|
+
* @param {String} opts.workItemId Internal (UUID) or global (integer) identifier
|
|
331
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
332
|
+
*/
|
|
333
|
+
adaptersAutoTestsIdWorkItemsDelete(id, opts) {
|
|
334
|
+
return this.adaptersAutoTestsIdWorkItemsDeleteWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
335
|
+
return response_and_data.data;
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Get work items linked to autotest
|
|
341
|
+
* @param {String} id Internal (UUID) or global (integer) identifier
|
|
342
|
+
* @param {Object} opts Optional parameters
|
|
343
|
+
* @param {Boolean} [isDeleted]
|
|
344
|
+
* @param {Boolean} [isWorkItemDeleted = false)]
|
|
345
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/AutoTestWorkItemIdentifierApiResult>} and HTTP response
|
|
346
|
+
*/
|
|
347
|
+
adaptersAutoTestsIdWorkItemsGetWithHttpInfo(id, opts) {
|
|
348
|
+
opts = opts || {};
|
|
349
|
+
let postBody = null;
|
|
350
|
+
// verify the required parameter 'id' is set
|
|
351
|
+
if (id === undefined || id === null) {
|
|
352
|
+
throw new Error("Missing the required parameter 'id' when calling adaptersAutoTestsIdWorkItemsGet");
|
|
353
|
+
}
|
|
354
|
+
let pathParams = {
|
|
355
|
+
'id': id
|
|
356
|
+
};
|
|
357
|
+
let queryParams = {
|
|
358
|
+
'isDeleted': opts['isDeleted'],
|
|
359
|
+
'isWorkItemDeleted': opts['isWorkItemDeleted']
|
|
360
|
+
};
|
|
361
|
+
let headerParams = {};
|
|
362
|
+
let formParams = {};
|
|
363
|
+
let authNames = ['PrivateToken', 'Cookies'];
|
|
364
|
+
let contentTypes = [];
|
|
365
|
+
let accepts = ['application/json'];
|
|
366
|
+
let returnType = [_AutoTestWorkItemIdentifierApiResult.default];
|
|
367
|
+
return this.apiClient.callApi('/adapters/autoTests/{id}/work-items', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Get work items linked to autotest
|
|
372
|
+
* @param {String} id Internal (UUID) or global (integer) identifier
|
|
373
|
+
* @param {Object} opts Optional parameters
|
|
374
|
+
* @param {Boolean} opts.isDeleted
|
|
375
|
+
* @param {Boolean} opts.isWorkItemDeleted (default to false)
|
|
376
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/AutoTestWorkItemIdentifierApiResult>}
|
|
377
|
+
*/
|
|
378
|
+
adaptersAutoTestsIdWorkItemsGet(id, opts) {
|
|
379
|
+
return this.adaptersAutoTestsIdWorkItemsGetWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
380
|
+
return response_and_data.data;
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Link autotest with work items
|
|
386
|
+
* @param {String} id Internal (UUID) or global (integer) identifier
|
|
387
|
+
* @param {Object} opts Optional parameters
|
|
388
|
+
* @param {module:model/WorkItemIdApiModel} [workItemIdApiModel]
|
|
389
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
390
|
+
*/
|
|
391
|
+
adaptersAutoTestsIdWorkItemsPostWithHttpInfo(id, opts) {
|
|
392
|
+
opts = opts || {};
|
|
393
|
+
let postBody = opts['workItemIdApiModel'];
|
|
394
|
+
// verify the required parameter 'id' is set
|
|
395
|
+
if (id === undefined || id === null) {
|
|
396
|
+
throw new Error("Missing the required parameter 'id' when calling adaptersAutoTestsIdWorkItemsPost");
|
|
397
|
+
}
|
|
398
|
+
let pathParams = {
|
|
399
|
+
'id': id
|
|
400
|
+
};
|
|
401
|
+
let queryParams = {};
|
|
402
|
+
let headerParams = {};
|
|
403
|
+
let formParams = {};
|
|
404
|
+
let authNames = ['PrivateToken', 'Cookies'];
|
|
405
|
+
let contentTypes = ['application/json'];
|
|
406
|
+
let accepts = ['application/json'];
|
|
407
|
+
let returnType = null;
|
|
408
|
+
return this.apiClient.callApi('/adapters/autoTests/{id}/work-items', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Link autotest with work items
|
|
413
|
+
* @param {String} id Internal (UUID) or global (integer) identifier
|
|
414
|
+
* @param {Object} opts Optional parameters
|
|
415
|
+
* @param {module:model/WorkItemIdApiModel} opts.workItemIdApiModel
|
|
416
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
417
|
+
*/
|
|
418
|
+
adaptersAutoTestsIdWorkItemsPost(id, opts) {
|
|
419
|
+
return this.adaptersAutoTestsIdWorkItemsPostWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
420
|
+
return response_and_data.data;
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Create autotest
|
|
426
|
+
* @param {Object} opts Optional parameters
|
|
427
|
+
* @param {module:model/AutoTestCreateApiModel} [autoTestCreateApiModel]
|
|
428
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AutoTestApiResult} and HTTP response
|
|
429
|
+
*/
|
|
430
|
+
adaptersAutoTestsPostWithHttpInfo(opts) {
|
|
431
|
+
opts = opts || {};
|
|
432
|
+
let postBody = opts['autoTestCreateApiModel'];
|
|
433
|
+
let pathParams = {};
|
|
434
|
+
let queryParams = {};
|
|
435
|
+
let headerParams = {};
|
|
436
|
+
let formParams = {};
|
|
437
|
+
let authNames = ['PrivateToken', 'Cookies'];
|
|
438
|
+
let contentTypes = ['application/json'];
|
|
439
|
+
let accepts = ['application/json'];
|
|
440
|
+
let returnType = _AutoTestApiResult.default;
|
|
441
|
+
return this.apiClient.callApi('/adapters/autoTests', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Create autotest
|
|
446
|
+
* @param {Object} opts Optional parameters
|
|
447
|
+
* @param {module:model/AutoTestCreateApiModel} opts.autoTestCreateApiModel
|
|
448
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AutoTestApiResult}
|
|
449
|
+
*/
|
|
450
|
+
adaptersAutoTestsPost(opts) {
|
|
451
|
+
return this.adaptersAutoTestsPostWithHttpInfo(opts).then(function (response_and_data) {
|
|
452
|
+
return response_and_data.data;
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Update autotest
|
|
458
|
+
* @param {Object} opts Optional parameters
|
|
459
|
+
* @param {module:model/AutoTestUpdateApiModel} [autoTestUpdateApiModel]
|
|
460
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
461
|
+
*/
|
|
462
|
+
adaptersAutoTestsPutWithHttpInfo(opts) {
|
|
463
|
+
opts = opts || {};
|
|
464
|
+
let postBody = opts['autoTestUpdateApiModel'];
|
|
465
|
+
let pathParams = {};
|
|
466
|
+
let queryParams = {};
|
|
467
|
+
let headerParams = {};
|
|
468
|
+
let formParams = {};
|
|
469
|
+
let authNames = ['PrivateToken', 'Cookies'];
|
|
470
|
+
let contentTypes = ['application/json'];
|
|
471
|
+
let accepts = ['application/json'];
|
|
472
|
+
let returnType = null;
|
|
473
|
+
return this.apiClient.callApi('/adapters/autoTests', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Update autotest
|
|
478
|
+
* @param {Object} opts Optional parameters
|
|
479
|
+
* @param {module:model/AutoTestUpdateApiModel} opts.autoTestUpdateApiModel
|
|
480
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
481
|
+
*/
|
|
482
|
+
adaptersAutoTestsPut(opts) {
|
|
483
|
+
return this.adaptersAutoTestsPutWithHttpInfo(opts).then(function (response_and_data) {
|
|
484
|
+
return response_and_data.data;
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Search for autotests
|
|
490
|
+
* @param {Object} opts Optional parameters
|
|
491
|
+
* @param {Number} [skip] Amount of items to be skipped (offset)
|
|
492
|
+
* @param {Number} [take] Amount of items to be taken (limit)
|
|
493
|
+
* @param {String} [orderBy] SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC)
|
|
494
|
+
* @param {String} [searchField] Property name for searching
|
|
495
|
+
* @param {String} [searchValue] Value for searching
|
|
496
|
+
* @param {module:model/AutoTestSearchApiModel} [autoTestSearchApiModel]
|
|
497
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/AutoTestApiResult>} and HTTP response
|
|
498
|
+
*/
|
|
499
|
+
adaptersAutoTestsSearchPostWithHttpInfo(opts) {
|
|
500
|
+
opts = opts || {};
|
|
501
|
+
let postBody = opts['autoTestSearchApiModel'];
|
|
502
|
+
let pathParams = {};
|
|
503
|
+
let queryParams = {
|
|
504
|
+
'Skip': opts['skip'],
|
|
505
|
+
'Take': opts['take'],
|
|
506
|
+
'OrderBy': opts['orderBy'],
|
|
507
|
+
'SearchField': opts['searchField'],
|
|
508
|
+
'SearchValue': opts['searchValue']
|
|
509
|
+
};
|
|
510
|
+
let headerParams = {};
|
|
511
|
+
let formParams = {};
|
|
512
|
+
let authNames = ['PrivateToken', 'Cookies'];
|
|
513
|
+
let contentTypes = ['application/json'];
|
|
514
|
+
let accepts = ['application/json'];
|
|
515
|
+
let returnType = [_AutoTestApiResult.default];
|
|
516
|
+
return this.apiClient.callApi('/adapters/autoTests/search', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* Search for autotests
|
|
521
|
+
* @param {Object} opts Optional parameters
|
|
522
|
+
* @param {Number} opts.skip Amount of items to be skipped (offset)
|
|
523
|
+
* @param {Number} opts.take Amount of items to be taken (limit)
|
|
524
|
+
* @param {String} opts.orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC)
|
|
525
|
+
* @param {String} opts.searchField Property name for searching
|
|
526
|
+
* @param {String} opts.searchValue Value for searching
|
|
527
|
+
* @param {module:model/AutoTestSearchApiModel} opts.autoTestSearchApiModel
|
|
528
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/AutoTestApiResult>}
|
|
529
|
+
*/
|
|
530
|
+
adaptersAutoTestsSearchPost(opts) {
|
|
531
|
+
return this.adaptersAutoTestsSearchPostWithHttpInfo(opts).then(function (response_and_data) {
|
|
532
|
+
return response_and_data.data;
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
exports.default = AutoTestsApi;
|
|
@@ -0,0 +1,91 @@
|
|
|
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 _ConfigurationFilterModel = _interopRequireDefault(require("../model/ConfigurationFilterModel"));
|
|
9
|
+
var _ConfigurationModel = _interopRequireDefault(require("../model/ConfigurationModel"));
|
|
10
|
+
var _ProblemDetails = _interopRequireDefault(require("../model/ProblemDetails"));
|
|
11
|
+
var _ValidationProblemDetails = _interopRequireDefault(require("../model/ValidationProblemDetails"));
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
/**
|
|
14
|
+
* API
|
|
15
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
16
|
+
*
|
|
17
|
+
* The version of the OpenAPI document: adapters
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
21
|
+
* https://openapi-generator.tech
|
|
22
|
+
* Do not edit the class manually.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Configurations service.
|
|
28
|
+
* @module api/ConfigurationsApi
|
|
29
|
+
* @version 1.0.0
|
|
30
|
+
*/
|
|
31
|
+
class ConfigurationsApi {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new ConfigurationsApi.
|
|
34
|
+
* @alias module:api/ConfigurationsApi
|
|
35
|
+
* @class
|
|
36
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
37
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
38
|
+
*/
|
|
39
|
+
constructor(apiClient) {
|
|
40
|
+
this.apiClient = apiClient || _ApiClient.default.instance;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Search for configurations
|
|
45
|
+
* @param {Object} opts Optional parameters
|
|
46
|
+
* @param {Number} [skip] Amount of items to be skipped (offset)
|
|
47
|
+
* @param {Number} [take] Amount of items to be taken (limit)
|
|
48
|
+
* @param {String} [orderBy] SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC)
|
|
49
|
+
* @param {String} [searchField] Property name for searching
|
|
50
|
+
* @param {String} [searchValue] Value for searching
|
|
51
|
+
* @param {module:model/ConfigurationFilterModel} [configurationFilterModel]
|
|
52
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/ConfigurationModel>} and HTTP response
|
|
53
|
+
*/
|
|
54
|
+
adaptersConfigurationsSearchPostWithHttpInfo(opts) {
|
|
55
|
+
opts = opts || {};
|
|
56
|
+
let postBody = opts['configurationFilterModel'];
|
|
57
|
+
let pathParams = {};
|
|
58
|
+
let queryParams = {
|
|
59
|
+
'Skip': opts['skip'],
|
|
60
|
+
'Take': opts['take'],
|
|
61
|
+
'OrderBy': opts['orderBy'],
|
|
62
|
+
'SearchField': opts['searchField'],
|
|
63
|
+
'SearchValue': opts['searchValue']
|
|
64
|
+
};
|
|
65
|
+
let headerParams = {};
|
|
66
|
+
let formParams = {};
|
|
67
|
+
let authNames = ['PrivateToken', 'Cookies'];
|
|
68
|
+
let contentTypes = ['application/json'];
|
|
69
|
+
let accepts = ['application/json'];
|
|
70
|
+
let returnType = [_ConfigurationModel.default];
|
|
71
|
+
return this.apiClient.callApi('/adapters/configurations/search', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Search for configurations
|
|
76
|
+
* @param {Object} opts Optional parameters
|
|
77
|
+
* @param {Number} opts.skip Amount of items to be skipped (offset)
|
|
78
|
+
* @param {Number} opts.take Amount of items to be taken (limit)
|
|
79
|
+
* @param {String} opts.orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC)
|
|
80
|
+
* @param {String} opts.searchField Property name for searching
|
|
81
|
+
* @param {String} opts.searchValue Value for searching
|
|
82
|
+
* @param {module:model/ConfigurationFilterModel} opts.configurationFilterModel
|
|
83
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/ConfigurationModel>}
|
|
84
|
+
*/
|
|
85
|
+
adaptersConfigurationsSearchPost(opts) {
|
|
86
|
+
return this.adaptersConfigurationsSearchPostWithHttpInfo(opts).then(function (response_and_data) {
|
|
87
|
+
return response_and_data.data;
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
exports.default = ConfigurationsApi;
|