@griffin-app/griffin-hub-sdk 1.0.0 → 1.0.1
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 +15 -20
- package/README.md +18 -24
- package/api.ts +389 -617
- package/dist/api.d.ts +221 -356
- package/dist/api.js +281 -473
- package/dist/esm/api.d.ts +221 -356
- package/dist/esm/api.js +272 -460
- package/dist/openapi-ts.config.d.ts +2 -0
- package/dist/openapi-ts.config.js +14 -0
- package/dist/openapi-ts.config.js.map +1 -0
- package/dist/src/client/client/client.gen.d.ts +2 -0
- package/dist/src/client/client/client.gen.js +199 -0
- package/dist/src/client/client/client.gen.js.map +1 -0
- package/dist/src/client/client/index.d.ts +8 -0
- package/dist/src/client/client/index.js +6 -0
- package/dist/src/client/client/index.js.map +1 -0
- package/dist/src/client/client/types.gen.d.ts +68 -0
- package/dist/src/client/client/types.gen.js +2 -0
- package/dist/src/client/client/types.gen.js.map +1 -0
- package/dist/src/client/client/utils.gen.d.ts +30 -0
- package/dist/src/client/client/utils.gen.js +232 -0
- package/dist/src/client/client/utils.gen.js.map +1 -0
- package/dist/src/client/client.gen.d.ts +4 -0
- package/dist/src/client/client.gen.js +3 -0
- package/dist/src/client/client.gen.js.map +1 -0
- package/dist/src/client/core/auth.gen.d.ts +8 -0
- package/dist/src/client/core/auth.gen.js +23 -0
- package/dist/src/client/core/auth.gen.js.map +1 -0
- package/dist/src/client/core/bodySerializer.gen.d.ts +21 -0
- package/dist/src/client/core/bodySerializer.gen.js +57 -0
- package/dist/src/client/core/bodySerializer.gen.js.map +1 -0
- package/dist/src/client/core/params.gen.d.ts +26 -0
- package/dist/src/client/core/params.gen.js +100 -0
- package/dist/src/client/core/params.gen.js.map +1 -0
- package/dist/src/client/core/pathSerializer.gen.d.ts +30 -0
- package/dist/src/client/core/pathSerializer.gen.js +114 -0
- package/dist/src/client/core/pathSerializer.gen.js.map +1 -0
- package/dist/src/client/core/queryKeySerializer.gen.d.ts +6 -0
- package/dist/src/client/core/queryKeySerializer.gen.js +84 -0
- package/dist/src/client/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/src/client/core/serverSentEvents.gen.d.ts +23 -0
- package/dist/src/client/core/serverSentEvents.gen.js +153 -0
- package/dist/src/client/core/serverSentEvents.gen.js.map +1 -0
- package/dist/src/client/core/types.gen.d.ts +32 -0
- package/dist/src/client/core/types.gen.js +2 -0
- package/dist/src/client/core/types.gen.js.map +1 -0
- package/dist/src/client/core/utils.gen.d.ts +19 -0
- package/dist/src/client/core/utils.gen.js +84 -0
- package/dist/src/client/core/utils.gen.js.map +1 -0
- package/dist/src/client/index.d.ts +2 -0
- package/dist/src/client/index.js +2 -0
- package/dist/src/client/index.js.map +1 -0
- package/dist/src/client/sdk.gen.d.ts +11 -0
- package/dist/src/client/sdk.gen.js +10 -0
- package/dist/src/client/sdk.gen.js.map +1 -0
- package/dist/src/client/types.gen.d.ts +217 -0
- package/dist/src/client/types.gen.js +2 -0
- package/dist/src/client/types.gen.js.map +1 -0
- package/docs/{Assertion1AnyOf.md → AssertionAnyOf.md} +3 -3
- package/docs/{Assertion1AnyOf1.md → AssertionAnyOf1.md} +3 -3
- package/docs/{Assertion1AnyOf2.md → AssertionAnyOf2.md} +3 -3
- package/docs/Assertions.md +1 -1
- package/docs/{Assertion1.md → AssertionsAssertionsInner.md} +4 -4
- package/docs/AssertionsAssertionsInnerAnyOf.md +28 -0
- package/docs/AssertionsAssertionsInnerAnyOfAllOfPredicate.md +22 -0
- package/docs/AssertionsAssertionsInnerAnyOfAllOfPredicateAnyOf.md +22 -0
- package/docs/Endpoint.md +3 -3
- package/docs/{Endpoint1HeadersValue.md → EndpointHeadersValue.md} +4 -4
- package/docs/{Endpoint1HeadersValueAnyOf.md → EndpointHeadersValueAnyOf.md} +4 -4
- package/docs/{Endpoint1HeadersValueAnyOfSecret.md → EndpointHeadersValueAnyOfSecret.md} +3 -3
- package/docs/{Edge1.md → EndpointPath.md} +5 -7
- package/docs/{Wait1.md → EndpointPathAnyOf.md} +5 -9
- package/docs/{Endpoint1Base.md → EndpointPathAnyOfVariable.md} +5 -5
- package/docs/Node.md +4 -4
- package/docs/PlanApi.md +195 -5
- package/docs/PlanPostRequest.md +34 -0
- package/docs/PlanPostRequestFrequency.md +22 -0
- package/docs/TestPlanV1.md +4 -6
- package/package.json +1 -1
- package/docs/Assertions1.md +0 -24
- package/docs/ConfigApi.md +0 -330
- package/docs/ConfigGet200Response.md +0 -20
- package/docs/ConfigOrganizationIdEnvironmentTargetsTargetKeyGet200Response.md +0 -20
- package/docs/ConfigOrganizationIdEnvironmentTargetsTargetKeyGet200ResponseData.md +0 -20
- package/docs/ConfigOrganizationIdEnvironmentTargetsTargetKeyPut200Response.md +0 -20
- package/docs/ConfigOrganizationIdEnvironmentTargetsTargetKeyPut200ResponseData.md +0 -30
- package/docs/ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest.md +0 -20
- package/docs/Endpoint1.md +0 -34
- package/docs/Node1.md +0 -38
package/api.ts
CHANGED
|
@@ -94,77 +94,55 @@ export const AssertionAccessorEnum = {
|
|
|
94
94
|
|
|
95
95
|
export type AssertionAccessorEnum = typeof AssertionAccessorEnum[keyof typeof AssertionAccessorEnum];
|
|
96
96
|
|
|
97
|
-
export interface
|
|
98
|
-
'assertionType':
|
|
97
|
+
export interface AssertionAnyOf {
|
|
98
|
+
'assertionType': AssertionAnyOfAssertionTypeEnum;
|
|
99
99
|
'nodeId': string;
|
|
100
|
-
'accessor':
|
|
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;
|
|
100
|
+
'accessor': AssertionAnyOfAccessorEnum;
|
|
123
101
|
'path': Array<string>;
|
|
124
102
|
'predicate': JSONAssertion1Predicate;
|
|
125
103
|
}
|
|
126
104
|
|
|
127
|
-
export const
|
|
105
|
+
export const AssertionAnyOfAssertionTypeEnum = {
|
|
128
106
|
Json: 'JSON'
|
|
129
107
|
} as const;
|
|
130
108
|
|
|
131
|
-
export type
|
|
132
|
-
export const
|
|
109
|
+
export type AssertionAnyOfAssertionTypeEnum = typeof AssertionAnyOfAssertionTypeEnum[keyof typeof AssertionAnyOfAssertionTypeEnum];
|
|
110
|
+
export const AssertionAnyOfAccessorEnum = {
|
|
133
111
|
Body: 'body',
|
|
134
112
|
Headers: 'headers',
|
|
135
113
|
Status: 'status'
|
|
136
114
|
} as const;
|
|
137
115
|
|
|
138
|
-
export type
|
|
116
|
+
export type AssertionAnyOfAccessorEnum = typeof AssertionAnyOfAccessorEnum[keyof typeof AssertionAnyOfAccessorEnum];
|
|
139
117
|
|
|
140
|
-
export interface
|
|
141
|
-
'assertionType':
|
|
118
|
+
export interface AssertionAnyOf1 {
|
|
119
|
+
'assertionType': AssertionAnyOf1AssertionTypeEnum;
|
|
142
120
|
'path': Array<string>;
|
|
143
121
|
'expected': any;
|
|
144
122
|
}
|
|
145
123
|
|
|
146
|
-
export const
|
|
124
|
+
export const AssertionAnyOf1AssertionTypeEnum = {
|
|
147
125
|
Xml: 'XML'
|
|
148
126
|
} as const;
|
|
149
127
|
|
|
150
|
-
export type
|
|
128
|
+
export type AssertionAnyOf1AssertionTypeEnum = typeof AssertionAnyOf1AssertionTypeEnum[keyof typeof AssertionAnyOf1AssertionTypeEnum];
|
|
151
129
|
|
|
152
|
-
export interface
|
|
153
|
-
'assertionType':
|
|
130
|
+
export interface AssertionAnyOf2 {
|
|
131
|
+
'assertionType': AssertionAnyOf2AssertionTypeEnum;
|
|
154
132
|
'path': string;
|
|
155
133
|
'expected': any;
|
|
156
134
|
}
|
|
157
135
|
|
|
158
|
-
export const
|
|
136
|
+
export const AssertionAnyOf2AssertionTypeEnum = {
|
|
159
137
|
Text: 'TEXT'
|
|
160
138
|
} as const;
|
|
161
139
|
|
|
162
|
-
export type
|
|
140
|
+
export type AssertionAnyOf2AssertionTypeEnum = typeof AssertionAnyOf2AssertionTypeEnum[keyof typeof AssertionAnyOf2AssertionTypeEnum];
|
|
163
141
|
|
|
164
142
|
export interface Assertions {
|
|
165
143
|
'id': string;
|
|
166
144
|
'type': AssertionsTypeEnum;
|
|
167
|
-
'assertions': Array<
|
|
145
|
+
'assertions': Array<AssertionsAssertionsInner>;
|
|
168
146
|
}
|
|
169
147
|
|
|
170
148
|
export const AssertionsTypeEnum = {
|
|
@@ -173,17 +151,92 @@ export const AssertionsTypeEnum = {
|
|
|
173
151
|
|
|
174
152
|
export type AssertionsTypeEnum = typeof AssertionsTypeEnum[keyof typeof AssertionsTypeEnum];
|
|
175
153
|
|
|
176
|
-
export interface
|
|
177
|
-
'
|
|
178
|
-
'
|
|
179
|
-
'
|
|
154
|
+
export interface AssertionsAssertionsInner {
|
|
155
|
+
'assertionType': AssertionsAssertionsInnerAssertionTypeEnum;
|
|
156
|
+
'nodeId': string;
|
|
157
|
+
'accessor': AssertionsAssertionsInnerAccessorEnum;
|
|
158
|
+
'path': string;
|
|
159
|
+
'predicate': AssertionsAssertionsInnerAnyOfAllOfPredicate;
|
|
160
|
+
'expected': any;
|
|
180
161
|
}
|
|
181
162
|
|
|
182
|
-
export const
|
|
183
|
-
|
|
163
|
+
export const AssertionsAssertionsInnerAssertionTypeEnum = {
|
|
164
|
+
Text: 'TEXT'
|
|
165
|
+
} as const;
|
|
166
|
+
|
|
167
|
+
export type AssertionsAssertionsInnerAssertionTypeEnum = typeof AssertionsAssertionsInnerAssertionTypeEnum[keyof typeof AssertionsAssertionsInnerAssertionTypeEnum];
|
|
168
|
+
export const AssertionsAssertionsInnerAccessorEnum = {
|
|
169
|
+
Body: 'body',
|
|
170
|
+
Headers: 'headers',
|
|
171
|
+
Status: 'status'
|
|
172
|
+
} as const;
|
|
173
|
+
|
|
174
|
+
export type AssertionsAssertionsInnerAccessorEnum = typeof AssertionsAssertionsInnerAccessorEnum[keyof typeof AssertionsAssertionsInnerAccessorEnum];
|
|
175
|
+
|
|
176
|
+
export interface AssertionsAssertionsInnerAnyOf {
|
|
177
|
+
'assertionType': AssertionsAssertionsInnerAnyOfAssertionTypeEnum;
|
|
178
|
+
'nodeId': string;
|
|
179
|
+
'accessor': AssertionsAssertionsInnerAnyOfAccessorEnum;
|
|
180
|
+
'path': Array<string>;
|
|
181
|
+
'predicate': AssertionsAssertionsInnerAnyOfAllOfPredicate;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export const AssertionsAssertionsInnerAnyOfAssertionTypeEnum = {
|
|
185
|
+
Json: 'JSON'
|
|
186
|
+
} as const;
|
|
187
|
+
|
|
188
|
+
export type AssertionsAssertionsInnerAnyOfAssertionTypeEnum = typeof AssertionsAssertionsInnerAnyOfAssertionTypeEnum[keyof typeof AssertionsAssertionsInnerAnyOfAssertionTypeEnum];
|
|
189
|
+
export const AssertionsAssertionsInnerAnyOfAccessorEnum = {
|
|
190
|
+
Body: 'body',
|
|
191
|
+
Headers: 'headers',
|
|
192
|
+
Status: 'status'
|
|
193
|
+
} as const;
|
|
194
|
+
|
|
195
|
+
export type AssertionsAssertionsInnerAnyOfAccessorEnum = typeof AssertionsAssertionsInnerAnyOfAccessorEnum[keyof typeof AssertionsAssertionsInnerAnyOfAccessorEnum];
|
|
196
|
+
|
|
197
|
+
export interface AssertionsAssertionsInnerAnyOfAllOfPredicate {
|
|
198
|
+
'expected': any;
|
|
199
|
+
'operator': AssertionsAssertionsInnerAnyOfAllOfPredicateOperatorEnum;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export const AssertionsAssertionsInnerAnyOfAllOfPredicateOperatorEnum = {
|
|
203
|
+
Equal: 'EQUAL',
|
|
204
|
+
NotEqual: 'NOT_EQUAL',
|
|
205
|
+
GreaterThan: 'GREATER_THAN',
|
|
206
|
+
LessThan: 'LESS_THAN',
|
|
207
|
+
GreaterThanOrEqual: 'GREATER_THAN_OR_EQUAL',
|
|
208
|
+
LessThanOrEqual: 'LESS_THAN_OR_EQUAL',
|
|
209
|
+
Contains: 'CONTAINS',
|
|
210
|
+
NotContains: 'NOT_CONTAINS',
|
|
211
|
+
StartsWith: 'STARTS_WITH',
|
|
212
|
+
EndsWith: 'ENDS_WITH',
|
|
213
|
+
NotStartsWith: 'NOT_STARTS_WITH',
|
|
214
|
+
NotEndsWith: 'NOT_ENDS_WITH'
|
|
215
|
+
} as const;
|
|
216
|
+
|
|
217
|
+
export type AssertionsAssertionsInnerAnyOfAllOfPredicateOperatorEnum = typeof AssertionsAssertionsInnerAnyOfAllOfPredicateOperatorEnum[keyof typeof AssertionsAssertionsInnerAnyOfAllOfPredicateOperatorEnum];
|
|
218
|
+
|
|
219
|
+
export interface AssertionsAssertionsInnerAnyOfAllOfPredicateAnyOf {
|
|
220
|
+
'expected': any;
|
|
221
|
+
'operator': AssertionsAssertionsInnerAnyOfAllOfPredicateAnyOfOperatorEnum;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export const AssertionsAssertionsInnerAnyOfAllOfPredicateAnyOfOperatorEnum = {
|
|
225
|
+
Equal: 'EQUAL',
|
|
226
|
+
NotEqual: 'NOT_EQUAL',
|
|
227
|
+
GreaterThan: 'GREATER_THAN',
|
|
228
|
+
LessThan: 'LESS_THAN',
|
|
229
|
+
GreaterThanOrEqual: 'GREATER_THAN_OR_EQUAL',
|
|
230
|
+
LessThanOrEqual: 'LESS_THAN_OR_EQUAL',
|
|
231
|
+
Contains: 'CONTAINS',
|
|
232
|
+
NotContains: 'NOT_CONTAINS',
|
|
233
|
+
StartsWith: 'STARTS_WITH',
|
|
234
|
+
EndsWith: 'ENDS_WITH',
|
|
235
|
+
NotStartsWith: 'NOT_STARTS_WITH',
|
|
236
|
+
NotEndsWith: 'NOT_ENDS_WITH'
|
|
184
237
|
} as const;
|
|
185
238
|
|
|
186
|
-
export type
|
|
239
|
+
export type AssertionsAssertionsInnerAnyOfAllOfPredicateAnyOfOperatorEnum = typeof AssertionsAssertionsInnerAnyOfAllOfPredicateAnyOfOperatorEnum[keyof typeof AssertionsAssertionsInnerAnyOfAllOfPredicateAnyOfOperatorEnum];
|
|
187
240
|
|
|
188
241
|
export interface BinaryPredicate {
|
|
189
242
|
'expected': any;
|
|
@@ -248,44 +301,17 @@ export const BinaryPredicateOperator = {
|
|
|
248
301
|
export type BinaryPredicateOperator = typeof BinaryPredicateOperator[keyof typeof BinaryPredicateOperator];
|
|
249
302
|
|
|
250
303
|
|
|
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
304
|
export interface Edge {
|
|
275
305
|
'from': string;
|
|
276
306
|
'to': string;
|
|
277
307
|
}
|
|
278
|
-
export interface Edge1 {
|
|
279
|
-
'from': string;
|
|
280
|
-
'to': string;
|
|
281
|
-
}
|
|
282
308
|
export interface Endpoint {
|
|
283
309
|
'id': string;
|
|
284
310
|
'type': EndpointTypeEnum;
|
|
285
311
|
'method': EndpointMethodEnum;
|
|
286
|
-
'path':
|
|
287
|
-
'base':
|
|
288
|
-
'headers'?: { [key: string]:
|
|
312
|
+
'path': EndpointPath;
|
|
313
|
+
'base': EndpointPath;
|
|
314
|
+
'headers'?: { [key: string]: EndpointHeadersValue; };
|
|
289
315
|
'body'?: any;
|
|
290
316
|
'response_format': EndpointResponseFormatEnum;
|
|
291
317
|
}
|
|
@@ -316,66 +342,28 @@ export const EndpointResponseFormatEnum = {
|
|
|
316
342
|
|
|
317
343
|
export type EndpointResponseFormatEnum = typeof EndpointResponseFormatEnum[keyof typeof EndpointResponseFormatEnum];
|
|
318
344
|
|
|
319
|
-
export interface
|
|
320
|
-
'
|
|
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;
|
|
345
|
+
export interface EndpointHeadersValue {
|
|
346
|
+
'$secret': EndpointHeadersValueAnyOfSecret;
|
|
369
347
|
}
|
|
370
|
-
export interface
|
|
371
|
-
'$secret':
|
|
348
|
+
export interface EndpointHeadersValueAnyOf {
|
|
349
|
+
'$secret': EndpointHeadersValueAnyOfSecret;
|
|
372
350
|
}
|
|
373
|
-
export interface
|
|
351
|
+
export interface EndpointHeadersValueAnyOfSecret {
|
|
374
352
|
'provider': string;
|
|
375
353
|
'ref': string;
|
|
376
354
|
'version'?: string;
|
|
377
355
|
'field'?: string;
|
|
378
356
|
}
|
|
357
|
+
export interface EndpointPath {
|
|
358
|
+
'$variable': EndpointPathAnyOfVariable;
|
|
359
|
+
}
|
|
360
|
+
export interface EndpointPathAnyOf {
|
|
361
|
+
'$variable': EndpointPathAnyOfVariable;
|
|
362
|
+
}
|
|
363
|
+
export interface EndpointPathAnyOfVariable {
|
|
364
|
+
'key': string;
|
|
365
|
+
'template'?: string;
|
|
366
|
+
}
|
|
379
367
|
export interface Frequency {
|
|
380
368
|
'every': number;
|
|
381
369
|
'unit': FrequencyUnitEnum;
|
|
@@ -458,48 +446,7 @@ export type JSONAssertion1PredicateOperatorEnum = typeof JSONAssertion1Predicate
|
|
|
458
446
|
/**
|
|
459
447
|
* @type Node
|
|
460
448
|
*/
|
|
461
|
-
export type Node =
|
|
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];
|
|
449
|
+
export type Node = Assertions | Endpoint | Wait;
|
|
503
450
|
|
|
504
451
|
export interface PlanGet200Response {
|
|
505
452
|
'data': Array<TestPlanV1>;
|
|
@@ -510,6 +457,36 @@ export interface PlanGet200Response {
|
|
|
510
457
|
export interface PlanPost201Response {
|
|
511
458
|
'data': TestPlanV1;
|
|
512
459
|
}
|
|
460
|
+
export interface PlanPostRequest {
|
|
461
|
+
'project': string;
|
|
462
|
+
'locations'?: Array<string>;
|
|
463
|
+
'name': string;
|
|
464
|
+
'version': PlanPostRequestVersionEnum;
|
|
465
|
+
'frequency': PlanPostRequestFrequency;
|
|
466
|
+
'environment': string;
|
|
467
|
+
'nodes': Array<Node>;
|
|
468
|
+
'edges': Array<Edge>;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
export const PlanPostRequestVersionEnum = {
|
|
472
|
+
_10: '1.0'
|
|
473
|
+
} as const;
|
|
474
|
+
|
|
475
|
+
export type PlanPostRequestVersionEnum = typeof PlanPostRequestVersionEnum[keyof typeof PlanPostRequestVersionEnum];
|
|
476
|
+
|
|
477
|
+
export interface PlanPostRequestFrequency {
|
|
478
|
+
'every': number;
|
|
479
|
+
'unit': PlanPostRequestFrequencyUnitEnum;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
export const PlanPostRequestFrequencyUnitEnum = {
|
|
483
|
+
Minute: 'MINUTE',
|
|
484
|
+
Hour: 'HOUR',
|
|
485
|
+
Day: 'DAY'
|
|
486
|
+
} as const;
|
|
487
|
+
|
|
488
|
+
export type PlanPostRequestFrequencyUnitEnum = typeof PlanPostRequestFrequencyUnitEnum[keyof typeof PlanPostRequestFrequencyUnitEnum];
|
|
489
|
+
|
|
513
490
|
|
|
514
491
|
export const ResponseFormat = {
|
|
515
492
|
Json: 'JSON',
|
|
@@ -612,16 +589,15 @@ export interface RunsTriggerPlanIdPostRequest {
|
|
|
612
589
|
'environment': string;
|
|
613
590
|
}
|
|
614
591
|
export interface TestPlanV1 {
|
|
615
|
-
'
|
|
616
|
-
'project'?: string;
|
|
592
|
+
'project': string;
|
|
617
593
|
'locations'?: Array<string>;
|
|
618
594
|
'id': string;
|
|
619
595
|
'name': string;
|
|
620
596
|
'version': TestPlanV1VersionEnum;
|
|
621
|
-
'frequency'
|
|
597
|
+
'frequency': Frequency1;
|
|
622
598
|
'environment': string;
|
|
623
|
-
'nodes': Array<
|
|
624
|
-
'edges': Array<
|
|
599
|
+
'nodes': Array<Node>;
|
|
600
|
+
'edges': Array<Edge>;
|
|
625
601
|
}
|
|
626
602
|
|
|
627
603
|
export const TestPlanV1VersionEnum = {
|
|
@@ -655,18 +631,6 @@ export const WaitTypeEnum = {
|
|
|
655
631
|
|
|
656
632
|
export type WaitTypeEnum = typeof WaitTypeEnum[keyof typeof WaitTypeEnum];
|
|
657
633
|
|
|
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
634
|
|
|
671
635
|
/**
|
|
672
636
|
* AgentsApi - axios parameter creator
|
|
@@ -1030,19 +994,17 @@ export type AgentsGetStatusEnum = typeof AgentsGetStatusEnum[keyof typeof Agents
|
|
|
1030
994
|
|
|
1031
995
|
|
|
1032
996
|
/**
|
|
1033
|
-
*
|
|
997
|
+
* DefaultApi - axios parameter creator
|
|
1034
998
|
*/
|
|
1035
|
-
export const
|
|
999
|
+
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1036
1000
|
return {
|
|
1037
1001
|
/**
|
|
1038
1002
|
*
|
|
1039
|
-
* @param {string} [organizationId]
|
|
1040
|
-
* @param {string} [environment]
|
|
1041
1003
|
* @param {*} [options] Override http request option.
|
|
1042
1004
|
* @throws {RequiredError}
|
|
1043
1005
|
*/
|
|
1044
|
-
|
|
1045
|
-
const localVarPath =
|
|
1006
|
+
rootGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1007
|
+
const localVarPath = `/`;
|
|
1046
1008
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1047
1009
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1048
1010
|
let baseOptions;
|
|
@@ -1054,15 +1016,6 @@ export const ConfigApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1054
1016
|
const localVarHeaderParameter = {} as any;
|
|
1055
1017
|
const localVarQueryParameter = {} as any;
|
|
1056
1018
|
|
|
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
1019
|
|
|
1067
1020
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1068
1021
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -1073,25 +1026,83 @@ export const ConfigApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1073
1026
|
options: localVarRequestOptions,
|
|
1074
1027
|
};
|
|
1075
1028
|
},
|
|
1029
|
+
}
|
|
1030
|
+
};
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* DefaultApi - functional programming interface
|
|
1034
|
+
*/
|
|
1035
|
+
export const DefaultApiFp = function(configuration?: Configuration) {
|
|
1036
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
|
|
1037
|
+
return {
|
|
1038
|
+
/**
|
|
1039
|
+
*
|
|
1040
|
+
* @param {*} [options] Override http request option.
|
|
1041
|
+
* @throws {RequiredError}
|
|
1042
|
+
*/
|
|
1043
|
+
async rootGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1044
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rootGet(options);
|
|
1045
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1046
|
+
const localVarOperationServerBasePath = operationServerMap['DefaultApi.rootGet']?.[localVarOperationServerIndex]?.url;
|
|
1047
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1048
|
+
},
|
|
1049
|
+
}
|
|
1050
|
+
};
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* DefaultApi - factory interface
|
|
1054
|
+
*/
|
|
1055
|
+
export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1056
|
+
const localVarFp = DefaultApiFp(configuration)
|
|
1057
|
+
return {
|
|
1058
|
+
/**
|
|
1059
|
+
*
|
|
1060
|
+
* @param {*} [options] Override http request option.
|
|
1061
|
+
* @throws {RequiredError}
|
|
1062
|
+
*/
|
|
1063
|
+
rootGet(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1064
|
+
return localVarFp.rootGet(options).then((request) => request(axios, basePath));
|
|
1065
|
+
},
|
|
1066
|
+
};
|
|
1067
|
+
};
|
|
1068
|
+
|
|
1069
|
+
/**
|
|
1070
|
+
* DefaultApi - object-oriented interface
|
|
1071
|
+
*/
|
|
1072
|
+
export class DefaultApi extends BaseAPI {
|
|
1073
|
+
/**
|
|
1074
|
+
*
|
|
1075
|
+
* @param {*} [options] Override http request option.
|
|
1076
|
+
* @throws {RequiredError}
|
|
1077
|
+
*/
|
|
1078
|
+
public rootGet(options?: RawAxiosRequestConfig) {
|
|
1079
|
+
return DefaultApiFp(this.configuration).rootGet(options).then((request) => request(this.axios, this.basePath));
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
/**
|
|
1086
|
+
* PlanApi - axios parameter creator
|
|
1087
|
+
*/
|
|
1088
|
+
export const PlanApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1089
|
+
return {
|
|
1076
1090
|
/**
|
|
1077
1091
|
*
|
|
1078
|
-
* @param {string}
|
|
1092
|
+
* @param {string} projectId
|
|
1079
1093
|
* @param {string} environment
|
|
1080
|
-
* @param {string}
|
|
1094
|
+
* @param {string} name
|
|
1081
1095
|
* @param {*} [options] Override http request option.
|
|
1082
1096
|
* @throws {RequiredError}
|
|
1083
1097
|
*/
|
|
1084
|
-
|
|
1085
|
-
// verify required parameter '
|
|
1086
|
-
assertParamExists('
|
|
1098
|
+
planByNameGet: async (projectId: string, environment: string, name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1099
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
1100
|
+
assertParamExists('planByNameGet', 'projectId', projectId)
|
|
1087
1101
|
// verify required parameter 'environment' is not null or undefined
|
|
1088
|
-
assertParamExists('
|
|
1089
|
-
// verify required parameter '
|
|
1090
|
-
assertParamExists('
|
|
1091
|
-
const localVarPath = `/
|
|
1092
|
-
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
1093
|
-
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
1094
|
-
.replace(`{${"targetKey"}}`, encodeURIComponent(String(targetKey)));
|
|
1102
|
+
assertParamExists('planByNameGet', 'environment', environment)
|
|
1103
|
+
// verify required parameter 'name' is not null or undefined
|
|
1104
|
+
assertParamExists('planByNameGet', 'name', name)
|
|
1105
|
+
const localVarPath = `/plan/by-name`;
|
|
1095
1106
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1096
1107
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1097
1108
|
let baseOptions;
|
|
@@ -1099,15 +1110,27 @@ export const ConfigApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1099
1110
|
baseOptions = configuration.baseOptions;
|
|
1100
1111
|
}
|
|
1101
1112
|
|
|
1102
|
-
const localVarRequestOptions = { method: '
|
|
1113
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1103
1114
|
const localVarHeaderParameter = {} as any;
|
|
1104
1115
|
const localVarQueryParameter = {} as any;
|
|
1105
1116
|
|
|
1106
|
-
|
|
1117
|
+
if (projectId !== undefined) {
|
|
1118
|
+
localVarQueryParameter['projectId'] = projectId;
|
|
1119
|
+
}
|
|
1107
1120
|
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1121
|
+
if (environment !== undefined) {
|
|
1122
|
+
localVarQueryParameter['environment'] = environment;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
if (name !== undefined) {
|
|
1126
|
+
localVarQueryParameter['name'] = name;
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1130
|
+
|
|
1131
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1132
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1133
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1111
1134
|
|
|
1112
1135
|
return {
|
|
1113
1136
|
url: toPathString(localVarUrlObj),
|
|
@@ -1116,23 +1139,15 @@ export const ConfigApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1116
1139
|
},
|
|
1117
1140
|
/**
|
|
1118
1141
|
*
|
|
1119
|
-
* @param {string}
|
|
1120
|
-
* @param {string} environment
|
|
1121
|
-
* @param {
|
|
1142
|
+
* @param {string} [projectId]
|
|
1143
|
+
* @param {string} [environment]
|
|
1144
|
+
* @param {number} [limit]
|
|
1145
|
+
* @param {number} [offset]
|
|
1122
1146
|
* @param {*} [options] Override http request option.
|
|
1123
1147
|
* @throws {RequiredError}
|
|
1124
1148
|
*/
|
|
1125
|
-
|
|
1126
|
-
|
|
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)));
|
|
1149
|
+
planGet: async (projectId?: string, environment?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1150
|
+
const localVarPath = `/plan/`;
|
|
1136
1151
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1137
1152
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1138
1153
|
let baseOptions;
|
|
@@ -1144,6 +1159,22 @@ export const ConfigApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1144
1159
|
const localVarHeaderParameter = {} as any;
|
|
1145
1160
|
const localVarQueryParameter = {} as any;
|
|
1146
1161
|
|
|
1162
|
+
if (projectId !== undefined) {
|
|
1163
|
+
localVarQueryParameter['projectId'] = projectId;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
if (environment !== undefined) {
|
|
1167
|
+
localVarQueryParameter['environment'] = environment;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
if (limit !== undefined) {
|
|
1171
|
+
localVarQueryParameter['limit'] = limit;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
if (offset !== undefined) {
|
|
1175
|
+
localVarQueryParameter['offset'] = offset;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1147
1178
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1148
1179
|
|
|
1149
1180
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1157,26 +1188,15 @@ export const ConfigApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1157
1188
|
},
|
|
1158
1189
|
/**
|
|
1159
1190
|
*
|
|
1160
|
-
* @param {string}
|
|
1161
|
-
* @param {string} environment
|
|
1162
|
-
* @param {string} targetKey
|
|
1163
|
-
* @param {ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest} configOrganizationIdEnvironmentTargetsTargetKeyPutRequest
|
|
1191
|
+
* @param {string} id
|
|
1164
1192
|
* @param {*} [options] Override http request option.
|
|
1165
1193
|
* @throws {RequiredError}
|
|
1166
1194
|
*/
|
|
1167
|
-
|
|
1168
|
-
// verify required parameter '
|
|
1169
|
-
assertParamExists('
|
|
1170
|
-
|
|
1171
|
-
|
|
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)));
|
|
1195
|
+
planIdDelete: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1196
|
+
// verify required parameter 'id' is not null or undefined
|
|
1197
|
+
assertParamExists('planIdDelete', 'id', id)
|
|
1198
|
+
const localVarPath = `/plan/{id}`
|
|
1199
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1180
1200
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1181
1201
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1182
1202
|
let baseOptions;
|
|
@@ -1184,17 +1204,15 @@ export const ConfigApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1184
1204
|
baseOptions = configuration.baseOptions;
|
|
1185
1205
|
}
|
|
1186
1206
|
|
|
1187
|
-
const localVarRequestOptions = { method: '
|
|
1207
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
1188
1208
|
const localVarHeaderParameter = {} as any;
|
|
1189
1209
|
const localVarQueryParameter = {} as any;
|
|
1190
1210
|
|
|
1191
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1192
1211
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1193
1212
|
|
|
1194
1213
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1195
1214
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1196
1215
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1197
|
-
localVarRequestOptions.data = serializeDataIfNeeded(configOrganizationIdEnvironmentTargetsTargetKeyPutRequest, localVarRequestOptions, configuration)
|
|
1198
1216
|
|
|
1199
1217
|
return {
|
|
1200
1218
|
url: toPathString(localVarUrlObj),
|
|
@@ -1203,17 +1221,18 @@ export const ConfigApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1203
1221
|
},
|
|
1204
1222
|
/**
|
|
1205
1223
|
*
|
|
1206
|
-
* @param {string}
|
|
1207
|
-
* @param {
|
|
1224
|
+
* @param {string} id
|
|
1225
|
+
* @param {PlanPostRequest} planPostRequest
|
|
1208
1226
|
* @param {*} [options] Override http request option.
|
|
1209
1227
|
* @throws {RequiredError}
|
|
1210
1228
|
*/
|
|
1211
|
-
|
|
1212
|
-
// verify required parameter '
|
|
1213
|
-
assertParamExists('
|
|
1214
|
-
// verify required parameter '
|
|
1215
|
-
assertParamExists('
|
|
1216
|
-
const localVarPath = `/
|
|
1229
|
+
planIdPut: async (id: string, planPostRequest: PlanPostRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1230
|
+
// verify required parameter 'id' is not null or undefined
|
|
1231
|
+
assertParamExists('planIdPut', 'id', id)
|
|
1232
|
+
// verify required parameter 'planPostRequest' is not null or undefined
|
|
1233
|
+
assertParamExists('planIdPut', 'planPostRequest', planPostRequest)
|
|
1234
|
+
const localVarPath = `/plan/{id}`
|
|
1235
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1217
1236
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1218
1237
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1219
1238
|
let baseOptions;
|
|
@@ -1221,23 +1240,51 @@ export const ConfigApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1221
1240
|
baseOptions = configuration.baseOptions;
|
|
1222
1241
|
}
|
|
1223
1242
|
|
|
1224
|
-
const localVarRequestOptions = { method: '
|
|
1243
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
1225
1244
|
const localVarHeaderParameter = {} as any;
|
|
1226
1245
|
const localVarQueryParameter = {} as any;
|
|
1227
1246
|
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
}
|
|
1247
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1248
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1231
1249
|
|
|
1232
|
-
|
|
1233
|
-
|
|
1250
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1251
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1252
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1253
|
+
localVarRequestOptions.data = serializeDataIfNeeded(planPostRequest, localVarRequestOptions, configuration)
|
|
1254
|
+
|
|
1255
|
+
return {
|
|
1256
|
+
url: toPathString(localVarUrlObj),
|
|
1257
|
+
options: localVarRequestOptions,
|
|
1258
|
+
};
|
|
1259
|
+
},
|
|
1260
|
+
/**
|
|
1261
|
+
*
|
|
1262
|
+
* @param {PlanPostRequest} planPostRequest
|
|
1263
|
+
* @param {*} [options] Override http request option.
|
|
1264
|
+
* @throws {RequiredError}
|
|
1265
|
+
*/
|
|
1266
|
+
planPost: async (planPostRequest: PlanPostRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1267
|
+
// verify required parameter 'planPostRequest' is not null or undefined
|
|
1268
|
+
assertParamExists('planPost', 'planPostRequest', planPostRequest)
|
|
1269
|
+
const localVarPath = `/plan/`;
|
|
1270
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1271
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1272
|
+
let baseOptions;
|
|
1273
|
+
if (configuration) {
|
|
1274
|
+
baseOptions = configuration.baseOptions;
|
|
1234
1275
|
}
|
|
1235
1276
|
|
|
1277
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1278
|
+
const localVarHeaderParameter = {} as any;
|
|
1279
|
+
const localVarQueryParameter = {} as any;
|
|
1280
|
+
|
|
1281
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1236
1282
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1237
1283
|
|
|
1238
1284
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1239
1285
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1240
1286
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1287
|
+
localVarRequestOptions.data = serializeDataIfNeeded(planPostRequest, localVarRequestOptions, configuration)
|
|
1241
1288
|
|
|
1242
1289
|
return {
|
|
1243
1290
|
url: toPathString(localVarUrlObj),
|
|
@@ -1248,473 +1295,198 @@ export const ConfigApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1248
1295
|
};
|
|
1249
1296
|
|
|
1250
1297
|
/**
|
|
1251
|
-
*
|
|
1298
|
+
* PlanApi - functional programming interface
|
|
1252
1299
|
*/
|
|
1253
|
-
export const
|
|
1254
|
-
const localVarAxiosParamCreator =
|
|
1300
|
+
export const PlanApiFp = function(configuration?: Configuration) {
|
|
1301
|
+
const localVarAxiosParamCreator = PlanApiAxiosParamCreator(configuration)
|
|
1255
1302
|
return {
|
|
1256
1303
|
/**
|
|
1257
1304
|
*
|
|
1258
|
-
* @param {string}
|
|
1259
|
-
* @param {string}
|
|
1305
|
+
* @param {string} projectId
|
|
1306
|
+
* @param {string} environment
|
|
1307
|
+
* @param {string} name
|
|
1260
1308
|
* @param {*} [options] Override http request option.
|
|
1261
1309
|
* @throws {RequiredError}
|
|
1262
1310
|
*/
|
|
1263
|
-
async
|
|
1264
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1311
|
+
async planByNameGet(projectId: string, environment: string, name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanPost201Response>> {
|
|
1312
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.planByNameGet(projectId, environment, name, options);
|
|
1265
1313
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1266
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
1314
|
+
const localVarOperationServerBasePath = operationServerMap['PlanApi.planByNameGet']?.[localVarOperationServerIndex]?.url;
|
|
1267
1315
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1268
1316
|
},
|
|
1269
1317
|
/**
|
|
1270
1318
|
*
|
|
1271
|
-
* @param {string}
|
|
1272
|
-
* @param {string} environment
|
|
1273
|
-
* @param {
|
|
1319
|
+
* @param {string} [projectId]
|
|
1320
|
+
* @param {string} [environment]
|
|
1321
|
+
* @param {number} [limit]
|
|
1322
|
+
* @param {number} [offset]
|
|
1274
1323
|
* @param {*} [options] Override http request option.
|
|
1275
1324
|
* @throws {RequiredError}
|
|
1276
1325
|
*/
|
|
1277
|
-
async
|
|
1278
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1326
|
+
async planGet(projectId?: string, environment?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanGet200Response>> {
|
|
1327
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.planGet(projectId, environment, limit, offset, options);
|
|
1279
1328
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1280
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
1329
|
+
const localVarOperationServerBasePath = operationServerMap['PlanApi.planGet']?.[localVarOperationServerIndex]?.url;
|
|
1281
1330
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1282
1331
|
},
|
|
1283
1332
|
/**
|
|
1284
1333
|
*
|
|
1285
|
-
* @param {string}
|
|
1286
|
-
* @param {string} environment
|
|
1287
|
-
* @param {string} targetKey
|
|
1334
|
+
* @param {string} id
|
|
1288
1335
|
* @param {*} [options] Override http request option.
|
|
1289
1336
|
* @throws {RequiredError}
|
|
1290
1337
|
*/
|
|
1291
|
-
async
|
|
1292
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1338
|
+
async planIdDelete(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1339
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.planIdDelete(id, options);
|
|
1293
1340
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1294
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
1341
|
+
const localVarOperationServerBasePath = operationServerMap['PlanApi.planIdDelete']?.[localVarOperationServerIndex]?.url;
|
|
1295
1342
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1296
1343
|
},
|
|
1297
1344
|
/**
|
|
1298
1345
|
*
|
|
1299
|
-
* @param {string}
|
|
1300
|
-
* @param {
|
|
1301
|
-
* @param {string} targetKey
|
|
1302
|
-
* @param {ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest} configOrganizationIdEnvironmentTargetsTargetKeyPutRequest
|
|
1346
|
+
* @param {string} id
|
|
1347
|
+
* @param {PlanPostRequest} planPostRequest
|
|
1303
1348
|
* @param {*} [options] Override http request option.
|
|
1304
1349
|
* @throws {RequiredError}
|
|
1305
1350
|
*/
|
|
1306
|
-
async
|
|
1307
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1351
|
+
async planIdPut(id: string, planPostRequest: PlanPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanPost201Response>> {
|
|
1352
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.planIdPut(id, planPostRequest, options);
|
|
1308
1353
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1309
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
1354
|
+
const localVarOperationServerBasePath = operationServerMap['PlanApi.planIdPut']?.[localVarOperationServerIndex]?.url;
|
|
1310
1355
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1311
1356
|
},
|
|
1312
1357
|
/**
|
|
1313
1358
|
*
|
|
1314
|
-
* @param {
|
|
1315
|
-
* @param {string} environment
|
|
1359
|
+
* @param {PlanPostRequest} planPostRequest
|
|
1316
1360
|
* @param {*} [options] Override http request option.
|
|
1317
1361
|
* @throws {RequiredError}
|
|
1318
1362
|
*/
|
|
1319
|
-
async
|
|
1320
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1363
|
+
async planPost(planPostRequest: PlanPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanPost201Response>> {
|
|
1364
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.planPost(planPostRequest, options);
|
|
1321
1365
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1322
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
1366
|
+
const localVarOperationServerBasePath = operationServerMap['PlanApi.planPost']?.[localVarOperationServerIndex]?.url;
|
|
1323
1367
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1324
1368
|
},
|
|
1325
1369
|
}
|
|
1326
1370
|
};
|
|
1327
1371
|
|
|
1328
1372
|
/**
|
|
1329
|
-
*
|
|
1373
|
+
* PlanApi - factory interface
|
|
1330
1374
|
*/
|
|
1331
|
-
export const
|
|
1332
|
-
const localVarFp =
|
|
1375
|
+
export const PlanApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1376
|
+
const localVarFp = PlanApiFp(configuration)
|
|
1333
1377
|
return {
|
|
1334
1378
|
/**
|
|
1335
1379
|
*
|
|
1336
|
-
* @param {string}
|
|
1337
|
-
* @param {string}
|
|
1380
|
+
* @param {string} projectId
|
|
1381
|
+
* @param {string} environment
|
|
1382
|
+
* @param {string} name
|
|
1338
1383
|
* @param {*} [options] Override http request option.
|
|
1339
1384
|
* @throws {RequiredError}
|
|
1340
1385
|
*/
|
|
1341
|
-
|
|
1342
|
-
return localVarFp.
|
|
1386
|
+
planByNameGet(projectId: string, environment: string, name: string, options?: RawAxiosRequestConfig): AxiosPromise<PlanPost201Response> {
|
|
1387
|
+
return localVarFp.planByNameGet(projectId, environment, name, options).then((request) => request(axios, basePath));
|
|
1343
1388
|
},
|
|
1344
1389
|
/**
|
|
1345
1390
|
*
|
|
1346
|
-
* @param {string}
|
|
1347
|
-
* @param {string} environment
|
|
1348
|
-
* @param {
|
|
1391
|
+
* @param {string} [projectId]
|
|
1392
|
+
* @param {string} [environment]
|
|
1393
|
+
* @param {number} [limit]
|
|
1394
|
+
* @param {number} [offset]
|
|
1349
1395
|
* @param {*} [options] Override http request option.
|
|
1350
1396
|
* @throws {RequiredError}
|
|
1351
1397
|
*/
|
|
1352
|
-
|
|
1353
|
-
return localVarFp.
|
|
1398
|
+
planGet(projectId?: string, environment?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<PlanGet200Response> {
|
|
1399
|
+
return localVarFp.planGet(projectId, environment, limit, offset, options).then((request) => request(axios, basePath));
|
|
1354
1400
|
},
|
|
1355
1401
|
/**
|
|
1356
1402
|
*
|
|
1357
|
-
* @param {string}
|
|
1358
|
-
* @param {string} environment
|
|
1359
|
-
* @param {string} targetKey
|
|
1403
|
+
* @param {string} id
|
|
1360
1404
|
* @param {*} [options] Override http request option.
|
|
1361
1405
|
* @throws {RequiredError}
|
|
1362
1406
|
*/
|
|
1363
|
-
|
|
1364
|
-
return localVarFp.
|
|
1407
|
+
planIdDelete(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1408
|
+
return localVarFp.planIdDelete(id, options).then((request) => request(axios, basePath));
|
|
1365
1409
|
},
|
|
1366
1410
|
/**
|
|
1367
1411
|
*
|
|
1368
|
-
* @param {string}
|
|
1369
|
-
* @param {
|
|
1370
|
-
* @param {string} targetKey
|
|
1371
|
-
* @param {ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest} configOrganizationIdEnvironmentTargetsTargetKeyPutRequest
|
|
1412
|
+
* @param {string} id
|
|
1413
|
+
* @param {PlanPostRequest} planPostRequest
|
|
1372
1414
|
* @param {*} [options] Override http request option.
|
|
1373
1415
|
* @throws {RequiredError}
|
|
1374
1416
|
*/
|
|
1375
|
-
|
|
1376
|
-
return localVarFp.
|
|
1417
|
+
planIdPut(id: string, planPostRequest: PlanPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<PlanPost201Response> {
|
|
1418
|
+
return localVarFp.planIdPut(id, planPostRequest, options).then((request) => request(axios, basePath));
|
|
1377
1419
|
},
|
|
1378
1420
|
/**
|
|
1379
1421
|
*
|
|
1380
|
-
* @param {
|
|
1381
|
-
* @param {string} environment
|
|
1422
|
+
* @param {PlanPostRequest} planPostRequest
|
|
1382
1423
|
* @param {*} [options] Override http request option.
|
|
1383
1424
|
* @throws {RequiredError}
|
|
1384
1425
|
*/
|
|
1385
|
-
|
|
1386
|
-
return localVarFp.
|
|
1426
|
+
planPost(planPostRequest: PlanPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<PlanPost201Response> {
|
|
1427
|
+
return localVarFp.planPost(planPostRequest, options).then((request) => request(axios, basePath));
|
|
1387
1428
|
},
|
|
1388
1429
|
};
|
|
1389
1430
|
};
|
|
1390
1431
|
|
|
1391
1432
|
/**
|
|
1392
|
-
*
|
|
1433
|
+
* PlanApi - object-oriented interface
|
|
1393
1434
|
*/
|
|
1394
|
-
export class
|
|
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
|
-
|
|
1435
|
+
export class PlanApi extends BaseAPI {
|
|
1430
1436
|
/**
|
|
1431
1437
|
*
|
|
1432
|
-
* @param {string}
|
|
1438
|
+
* @param {string} projectId
|
|
1433
1439
|
* @param {string} environment
|
|
1434
|
-
* @param {string}
|
|
1435
|
-
* @param {ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest} configOrganizationIdEnvironmentTargetsTargetKeyPutRequest
|
|
1440
|
+
* @param {string} name
|
|
1436
1441
|
* @param {*} [options] Override http request option.
|
|
1437
1442
|
* @throws {RequiredError}
|
|
1438
1443
|
*/
|
|
1439
|
-
public
|
|
1440
|
-
return
|
|
1444
|
+
public planByNameGet(projectId: string, environment: string, name: string, options?: RawAxiosRequestConfig) {
|
|
1445
|
+
return PlanApiFp(this.configuration).planByNameGet(projectId, environment, name, options).then((request) => request(this.axios, this.basePath));
|
|
1441
1446
|
}
|
|
1442
1447
|
|
|
1443
1448
|
/**
|
|
1444
1449
|
*
|
|
1445
|
-
* @param {string}
|
|
1446
|
-
* @param {string} environment
|
|
1450
|
+
* @param {string} [projectId]
|
|
1451
|
+
* @param {string} [environment]
|
|
1452
|
+
* @param {number} [limit]
|
|
1453
|
+
* @param {number} [offset]
|
|
1447
1454
|
* @param {*} [options] Override http request option.
|
|
1448
1455
|
* @throws {RequiredError}
|
|
1449
1456
|
*/
|
|
1450
|
-
public
|
|
1451
|
-
return
|
|
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
|
-
},
|
|
1457
|
+
public planGet(projectId?: string, environment?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) {
|
|
1458
|
+
return PlanApiFp(this.configuration).planGet(projectId, environment, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
1510
1459
|
}
|
|
1511
|
-
};
|
|
1512
1460
|
|
|
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
1461
|
/**
|
|
1535
1462
|
*
|
|
1463
|
+
* @param {string} id
|
|
1536
1464
|
* @param {*} [options] Override http request option.
|
|
1537
1465
|
* @throws {RequiredError}
|
|
1538
1466
|
*/
|
|
1539
|
-
public
|
|
1540
|
-
return
|
|
1467
|
+
public planIdDelete(id: string, options?: RawAxiosRequestConfig) {
|
|
1468
|
+
return PlanApiFp(this.configuration).planIdDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
1541
1469
|
}
|
|
1542
|
-
}
|
|
1543
|
-
|
|
1544
1470
|
|
|
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
1471
|
/**
|
|
1699
1472
|
*
|
|
1700
|
-
* @param {string}
|
|
1701
|
-
* @param {
|
|
1702
|
-
* @param {number} [offset]
|
|
1473
|
+
* @param {string} id
|
|
1474
|
+
* @param {PlanPostRequest} planPostRequest
|
|
1703
1475
|
* @param {*} [options] Override http request option.
|
|
1704
1476
|
* @throws {RequiredError}
|
|
1705
1477
|
*/
|
|
1706
|
-
public
|
|
1707
|
-
return PlanApiFp(this.configuration).
|
|
1478
|
+
public planIdPut(id: string, planPostRequest: PlanPostRequest, options?: RawAxiosRequestConfig) {
|
|
1479
|
+
return PlanApiFp(this.configuration).planIdPut(id, planPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1708
1480
|
}
|
|
1709
1481
|
|
|
1710
1482
|
/**
|
|
1711
1483
|
*
|
|
1712
|
-
* @param {
|
|
1484
|
+
* @param {PlanPostRequest} planPostRequest
|
|
1713
1485
|
* @param {*} [options] Override http request option.
|
|
1714
1486
|
* @throws {RequiredError}
|
|
1715
1487
|
*/
|
|
1716
|
-
public planPost(
|
|
1717
|
-
return PlanApiFp(this.configuration).planPost(
|
|
1488
|
+
public planPost(planPostRequest: PlanPostRequest, options?: RawAxiosRequestConfig) {
|
|
1489
|
+
return PlanApiFp(this.configuration).planPost(planPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1718
1490
|
}
|
|
1719
1491
|
}
|
|
1720
1492
|
|