@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/api.ts
ADDED
|
@@ -0,0 +1,2057 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from './configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
22
|
+
import type { RequestArgs } from './base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
|
+
|
|
26
|
+
export interface AgentsGet200Response {
|
|
27
|
+
'data': Array<AgentsGet200ResponseDataInner>;
|
|
28
|
+
'total': number;
|
|
29
|
+
}
|
|
30
|
+
export interface AgentsGet200ResponseDataInner {
|
|
31
|
+
'id': string;
|
|
32
|
+
'location': string;
|
|
33
|
+
'status': AgentsGet200ResponseDataInnerStatusEnum;
|
|
34
|
+
'lastHeartbeat': string;
|
|
35
|
+
'registeredAt': string;
|
|
36
|
+
'metadata'?: { [key: string]: string; };
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export const AgentsGet200ResponseDataInnerStatusEnum = {
|
|
40
|
+
Online: 'online',
|
|
41
|
+
Offline: 'offline'
|
|
42
|
+
} as const;
|
|
43
|
+
|
|
44
|
+
export type AgentsGet200ResponseDataInnerStatusEnum = typeof AgentsGet200ResponseDataInnerStatusEnum[keyof typeof AgentsGet200ResponseDataInnerStatusEnum];
|
|
45
|
+
|
|
46
|
+
export interface AgentsIdHeartbeatPost200Response {
|
|
47
|
+
'success': boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface AgentsIdHeartbeatPost404Response {
|
|
50
|
+
'error': string;
|
|
51
|
+
}
|
|
52
|
+
export interface AgentsLocationsGet200Response {
|
|
53
|
+
'locations': Array<string>;
|
|
54
|
+
}
|
|
55
|
+
export interface AgentsRegisterPost200Response {
|
|
56
|
+
'id': string;
|
|
57
|
+
'location': string;
|
|
58
|
+
'status': AgentsRegisterPost200ResponseStatusEnum;
|
|
59
|
+
'lastHeartbeat': string;
|
|
60
|
+
'registeredAt': string;
|
|
61
|
+
'metadata'?: { [key: string]: string; };
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export const AgentsRegisterPost200ResponseStatusEnum = {
|
|
65
|
+
Online: 'online',
|
|
66
|
+
Offline: 'offline'
|
|
67
|
+
} as const;
|
|
68
|
+
|
|
69
|
+
export type AgentsRegisterPost200ResponseStatusEnum = typeof AgentsRegisterPost200ResponseStatusEnum[keyof typeof AgentsRegisterPost200ResponseStatusEnum];
|
|
70
|
+
|
|
71
|
+
export interface AgentsRegisterPostRequest {
|
|
72
|
+
'location': string;
|
|
73
|
+
'metadata'?: { [key: string]: string; };
|
|
74
|
+
}
|
|
75
|
+
export interface Assertion {
|
|
76
|
+
'assertionType': AssertionAssertionTypeEnum;
|
|
77
|
+
'nodeId': string;
|
|
78
|
+
'accessor': AssertionAccessorEnum;
|
|
79
|
+
'path': string;
|
|
80
|
+
'predicate': JSONAssertion1Predicate;
|
|
81
|
+
'expected': any;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export const AssertionAssertionTypeEnum = {
|
|
85
|
+
Text: 'TEXT'
|
|
86
|
+
} as const;
|
|
87
|
+
|
|
88
|
+
export type AssertionAssertionTypeEnum = typeof AssertionAssertionTypeEnum[keyof typeof AssertionAssertionTypeEnum];
|
|
89
|
+
export const AssertionAccessorEnum = {
|
|
90
|
+
Body: 'body',
|
|
91
|
+
Headers: 'headers',
|
|
92
|
+
Status: 'status'
|
|
93
|
+
} as const;
|
|
94
|
+
|
|
95
|
+
export type AssertionAccessorEnum = typeof AssertionAccessorEnum[keyof typeof AssertionAccessorEnum];
|
|
96
|
+
|
|
97
|
+
export interface Assertion1 {
|
|
98
|
+
'assertionType': Assertion1AssertionTypeEnum;
|
|
99
|
+
'nodeId': string;
|
|
100
|
+
'accessor': Assertion1AccessorEnum;
|
|
101
|
+
'path': string;
|
|
102
|
+
'predicate': JSONAssertion1Predicate;
|
|
103
|
+
'expected': any;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export const Assertion1AssertionTypeEnum = {
|
|
107
|
+
Text: 'TEXT'
|
|
108
|
+
} as const;
|
|
109
|
+
|
|
110
|
+
export type Assertion1AssertionTypeEnum = typeof Assertion1AssertionTypeEnum[keyof typeof Assertion1AssertionTypeEnum];
|
|
111
|
+
export const Assertion1AccessorEnum = {
|
|
112
|
+
Body: 'body',
|
|
113
|
+
Headers: 'headers',
|
|
114
|
+
Status: 'status'
|
|
115
|
+
} as const;
|
|
116
|
+
|
|
117
|
+
export type Assertion1AccessorEnum = typeof Assertion1AccessorEnum[keyof typeof Assertion1AccessorEnum];
|
|
118
|
+
|
|
119
|
+
export interface Assertion1AnyOf {
|
|
120
|
+
'assertionType': Assertion1AnyOfAssertionTypeEnum;
|
|
121
|
+
'nodeId': string;
|
|
122
|
+
'accessor': Assertion1AnyOfAccessorEnum;
|
|
123
|
+
'path': Array<string>;
|
|
124
|
+
'predicate': JSONAssertion1Predicate;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export const Assertion1AnyOfAssertionTypeEnum = {
|
|
128
|
+
Json: 'JSON'
|
|
129
|
+
} as const;
|
|
130
|
+
|
|
131
|
+
export type Assertion1AnyOfAssertionTypeEnum = typeof Assertion1AnyOfAssertionTypeEnum[keyof typeof Assertion1AnyOfAssertionTypeEnum];
|
|
132
|
+
export const Assertion1AnyOfAccessorEnum = {
|
|
133
|
+
Body: 'body',
|
|
134
|
+
Headers: 'headers',
|
|
135
|
+
Status: 'status'
|
|
136
|
+
} as const;
|
|
137
|
+
|
|
138
|
+
export type Assertion1AnyOfAccessorEnum = typeof Assertion1AnyOfAccessorEnum[keyof typeof Assertion1AnyOfAccessorEnum];
|
|
139
|
+
|
|
140
|
+
export interface Assertion1AnyOf1 {
|
|
141
|
+
'assertionType': Assertion1AnyOf1AssertionTypeEnum;
|
|
142
|
+
'path': Array<string>;
|
|
143
|
+
'expected': any;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export const Assertion1AnyOf1AssertionTypeEnum = {
|
|
147
|
+
Xml: 'XML'
|
|
148
|
+
} as const;
|
|
149
|
+
|
|
150
|
+
export type Assertion1AnyOf1AssertionTypeEnum = typeof Assertion1AnyOf1AssertionTypeEnum[keyof typeof Assertion1AnyOf1AssertionTypeEnum];
|
|
151
|
+
|
|
152
|
+
export interface Assertion1AnyOf2 {
|
|
153
|
+
'assertionType': Assertion1AnyOf2AssertionTypeEnum;
|
|
154
|
+
'path': string;
|
|
155
|
+
'expected': any;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export const Assertion1AnyOf2AssertionTypeEnum = {
|
|
159
|
+
Text: 'TEXT'
|
|
160
|
+
} as const;
|
|
161
|
+
|
|
162
|
+
export type Assertion1AnyOf2AssertionTypeEnum = typeof Assertion1AnyOf2AssertionTypeEnum[keyof typeof Assertion1AnyOf2AssertionTypeEnum];
|
|
163
|
+
|
|
164
|
+
export interface Assertions {
|
|
165
|
+
'id': string;
|
|
166
|
+
'type': AssertionsTypeEnum;
|
|
167
|
+
'assertions': Array<Assertion1>;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export const AssertionsTypeEnum = {
|
|
171
|
+
Assertion: 'ASSERTION'
|
|
172
|
+
} as const;
|
|
173
|
+
|
|
174
|
+
export type AssertionsTypeEnum = typeof AssertionsTypeEnum[keyof typeof AssertionsTypeEnum];
|
|
175
|
+
|
|
176
|
+
export interface Assertions1 {
|
|
177
|
+
'id': string;
|
|
178
|
+
'type': Assertions1TypeEnum;
|
|
179
|
+
'assertions': Array<Assertion1>;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export const Assertions1TypeEnum = {
|
|
183
|
+
Assertion: 'ASSERTION'
|
|
184
|
+
} as const;
|
|
185
|
+
|
|
186
|
+
export type Assertions1TypeEnum = typeof Assertions1TypeEnum[keyof typeof Assertions1TypeEnum];
|
|
187
|
+
|
|
188
|
+
export interface BinaryPredicate {
|
|
189
|
+
'expected': any;
|
|
190
|
+
'operator': BinaryPredicateOperatorEnum;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export const BinaryPredicateOperatorEnum = {
|
|
194
|
+
Equal: 'EQUAL',
|
|
195
|
+
NotEqual: 'NOT_EQUAL',
|
|
196
|
+
GreaterThan: 'GREATER_THAN',
|
|
197
|
+
LessThan: 'LESS_THAN',
|
|
198
|
+
GreaterThanOrEqual: 'GREATER_THAN_OR_EQUAL',
|
|
199
|
+
LessThanOrEqual: 'LESS_THAN_OR_EQUAL',
|
|
200
|
+
Contains: 'CONTAINS',
|
|
201
|
+
NotContains: 'NOT_CONTAINS',
|
|
202
|
+
StartsWith: 'STARTS_WITH',
|
|
203
|
+
EndsWith: 'ENDS_WITH',
|
|
204
|
+
NotStartsWith: 'NOT_STARTS_WITH',
|
|
205
|
+
NotEndsWith: 'NOT_ENDS_WITH'
|
|
206
|
+
} as const;
|
|
207
|
+
|
|
208
|
+
export type BinaryPredicateOperatorEnum = typeof BinaryPredicateOperatorEnum[keyof typeof BinaryPredicateOperatorEnum];
|
|
209
|
+
|
|
210
|
+
export interface BinaryPredicate1 {
|
|
211
|
+
'expected': any;
|
|
212
|
+
'operator': BinaryPredicate1OperatorEnum;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export const BinaryPredicate1OperatorEnum = {
|
|
216
|
+
Equal: 'EQUAL',
|
|
217
|
+
NotEqual: 'NOT_EQUAL',
|
|
218
|
+
GreaterThan: 'GREATER_THAN',
|
|
219
|
+
LessThan: 'LESS_THAN',
|
|
220
|
+
GreaterThanOrEqual: 'GREATER_THAN_OR_EQUAL',
|
|
221
|
+
LessThanOrEqual: 'LESS_THAN_OR_EQUAL',
|
|
222
|
+
Contains: 'CONTAINS',
|
|
223
|
+
NotContains: 'NOT_CONTAINS',
|
|
224
|
+
StartsWith: 'STARTS_WITH',
|
|
225
|
+
EndsWith: 'ENDS_WITH',
|
|
226
|
+
NotStartsWith: 'NOT_STARTS_WITH',
|
|
227
|
+
NotEndsWith: 'NOT_ENDS_WITH'
|
|
228
|
+
} as const;
|
|
229
|
+
|
|
230
|
+
export type BinaryPredicate1OperatorEnum = typeof BinaryPredicate1OperatorEnum[keyof typeof BinaryPredicate1OperatorEnum];
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
export const BinaryPredicateOperator = {
|
|
234
|
+
Equal: 'EQUAL',
|
|
235
|
+
NotEqual: 'NOT_EQUAL',
|
|
236
|
+
GreaterThan: 'GREATER_THAN',
|
|
237
|
+
LessThan: 'LESS_THAN',
|
|
238
|
+
GreaterThanOrEqual: 'GREATER_THAN_OR_EQUAL',
|
|
239
|
+
LessThanOrEqual: 'LESS_THAN_OR_EQUAL',
|
|
240
|
+
Contains: 'CONTAINS',
|
|
241
|
+
NotContains: 'NOT_CONTAINS',
|
|
242
|
+
StartsWith: 'STARTS_WITH',
|
|
243
|
+
EndsWith: 'ENDS_WITH',
|
|
244
|
+
NotStartsWith: 'NOT_STARTS_WITH',
|
|
245
|
+
NotEndsWith: 'NOT_ENDS_WITH'
|
|
246
|
+
} as const;
|
|
247
|
+
|
|
248
|
+
export type BinaryPredicateOperator = typeof BinaryPredicateOperator[keyof typeof BinaryPredicateOperator];
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
export interface ConfigGet200Response {
|
|
252
|
+
'data': Array<ConfigOrganizationIdEnvironmentTargetsTargetKeyPut200ResponseData>;
|
|
253
|
+
}
|
|
254
|
+
export interface ConfigOrganizationIdEnvironmentTargetsTargetKeyGet200Response {
|
|
255
|
+
'data': ConfigOrganizationIdEnvironmentTargetsTargetKeyGet200ResponseData;
|
|
256
|
+
}
|
|
257
|
+
export interface ConfigOrganizationIdEnvironmentTargetsTargetKeyGet200ResponseData {
|
|
258
|
+
'baseUrl': string;
|
|
259
|
+
}
|
|
260
|
+
export interface ConfigOrganizationIdEnvironmentTargetsTargetKeyPut200Response {
|
|
261
|
+
'data': ConfigOrganizationIdEnvironmentTargetsTargetKeyPut200ResponseData;
|
|
262
|
+
}
|
|
263
|
+
export interface ConfigOrganizationIdEnvironmentTargetsTargetKeyPut200ResponseData {
|
|
264
|
+
'id': string;
|
|
265
|
+
'organizationId': string;
|
|
266
|
+
'environment': string;
|
|
267
|
+
'targets': { [key: string]: string; };
|
|
268
|
+
'createdAt': string;
|
|
269
|
+
'updatedAt': string;
|
|
270
|
+
}
|
|
271
|
+
export interface ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest {
|
|
272
|
+
'baseUrl': string;
|
|
273
|
+
}
|
|
274
|
+
export interface Edge {
|
|
275
|
+
'from': string;
|
|
276
|
+
'to': string;
|
|
277
|
+
}
|
|
278
|
+
export interface Edge1 {
|
|
279
|
+
'from': string;
|
|
280
|
+
'to': string;
|
|
281
|
+
}
|
|
282
|
+
export interface Endpoint {
|
|
283
|
+
'id': string;
|
|
284
|
+
'type': EndpointTypeEnum;
|
|
285
|
+
'method': EndpointMethodEnum;
|
|
286
|
+
'path': string;
|
|
287
|
+
'base': Endpoint1Base;
|
|
288
|
+
'headers'?: { [key: string]: Endpoint1HeadersValue; };
|
|
289
|
+
'body'?: any;
|
|
290
|
+
'response_format': EndpointResponseFormatEnum;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export const EndpointTypeEnum = {
|
|
294
|
+
Endpoint: 'ENDPOINT'
|
|
295
|
+
} as const;
|
|
296
|
+
|
|
297
|
+
export type EndpointTypeEnum = typeof EndpointTypeEnum[keyof typeof EndpointTypeEnum];
|
|
298
|
+
export const EndpointMethodEnum = {
|
|
299
|
+
Get: 'GET',
|
|
300
|
+
Post: 'POST',
|
|
301
|
+
Put: 'PUT',
|
|
302
|
+
Delete: 'DELETE',
|
|
303
|
+
Patch: 'PATCH',
|
|
304
|
+
Head: 'HEAD',
|
|
305
|
+
Options: 'OPTIONS',
|
|
306
|
+
Connect: 'CONNECT',
|
|
307
|
+
Trace: 'TRACE'
|
|
308
|
+
} as const;
|
|
309
|
+
|
|
310
|
+
export type EndpointMethodEnum = typeof EndpointMethodEnum[keyof typeof EndpointMethodEnum];
|
|
311
|
+
export const EndpointResponseFormatEnum = {
|
|
312
|
+
Json: 'JSON',
|
|
313
|
+
Xml: 'XML',
|
|
314
|
+
Text: 'TEXT'
|
|
315
|
+
} as const;
|
|
316
|
+
|
|
317
|
+
export type EndpointResponseFormatEnum = typeof EndpointResponseFormatEnum[keyof typeof EndpointResponseFormatEnum];
|
|
318
|
+
|
|
319
|
+
export interface Endpoint1 {
|
|
320
|
+
'id': string;
|
|
321
|
+
'type': Endpoint1TypeEnum;
|
|
322
|
+
'method': Endpoint1MethodEnum;
|
|
323
|
+
'path': string;
|
|
324
|
+
'base': Endpoint1Base;
|
|
325
|
+
'headers'?: { [key: string]: Endpoint1HeadersValue; };
|
|
326
|
+
'body'?: any;
|
|
327
|
+
'response_format': Endpoint1ResponseFormatEnum;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export const Endpoint1TypeEnum = {
|
|
331
|
+
Endpoint: 'ENDPOINT'
|
|
332
|
+
} as const;
|
|
333
|
+
|
|
334
|
+
export type Endpoint1TypeEnum = typeof Endpoint1TypeEnum[keyof typeof Endpoint1TypeEnum];
|
|
335
|
+
export const Endpoint1MethodEnum = {
|
|
336
|
+
Get: 'GET',
|
|
337
|
+
Post: 'POST',
|
|
338
|
+
Put: 'PUT',
|
|
339
|
+
Delete: 'DELETE',
|
|
340
|
+
Patch: 'PATCH',
|
|
341
|
+
Head: 'HEAD',
|
|
342
|
+
Options: 'OPTIONS',
|
|
343
|
+
Connect: 'CONNECT',
|
|
344
|
+
Trace: 'TRACE'
|
|
345
|
+
} as const;
|
|
346
|
+
|
|
347
|
+
export type Endpoint1MethodEnum = typeof Endpoint1MethodEnum[keyof typeof Endpoint1MethodEnum];
|
|
348
|
+
export const Endpoint1ResponseFormatEnum = {
|
|
349
|
+
Json: 'JSON',
|
|
350
|
+
Xml: 'XML',
|
|
351
|
+
Text: 'TEXT'
|
|
352
|
+
} as const;
|
|
353
|
+
|
|
354
|
+
export type Endpoint1ResponseFormatEnum = typeof Endpoint1ResponseFormatEnum[keyof typeof Endpoint1ResponseFormatEnum];
|
|
355
|
+
|
|
356
|
+
export interface Endpoint1Base {
|
|
357
|
+
'type': Endpoint1BaseTypeEnum;
|
|
358
|
+
'key': string;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
export const Endpoint1BaseTypeEnum = {
|
|
362
|
+
Target: 'target'
|
|
363
|
+
} as const;
|
|
364
|
+
|
|
365
|
+
export type Endpoint1BaseTypeEnum = typeof Endpoint1BaseTypeEnum[keyof typeof Endpoint1BaseTypeEnum];
|
|
366
|
+
|
|
367
|
+
export interface Endpoint1HeadersValue {
|
|
368
|
+
'$secret': Endpoint1HeadersValueAnyOfSecret;
|
|
369
|
+
}
|
|
370
|
+
export interface Endpoint1HeadersValueAnyOf {
|
|
371
|
+
'$secret': Endpoint1HeadersValueAnyOfSecret;
|
|
372
|
+
}
|
|
373
|
+
export interface Endpoint1HeadersValueAnyOfSecret {
|
|
374
|
+
'provider': string;
|
|
375
|
+
'ref': string;
|
|
376
|
+
'version'?: string;
|
|
377
|
+
'field'?: string;
|
|
378
|
+
}
|
|
379
|
+
export interface Frequency {
|
|
380
|
+
'every': number;
|
|
381
|
+
'unit': FrequencyUnitEnum;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
export const FrequencyUnitEnum = {
|
|
385
|
+
Minute: 'MINUTE',
|
|
386
|
+
Hour: 'HOUR',
|
|
387
|
+
Day: 'DAY'
|
|
388
|
+
} as const;
|
|
389
|
+
|
|
390
|
+
export type FrequencyUnitEnum = typeof FrequencyUnitEnum[keyof typeof FrequencyUnitEnum];
|
|
391
|
+
|
|
392
|
+
export interface Frequency1 {
|
|
393
|
+
'every': number;
|
|
394
|
+
'unit': Frequency1UnitEnum;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
export const Frequency1UnitEnum = {
|
|
398
|
+
Minute: 'MINUTE',
|
|
399
|
+
Hour: 'HOUR',
|
|
400
|
+
Day: 'DAY'
|
|
401
|
+
} as const;
|
|
402
|
+
|
|
403
|
+
export type Frequency1UnitEnum = typeof Frequency1UnitEnum[keyof typeof Frequency1UnitEnum];
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
export const HttpMethod = {
|
|
407
|
+
Get: 'GET',
|
|
408
|
+
Post: 'POST',
|
|
409
|
+
Put: 'PUT',
|
|
410
|
+
Delete: 'DELETE',
|
|
411
|
+
Patch: 'PATCH',
|
|
412
|
+
Head: 'HEAD',
|
|
413
|
+
Options: 'OPTIONS',
|
|
414
|
+
Connect: 'CONNECT',
|
|
415
|
+
Trace: 'TRACE'
|
|
416
|
+
} as const;
|
|
417
|
+
|
|
418
|
+
export type HttpMethod = typeof HttpMethod[keyof typeof HttpMethod];
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
export interface JSONAssertion {
|
|
422
|
+
'nodeId': string;
|
|
423
|
+
'accessor': JSONAssertionAccessorEnum;
|
|
424
|
+
'path': Array<string>;
|
|
425
|
+
'predicate': JSONAssertion1Predicate;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
export const JSONAssertionAccessorEnum = {
|
|
429
|
+
Body: 'body',
|
|
430
|
+
Headers: 'headers',
|
|
431
|
+
Status: 'status'
|
|
432
|
+
} as const;
|
|
433
|
+
|
|
434
|
+
export type JSONAssertionAccessorEnum = typeof JSONAssertionAccessorEnum[keyof typeof JSONAssertionAccessorEnum];
|
|
435
|
+
|
|
436
|
+
export interface JSONAssertion1Predicate {
|
|
437
|
+
'expected': any;
|
|
438
|
+
'operator': JSONAssertion1PredicateOperatorEnum;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export const JSONAssertion1PredicateOperatorEnum = {
|
|
442
|
+
Equal: 'EQUAL',
|
|
443
|
+
NotEqual: 'NOT_EQUAL',
|
|
444
|
+
GreaterThan: 'GREATER_THAN',
|
|
445
|
+
LessThan: 'LESS_THAN',
|
|
446
|
+
GreaterThanOrEqual: 'GREATER_THAN_OR_EQUAL',
|
|
447
|
+
LessThanOrEqual: 'LESS_THAN_OR_EQUAL',
|
|
448
|
+
Contains: 'CONTAINS',
|
|
449
|
+
NotContains: 'NOT_CONTAINS',
|
|
450
|
+
StartsWith: 'STARTS_WITH',
|
|
451
|
+
EndsWith: 'ENDS_WITH',
|
|
452
|
+
NotStartsWith: 'NOT_STARTS_WITH',
|
|
453
|
+
NotEndsWith: 'NOT_ENDS_WITH'
|
|
454
|
+
} as const;
|
|
455
|
+
|
|
456
|
+
export type JSONAssertion1PredicateOperatorEnum = typeof JSONAssertion1PredicateOperatorEnum[keyof typeof JSONAssertion1PredicateOperatorEnum];
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* @type Node
|
|
460
|
+
*/
|
|
461
|
+
export type Node = Assertions1 | Endpoint1 | Wait1;
|
|
462
|
+
|
|
463
|
+
export interface Node1 {
|
|
464
|
+
'id': string;
|
|
465
|
+
'type': Node1TypeEnum;
|
|
466
|
+
'method': Node1MethodEnum;
|
|
467
|
+
'path': string;
|
|
468
|
+
'base': Endpoint1Base;
|
|
469
|
+
'headers'?: { [key: string]: Endpoint1HeadersValue; };
|
|
470
|
+
'body'?: any;
|
|
471
|
+
'response_format': Node1ResponseFormatEnum;
|
|
472
|
+
'duration_ms': number;
|
|
473
|
+
'assertions': Array<Assertion1>;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
export const Node1TypeEnum = {
|
|
477
|
+
Endpoint: 'ENDPOINT',
|
|
478
|
+
Wait: 'WAIT',
|
|
479
|
+
Assertion: 'ASSERTION'
|
|
480
|
+
} as const;
|
|
481
|
+
|
|
482
|
+
export type Node1TypeEnum = typeof Node1TypeEnum[keyof typeof Node1TypeEnum];
|
|
483
|
+
export const Node1MethodEnum = {
|
|
484
|
+
Get: 'GET',
|
|
485
|
+
Post: 'POST',
|
|
486
|
+
Put: 'PUT',
|
|
487
|
+
Delete: 'DELETE',
|
|
488
|
+
Patch: 'PATCH',
|
|
489
|
+
Head: 'HEAD',
|
|
490
|
+
Options: 'OPTIONS',
|
|
491
|
+
Connect: 'CONNECT',
|
|
492
|
+
Trace: 'TRACE'
|
|
493
|
+
} as const;
|
|
494
|
+
|
|
495
|
+
export type Node1MethodEnum = typeof Node1MethodEnum[keyof typeof Node1MethodEnum];
|
|
496
|
+
export const Node1ResponseFormatEnum = {
|
|
497
|
+
Json: 'JSON',
|
|
498
|
+
Xml: 'XML',
|
|
499
|
+
Text: 'TEXT'
|
|
500
|
+
} as const;
|
|
501
|
+
|
|
502
|
+
export type Node1ResponseFormatEnum = typeof Node1ResponseFormatEnum[keyof typeof Node1ResponseFormatEnum];
|
|
503
|
+
|
|
504
|
+
export interface PlanGet200Response {
|
|
505
|
+
'data': Array<TestPlanV1>;
|
|
506
|
+
'total': number;
|
|
507
|
+
'page': number;
|
|
508
|
+
'limit': number;
|
|
509
|
+
}
|
|
510
|
+
export interface PlanPost201Response {
|
|
511
|
+
'data': TestPlanV1;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
export const ResponseFormat = {
|
|
515
|
+
Json: 'JSON',
|
|
516
|
+
Xml: 'XML',
|
|
517
|
+
Text: 'TEXT'
|
|
518
|
+
} as const;
|
|
519
|
+
|
|
520
|
+
export type ResponseFormat = typeof ResponseFormat[keyof typeof ResponseFormat];
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
export interface RunsGet200Response {
|
|
524
|
+
'data': Array<RunsGet200ResponseDataInner>;
|
|
525
|
+
'total': number;
|
|
526
|
+
'page': number;
|
|
527
|
+
'limit': number;
|
|
528
|
+
}
|
|
529
|
+
export interface RunsGet200ResponseDataInner {
|
|
530
|
+
'id': string;
|
|
531
|
+
'planId': string;
|
|
532
|
+
'executionGroupId': string;
|
|
533
|
+
'location': string;
|
|
534
|
+
'environment': string;
|
|
535
|
+
'status': RunsGet200ResponseDataInnerStatusEnum;
|
|
536
|
+
'triggeredBy': RunsGet200ResponseDataInnerTriggeredByEnum;
|
|
537
|
+
'startedAt': string;
|
|
538
|
+
'completedAt'?: string;
|
|
539
|
+
'duration_ms'?: number;
|
|
540
|
+
'success'?: boolean;
|
|
541
|
+
'errors'?: Array<string>;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
export const RunsGet200ResponseDataInnerStatusEnum = {
|
|
545
|
+
Pending: 'pending',
|
|
546
|
+
Running: 'running',
|
|
547
|
+
Completed: 'completed',
|
|
548
|
+
Failed: 'failed'
|
|
549
|
+
} as const;
|
|
550
|
+
|
|
551
|
+
export type RunsGet200ResponseDataInnerStatusEnum = typeof RunsGet200ResponseDataInnerStatusEnum[keyof typeof RunsGet200ResponseDataInnerStatusEnum];
|
|
552
|
+
export const RunsGet200ResponseDataInnerTriggeredByEnum = {
|
|
553
|
+
Schedule: 'schedule',
|
|
554
|
+
Manual: 'manual',
|
|
555
|
+
Api: 'api'
|
|
556
|
+
} as const;
|
|
557
|
+
|
|
558
|
+
export type RunsGet200ResponseDataInnerTriggeredByEnum = typeof RunsGet200ResponseDataInnerTriggeredByEnum[keyof typeof RunsGet200ResponseDataInnerTriggeredByEnum];
|
|
559
|
+
|
|
560
|
+
export interface RunsIdGet200Response {
|
|
561
|
+
'data': RunsIdGet200ResponseData;
|
|
562
|
+
}
|
|
563
|
+
export interface RunsIdGet200ResponseData {
|
|
564
|
+
'id': string;
|
|
565
|
+
'planId': string;
|
|
566
|
+
'executionGroupId': string;
|
|
567
|
+
'location': string;
|
|
568
|
+
'environment': string;
|
|
569
|
+
'status': RunsIdGet200ResponseDataStatusEnum;
|
|
570
|
+
'triggeredBy': RunsIdGet200ResponseDataTriggeredByEnum;
|
|
571
|
+
'startedAt': string;
|
|
572
|
+
'completedAt'?: string;
|
|
573
|
+
'duration_ms'?: number;
|
|
574
|
+
'success'?: boolean;
|
|
575
|
+
'errors'?: Array<string>;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
export const RunsIdGet200ResponseDataStatusEnum = {
|
|
579
|
+
Pending: 'pending',
|
|
580
|
+
Running: 'running',
|
|
581
|
+
Completed: 'completed',
|
|
582
|
+
Failed: 'failed'
|
|
583
|
+
} as const;
|
|
584
|
+
|
|
585
|
+
export type RunsIdGet200ResponseDataStatusEnum = typeof RunsIdGet200ResponseDataStatusEnum[keyof typeof RunsIdGet200ResponseDataStatusEnum];
|
|
586
|
+
export const RunsIdGet200ResponseDataTriggeredByEnum = {
|
|
587
|
+
Schedule: 'schedule',
|
|
588
|
+
Manual: 'manual',
|
|
589
|
+
Api: 'api'
|
|
590
|
+
} as const;
|
|
591
|
+
|
|
592
|
+
export type RunsIdGet200ResponseDataTriggeredByEnum = typeof RunsIdGet200ResponseDataTriggeredByEnum[keyof typeof RunsIdGet200ResponseDataTriggeredByEnum];
|
|
593
|
+
|
|
594
|
+
export interface RunsIdPatchRequest {
|
|
595
|
+
'status'?: RunsIdPatchRequestStatusEnum;
|
|
596
|
+
'completedAt'?: string;
|
|
597
|
+
'duration_ms'?: number;
|
|
598
|
+
'success'?: boolean;
|
|
599
|
+
'errors'?: Array<string>;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
export const RunsIdPatchRequestStatusEnum = {
|
|
603
|
+
Pending: 'pending',
|
|
604
|
+
Running: 'running',
|
|
605
|
+
Completed: 'completed',
|
|
606
|
+
Failed: 'failed'
|
|
607
|
+
} as const;
|
|
608
|
+
|
|
609
|
+
export type RunsIdPatchRequestStatusEnum = typeof RunsIdPatchRequestStatusEnum[keyof typeof RunsIdPatchRequestStatusEnum];
|
|
610
|
+
|
|
611
|
+
export interface RunsTriggerPlanIdPostRequest {
|
|
612
|
+
'environment': string;
|
|
613
|
+
}
|
|
614
|
+
export interface TestPlanV1 {
|
|
615
|
+
'organization'?: string;
|
|
616
|
+
'project'?: string;
|
|
617
|
+
'locations'?: Array<string>;
|
|
618
|
+
'id': string;
|
|
619
|
+
'name': string;
|
|
620
|
+
'version': TestPlanV1VersionEnum;
|
|
621
|
+
'frequency'?: Frequency1;
|
|
622
|
+
'environment': string;
|
|
623
|
+
'nodes': Array<Node1>;
|
|
624
|
+
'edges': Array<Edge1>;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
export const TestPlanV1VersionEnum = {
|
|
628
|
+
_10: '1.0'
|
|
629
|
+
} as const;
|
|
630
|
+
|
|
631
|
+
export type TestPlanV1VersionEnum = typeof TestPlanV1VersionEnum[keyof typeof TestPlanV1VersionEnum];
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
export const UnaryPredicate = {
|
|
635
|
+
IsNull: 'IS_NULL',
|
|
636
|
+
IsNotNull: 'IS_NOT_NULL',
|
|
637
|
+
IsTrue: 'IS_TRUE',
|
|
638
|
+
IsFalse: 'IS_FALSE',
|
|
639
|
+
IsEmpty: 'IS_EMPTY',
|
|
640
|
+
IsNotEmpty: 'IS_NOT_EMPTY'
|
|
641
|
+
} as const;
|
|
642
|
+
|
|
643
|
+
export type UnaryPredicate = typeof UnaryPredicate[keyof typeof UnaryPredicate];
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
export interface Wait {
|
|
647
|
+
'id': string;
|
|
648
|
+
'type': WaitTypeEnum;
|
|
649
|
+
'duration_ms': number;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
export const WaitTypeEnum = {
|
|
653
|
+
Wait: 'WAIT'
|
|
654
|
+
} as const;
|
|
655
|
+
|
|
656
|
+
export type WaitTypeEnum = typeof WaitTypeEnum[keyof typeof WaitTypeEnum];
|
|
657
|
+
|
|
658
|
+
export interface Wait1 {
|
|
659
|
+
'id': string;
|
|
660
|
+
'type': Wait1TypeEnum;
|
|
661
|
+
'duration_ms': number;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
export const Wait1TypeEnum = {
|
|
665
|
+
Wait: 'WAIT'
|
|
666
|
+
} as const;
|
|
667
|
+
|
|
668
|
+
export type Wait1TypeEnum = typeof Wait1TypeEnum[keyof typeof Wait1TypeEnum];
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* AgentsApi - axios parameter creator
|
|
673
|
+
*/
|
|
674
|
+
export const AgentsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
675
|
+
return {
|
|
676
|
+
/**
|
|
677
|
+
* List all agents with optional filtering
|
|
678
|
+
* @param {string} [location] Filter by location
|
|
679
|
+
* @param {AgentsGetStatusEnum} [status] Filter by status
|
|
680
|
+
* @param {*} [options] Override http request option.
|
|
681
|
+
* @throws {RequiredError}
|
|
682
|
+
*/
|
|
683
|
+
agentsGet: async (location?: string, status?: AgentsGetStatusEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
684
|
+
const localVarPath = `/agents/`;
|
|
685
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
686
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
687
|
+
let baseOptions;
|
|
688
|
+
if (configuration) {
|
|
689
|
+
baseOptions = configuration.baseOptions;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
693
|
+
const localVarHeaderParameter = {} as any;
|
|
694
|
+
const localVarQueryParameter = {} as any;
|
|
695
|
+
|
|
696
|
+
if (location !== undefined) {
|
|
697
|
+
localVarQueryParameter['location'] = location;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
if (status !== undefined) {
|
|
701
|
+
localVarQueryParameter['status'] = status;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
705
|
+
|
|
706
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
707
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
708
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
709
|
+
|
|
710
|
+
return {
|
|
711
|
+
url: toPathString(localVarUrlObj),
|
|
712
|
+
options: localVarRequestOptions,
|
|
713
|
+
};
|
|
714
|
+
},
|
|
715
|
+
/**
|
|
716
|
+
* Deregister an agent
|
|
717
|
+
* @param {string} id Agent ID
|
|
718
|
+
* @param {*} [options] Override http request option.
|
|
719
|
+
* @throws {RequiredError}
|
|
720
|
+
*/
|
|
721
|
+
agentsIdDelete: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
722
|
+
// verify required parameter 'id' is not null or undefined
|
|
723
|
+
assertParamExists('agentsIdDelete', 'id', id)
|
|
724
|
+
const localVarPath = `/agents/{id}`
|
|
725
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
726
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
727
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
728
|
+
let baseOptions;
|
|
729
|
+
if (configuration) {
|
|
730
|
+
baseOptions = configuration.baseOptions;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
734
|
+
const localVarHeaderParameter = {} as any;
|
|
735
|
+
const localVarQueryParameter = {} as any;
|
|
736
|
+
|
|
737
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
738
|
+
|
|
739
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
740
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
741
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
742
|
+
|
|
743
|
+
return {
|
|
744
|
+
url: toPathString(localVarUrlObj),
|
|
745
|
+
options: localVarRequestOptions,
|
|
746
|
+
};
|
|
747
|
+
},
|
|
748
|
+
/**
|
|
749
|
+
* Record a heartbeat from an agent
|
|
750
|
+
* @param {string} id Agent ID
|
|
751
|
+
* @param {*} [options] Override http request option.
|
|
752
|
+
* @throws {RequiredError}
|
|
753
|
+
*/
|
|
754
|
+
agentsIdHeartbeatPost: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
755
|
+
// verify required parameter 'id' is not null or undefined
|
|
756
|
+
assertParamExists('agentsIdHeartbeatPost', 'id', id)
|
|
757
|
+
const localVarPath = `/agents/{id}/heartbeat`
|
|
758
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
759
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
760
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
761
|
+
let baseOptions;
|
|
762
|
+
if (configuration) {
|
|
763
|
+
baseOptions = configuration.baseOptions;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
767
|
+
const localVarHeaderParameter = {} as any;
|
|
768
|
+
const localVarQueryParameter = {} as any;
|
|
769
|
+
|
|
770
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
771
|
+
|
|
772
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
773
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
774
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
775
|
+
|
|
776
|
+
return {
|
|
777
|
+
url: toPathString(localVarUrlObj),
|
|
778
|
+
options: localVarRequestOptions,
|
|
779
|
+
};
|
|
780
|
+
},
|
|
781
|
+
/**
|
|
782
|
+
* Get all registered locations (with at least one online agent)
|
|
783
|
+
* @param {*} [options] Override http request option.
|
|
784
|
+
* @throws {RequiredError}
|
|
785
|
+
*/
|
|
786
|
+
agentsLocationsGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
787
|
+
const localVarPath = `/agents/locations`;
|
|
788
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
789
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
790
|
+
let baseOptions;
|
|
791
|
+
if (configuration) {
|
|
792
|
+
baseOptions = configuration.baseOptions;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
796
|
+
const localVarHeaderParameter = {} as any;
|
|
797
|
+
const localVarQueryParameter = {} as any;
|
|
798
|
+
|
|
799
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
800
|
+
|
|
801
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
802
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
803
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
804
|
+
|
|
805
|
+
return {
|
|
806
|
+
url: toPathString(localVarUrlObj),
|
|
807
|
+
options: localVarRequestOptions,
|
|
808
|
+
};
|
|
809
|
+
},
|
|
810
|
+
/**
|
|
811
|
+
* Register a new agent with the hub
|
|
812
|
+
* @param {AgentsRegisterPostRequest} agentsRegisterPostRequest
|
|
813
|
+
* @param {*} [options] Override http request option.
|
|
814
|
+
* @throws {RequiredError}
|
|
815
|
+
*/
|
|
816
|
+
agentsRegisterPost: async (agentsRegisterPostRequest: AgentsRegisterPostRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
817
|
+
// verify required parameter 'agentsRegisterPostRequest' is not null or undefined
|
|
818
|
+
assertParamExists('agentsRegisterPost', 'agentsRegisterPostRequest', agentsRegisterPostRequest)
|
|
819
|
+
const localVarPath = `/agents/register`;
|
|
820
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
821
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
822
|
+
let baseOptions;
|
|
823
|
+
if (configuration) {
|
|
824
|
+
baseOptions = configuration.baseOptions;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
828
|
+
const localVarHeaderParameter = {} as any;
|
|
829
|
+
const localVarQueryParameter = {} as any;
|
|
830
|
+
|
|
831
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
832
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
833
|
+
|
|
834
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
835
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
836
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
837
|
+
localVarRequestOptions.data = serializeDataIfNeeded(agentsRegisterPostRequest, localVarRequestOptions, configuration)
|
|
838
|
+
|
|
839
|
+
return {
|
|
840
|
+
url: toPathString(localVarUrlObj),
|
|
841
|
+
options: localVarRequestOptions,
|
|
842
|
+
};
|
|
843
|
+
},
|
|
844
|
+
}
|
|
845
|
+
};
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* AgentsApi - functional programming interface
|
|
849
|
+
*/
|
|
850
|
+
export const AgentsApiFp = function(configuration?: Configuration) {
|
|
851
|
+
const localVarAxiosParamCreator = AgentsApiAxiosParamCreator(configuration)
|
|
852
|
+
return {
|
|
853
|
+
/**
|
|
854
|
+
* List all agents with optional filtering
|
|
855
|
+
* @param {string} [location] Filter by location
|
|
856
|
+
* @param {AgentsGetStatusEnum} [status] Filter by status
|
|
857
|
+
* @param {*} [options] Override http request option.
|
|
858
|
+
* @throws {RequiredError}
|
|
859
|
+
*/
|
|
860
|
+
async agentsGet(location?: string, status?: AgentsGetStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentsGet200Response>> {
|
|
861
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.agentsGet(location, status, options);
|
|
862
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
863
|
+
const localVarOperationServerBasePath = operationServerMap['AgentsApi.agentsGet']?.[localVarOperationServerIndex]?.url;
|
|
864
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
865
|
+
},
|
|
866
|
+
/**
|
|
867
|
+
* Deregister an agent
|
|
868
|
+
* @param {string} id Agent ID
|
|
869
|
+
* @param {*} [options] Override http request option.
|
|
870
|
+
* @throws {RequiredError}
|
|
871
|
+
*/
|
|
872
|
+
async agentsIdDelete(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentsIdHeartbeatPost200Response>> {
|
|
873
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.agentsIdDelete(id, options);
|
|
874
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
875
|
+
const localVarOperationServerBasePath = operationServerMap['AgentsApi.agentsIdDelete']?.[localVarOperationServerIndex]?.url;
|
|
876
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
877
|
+
},
|
|
878
|
+
/**
|
|
879
|
+
* Record a heartbeat from an agent
|
|
880
|
+
* @param {string} id Agent ID
|
|
881
|
+
* @param {*} [options] Override http request option.
|
|
882
|
+
* @throws {RequiredError}
|
|
883
|
+
*/
|
|
884
|
+
async agentsIdHeartbeatPost(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentsIdHeartbeatPost200Response>> {
|
|
885
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.agentsIdHeartbeatPost(id, options);
|
|
886
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
887
|
+
const localVarOperationServerBasePath = operationServerMap['AgentsApi.agentsIdHeartbeatPost']?.[localVarOperationServerIndex]?.url;
|
|
888
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
889
|
+
},
|
|
890
|
+
/**
|
|
891
|
+
* Get all registered locations (with at least one online agent)
|
|
892
|
+
* @param {*} [options] Override http request option.
|
|
893
|
+
* @throws {RequiredError}
|
|
894
|
+
*/
|
|
895
|
+
async agentsLocationsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentsLocationsGet200Response>> {
|
|
896
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.agentsLocationsGet(options);
|
|
897
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
898
|
+
const localVarOperationServerBasePath = operationServerMap['AgentsApi.agentsLocationsGet']?.[localVarOperationServerIndex]?.url;
|
|
899
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
900
|
+
},
|
|
901
|
+
/**
|
|
902
|
+
* Register a new agent with the hub
|
|
903
|
+
* @param {AgentsRegisterPostRequest} agentsRegisterPostRequest
|
|
904
|
+
* @param {*} [options] Override http request option.
|
|
905
|
+
* @throws {RequiredError}
|
|
906
|
+
*/
|
|
907
|
+
async agentsRegisterPost(agentsRegisterPostRequest: AgentsRegisterPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentsRegisterPost200Response>> {
|
|
908
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.agentsRegisterPost(agentsRegisterPostRequest, options);
|
|
909
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
910
|
+
const localVarOperationServerBasePath = operationServerMap['AgentsApi.agentsRegisterPost']?.[localVarOperationServerIndex]?.url;
|
|
911
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
912
|
+
},
|
|
913
|
+
}
|
|
914
|
+
};
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* AgentsApi - factory interface
|
|
918
|
+
*/
|
|
919
|
+
export const AgentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
920
|
+
const localVarFp = AgentsApiFp(configuration)
|
|
921
|
+
return {
|
|
922
|
+
/**
|
|
923
|
+
* List all agents with optional filtering
|
|
924
|
+
* @param {string} [location] Filter by location
|
|
925
|
+
* @param {AgentsGetStatusEnum} [status] Filter by status
|
|
926
|
+
* @param {*} [options] Override http request option.
|
|
927
|
+
* @throws {RequiredError}
|
|
928
|
+
*/
|
|
929
|
+
agentsGet(location?: string, status?: AgentsGetStatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<AgentsGet200Response> {
|
|
930
|
+
return localVarFp.agentsGet(location, status, options).then((request) => request(axios, basePath));
|
|
931
|
+
},
|
|
932
|
+
/**
|
|
933
|
+
* Deregister an agent
|
|
934
|
+
* @param {string} id Agent ID
|
|
935
|
+
* @param {*} [options] Override http request option.
|
|
936
|
+
* @throws {RequiredError}
|
|
937
|
+
*/
|
|
938
|
+
agentsIdDelete(id: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentsIdHeartbeatPost200Response> {
|
|
939
|
+
return localVarFp.agentsIdDelete(id, options).then((request) => request(axios, basePath));
|
|
940
|
+
},
|
|
941
|
+
/**
|
|
942
|
+
* Record a heartbeat from an agent
|
|
943
|
+
* @param {string} id Agent ID
|
|
944
|
+
* @param {*} [options] Override http request option.
|
|
945
|
+
* @throws {RequiredError}
|
|
946
|
+
*/
|
|
947
|
+
agentsIdHeartbeatPost(id: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentsIdHeartbeatPost200Response> {
|
|
948
|
+
return localVarFp.agentsIdHeartbeatPost(id, options).then((request) => request(axios, basePath));
|
|
949
|
+
},
|
|
950
|
+
/**
|
|
951
|
+
* Get all registered locations (with at least one online agent)
|
|
952
|
+
* @param {*} [options] Override http request option.
|
|
953
|
+
* @throws {RequiredError}
|
|
954
|
+
*/
|
|
955
|
+
agentsLocationsGet(options?: RawAxiosRequestConfig): AxiosPromise<AgentsLocationsGet200Response> {
|
|
956
|
+
return localVarFp.agentsLocationsGet(options).then((request) => request(axios, basePath));
|
|
957
|
+
},
|
|
958
|
+
/**
|
|
959
|
+
* Register a new agent with the hub
|
|
960
|
+
* @param {AgentsRegisterPostRequest} agentsRegisterPostRequest
|
|
961
|
+
* @param {*} [options] Override http request option.
|
|
962
|
+
* @throws {RequiredError}
|
|
963
|
+
*/
|
|
964
|
+
agentsRegisterPost(agentsRegisterPostRequest: AgentsRegisterPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<AgentsRegisterPost200Response> {
|
|
965
|
+
return localVarFp.agentsRegisterPost(agentsRegisterPostRequest, options).then((request) => request(axios, basePath));
|
|
966
|
+
},
|
|
967
|
+
};
|
|
968
|
+
};
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* AgentsApi - object-oriented interface
|
|
972
|
+
*/
|
|
973
|
+
export class AgentsApi extends BaseAPI {
|
|
974
|
+
/**
|
|
975
|
+
* List all agents with optional filtering
|
|
976
|
+
* @param {string} [location] Filter by location
|
|
977
|
+
* @param {AgentsGetStatusEnum} [status] Filter by status
|
|
978
|
+
* @param {*} [options] Override http request option.
|
|
979
|
+
* @throws {RequiredError}
|
|
980
|
+
*/
|
|
981
|
+
public agentsGet(location?: string, status?: AgentsGetStatusEnum, options?: RawAxiosRequestConfig) {
|
|
982
|
+
return AgentsApiFp(this.configuration).agentsGet(location, status, options).then((request) => request(this.axios, this.basePath));
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* Deregister an agent
|
|
987
|
+
* @param {string} id Agent ID
|
|
988
|
+
* @param {*} [options] Override http request option.
|
|
989
|
+
* @throws {RequiredError}
|
|
990
|
+
*/
|
|
991
|
+
public agentsIdDelete(id: string, options?: RawAxiosRequestConfig) {
|
|
992
|
+
return AgentsApiFp(this.configuration).agentsIdDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
/**
|
|
996
|
+
* Record a heartbeat from an agent
|
|
997
|
+
* @param {string} id Agent ID
|
|
998
|
+
* @param {*} [options] Override http request option.
|
|
999
|
+
* @throws {RequiredError}
|
|
1000
|
+
*/
|
|
1001
|
+
public agentsIdHeartbeatPost(id: string, options?: RawAxiosRequestConfig) {
|
|
1002
|
+
return AgentsApiFp(this.configuration).agentsIdHeartbeatPost(id, options).then((request) => request(this.axios, this.basePath));
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* Get all registered locations (with at least one online agent)
|
|
1007
|
+
* @param {*} [options] Override http request option.
|
|
1008
|
+
* @throws {RequiredError}
|
|
1009
|
+
*/
|
|
1010
|
+
public agentsLocationsGet(options?: RawAxiosRequestConfig) {
|
|
1011
|
+
return AgentsApiFp(this.configuration).agentsLocationsGet(options).then((request) => request(this.axios, this.basePath));
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* Register a new agent with the hub
|
|
1016
|
+
* @param {AgentsRegisterPostRequest} agentsRegisterPostRequest
|
|
1017
|
+
* @param {*} [options] Override http request option.
|
|
1018
|
+
* @throws {RequiredError}
|
|
1019
|
+
*/
|
|
1020
|
+
public agentsRegisterPost(agentsRegisterPostRequest: AgentsRegisterPostRequest, options?: RawAxiosRequestConfig) {
|
|
1021
|
+
return AgentsApiFp(this.configuration).agentsRegisterPost(agentsRegisterPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
export const AgentsGetStatusEnum = {
|
|
1026
|
+
Online: 'online',
|
|
1027
|
+
Offline: 'offline'
|
|
1028
|
+
} as const;
|
|
1029
|
+
export type AgentsGetStatusEnum = typeof AgentsGetStatusEnum[keyof typeof AgentsGetStatusEnum];
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* ConfigApi - axios parameter creator
|
|
1034
|
+
*/
|
|
1035
|
+
export const ConfigApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1036
|
+
return {
|
|
1037
|
+
/**
|
|
1038
|
+
*
|
|
1039
|
+
* @param {string} [organizationId]
|
|
1040
|
+
* @param {string} [environment]
|
|
1041
|
+
* @param {*} [options] Override http request option.
|
|
1042
|
+
* @throws {RequiredError}
|
|
1043
|
+
*/
|
|
1044
|
+
configGet: async (organizationId?: string, environment?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1045
|
+
const localVarPath = `/config/`;
|
|
1046
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1047
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1048
|
+
let baseOptions;
|
|
1049
|
+
if (configuration) {
|
|
1050
|
+
baseOptions = configuration.baseOptions;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1054
|
+
const localVarHeaderParameter = {} as any;
|
|
1055
|
+
const localVarQueryParameter = {} as any;
|
|
1056
|
+
|
|
1057
|
+
if (organizationId !== undefined) {
|
|
1058
|
+
localVarQueryParameter['organizationId'] = organizationId;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
if (environment !== undefined) {
|
|
1062
|
+
localVarQueryParameter['environment'] = environment;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1066
|
+
|
|
1067
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1068
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1069
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1070
|
+
|
|
1071
|
+
return {
|
|
1072
|
+
url: toPathString(localVarUrlObj),
|
|
1073
|
+
options: localVarRequestOptions,
|
|
1074
|
+
};
|
|
1075
|
+
},
|
|
1076
|
+
/**
|
|
1077
|
+
*
|
|
1078
|
+
* @param {string} organizationId
|
|
1079
|
+
* @param {string} environment
|
|
1080
|
+
* @param {string} targetKey
|
|
1081
|
+
* @param {*} [options] Override http request option.
|
|
1082
|
+
* @throws {RequiredError}
|
|
1083
|
+
*/
|
|
1084
|
+
configOrganizationIdEnvironmentTargetsTargetKeyDelete: async (organizationId: string, environment: string, targetKey: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1085
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
1086
|
+
assertParamExists('configOrganizationIdEnvironmentTargetsTargetKeyDelete', 'organizationId', organizationId)
|
|
1087
|
+
// verify required parameter 'environment' is not null or undefined
|
|
1088
|
+
assertParamExists('configOrganizationIdEnvironmentTargetsTargetKeyDelete', 'environment', environment)
|
|
1089
|
+
// verify required parameter 'targetKey' is not null or undefined
|
|
1090
|
+
assertParamExists('configOrganizationIdEnvironmentTargetsTargetKeyDelete', 'targetKey', targetKey)
|
|
1091
|
+
const localVarPath = `/config/{organizationId}/{environment}/targets/{targetKey}`
|
|
1092
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
1093
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
1094
|
+
.replace(`{${"targetKey"}}`, encodeURIComponent(String(targetKey)));
|
|
1095
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1096
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1097
|
+
let baseOptions;
|
|
1098
|
+
if (configuration) {
|
|
1099
|
+
baseOptions = configuration.baseOptions;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
1103
|
+
const localVarHeaderParameter = {} as any;
|
|
1104
|
+
const localVarQueryParameter = {} as any;
|
|
1105
|
+
|
|
1106
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1107
|
+
|
|
1108
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1109
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1110
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1111
|
+
|
|
1112
|
+
return {
|
|
1113
|
+
url: toPathString(localVarUrlObj),
|
|
1114
|
+
options: localVarRequestOptions,
|
|
1115
|
+
};
|
|
1116
|
+
},
|
|
1117
|
+
/**
|
|
1118
|
+
*
|
|
1119
|
+
* @param {string} organizationId
|
|
1120
|
+
* @param {string} environment
|
|
1121
|
+
* @param {string} targetKey
|
|
1122
|
+
* @param {*} [options] Override http request option.
|
|
1123
|
+
* @throws {RequiredError}
|
|
1124
|
+
*/
|
|
1125
|
+
configOrganizationIdEnvironmentTargetsTargetKeyGet: async (organizationId: string, environment: string, targetKey: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1126
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
1127
|
+
assertParamExists('configOrganizationIdEnvironmentTargetsTargetKeyGet', 'organizationId', organizationId)
|
|
1128
|
+
// verify required parameter 'environment' is not null or undefined
|
|
1129
|
+
assertParamExists('configOrganizationIdEnvironmentTargetsTargetKeyGet', 'environment', environment)
|
|
1130
|
+
// verify required parameter 'targetKey' is not null or undefined
|
|
1131
|
+
assertParamExists('configOrganizationIdEnvironmentTargetsTargetKeyGet', 'targetKey', targetKey)
|
|
1132
|
+
const localVarPath = `/config/{organizationId}/{environment}/targets/{targetKey}`
|
|
1133
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
1134
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
1135
|
+
.replace(`{${"targetKey"}}`, encodeURIComponent(String(targetKey)));
|
|
1136
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1137
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1138
|
+
let baseOptions;
|
|
1139
|
+
if (configuration) {
|
|
1140
|
+
baseOptions = configuration.baseOptions;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1144
|
+
const localVarHeaderParameter = {} as any;
|
|
1145
|
+
const localVarQueryParameter = {} as any;
|
|
1146
|
+
|
|
1147
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1148
|
+
|
|
1149
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1150
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1151
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1152
|
+
|
|
1153
|
+
return {
|
|
1154
|
+
url: toPathString(localVarUrlObj),
|
|
1155
|
+
options: localVarRequestOptions,
|
|
1156
|
+
};
|
|
1157
|
+
},
|
|
1158
|
+
/**
|
|
1159
|
+
*
|
|
1160
|
+
* @param {string} organizationId
|
|
1161
|
+
* @param {string} environment
|
|
1162
|
+
* @param {string} targetKey
|
|
1163
|
+
* @param {ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest} configOrganizationIdEnvironmentTargetsTargetKeyPutRequest
|
|
1164
|
+
* @param {*} [options] Override http request option.
|
|
1165
|
+
* @throws {RequiredError}
|
|
1166
|
+
*/
|
|
1167
|
+
configOrganizationIdEnvironmentTargetsTargetKeyPut: async (organizationId: string, environment: string, targetKey: string, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest: ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1168
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
1169
|
+
assertParamExists('configOrganizationIdEnvironmentTargetsTargetKeyPut', 'organizationId', organizationId)
|
|
1170
|
+
// verify required parameter 'environment' is not null or undefined
|
|
1171
|
+
assertParamExists('configOrganizationIdEnvironmentTargetsTargetKeyPut', 'environment', environment)
|
|
1172
|
+
// verify required parameter 'targetKey' is not null or undefined
|
|
1173
|
+
assertParamExists('configOrganizationIdEnvironmentTargetsTargetKeyPut', 'targetKey', targetKey)
|
|
1174
|
+
// verify required parameter 'configOrganizationIdEnvironmentTargetsTargetKeyPutRequest' is not null or undefined
|
|
1175
|
+
assertParamExists('configOrganizationIdEnvironmentTargetsTargetKeyPut', 'configOrganizationIdEnvironmentTargetsTargetKeyPutRequest', configOrganizationIdEnvironmentTargetsTargetKeyPutRequest)
|
|
1176
|
+
const localVarPath = `/config/{organizationId}/{environment}/targets/{targetKey}`
|
|
1177
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
1178
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
1179
|
+
.replace(`{${"targetKey"}}`, encodeURIComponent(String(targetKey)));
|
|
1180
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1181
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1182
|
+
let baseOptions;
|
|
1183
|
+
if (configuration) {
|
|
1184
|
+
baseOptions = configuration.baseOptions;
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
1188
|
+
const localVarHeaderParameter = {} as any;
|
|
1189
|
+
const localVarQueryParameter = {} as any;
|
|
1190
|
+
|
|
1191
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1192
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1193
|
+
|
|
1194
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1195
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1196
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1197
|
+
localVarRequestOptions.data = serializeDataIfNeeded(configOrganizationIdEnvironmentTargetsTargetKeyPutRequest, localVarRequestOptions, configuration)
|
|
1198
|
+
|
|
1199
|
+
return {
|
|
1200
|
+
url: toPathString(localVarUrlObj),
|
|
1201
|
+
options: localVarRequestOptions,
|
|
1202
|
+
};
|
|
1203
|
+
},
|
|
1204
|
+
/**
|
|
1205
|
+
*
|
|
1206
|
+
* @param {string} organizationId
|
|
1207
|
+
* @param {string} environment
|
|
1208
|
+
* @param {*} [options] Override http request option.
|
|
1209
|
+
* @throws {RequiredError}
|
|
1210
|
+
*/
|
|
1211
|
+
configSingleGet: async (organizationId: string, environment: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1212
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
1213
|
+
assertParamExists('configSingleGet', 'organizationId', organizationId)
|
|
1214
|
+
// verify required parameter 'environment' is not null or undefined
|
|
1215
|
+
assertParamExists('configSingleGet', 'environment', environment)
|
|
1216
|
+
const localVarPath = `/config/single`;
|
|
1217
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1218
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1219
|
+
let baseOptions;
|
|
1220
|
+
if (configuration) {
|
|
1221
|
+
baseOptions = configuration.baseOptions;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1225
|
+
const localVarHeaderParameter = {} as any;
|
|
1226
|
+
const localVarQueryParameter = {} as any;
|
|
1227
|
+
|
|
1228
|
+
if (organizationId !== undefined) {
|
|
1229
|
+
localVarQueryParameter['organizationId'] = organizationId;
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
if (environment !== undefined) {
|
|
1233
|
+
localVarQueryParameter['environment'] = environment;
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1237
|
+
|
|
1238
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1239
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1240
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1241
|
+
|
|
1242
|
+
return {
|
|
1243
|
+
url: toPathString(localVarUrlObj),
|
|
1244
|
+
options: localVarRequestOptions,
|
|
1245
|
+
};
|
|
1246
|
+
},
|
|
1247
|
+
}
|
|
1248
|
+
};
|
|
1249
|
+
|
|
1250
|
+
/**
|
|
1251
|
+
* ConfigApi - functional programming interface
|
|
1252
|
+
*/
|
|
1253
|
+
export const ConfigApiFp = function(configuration?: Configuration) {
|
|
1254
|
+
const localVarAxiosParamCreator = ConfigApiAxiosParamCreator(configuration)
|
|
1255
|
+
return {
|
|
1256
|
+
/**
|
|
1257
|
+
*
|
|
1258
|
+
* @param {string} [organizationId]
|
|
1259
|
+
* @param {string} [environment]
|
|
1260
|
+
* @param {*} [options] Override http request option.
|
|
1261
|
+
* @throws {RequiredError}
|
|
1262
|
+
*/
|
|
1263
|
+
async configGet(organizationId?: string, environment?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfigGet200Response>> {
|
|
1264
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.configGet(organizationId, environment, options);
|
|
1265
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1266
|
+
const localVarOperationServerBasePath = operationServerMap['ConfigApi.configGet']?.[localVarOperationServerIndex]?.url;
|
|
1267
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1268
|
+
},
|
|
1269
|
+
/**
|
|
1270
|
+
*
|
|
1271
|
+
* @param {string} organizationId
|
|
1272
|
+
* @param {string} environment
|
|
1273
|
+
* @param {string} targetKey
|
|
1274
|
+
* @param {*} [options] Override http request option.
|
|
1275
|
+
* @throws {RequiredError}
|
|
1276
|
+
*/
|
|
1277
|
+
async configOrganizationIdEnvironmentTargetsTargetKeyDelete(organizationId: string, environment: string, targetKey: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1278
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.configOrganizationIdEnvironmentTargetsTargetKeyDelete(organizationId, environment, targetKey, options);
|
|
1279
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1280
|
+
const localVarOperationServerBasePath = operationServerMap['ConfigApi.configOrganizationIdEnvironmentTargetsTargetKeyDelete']?.[localVarOperationServerIndex]?.url;
|
|
1281
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1282
|
+
},
|
|
1283
|
+
/**
|
|
1284
|
+
*
|
|
1285
|
+
* @param {string} organizationId
|
|
1286
|
+
* @param {string} environment
|
|
1287
|
+
* @param {string} targetKey
|
|
1288
|
+
* @param {*} [options] Override http request option.
|
|
1289
|
+
* @throws {RequiredError}
|
|
1290
|
+
*/
|
|
1291
|
+
async configOrganizationIdEnvironmentTargetsTargetKeyGet(organizationId: string, environment: string, targetKey: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfigOrganizationIdEnvironmentTargetsTargetKeyGet200Response>> {
|
|
1292
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.configOrganizationIdEnvironmentTargetsTargetKeyGet(organizationId, environment, targetKey, options);
|
|
1293
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1294
|
+
const localVarOperationServerBasePath = operationServerMap['ConfigApi.configOrganizationIdEnvironmentTargetsTargetKeyGet']?.[localVarOperationServerIndex]?.url;
|
|
1295
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1296
|
+
},
|
|
1297
|
+
/**
|
|
1298
|
+
*
|
|
1299
|
+
* @param {string} organizationId
|
|
1300
|
+
* @param {string} environment
|
|
1301
|
+
* @param {string} targetKey
|
|
1302
|
+
* @param {ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest} configOrganizationIdEnvironmentTargetsTargetKeyPutRequest
|
|
1303
|
+
* @param {*} [options] Override http request option.
|
|
1304
|
+
* @throws {RequiredError}
|
|
1305
|
+
*/
|
|
1306
|
+
async configOrganizationIdEnvironmentTargetsTargetKeyPut(organizationId: string, environment: string, targetKey: string, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest: ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfigOrganizationIdEnvironmentTargetsTargetKeyPut200Response>> {
|
|
1307
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.configOrganizationIdEnvironmentTargetsTargetKeyPut(organizationId, environment, targetKey, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest, options);
|
|
1308
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1309
|
+
const localVarOperationServerBasePath = operationServerMap['ConfigApi.configOrganizationIdEnvironmentTargetsTargetKeyPut']?.[localVarOperationServerIndex]?.url;
|
|
1310
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1311
|
+
},
|
|
1312
|
+
/**
|
|
1313
|
+
*
|
|
1314
|
+
* @param {string} organizationId
|
|
1315
|
+
* @param {string} environment
|
|
1316
|
+
* @param {*} [options] Override http request option.
|
|
1317
|
+
* @throws {RequiredError}
|
|
1318
|
+
*/
|
|
1319
|
+
async configSingleGet(organizationId: string, environment: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfigOrganizationIdEnvironmentTargetsTargetKeyPut200Response>> {
|
|
1320
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.configSingleGet(organizationId, environment, options);
|
|
1321
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1322
|
+
const localVarOperationServerBasePath = operationServerMap['ConfigApi.configSingleGet']?.[localVarOperationServerIndex]?.url;
|
|
1323
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1324
|
+
},
|
|
1325
|
+
}
|
|
1326
|
+
};
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* ConfigApi - factory interface
|
|
1330
|
+
*/
|
|
1331
|
+
export const ConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1332
|
+
const localVarFp = ConfigApiFp(configuration)
|
|
1333
|
+
return {
|
|
1334
|
+
/**
|
|
1335
|
+
*
|
|
1336
|
+
* @param {string} [organizationId]
|
|
1337
|
+
* @param {string} [environment]
|
|
1338
|
+
* @param {*} [options] Override http request option.
|
|
1339
|
+
* @throws {RequiredError}
|
|
1340
|
+
*/
|
|
1341
|
+
configGet(organizationId?: string, environment?: string, options?: RawAxiosRequestConfig): AxiosPromise<ConfigGet200Response> {
|
|
1342
|
+
return localVarFp.configGet(organizationId, environment, options).then((request) => request(axios, basePath));
|
|
1343
|
+
},
|
|
1344
|
+
/**
|
|
1345
|
+
*
|
|
1346
|
+
* @param {string} organizationId
|
|
1347
|
+
* @param {string} environment
|
|
1348
|
+
* @param {string} targetKey
|
|
1349
|
+
* @param {*} [options] Override http request option.
|
|
1350
|
+
* @throws {RequiredError}
|
|
1351
|
+
*/
|
|
1352
|
+
configOrganizationIdEnvironmentTargetsTargetKeyDelete(organizationId: string, environment: string, targetKey: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1353
|
+
return localVarFp.configOrganizationIdEnvironmentTargetsTargetKeyDelete(organizationId, environment, targetKey, options).then((request) => request(axios, basePath));
|
|
1354
|
+
},
|
|
1355
|
+
/**
|
|
1356
|
+
*
|
|
1357
|
+
* @param {string} organizationId
|
|
1358
|
+
* @param {string} environment
|
|
1359
|
+
* @param {string} targetKey
|
|
1360
|
+
* @param {*} [options] Override http request option.
|
|
1361
|
+
* @throws {RequiredError}
|
|
1362
|
+
*/
|
|
1363
|
+
configOrganizationIdEnvironmentTargetsTargetKeyGet(organizationId: string, environment: string, targetKey: string, options?: RawAxiosRequestConfig): AxiosPromise<ConfigOrganizationIdEnvironmentTargetsTargetKeyGet200Response> {
|
|
1364
|
+
return localVarFp.configOrganizationIdEnvironmentTargetsTargetKeyGet(organizationId, environment, targetKey, options).then((request) => request(axios, basePath));
|
|
1365
|
+
},
|
|
1366
|
+
/**
|
|
1367
|
+
*
|
|
1368
|
+
* @param {string} organizationId
|
|
1369
|
+
* @param {string} environment
|
|
1370
|
+
* @param {string} targetKey
|
|
1371
|
+
* @param {ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest} configOrganizationIdEnvironmentTargetsTargetKeyPutRequest
|
|
1372
|
+
* @param {*} [options] Override http request option.
|
|
1373
|
+
* @throws {RequiredError}
|
|
1374
|
+
*/
|
|
1375
|
+
configOrganizationIdEnvironmentTargetsTargetKeyPut(organizationId: string, environment: string, targetKey: string, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest: ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest, options?: RawAxiosRequestConfig): AxiosPromise<ConfigOrganizationIdEnvironmentTargetsTargetKeyPut200Response> {
|
|
1376
|
+
return localVarFp.configOrganizationIdEnvironmentTargetsTargetKeyPut(organizationId, environment, targetKey, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest, options).then((request) => request(axios, basePath));
|
|
1377
|
+
},
|
|
1378
|
+
/**
|
|
1379
|
+
*
|
|
1380
|
+
* @param {string} organizationId
|
|
1381
|
+
* @param {string} environment
|
|
1382
|
+
* @param {*} [options] Override http request option.
|
|
1383
|
+
* @throws {RequiredError}
|
|
1384
|
+
*/
|
|
1385
|
+
configSingleGet(organizationId: string, environment: string, options?: RawAxiosRequestConfig): AxiosPromise<ConfigOrganizationIdEnvironmentTargetsTargetKeyPut200Response> {
|
|
1386
|
+
return localVarFp.configSingleGet(organizationId, environment, options).then((request) => request(axios, basePath));
|
|
1387
|
+
},
|
|
1388
|
+
};
|
|
1389
|
+
};
|
|
1390
|
+
|
|
1391
|
+
/**
|
|
1392
|
+
* ConfigApi - object-oriented interface
|
|
1393
|
+
*/
|
|
1394
|
+
export class ConfigApi extends BaseAPI {
|
|
1395
|
+
/**
|
|
1396
|
+
*
|
|
1397
|
+
* @param {string} [organizationId]
|
|
1398
|
+
* @param {string} [environment]
|
|
1399
|
+
* @param {*} [options] Override http request option.
|
|
1400
|
+
* @throws {RequiredError}
|
|
1401
|
+
*/
|
|
1402
|
+
public configGet(organizationId?: string, environment?: string, options?: RawAxiosRequestConfig) {
|
|
1403
|
+
return ConfigApiFp(this.configuration).configGet(organizationId, environment, options).then((request) => request(this.axios, this.basePath));
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
/**
|
|
1407
|
+
*
|
|
1408
|
+
* @param {string} organizationId
|
|
1409
|
+
* @param {string} environment
|
|
1410
|
+
* @param {string} targetKey
|
|
1411
|
+
* @param {*} [options] Override http request option.
|
|
1412
|
+
* @throws {RequiredError}
|
|
1413
|
+
*/
|
|
1414
|
+
public configOrganizationIdEnvironmentTargetsTargetKeyDelete(organizationId: string, environment: string, targetKey: string, options?: RawAxiosRequestConfig) {
|
|
1415
|
+
return ConfigApiFp(this.configuration).configOrganizationIdEnvironmentTargetsTargetKeyDelete(organizationId, environment, targetKey, options).then((request) => request(this.axios, this.basePath));
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
/**
|
|
1419
|
+
*
|
|
1420
|
+
* @param {string} organizationId
|
|
1421
|
+
* @param {string} environment
|
|
1422
|
+
* @param {string} targetKey
|
|
1423
|
+
* @param {*} [options] Override http request option.
|
|
1424
|
+
* @throws {RequiredError}
|
|
1425
|
+
*/
|
|
1426
|
+
public configOrganizationIdEnvironmentTargetsTargetKeyGet(organizationId: string, environment: string, targetKey: string, options?: RawAxiosRequestConfig) {
|
|
1427
|
+
return ConfigApiFp(this.configuration).configOrganizationIdEnvironmentTargetsTargetKeyGet(organizationId, environment, targetKey, options).then((request) => request(this.axios, this.basePath));
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
*
|
|
1432
|
+
* @param {string} organizationId
|
|
1433
|
+
* @param {string} environment
|
|
1434
|
+
* @param {string} targetKey
|
|
1435
|
+
* @param {ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest} configOrganizationIdEnvironmentTargetsTargetKeyPutRequest
|
|
1436
|
+
* @param {*} [options] Override http request option.
|
|
1437
|
+
* @throws {RequiredError}
|
|
1438
|
+
*/
|
|
1439
|
+
public configOrganizationIdEnvironmentTargetsTargetKeyPut(organizationId: string, environment: string, targetKey: string, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest: ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest, options?: RawAxiosRequestConfig) {
|
|
1440
|
+
return ConfigApiFp(this.configuration).configOrganizationIdEnvironmentTargetsTargetKeyPut(organizationId, environment, targetKey, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
/**
|
|
1444
|
+
*
|
|
1445
|
+
* @param {string} organizationId
|
|
1446
|
+
* @param {string} environment
|
|
1447
|
+
* @param {*} [options] Override http request option.
|
|
1448
|
+
* @throws {RequiredError}
|
|
1449
|
+
*/
|
|
1450
|
+
public configSingleGet(organizationId: string, environment: string, options?: RawAxiosRequestConfig) {
|
|
1451
|
+
return ConfigApiFp(this.configuration).configSingleGet(organizationId, environment, options).then((request) => request(this.axios, this.basePath));
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
|
|
1456
|
+
|
|
1457
|
+
/**
|
|
1458
|
+
* DefaultApi - axios parameter creator
|
|
1459
|
+
*/
|
|
1460
|
+
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1461
|
+
return {
|
|
1462
|
+
/**
|
|
1463
|
+
*
|
|
1464
|
+
* @param {*} [options] Override http request option.
|
|
1465
|
+
* @throws {RequiredError}
|
|
1466
|
+
*/
|
|
1467
|
+
rootGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1468
|
+
const localVarPath = `/`;
|
|
1469
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1470
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1471
|
+
let baseOptions;
|
|
1472
|
+
if (configuration) {
|
|
1473
|
+
baseOptions = configuration.baseOptions;
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1477
|
+
const localVarHeaderParameter = {} as any;
|
|
1478
|
+
const localVarQueryParameter = {} as any;
|
|
1479
|
+
|
|
1480
|
+
|
|
1481
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1482
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1483
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1484
|
+
|
|
1485
|
+
return {
|
|
1486
|
+
url: toPathString(localVarUrlObj),
|
|
1487
|
+
options: localVarRequestOptions,
|
|
1488
|
+
};
|
|
1489
|
+
},
|
|
1490
|
+
}
|
|
1491
|
+
};
|
|
1492
|
+
|
|
1493
|
+
/**
|
|
1494
|
+
* DefaultApi - functional programming interface
|
|
1495
|
+
*/
|
|
1496
|
+
export const DefaultApiFp = function(configuration?: Configuration) {
|
|
1497
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
|
|
1498
|
+
return {
|
|
1499
|
+
/**
|
|
1500
|
+
*
|
|
1501
|
+
* @param {*} [options] Override http request option.
|
|
1502
|
+
* @throws {RequiredError}
|
|
1503
|
+
*/
|
|
1504
|
+
async rootGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1505
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rootGet(options);
|
|
1506
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1507
|
+
const localVarOperationServerBasePath = operationServerMap['DefaultApi.rootGet']?.[localVarOperationServerIndex]?.url;
|
|
1508
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1509
|
+
},
|
|
1510
|
+
}
|
|
1511
|
+
};
|
|
1512
|
+
|
|
1513
|
+
/**
|
|
1514
|
+
* DefaultApi - factory interface
|
|
1515
|
+
*/
|
|
1516
|
+
export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1517
|
+
const localVarFp = DefaultApiFp(configuration)
|
|
1518
|
+
return {
|
|
1519
|
+
/**
|
|
1520
|
+
*
|
|
1521
|
+
* @param {*} [options] Override http request option.
|
|
1522
|
+
* @throws {RequiredError}
|
|
1523
|
+
*/
|
|
1524
|
+
rootGet(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1525
|
+
return localVarFp.rootGet(options).then((request) => request(axios, basePath));
|
|
1526
|
+
},
|
|
1527
|
+
};
|
|
1528
|
+
};
|
|
1529
|
+
|
|
1530
|
+
/**
|
|
1531
|
+
* DefaultApi - object-oriented interface
|
|
1532
|
+
*/
|
|
1533
|
+
export class DefaultApi extends BaseAPI {
|
|
1534
|
+
/**
|
|
1535
|
+
*
|
|
1536
|
+
* @param {*} [options] Override http request option.
|
|
1537
|
+
* @throws {RequiredError}
|
|
1538
|
+
*/
|
|
1539
|
+
public rootGet(options?: RawAxiosRequestConfig) {
|
|
1540
|
+
return DefaultApiFp(this.configuration).rootGet(options).then((request) => request(this.axios, this.basePath));
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
|
|
1545
|
+
|
|
1546
|
+
/**
|
|
1547
|
+
* PlanApi - axios parameter creator
|
|
1548
|
+
*/
|
|
1549
|
+
export const PlanApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1550
|
+
return {
|
|
1551
|
+
/**
|
|
1552
|
+
*
|
|
1553
|
+
* @param {string} [projectId]
|
|
1554
|
+
* @param {number} [limit]
|
|
1555
|
+
* @param {number} [offset]
|
|
1556
|
+
* @param {*} [options] Override http request option.
|
|
1557
|
+
* @throws {RequiredError}
|
|
1558
|
+
*/
|
|
1559
|
+
planGet: async (projectId?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1560
|
+
const localVarPath = `/plan/`;
|
|
1561
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1562
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1563
|
+
let baseOptions;
|
|
1564
|
+
if (configuration) {
|
|
1565
|
+
baseOptions = configuration.baseOptions;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1569
|
+
const localVarHeaderParameter = {} as any;
|
|
1570
|
+
const localVarQueryParameter = {} as any;
|
|
1571
|
+
|
|
1572
|
+
if (projectId !== undefined) {
|
|
1573
|
+
localVarQueryParameter['projectId'] = projectId;
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
if (limit !== undefined) {
|
|
1577
|
+
localVarQueryParameter['limit'] = limit;
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
if (offset !== undefined) {
|
|
1581
|
+
localVarQueryParameter['offset'] = offset;
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1585
|
+
|
|
1586
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1587
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1588
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1589
|
+
|
|
1590
|
+
return {
|
|
1591
|
+
url: toPathString(localVarUrlObj),
|
|
1592
|
+
options: localVarRequestOptions,
|
|
1593
|
+
};
|
|
1594
|
+
},
|
|
1595
|
+
/**
|
|
1596
|
+
*
|
|
1597
|
+
* @param {TestPlanV1} [testPlanV1]
|
|
1598
|
+
* @param {*} [options] Override http request option.
|
|
1599
|
+
* @throws {RequiredError}
|
|
1600
|
+
*/
|
|
1601
|
+
planPost: async (testPlanV1?: TestPlanV1, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1602
|
+
const localVarPath = `/plan/`;
|
|
1603
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1604
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1605
|
+
let baseOptions;
|
|
1606
|
+
if (configuration) {
|
|
1607
|
+
baseOptions = configuration.baseOptions;
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1611
|
+
const localVarHeaderParameter = {} as any;
|
|
1612
|
+
const localVarQueryParameter = {} as any;
|
|
1613
|
+
|
|
1614
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1615
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1616
|
+
|
|
1617
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1618
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1619
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1620
|
+
localVarRequestOptions.data = serializeDataIfNeeded(testPlanV1, localVarRequestOptions, configuration)
|
|
1621
|
+
|
|
1622
|
+
return {
|
|
1623
|
+
url: toPathString(localVarUrlObj),
|
|
1624
|
+
options: localVarRequestOptions,
|
|
1625
|
+
};
|
|
1626
|
+
},
|
|
1627
|
+
}
|
|
1628
|
+
};
|
|
1629
|
+
|
|
1630
|
+
/**
|
|
1631
|
+
* PlanApi - functional programming interface
|
|
1632
|
+
*/
|
|
1633
|
+
export const PlanApiFp = function(configuration?: Configuration) {
|
|
1634
|
+
const localVarAxiosParamCreator = PlanApiAxiosParamCreator(configuration)
|
|
1635
|
+
return {
|
|
1636
|
+
/**
|
|
1637
|
+
*
|
|
1638
|
+
* @param {string} [projectId]
|
|
1639
|
+
* @param {number} [limit]
|
|
1640
|
+
* @param {number} [offset]
|
|
1641
|
+
* @param {*} [options] Override http request option.
|
|
1642
|
+
* @throws {RequiredError}
|
|
1643
|
+
*/
|
|
1644
|
+
async planGet(projectId?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanGet200Response>> {
|
|
1645
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.planGet(projectId, limit, offset, options);
|
|
1646
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1647
|
+
const localVarOperationServerBasePath = operationServerMap['PlanApi.planGet']?.[localVarOperationServerIndex]?.url;
|
|
1648
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1649
|
+
},
|
|
1650
|
+
/**
|
|
1651
|
+
*
|
|
1652
|
+
* @param {TestPlanV1} [testPlanV1]
|
|
1653
|
+
* @param {*} [options] Override http request option.
|
|
1654
|
+
* @throws {RequiredError}
|
|
1655
|
+
*/
|
|
1656
|
+
async planPost(testPlanV1?: TestPlanV1, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanPost201Response>> {
|
|
1657
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.planPost(testPlanV1, options);
|
|
1658
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1659
|
+
const localVarOperationServerBasePath = operationServerMap['PlanApi.planPost']?.[localVarOperationServerIndex]?.url;
|
|
1660
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1661
|
+
},
|
|
1662
|
+
}
|
|
1663
|
+
};
|
|
1664
|
+
|
|
1665
|
+
/**
|
|
1666
|
+
* PlanApi - factory interface
|
|
1667
|
+
*/
|
|
1668
|
+
export const PlanApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1669
|
+
const localVarFp = PlanApiFp(configuration)
|
|
1670
|
+
return {
|
|
1671
|
+
/**
|
|
1672
|
+
*
|
|
1673
|
+
* @param {string} [projectId]
|
|
1674
|
+
* @param {number} [limit]
|
|
1675
|
+
* @param {number} [offset]
|
|
1676
|
+
* @param {*} [options] Override http request option.
|
|
1677
|
+
* @throws {RequiredError}
|
|
1678
|
+
*/
|
|
1679
|
+
planGet(projectId?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<PlanGet200Response> {
|
|
1680
|
+
return localVarFp.planGet(projectId, limit, offset, options).then((request) => request(axios, basePath));
|
|
1681
|
+
},
|
|
1682
|
+
/**
|
|
1683
|
+
*
|
|
1684
|
+
* @param {TestPlanV1} [testPlanV1]
|
|
1685
|
+
* @param {*} [options] Override http request option.
|
|
1686
|
+
* @throws {RequiredError}
|
|
1687
|
+
*/
|
|
1688
|
+
planPost(testPlanV1?: TestPlanV1, options?: RawAxiosRequestConfig): AxiosPromise<PlanPost201Response> {
|
|
1689
|
+
return localVarFp.planPost(testPlanV1, options).then((request) => request(axios, basePath));
|
|
1690
|
+
},
|
|
1691
|
+
};
|
|
1692
|
+
};
|
|
1693
|
+
|
|
1694
|
+
/**
|
|
1695
|
+
* PlanApi - object-oriented interface
|
|
1696
|
+
*/
|
|
1697
|
+
export class PlanApi extends BaseAPI {
|
|
1698
|
+
/**
|
|
1699
|
+
*
|
|
1700
|
+
* @param {string} [projectId]
|
|
1701
|
+
* @param {number} [limit]
|
|
1702
|
+
* @param {number} [offset]
|
|
1703
|
+
* @param {*} [options] Override http request option.
|
|
1704
|
+
* @throws {RequiredError}
|
|
1705
|
+
*/
|
|
1706
|
+
public planGet(projectId?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) {
|
|
1707
|
+
return PlanApiFp(this.configuration).planGet(projectId, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
/**
|
|
1711
|
+
*
|
|
1712
|
+
* @param {TestPlanV1} [testPlanV1]
|
|
1713
|
+
* @param {*} [options] Override http request option.
|
|
1714
|
+
* @throws {RequiredError}
|
|
1715
|
+
*/
|
|
1716
|
+
public planPost(testPlanV1?: TestPlanV1, options?: RawAxiosRequestConfig) {
|
|
1717
|
+
return PlanApiFp(this.configuration).planPost(testPlanV1, options).then((request) => request(this.axios, this.basePath));
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
|
|
1722
|
+
|
|
1723
|
+
/**
|
|
1724
|
+
* RunsApi - axios parameter creator
|
|
1725
|
+
*/
|
|
1726
|
+
export const RunsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1727
|
+
return {
|
|
1728
|
+
/**
|
|
1729
|
+
*
|
|
1730
|
+
* @param {string} [planId]
|
|
1731
|
+
* @param {RunsGetStatusEnum} [status]
|
|
1732
|
+
* @param {number} [limit]
|
|
1733
|
+
* @param {number} [offset]
|
|
1734
|
+
* @param {*} [options] Override http request option.
|
|
1735
|
+
* @throws {RequiredError}
|
|
1736
|
+
*/
|
|
1737
|
+
runsGet: async (planId?: string, status?: RunsGetStatusEnum, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1738
|
+
const localVarPath = `/runs/`;
|
|
1739
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1740
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1741
|
+
let baseOptions;
|
|
1742
|
+
if (configuration) {
|
|
1743
|
+
baseOptions = configuration.baseOptions;
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1747
|
+
const localVarHeaderParameter = {} as any;
|
|
1748
|
+
const localVarQueryParameter = {} as any;
|
|
1749
|
+
|
|
1750
|
+
if (planId !== undefined) {
|
|
1751
|
+
localVarQueryParameter['planId'] = planId;
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
if (status !== undefined) {
|
|
1755
|
+
localVarQueryParameter['status'] = status;
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
if (limit !== undefined) {
|
|
1759
|
+
localVarQueryParameter['limit'] = limit;
|
|
1760
|
+
}
|
|
1761
|
+
|
|
1762
|
+
if (offset !== undefined) {
|
|
1763
|
+
localVarQueryParameter['offset'] = offset;
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1767
|
+
|
|
1768
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1769
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1770
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1771
|
+
|
|
1772
|
+
return {
|
|
1773
|
+
url: toPathString(localVarUrlObj),
|
|
1774
|
+
options: localVarRequestOptions,
|
|
1775
|
+
};
|
|
1776
|
+
},
|
|
1777
|
+
/**
|
|
1778
|
+
*
|
|
1779
|
+
* @param {string} id
|
|
1780
|
+
* @param {*} [options] Override http request option.
|
|
1781
|
+
* @throws {RequiredError}
|
|
1782
|
+
*/
|
|
1783
|
+
runsIdGet: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1784
|
+
// verify required parameter 'id' is not null or undefined
|
|
1785
|
+
assertParamExists('runsIdGet', 'id', id)
|
|
1786
|
+
const localVarPath = `/runs/{id}`
|
|
1787
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1788
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1789
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1790
|
+
let baseOptions;
|
|
1791
|
+
if (configuration) {
|
|
1792
|
+
baseOptions = configuration.baseOptions;
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1795
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1796
|
+
const localVarHeaderParameter = {} as any;
|
|
1797
|
+
const localVarQueryParameter = {} as any;
|
|
1798
|
+
|
|
1799
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1800
|
+
|
|
1801
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1802
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1803
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1804
|
+
|
|
1805
|
+
return {
|
|
1806
|
+
url: toPathString(localVarUrlObj),
|
|
1807
|
+
options: localVarRequestOptions,
|
|
1808
|
+
};
|
|
1809
|
+
},
|
|
1810
|
+
/**
|
|
1811
|
+
*
|
|
1812
|
+
* @param {string} id
|
|
1813
|
+
* @param {RunsIdPatchRequest} [runsIdPatchRequest]
|
|
1814
|
+
* @param {*} [options] Override http request option.
|
|
1815
|
+
* @throws {RequiredError}
|
|
1816
|
+
*/
|
|
1817
|
+
runsIdPatch: async (id: string, runsIdPatchRequest?: RunsIdPatchRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1818
|
+
// verify required parameter 'id' is not null or undefined
|
|
1819
|
+
assertParamExists('runsIdPatch', 'id', id)
|
|
1820
|
+
const localVarPath = `/runs/{id}`
|
|
1821
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1822
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1823
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1824
|
+
let baseOptions;
|
|
1825
|
+
if (configuration) {
|
|
1826
|
+
baseOptions = configuration.baseOptions;
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
1830
|
+
const localVarHeaderParameter = {} as any;
|
|
1831
|
+
const localVarQueryParameter = {} as any;
|
|
1832
|
+
|
|
1833
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1834
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1835
|
+
|
|
1836
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1837
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1838
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1839
|
+
localVarRequestOptions.data = serializeDataIfNeeded(runsIdPatchRequest, localVarRequestOptions, configuration)
|
|
1840
|
+
|
|
1841
|
+
return {
|
|
1842
|
+
url: toPathString(localVarUrlObj),
|
|
1843
|
+
options: localVarRequestOptions,
|
|
1844
|
+
};
|
|
1845
|
+
},
|
|
1846
|
+
/**
|
|
1847
|
+
*
|
|
1848
|
+
* @param {string} planId
|
|
1849
|
+
* @param {RunsTriggerPlanIdPostRequest} runsTriggerPlanIdPostRequest
|
|
1850
|
+
* @param {*} [options] Override http request option.
|
|
1851
|
+
* @throws {RequiredError}
|
|
1852
|
+
*/
|
|
1853
|
+
runsTriggerPlanIdPost: async (planId: string, runsTriggerPlanIdPostRequest: RunsTriggerPlanIdPostRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1854
|
+
// verify required parameter 'planId' is not null or undefined
|
|
1855
|
+
assertParamExists('runsTriggerPlanIdPost', 'planId', planId)
|
|
1856
|
+
// verify required parameter 'runsTriggerPlanIdPostRequest' is not null or undefined
|
|
1857
|
+
assertParamExists('runsTriggerPlanIdPost', 'runsTriggerPlanIdPostRequest', runsTriggerPlanIdPostRequest)
|
|
1858
|
+
const localVarPath = `/runs/trigger/{planId}`
|
|
1859
|
+
.replace(`{${"planId"}}`, encodeURIComponent(String(planId)));
|
|
1860
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1861
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1862
|
+
let baseOptions;
|
|
1863
|
+
if (configuration) {
|
|
1864
|
+
baseOptions = configuration.baseOptions;
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1867
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1868
|
+
const localVarHeaderParameter = {} as any;
|
|
1869
|
+
const localVarQueryParameter = {} as any;
|
|
1870
|
+
|
|
1871
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1872
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1873
|
+
|
|
1874
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1875
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1876
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1877
|
+
localVarRequestOptions.data = serializeDataIfNeeded(runsTriggerPlanIdPostRequest, localVarRequestOptions, configuration)
|
|
1878
|
+
|
|
1879
|
+
return {
|
|
1880
|
+
url: toPathString(localVarUrlObj),
|
|
1881
|
+
options: localVarRequestOptions,
|
|
1882
|
+
};
|
|
1883
|
+
},
|
|
1884
|
+
}
|
|
1885
|
+
};
|
|
1886
|
+
|
|
1887
|
+
/**
|
|
1888
|
+
* RunsApi - functional programming interface
|
|
1889
|
+
*/
|
|
1890
|
+
export const RunsApiFp = function(configuration?: Configuration) {
|
|
1891
|
+
const localVarAxiosParamCreator = RunsApiAxiosParamCreator(configuration)
|
|
1892
|
+
return {
|
|
1893
|
+
/**
|
|
1894
|
+
*
|
|
1895
|
+
* @param {string} [planId]
|
|
1896
|
+
* @param {RunsGetStatusEnum} [status]
|
|
1897
|
+
* @param {number} [limit]
|
|
1898
|
+
* @param {number} [offset]
|
|
1899
|
+
* @param {*} [options] Override http request option.
|
|
1900
|
+
* @throws {RequiredError}
|
|
1901
|
+
*/
|
|
1902
|
+
async runsGet(planId?: string, status?: RunsGetStatusEnum, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunsGet200Response>> {
|
|
1903
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.runsGet(planId, status, limit, offset, options);
|
|
1904
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1905
|
+
const localVarOperationServerBasePath = operationServerMap['RunsApi.runsGet']?.[localVarOperationServerIndex]?.url;
|
|
1906
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1907
|
+
},
|
|
1908
|
+
/**
|
|
1909
|
+
*
|
|
1910
|
+
* @param {string} id
|
|
1911
|
+
* @param {*} [options] Override http request option.
|
|
1912
|
+
* @throws {RequiredError}
|
|
1913
|
+
*/
|
|
1914
|
+
async runsIdGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunsIdGet200Response>> {
|
|
1915
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.runsIdGet(id, options);
|
|
1916
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1917
|
+
const localVarOperationServerBasePath = operationServerMap['RunsApi.runsIdGet']?.[localVarOperationServerIndex]?.url;
|
|
1918
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1919
|
+
},
|
|
1920
|
+
/**
|
|
1921
|
+
*
|
|
1922
|
+
* @param {string} id
|
|
1923
|
+
* @param {RunsIdPatchRequest} [runsIdPatchRequest]
|
|
1924
|
+
* @param {*} [options] Override http request option.
|
|
1925
|
+
* @throws {RequiredError}
|
|
1926
|
+
*/
|
|
1927
|
+
async runsIdPatch(id: string, runsIdPatchRequest?: RunsIdPatchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunsIdGet200Response>> {
|
|
1928
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.runsIdPatch(id, runsIdPatchRequest, options);
|
|
1929
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1930
|
+
const localVarOperationServerBasePath = operationServerMap['RunsApi.runsIdPatch']?.[localVarOperationServerIndex]?.url;
|
|
1931
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1932
|
+
},
|
|
1933
|
+
/**
|
|
1934
|
+
*
|
|
1935
|
+
* @param {string} planId
|
|
1936
|
+
* @param {RunsTriggerPlanIdPostRequest} runsTriggerPlanIdPostRequest
|
|
1937
|
+
* @param {*} [options] Override http request option.
|
|
1938
|
+
* @throws {RequiredError}
|
|
1939
|
+
*/
|
|
1940
|
+
async runsTriggerPlanIdPost(planId: string, runsTriggerPlanIdPostRequest: RunsTriggerPlanIdPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunsIdGet200Response>> {
|
|
1941
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.runsTriggerPlanIdPost(planId, runsTriggerPlanIdPostRequest, options);
|
|
1942
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1943
|
+
const localVarOperationServerBasePath = operationServerMap['RunsApi.runsTriggerPlanIdPost']?.[localVarOperationServerIndex]?.url;
|
|
1944
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1945
|
+
},
|
|
1946
|
+
}
|
|
1947
|
+
};
|
|
1948
|
+
|
|
1949
|
+
/**
|
|
1950
|
+
* RunsApi - factory interface
|
|
1951
|
+
*/
|
|
1952
|
+
export const RunsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1953
|
+
const localVarFp = RunsApiFp(configuration)
|
|
1954
|
+
return {
|
|
1955
|
+
/**
|
|
1956
|
+
*
|
|
1957
|
+
* @param {string} [planId]
|
|
1958
|
+
* @param {RunsGetStatusEnum} [status]
|
|
1959
|
+
* @param {number} [limit]
|
|
1960
|
+
* @param {number} [offset]
|
|
1961
|
+
* @param {*} [options] Override http request option.
|
|
1962
|
+
* @throws {RequiredError}
|
|
1963
|
+
*/
|
|
1964
|
+
runsGet(planId?: string, status?: RunsGetStatusEnum, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<RunsGet200Response> {
|
|
1965
|
+
return localVarFp.runsGet(planId, status, limit, offset, options).then((request) => request(axios, basePath));
|
|
1966
|
+
},
|
|
1967
|
+
/**
|
|
1968
|
+
*
|
|
1969
|
+
* @param {string} id
|
|
1970
|
+
* @param {*} [options] Override http request option.
|
|
1971
|
+
* @throws {RequiredError}
|
|
1972
|
+
*/
|
|
1973
|
+
runsIdGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<RunsIdGet200Response> {
|
|
1974
|
+
return localVarFp.runsIdGet(id, options).then((request) => request(axios, basePath));
|
|
1975
|
+
},
|
|
1976
|
+
/**
|
|
1977
|
+
*
|
|
1978
|
+
* @param {string} id
|
|
1979
|
+
* @param {RunsIdPatchRequest} [runsIdPatchRequest]
|
|
1980
|
+
* @param {*} [options] Override http request option.
|
|
1981
|
+
* @throws {RequiredError}
|
|
1982
|
+
*/
|
|
1983
|
+
runsIdPatch(id: string, runsIdPatchRequest?: RunsIdPatchRequest, options?: RawAxiosRequestConfig): AxiosPromise<RunsIdGet200Response> {
|
|
1984
|
+
return localVarFp.runsIdPatch(id, runsIdPatchRequest, options).then((request) => request(axios, basePath));
|
|
1985
|
+
},
|
|
1986
|
+
/**
|
|
1987
|
+
*
|
|
1988
|
+
* @param {string} planId
|
|
1989
|
+
* @param {RunsTriggerPlanIdPostRequest} runsTriggerPlanIdPostRequest
|
|
1990
|
+
* @param {*} [options] Override http request option.
|
|
1991
|
+
* @throws {RequiredError}
|
|
1992
|
+
*/
|
|
1993
|
+
runsTriggerPlanIdPost(planId: string, runsTriggerPlanIdPostRequest: RunsTriggerPlanIdPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<RunsIdGet200Response> {
|
|
1994
|
+
return localVarFp.runsTriggerPlanIdPost(planId, runsTriggerPlanIdPostRequest, options).then((request) => request(axios, basePath));
|
|
1995
|
+
},
|
|
1996
|
+
};
|
|
1997
|
+
};
|
|
1998
|
+
|
|
1999
|
+
/**
|
|
2000
|
+
* RunsApi - object-oriented interface
|
|
2001
|
+
*/
|
|
2002
|
+
export class RunsApi extends BaseAPI {
|
|
2003
|
+
/**
|
|
2004
|
+
*
|
|
2005
|
+
* @param {string} [planId]
|
|
2006
|
+
* @param {RunsGetStatusEnum} [status]
|
|
2007
|
+
* @param {number} [limit]
|
|
2008
|
+
* @param {number} [offset]
|
|
2009
|
+
* @param {*} [options] Override http request option.
|
|
2010
|
+
* @throws {RequiredError}
|
|
2011
|
+
*/
|
|
2012
|
+
public runsGet(planId?: string, status?: RunsGetStatusEnum, limit?: number, offset?: number, options?: RawAxiosRequestConfig) {
|
|
2013
|
+
return RunsApiFp(this.configuration).runsGet(planId, status, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
/**
|
|
2017
|
+
*
|
|
2018
|
+
* @param {string} id
|
|
2019
|
+
* @param {*} [options] Override http request option.
|
|
2020
|
+
* @throws {RequiredError}
|
|
2021
|
+
*/
|
|
2022
|
+
public runsIdGet(id: string, options?: RawAxiosRequestConfig) {
|
|
2023
|
+
return RunsApiFp(this.configuration).runsIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
/**
|
|
2027
|
+
*
|
|
2028
|
+
* @param {string} id
|
|
2029
|
+
* @param {RunsIdPatchRequest} [runsIdPatchRequest]
|
|
2030
|
+
* @param {*} [options] Override http request option.
|
|
2031
|
+
* @throws {RequiredError}
|
|
2032
|
+
*/
|
|
2033
|
+
public runsIdPatch(id: string, runsIdPatchRequest?: RunsIdPatchRequest, options?: RawAxiosRequestConfig) {
|
|
2034
|
+
return RunsApiFp(this.configuration).runsIdPatch(id, runsIdPatchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
/**
|
|
2038
|
+
*
|
|
2039
|
+
* @param {string} planId
|
|
2040
|
+
* @param {RunsTriggerPlanIdPostRequest} runsTriggerPlanIdPostRequest
|
|
2041
|
+
* @param {*} [options] Override http request option.
|
|
2042
|
+
* @throws {RequiredError}
|
|
2043
|
+
*/
|
|
2044
|
+
public runsTriggerPlanIdPost(planId: string, runsTriggerPlanIdPostRequest: RunsTriggerPlanIdPostRequest, options?: RawAxiosRequestConfig) {
|
|
2045
|
+
return RunsApiFp(this.configuration).runsTriggerPlanIdPost(planId, runsTriggerPlanIdPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
|
|
2049
|
+
export const RunsGetStatusEnum = {
|
|
2050
|
+
Pending: 'pending',
|
|
2051
|
+
Running: 'running',
|
|
2052
|
+
Completed: 'completed',
|
|
2053
|
+
Failed: 'failed'
|
|
2054
|
+
} as const;
|
|
2055
|
+
export type RunsGetStatusEnum = typeof RunsGetStatusEnum[keyof typeof RunsGetStatusEnum];
|
|
2056
|
+
|
|
2057
|
+
|