@quantcdn/quant-client 4.1.0 → 4.2.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/README.md +9 -13
- package/api.ts +5517 -2430
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +5052 -1488
- package/dist/api.js +494 -1397
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +5052 -1488
- package/dist/esm/api.js +487 -1371
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* QuantCDN API
|
|
5
5
|
* Unified API for QuantCDN Admin and QuantCloud Platform services
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 4.1
|
|
7
|
+
* The version of the OpenAPI document: 4.2.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -23,9 +23,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
import globalAxios from 'axios';
|
|
24
24
|
// Some imports not used depending on template conditions
|
|
25
25
|
// @ts-ignore
|
|
26
|
-
import { DUMMY_BASE_URL, assertParamExists,
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
29
|
+
export const ApplicationDatabaseRdsInstanceEngineEnum = {
|
|
30
|
+
Mysql: 'mysql',
|
|
31
|
+
Postgres: 'postgres'
|
|
32
|
+
};
|
|
33
|
+
export const ApplicationImageReferenceTypeEnum = {
|
|
34
|
+
Internal: 'internal',
|
|
35
|
+
External: 'external'
|
|
36
|
+
};
|
|
29
37
|
export const ChatInferenceRequestMessagesInnerRoleEnum = {
|
|
30
38
|
User: 'user',
|
|
31
39
|
Assistant: 'assistant',
|
|
@@ -75,6 +83,10 @@ export const CreateAISessionRequestInitialMessagesInnerRoleEnum = {
|
|
|
75
83
|
User: 'user',
|
|
76
84
|
Assistant: 'assistant'
|
|
77
85
|
};
|
|
86
|
+
export const CreateApplicationRequestDatabaseEngineEnum = {
|
|
87
|
+
Mysql: 'mysql',
|
|
88
|
+
Postgres: 'postgres'
|
|
89
|
+
};
|
|
78
90
|
export const CronRunRunTypeEnum = {
|
|
79
91
|
Exec: 'EXEC',
|
|
80
92
|
Cron: 'CRON'
|
|
@@ -134,14 +146,320 @@ export const ScalingPolicyMetricEnum = {
|
|
|
134
146
|
MemoryUtilization: 'MemoryUtilization',
|
|
135
147
|
Rps: 'RPS'
|
|
136
148
|
};
|
|
137
|
-
export const TestSearchExtractorsRequestTypeEnum = {
|
|
138
|
-
Url: 'url',
|
|
139
|
-
ContentType: 'content_type'
|
|
140
|
-
};
|
|
141
149
|
export const V1TransitionStateEnum = {
|
|
142
150
|
Published: 'published',
|
|
143
151
|
Unpublished: 'unpublished'
|
|
144
152
|
};
|
|
153
|
+
export const V2CrawlerModeEnum = {
|
|
154
|
+
Report: 'report',
|
|
155
|
+
Block: 'block'
|
|
156
|
+
};
|
|
157
|
+
export const V2CrawlerRequestModeEnum = {
|
|
158
|
+
Report: 'report',
|
|
159
|
+
Block: 'block'
|
|
160
|
+
};
|
|
161
|
+
export const V2CrawlerScheduleModeEnum = {
|
|
162
|
+
Report: 'report',
|
|
163
|
+
Block: 'block'
|
|
164
|
+
};
|
|
165
|
+
export const V2CrawlerScheduleRequestModeEnum = {
|
|
166
|
+
Report: 'report',
|
|
167
|
+
Block: 'block'
|
|
168
|
+
};
|
|
169
|
+
export const V2DomainModeEnum = {
|
|
170
|
+
Report: 'report',
|
|
171
|
+
Block: 'block'
|
|
172
|
+
};
|
|
173
|
+
export const V2DomainRequestModeEnum = {
|
|
174
|
+
Report: 'report',
|
|
175
|
+
Block: 'block'
|
|
176
|
+
};
|
|
177
|
+
export const V2OrganizationModeEnum = {
|
|
178
|
+
Report: 'report',
|
|
179
|
+
Block: 'block'
|
|
180
|
+
};
|
|
181
|
+
export const V2OrganizationRequestModeEnum = {
|
|
182
|
+
Report: 'report',
|
|
183
|
+
Block: 'block'
|
|
184
|
+
};
|
|
185
|
+
export const V2ProjectModeEnum = {
|
|
186
|
+
Report: 'report',
|
|
187
|
+
Block: 'block'
|
|
188
|
+
};
|
|
189
|
+
export const V2ProjectRequestModeEnum = {
|
|
190
|
+
Report: 'report',
|
|
191
|
+
Block: 'block'
|
|
192
|
+
};
|
|
193
|
+
export const V2RuleModeEnum = {
|
|
194
|
+
Report: 'report',
|
|
195
|
+
Block: 'block'
|
|
196
|
+
};
|
|
197
|
+
export const V2RuleAuthModeEnum = {
|
|
198
|
+
Report: 'report',
|
|
199
|
+
Block: 'block'
|
|
200
|
+
};
|
|
201
|
+
export const V2RuleAuthNotifyEnum = {
|
|
202
|
+
None: 'none',
|
|
203
|
+
Slack: 'slack'
|
|
204
|
+
};
|
|
205
|
+
export const V2RuleAuthActionModeEnum = {
|
|
206
|
+
Report: 'report',
|
|
207
|
+
Block: 'block'
|
|
208
|
+
};
|
|
209
|
+
export const V2RuleAuthActionNotifyEnum = {
|
|
210
|
+
None: 'none',
|
|
211
|
+
Slack: 'slack'
|
|
212
|
+
};
|
|
213
|
+
export const V2RuleAuthRequestModeEnum = {
|
|
214
|
+
Report: 'report',
|
|
215
|
+
Block: 'block'
|
|
216
|
+
};
|
|
217
|
+
export const V2RuleAuthRequestNotifyEnum = {
|
|
218
|
+
None: 'none',
|
|
219
|
+
Slack: 'slack'
|
|
220
|
+
};
|
|
221
|
+
export const V2RuleBotChallengeModeEnum = {
|
|
222
|
+
Report: 'report',
|
|
223
|
+
Block: 'block'
|
|
224
|
+
};
|
|
225
|
+
export const V2RuleBotChallengeNotifyEnum = {
|
|
226
|
+
None: 'none',
|
|
227
|
+
Slack: 'slack'
|
|
228
|
+
};
|
|
229
|
+
export const V2RuleBotChallengeActionModeEnum = {
|
|
230
|
+
Report: 'report',
|
|
231
|
+
Block: 'block'
|
|
232
|
+
};
|
|
233
|
+
export const V2RuleBotChallengeActionNotifyEnum = {
|
|
234
|
+
None: 'none',
|
|
235
|
+
Slack: 'slack'
|
|
236
|
+
};
|
|
237
|
+
export const V2RuleBotChallengeRequestModeEnum = {
|
|
238
|
+
Report: 'report',
|
|
239
|
+
Block: 'block'
|
|
240
|
+
};
|
|
241
|
+
export const V2RuleBotChallengeRequestNotifyEnum = {
|
|
242
|
+
None: 'none',
|
|
243
|
+
Slack: 'slack'
|
|
244
|
+
};
|
|
245
|
+
export const V2RuleContentFilterModeEnum = {
|
|
246
|
+
Report: 'report',
|
|
247
|
+
Block: 'block'
|
|
248
|
+
};
|
|
249
|
+
export const V2RuleContentFilterNotifyEnum = {
|
|
250
|
+
None: 'none',
|
|
251
|
+
Slack: 'slack'
|
|
252
|
+
};
|
|
253
|
+
export const V2RuleContentFilterActionModeEnum = {
|
|
254
|
+
Report: 'report',
|
|
255
|
+
Block: 'block'
|
|
256
|
+
};
|
|
257
|
+
export const V2RuleContentFilterActionNotifyEnum = {
|
|
258
|
+
None: 'none',
|
|
259
|
+
Slack: 'slack'
|
|
260
|
+
};
|
|
261
|
+
export const V2RuleContentFilterRequestModeEnum = {
|
|
262
|
+
Report: 'report',
|
|
263
|
+
Block: 'block'
|
|
264
|
+
};
|
|
265
|
+
export const V2RuleContentFilterRequestNotifyEnum = {
|
|
266
|
+
None: 'none',
|
|
267
|
+
Slack: 'slack'
|
|
268
|
+
};
|
|
269
|
+
export const V2RuleCustomResponseModeEnum = {
|
|
270
|
+
Report: 'report',
|
|
271
|
+
Block: 'block'
|
|
272
|
+
};
|
|
273
|
+
export const V2RuleCustomResponseNotifyEnum = {
|
|
274
|
+
None: 'none',
|
|
275
|
+
Slack: 'slack'
|
|
276
|
+
};
|
|
277
|
+
export const V2RuleCustomResponseActionModeEnum = {
|
|
278
|
+
Report: 'report',
|
|
279
|
+
Block: 'block'
|
|
280
|
+
};
|
|
281
|
+
export const V2RuleCustomResponseActionNotifyEnum = {
|
|
282
|
+
None: 'none',
|
|
283
|
+
Slack: 'slack'
|
|
284
|
+
};
|
|
285
|
+
export const V2RuleCustomResponseRequestModeEnum = {
|
|
286
|
+
Report: 'report',
|
|
287
|
+
Block: 'block'
|
|
288
|
+
};
|
|
289
|
+
export const V2RuleCustomResponseRequestNotifyEnum = {
|
|
290
|
+
None: 'none',
|
|
291
|
+
Slack: 'slack'
|
|
292
|
+
};
|
|
293
|
+
export const V2RuleFunctionModeEnum = {
|
|
294
|
+
Report: 'report',
|
|
295
|
+
Block: 'block'
|
|
296
|
+
};
|
|
297
|
+
export const V2RuleFunctionNotifyEnum = {
|
|
298
|
+
None: 'none',
|
|
299
|
+
Slack: 'slack'
|
|
300
|
+
};
|
|
301
|
+
export const V2RuleFunctionActionModeEnum = {
|
|
302
|
+
Report: 'report',
|
|
303
|
+
Block: 'block'
|
|
304
|
+
};
|
|
305
|
+
export const V2RuleFunctionActionNotifyEnum = {
|
|
306
|
+
None: 'none',
|
|
307
|
+
Slack: 'slack'
|
|
308
|
+
};
|
|
309
|
+
export const V2RuleFunctionRequestModeEnum = {
|
|
310
|
+
Report: 'report',
|
|
311
|
+
Block: 'block'
|
|
312
|
+
};
|
|
313
|
+
export const V2RuleFunctionRequestNotifyEnum = {
|
|
314
|
+
None: 'none',
|
|
315
|
+
Slack: 'slack'
|
|
316
|
+
};
|
|
317
|
+
export const V2RuleHeaderModeEnum = {
|
|
318
|
+
Report: 'report',
|
|
319
|
+
Block: 'block'
|
|
320
|
+
};
|
|
321
|
+
export const V2RuleHeaderNotifyEnum = {
|
|
322
|
+
None: 'none',
|
|
323
|
+
Slack: 'slack'
|
|
324
|
+
};
|
|
325
|
+
export const V2RuleHeaderActionModeEnum = {
|
|
326
|
+
Report: 'report',
|
|
327
|
+
Block: 'block'
|
|
328
|
+
};
|
|
329
|
+
export const V2RuleHeaderActionNotifyEnum = {
|
|
330
|
+
None: 'none',
|
|
331
|
+
Slack: 'slack'
|
|
332
|
+
};
|
|
333
|
+
export const V2RuleHeaderRequestModeEnum = {
|
|
334
|
+
Report: 'report',
|
|
335
|
+
Block: 'block'
|
|
336
|
+
};
|
|
337
|
+
export const V2RuleHeaderRequestNotifyEnum = {
|
|
338
|
+
None: 'none',
|
|
339
|
+
Slack: 'slack'
|
|
340
|
+
};
|
|
341
|
+
export const V2RuleProxyModeEnum = {
|
|
342
|
+
Report: 'report',
|
|
343
|
+
Block: 'block'
|
|
344
|
+
};
|
|
345
|
+
export const V2RuleProxyNotifyEnum = {
|
|
346
|
+
None: 'none',
|
|
347
|
+
Slack: 'slack'
|
|
348
|
+
};
|
|
349
|
+
export const V2RuleProxyActionModeEnum = {
|
|
350
|
+
Report: 'report',
|
|
351
|
+
Block: 'block'
|
|
352
|
+
};
|
|
353
|
+
export const V2RuleProxyActionNotifyEnum = {
|
|
354
|
+
None: 'none',
|
|
355
|
+
Slack: 'slack'
|
|
356
|
+
};
|
|
357
|
+
export const V2RuleProxyRequestModeEnum = {
|
|
358
|
+
Report: 'report',
|
|
359
|
+
Block: 'block'
|
|
360
|
+
};
|
|
361
|
+
export const V2RuleProxyRequestNotifyEnum = {
|
|
362
|
+
None: 'none',
|
|
363
|
+
Slack: 'slack'
|
|
364
|
+
};
|
|
365
|
+
export const V2RuleRedirectModeEnum = {
|
|
366
|
+
Report: 'report',
|
|
367
|
+
Block: 'block'
|
|
368
|
+
};
|
|
369
|
+
export const V2RuleRedirectNotifyEnum = {
|
|
370
|
+
None: 'none',
|
|
371
|
+
Slack: 'slack'
|
|
372
|
+
};
|
|
373
|
+
export const V2RuleRedirectActionModeEnum = {
|
|
374
|
+
Report: 'report',
|
|
375
|
+
Block: 'block'
|
|
376
|
+
};
|
|
377
|
+
export const V2RuleRedirectActionNotifyEnum = {
|
|
378
|
+
None: 'none',
|
|
379
|
+
Slack: 'slack'
|
|
380
|
+
};
|
|
381
|
+
export const V2RuleRedirectRequestModeEnum = {
|
|
382
|
+
Report: 'report',
|
|
383
|
+
Block: 'block'
|
|
384
|
+
};
|
|
385
|
+
export const V2RuleRedirectRequestNotifyEnum = {
|
|
386
|
+
None: 'none',
|
|
387
|
+
Slack: 'slack'
|
|
388
|
+
};
|
|
389
|
+
export const V2RuleRequestModeEnum = {
|
|
390
|
+
Report: 'report',
|
|
391
|
+
Block: 'block'
|
|
392
|
+
};
|
|
393
|
+
export const V2RuleServeStaticModeEnum = {
|
|
394
|
+
Report: 'report',
|
|
395
|
+
Block: 'block'
|
|
396
|
+
};
|
|
397
|
+
export const V2RuleServeStaticNotifyEnum = {
|
|
398
|
+
None: 'none',
|
|
399
|
+
Slack: 'slack'
|
|
400
|
+
};
|
|
401
|
+
export const V2RuleServeStaticActionModeEnum = {
|
|
402
|
+
Report: 'report',
|
|
403
|
+
Block: 'block'
|
|
404
|
+
};
|
|
405
|
+
export const V2RuleServeStaticActionNotifyEnum = {
|
|
406
|
+
None: 'none',
|
|
407
|
+
Slack: 'slack'
|
|
408
|
+
};
|
|
409
|
+
export const V2RuleServeStaticRequestModeEnum = {
|
|
410
|
+
Report: 'report',
|
|
411
|
+
Block: 'block'
|
|
412
|
+
};
|
|
413
|
+
export const V2RuleServeStaticRequestNotifyEnum = {
|
|
414
|
+
None: 'none',
|
|
415
|
+
Slack: 'slack'
|
|
416
|
+
};
|
|
417
|
+
export const V2SecretStoreModeEnum = {
|
|
418
|
+
Report: 'report',
|
|
419
|
+
Block: 'block'
|
|
420
|
+
};
|
|
421
|
+
export const V2SecretStoreRequestModeEnum = {
|
|
422
|
+
Report: 'report',
|
|
423
|
+
Block: 'block'
|
|
424
|
+
};
|
|
425
|
+
export const V2StoreModeEnum = {
|
|
426
|
+
Report: 'report',
|
|
427
|
+
Block: 'block'
|
|
428
|
+
};
|
|
429
|
+
export const V2StoreItemModeEnum = {
|
|
430
|
+
Report: 'report',
|
|
431
|
+
Block: 'block'
|
|
432
|
+
};
|
|
433
|
+
export const V2StoreItemRequestModeEnum = {
|
|
434
|
+
Report: 'report',
|
|
435
|
+
Block: 'block'
|
|
436
|
+
};
|
|
437
|
+
export const V2StoreItemUpdateRequestModeEnum = {
|
|
438
|
+
Report: 'report',
|
|
439
|
+
Block: 'block'
|
|
440
|
+
};
|
|
441
|
+
export const V2StoreItemsListResponseModeEnum = {
|
|
442
|
+
Report: 'report',
|
|
443
|
+
Block: 'block'
|
|
444
|
+
};
|
|
445
|
+
export const V2StoreRequestModeEnum = {
|
|
446
|
+
Report: 'report',
|
|
447
|
+
Block: 'block'
|
|
448
|
+
};
|
|
449
|
+
export const WafConfigModeEnum = {
|
|
450
|
+
Report: 'report',
|
|
451
|
+
Block: 'block'
|
|
452
|
+
};
|
|
453
|
+
export const WafConfigThresholdsInnerTypeEnum = {
|
|
454
|
+
Ip: 'ip',
|
|
455
|
+
Header: 'header',
|
|
456
|
+
WafHitByIp: 'waf_hit_by_ip'
|
|
457
|
+
};
|
|
458
|
+
export const WafConfigThresholdsInnerModeEnum = {
|
|
459
|
+
Disabled: 'disabled',
|
|
460
|
+
Report: 'report',
|
|
461
|
+
Block: 'block'
|
|
462
|
+
};
|
|
145
463
|
/**
|
|
146
464
|
* AIServicesApi - axios parameter creator
|
|
147
465
|
* @export
|
|
@@ -1135,15 +1453,15 @@ export const ApplicationsApiAxiosParamCreator = function (configuration) {
|
|
|
1135
1453
|
*
|
|
1136
1454
|
* @summary Create a new application
|
|
1137
1455
|
* @param {string} organisation The organisation ID
|
|
1138
|
-
* @param {
|
|
1456
|
+
* @param {CreateApplicationRequest} createApplicationRequest
|
|
1139
1457
|
* @param {*} [options] Override http request option.
|
|
1140
1458
|
* @throws {RequiredError}
|
|
1141
1459
|
*/
|
|
1142
|
-
createApplication: (organisation,
|
|
1460
|
+
createApplication: (organisation, createApplicationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1143
1461
|
// verify required parameter 'organisation' is not null or undefined
|
|
1144
1462
|
assertParamExists('createApplication', 'organisation', organisation);
|
|
1145
|
-
// verify required parameter '
|
|
1146
|
-
assertParamExists('createApplication', '
|
|
1463
|
+
// verify required parameter 'createApplicationRequest' is not null or undefined
|
|
1464
|
+
assertParamExists('createApplication', 'createApplicationRequest', createApplicationRequest);
|
|
1147
1465
|
const localVarPath = `/api/v3/organizations/{organisation}/applications`
|
|
1148
1466
|
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
1149
1467
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1162,7 +1480,7 @@ export const ApplicationsApiAxiosParamCreator = function (configuration) {
|
|
|
1162
1480
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1163
1481
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1164
1482
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1165
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1483
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createApplicationRequest, localVarRequestOptions, configuration);
|
|
1166
1484
|
return {
|
|
1167
1485
|
url: toPathString(localVarUrlObj),
|
|
1168
1486
|
options: localVarRequestOptions,
|
|
@@ -1317,14 +1635,14 @@ export const ApplicationsApiFp = function (configuration) {
|
|
|
1317
1635
|
*
|
|
1318
1636
|
* @summary Create a new application
|
|
1319
1637
|
* @param {string} organisation The organisation ID
|
|
1320
|
-
* @param {
|
|
1638
|
+
* @param {CreateApplicationRequest} createApplicationRequest
|
|
1321
1639
|
* @param {*} [options] Override http request option.
|
|
1322
1640
|
* @throws {RequiredError}
|
|
1323
1641
|
*/
|
|
1324
|
-
createApplication(organisation,
|
|
1642
|
+
createApplication(organisation, createApplicationRequest, options) {
|
|
1325
1643
|
var _a, _b, _c;
|
|
1326
1644
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1327
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createApplication(organisation,
|
|
1645
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createApplication(organisation, createApplicationRequest, options);
|
|
1328
1646
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1329
1647
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApplicationsApi.createApplication']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1330
1648
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1409,12 +1727,12 @@ export const ApplicationsApiFactory = function (configuration, basePath, axios)
|
|
|
1409
1727
|
*
|
|
1410
1728
|
* @summary Create a new application
|
|
1411
1729
|
* @param {string} organisation The organisation ID
|
|
1412
|
-
* @param {
|
|
1730
|
+
* @param {CreateApplicationRequest} createApplicationRequest
|
|
1413
1731
|
* @param {*} [options] Override http request option.
|
|
1414
1732
|
* @throws {RequiredError}
|
|
1415
1733
|
*/
|
|
1416
|
-
createApplication(organisation,
|
|
1417
|
-
return localVarFp.createApplication(organisation,
|
|
1734
|
+
createApplication(organisation, createApplicationRequest, options) {
|
|
1735
|
+
return localVarFp.createApplication(organisation, createApplicationRequest, options).then((request) => request(axios, basePath));
|
|
1418
1736
|
},
|
|
1419
1737
|
/**
|
|
1420
1738
|
*
|
|
@@ -1471,13 +1789,13 @@ export class ApplicationsApi extends BaseAPI {
|
|
|
1471
1789
|
*
|
|
1472
1790
|
* @summary Create a new application
|
|
1473
1791
|
* @param {string} organisation The organisation ID
|
|
1474
|
-
* @param {
|
|
1792
|
+
* @param {CreateApplicationRequest} createApplicationRequest
|
|
1475
1793
|
* @param {*} [options] Override http request option.
|
|
1476
1794
|
* @throws {RequiredError}
|
|
1477
1795
|
* @memberof ApplicationsApi
|
|
1478
1796
|
*/
|
|
1479
|
-
createApplication(organisation,
|
|
1480
|
-
return ApplicationsApiFp(this.configuration).createApplication(organisation,
|
|
1797
|
+
createApplication(organisation, createApplicationRequest, options) {
|
|
1798
|
+
return ApplicationsApiFp(this.configuration).createApplication(organisation, createApplicationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1481
1799
|
}
|
|
1482
1800
|
/**
|
|
1483
1801
|
*
|
|
@@ -5755,114 +6073,6 @@ export const SyncToEnvironmentTypeEnum = {
|
|
|
5755
6073
|
Database: 'database',
|
|
5756
6074
|
Filesystem: 'filesystem'
|
|
5757
6075
|
};
|
|
5758
|
-
/**
|
|
5759
|
-
* FormsApi - axios parameter creator
|
|
5760
|
-
* @export
|
|
5761
|
-
*/
|
|
5762
|
-
export const FormsApiAxiosParamCreator = function (configuration) {
|
|
5763
|
-
return {
|
|
5764
|
-
/**
|
|
5765
|
-
* Retrieve form submissions via API.
|
|
5766
|
-
* @summary List form submissions
|
|
5767
|
-
* @param {string} [quantUrl]
|
|
5768
|
-
* @param {object} [body]
|
|
5769
|
-
* @param {*} [options] Override http request option.
|
|
5770
|
-
* @throws {RequiredError}
|
|
5771
|
-
*/
|
|
5772
|
-
listFormSubmissions: (quantUrl, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5773
|
-
const localVarPath = `/api/v1/form-submissions`;
|
|
5774
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5775
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5776
|
-
let baseOptions;
|
|
5777
|
-
if (configuration) {
|
|
5778
|
-
baseOptions = configuration.baseOptions;
|
|
5779
|
-
}
|
|
5780
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5781
|
-
const localVarHeaderParameter = {};
|
|
5782
|
-
const localVarQueryParameter = {};
|
|
5783
|
-
// authentication headerAuth required
|
|
5784
|
-
yield setApiKeyToObject(localVarHeaderParameter, "Quant-Token", configuration);
|
|
5785
|
-
if (quantUrl !== undefined) {
|
|
5786
|
-
localVarQueryParameter['quant_url'] = quantUrl;
|
|
5787
|
-
}
|
|
5788
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5789
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5790
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5791
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5792
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
5793
|
-
return {
|
|
5794
|
-
url: toPathString(localVarUrlObj),
|
|
5795
|
-
options: localVarRequestOptions,
|
|
5796
|
-
};
|
|
5797
|
-
}),
|
|
5798
|
-
};
|
|
5799
|
-
};
|
|
5800
|
-
/**
|
|
5801
|
-
* FormsApi - functional programming interface
|
|
5802
|
-
* @export
|
|
5803
|
-
*/
|
|
5804
|
-
export const FormsApiFp = function (configuration) {
|
|
5805
|
-
const localVarAxiosParamCreator = FormsApiAxiosParamCreator(configuration);
|
|
5806
|
-
return {
|
|
5807
|
-
/**
|
|
5808
|
-
* Retrieve form submissions via API.
|
|
5809
|
-
* @summary List form submissions
|
|
5810
|
-
* @param {string} [quantUrl]
|
|
5811
|
-
* @param {object} [body]
|
|
5812
|
-
* @param {*} [options] Override http request option.
|
|
5813
|
-
* @throws {RequiredError}
|
|
5814
|
-
*/
|
|
5815
|
-
listFormSubmissions(quantUrl, body, options) {
|
|
5816
|
-
var _a, _b, _c;
|
|
5817
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5818
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listFormSubmissions(quantUrl, body, options);
|
|
5819
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5820
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FormsApi.listFormSubmissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5821
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5822
|
-
});
|
|
5823
|
-
},
|
|
5824
|
-
};
|
|
5825
|
-
};
|
|
5826
|
-
/**
|
|
5827
|
-
* FormsApi - factory interface
|
|
5828
|
-
* @export
|
|
5829
|
-
*/
|
|
5830
|
-
export const FormsApiFactory = function (configuration, basePath, axios) {
|
|
5831
|
-
const localVarFp = FormsApiFp(configuration);
|
|
5832
|
-
return {
|
|
5833
|
-
/**
|
|
5834
|
-
* Retrieve form submissions via API.
|
|
5835
|
-
* @summary List form submissions
|
|
5836
|
-
* @param {string} [quantUrl]
|
|
5837
|
-
* @param {object} [body]
|
|
5838
|
-
* @param {*} [options] Override http request option.
|
|
5839
|
-
* @throws {RequiredError}
|
|
5840
|
-
*/
|
|
5841
|
-
listFormSubmissions(quantUrl, body, options) {
|
|
5842
|
-
return localVarFp.listFormSubmissions(quantUrl, body, options).then((request) => request(axios, basePath));
|
|
5843
|
-
},
|
|
5844
|
-
};
|
|
5845
|
-
};
|
|
5846
|
-
/**
|
|
5847
|
-
* FormsApi - object-oriented interface
|
|
5848
|
-
* @export
|
|
5849
|
-
* @class FormsApi
|
|
5850
|
-
* @extends {BaseAPI}
|
|
5851
|
-
*/
|
|
5852
|
-
export class FormsApi extends BaseAPI {
|
|
5853
|
-
/**
|
|
5854
|
-
* Retrieve form submissions via API.
|
|
5855
|
-
* @summary List form submissions
|
|
5856
|
-
* @param {string} [quantUrl]
|
|
5857
|
-
* @param {object} [body]
|
|
5858
|
-
* @param {*} [options] Override http request option.
|
|
5859
|
-
* @throws {RequiredError}
|
|
5860
|
-
* @memberof FormsApi
|
|
5861
|
-
*/
|
|
5862
|
-
listFormSubmissions(quantUrl, body, options) {
|
|
5863
|
-
return FormsApiFp(this.configuration).listFormSubmissions(quantUrl, body, options).then((request) => request(this.axios, this.basePath));
|
|
5864
|
-
}
|
|
5865
|
-
}
|
|
5866
6076
|
/**
|
|
5867
6077
|
* HeadersApi - axios parameter creator
|
|
5868
6078
|
* @export
|
|
@@ -6975,22 +7185,19 @@ export class KVApi extends BaseAPI {
|
|
|
6975
7185
|
}
|
|
6976
7186
|
}
|
|
6977
7187
|
/**
|
|
6978
|
-
*
|
|
7188
|
+
* OrganizationsApi - axios parameter creator
|
|
6979
7189
|
* @export
|
|
6980
7190
|
*/
|
|
6981
|
-
export const
|
|
7191
|
+
export const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
6982
7192
|
return {
|
|
6983
7193
|
/**
|
|
6984
|
-
*
|
|
6985
|
-
* @summary
|
|
6986
|
-
* @param {GetMetricSeriesTypeEnum} [type]
|
|
6987
|
-
* @param {string} [metric]
|
|
6988
|
-
* @param {number} [domain]
|
|
7194
|
+
*
|
|
7195
|
+
* @summary Retrieve all organizations
|
|
6989
7196
|
* @param {*} [options] Override http request option.
|
|
6990
7197
|
* @throws {RequiredError}
|
|
6991
7198
|
*/
|
|
6992
|
-
|
|
6993
|
-
const localVarPath = `/api/
|
|
7199
|
+
organizationsList: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7200
|
+
const localVarPath = `/api/v2/organizations`;
|
|
6994
7201
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6995
7202
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6996
7203
|
let baseOptions;
|
|
@@ -7000,17 +7207,9 @@ export const MetricsApiAxiosParamCreator = function (configuration) {
|
|
|
7000
7207
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7001
7208
|
const localVarHeaderParameter = {};
|
|
7002
7209
|
const localVarQueryParameter = {};
|
|
7003
|
-
// authentication
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
localVarQueryParameter['type'] = type;
|
|
7007
|
-
}
|
|
7008
|
-
if (metric !== undefined) {
|
|
7009
|
-
localVarQueryParameter['metric'] = metric;
|
|
7010
|
-
}
|
|
7011
|
-
if (domain !== undefined) {
|
|
7012
|
-
localVarQueryParameter['domain'] = domain;
|
|
7013
|
-
}
|
|
7210
|
+
// authentication BearerAuth required
|
|
7211
|
+
// http bearer authentication required
|
|
7212
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7014
7213
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7015
7214
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7016
7215
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7020,16 +7219,17 @@ export const MetricsApiAxiosParamCreator = function (configuration) {
|
|
|
7020
7219
|
};
|
|
7021
7220
|
}),
|
|
7022
7221
|
/**
|
|
7023
|
-
*
|
|
7024
|
-
* @summary Get
|
|
7025
|
-
* @param {
|
|
7026
|
-
* @param {GetMetricsTimeframeEnum} [timeframe]
|
|
7027
|
-
* @param {GetMetricsMetricsParameter} [metrics] Metric name or list of metric names
|
|
7222
|
+
*
|
|
7223
|
+
* @summary Get details of a single organization
|
|
7224
|
+
* @param {string} organization
|
|
7028
7225
|
* @param {*} [options] Override http request option.
|
|
7029
7226
|
* @throws {RequiredError}
|
|
7030
7227
|
*/
|
|
7031
|
-
|
|
7032
|
-
|
|
7228
|
+
organizationsRead: (organization, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7229
|
+
// verify required parameter 'organization' is not null or undefined
|
|
7230
|
+
assertParamExists('organizationsRead', 'organization', organization);
|
|
7231
|
+
const localVarPath = `/api/v2/organizations/{organization}`
|
|
7232
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)));
|
|
7033
7233
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7034
7234
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7035
7235
|
let baseOptions;
|
|
@@ -7039,19 +7239,9 @@ export const MetricsApiAxiosParamCreator = function (configuration) {
|
|
|
7039
7239
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7040
7240
|
const localVarHeaderParameter = {};
|
|
7041
7241
|
const localVarQueryParameter = {};
|
|
7042
|
-
// authentication
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
localVarQueryParameter['domain'] = domain;
|
|
7046
|
-
}
|
|
7047
|
-
if (timeframe !== undefined) {
|
|
7048
|
-
localVarQueryParameter['timeframe'] = timeframe;
|
|
7049
|
-
}
|
|
7050
|
-
if (metrics !== undefined) {
|
|
7051
|
-
for (const [key, value] of Object.entries(metrics)) {
|
|
7052
|
-
localVarQueryParameter[key] = value;
|
|
7053
|
-
}
|
|
7054
|
-
}
|
|
7242
|
+
// authentication BearerAuth required
|
|
7243
|
+
// http bearer authentication required
|
|
7244
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7055
7245
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7056
7246
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7057
7247
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7063,162 +7253,140 @@ export const MetricsApiAxiosParamCreator = function (configuration) {
|
|
|
7063
7253
|
};
|
|
7064
7254
|
};
|
|
7065
7255
|
/**
|
|
7066
|
-
*
|
|
7256
|
+
* OrganizationsApi - functional programming interface
|
|
7067
7257
|
* @export
|
|
7068
7258
|
*/
|
|
7069
|
-
export const
|
|
7070
|
-
const localVarAxiosParamCreator =
|
|
7259
|
+
export const OrganizationsApiFp = function (configuration) {
|
|
7260
|
+
const localVarAxiosParamCreator = OrganizationsApiAxiosParamCreator(configuration);
|
|
7071
7261
|
return {
|
|
7072
7262
|
/**
|
|
7073
|
-
*
|
|
7074
|
-
* @summary
|
|
7075
|
-
* @param {GetMetricSeriesTypeEnum} [type]
|
|
7076
|
-
* @param {string} [metric]
|
|
7077
|
-
* @param {number} [domain]
|
|
7263
|
+
*
|
|
7264
|
+
* @summary Retrieve all organizations
|
|
7078
7265
|
* @param {*} [options] Override http request option.
|
|
7079
7266
|
* @throws {RequiredError}
|
|
7080
7267
|
*/
|
|
7081
|
-
|
|
7268
|
+
organizationsList(options) {
|
|
7082
7269
|
var _a, _b, _c;
|
|
7083
7270
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7084
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
7271
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.organizationsList(options);
|
|
7085
7272
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7086
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
7273
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.organizationsList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7087
7274
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7088
7275
|
});
|
|
7089
7276
|
},
|
|
7090
7277
|
/**
|
|
7091
|
-
*
|
|
7092
|
-
* @summary Get
|
|
7093
|
-
* @param {
|
|
7094
|
-
* @param {GetMetricsTimeframeEnum} [timeframe]
|
|
7095
|
-
* @param {GetMetricsMetricsParameter} [metrics] Metric name or list of metric names
|
|
7278
|
+
*
|
|
7279
|
+
* @summary Get details of a single organization
|
|
7280
|
+
* @param {string} organization
|
|
7096
7281
|
* @param {*} [options] Override http request option.
|
|
7097
7282
|
* @throws {RequiredError}
|
|
7098
7283
|
*/
|
|
7099
|
-
|
|
7284
|
+
organizationsRead(organization, options) {
|
|
7100
7285
|
var _a, _b, _c;
|
|
7101
7286
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7102
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
7287
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.organizationsRead(organization, options);
|
|
7103
7288
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7104
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
7289
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.organizationsRead']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7105
7290
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7106
7291
|
});
|
|
7107
7292
|
},
|
|
7108
7293
|
};
|
|
7109
7294
|
};
|
|
7110
7295
|
/**
|
|
7111
|
-
*
|
|
7296
|
+
* OrganizationsApi - factory interface
|
|
7112
7297
|
* @export
|
|
7113
7298
|
*/
|
|
7114
|
-
export const
|
|
7115
|
-
const localVarFp =
|
|
7299
|
+
export const OrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
7300
|
+
const localVarFp = OrganizationsApiFp(configuration);
|
|
7116
7301
|
return {
|
|
7117
7302
|
/**
|
|
7118
|
-
*
|
|
7119
|
-
* @summary
|
|
7120
|
-
* @param {GetMetricSeriesTypeEnum} [type]
|
|
7121
|
-
* @param {string} [metric]
|
|
7122
|
-
* @param {number} [domain]
|
|
7303
|
+
*
|
|
7304
|
+
* @summary Retrieve all organizations
|
|
7123
7305
|
* @param {*} [options] Override http request option.
|
|
7124
7306
|
* @throws {RequiredError}
|
|
7125
7307
|
*/
|
|
7126
|
-
|
|
7127
|
-
return localVarFp.
|
|
7308
|
+
organizationsList(options) {
|
|
7309
|
+
return localVarFp.organizationsList(options).then((request) => request(axios, basePath));
|
|
7128
7310
|
},
|
|
7129
7311
|
/**
|
|
7130
|
-
*
|
|
7131
|
-
* @summary Get
|
|
7132
|
-
* @param {
|
|
7133
|
-
* @param {GetMetricsTimeframeEnum} [timeframe]
|
|
7134
|
-
* @param {GetMetricsMetricsParameter} [metrics] Metric name or list of metric names
|
|
7312
|
+
*
|
|
7313
|
+
* @summary Get details of a single organization
|
|
7314
|
+
* @param {string} organization
|
|
7135
7315
|
* @param {*} [options] Override http request option.
|
|
7136
7316
|
* @throws {RequiredError}
|
|
7137
7317
|
*/
|
|
7138
|
-
|
|
7139
|
-
return localVarFp.
|
|
7318
|
+
organizationsRead(organization, options) {
|
|
7319
|
+
return localVarFp.organizationsRead(organization, options).then((request) => request(axios, basePath));
|
|
7140
7320
|
},
|
|
7141
7321
|
};
|
|
7142
7322
|
};
|
|
7143
7323
|
/**
|
|
7144
|
-
*
|
|
7324
|
+
* OrganizationsApi - object-oriented interface
|
|
7145
7325
|
* @export
|
|
7146
|
-
* @class
|
|
7326
|
+
* @class OrganizationsApi
|
|
7147
7327
|
* @extends {BaseAPI}
|
|
7148
7328
|
*/
|
|
7149
|
-
export class
|
|
7329
|
+
export class OrganizationsApi extends BaseAPI {
|
|
7150
7330
|
/**
|
|
7151
|
-
*
|
|
7152
|
-
* @summary
|
|
7153
|
-
* @param {GetMetricSeriesTypeEnum} [type]
|
|
7154
|
-
* @param {string} [metric]
|
|
7155
|
-
* @param {number} [domain]
|
|
7331
|
+
*
|
|
7332
|
+
* @summary Retrieve all organizations
|
|
7156
7333
|
* @param {*} [options] Override http request option.
|
|
7157
7334
|
* @throws {RequiredError}
|
|
7158
|
-
* @memberof
|
|
7335
|
+
* @memberof OrganizationsApi
|
|
7159
7336
|
*/
|
|
7160
|
-
|
|
7161
|
-
return
|
|
7337
|
+
organizationsList(options) {
|
|
7338
|
+
return OrganizationsApiFp(this.configuration).organizationsList(options).then((request) => request(this.axios, this.basePath));
|
|
7162
7339
|
}
|
|
7163
7340
|
/**
|
|
7164
|
-
*
|
|
7165
|
-
* @summary Get
|
|
7166
|
-
* @param {
|
|
7167
|
-
* @param {GetMetricsTimeframeEnum} [timeframe]
|
|
7168
|
-
* @param {GetMetricsMetricsParameter} [metrics] Metric name or list of metric names
|
|
7341
|
+
*
|
|
7342
|
+
* @summary Get details of a single organization
|
|
7343
|
+
* @param {string} organization
|
|
7169
7344
|
* @param {*} [options] Override http request option.
|
|
7170
7345
|
* @throws {RequiredError}
|
|
7171
|
-
* @memberof
|
|
7346
|
+
* @memberof OrganizationsApi
|
|
7172
7347
|
*/
|
|
7173
|
-
|
|
7174
|
-
return
|
|
7348
|
+
organizationsRead(organization, options) {
|
|
7349
|
+
return OrganizationsApiFp(this.configuration).organizationsRead(organization, options).then((request) => request(this.axios, this.basePath));
|
|
7175
7350
|
}
|
|
7176
7351
|
}
|
|
7177
7352
|
/**
|
|
7353
|
+
* ProjectsApi - axios parameter creator
|
|
7178
7354
|
* @export
|
|
7179
7355
|
*/
|
|
7180
|
-
export const
|
|
7181
|
-
Minute: 'minute',
|
|
7182
|
-
Month: 'month',
|
|
7183
|
-
Year: 'year'
|
|
7184
|
-
};
|
|
7185
|
-
/**
|
|
7186
|
-
* @export
|
|
7187
|
-
*/
|
|
7188
|
-
export const GetMetricsTimeframeEnum = {
|
|
7189
|
-
Hour: 'hour',
|
|
7190
|
-
Month: 'month',
|
|
7191
|
-
Year: 'year'
|
|
7192
|
-
};
|
|
7193
|
-
/**
|
|
7194
|
-
* OrganizationsApi - axios parameter creator
|
|
7195
|
-
* @export
|
|
7196
|
-
*/
|
|
7197
|
-
export const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
7356
|
+
export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
7198
7357
|
return {
|
|
7199
7358
|
/**
|
|
7200
7359
|
*
|
|
7201
|
-
* @summary
|
|
7360
|
+
* @summary Create a new project
|
|
7361
|
+
* @param {string} organization
|
|
7362
|
+
* @param {V2ProjectRequest} v2ProjectRequest
|
|
7202
7363
|
* @param {*} [options] Override http request option.
|
|
7203
7364
|
* @throws {RequiredError}
|
|
7204
7365
|
*/
|
|
7205
|
-
|
|
7206
|
-
|
|
7366
|
+
projectsCreate: (organization, v2ProjectRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7367
|
+
// verify required parameter 'organization' is not null or undefined
|
|
7368
|
+
assertParamExists('projectsCreate', 'organization', organization);
|
|
7369
|
+
// verify required parameter 'v2ProjectRequest' is not null or undefined
|
|
7370
|
+
assertParamExists('projectsCreate', 'v2ProjectRequest', v2ProjectRequest);
|
|
7371
|
+
const localVarPath = `/api/v2/organizations/{organization}/projects`
|
|
7372
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)));
|
|
7207
7373
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7208
7374
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7209
7375
|
let baseOptions;
|
|
7210
7376
|
if (configuration) {
|
|
7211
7377
|
baseOptions = configuration.baseOptions;
|
|
7212
7378
|
}
|
|
7213
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
7379
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7214
7380
|
const localVarHeaderParameter = {};
|
|
7215
7381
|
const localVarQueryParameter = {};
|
|
7216
7382
|
// authentication BearerAuth required
|
|
7217
7383
|
// http bearer authentication required
|
|
7218
7384
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7385
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7219
7386
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7220
7387
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7221
7388
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7389
|
+
localVarRequestOptions.data = serializeDataIfNeeded(v2ProjectRequest, localVarRequestOptions, configuration);
|
|
7222
7390
|
return {
|
|
7223
7391
|
url: toPathString(localVarUrlObj),
|
|
7224
7392
|
options: localVarRequestOptions,
|
|
@@ -7226,187 +7394,13 @@ export const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
7226
7394
|
}),
|
|
7227
7395
|
/**
|
|
7228
7396
|
*
|
|
7229
|
-
* @summary
|
|
7397
|
+
* @summary Delete a project
|
|
7230
7398
|
* @param {string} organization
|
|
7399
|
+
* @param {string} project
|
|
7231
7400
|
* @param {*} [options] Override http request option.
|
|
7232
7401
|
* @throws {RequiredError}
|
|
7233
7402
|
*/
|
|
7234
|
-
|
|
7235
|
-
// verify required parameter 'organization' is not null or undefined
|
|
7236
|
-
assertParamExists('organizationsRead', 'organization', organization);
|
|
7237
|
-
const localVarPath = `/api/v2/organizations/{organization}`
|
|
7238
|
-
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)));
|
|
7239
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7240
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7241
|
-
let baseOptions;
|
|
7242
|
-
if (configuration) {
|
|
7243
|
-
baseOptions = configuration.baseOptions;
|
|
7244
|
-
}
|
|
7245
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7246
|
-
const localVarHeaderParameter = {};
|
|
7247
|
-
const localVarQueryParameter = {};
|
|
7248
|
-
// authentication BearerAuth required
|
|
7249
|
-
// http bearer authentication required
|
|
7250
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7251
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7252
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7253
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7254
|
-
return {
|
|
7255
|
-
url: toPathString(localVarUrlObj),
|
|
7256
|
-
options: localVarRequestOptions,
|
|
7257
|
-
};
|
|
7258
|
-
}),
|
|
7259
|
-
};
|
|
7260
|
-
};
|
|
7261
|
-
/**
|
|
7262
|
-
* OrganizationsApi - functional programming interface
|
|
7263
|
-
* @export
|
|
7264
|
-
*/
|
|
7265
|
-
export const OrganizationsApiFp = function (configuration) {
|
|
7266
|
-
const localVarAxiosParamCreator = OrganizationsApiAxiosParamCreator(configuration);
|
|
7267
|
-
return {
|
|
7268
|
-
/**
|
|
7269
|
-
*
|
|
7270
|
-
* @summary Retrieve all organizations
|
|
7271
|
-
* @param {*} [options] Override http request option.
|
|
7272
|
-
* @throws {RequiredError}
|
|
7273
|
-
*/
|
|
7274
|
-
organizationsList(options) {
|
|
7275
|
-
var _a, _b, _c;
|
|
7276
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7277
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.organizationsList(options);
|
|
7278
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7279
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.organizationsList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7280
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7281
|
-
});
|
|
7282
|
-
},
|
|
7283
|
-
/**
|
|
7284
|
-
*
|
|
7285
|
-
* @summary Get details of a single organization
|
|
7286
|
-
* @param {string} organization
|
|
7287
|
-
* @param {*} [options] Override http request option.
|
|
7288
|
-
* @throws {RequiredError}
|
|
7289
|
-
*/
|
|
7290
|
-
organizationsRead(organization, options) {
|
|
7291
|
-
var _a, _b, _c;
|
|
7292
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7293
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.organizationsRead(organization, options);
|
|
7294
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7295
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.organizationsRead']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7296
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7297
|
-
});
|
|
7298
|
-
},
|
|
7299
|
-
};
|
|
7300
|
-
};
|
|
7301
|
-
/**
|
|
7302
|
-
* OrganizationsApi - factory interface
|
|
7303
|
-
* @export
|
|
7304
|
-
*/
|
|
7305
|
-
export const OrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
7306
|
-
const localVarFp = OrganizationsApiFp(configuration);
|
|
7307
|
-
return {
|
|
7308
|
-
/**
|
|
7309
|
-
*
|
|
7310
|
-
* @summary Retrieve all organizations
|
|
7311
|
-
* @param {*} [options] Override http request option.
|
|
7312
|
-
* @throws {RequiredError}
|
|
7313
|
-
*/
|
|
7314
|
-
organizationsList(options) {
|
|
7315
|
-
return localVarFp.organizationsList(options).then((request) => request(axios, basePath));
|
|
7316
|
-
},
|
|
7317
|
-
/**
|
|
7318
|
-
*
|
|
7319
|
-
* @summary Get details of a single organization
|
|
7320
|
-
* @param {string} organization
|
|
7321
|
-
* @param {*} [options] Override http request option.
|
|
7322
|
-
* @throws {RequiredError}
|
|
7323
|
-
*/
|
|
7324
|
-
organizationsRead(organization, options) {
|
|
7325
|
-
return localVarFp.organizationsRead(organization, options).then((request) => request(axios, basePath));
|
|
7326
|
-
},
|
|
7327
|
-
};
|
|
7328
|
-
};
|
|
7329
|
-
/**
|
|
7330
|
-
* OrganizationsApi - object-oriented interface
|
|
7331
|
-
* @export
|
|
7332
|
-
* @class OrganizationsApi
|
|
7333
|
-
* @extends {BaseAPI}
|
|
7334
|
-
*/
|
|
7335
|
-
export class OrganizationsApi extends BaseAPI {
|
|
7336
|
-
/**
|
|
7337
|
-
*
|
|
7338
|
-
* @summary Retrieve all organizations
|
|
7339
|
-
* @param {*} [options] Override http request option.
|
|
7340
|
-
* @throws {RequiredError}
|
|
7341
|
-
* @memberof OrganizationsApi
|
|
7342
|
-
*/
|
|
7343
|
-
organizationsList(options) {
|
|
7344
|
-
return OrganizationsApiFp(this.configuration).organizationsList(options).then((request) => request(this.axios, this.basePath));
|
|
7345
|
-
}
|
|
7346
|
-
/**
|
|
7347
|
-
*
|
|
7348
|
-
* @summary Get details of a single organization
|
|
7349
|
-
* @param {string} organization
|
|
7350
|
-
* @param {*} [options] Override http request option.
|
|
7351
|
-
* @throws {RequiredError}
|
|
7352
|
-
* @memberof OrganizationsApi
|
|
7353
|
-
*/
|
|
7354
|
-
organizationsRead(organization, options) {
|
|
7355
|
-
return OrganizationsApiFp(this.configuration).organizationsRead(organization, options).then((request) => request(this.axios, this.basePath));
|
|
7356
|
-
}
|
|
7357
|
-
}
|
|
7358
|
-
/**
|
|
7359
|
-
* ProjectsApi - axios parameter creator
|
|
7360
|
-
* @export
|
|
7361
|
-
*/
|
|
7362
|
-
export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
7363
|
-
return {
|
|
7364
|
-
/**
|
|
7365
|
-
*
|
|
7366
|
-
* @summary Create a new project
|
|
7367
|
-
* @param {string} organization
|
|
7368
|
-
* @param {V2ProjectRequest} v2ProjectRequest
|
|
7369
|
-
* @param {*} [options] Override http request option.
|
|
7370
|
-
* @throws {RequiredError}
|
|
7371
|
-
*/
|
|
7372
|
-
projectsCreate: (organization, v2ProjectRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7373
|
-
// verify required parameter 'organization' is not null or undefined
|
|
7374
|
-
assertParamExists('projectsCreate', 'organization', organization);
|
|
7375
|
-
// verify required parameter 'v2ProjectRequest' is not null or undefined
|
|
7376
|
-
assertParamExists('projectsCreate', 'v2ProjectRequest', v2ProjectRequest);
|
|
7377
|
-
const localVarPath = `/api/v2/organizations/{organization}/projects`
|
|
7378
|
-
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)));
|
|
7379
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7380
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7381
|
-
let baseOptions;
|
|
7382
|
-
if (configuration) {
|
|
7383
|
-
baseOptions = configuration.baseOptions;
|
|
7384
|
-
}
|
|
7385
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7386
|
-
const localVarHeaderParameter = {};
|
|
7387
|
-
const localVarQueryParameter = {};
|
|
7388
|
-
// authentication BearerAuth required
|
|
7389
|
-
// http bearer authentication required
|
|
7390
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7391
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7392
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7393
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7394
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7395
|
-
localVarRequestOptions.data = serializeDataIfNeeded(v2ProjectRequest, localVarRequestOptions, configuration);
|
|
7396
|
-
return {
|
|
7397
|
-
url: toPathString(localVarUrlObj),
|
|
7398
|
-
options: localVarRequestOptions,
|
|
7399
|
-
};
|
|
7400
|
-
}),
|
|
7401
|
-
/**
|
|
7402
|
-
*
|
|
7403
|
-
* @summary Delete a project
|
|
7404
|
-
* @param {string} organization
|
|
7405
|
-
* @param {string} project
|
|
7406
|
-
* @param {*} [options] Override http request option.
|
|
7407
|
-
* @throws {RequiredError}
|
|
7408
|
-
*/
|
|
7409
|
-
projectsDelete: (organization, project, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7403
|
+
projectsDelete: (organization, project, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7410
7404
|
// verify required parameter 'organization' is not null or undefined
|
|
7411
7405
|
assertParamExists('projectsDelete', 'organization', organization);
|
|
7412
7406
|
// verify required parameter 'project' is not null or undefined
|
|
@@ -12101,38 +12095,51 @@ export class ScalingPolicyApi extends BaseAPI {
|
|
|
12101
12095
|
}
|
|
12102
12096
|
}
|
|
12103
12097
|
/**
|
|
12104
|
-
*
|
|
12098
|
+
* VariablesApi - axios parameter creator
|
|
12105
12099
|
* @export
|
|
12106
12100
|
*/
|
|
12107
|
-
export const
|
|
12101
|
+
export const VariablesApiAxiosParamCreator = function (configuration) {
|
|
12108
12102
|
return {
|
|
12109
12103
|
/**
|
|
12110
12104
|
*
|
|
12111
|
-
* @summary
|
|
12112
|
-
* @param {
|
|
12105
|
+
* @summary Bulk set/replace environment variables
|
|
12106
|
+
* @param {string} apiOrganisation The organisation ID
|
|
12107
|
+
* @param {string} apiApplication The application ID
|
|
12108
|
+
* @param {string} apiEnvironment The environment ID
|
|
12109
|
+
* @param {BulkSetEnvironmentVariablesRequest} bulkSetEnvironmentVariablesRequest
|
|
12113
12110
|
* @param {*} [options] Override http request option.
|
|
12114
12111
|
* @throws {RequiredError}
|
|
12115
12112
|
*/
|
|
12116
|
-
|
|
12117
|
-
// verify required parameter '
|
|
12118
|
-
assertParamExists('
|
|
12119
|
-
|
|
12113
|
+
bulkSetEnvironmentVariables: (apiOrganisation, apiApplication, apiEnvironment, bulkSetEnvironmentVariablesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12114
|
+
// verify required parameter 'apiOrganisation' is not null or undefined
|
|
12115
|
+
assertParamExists('bulkSetEnvironmentVariables', 'apiOrganisation', apiOrganisation);
|
|
12116
|
+
// verify required parameter 'apiApplication' is not null or undefined
|
|
12117
|
+
assertParamExists('bulkSetEnvironmentVariables', 'apiApplication', apiApplication);
|
|
12118
|
+
// verify required parameter 'apiEnvironment' is not null or undefined
|
|
12119
|
+
assertParamExists('bulkSetEnvironmentVariables', 'apiEnvironment', apiEnvironment);
|
|
12120
|
+
// verify required parameter 'bulkSetEnvironmentVariablesRequest' is not null or undefined
|
|
12121
|
+
assertParamExists('bulkSetEnvironmentVariables', 'bulkSetEnvironmentVariablesRequest', bulkSetEnvironmentVariablesRequest);
|
|
12122
|
+
const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables`
|
|
12123
|
+
.replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
|
|
12124
|
+
.replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
|
|
12125
|
+
.replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)));
|
|
12120
12126
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12121
12127
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12122
12128
|
let baseOptions;
|
|
12123
12129
|
if (configuration) {
|
|
12124
12130
|
baseOptions = configuration.baseOptions;
|
|
12125
12131
|
}
|
|
12126
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
12132
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
12127
12133
|
const localVarHeaderParameter = {};
|
|
12128
12134
|
const localVarQueryParameter = {};
|
|
12129
|
-
// authentication
|
|
12130
|
-
|
|
12135
|
+
// authentication BearerAuth required
|
|
12136
|
+
// http bearer authentication required
|
|
12137
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12131
12138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12132
12139
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12133
12140
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12134
12141
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12135
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
12142
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bulkSetEnvironmentVariablesRequest, localVarRequestOptions, configuration);
|
|
12136
12143
|
return {
|
|
12137
12144
|
url: toPathString(localVarUrlObj),
|
|
12138
12145
|
options: localVarRequestOptions,
|
|
@@ -12140,18 +12147,28 @@ export const SearchApiAxiosParamCreator = function (configuration) {
|
|
|
12140
12147
|
}),
|
|
12141
12148
|
/**
|
|
12142
12149
|
*
|
|
12143
|
-
* @summary Delete a
|
|
12144
|
-
* @param {
|
|
12145
|
-
* @param {string}
|
|
12150
|
+
* @summary Delete a variable
|
|
12151
|
+
* @param {string} apiOrganisation The organisation ID
|
|
12152
|
+
* @param {string} apiApplication The application ID
|
|
12153
|
+
* @param {string} apiEnvironment The environment ID
|
|
12154
|
+
* @param {string} apiVariable The variable key
|
|
12146
12155
|
* @param {*} [options] Override http request option.
|
|
12147
12156
|
* @throws {RequiredError}
|
|
12148
12157
|
*/
|
|
12149
|
-
|
|
12150
|
-
// verify required parameter '
|
|
12151
|
-
assertParamExists('
|
|
12152
|
-
// verify required parameter '
|
|
12153
|
-
assertParamExists('
|
|
12154
|
-
|
|
12158
|
+
deleteEnvironmentVariable: (apiOrganisation, apiApplication, apiEnvironment, apiVariable, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12159
|
+
// verify required parameter 'apiOrganisation' is not null or undefined
|
|
12160
|
+
assertParamExists('deleteEnvironmentVariable', 'apiOrganisation', apiOrganisation);
|
|
12161
|
+
// verify required parameter 'apiApplication' is not null or undefined
|
|
12162
|
+
assertParamExists('deleteEnvironmentVariable', 'apiApplication', apiApplication);
|
|
12163
|
+
// verify required parameter 'apiEnvironment' is not null or undefined
|
|
12164
|
+
assertParamExists('deleteEnvironmentVariable', 'apiEnvironment', apiEnvironment);
|
|
12165
|
+
// verify required parameter 'apiVariable' is not null or undefined
|
|
12166
|
+
assertParamExists('deleteEnvironmentVariable', 'apiVariable', apiVariable);
|
|
12167
|
+
const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables/{api_variable}`
|
|
12168
|
+
.replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
|
|
12169
|
+
.replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
|
|
12170
|
+
.replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)))
|
|
12171
|
+
.replace(`{${"api_variable"}}`, encodeURIComponent(String(apiVariable)));
|
|
12155
12172
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12156
12173
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12157
12174
|
let baseOptions;
|
|
@@ -12161,14 +12178,9 @@ export const SearchApiAxiosParamCreator = function (configuration) {
|
|
|
12161
12178
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
12162
12179
|
const localVarHeaderParameter = {};
|
|
12163
12180
|
const localVarQueryParameter = {};
|
|
12164
|
-
// authentication
|
|
12165
|
-
|
|
12166
|
-
|
|
12167
|
-
localVarQueryParameter['project'] = project;
|
|
12168
|
-
}
|
|
12169
|
-
if (objectId !== undefined) {
|
|
12170
|
-
localVarQueryParameter['objectId'] = objectId;
|
|
12171
|
-
}
|
|
12181
|
+
// authentication BearerAuth required
|
|
12182
|
+
// http bearer authentication required
|
|
12183
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12172
12184
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12173
12185
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12174
12186
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -12179,18 +12191,24 @@ export const SearchApiAxiosParamCreator = function (configuration) {
|
|
|
12179
12191
|
}),
|
|
12180
12192
|
/**
|
|
12181
12193
|
*
|
|
12182
|
-
* @summary Get
|
|
12183
|
-
* @param {
|
|
12184
|
-
* @param {string}
|
|
12194
|
+
* @summary Get all variables for an environment
|
|
12195
|
+
* @param {string} apiOrganisation The organisation ID
|
|
12196
|
+
* @param {string} apiApplication The application ID
|
|
12197
|
+
* @param {string} apiEnvironment The environment ID
|
|
12185
12198
|
* @param {*} [options] Override http request option.
|
|
12186
12199
|
* @throws {RequiredError}
|
|
12187
12200
|
*/
|
|
12188
|
-
|
|
12189
|
-
// verify required parameter '
|
|
12190
|
-
assertParamExists('
|
|
12191
|
-
// verify required parameter '
|
|
12192
|
-
assertParamExists('
|
|
12193
|
-
|
|
12201
|
+
listEnvironmentVariables: (apiOrganisation, apiApplication, apiEnvironment, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12202
|
+
// verify required parameter 'apiOrganisation' is not null or undefined
|
|
12203
|
+
assertParamExists('listEnvironmentVariables', 'apiOrganisation', apiOrganisation);
|
|
12204
|
+
// verify required parameter 'apiApplication' is not null or undefined
|
|
12205
|
+
assertParamExists('listEnvironmentVariables', 'apiApplication', apiApplication);
|
|
12206
|
+
// verify required parameter 'apiEnvironment' is not null or undefined
|
|
12207
|
+
assertParamExists('listEnvironmentVariables', 'apiEnvironment', apiEnvironment);
|
|
12208
|
+
const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables`
|
|
12209
|
+
.replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
|
|
12210
|
+
.replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
|
|
12211
|
+
.replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)));
|
|
12194
12212
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12195
12213
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12196
12214
|
let baseOptions;
|
|
@@ -12200,14 +12218,9 @@ export const SearchApiAxiosParamCreator = function (configuration) {
|
|
|
12200
12218
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12201
12219
|
const localVarHeaderParameter = {};
|
|
12202
12220
|
const localVarQueryParameter = {};
|
|
12203
|
-
// authentication
|
|
12204
|
-
|
|
12205
|
-
|
|
12206
|
-
localVarQueryParameter['project'] = project;
|
|
12207
|
-
}
|
|
12208
|
-
if (objectId !== undefined) {
|
|
12209
|
-
localVarQueryParameter['objectId'] = objectId;
|
|
12210
|
-
}
|
|
12221
|
+
// authentication BearerAuth required
|
|
12222
|
+
// http bearer authentication required
|
|
12223
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12211
12224
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12212
12225
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12213
12226
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -12218,808 +12231,12 @@ export const SearchApiAxiosParamCreator = function (configuration) {
|
|
|
12218
12231
|
}),
|
|
12219
12232
|
/**
|
|
12220
12233
|
*
|
|
12221
|
-
* @summary
|
|
12222
|
-
* @param {
|
|
12223
|
-
* @param {
|
|
12224
|
-
* @param {
|
|
12225
|
-
* @param {string}
|
|
12226
|
-
* @param {
|
|
12227
|
-
* @param {GetSearchItemsFiltersParameter} [facets] Array or comma-separated facets
|
|
12228
|
-
* @param {*} [options] Override http request option.
|
|
12229
|
-
* @throws {RequiredError}
|
|
12230
|
-
*/
|
|
12231
|
-
getSearchItems: (project, page, hitsPerPage, query, filters, facets, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12232
|
-
// verify required parameter 'project' is not null or undefined
|
|
12233
|
-
assertParamExists('getSearchItems', 'project', project);
|
|
12234
|
-
const localVarPath = `/api/v1/search/items`;
|
|
12235
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12236
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12237
|
-
let baseOptions;
|
|
12238
|
-
if (configuration) {
|
|
12239
|
-
baseOptions = configuration.baseOptions;
|
|
12240
|
-
}
|
|
12241
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12242
|
-
const localVarHeaderParameter = {};
|
|
12243
|
-
const localVarQueryParameter = {};
|
|
12244
|
-
// authentication headerAuth required
|
|
12245
|
-
yield setApiKeyToObject(localVarHeaderParameter, "Quant-Token", configuration);
|
|
12246
|
-
if (project !== undefined) {
|
|
12247
|
-
localVarQueryParameter['project'] = project;
|
|
12248
|
-
}
|
|
12249
|
-
if (page !== undefined) {
|
|
12250
|
-
localVarQueryParameter['page'] = page;
|
|
12251
|
-
}
|
|
12252
|
-
if (hitsPerPage !== undefined) {
|
|
12253
|
-
localVarQueryParameter['hitsPerPage'] = hitsPerPage;
|
|
12254
|
-
}
|
|
12255
|
-
if (query !== undefined) {
|
|
12256
|
-
localVarQueryParameter['query'] = query;
|
|
12257
|
-
}
|
|
12258
|
-
if (filters !== undefined) {
|
|
12259
|
-
for (const [key, value] of Object.entries(filters)) {
|
|
12260
|
-
localVarQueryParameter[key] = value;
|
|
12261
|
-
}
|
|
12262
|
-
}
|
|
12263
|
-
if (facets !== undefined) {
|
|
12264
|
-
for (const [key, value] of Object.entries(facets)) {
|
|
12265
|
-
localVarQueryParameter[key] = value;
|
|
12266
|
-
}
|
|
12267
|
-
}
|
|
12268
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12269
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12270
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12271
|
-
return {
|
|
12272
|
-
url: toPathString(localVarUrlObj),
|
|
12273
|
-
options: localVarRequestOptions,
|
|
12274
|
-
};
|
|
12275
|
-
}),
|
|
12276
|
-
/**
|
|
12277
|
-
*
|
|
12278
|
-
* @summary Test search extractors
|
|
12279
|
-
* @param {TestSearchExtractorsRequest} testSearchExtractorsRequest
|
|
12280
|
-
* @param {*} [options] Override http request option.
|
|
12281
|
-
* @throws {RequiredError}
|
|
12282
|
-
*/
|
|
12283
|
-
testSearchExtractors: (testSearchExtractorsRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12284
|
-
// verify required parameter 'testSearchExtractorsRequest' is not null or undefined
|
|
12285
|
-
assertParamExists('testSearchExtractors', 'testSearchExtractorsRequest', testSearchExtractorsRequest);
|
|
12286
|
-
const localVarPath = `/api/v1/search/test-extractors`;
|
|
12287
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12288
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12289
|
-
let baseOptions;
|
|
12290
|
-
if (configuration) {
|
|
12291
|
-
baseOptions = configuration.baseOptions;
|
|
12292
|
-
}
|
|
12293
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12294
|
-
const localVarHeaderParameter = {};
|
|
12295
|
-
const localVarQueryParameter = {};
|
|
12296
|
-
// authentication headerAuth required
|
|
12297
|
-
yield setApiKeyToObject(localVarHeaderParameter, "Quant-Token", configuration);
|
|
12298
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12299
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12300
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12301
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12302
|
-
localVarRequestOptions.data = serializeDataIfNeeded(testSearchExtractorsRequest, localVarRequestOptions, configuration);
|
|
12303
|
-
return {
|
|
12304
|
-
url: toPathString(localVarUrlObj),
|
|
12305
|
-
options: localVarRequestOptions,
|
|
12306
|
-
};
|
|
12307
|
-
}),
|
|
12308
|
-
/**
|
|
12309
|
-
*
|
|
12310
|
-
* @summary Update an existing search index item
|
|
12311
|
-
* @param {UpdateSearchItemRequest} updateSearchItemRequest
|
|
12312
|
-
* @param {*} [options] Override http request option.
|
|
12313
|
-
* @throws {RequiredError}
|
|
12314
|
-
*/
|
|
12315
|
-
updateSearchItem: (updateSearchItemRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12316
|
-
// verify required parameter 'updateSearchItemRequest' is not null or undefined
|
|
12317
|
-
assertParamExists('updateSearchItem', 'updateSearchItemRequest', updateSearchItemRequest);
|
|
12318
|
-
const localVarPath = `/api/v1/search/item`;
|
|
12319
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12320
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12321
|
-
let baseOptions;
|
|
12322
|
-
if (configuration) {
|
|
12323
|
-
baseOptions = configuration.baseOptions;
|
|
12324
|
-
}
|
|
12325
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
12326
|
-
const localVarHeaderParameter = {};
|
|
12327
|
-
const localVarQueryParameter = {};
|
|
12328
|
-
// authentication headerAuth required
|
|
12329
|
-
yield setApiKeyToObject(localVarHeaderParameter, "Quant-Token", configuration);
|
|
12330
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12331
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12332
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12333
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12334
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateSearchItemRequest, localVarRequestOptions, configuration);
|
|
12335
|
-
return {
|
|
12336
|
-
url: toPathString(localVarUrlObj),
|
|
12337
|
-
options: localVarRequestOptions,
|
|
12338
|
-
};
|
|
12339
|
-
}),
|
|
12340
|
-
};
|
|
12341
|
-
};
|
|
12342
|
-
/**
|
|
12343
|
-
* SearchApi - functional programming interface
|
|
12344
|
-
* @export
|
|
12345
|
-
*/
|
|
12346
|
-
export const SearchApiFp = function (configuration) {
|
|
12347
|
-
const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration);
|
|
12348
|
-
return {
|
|
12349
|
-
/**
|
|
12350
|
-
*
|
|
12351
|
-
* @summary Create a new search index item
|
|
12352
|
-
* @param {CreateSearchItemRequest} createSearchItemRequest
|
|
12353
|
-
* @param {*} [options] Override http request option.
|
|
12354
|
-
* @throws {RequiredError}
|
|
12355
|
-
*/
|
|
12356
|
-
createSearchItem(createSearchItemRequest, options) {
|
|
12357
|
-
var _a, _b, _c;
|
|
12358
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12359
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSearchItem(createSearchItemRequest, options);
|
|
12360
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12361
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.createSearchItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12362
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12363
|
-
});
|
|
12364
|
-
},
|
|
12365
|
-
/**
|
|
12366
|
-
*
|
|
12367
|
-
* @summary Delete a search index item
|
|
12368
|
-
* @param {number} project
|
|
12369
|
-
* @param {string} objectId
|
|
12370
|
-
* @param {*} [options] Override http request option.
|
|
12371
|
-
* @throws {RequiredError}
|
|
12372
|
-
*/
|
|
12373
|
-
deleteSearchItem(project, objectId, options) {
|
|
12374
|
-
var _a, _b, _c;
|
|
12375
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12376
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSearchItem(project, objectId, options);
|
|
12377
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12378
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.deleteSearchItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12379
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12380
|
-
});
|
|
12381
|
-
},
|
|
12382
|
-
/**
|
|
12383
|
-
*
|
|
12384
|
-
* @summary Get a single search index item
|
|
12385
|
-
* @param {number} project
|
|
12386
|
-
* @param {string} objectId
|
|
12387
|
-
* @param {*} [options] Override http request option.
|
|
12388
|
-
* @throws {RequiredError}
|
|
12389
|
-
*/
|
|
12390
|
-
getSearchItem(project, objectId, options) {
|
|
12391
|
-
var _a, _b, _c;
|
|
12392
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12393
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSearchItem(project, objectId, options);
|
|
12394
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12395
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.getSearchItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12396
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12397
|
-
});
|
|
12398
|
-
},
|
|
12399
|
-
/**
|
|
12400
|
-
*
|
|
12401
|
-
* @summary List search index items
|
|
12402
|
-
* @param {number} project
|
|
12403
|
-
* @param {number} [page]
|
|
12404
|
-
* @param {number} [hitsPerPage]
|
|
12405
|
-
* @param {string} [query]
|
|
12406
|
-
* @param {GetSearchItemsFiltersParameter} [filters] Array or comma-separated filters
|
|
12407
|
-
* @param {GetSearchItemsFiltersParameter} [facets] Array or comma-separated facets
|
|
12408
|
-
* @param {*} [options] Override http request option.
|
|
12409
|
-
* @throws {RequiredError}
|
|
12410
|
-
*/
|
|
12411
|
-
getSearchItems(project, page, hitsPerPage, query, filters, facets, options) {
|
|
12412
|
-
var _a, _b, _c;
|
|
12413
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12414
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSearchItems(project, page, hitsPerPage, query, filters, facets, options);
|
|
12415
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12416
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.getSearchItems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12417
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12418
|
-
});
|
|
12419
|
-
},
|
|
12420
|
-
/**
|
|
12421
|
-
*
|
|
12422
|
-
* @summary Test search extractors
|
|
12423
|
-
* @param {TestSearchExtractorsRequest} testSearchExtractorsRequest
|
|
12424
|
-
* @param {*} [options] Override http request option.
|
|
12425
|
-
* @throws {RequiredError}
|
|
12426
|
-
*/
|
|
12427
|
-
testSearchExtractors(testSearchExtractorsRequest, options) {
|
|
12428
|
-
var _a, _b, _c;
|
|
12429
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12430
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.testSearchExtractors(testSearchExtractorsRequest, options);
|
|
12431
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12432
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.testSearchExtractors']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12433
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12434
|
-
});
|
|
12435
|
-
},
|
|
12436
|
-
/**
|
|
12437
|
-
*
|
|
12438
|
-
* @summary Update an existing search index item
|
|
12439
|
-
* @param {UpdateSearchItemRequest} updateSearchItemRequest
|
|
12440
|
-
* @param {*} [options] Override http request option.
|
|
12441
|
-
* @throws {RequiredError}
|
|
12442
|
-
*/
|
|
12443
|
-
updateSearchItem(updateSearchItemRequest, options) {
|
|
12444
|
-
var _a, _b, _c;
|
|
12445
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12446
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSearchItem(updateSearchItemRequest, options);
|
|
12447
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12448
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.updateSearchItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12449
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12450
|
-
});
|
|
12451
|
-
},
|
|
12452
|
-
};
|
|
12453
|
-
};
|
|
12454
|
-
/**
|
|
12455
|
-
* SearchApi - factory interface
|
|
12456
|
-
* @export
|
|
12457
|
-
*/
|
|
12458
|
-
export const SearchApiFactory = function (configuration, basePath, axios) {
|
|
12459
|
-
const localVarFp = SearchApiFp(configuration);
|
|
12460
|
-
return {
|
|
12461
|
-
/**
|
|
12462
|
-
*
|
|
12463
|
-
* @summary Create a new search index item
|
|
12464
|
-
* @param {CreateSearchItemRequest} createSearchItemRequest
|
|
12465
|
-
* @param {*} [options] Override http request option.
|
|
12466
|
-
* @throws {RequiredError}
|
|
12467
|
-
*/
|
|
12468
|
-
createSearchItem(createSearchItemRequest, options) {
|
|
12469
|
-
return localVarFp.createSearchItem(createSearchItemRequest, options).then((request) => request(axios, basePath));
|
|
12470
|
-
},
|
|
12471
|
-
/**
|
|
12472
|
-
*
|
|
12473
|
-
* @summary Delete a search index item
|
|
12474
|
-
* @param {number} project
|
|
12475
|
-
* @param {string} objectId
|
|
12476
|
-
* @param {*} [options] Override http request option.
|
|
12477
|
-
* @throws {RequiredError}
|
|
12478
|
-
*/
|
|
12479
|
-
deleteSearchItem(project, objectId, options) {
|
|
12480
|
-
return localVarFp.deleteSearchItem(project, objectId, options).then((request) => request(axios, basePath));
|
|
12481
|
-
},
|
|
12482
|
-
/**
|
|
12483
|
-
*
|
|
12484
|
-
* @summary Get a single search index item
|
|
12485
|
-
* @param {number} project
|
|
12486
|
-
* @param {string} objectId
|
|
12487
|
-
* @param {*} [options] Override http request option.
|
|
12488
|
-
* @throws {RequiredError}
|
|
12489
|
-
*/
|
|
12490
|
-
getSearchItem(project, objectId, options) {
|
|
12491
|
-
return localVarFp.getSearchItem(project, objectId, options).then((request) => request(axios, basePath));
|
|
12492
|
-
},
|
|
12493
|
-
/**
|
|
12494
|
-
*
|
|
12495
|
-
* @summary List search index items
|
|
12496
|
-
* @param {number} project
|
|
12497
|
-
* @param {number} [page]
|
|
12498
|
-
* @param {number} [hitsPerPage]
|
|
12499
|
-
* @param {string} [query]
|
|
12500
|
-
* @param {GetSearchItemsFiltersParameter} [filters] Array or comma-separated filters
|
|
12501
|
-
* @param {GetSearchItemsFiltersParameter} [facets] Array or comma-separated facets
|
|
12502
|
-
* @param {*} [options] Override http request option.
|
|
12503
|
-
* @throws {RequiredError}
|
|
12504
|
-
*/
|
|
12505
|
-
getSearchItems(project, page, hitsPerPage, query, filters, facets, options) {
|
|
12506
|
-
return localVarFp.getSearchItems(project, page, hitsPerPage, query, filters, facets, options).then((request) => request(axios, basePath));
|
|
12507
|
-
},
|
|
12508
|
-
/**
|
|
12509
|
-
*
|
|
12510
|
-
* @summary Test search extractors
|
|
12511
|
-
* @param {TestSearchExtractorsRequest} testSearchExtractorsRequest
|
|
12512
|
-
* @param {*} [options] Override http request option.
|
|
12513
|
-
* @throws {RequiredError}
|
|
12514
|
-
*/
|
|
12515
|
-
testSearchExtractors(testSearchExtractorsRequest, options) {
|
|
12516
|
-
return localVarFp.testSearchExtractors(testSearchExtractorsRequest, options).then((request) => request(axios, basePath));
|
|
12517
|
-
},
|
|
12518
|
-
/**
|
|
12519
|
-
*
|
|
12520
|
-
* @summary Update an existing search index item
|
|
12521
|
-
* @param {UpdateSearchItemRequest} updateSearchItemRequest
|
|
12522
|
-
* @param {*} [options] Override http request option.
|
|
12523
|
-
* @throws {RequiredError}
|
|
12524
|
-
*/
|
|
12525
|
-
updateSearchItem(updateSearchItemRequest, options) {
|
|
12526
|
-
return localVarFp.updateSearchItem(updateSearchItemRequest, options).then((request) => request(axios, basePath));
|
|
12527
|
-
},
|
|
12528
|
-
};
|
|
12529
|
-
};
|
|
12530
|
-
/**
|
|
12531
|
-
* SearchApi - object-oriented interface
|
|
12532
|
-
* @export
|
|
12533
|
-
* @class SearchApi
|
|
12534
|
-
* @extends {BaseAPI}
|
|
12535
|
-
*/
|
|
12536
|
-
export class SearchApi extends BaseAPI {
|
|
12537
|
-
/**
|
|
12538
|
-
*
|
|
12539
|
-
* @summary Create a new search index item
|
|
12540
|
-
* @param {CreateSearchItemRequest} createSearchItemRequest
|
|
12541
|
-
* @param {*} [options] Override http request option.
|
|
12542
|
-
* @throws {RequiredError}
|
|
12543
|
-
* @memberof SearchApi
|
|
12544
|
-
*/
|
|
12545
|
-
createSearchItem(createSearchItemRequest, options) {
|
|
12546
|
-
return SearchApiFp(this.configuration).createSearchItem(createSearchItemRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12547
|
-
}
|
|
12548
|
-
/**
|
|
12549
|
-
*
|
|
12550
|
-
* @summary Delete a search index item
|
|
12551
|
-
* @param {number} project
|
|
12552
|
-
* @param {string} objectId
|
|
12553
|
-
* @param {*} [options] Override http request option.
|
|
12554
|
-
* @throws {RequiredError}
|
|
12555
|
-
* @memberof SearchApi
|
|
12556
|
-
*/
|
|
12557
|
-
deleteSearchItem(project, objectId, options) {
|
|
12558
|
-
return SearchApiFp(this.configuration).deleteSearchItem(project, objectId, options).then((request) => request(this.axios, this.basePath));
|
|
12559
|
-
}
|
|
12560
|
-
/**
|
|
12561
|
-
*
|
|
12562
|
-
* @summary Get a single search index item
|
|
12563
|
-
* @param {number} project
|
|
12564
|
-
* @param {string} objectId
|
|
12565
|
-
* @param {*} [options] Override http request option.
|
|
12566
|
-
* @throws {RequiredError}
|
|
12567
|
-
* @memberof SearchApi
|
|
12568
|
-
*/
|
|
12569
|
-
getSearchItem(project, objectId, options) {
|
|
12570
|
-
return SearchApiFp(this.configuration).getSearchItem(project, objectId, options).then((request) => request(this.axios, this.basePath));
|
|
12571
|
-
}
|
|
12572
|
-
/**
|
|
12573
|
-
*
|
|
12574
|
-
* @summary List search index items
|
|
12575
|
-
* @param {number} project
|
|
12576
|
-
* @param {number} [page]
|
|
12577
|
-
* @param {number} [hitsPerPage]
|
|
12578
|
-
* @param {string} [query]
|
|
12579
|
-
* @param {GetSearchItemsFiltersParameter} [filters] Array or comma-separated filters
|
|
12580
|
-
* @param {GetSearchItemsFiltersParameter} [facets] Array or comma-separated facets
|
|
12581
|
-
* @param {*} [options] Override http request option.
|
|
12582
|
-
* @throws {RequiredError}
|
|
12583
|
-
* @memberof SearchApi
|
|
12584
|
-
*/
|
|
12585
|
-
getSearchItems(project, page, hitsPerPage, query, filters, facets, options) {
|
|
12586
|
-
return SearchApiFp(this.configuration).getSearchItems(project, page, hitsPerPage, query, filters, facets, options).then((request) => request(this.axios, this.basePath));
|
|
12587
|
-
}
|
|
12588
|
-
/**
|
|
12589
|
-
*
|
|
12590
|
-
* @summary Test search extractors
|
|
12591
|
-
* @param {TestSearchExtractorsRequest} testSearchExtractorsRequest
|
|
12592
|
-
* @param {*} [options] Override http request option.
|
|
12593
|
-
* @throws {RequiredError}
|
|
12594
|
-
* @memberof SearchApi
|
|
12595
|
-
*/
|
|
12596
|
-
testSearchExtractors(testSearchExtractorsRequest, options) {
|
|
12597
|
-
return SearchApiFp(this.configuration).testSearchExtractors(testSearchExtractorsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12598
|
-
}
|
|
12599
|
-
/**
|
|
12600
|
-
*
|
|
12601
|
-
* @summary Update an existing search index item
|
|
12602
|
-
* @param {UpdateSearchItemRequest} updateSearchItemRequest
|
|
12603
|
-
* @param {*} [options] Override http request option.
|
|
12604
|
-
* @throws {RequiredError}
|
|
12605
|
-
* @memberof SearchApi
|
|
12606
|
-
*/
|
|
12607
|
-
updateSearchItem(updateSearchItemRequest, options) {
|
|
12608
|
-
return SearchApiFp(this.configuration).updateSearchItem(updateSearchItemRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12609
|
-
}
|
|
12610
|
-
}
|
|
12611
|
-
/**
|
|
12612
|
-
* V1Api - axios parameter creator
|
|
12613
|
-
* @export
|
|
12614
|
-
*/
|
|
12615
|
-
export const V1ApiAxiosParamCreator = function (configuration) {
|
|
12616
|
-
return {
|
|
12617
|
-
/**
|
|
12618
|
-
* Retrieve content via API.
|
|
12619
|
-
* @summary List content by type
|
|
12620
|
-
* @param {ListContentTypeEnum} type
|
|
12621
|
-
* @param {object} [body]
|
|
12622
|
-
* @param {*} [options] Override http request option.
|
|
12623
|
-
* @throws {RequiredError}
|
|
12624
|
-
*/
|
|
12625
|
-
listContent: (type, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12626
|
-
// verify required parameter 'type' is not null or undefined
|
|
12627
|
-
assertParamExists('listContent', 'type', type);
|
|
12628
|
-
const localVarPath = `/api/v1/content/{type}`
|
|
12629
|
-
.replace(`{${"type"}}`, encodeURIComponent(String(type)));
|
|
12630
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12631
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12632
|
-
let baseOptions;
|
|
12633
|
-
if (configuration) {
|
|
12634
|
-
baseOptions = configuration.baseOptions;
|
|
12635
|
-
}
|
|
12636
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12637
|
-
const localVarHeaderParameter = {};
|
|
12638
|
-
const localVarQueryParameter = {};
|
|
12639
|
-
// authentication headerAuth required
|
|
12640
|
-
yield setApiKeyToObject(localVarHeaderParameter, "Quant-Token", configuration);
|
|
12641
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12642
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12643
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12644
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12645
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
12646
|
-
return {
|
|
12647
|
-
url: toPathString(localVarUrlObj),
|
|
12648
|
-
options: localVarRequestOptions,
|
|
12649
|
-
};
|
|
12650
|
-
}),
|
|
12651
|
-
/**
|
|
12652
|
-
* Retrieve redirects via API.
|
|
12653
|
-
* @summary List redirects
|
|
12654
|
-
* @param {object} [body]
|
|
12655
|
-
* @param {*} [options] Override http request option.
|
|
12656
|
-
* @throws {RequiredError}
|
|
12657
|
-
*/
|
|
12658
|
-
listRedirects: (body, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12659
|
-
const localVarPath = `/api/v1/redirect`;
|
|
12660
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12661
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12662
|
-
let baseOptions;
|
|
12663
|
-
if (configuration) {
|
|
12664
|
-
baseOptions = configuration.baseOptions;
|
|
12665
|
-
}
|
|
12666
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12667
|
-
const localVarHeaderParameter = {};
|
|
12668
|
-
const localVarQueryParameter = {};
|
|
12669
|
-
// authentication headerAuth required
|
|
12670
|
-
yield setApiKeyToObject(localVarHeaderParameter, "Quant-Token", configuration);
|
|
12671
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12672
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12673
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12674
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12675
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
12676
|
-
return {
|
|
12677
|
-
url: toPathString(localVarUrlObj),
|
|
12678
|
-
options: localVarRequestOptions,
|
|
12679
|
-
};
|
|
12680
|
-
}),
|
|
12681
|
-
/**
|
|
12682
|
-
* Upload a file via API.
|
|
12683
|
-
* @summary Upload a file
|
|
12684
|
-
* @param {string} quantUri
|
|
12685
|
-
* @param {string} [quantPrefix]
|
|
12686
|
-
* @param {object} [body]
|
|
12687
|
-
* @param {*} [options] Override http request option.
|
|
12688
|
-
* @throws {RequiredError}
|
|
12689
|
-
*/
|
|
12690
|
-
uploadFile: (quantUri, quantPrefix, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12691
|
-
// verify required parameter 'quantUri' is not null or undefined
|
|
12692
|
-
assertParamExists('uploadFile', 'quantUri', quantUri);
|
|
12693
|
-
const localVarPath = `/api/v1/upload`;
|
|
12694
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12695
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12696
|
-
let baseOptions;
|
|
12697
|
-
if (configuration) {
|
|
12698
|
-
baseOptions = configuration.baseOptions;
|
|
12699
|
-
}
|
|
12700
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12701
|
-
const localVarHeaderParameter = {};
|
|
12702
|
-
const localVarQueryParameter = {};
|
|
12703
|
-
// authentication headerAuth required
|
|
12704
|
-
yield setApiKeyToObject(localVarHeaderParameter, "Quant-Token", configuration);
|
|
12705
|
-
if (quantUri !== undefined) {
|
|
12706
|
-
localVarQueryParameter['quant_uri'] = quantUri;
|
|
12707
|
-
}
|
|
12708
|
-
if (quantPrefix !== undefined) {
|
|
12709
|
-
localVarQueryParameter['quant_prefix'] = quantPrefix;
|
|
12710
|
-
}
|
|
12711
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12712
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12713
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12714
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12715
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
12716
|
-
return {
|
|
12717
|
-
url: toPathString(localVarUrlObj),
|
|
12718
|
-
options: localVarRequestOptions,
|
|
12719
|
-
};
|
|
12720
|
-
}),
|
|
12721
|
-
};
|
|
12722
|
-
};
|
|
12723
|
-
/**
|
|
12724
|
-
* V1Api - functional programming interface
|
|
12725
|
-
* @export
|
|
12726
|
-
*/
|
|
12727
|
-
export const V1ApiFp = function (configuration) {
|
|
12728
|
-
const localVarAxiosParamCreator = V1ApiAxiosParamCreator(configuration);
|
|
12729
|
-
return {
|
|
12730
|
-
/**
|
|
12731
|
-
* Retrieve content via API.
|
|
12732
|
-
* @summary List content by type
|
|
12733
|
-
* @param {ListContentTypeEnum} type
|
|
12734
|
-
* @param {object} [body]
|
|
12735
|
-
* @param {*} [options] Override http request option.
|
|
12736
|
-
* @throws {RequiredError}
|
|
12737
|
-
*/
|
|
12738
|
-
listContent(type, body, options) {
|
|
12739
|
-
var _a, _b, _c;
|
|
12740
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12741
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listContent(type, body, options);
|
|
12742
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12743
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['V1Api.listContent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12744
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12745
|
-
});
|
|
12746
|
-
},
|
|
12747
|
-
/**
|
|
12748
|
-
* Retrieve redirects via API.
|
|
12749
|
-
* @summary List redirects
|
|
12750
|
-
* @param {object} [body]
|
|
12751
|
-
* @param {*} [options] Override http request option.
|
|
12752
|
-
* @throws {RequiredError}
|
|
12753
|
-
*/
|
|
12754
|
-
listRedirects(body, options) {
|
|
12755
|
-
var _a, _b, _c;
|
|
12756
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12757
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listRedirects(body, options);
|
|
12758
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12759
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['V1Api.listRedirects']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12760
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12761
|
-
});
|
|
12762
|
-
},
|
|
12763
|
-
/**
|
|
12764
|
-
* Upload a file via API.
|
|
12765
|
-
* @summary Upload a file
|
|
12766
|
-
* @param {string} quantUri
|
|
12767
|
-
* @param {string} [quantPrefix]
|
|
12768
|
-
* @param {object} [body]
|
|
12769
|
-
* @param {*} [options] Override http request option.
|
|
12770
|
-
* @throws {RequiredError}
|
|
12771
|
-
*/
|
|
12772
|
-
uploadFile(quantUri, quantPrefix, body, options) {
|
|
12773
|
-
var _a, _b, _c;
|
|
12774
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12775
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadFile(quantUri, quantPrefix, body, options);
|
|
12776
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12777
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['V1Api.uploadFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12778
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12779
|
-
});
|
|
12780
|
-
},
|
|
12781
|
-
};
|
|
12782
|
-
};
|
|
12783
|
-
/**
|
|
12784
|
-
* V1Api - factory interface
|
|
12785
|
-
* @export
|
|
12786
|
-
*/
|
|
12787
|
-
export const V1ApiFactory = function (configuration, basePath, axios) {
|
|
12788
|
-
const localVarFp = V1ApiFp(configuration);
|
|
12789
|
-
return {
|
|
12790
|
-
/**
|
|
12791
|
-
* Retrieve content via API.
|
|
12792
|
-
* @summary List content by type
|
|
12793
|
-
* @param {ListContentTypeEnum} type
|
|
12794
|
-
* @param {object} [body]
|
|
12795
|
-
* @param {*} [options] Override http request option.
|
|
12796
|
-
* @throws {RequiredError}
|
|
12797
|
-
*/
|
|
12798
|
-
listContent(type, body, options) {
|
|
12799
|
-
return localVarFp.listContent(type, body, options).then((request) => request(axios, basePath));
|
|
12800
|
-
},
|
|
12801
|
-
/**
|
|
12802
|
-
* Retrieve redirects via API.
|
|
12803
|
-
* @summary List redirects
|
|
12804
|
-
* @param {object} [body]
|
|
12805
|
-
* @param {*} [options] Override http request option.
|
|
12806
|
-
* @throws {RequiredError}
|
|
12807
|
-
*/
|
|
12808
|
-
listRedirects(body, options) {
|
|
12809
|
-
return localVarFp.listRedirects(body, options).then((request) => request(axios, basePath));
|
|
12810
|
-
},
|
|
12811
|
-
/**
|
|
12812
|
-
* Upload a file via API.
|
|
12813
|
-
* @summary Upload a file
|
|
12814
|
-
* @param {string} quantUri
|
|
12815
|
-
* @param {string} [quantPrefix]
|
|
12816
|
-
* @param {object} [body]
|
|
12817
|
-
* @param {*} [options] Override http request option.
|
|
12818
|
-
* @throws {RequiredError}
|
|
12819
|
-
*/
|
|
12820
|
-
uploadFile(quantUri, quantPrefix, body, options) {
|
|
12821
|
-
return localVarFp.uploadFile(quantUri, quantPrefix, body, options).then((request) => request(axios, basePath));
|
|
12822
|
-
},
|
|
12823
|
-
};
|
|
12824
|
-
};
|
|
12825
|
-
/**
|
|
12826
|
-
* V1Api - object-oriented interface
|
|
12827
|
-
* @export
|
|
12828
|
-
* @class V1Api
|
|
12829
|
-
* @extends {BaseAPI}
|
|
12830
|
-
*/
|
|
12831
|
-
export class V1Api extends BaseAPI {
|
|
12832
|
-
/**
|
|
12833
|
-
* Retrieve content via API.
|
|
12834
|
-
* @summary List content by type
|
|
12835
|
-
* @param {ListContentTypeEnum} type
|
|
12836
|
-
* @param {object} [body]
|
|
12837
|
-
* @param {*} [options] Override http request option.
|
|
12838
|
-
* @throws {RequiredError}
|
|
12839
|
-
* @memberof V1Api
|
|
12840
|
-
*/
|
|
12841
|
-
listContent(type, body, options) {
|
|
12842
|
-
return V1ApiFp(this.configuration).listContent(type, body, options).then((request) => request(this.axios, this.basePath));
|
|
12843
|
-
}
|
|
12844
|
-
/**
|
|
12845
|
-
* Retrieve redirects via API.
|
|
12846
|
-
* @summary List redirects
|
|
12847
|
-
* @param {object} [body]
|
|
12848
|
-
* @param {*} [options] Override http request option.
|
|
12849
|
-
* @throws {RequiredError}
|
|
12850
|
-
* @memberof V1Api
|
|
12851
|
-
*/
|
|
12852
|
-
listRedirects(body, options) {
|
|
12853
|
-
return V1ApiFp(this.configuration).listRedirects(body, options).then((request) => request(this.axios, this.basePath));
|
|
12854
|
-
}
|
|
12855
|
-
/**
|
|
12856
|
-
* Upload a file via API.
|
|
12857
|
-
* @summary Upload a file
|
|
12858
|
-
* @param {string} quantUri
|
|
12859
|
-
* @param {string} [quantPrefix]
|
|
12860
|
-
* @param {object} [body]
|
|
12861
|
-
* @param {*} [options] Override http request option.
|
|
12862
|
-
* @throws {RequiredError}
|
|
12863
|
-
* @memberof V1Api
|
|
12864
|
-
*/
|
|
12865
|
-
uploadFile(quantUri, quantPrefix, body, options) {
|
|
12866
|
-
return V1ApiFp(this.configuration).uploadFile(quantUri, quantPrefix, body, options).then((request) => request(this.axios, this.basePath));
|
|
12867
|
-
}
|
|
12868
|
-
}
|
|
12869
|
-
/**
|
|
12870
|
-
* @export
|
|
12871
|
-
*/
|
|
12872
|
-
export const ListContentTypeEnum = {
|
|
12873
|
-
Content: 'content',
|
|
12874
|
-
Redirect: 'redirect',
|
|
12875
|
-
File: 'file',
|
|
12876
|
-
EdgeFunction: 'edge_function',
|
|
12877
|
-
EdgeFilter: 'edge_filter',
|
|
12878
|
-
EdgeAuth: 'edge_auth'
|
|
12879
|
-
};
|
|
12880
|
-
/**
|
|
12881
|
-
* VariablesApi - axios parameter creator
|
|
12882
|
-
* @export
|
|
12883
|
-
*/
|
|
12884
|
-
export const VariablesApiAxiosParamCreator = function (configuration) {
|
|
12885
|
-
return {
|
|
12886
|
-
/**
|
|
12887
|
-
*
|
|
12888
|
-
* @summary Bulk set/replace environment variables
|
|
12889
|
-
* @param {string} apiOrganisation The organisation ID
|
|
12890
|
-
* @param {string} apiApplication The application ID
|
|
12891
|
-
* @param {string} apiEnvironment The environment ID
|
|
12892
|
-
* @param {BulkSetEnvironmentVariablesRequest} bulkSetEnvironmentVariablesRequest
|
|
12893
|
-
* @param {*} [options] Override http request option.
|
|
12894
|
-
* @throws {RequiredError}
|
|
12895
|
-
*/
|
|
12896
|
-
bulkSetEnvironmentVariables: (apiOrganisation, apiApplication, apiEnvironment, bulkSetEnvironmentVariablesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12897
|
-
// verify required parameter 'apiOrganisation' is not null or undefined
|
|
12898
|
-
assertParamExists('bulkSetEnvironmentVariables', 'apiOrganisation', apiOrganisation);
|
|
12899
|
-
// verify required parameter 'apiApplication' is not null or undefined
|
|
12900
|
-
assertParamExists('bulkSetEnvironmentVariables', 'apiApplication', apiApplication);
|
|
12901
|
-
// verify required parameter 'apiEnvironment' is not null or undefined
|
|
12902
|
-
assertParamExists('bulkSetEnvironmentVariables', 'apiEnvironment', apiEnvironment);
|
|
12903
|
-
// verify required parameter 'bulkSetEnvironmentVariablesRequest' is not null or undefined
|
|
12904
|
-
assertParamExists('bulkSetEnvironmentVariables', 'bulkSetEnvironmentVariablesRequest', bulkSetEnvironmentVariablesRequest);
|
|
12905
|
-
const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables`
|
|
12906
|
-
.replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
|
|
12907
|
-
.replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
|
|
12908
|
-
.replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)));
|
|
12909
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12910
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12911
|
-
let baseOptions;
|
|
12912
|
-
if (configuration) {
|
|
12913
|
-
baseOptions = configuration.baseOptions;
|
|
12914
|
-
}
|
|
12915
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
12916
|
-
const localVarHeaderParameter = {};
|
|
12917
|
-
const localVarQueryParameter = {};
|
|
12918
|
-
// authentication BearerAuth required
|
|
12919
|
-
// http bearer authentication required
|
|
12920
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12921
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12922
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12923
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12924
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12925
|
-
localVarRequestOptions.data = serializeDataIfNeeded(bulkSetEnvironmentVariablesRequest, localVarRequestOptions, configuration);
|
|
12926
|
-
return {
|
|
12927
|
-
url: toPathString(localVarUrlObj),
|
|
12928
|
-
options: localVarRequestOptions,
|
|
12929
|
-
};
|
|
12930
|
-
}),
|
|
12931
|
-
/**
|
|
12932
|
-
*
|
|
12933
|
-
* @summary Delete a variable
|
|
12934
|
-
* @param {string} apiOrganisation The organisation ID
|
|
12935
|
-
* @param {string} apiApplication The application ID
|
|
12936
|
-
* @param {string} apiEnvironment The environment ID
|
|
12937
|
-
* @param {string} apiVariable The variable key
|
|
12938
|
-
* @param {*} [options] Override http request option.
|
|
12939
|
-
* @throws {RequiredError}
|
|
12940
|
-
*/
|
|
12941
|
-
deleteEnvironmentVariable: (apiOrganisation, apiApplication, apiEnvironment, apiVariable, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12942
|
-
// verify required parameter 'apiOrganisation' is not null or undefined
|
|
12943
|
-
assertParamExists('deleteEnvironmentVariable', 'apiOrganisation', apiOrganisation);
|
|
12944
|
-
// verify required parameter 'apiApplication' is not null or undefined
|
|
12945
|
-
assertParamExists('deleteEnvironmentVariable', 'apiApplication', apiApplication);
|
|
12946
|
-
// verify required parameter 'apiEnvironment' is not null or undefined
|
|
12947
|
-
assertParamExists('deleteEnvironmentVariable', 'apiEnvironment', apiEnvironment);
|
|
12948
|
-
// verify required parameter 'apiVariable' is not null or undefined
|
|
12949
|
-
assertParamExists('deleteEnvironmentVariable', 'apiVariable', apiVariable);
|
|
12950
|
-
const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables/{api_variable}`
|
|
12951
|
-
.replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
|
|
12952
|
-
.replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
|
|
12953
|
-
.replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)))
|
|
12954
|
-
.replace(`{${"api_variable"}}`, encodeURIComponent(String(apiVariable)));
|
|
12955
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12956
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12957
|
-
let baseOptions;
|
|
12958
|
-
if (configuration) {
|
|
12959
|
-
baseOptions = configuration.baseOptions;
|
|
12960
|
-
}
|
|
12961
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
12962
|
-
const localVarHeaderParameter = {};
|
|
12963
|
-
const localVarQueryParameter = {};
|
|
12964
|
-
// authentication BearerAuth required
|
|
12965
|
-
// http bearer authentication required
|
|
12966
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12967
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12968
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12969
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12970
|
-
return {
|
|
12971
|
-
url: toPathString(localVarUrlObj),
|
|
12972
|
-
options: localVarRequestOptions,
|
|
12973
|
-
};
|
|
12974
|
-
}),
|
|
12975
|
-
/**
|
|
12976
|
-
*
|
|
12977
|
-
* @summary Get all variables for an environment
|
|
12978
|
-
* @param {string} apiOrganisation The organisation ID
|
|
12979
|
-
* @param {string} apiApplication The application ID
|
|
12980
|
-
* @param {string} apiEnvironment The environment ID
|
|
12981
|
-
* @param {*} [options] Override http request option.
|
|
12982
|
-
* @throws {RequiredError}
|
|
12983
|
-
*/
|
|
12984
|
-
listEnvironmentVariables: (apiOrganisation, apiApplication, apiEnvironment, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12985
|
-
// verify required parameter 'apiOrganisation' is not null or undefined
|
|
12986
|
-
assertParamExists('listEnvironmentVariables', 'apiOrganisation', apiOrganisation);
|
|
12987
|
-
// verify required parameter 'apiApplication' is not null or undefined
|
|
12988
|
-
assertParamExists('listEnvironmentVariables', 'apiApplication', apiApplication);
|
|
12989
|
-
// verify required parameter 'apiEnvironment' is not null or undefined
|
|
12990
|
-
assertParamExists('listEnvironmentVariables', 'apiEnvironment', apiEnvironment);
|
|
12991
|
-
const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables`
|
|
12992
|
-
.replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
|
|
12993
|
-
.replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
|
|
12994
|
-
.replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)));
|
|
12995
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12996
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12997
|
-
let baseOptions;
|
|
12998
|
-
if (configuration) {
|
|
12999
|
-
baseOptions = configuration.baseOptions;
|
|
13000
|
-
}
|
|
13001
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13002
|
-
const localVarHeaderParameter = {};
|
|
13003
|
-
const localVarQueryParameter = {};
|
|
13004
|
-
// authentication BearerAuth required
|
|
13005
|
-
// http bearer authentication required
|
|
13006
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13007
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13008
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13009
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13010
|
-
return {
|
|
13011
|
-
url: toPathString(localVarUrlObj),
|
|
13012
|
-
options: localVarRequestOptions,
|
|
13013
|
-
};
|
|
13014
|
-
}),
|
|
13015
|
-
/**
|
|
13016
|
-
*
|
|
13017
|
-
* @summary Update a variable
|
|
13018
|
-
* @param {string} apiOrganisation The organisation ID
|
|
13019
|
-
* @param {string} apiApplication The application ID
|
|
13020
|
-
* @param {string} apiEnvironment The environment ID
|
|
13021
|
-
* @param {string} apiVariable The variable key
|
|
13022
|
-
* @param {UpdateEnvironmentVariableRequest} updateEnvironmentVariableRequest
|
|
12234
|
+
* @summary Update a variable
|
|
12235
|
+
* @param {string} apiOrganisation The organisation ID
|
|
12236
|
+
* @param {string} apiApplication The application ID
|
|
12237
|
+
* @param {string} apiEnvironment The environment ID
|
|
12238
|
+
* @param {string} apiVariable The variable key
|
|
12239
|
+
* @param {UpdateEnvironmentVariableRequest} updateEnvironmentVariableRequest
|
|
13023
12240
|
* @param {*} [options] Override http request option.
|
|
13024
12241
|
* @throws {RequiredError}
|
|
13025
12242
|
*/
|
|
@@ -13653,104 +12870,3 @@ export class VolumesApi extends BaseAPI {
|
|
|
13653
12870
|
return VolumesApiFp(this.configuration).listVolumes(organisation, application, environment, options).then((request) => request(this.axios, this.basePath));
|
|
13654
12871
|
}
|
|
13655
12872
|
}
|
|
13656
|
-
/**
|
|
13657
|
-
* WAFApi - axios parameter creator
|
|
13658
|
-
* @export
|
|
13659
|
-
*/
|
|
13660
|
-
export const WAFApiAxiosParamCreator = function (configuration) {
|
|
13661
|
-
return {
|
|
13662
|
-
/**
|
|
13663
|
-
*
|
|
13664
|
-
* @summary Retrieve WAF logs
|
|
13665
|
-
* @param {object} [body]
|
|
13666
|
-
* @param {*} [options] Override http request option.
|
|
13667
|
-
* @throws {RequiredError}
|
|
13668
|
-
*/
|
|
13669
|
-
getWafLogs: (body, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
13670
|
-
const localVarPath = `/api/v1/waf-log`;
|
|
13671
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13672
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13673
|
-
let baseOptions;
|
|
13674
|
-
if (configuration) {
|
|
13675
|
-
baseOptions = configuration.baseOptions;
|
|
13676
|
-
}
|
|
13677
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13678
|
-
const localVarHeaderParameter = {};
|
|
13679
|
-
const localVarQueryParameter = {};
|
|
13680
|
-
// authentication headerAuth required
|
|
13681
|
-
yield setApiKeyToObject(localVarHeaderParameter, "Quant-Token", configuration);
|
|
13682
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13683
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13684
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13685
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13686
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
13687
|
-
return {
|
|
13688
|
-
url: toPathString(localVarUrlObj),
|
|
13689
|
-
options: localVarRequestOptions,
|
|
13690
|
-
};
|
|
13691
|
-
}),
|
|
13692
|
-
};
|
|
13693
|
-
};
|
|
13694
|
-
/**
|
|
13695
|
-
* WAFApi - functional programming interface
|
|
13696
|
-
* @export
|
|
13697
|
-
*/
|
|
13698
|
-
export const WAFApiFp = function (configuration) {
|
|
13699
|
-
const localVarAxiosParamCreator = WAFApiAxiosParamCreator(configuration);
|
|
13700
|
-
return {
|
|
13701
|
-
/**
|
|
13702
|
-
*
|
|
13703
|
-
* @summary Retrieve WAF logs
|
|
13704
|
-
* @param {object} [body]
|
|
13705
|
-
* @param {*} [options] Override http request option.
|
|
13706
|
-
* @throws {RequiredError}
|
|
13707
|
-
*/
|
|
13708
|
-
getWafLogs(body, options) {
|
|
13709
|
-
var _a, _b, _c;
|
|
13710
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
13711
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWafLogs(body, options);
|
|
13712
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13713
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WAFApi.getWafLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13714
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13715
|
-
});
|
|
13716
|
-
},
|
|
13717
|
-
};
|
|
13718
|
-
};
|
|
13719
|
-
/**
|
|
13720
|
-
* WAFApi - factory interface
|
|
13721
|
-
* @export
|
|
13722
|
-
*/
|
|
13723
|
-
export const WAFApiFactory = function (configuration, basePath, axios) {
|
|
13724
|
-
const localVarFp = WAFApiFp(configuration);
|
|
13725
|
-
return {
|
|
13726
|
-
/**
|
|
13727
|
-
*
|
|
13728
|
-
* @summary Retrieve WAF logs
|
|
13729
|
-
* @param {object} [body]
|
|
13730
|
-
* @param {*} [options] Override http request option.
|
|
13731
|
-
* @throws {RequiredError}
|
|
13732
|
-
*/
|
|
13733
|
-
getWafLogs(body, options) {
|
|
13734
|
-
return localVarFp.getWafLogs(body, options).then((request) => request(axios, basePath));
|
|
13735
|
-
},
|
|
13736
|
-
};
|
|
13737
|
-
};
|
|
13738
|
-
/**
|
|
13739
|
-
* WAFApi - object-oriented interface
|
|
13740
|
-
* @export
|
|
13741
|
-
* @class WAFApi
|
|
13742
|
-
* @extends {BaseAPI}
|
|
13743
|
-
*/
|
|
13744
|
-
export class WAFApi extends BaseAPI {
|
|
13745
|
-
/**
|
|
13746
|
-
*
|
|
13747
|
-
* @summary Retrieve WAF logs
|
|
13748
|
-
* @param {object} [body]
|
|
13749
|
-
* @param {*} [options] Override http request option.
|
|
13750
|
-
* @throws {RequiredError}
|
|
13751
|
-
* @memberof WAFApi
|
|
13752
|
-
*/
|
|
13753
|
-
getWafLogs(body, options) {
|
|
13754
|
-
return WAFApiFp(this.configuration).getWafLogs(body, options).then((request) => request(this.axios, this.basePath));
|
|
13755
|
-
}
|
|
13756
|
-
}
|