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