@griffin-app/griffin-hub-sdk 1.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/.openapi-generator/FILES +68 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +132 -0
- package/api.ts +2057 -0
- package/base.ts +62 -0
- package/common.ts +113 -0
- package/configuration.ts +121 -0
- package/dist/api.d.ts +1218 -0
- package/dist/api.js +1603 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +46 -0
- package/dist/common.d.ts +28 -0
- package/dist/common.js +124 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api.d.ts +1218 -0
- package/dist/esm/api.js +1579 -0
- package/dist/esm/base.d.ts +42 -0
- package/dist/esm/base.js +41 -0
- package/dist/esm/common.d.ts +28 -0
- package/dist/esm/common.js +112 -0
- package/dist/esm/configuration.d.ts +98 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +15 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/docs/AgentsApi.md +265 -0
- package/docs/AgentsGet200Response.md +22 -0
- package/docs/AgentsGet200ResponseDataInner.md +30 -0
- package/docs/AgentsIdHeartbeatPost200Response.md +20 -0
- package/docs/AgentsIdHeartbeatPost404Response.md +20 -0
- package/docs/AgentsLocationsGet200Response.md +20 -0
- package/docs/AgentsRegisterPost200Response.md +30 -0
- package/docs/AgentsRegisterPostRequest.md +22 -0
- package/docs/Assertion.md +30 -0
- package/docs/Assertion1.md +30 -0
- package/docs/Assertion1AnyOf.md +28 -0
- package/docs/Assertion1AnyOf1.md +24 -0
- package/docs/Assertion1AnyOf2.md +24 -0
- package/docs/Assertions.md +24 -0
- package/docs/Assertions1.md +24 -0
- package/docs/BinaryPredicate.md +22 -0
- package/docs/BinaryPredicate1.md +22 -0
- package/docs/BinaryPredicateOperator.md +30 -0
- package/docs/ConfigApi.md +330 -0
- package/docs/ConfigGet200Response.md +20 -0
- package/docs/ConfigOrganizationIdEnvironmentTargetsTargetKeyGet200Response.md +20 -0
- package/docs/ConfigOrganizationIdEnvironmentTargetsTargetKeyGet200ResponseData.md +20 -0
- package/docs/ConfigOrganizationIdEnvironmentTargetsTargetKeyPut200Response.md +20 -0
- package/docs/ConfigOrganizationIdEnvironmentTargetsTargetKeyPut200ResponseData.md +30 -0
- package/docs/ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest.md +20 -0
- package/docs/DefaultApi.md +51 -0
- package/docs/Edge.md +22 -0
- package/docs/Edge1.md +22 -0
- package/docs/Endpoint.md +34 -0
- package/docs/Endpoint1.md +34 -0
- package/docs/Endpoint1Base.md +22 -0
- package/docs/Endpoint1HeadersValue.md +20 -0
- package/docs/Endpoint1HeadersValueAnyOf.md +20 -0
- package/docs/Endpoint1HeadersValueAnyOfSecret.md +26 -0
- package/docs/Frequency.md +22 -0
- package/docs/Frequency1.md +22 -0
- package/docs/HttpMethod.md +24 -0
- package/docs/JSONAssertion.md +26 -0
- package/docs/JSONAssertion1Predicate.md +22 -0
- package/docs/Node.md +38 -0
- package/docs/Node1.md +38 -0
- package/docs/PlanApi.md +132 -0
- package/docs/PlanGet200Response.md +26 -0
- package/docs/PlanPost201Response.md +20 -0
- package/docs/ResponseFormat.md +12 -0
- package/docs/RunsApi.md +260 -0
- package/docs/RunsGet200Response.md +26 -0
- package/docs/RunsGet200ResponseDataInner.md +42 -0
- package/docs/RunsIdGet200Response.md +20 -0
- package/docs/RunsIdGet200ResponseData.md +42 -0
- package/docs/RunsIdPatchRequest.md +28 -0
- package/docs/RunsTriggerPlanIdPostRequest.md +20 -0
- package/docs/TestPlanV1.md +38 -0
- package/docs/UnaryPredicate.md +18 -0
- package/docs/Wait.md +24 -0
- package/docs/Wait1.md +24 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +33 -0
- package/scripts/generate_sdk.sh +55 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
package/dist/api.js
ADDED
|
@@ -0,0 +1,1603 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* griffin-runner API
|
|
6
|
+
* API for managing and running test plans
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.DefaultApiAxiosParamCreator = exports.ConfigApi = exports.ConfigApiFactory = exports.ConfigApiFp = exports.ConfigApiAxiosParamCreator = exports.AgentsGetStatusEnum = exports.AgentsApi = exports.AgentsApiFactory = exports.AgentsApiFp = exports.AgentsApiAxiosParamCreator = exports.Wait1TypeEnum = exports.WaitTypeEnum = exports.UnaryPredicate = exports.TestPlanV1VersionEnum = exports.RunsIdPatchRequestStatusEnum = exports.RunsIdGet200ResponseDataTriggeredByEnum = exports.RunsIdGet200ResponseDataStatusEnum = exports.RunsGet200ResponseDataInnerTriggeredByEnum = exports.RunsGet200ResponseDataInnerStatusEnum = exports.ResponseFormat = exports.Node1ResponseFormatEnum = exports.Node1MethodEnum = exports.Node1TypeEnum = exports.JSONAssertion1PredicateOperatorEnum = exports.JSONAssertionAccessorEnum = exports.HttpMethod = exports.Frequency1UnitEnum = exports.FrequencyUnitEnum = exports.Endpoint1BaseTypeEnum = exports.Endpoint1ResponseFormatEnum = exports.Endpoint1MethodEnum = exports.Endpoint1TypeEnum = exports.EndpointResponseFormatEnum = exports.EndpointMethodEnum = exports.EndpointTypeEnum = exports.BinaryPredicateOperator = exports.BinaryPredicate1OperatorEnum = exports.BinaryPredicateOperatorEnum = exports.Assertions1TypeEnum = exports.AssertionsTypeEnum = exports.Assertion1AnyOf2AssertionTypeEnum = exports.Assertion1AnyOf1AssertionTypeEnum = exports.Assertion1AnyOfAccessorEnum = exports.Assertion1AnyOfAssertionTypeEnum = exports.Assertion1AccessorEnum = exports.Assertion1AssertionTypeEnum = exports.AssertionAccessorEnum = exports.AssertionAssertionTypeEnum = exports.AgentsRegisterPost200ResponseStatusEnum = exports.AgentsGet200ResponseDataInnerStatusEnum = void 0;
|
|
26
|
+
exports.RunsGetStatusEnum = exports.RunsApi = exports.RunsApiFactory = exports.RunsApiFp = exports.RunsApiAxiosParamCreator = exports.PlanApi = exports.PlanApiFactory = exports.PlanApiFp = exports.PlanApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = void 0;
|
|
27
|
+
const axios_1 = require("axios");
|
|
28
|
+
// Some imports not used depending on template conditions
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
const common_1 = require("./common");
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
const base_1 = require("./base");
|
|
33
|
+
exports.AgentsGet200ResponseDataInnerStatusEnum = {
|
|
34
|
+
Online: 'online',
|
|
35
|
+
Offline: 'offline'
|
|
36
|
+
};
|
|
37
|
+
exports.AgentsRegisterPost200ResponseStatusEnum = {
|
|
38
|
+
Online: 'online',
|
|
39
|
+
Offline: 'offline'
|
|
40
|
+
};
|
|
41
|
+
exports.AssertionAssertionTypeEnum = {
|
|
42
|
+
Text: 'TEXT'
|
|
43
|
+
};
|
|
44
|
+
exports.AssertionAccessorEnum = {
|
|
45
|
+
Body: 'body',
|
|
46
|
+
Headers: 'headers',
|
|
47
|
+
Status: 'status'
|
|
48
|
+
};
|
|
49
|
+
exports.Assertion1AssertionTypeEnum = {
|
|
50
|
+
Text: 'TEXT'
|
|
51
|
+
};
|
|
52
|
+
exports.Assertion1AccessorEnum = {
|
|
53
|
+
Body: 'body',
|
|
54
|
+
Headers: 'headers',
|
|
55
|
+
Status: 'status'
|
|
56
|
+
};
|
|
57
|
+
exports.Assertion1AnyOfAssertionTypeEnum = {
|
|
58
|
+
Json: 'JSON'
|
|
59
|
+
};
|
|
60
|
+
exports.Assertion1AnyOfAccessorEnum = {
|
|
61
|
+
Body: 'body',
|
|
62
|
+
Headers: 'headers',
|
|
63
|
+
Status: 'status'
|
|
64
|
+
};
|
|
65
|
+
exports.Assertion1AnyOf1AssertionTypeEnum = {
|
|
66
|
+
Xml: 'XML'
|
|
67
|
+
};
|
|
68
|
+
exports.Assertion1AnyOf2AssertionTypeEnum = {
|
|
69
|
+
Text: 'TEXT'
|
|
70
|
+
};
|
|
71
|
+
exports.AssertionsTypeEnum = {
|
|
72
|
+
Assertion: 'ASSERTION'
|
|
73
|
+
};
|
|
74
|
+
exports.Assertions1TypeEnum = {
|
|
75
|
+
Assertion: 'ASSERTION'
|
|
76
|
+
};
|
|
77
|
+
exports.BinaryPredicateOperatorEnum = {
|
|
78
|
+
Equal: 'EQUAL',
|
|
79
|
+
NotEqual: 'NOT_EQUAL',
|
|
80
|
+
GreaterThan: 'GREATER_THAN',
|
|
81
|
+
LessThan: 'LESS_THAN',
|
|
82
|
+
GreaterThanOrEqual: 'GREATER_THAN_OR_EQUAL',
|
|
83
|
+
LessThanOrEqual: 'LESS_THAN_OR_EQUAL',
|
|
84
|
+
Contains: 'CONTAINS',
|
|
85
|
+
NotContains: 'NOT_CONTAINS',
|
|
86
|
+
StartsWith: 'STARTS_WITH',
|
|
87
|
+
EndsWith: 'ENDS_WITH',
|
|
88
|
+
NotStartsWith: 'NOT_STARTS_WITH',
|
|
89
|
+
NotEndsWith: 'NOT_ENDS_WITH'
|
|
90
|
+
};
|
|
91
|
+
exports.BinaryPredicate1OperatorEnum = {
|
|
92
|
+
Equal: 'EQUAL',
|
|
93
|
+
NotEqual: 'NOT_EQUAL',
|
|
94
|
+
GreaterThan: 'GREATER_THAN',
|
|
95
|
+
LessThan: 'LESS_THAN',
|
|
96
|
+
GreaterThanOrEqual: 'GREATER_THAN_OR_EQUAL',
|
|
97
|
+
LessThanOrEqual: 'LESS_THAN_OR_EQUAL',
|
|
98
|
+
Contains: 'CONTAINS',
|
|
99
|
+
NotContains: 'NOT_CONTAINS',
|
|
100
|
+
StartsWith: 'STARTS_WITH',
|
|
101
|
+
EndsWith: 'ENDS_WITH',
|
|
102
|
+
NotStartsWith: 'NOT_STARTS_WITH',
|
|
103
|
+
NotEndsWith: 'NOT_ENDS_WITH'
|
|
104
|
+
};
|
|
105
|
+
exports.BinaryPredicateOperator = {
|
|
106
|
+
Equal: 'EQUAL',
|
|
107
|
+
NotEqual: 'NOT_EQUAL',
|
|
108
|
+
GreaterThan: 'GREATER_THAN',
|
|
109
|
+
LessThan: 'LESS_THAN',
|
|
110
|
+
GreaterThanOrEqual: 'GREATER_THAN_OR_EQUAL',
|
|
111
|
+
LessThanOrEqual: 'LESS_THAN_OR_EQUAL',
|
|
112
|
+
Contains: 'CONTAINS',
|
|
113
|
+
NotContains: 'NOT_CONTAINS',
|
|
114
|
+
StartsWith: 'STARTS_WITH',
|
|
115
|
+
EndsWith: 'ENDS_WITH',
|
|
116
|
+
NotStartsWith: 'NOT_STARTS_WITH',
|
|
117
|
+
NotEndsWith: 'NOT_ENDS_WITH'
|
|
118
|
+
};
|
|
119
|
+
exports.EndpointTypeEnum = {
|
|
120
|
+
Endpoint: 'ENDPOINT'
|
|
121
|
+
};
|
|
122
|
+
exports.EndpointMethodEnum = {
|
|
123
|
+
Get: 'GET',
|
|
124
|
+
Post: 'POST',
|
|
125
|
+
Put: 'PUT',
|
|
126
|
+
Delete: 'DELETE',
|
|
127
|
+
Patch: 'PATCH',
|
|
128
|
+
Head: 'HEAD',
|
|
129
|
+
Options: 'OPTIONS',
|
|
130
|
+
Connect: 'CONNECT',
|
|
131
|
+
Trace: 'TRACE'
|
|
132
|
+
};
|
|
133
|
+
exports.EndpointResponseFormatEnum = {
|
|
134
|
+
Json: 'JSON',
|
|
135
|
+
Xml: 'XML',
|
|
136
|
+
Text: 'TEXT'
|
|
137
|
+
};
|
|
138
|
+
exports.Endpoint1TypeEnum = {
|
|
139
|
+
Endpoint: 'ENDPOINT'
|
|
140
|
+
};
|
|
141
|
+
exports.Endpoint1MethodEnum = {
|
|
142
|
+
Get: 'GET',
|
|
143
|
+
Post: 'POST',
|
|
144
|
+
Put: 'PUT',
|
|
145
|
+
Delete: 'DELETE',
|
|
146
|
+
Patch: 'PATCH',
|
|
147
|
+
Head: 'HEAD',
|
|
148
|
+
Options: 'OPTIONS',
|
|
149
|
+
Connect: 'CONNECT',
|
|
150
|
+
Trace: 'TRACE'
|
|
151
|
+
};
|
|
152
|
+
exports.Endpoint1ResponseFormatEnum = {
|
|
153
|
+
Json: 'JSON',
|
|
154
|
+
Xml: 'XML',
|
|
155
|
+
Text: 'TEXT'
|
|
156
|
+
};
|
|
157
|
+
exports.Endpoint1BaseTypeEnum = {
|
|
158
|
+
Target: 'target'
|
|
159
|
+
};
|
|
160
|
+
exports.FrequencyUnitEnum = {
|
|
161
|
+
Minute: 'MINUTE',
|
|
162
|
+
Hour: 'HOUR',
|
|
163
|
+
Day: 'DAY'
|
|
164
|
+
};
|
|
165
|
+
exports.Frequency1UnitEnum = {
|
|
166
|
+
Minute: 'MINUTE',
|
|
167
|
+
Hour: 'HOUR',
|
|
168
|
+
Day: 'DAY'
|
|
169
|
+
};
|
|
170
|
+
exports.HttpMethod = {
|
|
171
|
+
Get: 'GET',
|
|
172
|
+
Post: 'POST',
|
|
173
|
+
Put: 'PUT',
|
|
174
|
+
Delete: 'DELETE',
|
|
175
|
+
Patch: 'PATCH',
|
|
176
|
+
Head: 'HEAD',
|
|
177
|
+
Options: 'OPTIONS',
|
|
178
|
+
Connect: 'CONNECT',
|
|
179
|
+
Trace: 'TRACE'
|
|
180
|
+
};
|
|
181
|
+
exports.JSONAssertionAccessorEnum = {
|
|
182
|
+
Body: 'body',
|
|
183
|
+
Headers: 'headers',
|
|
184
|
+
Status: 'status'
|
|
185
|
+
};
|
|
186
|
+
exports.JSONAssertion1PredicateOperatorEnum = {
|
|
187
|
+
Equal: 'EQUAL',
|
|
188
|
+
NotEqual: 'NOT_EQUAL',
|
|
189
|
+
GreaterThan: 'GREATER_THAN',
|
|
190
|
+
LessThan: 'LESS_THAN',
|
|
191
|
+
GreaterThanOrEqual: 'GREATER_THAN_OR_EQUAL',
|
|
192
|
+
LessThanOrEqual: 'LESS_THAN_OR_EQUAL',
|
|
193
|
+
Contains: 'CONTAINS',
|
|
194
|
+
NotContains: 'NOT_CONTAINS',
|
|
195
|
+
StartsWith: 'STARTS_WITH',
|
|
196
|
+
EndsWith: 'ENDS_WITH',
|
|
197
|
+
NotStartsWith: 'NOT_STARTS_WITH',
|
|
198
|
+
NotEndsWith: 'NOT_ENDS_WITH'
|
|
199
|
+
};
|
|
200
|
+
exports.Node1TypeEnum = {
|
|
201
|
+
Endpoint: 'ENDPOINT',
|
|
202
|
+
Wait: 'WAIT',
|
|
203
|
+
Assertion: 'ASSERTION'
|
|
204
|
+
};
|
|
205
|
+
exports.Node1MethodEnum = {
|
|
206
|
+
Get: 'GET',
|
|
207
|
+
Post: 'POST',
|
|
208
|
+
Put: 'PUT',
|
|
209
|
+
Delete: 'DELETE',
|
|
210
|
+
Patch: 'PATCH',
|
|
211
|
+
Head: 'HEAD',
|
|
212
|
+
Options: 'OPTIONS',
|
|
213
|
+
Connect: 'CONNECT',
|
|
214
|
+
Trace: 'TRACE'
|
|
215
|
+
};
|
|
216
|
+
exports.Node1ResponseFormatEnum = {
|
|
217
|
+
Json: 'JSON',
|
|
218
|
+
Xml: 'XML',
|
|
219
|
+
Text: 'TEXT'
|
|
220
|
+
};
|
|
221
|
+
exports.ResponseFormat = {
|
|
222
|
+
Json: 'JSON',
|
|
223
|
+
Xml: 'XML',
|
|
224
|
+
Text: 'TEXT'
|
|
225
|
+
};
|
|
226
|
+
exports.RunsGet200ResponseDataInnerStatusEnum = {
|
|
227
|
+
Pending: 'pending',
|
|
228
|
+
Running: 'running',
|
|
229
|
+
Completed: 'completed',
|
|
230
|
+
Failed: 'failed'
|
|
231
|
+
};
|
|
232
|
+
exports.RunsGet200ResponseDataInnerTriggeredByEnum = {
|
|
233
|
+
Schedule: 'schedule',
|
|
234
|
+
Manual: 'manual',
|
|
235
|
+
Api: 'api'
|
|
236
|
+
};
|
|
237
|
+
exports.RunsIdGet200ResponseDataStatusEnum = {
|
|
238
|
+
Pending: 'pending',
|
|
239
|
+
Running: 'running',
|
|
240
|
+
Completed: 'completed',
|
|
241
|
+
Failed: 'failed'
|
|
242
|
+
};
|
|
243
|
+
exports.RunsIdGet200ResponseDataTriggeredByEnum = {
|
|
244
|
+
Schedule: 'schedule',
|
|
245
|
+
Manual: 'manual',
|
|
246
|
+
Api: 'api'
|
|
247
|
+
};
|
|
248
|
+
exports.RunsIdPatchRequestStatusEnum = {
|
|
249
|
+
Pending: 'pending',
|
|
250
|
+
Running: 'running',
|
|
251
|
+
Completed: 'completed',
|
|
252
|
+
Failed: 'failed'
|
|
253
|
+
};
|
|
254
|
+
exports.TestPlanV1VersionEnum = {
|
|
255
|
+
_10: '1.0'
|
|
256
|
+
};
|
|
257
|
+
exports.UnaryPredicate = {
|
|
258
|
+
IsNull: 'IS_NULL',
|
|
259
|
+
IsNotNull: 'IS_NOT_NULL',
|
|
260
|
+
IsTrue: 'IS_TRUE',
|
|
261
|
+
IsFalse: 'IS_FALSE',
|
|
262
|
+
IsEmpty: 'IS_EMPTY',
|
|
263
|
+
IsNotEmpty: 'IS_NOT_EMPTY'
|
|
264
|
+
};
|
|
265
|
+
exports.WaitTypeEnum = {
|
|
266
|
+
Wait: 'WAIT'
|
|
267
|
+
};
|
|
268
|
+
exports.Wait1TypeEnum = {
|
|
269
|
+
Wait: 'WAIT'
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* AgentsApi - axios parameter creator
|
|
273
|
+
*/
|
|
274
|
+
const AgentsApiAxiosParamCreator = function (configuration) {
|
|
275
|
+
return {
|
|
276
|
+
/**
|
|
277
|
+
* List all agents with optional filtering
|
|
278
|
+
* @param {string} [location] Filter by location
|
|
279
|
+
* @param {AgentsGetStatusEnum} [status] Filter by status
|
|
280
|
+
* @param {*} [options] Override http request option.
|
|
281
|
+
* @throws {RequiredError}
|
|
282
|
+
*/
|
|
283
|
+
agentsGet: (location_1, status_1, ...args_1) => __awaiter(this, [location_1, status_1, ...args_1], void 0, function* (location, status, options = {}) {
|
|
284
|
+
const localVarPath = `/agents/`;
|
|
285
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
286
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
287
|
+
let baseOptions;
|
|
288
|
+
if (configuration) {
|
|
289
|
+
baseOptions = configuration.baseOptions;
|
|
290
|
+
}
|
|
291
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
292
|
+
const localVarHeaderParameter = {};
|
|
293
|
+
const localVarQueryParameter = {};
|
|
294
|
+
if (location !== undefined) {
|
|
295
|
+
localVarQueryParameter['location'] = location;
|
|
296
|
+
}
|
|
297
|
+
if (status !== undefined) {
|
|
298
|
+
localVarQueryParameter['status'] = status;
|
|
299
|
+
}
|
|
300
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
301
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
302
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
303
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
304
|
+
return {
|
|
305
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
306
|
+
options: localVarRequestOptions,
|
|
307
|
+
};
|
|
308
|
+
}),
|
|
309
|
+
/**
|
|
310
|
+
* Deregister an agent
|
|
311
|
+
* @param {string} id Agent ID
|
|
312
|
+
* @param {*} [options] Override http request option.
|
|
313
|
+
* @throws {RequiredError}
|
|
314
|
+
*/
|
|
315
|
+
agentsIdDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
316
|
+
// verify required parameter 'id' is not null or undefined
|
|
317
|
+
(0, common_1.assertParamExists)('agentsIdDelete', 'id', id);
|
|
318
|
+
const localVarPath = `/agents/{id}`
|
|
319
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
320
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
321
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
322
|
+
let baseOptions;
|
|
323
|
+
if (configuration) {
|
|
324
|
+
baseOptions = configuration.baseOptions;
|
|
325
|
+
}
|
|
326
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
327
|
+
const localVarHeaderParameter = {};
|
|
328
|
+
const localVarQueryParameter = {};
|
|
329
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
330
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
331
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
332
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
333
|
+
return {
|
|
334
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
335
|
+
options: localVarRequestOptions,
|
|
336
|
+
};
|
|
337
|
+
}),
|
|
338
|
+
/**
|
|
339
|
+
* Record a heartbeat from an agent
|
|
340
|
+
* @param {string} id Agent ID
|
|
341
|
+
* @param {*} [options] Override http request option.
|
|
342
|
+
* @throws {RequiredError}
|
|
343
|
+
*/
|
|
344
|
+
agentsIdHeartbeatPost: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
345
|
+
// verify required parameter 'id' is not null or undefined
|
|
346
|
+
(0, common_1.assertParamExists)('agentsIdHeartbeatPost', 'id', id);
|
|
347
|
+
const localVarPath = `/agents/{id}/heartbeat`
|
|
348
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
349
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
350
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
351
|
+
let baseOptions;
|
|
352
|
+
if (configuration) {
|
|
353
|
+
baseOptions = configuration.baseOptions;
|
|
354
|
+
}
|
|
355
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
356
|
+
const localVarHeaderParameter = {};
|
|
357
|
+
const localVarQueryParameter = {};
|
|
358
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
359
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
360
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
361
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
362
|
+
return {
|
|
363
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
364
|
+
options: localVarRequestOptions,
|
|
365
|
+
};
|
|
366
|
+
}),
|
|
367
|
+
/**
|
|
368
|
+
* Get all registered locations (with at least one online agent)
|
|
369
|
+
* @param {*} [options] Override http request option.
|
|
370
|
+
* @throws {RequiredError}
|
|
371
|
+
*/
|
|
372
|
+
agentsLocationsGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
373
|
+
const localVarPath = `/agents/locations`;
|
|
374
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
375
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
376
|
+
let baseOptions;
|
|
377
|
+
if (configuration) {
|
|
378
|
+
baseOptions = configuration.baseOptions;
|
|
379
|
+
}
|
|
380
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
381
|
+
const localVarHeaderParameter = {};
|
|
382
|
+
const localVarQueryParameter = {};
|
|
383
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
384
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
385
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
386
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
387
|
+
return {
|
|
388
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
389
|
+
options: localVarRequestOptions,
|
|
390
|
+
};
|
|
391
|
+
}),
|
|
392
|
+
/**
|
|
393
|
+
* Register a new agent with the hub
|
|
394
|
+
* @param {AgentsRegisterPostRequest} agentsRegisterPostRequest
|
|
395
|
+
* @param {*} [options] Override http request option.
|
|
396
|
+
* @throws {RequiredError}
|
|
397
|
+
*/
|
|
398
|
+
agentsRegisterPost: (agentsRegisterPostRequest_1, ...args_1) => __awaiter(this, [agentsRegisterPostRequest_1, ...args_1], void 0, function* (agentsRegisterPostRequest, options = {}) {
|
|
399
|
+
// verify required parameter 'agentsRegisterPostRequest' is not null or undefined
|
|
400
|
+
(0, common_1.assertParamExists)('agentsRegisterPost', 'agentsRegisterPostRequest', agentsRegisterPostRequest);
|
|
401
|
+
const localVarPath = `/agents/register`;
|
|
402
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
403
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
404
|
+
let baseOptions;
|
|
405
|
+
if (configuration) {
|
|
406
|
+
baseOptions = configuration.baseOptions;
|
|
407
|
+
}
|
|
408
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
409
|
+
const localVarHeaderParameter = {};
|
|
410
|
+
const localVarQueryParameter = {};
|
|
411
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
412
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
413
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
414
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
415
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
416
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(agentsRegisterPostRequest, localVarRequestOptions, configuration);
|
|
417
|
+
return {
|
|
418
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
419
|
+
options: localVarRequestOptions,
|
|
420
|
+
};
|
|
421
|
+
}),
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
exports.AgentsApiAxiosParamCreator = AgentsApiAxiosParamCreator;
|
|
425
|
+
/**
|
|
426
|
+
* AgentsApi - functional programming interface
|
|
427
|
+
*/
|
|
428
|
+
const AgentsApiFp = function (configuration) {
|
|
429
|
+
const localVarAxiosParamCreator = (0, exports.AgentsApiAxiosParamCreator)(configuration);
|
|
430
|
+
return {
|
|
431
|
+
/**
|
|
432
|
+
* List all agents with optional filtering
|
|
433
|
+
* @param {string} [location] Filter by location
|
|
434
|
+
* @param {AgentsGetStatusEnum} [status] Filter by status
|
|
435
|
+
* @param {*} [options] Override http request option.
|
|
436
|
+
* @throws {RequiredError}
|
|
437
|
+
*/
|
|
438
|
+
agentsGet(location, status, options) {
|
|
439
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
440
|
+
var _a, _b, _c;
|
|
441
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.agentsGet(location, status, options);
|
|
442
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
443
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentsApi.agentsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
444
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
445
|
+
});
|
|
446
|
+
},
|
|
447
|
+
/**
|
|
448
|
+
* Deregister an agent
|
|
449
|
+
* @param {string} id Agent ID
|
|
450
|
+
* @param {*} [options] Override http request option.
|
|
451
|
+
* @throws {RequiredError}
|
|
452
|
+
*/
|
|
453
|
+
agentsIdDelete(id, options) {
|
|
454
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
455
|
+
var _a, _b, _c;
|
|
456
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.agentsIdDelete(id, options);
|
|
457
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
458
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentsApi.agentsIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
459
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
460
|
+
});
|
|
461
|
+
},
|
|
462
|
+
/**
|
|
463
|
+
* Record a heartbeat from an agent
|
|
464
|
+
* @param {string} id Agent ID
|
|
465
|
+
* @param {*} [options] Override http request option.
|
|
466
|
+
* @throws {RequiredError}
|
|
467
|
+
*/
|
|
468
|
+
agentsIdHeartbeatPost(id, options) {
|
|
469
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
470
|
+
var _a, _b, _c;
|
|
471
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.agentsIdHeartbeatPost(id, options);
|
|
472
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
473
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentsApi.agentsIdHeartbeatPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
474
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
475
|
+
});
|
|
476
|
+
},
|
|
477
|
+
/**
|
|
478
|
+
* Get all registered locations (with at least one online agent)
|
|
479
|
+
* @param {*} [options] Override http request option.
|
|
480
|
+
* @throws {RequiredError}
|
|
481
|
+
*/
|
|
482
|
+
agentsLocationsGet(options) {
|
|
483
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
484
|
+
var _a, _b, _c;
|
|
485
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.agentsLocationsGet(options);
|
|
486
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
487
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentsApi.agentsLocationsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
488
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
489
|
+
});
|
|
490
|
+
},
|
|
491
|
+
/**
|
|
492
|
+
* Register a new agent with the hub
|
|
493
|
+
* @param {AgentsRegisterPostRequest} agentsRegisterPostRequest
|
|
494
|
+
* @param {*} [options] Override http request option.
|
|
495
|
+
* @throws {RequiredError}
|
|
496
|
+
*/
|
|
497
|
+
agentsRegisterPost(agentsRegisterPostRequest, options) {
|
|
498
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
499
|
+
var _a, _b, _c;
|
|
500
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.agentsRegisterPost(agentsRegisterPostRequest, options);
|
|
501
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
502
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentsApi.agentsRegisterPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
503
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
504
|
+
});
|
|
505
|
+
},
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
exports.AgentsApiFp = AgentsApiFp;
|
|
509
|
+
/**
|
|
510
|
+
* AgentsApi - factory interface
|
|
511
|
+
*/
|
|
512
|
+
const AgentsApiFactory = function (configuration, basePath, axios) {
|
|
513
|
+
const localVarFp = (0, exports.AgentsApiFp)(configuration);
|
|
514
|
+
return {
|
|
515
|
+
/**
|
|
516
|
+
* List all agents with optional filtering
|
|
517
|
+
* @param {string} [location] Filter by location
|
|
518
|
+
* @param {AgentsGetStatusEnum} [status] Filter by status
|
|
519
|
+
* @param {*} [options] Override http request option.
|
|
520
|
+
* @throws {RequiredError}
|
|
521
|
+
*/
|
|
522
|
+
agentsGet(location, status, options) {
|
|
523
|
+
return localVarFp.agentsGet(location, status, options).then((request) => request(axios, basePath));
|
|
524
|
+
},
|
|
525
|
+
/**
|
|
526
|
+
* Deregister an agent
|
|
527
|
+
* @param {string} id Agent ID
|
|
528
|
+
* @param {*} [options] Override http request option.
|
|
529
|
+
* @throws {RequiredError}
|
|
530
|
+
*/
|
|
531
|
+
agentsIdDelete(id, options) {
|
|
532
|
+
return localVarFp.agentsIdDelete(id, options).then((request) => request(axios, basePath));
|
|
533
|
+
},
|
|
534
|
+
/**
|
|
535
|
+
* Record a heartbeat from an agent
|
|
536
|
+
* @param {string} id Agent ID
|
|
537
|
+
* @param {*} [options] Override http request option.
|
|
538
|
+
* @throws {RequiredError}
|
|
539
|
+
*/
|
|
540
|
+
agentsIdHeartbeatPost(id, options) {
|
|
541
|
+
return localVarFp.agentsIdHeartbeatPost(id, options).then((request) => request(axios, basePath));
|
|
542
|
+
},
|
|
543
|
+
/**
|
|
544
|
+
* Get all registered locations (with at least one online agent)
|
|
545
|
+
* @param {*} [options] Override http request option.
|
|
546
|
+
* @throws {RequiredError}
|
|
547
|
+
*/
|
|
548
|
+
agentsLocationsGet(options) {
|
|
549
|
+
return localVarFp.agentsLocationsGet(options).then((request) => request(axios, basePath));
|
|
550
|
+
},
|
|
551
|
+
/**
|
|
552
|
+
* Register a new agent with the hub
|
|
553
|
+
* @param {AgentsRegisterPostRequest} agentsRegisterPostRequest
|
|
554
|
+
* @param {*} [options] Override http request option.
|
|
555
|
+
* @throws {RequiredError}
|
|
556
|
+
*/
|
|
557
|
+
agentsRegisterPost(agentsRegisterPostRequest, options) {
|
|
558
|
+
return localVarFp.agentsRegisterPost(agentsRegisterPostRequest, options).then((request) => request(axios, basePath));
|
|
559
|
+
},
|
|
560
|
+
};
|
|
561
|
+
};
|
|
562
|
+
exports.AgentsApiFactory = AgentsApiFactory;
|
|
563
|
+
/**
|
|
564
|
+
* AgentsApi - object-oriented interface
|
|
565
|
+
*/
|
|
566
|
+
class AgentsApi extends base_1.BaseAPI {
|
|
567
|
+
/**
|
|
568
|
+
* List all agents with optional filtering
|
|
569
|
+
* @param {string} [location] Filter by location
|
|
570
|
+
* @param {AgentsGetStatusEnum} [status] Filter by status
|
|
571
|
+
* @param {*} [options] Override http request option.
|
|
572
|
+
* @throws {RequiredError}
|
|
573
|
+
*/
|
|
574
|
+
agentsGet(location, status, options) {
|
|
575
|
+
return (0, exports.AgentsApiFp)(this.configuration).agentsGet(location, status, options).then((request) => request(this.axios, this.basePath));
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* Deregister an agent
|
|
579
|
+
* @param {string} id Agent ID
|
|
580
|
+
* @param {*} [options] Override http request option.
|
|
581
|
+
* @throws {RequiredError}
|
|
582
|
+
*/
|
|
583
|
+
agentsIdDelete(id, options) {
|
|
584
|
+
return (0, exports.AgentsApiFp)(this.configuration).agentsIdDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* Record a heartbeat from an agent
|
|
588
|
+
* @param {string} id Agent ID
|
|
589
|
+
* @param {*} [options] Override http request option.
|
|
590
|
+
* @throws {RequiredError}
|
|
591
|
+
*/
|
|
592
|
+
agentsIdHeartbeatPost(id, options) {
|
|
593
|
+
return (0, exports.AgentsApiFp)(this.configuration).agentsIdHeartbeatPost(id, options).then((request) => request(this.axios, this.basePath));
|
|
594
|
+
}
|
|
595
|
+
/**
|
|
596
|
+
* Get all registered locations (with at least one online agent)
|
|
597
|
+
* @param {*} [options] Override http request option.
|
|
598
|
+
* @throws {RequiredError}
|
|
599
|
+
*/
|
|
600
|
+
agentsLocationsGet(options) {
|
|
601
|
+
return (0, exports.AgentsApiFp)(this.configuration).agentsLocationsGet(options).then((request) => request(this.axios, this.basePath));
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* Register a new agent with the hub
|
|
605
|
+
* @param {AgentsRegisterPostRequest} agentsRegisterPostRequest
|
|
606
|
+
* @param {*} [options] Override http request option.
|
|
607
|
+
* @throws {RequiredError}
|
|
608
|
+
*/
|
|
609
|
+
agentsRegisterPost(agentsRegisterPostRequest, options) {
|
|
610
|
+
return (0, exports.AgentsApiFp)(this.configuration).agentsRegisterPost(agentsRegisterPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
exports.AgentsApi = AgentsApi;
|
|
614
|
+
exports.AgentsGetStatusEnum = {
|
|
615
|
+
Online: 'online',
|
|
616
|
+
Offline: 'offline'
|
|
617
|
+
};
|
|
618
|
+
/**
|
|
619
|
+
* ConfigApi - axios parameter creator
|
|
620
|
+
*/
|
|
621
|
+
const ConfigApiAxiosParamCreator = function (configuration) {
|
|
622
|
+
return {
|
|
623
|
+
/**
|
|
624
|
+
*
|
|
625
|
+
* @param {string} [organizationId]
|
|
626
|
+
* @param {string} [environment]
|
|
627
|
+
* @param {*} [options] Override http request option.
|
|
628
|
+
* @throws {RequiredError}
|
|
629
|
+
*/
|
|
630
|
+
configGet: (organizationId_1, environment_1, ...args_1) => __awaiter(this, [organizationId_1, environment_1, ...args_1], void 0, function* (organizationId, environment, options = {}) {
|
|
631
|
+
const localVarPath = `/config/`;
|
|
632
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
633
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
634
|
+
let baseOptions;
|
|
635
|
+
if (configuration) {
|
|
636
|
+
baseOptions = configuration.baseOptions;
|
|
637
|
+
}
|
|
638
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
639
|
+
const localVarHeaderParameter = {};
|
|
640
|
+
const localVarQueryParameter = {};
|
|
641
|
+
if (organizationId !== undefined) {
|
|
642
|
+
localVarQueryParameter['organizationId'] = organizationId;
|
|
643
|
+
}
|
|
644
|
+
if (environment !== undefined) {
|
|
645
|
+
localVarQueryParameter['environment'] = environment;
|
|
646
|
+
}
|
|
647
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
648
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
649
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
650
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
651
|
+
return {
|
|
652
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
653
|
+
options: localVarRequestOptions,
|
|
654
|
+
};
|
|
655
|
+
}),
|
|
656
|
+
/**
|
|
657
|
+
*
|
|
658
|
+
* @param {string} organizationId
|
|
659
|
+
* @param {string} environment
|
|
660
|
+
* @param {string} targetKey
|
|
661
|
+
* @param {*} [options] Override http request option.
|
|
662
|
+
* @throws {RequiredError}
|
|
663
|
+
*/
|
|
664
|
+
configOrganizationIdEnvironmentTargetsTargetKeyDelete: (organizationId_1, environment_1, targetKey_1, ...args_1) => __awaiter(this, [organizationId_1, environment_1, targetKey_1, ...args_1], void 0, function* (organizationId, environment, targetKey, options = {}) {
|
|
665
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
666
|
+
(0, common_1.assertParamExists)('configOrganizationIdEnvironmentTargetsTargetKeyDelete', 'organizationId', organizationId);
|
|
667
|
+
// verify required parameter 'environment' is not null or undefined
|
|
668
|
+
(0, common_1.assertParamExists)('configOrganizationIdEnvironmentTargetsTargetKeyDelete', 'environment', environment);
|
|
669
|
+
// verify required parameter 'targetKey' is not null or undefined
|
|
670
|
+
(0, common_1.assertParamExists)('configOrganizationIdEnvironmentTargetsTargetKeyDelete', 'targetKey', targetKey);
|
|
671
|
+
const localVarPath = `/config/{organizationId}/{environment}/targets/{targetKey}`
|
|
672
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
673
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
674
|
+
.replace(`{${"targetKey"}}`, encodeURIComponent(String(targetKey)));
|
|
675
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
676
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
677
|
+
let baseOptions;
|
|
678
|
+
if (configuration) {
|
|
679
|
+
baseOptions = configuration.baseOptions;
|
|
680
|
+
}
|
|
681
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
682
|
+
const localVarHeaderParameter = {};
|
|
683
|
+
const localVarQueryParameter = {};
|
|
684
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
685
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
686
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
687
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
688
|
+
return {
|
|
689
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
690
|
+
options: localVarRequestOptions,
|
|
691
|
+
};
|
|
692
|
+
}),
|
|
693
|
+
/**
|
|
694
|
+
*
|
|
695
|
+
* @param {string} organizationId
|
|
696
|
+
* @param {string} environment
|
|
697
|
+
* @param {string} targetKey
|
|
698
|
+
* @param {*} [options] Override http request option.
|
|
699
|
+
* @throws {RequiredError}
|
|
700
|
+
*/
|
|
701
|
+
configOrganizationIdEnvironmentTargetsTargetKeyGet: (organizationId_1, environment_1, targetKey_1, ...args_1) => __awaiter(this, [organizationId_1, environment_1, targetKey_1, ...args_1], void 0, function* (organizationId, environment, targetKey, options = {}) {
|
|
702
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
703
|
+
(0, common_1.assertParamExists)('configOrganizationIdEnvironmentTargetsTargetKeyGet', 'organizationId', organizationId);
|
|
704
|
+
// verify required parameter 'environment' is not null or undefined
|
|
705
|
+
(0, common_1.assertParamExists)('configOrganizationIdEnvironmentTargetsTargetKeyGet', 'environment', environment);
|
|
706
|
+
// verify required parameter 'targetKey' is not null or undefined
|
|
707
|
+
(0, common_1.assertParamExists)('configOrganizationIdEnvironmentTargetsTargetKeyGet', 'targetKey', targetKey);
|
|
708
|
+
const localVarPath = `/config/{organizationId}/{environment}/targets/{targetKey}`
|
|
709
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
710
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
711
|
+
.replace(`{${"targetKey"}}`, encodeURIComponent(String(targetKey)));
|
|
712
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
713
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
714
|
+
let baseOptions;
|
|
715
|
+
if (configuration) {
|
|
716
|
+
baseOptions = configuration.baseOptions;
|
|
717
|
+
}
|
|
718
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
719
|
+
const localVarHeaderParameter = {};
|
|
720
|
+
const localVarQueryParameter = {};
|
|
721
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
722
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
723
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
724
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
725
|
+
return {
|
|
726
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
727
|
+
options: localVarRequestOptions,
|
|
728
|
+
};
|
|
729
|
+
}),
|
|
730
|
+
/**
|
|
731
|
+
*
|
|
732
|
+
* @param {string} organizationId
|
|
733
|
+
* @param {string} environment
|
|
734
|
+
* @param {string} targetKey
|
|
735
|
+
* @param {ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest} configOrganizationIdEnvironmentTargetsTargetKeyPutRequest
|
|
736
|
+
* @param {*} [options] Override http request option.
|
|
737
|
+
* @throws {RequiredError}
|
|
738
|
+
*/
|
|
739
|
+
configOrganizationIdEnvironmentTargetsTargetKeyPut: (organizationId_1, environment_1, targetKey_1, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest_1, ...args_1) => __awaiter(this, [organizationId_1, environment_1, targetKey_1, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest_1, ...args_1], void 0, function* (organizationId, environment, targetKey, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest, options = {}) {
|
|
740
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
741
|
+
(0, common_1.assertParamExists)('configOrganizationIdEnvironmentTargetsTargetKeyPut', 'organizationId', organizationId);
|
|
742
|
+
// verify required parameter 'environment' is not null or undefined
|
|
743
|
+
(0, common_1.assertParamExists)('configOrganizationIdEnvironmentTargetsTargetKeyPut', 'environment', environment);
|
|
744
|
+
// verify required parameter 'targetKey' is not null or undefined
|
|
745
|
+
(0, common_1.assertParamExists)('configOrganizationIdEnvironmentTargetsTargetKeyPut', 'targetKey', targetKey);
|
|
746
|
+
// verify required parameter 'configOrganizationIdEnvironmentTargetsTargetKeyPutRequest' is not null or undefined
|
|
747
|
+
(0, common_1.assertParamExists)('configOrganizationIdEnvironmentTargetsTargetKeyPut', 'configOrganizationIdEnvironmentTargetsTargetKeyPutRequest', configOrganizationIdEnvironmentTargetsTargetKeyPutRequest);
|
|
748
|
+
const localVarPath = `/config/{organizationId}/{environment}/targets/{targetKey}`
|
|
749
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
750
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
751
|
+
.replace(`{${"targetKey"}}`, encodeURIComponent(String(targetKey)));
|
|
752
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
753
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
754
|
+
let baseOptions;
|
|
755
|
+
if (configuration) {
|
|
756
|
+
baseOptions = configuration.baseOptions;
|
|
757
|
+
}
|
|
758
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
759
|
+
const localVarHeaderParameter = {};
|
|
760
|
+
const localVarQueryParameter = {};
|
|
761
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
762
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
763
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
764
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
765
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
766
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(configOrganizationIdEnvironmentTargetsTargetKeyPutRequest, localVarRequestOptions, configuration);
|
|
767
|
+
return {
|
|
768
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
769
|
+
options: localVarRequestOptions,
|
|
770
|
+
};
|
|
771
|
+
}),
|
|
772
|
+
/**
|
|
773
|
+
*
|
|
774
|
+
* @param {string} organizationId
|
|
775
|
+
* @param {string} environment
|
|
776
|
+
* @param {*} [options] Override http request option.
|
|
777
|
+
* @throws {RequiredError}
|
|
778
|
+
*/
|
|
779
|
+
configSingleGet: (organizationId_1, environment_1, ...args_1) => __awaiter(this, [organizationId_1, environment_1, ...args_1], void 0, function* (organizationId, environment, options = {}) {
|
|
780
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
781
|
+
(0, common_1.assertParamExists)('configSingleGet', 'organizationId', organizationId);
|
|
782
|
+
// verify required parameter 'environment' is not null or undefined
|
|
783
|
+
(0, common_1.assertParamExists)('configSingleGet', 'environment', environment);
|
|
784
|
+
const localVarPath = `/config/single`;
|
|
785
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
786
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
787
|
+
let baseOptions;
|
|
788
|
+
if (configuration) {
|
|
789
|
+
baseOptions = configuration.baseOptions;
|
|
790
|
+
}
|
|
791
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
792
|
+
const localVarHeaderParameter = {};
|
|
793
|
+
const localVarQueryParameter = {};
|
|
794
|
+
if (organizationId !== undefined) {
|
|
795
|
+
localVarQueryParameter['organizationId'] = organizationId;
|
|
796
|
+
}
|
|
797
|
+
if (environment !== undefined) {
|
|
798
|
+
localVarQueryParameter['environment'] = environment;
|
|
799
|
+
}
|
|
800
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
801
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
802
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
803
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
804
|
+
return {
|
|
805
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
806
|
+
options: localVarRequestOptions,
|
|
807
|
+
};
|
|
808
|
+
}),
|
|
809
|
+
};
|
|
810
|
+
};
|
|
811
|
+
exports.ConfigApiAxiosParamCreator = ConfigApiAxiosParamCreator;
|
|
812
|
+
/**
|
|
813
|
+
* ConfigApi - functional programming interface
|
|
814
|
+
*/
|
|
815
|
+
const ConfigApiFp = function (configuration) {
|
|
816
|
+
const localVarAxiosParamCreator = (0, exports.ConfigApiAxiosParamCreator)(configuration);
|
|
817
|
+
return {
|
|
818
|
+
/**
|
|
819
|
+
*
|
|
820
|
+
* @param {string} [organizationId]
|
|
821
|
+
* @param {string} [environment]
|
|
822
|
+
* @param {*} [options] Override http request option.
|
|
823
|
+
* @throws {RequiredError}
|
|
824
|
+
*/
|
|
825
|
+
configGet(organizationId, environment, options) {
|
|
826
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
827
|
+
var _a, _b, _c;
|
|
828
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.configGet(organizationId, environment, options);
|
|
829
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
830
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigApi.configGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
831
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
832
|
+
});
|
|
833
|
+
},
|
|
834
|
+
/**
|
|
835
|
+
*
|
|
836
|
+
* @param {string} organizationId
|
|
837
|
+
* @param {string} environment
|
|
838
|
+
* @param {string} targetKey
|
|
839
|
+
* @param {*} [options] Override http request option.
|
|
840
|
+
* @throws {RequiredError}
|
|
841
|
+
*/
|
|
842
|
+
configOrganizationIdEnvironmentTargetsTargetKeyDelete(organizationId, environment, targetKey, options) {
|
|
843
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
844
|
+
var _a, _b, _c;
|
|
845
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.configOrganizationIdEnvironmentTargetsTargetKeyDelete(organizationId, environment, targetKey, options);
|
|
846
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
847
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigApi.configOrganizationIdEnvironmentTargetsTargetKeyDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
848
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
849
|
+
});
|
|
850
|
+
},
|
|
851
|
+
/**
|
|
852
|
+
*
|
|
853
|
+
* @param {string} organizationId
|
|
854
|
+
* @param {string} environment
|
|
855
|
+
* @param {string} targetKey
|
|
856
|
+
* @param {*} [options] Override http request option.
|
|
857
|
+
* @throws {RequiredError}
|
|
858
|
+
*/
|
|
859
|
+
configOrganizationIdEnvironmentTargetsTargetKeyGet(organizationId, environment, targetKey, options) {
|
|
860
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
861
|
+
var _a, _b, _c;
|
|
862
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.configOrganizationIdEnvironmentTargetsTargetKeyGet(organizationId, environment, targetKey, options);
|
|
863
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
864
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigApi.configOrganizationIdEnvironmentTargetsTargetKeyGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
865
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
866
|
+
});
|
|
867
|
+
},
|
|
868
|
+
/**
|
|
869
|
+
*
|
|
870
|
+
* @param {string} organizationId
|
|
871
|
+
* @param {string} environment
|
|
872
|
+
* @param {string} targetKey
|
|
873
|
+
* @param {ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest} configOrganizationIdEnvironmentTargetsTargetKeyPutRequest
|
|
874
|
+
* @param {*} [options] Override http request option.
|
|
875
|
+
* @throws {RequiredError}
|
|
876
|
+
*/
|
|
877
|
+
configOrganizationIdEnvironmentTargetsTargetKeyPut(organizationId, environment, targetKey, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest, options) {
|
|
878
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
879
|
+
var _a, _b, _c;
|
|
880
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.configOrganizationIdEnvironmentTargetsTargetKeyPut(organizationId, environment, targetKey, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest, options);
|
|
881
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
882
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigApi.configOrganizationIdEnvironmentTargetsTargetKeyPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
883
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
884
|
+
});
|
|
885
|
+
},
|
|
886
|
+
/**
|
|
887
|
+
*
|
|
888
|
+
* @param {string} organizationId
|
|
889
|
+
* @param {string} environment
|
|
890
|
+
* @param {*} [options] Override http request option.
|
|
891
|
+
* @throws {RequiredError}
|
|
892
|
+
*/
|
|
893
|
+
configSingleGet(organizationId, environment, options) {
|
|
894
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
895
|
+
var _a, _b, _c;
|
|
896
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.configSingleGet(organizationId, environment, options);
|
|
897
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
898
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigApi.configSingleGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
899
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
900
|
+
});
|
|
901
|
+
},
|
|
902
|
+
};
|
|
903
|
+
};
|
|
904
|
+
exports.ConfigApiFp = ConfigApiFp;
|
|
905
|
+
/**
|
|
906
|
+
* ConfigApi - factory interface
|
|
907
|
+
*/
|
|
908
|
+
const ConfigApiFactory = function (configuration, basePath, axios) {
|
|
909
|
+
const localVarFp = (0, exports.ConfigApiFp)(configuration);
|
|
910
|
+
return {
|
|
911
|
+
/**
|
|
912
|
+
*
|
|
913
|
+
* @param {string} [organizationId]
|
|
914
|
+
* @param {string} [environment]
|
|
915
|
+
* @param {*} [options] Override http request option.
|
|
916
|
+
* @throws {RequiredError}
|
|
917
|
+
*/
|
|
918
|
+
configGet(organizationId, environment, options) {
|
|
919
|
+
return localVarFp.configGet(organizationId, environment, options).then((request) => request(axios, basePath));
|
|
920
|
+
},
|
|
921
|
+
/**
|
|
922
|
+
*
|
|
923
|
+
* @param {string} organizationId
|
|
924
|
+
* @param {string} environment
|
|
925
|
+
* @param {string} targetKey
|
|
926
|
+
* @param {*} [options] Override http request option.
|
|
927
|
+
* @throws {RequiredError}
|
|
928
|
+
*/
|
|
929
|
+
configOrganizationIdEnvironmentTargetsTargetKeyDelete(organizationId, environment, targetKey, options) {
|
|
930
|
+
return localVarFp.configOrganizationIdEnvironmentTargetsTargetKeyDelete(organizationId, environment, targetKey, options).then((request) => request(axios, basePath));
|
|
931
|
+
},
|
|
932
|
+
/**
|
|
933
|
+
*
|
|
934
|
+
* @param {string} organizationId
|
|
935
|
+
* @param {string} environment
|
|
936
|
+
* @param {string} targetKey
|
|
937
|
+
* @param {*} [options] Override http request option.
|
|
938
|
+
* @throws {RequiredError}
|
|
939
|
+
*/
|
|
940
|
+
configOrganizationIdEnvironmentTargetsTargetKeyGet(organizationId, environment, targetKey, options) {
|
|
941
|
+
return localVarFp.configOrganizationIdEnvironmentTargetsTargetKeyGet(organizationId, environment, targetKey, options).then((request) => request(axios, basePath));
|
|
942
|
+
},
|
|
943
|
+
/**
|
|
944
|
+
*
|
|
945
|
+
* @param {string} organizationId
|
|
946
|
+
* @param {string} environment
|
|
947
|
+
* @param {string} targetKey
|
|
948
|
+
* @param {ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest} configOrganizationIdEnvironmentTargetsTargetKeyPutRequest
|
|
949
|
+
* @param {*} [options] Override http request option.
|
|
950
|
+
* @throws {RequiredError}
|
|
951
|
+
*/
|
|
952
|
+
configOrganizationIdEnvironmentTargetsTargetKeyPut(organizationId, environment, targetKey, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest, options) {
|
|
953
|
+
return localVarFp.configOrganizationIdEnvironmentTargetsTargetKeyPut(organizationId, environment, targetKey, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest, options).then((request) => request(axios, basePath));
|
|
954
|
+
},
|
|
955
|
+
/**
|
|
956
|
+
*
|
|
957
|
+
* @param {string} organizationId
|
|
958
|
+
* @param {string} environment
|
|
959
|
+
* @param {*} [options] Override http request option.
|
|
960
|
+
* @throws {RequiredError}
|
|
961
|
+
*/
|
|
962
|
+
configSingleGet(organizationId, environment, options) {
|
|
963
|
+
return localVarFp.configSingleGet(organizationId, environment, options).then((request) => request(axios, basePath));
|
|
964
|
+
},
|
|
965
|
+
};
|
|
966
|
+
};
|
|
967
|
+
exports.ConfigApiFactory = ConfigApiFactory;
|
|
968
|
+
/**
|
|
969
|
+
* ConfigApi - object-oriented interface
|
|
970
|
+
*/
|
|
971
|
+
class ConfigApi extends base_1.BaseAPI {
|
|
972
|
+
/**
|
|
973
|
+
*
|
|
974
|
+
* @param {string} [organizationId]
|
|
975
|
+
* @param {string} [environment]
|
|
976
|
+
* @param {*} [options] Override http request option.
|
|
977
|
+
* @throws {RequiredError}
|
|
978
|
+
*/
|
|
979
|
+
configGet(organizationId, environment, options) {
|
|
980
|
+
return (0, exports.ConfigApiFp)(this.configuration).configGet(organizationId, environment, options).then((request) => request(this.axios, this.basePath));
|
|
981
|
+
}
|
|
982
|
+
/**
|
|
983
|
+
*
|
|
984
|
+
* @param {string} organizationId
|
|
985
|
+
* @param {string} environment
|
|
986
|
+
* @param {string} targetKey
|
|
987
|
+
* @param {*} [options] Override http request option.
|
|
988
|
+
* @throws {RequiredError}
|
|
989
|
+
*/
|
|
990
|
+
configOrganizationIdEnvironmentTargetsTargetKeyDelete(organizationId, environment, targetKey, options) {
|
|
991
|
+
return (0, exports.ConfigApiFp)(this.configuration).configOrganizationIdEnvironmentTargetsTargetKeyDelete(organizationId, environment, targetKey, options).then((request) => request(this.axios, this.basePath));
|
|
992
|
+
}
|
|
993
|
+
/**
|
|
994
|
+
*
|
|
995
|
+
* @param {string} organizationId
|
|
996
|
+
* @param {string} environment
|
|
997
|
+
* @param {string} targetKey
|
|
998
|
+
* @param {*} [options] Override http request option.
|
|
999
|
+
* @throws {RequiredError}
|
|
1000
|
+
*/
|
|
1001
|
+
configOrganizationIdEnvironmentTargetsTargetKeyGet(organizationId, environment, targetKey, options) {
|
|
1002
|
+
return (0, exports.ConfigApiFp)(this.configuration).configOrganizationIdEnvironmentTargetsTargetKeyGet(organizationId, environment, targetKey, options).then((request) => request(this.axios, this.basePath));
|
|
1003
|
+
}
|
|
1004
|
+
/**
|
|
1005
|
+
*
|
|
1006
|
+
* @param {string} organizationId
|
|
1007
|
+
* @param {string} environment
|
|
1008
|
+
* @param {string} targetKey
|
|
1009
|
+
* @param {ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest} configOrganizationIdEnvironmentTargetsTargetKeyPutRequest
|
|
1010
|
+
* @param {*} [options] Override http request option.
|
|
1011
|
+
* @throws {RequiredError}
|
|
1012
|
+
*/
|
|
1013
|
+
configOrganizationIdEnvironmentTargetsTargetKeyPut(organizationId, environment, targetKey, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest, options) {
|
|
1014
|
+
return (0, exports.ConfigApiFp)(this.configuration).configOrganizationIdEnvironmentTargetsTargetKeyPut(organizationId, environment, targetKey, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1015
|
+
}
|
|
1016
|
+
/**
|
|
1017
|
+
*
|
|
1018
|
+
* @param {string} organizationId
|
|
1019
|
+
* @param {string} environment
|
|
1020
|
+
* @param {*} [options] Override http request option.
|
|
1021
|
+
* @throws {RequiredError}
|
|
1022
|
+
*/
|
|
1023
|
+
configSingleGet(organizationId, environment, options) {
|
|
1024
|
+
return (0, exports.ConfigApiFp)(this.configuration).configSingleGet(organizationId, environment, options).then((request) => request(this.axios, this.basePath));
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
exports.ConfigApi = ConfigApi;
|
|
1028
|
+
/**
|
|
1029
|
+
* DefaultApi - axios parameter creator
|
|
1030
|
+
*/
|
|
1031
|
+
const DefaultApiAxiosParamCreator = function (configuration) {
|
|
1032
|
+
return {
|
|
1033
|
+
/**
|
|
1034
|
+
*
|
|
1035
|
+
* @param {*} [options] Override http request option.
|
|
1036
|
+
* @throws {RequiredError}
|
|
1037
|
+
*/
|
|
1038
|
+
rootGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1039
|
+
const localVarPath = `/`;
|
|
1040
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1041
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1042
|
+
let baseOptions;
|
|
1043
|
+
if (configuration) {
|
|
1044
|
+
baseOptions = configuration.baseOptions;
|
|
1045
|
+
}
|
|
1046
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1047
|
+
const localVarHeaderParameter = {};
|
|
1048
|
+
const localVarQueryParameter = {};
|
|
1049
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1050
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1051
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1052
|
+
return {
|
|
1053
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1054
|
+
options: localVarRequestOptions,
|
|
1055
|
+
};
|
|
1056
|
+
}),
|
|
1057
|
+
};
|
|
1058
|
+
};
|
|
1059
|
+
exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
1060
|
+
/**
|
|
1061
|
+
* DefaultApi - functional programming interface
|
|
1062
|
+
*/
|
|
1063
|
+
const DefaultApiFp = function (configuration) {
|
|
1064
|
+
const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
|
|
1065
|
+
return {
|
|
1066
|
+
/**
|
|
1067
|
+
*
|
|
1068
|
+
* @param {*} [options] Override http request option.
|
|
1069
|
+
* @throws {RequiredError}
|
|
1070
|
+
*/
|
|
1071
|
+
rootGet(options) {
|
|
1072
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1073
|
+
var _a, _b, _c;
|
|
1074
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.rootGet(options);
|
|
1075
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1076
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.rootGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1077
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1078
|
+
});
|
|
1079
|
+
},
|
|
1080
|
+
};
|
|
1081
|
+
};
|
|
1082
|
+
exports.DefaultApiFp = DefaultApiFp;
|
|
1083
|
+
/**
|
|
1084
|
+
* DefaultApi - factory interface
|
|
1085
|
+
*/
|
|
1086
|
+
const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
1087
|
+
const localVarFp = (0, exports.DefaultApiFp)(configuration);
|
|
1088
|
+
return {
|
|
1089
|
+
/**
|
|
1090
|
+
*
|
|
1091
|
+
* @param {*} [options] Override http request option.
|
|
1092
|
+
* @throws {RequiredError}
|
|
1093
|
+
*/
|
|
1094
|
+
rootGet(options) {
|
|
1095
|
+
return localVarFp.rootGet(options).then((request) => request(axios, basePath));
|
|
1096
|
+
},
|
|
1097
|
+
};
|
|
1098
|
+
};
|
|
1099
|
+
exports.DefaultApiFactory = DefaultApiFactory;
|
|
1100
|
+
/**
|
|
1101
|
+
* DefaultApi - object-oriented interface
|
|
1102
|
+
*/
|
|
1103
|
+
class DefaultApi extends base_1.BaseAPI {
|
|
1104
|
+
/**
|
|
1105
|
+
*
|
|
1106
|
+
* @param {*} [options] Override http request option.
|
|
1107
|
+
* @throws {RequiredError}
|
|
1108
|
+
*/
|
|
1109
|
+
rootGet(options) {
|
|
1110
|
+
return (0, exports.DefaultApiFp)(this.configuration).rootGet(options).then((request) => request(this.axios, this.basePath));
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
exports.DefaultApi = DefaultApi;
|
|
1114
|
+
/**
|
|
1115
|
+
* PlanApi - axios parameter creator
|
|
1116
|
+
*/
|
|
1117
|
+
const PlanApiAxiosParamCreator = function (configuration) {
|
|
1118
|
+
return {
|
|
1119
|
+
/**
|
|
1120
|
+
*
|
|
1121
|
+
* @param {string} [projectId]
|
|
1122
|
+
* @param {number} [limit]
|
|
1123
|
+
* @param {number} [offset]
|
|
1124
|
+
* @param {*} [options] Override http request option.
|
|
1125
|
+
* @throws {RequiredError}
|
|
1126
|
+
*/
|
|
1127
|
+
planGet: (projectId_1, limit_1, offset_1, ...args_1) => __awaiter(this, [projectId_1, limit_1, offset_1, ...args_1], void 0, function* (projectId, limit, offset, options = {}) {
|
|
1128
|
+
const localVarPath = `/plan/`;
|
|
1129
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1130
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1131
|
+
let baseOptions;
|
|
1132
|
+
if (configuration) {
|
|
1133
|
+
baseOptions = configuration.baseOptions;
|
|
1134
|
+
}
|
|
1135
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1136
|
+
const localVarHeaderParameter = {};
|
|
1137
|
+
const localVarQueryParameter = {};
|
|
1138
|
+
if (projectId !== undefined) {
|
|
1139
|
+
localVarQueryParameter['projectId'] = projectId;
|
|
1140
|
+
}
|
|
1141
|
+
if (limit !== undefined) {
|
|
1142
|
+
localVarQueryParameter['limit'] = limit;
|
|
1143
|
+
}
|
|
1144
|
+
if (offset !== undefined) {
|
|
1145
|
+
localVarQueryParameter['offset'] = offset;
|
|
1146
|
+
}
|
|
1147
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1148
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1149
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1150
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1151
|
+
return {
|
|
1152
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1153
|
+
options: localVarRequestOptions,
|
|
1154
|
+
};
|
|
1155
|
+
}),
|
|
1156
|
+
/**
|
|
1157
|
+
*
|
|
1158
|
+
* @param {TestPlanV1} [testPlanV1]
|
|
1159
|
+
* @param {*} [options] Override http request option.
|
|
1160
|
+
* @throws {RequiredError}
|
|
1161
|
+
*/
|
|
1162
|
+
planPost: (testPlanV1_1, ...args_1) => __awaiter(this, [testPlanV1_1, ...args_1], void 0, function* (testPlanV1, options = {}) {
|
|
1163
|
+
const localVarPath = `/plan/`;
|
|
1164
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1165
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1166
|
+
let baseOptions;
|
|
1167
|
+
if (configuration) {
|
|
1168
|
+
baseOptions = configuration.baseOptions;
|
|
1169
|
+
}
|
|
1170
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1171
|
+
const localVarHeaderParameter = {};
|
|
1172
|
+
const localVarQueryParameter = {};
|
|
1173
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1174
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1175
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1176
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1177
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1178
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(testPlanV1, localVarRequestOptions, configuration);
|
|
1179
|
+
return {
|
|
1180
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1181
|
+
options: localVarRequestOptions,
|
|
1182
|
+
};
|
|
1183
|
+
}),
|
|
1184
|
+
};
|
|
1185
|
+
};
|
|
1186
|
+
exports.PlanApiAxiosParamCreator = PlanApiAxiosParamCreator;
|
|
1187
|
+
/**
|
|
1188
|
+
* PlanApi - functional programming interface
|
|
1189
|
+
*/
|
|
1190
|
+
const PlanApiFp = function (configuration) {
|
|
1191
|
+
const localVarAxiosParamCreator = (0, exports.PlanApiAxiosParamCreator)(configuration);
|
|
1192
|
+
return {
|
|
1193
|
+
/**
|
|
1194
|
+
*
|
|
1195
|
+
* @param {string} [projectId]
|
|
1196
|
+
* @param {number} [limit]
|
|
1197
|
+
* @param {number} [offset]
|
|
1198
|
+
* @param {*} [options] Override http request option.
|
|
1199
|
+
* @throws {RequiredError}
|
|
1200
|
+
*/
|
|
1201
|
+
planGet(projectId, limit, offset, options) {
|
|
1202
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1203
|
+
var _a, _b, _c;
|
|
1204
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.planGet(projectId, limit, offset, options);
|
|
1205
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1206
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlanApi.planGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1207
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1208
|
+
});
|
|
1209
|
+
},
|
|
1210
|
+
/**
|
|
1211
|
+
*
|
|
1212
|
+
* @param {TestPlanV1} [testPlanV1]
|
|
1213
|
+
* @param {*} [options] Override http request option.
|
|
1214
|
+
* @throws {RequiredError}
|
|
1215
|
+
*/
|
|
1216
|
+
planPost(testPlanV1, options) {
|
|
1217
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1218
|
+
var _a, _b, _c;
|
|
1219
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.planPost(testPlanV1, options);
|
|
1220
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1221
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlanApi.planPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1222
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1223
|
+
});
|
|
1224
|
+
},
|
|
1225
|
+
};
|
|
1226
|
+
};
|
|
1227
|
+
exports.PlanApiFp = PlanApiFp;
|
|
1228
|
+
/**
|
|
1229
|
+
* PlanApi - factory interface
|
|
1230
|
+
*/
|
|
1231
|
+
const PlanApiFactory = function (configuration, basePath, axios) {
|
|
1232
|
+
const localVarFp = (0, exports.PlanApiFp)(configuration);
|
|
1233
|
+
return {
|
|
1234
|
+
/**
|
|
1235
|
+
*
|
|
1236
|
+
* @param {string} [projectId]
|
|
1237
|
+
* @param {number} [limit]
|
|
1238
|
+
* @param {number} [offset]
|
|
1239
|
+
* @param {*} [options] Override http request option.
|
|
1240
|
+
* @throws {RequiredError}
|
|
1241
|
+
*/
|
|
1242
|
+
planGet(projectId, limit, offset, options) {
|
|
1243
|
+
return localVarFp.planGet(projectId, limit, offset, options).then((request) => request(axios, basePath));
|
|
1244
|
+
},
|
|
1245
|
+
/**
|
|
1246
|
+
*
|
|
1247
|
+
* @param {TestPlanV1} [testPlanV1]
|
|
1248
|
+
* @param {*} [options] Override http request option.
|
|
1249
|
+
* @throws {RequiredError}
|
|
1250
|
+
*/
|
|
1251
|
+
planPost(testPlanV1, options) {
|
|
1252
|
+
return localVarFp.planPost(testPlanV1, options).then((request) => request(axios, basePath));
|
|
1253
|
+
},
|
|
1254
|
+
};
|
|
1255
|
+
};
|
|
1256
|
+
exports.PlanApiFactory = PlanApiFactory;
|
|
1257
|
+
/**
|
|
1258
|
+
* PlanApi - object-oriented interface
|
|
1259
|
+
*/
|
|
1260
|
+
class PlanApi extends base_1.BaseAPI {
|
|
1261
|
+
/**
|
|
1262
|
+
*
|
|
1263
|
+
* @param {string} [projectId]
|
|
1264
|
+
* @param {number} [limit]
|
|
1265
|
+
* @param {number} [offset]
|
|
1266
|
+
* @param {*} [options] Override http request option.
|
|
1267
|
+
* @throws {RequiredError}
|
|
1268
|
+
*/
|
|
1269
|
+
planGet(projectId, limit, offset, options) {
|
|
1270
|
+
return (0, exports.PlanApiFp)(this.configuration).planGet(projectId, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
1271
|
+
}
|
|
1272
|
+
/**
|
|
1273
|
+
*
|
|
1274
|
+
* @param {TestPlanV1} [testPlanV1]
|
|
1275
|
+
* @param {*} [options] Override http request option.
|
|
1276
|
+
* @throws {RequiredError}
|
|
1277
|
+
*/
|
|
1278
|
+
planPost(testPlanV1, options) {
|
|
1279
|
+
return (0, exports.PlanApiFp)(this.configuration).planPost(testPlanV1, options).then((request) => request(this.axios, this.basePath));
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
exports.PlanApi = PlanApi;
|
|
1283
|
+
/**
|
|
1284
|
+
* RunsApi - axios parameter creator
|
|
1285
|
+
*/
|
|
1286
|
+
const RunsApiAxiosParamCreator = function (configuration) {
|
|
1287
|
+
return {
|
|
1288
|
+
/**
|
|
1289
|
+
*
|
|
1290
|
+
* @param {string} [planId]
|
|
1291
|
+
* @param {RunsGetStatusEnum} [status]
|
|
1292
|
+
* @param {number} [limit]
|
|
1293
|
+
* @param {number} [offset]
|
|
1294
|
+
* @param {*} [options] Override http request option.
|
|
1295
|
+
* @throws {RequiredError}
|
|
1296
|
+
*/
|
|
1297
|
+
runsGet: (planId_1, status_1, limit_1, offset_1, ...args_1) => __awaiter(this, [planId_1, status_1, limit_1, offset_1, ...args_1], void 0, function* (planId, status, limit, offset, options = {}) {
|
|
1298
|
+
const localVarPath = `/runs/`;
|
|
1299
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1300
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1301
|
+
let baseOptions;
|
|
1302
|
+
if (configuration) {
|
|
1303
|
+
baseOptions = configuration.baseOptions;
|
|
1304
|
+
}
|
|
1305
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1306
|
+
const localVarHeaderParameter = {};
|
|
1307
|
+
const localVarQueryParameter = {};
|
|
1308
|
+
if (planId !== undefined) {
|
|
1309
|
+
localVarQueryParameter['planId'] = planId;
|
|
1310
|
+
}
|
|
1311
|
+
if (status !== undefined) {
|
|
1312
|
+
localVarQueryParameter['status'] = status;
|
|
1313
|
+
}
|
|
1314
|
+
if (limit !== undefined) {
|
|
1315
|
+
localVarQueryParameter['limit'] = limit;
|
|
1316
|
+
}
|
|
1317
|
+
if (offset !== undefined) {
|
|
1318
|
+
localVarQueryParameter['offset'] = offset;
|
|
1319
|
+
}
|
|
1320
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1321
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1322
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1323
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1324
|
+
return {
|
|
1325
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1326
|
+
options: localVarRequestOptions,
|
|
1327
|
+
};
|
|
1328
|
+
}),
|
|
1329
|
+
/**
|
|
1330
|
+
*
|
|
1331
|
+
* @param {string} id
|
|
1332
|
+
* @param {*} [options] Override http request option.
|
|
1333
|
+
* @throws {RequiredError}
|
|
1334
|
+
*/
|
|
1335
|
+
runsIdGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
1336
|
+
// verify required parameter 'id' is not null or undefined
|
|
1337
|
+
(0, common_1.assertParamExists)('runsIdGet', 'id', id);
|
|
1338
|
+
const localVarPath = `/runs/{id}`
|
|
1339
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1340
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1341
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1342
|
+
let baseOptions;
|
|
1343
|
+
if (configuration) {
|
|
1344
|
+
baseOptions = configuration.baseOptions;
|
|
1345
|
+
}
|
|
1346
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1347
|
+
const localVarHeaderParameter = {};
|
|
1348
|
+
const localVarQueryParameter = {};
|
|
1349
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1350
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1351
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1352
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1353
|
+
return {
|
|
1354
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1355
|
+
options: localVarRequestOptions,
|
|
1356
|
+
};
|
|
1357
|
+
}),
|
|
1358
|
+
/**
|
|
1359
|
+
*
|
|
1360
|
+
* @param {string} id
|
|
1361
|
+
* @param {RunsIdPatchRequest} [runsIdPatchRequest]
|
|
1362
|
+
* @param {*} [options] Override http request option.
|
|
1363
|
+
* @throws {RequiredError}
|
|
1364
|
+
*/
|
|
1365
|
+
runsIdPatch: (id_1, runsIdPatchRequest_1, ...args_1) => __awaiter(this, [id_1, runsIdPatchRequest_1, ...args_1], void 0, function* (id, runsIdPatchRequest, options = {}) {
|
|
1366
|
+
// verify required parameter 'id' is not null or undefined
|
|
1367
|
+
(0, common_1.assertParamExists)('runsIdPatch', 'id', id);
|
|
1368
|
+
const localVarPath = `/runs/{id}`
|
|
1369
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1370
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1371
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1372
|
+
let baseOptions;
|
|
1373
|
+
if (configuration) {
|
|
1374
|
+
baseOptions = configuration.baseOptions;
|
|
1375
|
+
}
|
|
1376
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1377
|
+
const localVarHeaderParameter = {};
|
|
1378
|
+
const localVarQueryParameter = {};
|
|
1379
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1380
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1381
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1382
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1383
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1384
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(runsIdPatchRequest, localVarRequestOptions, configuration);
|
|
1385
|
+
return {
|
|
1386
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1387
|
+
options: localVarRequestOptions,
|
|
1388
|
+
};
|
|
1389
|
+
}),
|
|
1390
|
+
/**
|
|
1391
|
+
*
|
|
1392
|
+
* @param {string} planId
|
|
1393
|
+
* @param {RunsTriggerPlanIdPostRequest} runsTriggerPlanIdPostRequest
|
|
1394
|
+
* @param {*} [options] Override http request option.
|
|
1395
|
+
* @throws {RequiredError}
|
|
1396
|
+
*/
|
|
1397
|
+
runsTriggerPlanIdPost: (planId_1, runsTriggerPlanIdPostRequest_1, ...args_1) => __awaiter(this, [planId_1, runsTriggerPlanIdPostRequest_1, ...args_1], void 0, function* (planId, runsTriggerPlanIdPostRequest, options = {}) {
|
|
1398
|
+
// verify required parameter 'planId' is not null or undefined
|
|
1399
|
+
(0, common_1.assertParamExists)('runsTriggerPlanIdPost', 'planId', planId);
|
|
1400
|
+
// verify required parameter 'runsTriggerPlanIdPostRequest' is not null or undefined
|
|
1401
|
+
(0, common_1.assertParamExists)('runsTriggerPlanIdPost', 'runsTriggerPlanIdPostRequest', runsTriggerPlanIdPostRequest);
|
|
1402
|
+
const localVarPath = `/runs/trigger/{planId}`
|
|
1403
|
+
.replace(`{${"planId"}}`, encodeURIComponent(String(planId)));
|
|
1404
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1405
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1406
|
+
let baseOptions;
|
|
1407
|
+
if (configuration) {
|
|
1408
|
+
baseOptions = configuration.baseOptions;
|
|
1409
|
+
}
|
|
1410
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1411
|
+
const localVarHeaderParameter = {};
|
|
1412
|
+
const localVarQueryParameter = {};
|
|
1413
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1414
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1415
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1416
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1417
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1418
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(runsTriggerPlanIdPostRequest, localVarRequestOptions, configuration);
|
|
1419
|
+
return {
|
|
1420
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1421
|
+
options: localVarRequestOptions,
|
|
1422
|
+
};
|
|
1423
|
+
}),
|
|
1424
|
+
};
|
|
1425
|
+
};
|
|
1426
|
+
exports.RunsApiAxiosParamCreator = RunsApiAxiosParamCreator;
|
|
1427
|
+
/**
|
|
1428
|
+
* RunsApi - functional programming interface
|
|
1429
|
+
*/
|
|
1430
|
+
const RunsApiFp = function (configuration) {
|
|
1431
|
+
const localVarAxiosParamCreator = (0, exports.RunsApiAxiosParamCreator)(configuration);
|
|
1432
|
+
return {
|
|
1433
|
+
/**
|
|
1434
|
+
*
|
|
1435
|
+
* @param {string} [planId]
|
|
1436
|
+
* @param {RunsGetStatusEnum} [status]
|
|
1437
|
+
* @param {number} [limit]
|
|
1438
|
+
* @param {number} [offset]
|
|
1439
|
+
* @param {*} [options] Override http request option.
|
|
1440
|
+
* @throws {RequiredError}
|
|
1441
|
+
*/
|
|
1442
|
+
runsGet(planId, status, limit, offset, options) {
|
|
1443
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1444
|
+
var _a, _b, _c;
|
|
1445
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.runsGet(planId, status, limit, offset, options);
|
|
1446
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1447
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RunsApi.runsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1448
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1449
|
+
});
|
|
1450
|
+
},
|
|
1451
|
+
/**
|
|
1452
|
+
*
|
|
1453
|
+
* @param {string} id
|
|
1454
|
+
* @param {*} [options] Override http request option.
|
|
1455
|
+
* @throws {RequiredError}
|
|
1456
|
+
*/
|
|
1457
|
+
runsIdGet(id, options) {
|
|
1458
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1459
|
+
var _a, _b, _c;
|
|
1460
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.runsIdGet(id, options);
|
|
1461
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1462
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RunsApi.runsIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1463
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1464
|
+
});
|
|
1465
|
+
},
|
|
1466
|
+
/**
|
|
1467
|
+
*
|
|
1468
|
+
* @param {string} id
|
|
1469
|
+
* @param {RunsIdPatchRequest} [runsIdPatchRequest]
|
|
1470
|
+
* @param {*} [options] Override http request option.
|
|
1471
|
+
* @throws {RequiredError}
|
|
1472
|
+
*/
|
|
1473
|
+
runsIdPatch(id, runsIdPatchRequest, options) {
|
|
1474
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1475
|
+
var _a, _b, _c;
|
|
1476
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.runsIdPatch(id, runsIdPatchRequest, options);
|
|
1477
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1478
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RunsApi.runsIdPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1479
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1480
|
+
});
|
|
1481
|
+
},
|
|
1482
|
+
/**
|
|
1483
|
+
*
|
|
1484
|
+
* @param {string} planId
|
|
1485
|
+
* @param {RunsTriggerPlanIdPostRequest} runsTriggerPlanIdPostRequest
|
|
1486
|
+
* @param {*} [options] Override http request option.
|
|
1487
|
+
* @throws {RequiredError}
|
|
1488
|
+
*/
|
|
1489
|
+
runsTriggerPlanIdPost(planId, runsTriggerPlanIdPostRequest, options) {
|
|
1490
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1491
|
+
var _a, _b, _c;
|
|
1492
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.runsTriggerPlanIdPost(planId, runsTriggerPlanIdPostRequest, options);
|
|
1493
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1494
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RunsApi.runsTriggerPlanIdPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1495
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1496
|
+
});
|
|
1497
|
+
},
|
|
1498
|
+
};
|
|
1499
|
+
};
|
|
1500
|
+
exports.RunsApiFp = RunsApiFp;
|
|
1501
|
+
/**
|
|
1502
|
+
* RunsApi - factory interface
|
|
1503
|
+
*/
|
|
1504
|
+
const RunsApiFactory = function (configuration, basePath, axios) {
|
|
1505
|
+
const localVarFp = (0, exports.RunsApiFp)(configuration);
|
|
1506
|
+
return {
|
|
1507
|
+
/**
|
|
1508
|
+
*
|
|
1509
|
+
* @param {string} [planId]
|
|
1510
|
+
* @param {RunsGetStatusEnum} [status]
|
|
1511
|
+
* @param {number} [limit]
|
|
1512
|
+
* @param {number} [offset]
|
|
1513
|
+
* @param {*} [options] Override http request option.
|
|
1514
|
+
* @throws {RequiredError}
|
|
1515
|
+
*/
|
|
1516
|
+
runsGet(planId, status, limit, offset, options) {
|
|
1517
|
+
return localVarFp.runsGet(planId, status, limit, offset, options).then((request) => request(axios, basePath));
|
|
1518
|
+
},
|
|
1519
|
+
/**
|
|
1520
|
+
*
|
|
1521
|
+
* @param {string} id
|
|
1522
|
+
* @param {*} [options] Override http request option.
|
|
1523
|
+
* @throws {RequiredError}
|
|
1524
|
+
*/
|
|
1525
|
+
runsIdGet(id, options) {
|
|
1526
|
+
return localVarFp.runsIdGet(id, options).then((request) => request(axios, basePath));
|
|
1527
|
+
},
|
|
1528
|
+
/**
|
|
1529
|
+
*
|
|
1530
|
+
* @param {string} id
|
|
1531
|
+
* @param {RunsIdPatchRequest} [runsIdPatchRequest]
|
|
1532
|
+
* @param {*} [options] Override http request option.
|
|
1533
|
+
* @throws {RequiredError}
|
|
1534
|
+
*/
|
|
1535
|
+
runsIdPatch(id, runsIdPatchRequest, options) {
|
|
1536
|
+
return localVarFp.runsIdPatch(id, runsIdPatchRequest, options).then((request) => request(axios, basePath));
|
|
1537
|
+
},
|
|
1538
|
+
/**
|
|
1539
|
+
*
|
|
1540
|
+
* @param {string} planId
|
|
1541
|
+
* @param {RunsTriggerPlanIdPostRequest} runsTriggerPlanIdPostRequest
|
|
1542
|
+
* @param {*} [options] Override http request option.
|
|
1543
|
+
* @throws {RequiredError}
|
|
1544
|
+
*/
|
|
1545
|
+
runsTriggerPlanIdPost(planId, runsTriggerPlanIdPostRequest, options) {
|
|
1546
|
+
return localVarFp.runsTriggerPlanIdPost(planId, runsTriggerPlanIdPostRequest, options).then((request) => request(axios, basePath));
|
|
1547
|
+
},
|
|
1548
|
+
};
|
|
1549
|
+
};
|
|
1550
|
+
exports.RunsApiFactory = RunsApiFactory;
|
|
1551
|
+
/**
|
|
1552
|
+
* RunsApi - object-oriented interface
|
|
1553
|
+
*/
|
|
1554
|
+
class RunsApi extends base_1.BaseAPI {
|
|
1555
|
+
/**
|
|
1556
|
+
*
|
|
1557
|
+
* @param {string} [planId]
|
|
1558
|
+
* @param {RunsGetStatusEnum} [status]
|
|
1559
|
+
* @param {number} [limit]
|
|
1560
|
+
* @param {number} [offset]
|
|
1561
|
+
* @param {*} [options] Override http request option.
|
|
1562
|
+
* @throws {RequiredError}
|
|
1563
|
+
*/
|
|
1564
|
+
runsGet(planId, status, limit, offset, options) {
|
|
1565
|
+
return (0, exports.RunsApiFp)(this.configuration).runsGet(planId, status, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
1566
|
+
}
|
|
1567
|
+
/**
|
|
1568
|
+
*
|
|
1569
|
+
* @param {string} id
|
|
1570
|
+
* @param {*} [options] Override http request option.
|
|
1571
|
+
* @throws {RequiredError}
|
|
1572
|
+
*/
|
|
1573
|
+
runsIdGet(id, options) {
|
|
1574
|
+
return (0, exports.RunsApiFp)(this.configuration).runsIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
1575
|
+
}
|
|
1576
|
+
/**
|
|
1577
|
+
*
|
|
1578
|
+
* @param {string} id
|
|
1579
|
+
* @param {RunsIdPatchRequest} [runsIdPatchRequest]
|
|
1580
|
+
* @param {*} [options] Override http request option.
|
|
1581
|
+
* @throws {RequiredError}
|
|
1582
|
+
*/
|
|
1583
|
+
runsIdPatch(id, runsIdPatchRequest, options) {
|
|
1584
|
+
return (0, exports.RunsApiFp)(this.configuration).runsIdPatch(id, runsIdPatchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1585
|
+
}
|
|
1586
|
+
/**
|
|
1587
|
+
*
|
|
1588
|
+
* @param {string} planId
|
|
1589
|
+
* @param {RunsTriggerPlanIdPostRequest} runsTriggerPlanIdPostRequest
|
|
1590
|
+
* @param {*} [options] Override http request option.
|
|
1591
|
+
* @throws {RequiredError}
|
|
1592
|
+
*/
|
|
1593
|
+
runsTriggerPlanIdPost(planId, runsTriggerPlanIdPostRequest, options) {
|
|
1594
|
+
return (0, exports.RunsApiFp)(this.configuration).runsTriggerPlanIdPost(planId, runsTriggerPlanIdPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
exports.RunsApi = RunsApi;
|
|
1598
|
+
exports.RunsGetStatusEnum = {
|
|
1599
|
+
Pending: 'pending',
|
|
1600
|
+
Running: 'running',
|
|
1601
|
+
Completed: 'completed',
|
|
1602
|
+
Failed: 'failed'
|
|
1603
|
+
};
|