@platzio/sdk 0.6.0-beta.0 → 0.6.0-beta.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/dist/api.js CHANGED
@@ -12,12 +12,21 @@
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
14
  */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
15
24
  var __importDefault = (this && this.__importDefault) || function (mod) {
16
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
17
26
  };
18
27
  Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.EnvsApiFp = exports.EnvsApiAxiosParamCreator = exports.EnvUserPermissionsApi = exports.EnvUserPermissionsApiFactory = exports.EnvUserPermissionsApiFp = exports.EnvUserPermissionsApiAxiosParamCreator = exports.DeploymentsApi = exports.DeploymentsApiFactory = exports.DeploymentsApiFp = exports.DeploymentsApiAxiosParamCreator = exports.DeploymentTasksApi = exports.DeploymentTasksApiFactory = exports.DeploymentTasksApiFp = exports.DeploymentTasksApiAxiosParamCreator = exports.DeploymentResourcesApi = exports.DeploymentResourcesApiFactory = exports.DeploymentResourcesApiFp = exports.DeploymentResourcesApiAxiosParamCreator = exports.DeploymentResourceTypesApi = exports.DeploymentResourceTypesApiFactory = exports.DeploymentResourceTypesApiFp = exports.DeploymentResourceTypesApiAxiosParamCreator = exports.DeploymentPermissionsApi = exports.DeploymentPermissionsApiFactory = exports.DeploymentPermissionsApiFp = exports.DeploymentPermissionsApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.UserDeploymentRole = exports.EnvUserRole = exports.DeploymentTaskStatus = exports.DeploymentStatus = exports.DeploymentResourceSyncStatus = exports.DeploymentReportedStatusColor = exports.DeploymentReportedNoticeLevel = exports.DbTable = exports.DbEventOperation = exports.ChartExtVersionV1Beta2 = exports.ChartExtVersionV1Beta1 = exports.ChartExtKindValuesUi = exports.ChartExtKindResourceType = exports.ChartExtKindFeatures = exports.ChartExtKindAction = exports.ChartExtIngressHostnameFormat = exports.ChartExtCardinality = exports.ChartExtActionUserDeploymentRole = exports.ChartExtActionMethod = exports.ChartExtActionEndpoint = void 0;
20
- exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserTokensApi = exports.UserTokensApiFactory = exports.UserTokensApiFp = exports.UserTokensApiAxiosParamCreator = exports.ServerApi = exports.ServerApiFactory = exports.ServerApiFp = exports.ServerApiAxiosParamCreator = exports.SecretsApi = exports.SecretsApiFactory = exports.SecretsApiFp = exports.SecretsApiAxiosParamCreator = exports.KubernetesResourcesApi = exports.KubernetesResourcesApiFactory = exports.KubernetesResourcesApiFp = exports.KubernetesResourcesApiAxiosParamCreator = exports.KubernetesClustersApi = exports.KubernetesClustersApiFactory = exports.KubernetesClustersApiFp = exports.KubernetesClustersApiAxiosParamCreator = exports.HelmTagFormatsApi = exports.HelmTagFormatsApiFactory = exports.HelmTagFormatsApiFp = exports.HelmTagFormatsApiAxiosParamCreator = exports.HelmRegistriesApi = exports.HelmRegistriesApiFactory = exports.HelmRegistriesApiFp = exports.HelmRegistriesApiAxiosParamCreator = exports.HelmChartsApi = exports.HelmChartsApiFactory = exports.HelmChartsApiFp = exports.HelmChartsApiAxiosParamCreator = exports.EnvsApi = exports.EnvsApiFactory = void 0;
28
+ exports.EnvUserPermissionsApiFp = exports.EnvUserPermissionsApiAxiosParamCreator = exports.DeploymentsApi = exports.DeploymentsApiFactory = exports.DeploymentsApiFp = exports.DeploymentsApiAxiosParamCreator = exports.DeploymentTasksApi = exports.DeploymentTasksApiFactory = exports.DeploymentTasksApiFp = exports.DeploymentTasksApiAxiosParamCreator = exports.DeploymentResourcesApi = exports.DeploymentResourcesApiFactory = exports.DeploymentResourcesApiFp = exports.DeploymentResourcesApiAxiosParamCreator = exports.DeploymentResourceTypesApi = exports.DeploymentResourceTypesApiFactory = exports.DeploymentResourceTypesApiFp = exports.DeploymentResourceTypesApiAxiosParamCreator = exports.DeploymentPermissionsApi = exports.DeploymentPermissionsApiFactory = exports.DeploymentPermissionsApiFp = exports.DeploymentPermissionsApiAxiosParamCreator = exports.DeploymentKindsApi = exports.DeploymentKindsApiFactory = exports.DeploymentKindsApiFp = exports.DeploymentKindsApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.UserDeploymentRole = exports.EnvUserRole = exports.DeploymentTaskStatus = exports.DeploymentStatus = exports.DeploymentResourceSyncStatus = exports.DeploymentReportedStatusColor = exports.DeploymentReportedNoticeLevel = exports.DbTable = exports.DbEventOperation = exports.ChartExtVersionV1Beta2 = exports.ChartExtVersionV1Beta1 = exports.ChartExtKindValuesUi = exports.ChartExtKindResourceType = exports.ChartExtKindFeatures = exports.ChartExtKindAction = exports.ChartExtIngressHostnameFormat = exports.ChartExtCardinality = exports.ChartExtActionUserDeploymentRole = exports.ChartExtActionMethod = exports.ChartExtActionEndpoint = void 0;
29
+ exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserTokensApi = exports.UserTokensApiFactory = exports.UserTokensApiFp = exports.UserTokensApiAxiosParamCreator = exports.ServerApi = exports.ServerApiFactory = exports.ServerApiFp = exports.ServerApiAxiosParamCreator = exports.SecretsApi = exports.SecretsApiFactory = exports.SecretsApiFp = exports.SecretsApiAxiosParamCreator = exports.KubernetesResourcesApi = exports.KubernetesResourcesApiFactory = exports.KubernetesResourcesApiFp = exports.KubernetesResourcesApiAxiosParamCreator = exports.KubernetesClustersApi = exports.KubernetesClustersApiFactory = exports.KubernetesClustersApiFp = exports.KubernetesClustersApiAxiosParamCreator = exports.HelmTagFormatsApi = exports.HelmTagFormatsApiFactory = exports.HelmTagFormatsApiFp = exports.HelmTagFormatsApiAxiosParamCreator = exports.HelmRegistriesApi = exports.HelmRegistriesApiFactory = exports.HelmRegistriesApiFp = exports.HelmRegistriesApiAxiosParamCreator = exports.HelmChartsApi = exports.HelmChartsApiFactory = exports.HelmChartsApiFp = exports.HelmChartsApiAxiosParamCreator = exports.EnvsApi = exports.EnvsApiFactory = exports.EnvsApiFp = exports.EnvsApiAxiosParamCreator = exports.EnvUserPermissionsApi = exports.EnvUserPermissionsApiFactory = void 0;
21
30
  const axios_1 = __importDefault(require("axios"));
22
31
  // Some imports not used depending on template conditions
23
32
  // @ts-ignore
@@ -243,7 +252,7 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
243
252
  * @param {*} [options] Override http request option.
244
253
  * @throws {RequiredError}
245
254
  */
246
- authMe: async (options = {}) => {
255
+ authMe: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
247
256
  const localVarPath = `/api/v2/auth/me`;
248
257
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
249
258
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -251,29 +260,29 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
251
260
  if (configuration) {
252
261
  baseOptions = configuration.baseOptions;
253
262
  }
254
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
263
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
255
264
  const localVarHeaderParameter = {};
256
265
  const localVarQueryParameter = {};
257
266
  // authentication access_token required
258
267
  // http bearer authentication required
259
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
268
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
260
269
  // authentication user_token required
261
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
270
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
262
271
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
263
272
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
264
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
273
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
265
274
  return {
266
275
  url: (0, common_1.toPathString)(localVarUrlObj),
267
276
  options: localVarRequestOptions,
268
277
  };
269
- },
278
+ }),
270
279
  /**
271
280
  *
272
281
  * @param {OAuth2Response} oAuth2Response
273
282
  * @param {*} [options] Override http request option.
274
283
  * @throws {RequiredError}
275
284
  */
276
- finishGoogleLogin: async (oAuth2Response, options = {}) => {
285
+ finishGoogleLogin: (oAuth2Response_1, ...args_1) => __awaiter(this, [oAuth2Response_1, ...args_1], void 0, function* (oAuth2Response, options = {}) {
277
286
  // verify required parameter 'oAuth2Response' is not null or undefined
278
287
  (0, common_1.assertParamExists)('finishGoogleLogin', 'oAuth2Response', oAuth2Response);
279
288
  const localVarPath = `/api/v2/auth/google/callback`;
@@ -283,25 +292,25 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
283
292
  if (configuration) {
284
293
  baseOptions = configuration.baseOptions;
285
294
  }
286
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
295
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
287
296
  const localVarHeaderParameter = {};
288
297
  const localVarQueryParameter = {};
289
298
  localVarHeaderParameter['Content-Type'] = 'application/json';
290
299
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
291
300
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
292
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
301
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
293
302
  localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(oAuth2Response, localVarRequestOptions, configuration);
294
303
  return {
295
304
  url: (0, common_1.toPathString)(localVarUrlObj),
296
305
  options: localVarRequestOptions,
297
306
  };
298
- },
307
+ }),
299
308
  /**
300
309
  *
301
310
  * @param {*} [options] Override http request option.
302
311
  * @throws {RequiredError}
303
312
  */
304
- startGoogleLogin: async (options = {}) => {
313
+ startGoogleLogin: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
305
314
  const localVarPath = `/api/v2/auth/google`;
306
315
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
307
316
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -309,17 +318,17 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
309
318
  if (configuration) {
310
319
  baseOptions = configuration.baseOptions;
311
320
  }
312
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
321
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
313
322
  const localVarHeaderParameter = {};
314
323
  const localVarQueryParameter = {};
315
324
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
316
325
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
317
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
326
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
318
327
  return {
319
328
  url: (0, common_1.toPathString)(localVarUrlObj),
320
329
  options: localVarRequestOptions,
321
330
  };
322
- },
331
+ }),
323
332
  };
324
333
  };
325
334
  exports.AuthenticationApiAxiosParamCreator = AuthenticationApiAxiosParamCreator;
@@ -335,12 +344,14 @@ const AuthenticationApiFp = function (configuration) {
335
344
  * @param {*} [options] Override http request option.
336
345
  * @throws {RequiredError}
337
346
  */
338
- async authMe(options) {
339
- var _a, _b, _c;
340
- const localVarAxiosArgs = await localVarAxiosParamCreator.authMe(options);
341
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
342
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthenticationApi.authMe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
343
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
347
+ authMe(options) {
348
+ return __awaiter(this, void 0, void 0, function* () {
349
+ var _a, _b, _c;
350
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authMe(options);
351
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
352
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthenticationApi.authMe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
353
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
354
+ });
344
355
  },
345
356
  /**
346
357
  *
@@ -348,24 +359,28 @@ const AuthenticationApiFp = function (configuration) {
348
359
  * @param {*} [options] Override http request option.
349
360
  * @throws {RequiredError}
350
361
  */
351
- async finishGoogleLogin(oAuth2Response, options) {
352
- var _a, _b, _c;
353
- const localVarAxiosArgs = await localVarAxiosParamCreator.finishGoogleLogin(oAuth2Response, options);
354
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
355
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthenticationApi.finishGoogleLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
356
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
362
+ finishGoogleLogin(oAuth2Response, options) {
363
+ return __awaiter(this, void 0, void 0, function* () {
364
+ var _a, _b, _c;
365
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.finishGoogleLogin(oAuth2Response, options);
366
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
367
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthenticationApi.finishGoogleLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
368
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
369
+ });
357
370
  },
358
371
  /**
359
372
  *
360
373
  * @param {*} [options] Override http request option.
361
374
  * @throws {RequiredError}
362
375
  */
363
- async startGoogleLogin(options) {
364
- var _a, _b, _c;
365
- const localVarAxiosArgs = await localVarAxiosParamCreator.startGoogleLogin(options);
366
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
367
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthenticationApi.startGoogleLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
368
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
376
+ startGoogleLogin(options) {
377
+ return __awaiter(this, void 0, void 0, function* () {
378
+ var _a, _b, _c;
379
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.startGoogleLogin(options);
380
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
381
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthenticationApi.startGoogleLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
382
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
383
+ });
369
384
  },
370
385
  };
371
386
  };
@@ -442,6 +457,261 @@ class AuthenticationApi extends base_1.BaseAPI {
442
457
  }
443
458
  }
444
459
  exports.AuthenticationApi = AuthenticationApi;
460
+ /**
461
+ * DeploymentKindsApi - axios parameter creator
462
+ * @export
463
+ */
464
+ const DeploymentKindsApiAxiosParamCreator = function (configuration) {
465
+ return {
466
+ /**
467
+ *
468
+ * @param {string | null} [name]
469
+ * @param {number | null} [page]
470
+ * @param {number | null} [perPage]
471
+ * @param {*} [options] Override http request option.
472
+ * @throws {RequiredError}
473
+ */
474
+ allDeploymentKinds: (name_1, page_1, perPage_1, ...args_1) => __awaiter(this, [name_1, page_1, perPage_1, ...args_1], void 0, function* (name, page, perPage, options = {}) {
475
+ const localVarPath = `/api/v2/deployment-kinds`;
476
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
477
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
478
+ let baseOptions;
479
+ if (configuration) {
480
+ baseOptions = configuration.baseOptions;
481
+ }
482
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
483
+ const localVarHeaderParameter = {};
484
+ const localVarQueryParameter = {};
485
+ // authentication access_token required
486
+ // http bearer authentication required
487
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
488
+ // authentication user_token required
489
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
490
+ if (name !== undefined) {
491
+ localVarQueryParameter['name'] = name;
492
+ }
493
+ if (page !== undefined) {
494
+ localVarQueryParameter['page'] = page;
495
+ }
496
+ if (perPage !== undefined) {
497
+ localVarQueryParameter['per_page'] = perPage;
498
+ }
499
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
500
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
501
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
502
+ return {
503
+ url: (0, common_1.toPathString)(localVarUrlObj),
504
+ options: localVarRequestOptions,
505
+ };
506
+ }),
507
+ /**
508
+ *
509
+ * @param {string} id
510
+ * @param {*} [options] Override http request option.
511
+ * @throws {RequiredError}
512
+ */
513
+ getDeploymentKind: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
514
+ // verify required parameter 'id' is not null or undefined
515
+ (0, common_1.assertParamExists)('getDeploymentKind', 'id', id);
516
+ const localVarPath = `/api/v2/deployment-kinds/{id}`
517
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
518
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
519
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
520
+ let baseOptions;
521
+ if (configuration) {
522
+ baseOptions = configuration.baseOptions;
523
+ }
524
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
525
+ const localVarHeaderParameter = {};
526
+ const localVarQueryParameter = {};
527
+ // authentication access_token required
528
+ // http bearer authentication required
529
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
530
+ // authentication user_token required
531
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
532
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
533
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
534
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
535
+ return {
536
+ url: (0, common_1.toPathString)(localVarUrlObj),
537
+ options: localVarRequestOptions,
538
+ };
539
+ }),
540
+ /**
541
+ *
542
+ * @param {string} id
543
+ * @param {UpdateDeploymentKind} updateDeploymentKind
544
+ * @param {*} [options] Override http request option.
545
+ * @throws {RequiredError}
546
+ */
547
+ updateDeploymentKind: (id_1, updateDeploymentKind_1, ...args_1) => __awaiter(this, [id_1, updateDeploymentKind_1, ...args_1], void 0, function* (id, updateDeploymentKind, options = {}) {
548
+ // verify required parameter 'id' is not null or undefined
549
+ (0, common_1.assertParamExists)('updateDeploymentKind', 'id', id);
550
+ // verify required parameter 'updateDeploymentKind' is not null or undefined
551
+ (0, common_1.assertParamExists)('updateDeploymentKind', 'updateDeploymentKind', updateDeploymentKind);
552
+ const localVarPath = `/api/v2/deployment-kinds/{id}`
553
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
554
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
555
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
556
+ let baseOptions;
557
+ if (configuration) {
558
+ baseOptions = configuration.baseOptions;
559
+ }
560
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
561
+ const localVarHeaderParameter = {};
562
+ const localVarQueryParameter = {};
563
+ // authentication access_token required
564
+ // http bearer authentication required
565
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
566
+ // authentication user_token required
567
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
568
+ localVarHeaderParameter['Content-Type'] = 'application/json';
569
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
570
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
571
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
572
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateDeploymentKind, localVarRequestOptions, configuration);
573
+ return {
574
+ url: (0, common_1.toPathString)(localVarUrlObj),
575
+ options: localVarRequestOptions,
576
+ };
577
+ }),
578
+ };
579
+ };
580
+ exports.DeploymentKindsApiAxiosParamCreator = DeploymentKindsApiAxiosParamCreator;
581
+ /**
582
+ * DeploymentKindsApi - functional programming interface
583
+ * @export
584
+ */
585
+ const DeploymentKindsApiFp = function (configuration) {
586
+ const localVarAxiosParamCreator = (0, exports.DeploymentKindsApiAxiosParamCreator)(configuration);
587
+ return {
588
+ /**
589
+ *
590
+ * @param {string | null} [name]
591
+ * @param {number | null} [page]
592
+ * @param {number | null} [perPage]
593
+ * @param {*} [options] Override http request option.
594
+ * @throws {RequiredError}
595
+ */
596
+ allDeploymentKinds(name, page, perPage, options) {
597
+ return __awaiter(this, void 0, void 0, function* () {
598
+ var _a, _b, _c;
599
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentKinds(name, page, perPage, options);
600
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
601
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentKindsApi.allDeploymentKinds']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
602
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
603
+ });
604
+ },
605
+ /**
606
+ *
607
+ * @param {string} id
608
+ * @param {*} [options] Override http request option.
609
+ * @throws {RequiredError}
610
+ */
611
+ getDeploymentKind(id, options) {
612
+ return __awaiter(this, void 0, void 0, function* () {
613
+ var _a, _b, _c;
614
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeploymentKind(id, options);
615
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
616
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentKindsApi.getDeploymentKind']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
617
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
618
+ });
619
+ },
620
+ /**
621
+ *
622
+ * @param {string} id
623
+ * @param {UpdateDeploymentKind} updateDeploymentKind
624
+ * @param {*} [options] Override http request option.
625
+ * @throws {RequiredError}
626
+ */
627
+ updateDeploymentKind(id, updateDeploymentKind, options) {
628
+ return __awaiter(this, void 0, void 0, function* () {
629
+ var _a, _b, _c;
630
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDeploymentKind(id, updateDeploymentKind, options);
631
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
632
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentKindsApi.updateDeploymentKind']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
633
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
634
+ });
635
+ },
636
+ };
637
+ };
638
+ exports.DeploymentKindsApiFp = DeploymentKindsApiFp;
639
+ /**
640
+ * DeploymentKindsApi - factory interface
641
+ * @export
642
+ */
643
+ const DeploymentKindsApiFactory = function (configuration, basePath, axios) {
644
+ const localVarFp = (0, exports.DeploymentKindsApiFp)(configuration);
645
+ return {
646
+ /**
647
+ *
648
+ * @param {DeploymentKindsApiAllDeploymentKindsRequest} requestParameters Request parameters.
649
+ * @param {*} [options] Override http request option.
650
+ * @throws {RequiredError}
651
+ */
652
+ allDeploymentKinds(requestParameters = {}, options) {
653
+ return localVarFp.allDeploymentKinds(requestParameters.name, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
654
+ },
655
+ /**
656
+ *
657
+ * @param {DeploymentKindsApiGetDeploymentKindRequest} requestParameters Request parameters.
658
+ * @param {*} [options] Override http request option.
659
+ * @throws {RequiredError}
660
+ */
661
+ getDeploymentKind(requestParameters, options) {
662
+ return localVarFp.getDeploymentKind(requestParameters.id, options).then((request) => request(axios, basePath));
663
+ },
664
+ /**
665
+ *
666
+ * @param {DeploymentKindsApiUpdateDeploymentKindRequest} requestParameters Request parameters.
667
+ * @param {*} [options] Override http request option.
668
+ * @throws {RequiredError}
669
+ */
670
+ updateDeploymentKind(requestParameters, options) {
671
+ return localVarFp.updateDeploymentKind(requestParameters.id, requestParameters.updateDeploymentKind, options).then((request) => request(axios, basePath));
672
+ },
673
+ };
674
+ };
675
+ exports.DeploymentKindsApiFactory = DeploymentKindsApiFactory;
676
+ /**
677
+ * DeploymentKindsApi - object-oriented interface
678
+ * @export
679
+ * @class DeploymentKindsApi
680
+ * @extends {BaseAPI}
681
+ */
682
+ class DeploymentKindsApi extends base_1.BaseAPI {
683
+ /**
684
+ *
685
+ * @param {DeploymentKindsApiAllDeploymentKindsRequest} requestParameters Request parameters.
686
+ * @param {*} [options] Override http request option.
687
+ * @throws {RequiredError}
688
+ * @memberof DeploymentKindsApi
689
+ */
690
+ allDeploymentKinds(requestParameters = {}, options) {
691
+ return (0, exports.DeploymentKindsApiFp)(this.configuration).allDeploymentKinds(requestParameters.name, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
692
+ }
693
+ /**
694
+ *
695
+ * @param {DeploymentKindsApiGetDeploymentKindRequest} requestParameters Request parameters.
696
+ * @param {*} [options] Override http request option.
697
+ * @throws {RequiredError}
698
+ * @memberof DeploymentKindsApi
699
+ */
700
+ getDeploymentKind(requestParameters, options) {
701
+ return (0, exports.DeploymentKindsApiFp)(this.configuration).getDeploymentKind(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
702
+ }
703
+ /**
704
+ *
705
+ * @param {DeploymentKindsApiUpdateDeploymentKindRequest} requestParameters Request parameters.
706
+ * @param {*} [options] Override http request option.
707
+ * @throws {RequiredError}
708
+ * @memberof DeploymentKindsApi
709
+ */
710
+ updateDeploymentKind(requestParameters, options) {
711
+ return (0, exports.DeploymentKindsApiFp)(this.configuration).updateDeploymentKind(requestParameters.id, requestParameters.updateDeploymentKind, options).then((request) => request(this.axios, this.basePath));
712
+ }
713
+ }
714
+ exports.DeploymentKindsApi = DeploymentKindsApi;
445
715
  /**
446
716
  * DeploymentPermissionsApi - axios parameter creator
447
717
  * @export
@@ -456,7 +726,7 @@ const DeploymentPermissionsApiAxiosParamCreator = function (configuration) {
456
726
  * @param {*} [options] Override http request option.
457
727
  * @throws {RequiredError}
458
728
  */
459
- allDeploymentPermissions: async (envId, page, perPage, options = {}) => {
729
+ allDeploymentPermissions: (envId_1, page_1, perPage_1, ...args_1) => __awaiter(this, [envId_1, page_1, perPage_1, ...args_1], void 0, function* (envId, page, perPage, options = {}) {
460
730
  const localVarPath = `/api/v2/deployment-permissions`;
461
731
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
462
732
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -464,14 +734,14 @@ const DeploymentPermissionsApiAxiosParamCreator = function (configuration) {
464
734
  if (configuration) {
465
735
  baseOptions = configuration.baseOptions;
466
736
  }
467
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
737
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
468
738
  const localVarHeaderParameter = {};
469
739
  const localVarQueryParameter = {};
470
740
  // authentication access_token required
471
741
  // http bearer authentication required
472
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
742
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
473
743
  // authentication user_token required
474
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
744
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
475
745
  if (envId !== undefined) {
476
746
  localVarQueryParameter['env_id'] = envId;
477
747
  }
@@ -483,19 +753,19 @@ const DeploymentPermissionsApiAxiosParamCreator = function (configuration) {
483
753
  }
484
754
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
485
755
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
486
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
756
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
487
757
  return {
488
758
  url: (0, common_1.toPathString)(localVarUrlObj),
489
759
  options: localVarRequestOptions,
490
760
  };
491
- },
761
+ }),
492
762
  /**
493
763
  *
494
764
  * @param {NewDeploymentPermission} newDeploymentPermission
495
765
  * @param {*} [options] Override http request option.
496
766
  * @throws {RequiredError}
497
767
  */
498
- createDeploymentPermission: async (newDeploymentPermission, options = {}) => {
768
+ createDeploymentPermission: (newDeploymentPermission_1, ...args_1) => __awaiter(this, [newDeploymentPermission_1, ...args_1], void 0, function* (newDeploymentPermission, options = {}) {
499
769
  // verify required parameter 'newDeploymentPermission' is not null or undefined
500
770
  (0, common_1.assertParamExists)('createDeploymentPermission', 'newDeploymentPermission', newDeploymentPermission);
501
771
  const localVarPath = `/api/v2/deployment-permissions`;
@@ -505,31 +775,31 @@ const DeploymentPermissionsApiAxiosParamCreator = function (configuration) {
505
775
  if (configuration) {
506
776
  baseOptions = configuration.baseOptions;
507
777
  }
508
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
778
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
509
779
  const localVarHeaderParameter = {};
510
780
  const localVarQueryParameter = {};
511
781
  // authentication access_token required
512
782
  // http bearer authentication required
513
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
783
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
514
784
  // authentication user_token required
515
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
785
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
516
786
  localVarHeaderParameter['Content-Type'] = 'application/json';
517
787
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
518
788
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
519
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
789
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
520
790
  localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(newDeploymentPermission, localVarRequestOptions, configuration);
521
791
  return {
522
792
  url: (0, common_1.toPathString)(localVarUrlObj),
523
793
  options: localVarRequestOptions,
524
794
  };
525
- },
795
+ }),
526
796
  /**
527
797
  *
528
798
  * @param {string} id
529
799
  * @param {*} [options] Override http request option.
530
800
  * @throws {RequiredError}
531
801
  */
532
- deleteDeploymentPermission: async (id, options = {}) => {
802
+ deleteDeploymentPermission: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
533
803
  // verify required parameter 'id' is not null or undefined
534
804
  (0, common_1.assertParamExists)('deleteDeploymentPermission', 'id', id);
535
805
  const localVarPath = `/api/v2/deployment-permissions/{id}`
@@ -540,29 +810,29 @@ const DeploymentPermissionsApiAxiosParamCreator = function (configuration) {
540
810
  if (configuration) {
541
811
  baseOptions = configuration.baseOptions;
542
812
  }
543
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
813
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
544
814
  const localVarHeaderParameter = {};
545
815
  const localVarQueryParameter = {};
546
816
  // authentication access_token required
547
817
  // http bearer authentication required
548
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
818
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
549
819
  // authentication user_token required
550
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
820
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
551
821
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
552
822
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
553
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
823
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
554
824
  return {
555
825
  url: (0, common_1.toPathString)(localVarUrlObj),
556
826
  options: localVarRequestOptions,
557
827
  };
558
- },
828
+ }),
559
829
  /**
560
830
  *
561
831
  * @param {string} id
562
832
  * @param {*} [options] Override http request option.
563
833
  * @throws {RequiredError}
564
834
  */
565
- getDeploymentPermission: async (id, options = {}) => {
835
+ getDeploymentPermission: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
566
836
  // verify required parameter 'id' is not null or undefined
567
837
  (0, common_1.assertParamExists)('getDeploymentPermission', 'id', id);
568
838
  const localVarPath = `/api/v2/deployment-permissions/{id}`
@@ -573,22 +843,22 @@ const DeploymentPermissionsApiAxiosParamCreator = function (configuration) {
573
843
  if (configuration) {
574
844
  baseOptions = configuration.baseOptions;
575
845
  }
576
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
846
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
577
847
  const localVarHeaderParameter = {};
578
848
  const localVarQueryParameter = {};
579
849
  // authentication access_token required
580
850
  // http bearer authentication required
581
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
851
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
582
852
  // authentication user_token required
583
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
853
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
584
854
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
585
855
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
586
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
856
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
587
857
  return {
588
858
  url: (0, common_1.toPathString)(localVarUrlObj),
589
859
  options: localVarRequestOptions,
590
860
  };
591
- },
861
+ }),
592
862
  };
593
863
  };
594
864
  exports.DeploymentPermissionsApiAxiosParamCreator = DeploymentPermissionsApiAxiosParamCreator;
@@ -607,12 +877,14 @@ const DeploymentPermissionsApiFp = function (configuration) {
607
877
  * @param {*} [options] Override http request option.
608
878
  * @throws {RequiredError}
609
879
  */
610
- async allDeploymentPermissions(envId, page, perPage, options) {
611
- var _a, _b, _c;
612
- const localVarAxiosArgs = await localVarAxiosParamCreator.allDeploymentPermissions(envId, page, perPage, options);
613
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
614
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentPermissionsApi.allDeploymentPermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
615
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
880
+ allDeploymentPermissions(envId, page, perPage, options) {
881
+ return __awaiter(this, void 0, void 0, function* () {
882
+ var _a, _b, _c;
883
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentPermissions(envId, page, perPage, options);
884
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
885
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentPermissionsApi.allDeploymentPermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
886
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
887
+ });
616
888
  },
617
889
  /**
618
890
  *
@@ -620,12 +892,14 @@ const DeploymentPermissionsApiFp = function (configuration) {
620
892
  * @param {*} [options] Override http request option.
621
893
  * @throws {RequiredError}
622
894
  */
623
- async createDeploymentPermission(newDeploymentPermission, options) {
624
- var _a, _b, _c;
625
- const localVarAxiosArgs = await localVarAxiosParamCreator.createDeploymentPermission(newDeploymentPermission, options);
626
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
627
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentPermissionsApi.createDeploymentPermission']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
628
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
895
+ createDeploymentPermission(newDeploymentPermission, options) {
896
+ return __awaiter(this, void 0, void 0, function* () {
897
+ var _a, _b, _c;
898
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createDeploymentPermission(newDeploymentPermission, options);
899
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
900
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentPermissionsApi.createDeploymentPermission']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
901
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
902
+ });
629
903
  },
630
904
  /**
631
905
  *
@@ -633,12 +907,14 @@ const DeploymentPermissionsApiFp = function (configuration) {
633
907
  * @param {*} [options] Override http request option.
634
908
  * @throws {RequiredError}
635
909
  */
636
- async deleteDeploymentPermission(id, options) {
637
- var _a, _b, _c;
638
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeploymentPermission(id, options);
639
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
640
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentPermissionsApi.deleteDeploymentPermission']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
641
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
910
+ deleteDeploymentPermission(id, options) {
911
+ return __awaiter(this, void 0, void 0, function* () {
912
+ var _a, _b, _c;
913
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDeploymentPermission(id, options);
914
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
915
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentPermissionsApi.deleteDeploymentPermission']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
916
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
917
+ });
642
918
  },
643
919
  /**
644
920
  *
@@ -646,12 +922,14 @@ const DeploymentPermissionsApiFp = function (configuration) {
646
922
  * @param {*} [options] Override http request option.
647
923
  * @throws {RequiredError}
648
924
  */
649
- async getDeploymentPermission(id, options) {
650
- var _a, _b, _c;
651
- const localVarAxiosArgs = await localVarAxiosParamCreator.getDeploymentPermission(id, options);
652
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
653
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentPermissionsApi.getDeploymentPermission']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
654
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
925
+ getDeploymentPermission(id, options) {
926
+ return __awaiter(this, void 0, void 0, function* () {
927
+ var _a, _b, _c;
928
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeploymentPermission(id, options);
929
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
930
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentPermissionsApi.getDeploymentPermission']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
931
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
932
+ });
655
933
  },
656
934
  };
657
935
  };
@@ -760,7 +1038,6 @@ const DeploymentResourceTypesApiAxiosParamCreator = function (configuration) {
760
1038
  /**
761
1039
  *
762
1040
  * @param {string | null} [envId]
763
- * @param {string | null} [deploymentKind]
764
1041
  * @param {string | null} [deploymentKindId]
765
1042
  * @param {string | null} [key]
766
1043
  * @param {number | null} [page]
@@ -768,7 +1045,7 @@ const DeploymentResourceTypesApiAxiosParamCreator = function (configuration) {
768
1045
  * @param {*} [options] Override http request option.
769
1046
  * @throws {RequiredError}
770
1047
  */
771
- allDeploymentResourceTypes: async (envId, deploymentKind, deploymentKindId, key, page, perPage, options = {}) => {
1048
+ allDeploymentResourceTypes: (envId_1, deploymentKindId_1, key_1, page_1, perPage_1, ...args_1) => __awaiter(this, [envId_1, deploymentKindId_1, key_1, page_1, perPage_1, ...args_1], void 0, function* (envId, deploymentKindId, key, page, perPage, options = {}) {
772
1049
  const localVarPath = `/api/v2/deployment-resource-types`;
773
1050
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
774
1051
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -776,20 +1053,17 @@ const DeploymentResourceTypesApiAxiosParamCreator = function (configuration) {
776
1053
  if (configuration) {
777
1054
  baseOptions = configuration.baseOptions;
778
1055
  }
779
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1056
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
780
1057
  const localVarHeaderParameter = {};
781
1058
  const localVarQueryParameter = {};
782
1059
  // authentication access_token required
783
1060
  // http bearer authentication required
784
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1061
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
785
1062
  // authentication user_token required
786
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1063
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
787
1064
  if (envId !== undefined) {
788
1065
  localVarQueryParameter['env_id'] = envId;
789
1066
  }
790
- if (deploymentKind !== undefined) {
791
- localVarQueryParameter['deployment_kind'] = deploymentKind;
792
- }
793
1067
  if (deploymentKindId !== undefined) {
794
1068
  localVarQueryParameter['deployment_kind_id'] = deploymentKindId;
795
1069
  }
@@ -804,19 +1078,19 @@ const DeploymentResourceTypesApiAxiosParamCreator = function (configuration) {
804
1078
  }
805
1079
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
806
1080
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
807
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1081
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
808
1082
  return {
809
1083
  url: (0, common_1.toPathString)(localVarUrlObj),
810
1084
  options: localVarRequestOptions,
811
1085
  };
812
- },
1086
+ }),
813
1087
  /**
814
1088
  *
815
1089
  * @param {string} id
816
1090
  * @param {*} [options] Override http request option.
817
1091
  * @throws {RequiredError}
818
1092
  */
819
- getDeploymentResourceType: async (id, options = {}) => {
1093
+ getDeploymentResourceType: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
820
1094
  // verify required parameter 'id' is not null or undefined
821
1095
  (0, common_1.assertParamExists)('getDeploymentResourceType', 'id', id);
822
1096
  const localVarPath = `/api/v2/deployment-resource-types/{id}`
@@ -827,22 +1101,22 @@ const DeploymentResourceTypesApiAxiosParamCreator = function (configuration) {
827
1101
  if (configuration) {
828
1102
  baseOptions = configuration.baseOptions;
829
1103
  }
830
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1104
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
831
1105
  const localVarHeaderParameter = {};
832
1106
  const localVarQueryParameter = {};
833
1107
  // authentication access_token required
834
1108
  // http bearer authentication required
835
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1109
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
836
1110
  // authentication user_token required
837
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1111
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
838
1112
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
839
1113
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
840
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1114
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
841
1115
  return {
842
1116
  url: (0, common_1.toPathString)(localVarUrlObj),
843
1117
  options: localVarRequestOptions,
844
1118
  };
845
- },
1119
+ }),
846
1120
  };
847
1121
  };
848
1122
  exports.DeploymentResourceTypesApiAxiosParamCreator = DeploymentResourceTypesApiAxiosParamCreator;
@@ -856,7 +1130,6 @@ const DeploymentResourceTypesApiFp = function (configuration) {
856
1130
  /**
857
1131
  *
858
1132
  * @param {string | null} [envId]
859
- * @param {string | null} [deploymentKind]
860
1133
  * @param {string | null} [deploymentKindId]
861
1134
  * @param {string | null} [key]
862
1135
  * @param {number | null} [page]
@@ -864,12 +1137,14 @@ const DeploymentResourceTypesApiFp = function (configuration) {
864
1137
  * @param {*} [options] Override http request option.
865
1138
  * @throws {RequiredError}
866
1139
  */
867
- async allDeploymentResourceTypes(envId, deploymentKind, deploymentKindId, key, page, perPage, options) {
868
- var _a, _b, _c;
869
- const localVarAxiosArgs = await localVarAxiosParamCreator.allDeploymentResourceTypes(envId, deploymentKind, deploymentKindId, key, page, perPage, options);
870
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
871
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentResourceTypesApi.allDeploymentResourceTypes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
872
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1140
+ allDeploymentResourceTypes(envId, deploymentKindId, key, page, perPage, options) {
1141
+ return __awaiter(this, void 0, void 0, function* () {
1142
+ var _a, _b, _c;
1143
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentResourceTypes(envId, deploymentKindId, key, page, perPage, options);
1144
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1145
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentResourceTypesApi.allDeploymentResourceTypes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1146
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1147
+ });
873
1148
  },
874
1149
  /**
875
1150
  *
@@ -877,12 +1152,14 @@ const DeploymentResourceTypesApiFp = function (configuration) {
877
1152
  * @param {*} [options] Override http request option.
878
1153
  * @throws {RequiredError}
879
1154
  */
880
- async getDeploymentResourceType(id, options) {
881
- var _a, _b, _c;
882
- const localVarAxiosArgs = await localVarAxiosParamCreator.getDeploymentResourceType(id, options);
883
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
884
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentResourceTypesApi.getDeploymentResourceType']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
885
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1155
+ getDeploymentResourceType(id, options) {
1156
+ return __awaiter(this, void 0, void 0, function* () {
1157
+ var _a, _b, _c;
1158
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeploymentResourceType(id, options);
1159
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1160
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentResourceTypesApi.getDeploymentResourceType']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1161
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1162
+ });
886
1163
  },
887
1164
  };
888
1165
  };
@@ -901,7 +1178,7 @@ const DeploymentResourceTypesApiFactory = function (configuration, basePath, axi
901
1178
  * @throws {RequiredError}
902
1179
  */
903
1180
  allDeploymentResourceTypes(requestParameters = {}, options) {
904
- return localVarFp.allDeploymentResourceTypes(requestParameters.envId, requestParameters.deploymentKind, requestParameters.deploymentKindId, requestParameters.key, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
1181
+ return localVarFp.allDeploymentResourceTypes(requestParameters.envId, requestParameters.deploymentKindId, requestParameters.key, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
905
1182
  },
906
1183
  /**
907
1184
  *
@@ -930,7 +1207,7 @@ class DeploymentResourceTypesApi extends base_1.BaseAPI {
930
1207
  * @memberof DeploymentResourceTypesApi
931
1208
  */
932
1209
  allDeploymentResourceTypes(requestParameters = {}, options) {
933
- return (0, exports.DeploymentResourceTypesApiFp)(this.configuration).allDeploymentResourceTypes(requestParameters.envId, requestParameters.deploymentKind, requestParameters.deploymentKindId, requestParameters.key, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
1210
+ return (0, exports.DeploymentResourceTypesApiFp)(this.configuration).allDeploymentResourceTypes(requestParameters.envId, requestParameters.deploymentKindId, requestParameters.key, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
934
1211
  }
935
1212
  /**
936
1213
  *
@@ -958,7 +1235,7 @@ const DeploymentResourcesApiAxiosParamCreator = function (configuration) {
958
1235
  * @param {*} [options] Override http request option.
959
1236
  * @throws {RequiredError}
960
1237
  */
961
- allDeploymentResources: async (typeId, page, perPage, options = {}) => {
1238
+ allDeploymentResources: (typeId_1, page_1, perPage_1, ...args_1) => __awaiter(this, [typeId_1, page_1, perPage_1, ...args_1], void 0, function* (typeId, page, perPage, options = {}) {
962
1239
  const localVarPath = `/api/v2/deployment-resources`;
963
1240
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
964
1241
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -966,14 +1243,14 @@ const DeploymentResourcesApiAxiosParamCreator = function (configuration) {
966
1243
  if (configuration) {
967
1244
  baseOptions = configuration.baseOptions;
968
1245
  }
969
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1246
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
970
1247
  const localVarHeaderParameter = {};
971
1248
  const localVarQueryParameter = {};
972
1249
  // authentication access_token required
973
1250
  // http bearer authentication required
974
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1251
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
975
1252
  // authentication user_token required
976
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1253
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
977
1254
  if (typeId !== undefined) {
978
1255
  localVarQueryParameter['type_id'] = typeId;
979
1256
  }
@@ -985,19 +1262,19 @@ const DeploymentResourcesApiAxiosParamCreator = function (configuration) {
985
1262
  }
986
1263
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
987
1264
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
988
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1265
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
989
1266
  return {
990
1267
  url: (0, common_1.toPathString)(localVarUrlObj),
991
1268
  options: localVarRequestOptions,
992
1269
  };
993
- },
1270
+ }),
994
1271
  /**
995
1272
  *
996
1273
  * @param {NewDeploymentResource} newDeploymentResource
997
1274
  * @param {*} [options] Override http request option.
998
1275
  * @throws {RequiredError}
999
1276
  */
1000
- createDeploymentResource: async (newDeploymentResource, options = {}) => {
1277
+ createDeploymentResource: (newDeploymentResource_1, ...args_1) => __awaiter(this, [newDeploymentResource_1, ...args_1], void 0, function* (newDeploymentResource, options = {}) {
1001
1278
  // verify required parameter 'newDeploymentResource' is not null or undefined
1002
1279
  (0, common_1.assertParamExists)('createDeploymentResource', 'newDeploymentResource', newDeploymentResource);
1003
1280
  const localVarPath = `/api/v2/deployment-resources`;
@@ -1007,31 +1284,31 @@ const DeploymentResourcesApiAxiosParamCreator = function (configuration) {
1007
1284
  if (configuration) {
1008
1285
  baseOptions = configuration.baseOptions;
1009
1286
  }
1010
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1287
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1011
1288
  const localVarHeaderParameter = {};
1012
1289
  const localVarQueryParameter = {};
1013
1290
  // authentication access_token required
1014
1291
  // http bearer authentication required
1015
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1292
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1016
1293
  // authentication user_token required
1017
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1294
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1018
1295
  localVarHeaderParameter['Content-Type'] = 'application/json';
1019
1296
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1020
1297
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1021
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1298
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1022
1299
  localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(newDeploymentResource, localVarRequestOptions, configuration);
1023
1300
  return {
1024
1301
  url: (0, common_1.toPathString)(localVarUrlObj),
1025
1302
  options: localVarRequestOptions,
1026
1303
  };
1027
- },
1304
+ }),
1028
1305
  /**
1029
1306
  *
1030
1307
  * @param {string} id
1031
1308
  * @param {*} [options] Override http request option.
1032
1309
  * @throws {RequiredError}
1033
1310
  */
1034
- deleteDeploymentResource: async (id, options = {}) => {
1311
+ deleteDeploymentResource: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
1035
1312
  // verify required parameter 'id' is not null or undefined
1036
1313
  (0, common_1.assertParamExists)('deleteDeploymentResource', 'id', id);
1037
1314
  const localVarPath = `/api/v2/deployment-resources/{id}`
@@ -1042,29 +1319,29 @@ const DeploymentResourcesApiAxiosParamCreator = function (configuration) {
1042
1319
  if (configuration) {
1043
1320
  baseOptions = configuration.baseOptions;
1044
1321
  }
1045
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
1322
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1046
1323
  const localVarHeaderParameter = {};
1047
1324
  const localVarQueryParameter = {};
1048
1325
  // authentication access_token required
1049
1326
  // http bearer authentication required
1050
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1327
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1051
1328
  // authentication user_token required
1052
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1329
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1053
1330
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1054
1331
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1055
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1332
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1056
1333
  return {
1057
1334
  url: (0, common_1.toPathString)(localVarUrlObj),
1058
1335
  options: localVarRequestOptions,
1059
1336
  };
1060
- },
1337
+ }),
1061
1338
  /**
1062
1339
  *
1063
1340
  * @param {string} id
1064
1341
  * @param {*} [options] Override http request option.
1065
1342
  * @throws {RequiredError}
1066
1343
  */
1067
- getDeploymentResource: async (id, options = {}) => {
1344
+ getDeploymentResource: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
1068
1345
  // verify required parameter 'id' is not null or undefined
1069
1346
  (0, common_1.assertParamExists)('getDeploymentResource', 'id', id);
1070
1347
  const localVarPath = `/api/v2/deployment-resources/{id}`
@@ -1075,22 +1352,22 @@ const DeploymentResourcesApiAxiosParamCreator = function (configuration) {
1075
1352
  if (configuration) {
1076
1353
  baseOptions = configuration.baseOptions;
1077
1354
  }
1078
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1355
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1079
1356
  const localVarHeaderParameter = {};
1080
1357
  const localVarQueryParameter = {};
1081
1358
  // authentication access_token required
1082
1359
  // http bearer authentication required
1083
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1360
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1084
1361
  // authentication user_token required
1085
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1362
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1086
1363
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1087
1364
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1088
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1365
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1089
1366
  return {
1090
1367
  url: (0, common_1.toPathString)(localVarUrlObj),
1091
1368
  options: localVarRequestOptions,
1092
1369
  };
1093
- },
1370
+ }),
1094
1371
  /**
1095
1372
  *
1096
1373
  * @param {string} id
@@ -1098,7 +1375,7 @@ const DeploymentResourcesApiAxiosParamCreator = function (configuration) {
1098
1375
  * @param {*} [options] Override http request option.
1099
1376
  * @throws {RequiredError}
1100
1377
  */
1101
- updateDeploymentResource: async (id, updateDeploymentResource, options = {}) => {
1378
+ updateDeploymentResource: (id_1, updateDeploymentResource_1, ...args_1) => __awaiter(this, [id_1, updateDeploymentResource_1, ...args_1], void 0, function* (id, updateDeploymentResource, options = {}) {
1102
1379
  // verify required parameter 'id' is not null or undefined
1103
1380
  (0, common_1.assertParamExists)('updateDeploymentResource', 'id', id);
1104
1381
  // verify required parameter 'updateDeploymentResource' is not null or undefined
@@ -1111,24 +1388,24 @@ const DeploymentResourcesApiAxiosParamCreator = function (configuration) {
1111
1388
  if (configuration) {
1112
1389
  baseOptions = configuration.baseOptions;
1113
1390
  }
1114
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
1391
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1115
1392
  const localVarHeaderParameter = {};
1116
1393
  const localVarQueryParameter = {};
1117
1394
  // authentication access_token required
1118
1395
  // http bearer authentication required
1119
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1396
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1120
1397
  // authentication user_token required
1121
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1398
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1122
1399
  localVarHeaderParameter['Content-Type'] = 'application/json';
1123
1400
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1124
1401
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1125
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1402
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1126
1403
  localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateDeploymentResource, localVarRequestOptions, configuration);
1127
1404
  return {
1128
1405
  url: (0, common_1.toPathString)(localVarUrlObj),
1129
1406
  options: localVarRequestOptions,
1130
1407
  };
1131
- },
1408
+ }),
1132
1409
  };
1133
1410
  };
1134
1411
  exports.DeploymentResourcesApiAxiosParamCreator = DeploymentResourcesApiAxiosParamCreator;
@@ -1147,12 +1424,14 @@ const DeploymentResourcesApiFp = function (configuration) {
1147
1424
  * @param {*} [options] Override http request option.
1148
1425
  * @throws {RequiredError}
1149
1426
  */
1150
- async allDeploymentResources(typeId, page, perPage, options) {
1151
- var _a, _b, _c;
1152
- const localVarAxiosArgs = await localVarAxiosParamCreator.allDeploymentResources(typeId, page, perPage, options);
1153
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1154
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentResourcesApi.allDeploymentResources']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1155
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1427
+ allDeploymentResources(typeId, page, perPage, options) {
1428
+ return __awaiter(this, void 0, void 0, function* () {
1429
+ var _a, _b, _c;
1430
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentResources(typeId, page, perPage, options);
1431
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1432
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentResourcesApi.allDeploymentResources']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1433
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1434
+ });
1156
1435
  },
1157
1436
  /**
1158
1437
  *
@@ -1160,12 +1439,14 @@ const DeploymentResourcesApiFp = function (configuration) {
1160
1439
  * @param {*} [options] Override http request option.
1161
1440
  * @throws {RequiredError}
1162
1441
  */
1163
- async createDeploymentResource(newDeploymentResource, options) {
1164
- var _a, _b, _c;
1165
- const localVarAxiosArgs = await localVarAxiosParamCreator.createDeploymentResource(newDeploymentResource, options);
1166
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1167
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentResourcesApi.createDeploymentResource']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1168
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1442
+ createDeploymentResource(newDeploymentResource, options) {
1443
+ return __awaiter(this, void 0, void 0, function* () {
1444
+ var _a, _b, _c;
1445
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createDeploymentResource(newDeploymentResource, options);
1446
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1447
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentResourcesApi.createDeploymentResource']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1448
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1449
+ });
1169
1450
  },
1170
1451
  /**
1171
1452
  *
@@ -1173,12 +1454,14 @@ const DeploymentResourcesApiFp = function (configuration) {
1173
1454
  * @param {*} [options] Override http request option.
1174
1455
  * @throws {RequiredError}
1175
1456
  */
1176
- async deleteDeploymentResource(id, options) {
1177
- var _a, _b, _c;
1178
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeploymentResource(id, options);
1179
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1180
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentResourcesApi.deleteDeploymentResource']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1181
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1457
+ deleteDeploymentResource(id, options) {
1458
+ return __awaiter(this, void 0, void 0, function* () {
1459
+ var _a, _b, _c;
1460
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDeploymentResource(id, options);
1461
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1462
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentResourcesApi.deleteDeploymentResource']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1463
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1464
+ });
1182
1465
  },
1183
1466
  /**
1184
1467
  *
@@ -1186,12 +1469,14 @@ const DeploymentResourcesApiFp = function (configuration) {
1186
1469
  * @param {*} [options] Override http request option.
1187
1470
  * @throws {RequiredError}
1188
1471
  */
1189
- async getDeploymentResource(id, options) {
1190
- var _a, _b, _c;
1191
- const localVarAxiosArgs = await localVarAxiosParamCreator.getDeploymentResource(id, options);
1192
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1193
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentResourcesApi.getDeploymentResource']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1194
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1472
+ getDeploymentResource(id, options) {
1473
+ return __awaiter(this, void 0, void 0, function* () {
1474
+ var _a, _b, _c;
1475
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeploymentResource(id, options);
1476
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1477
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentResourcesApi.getDeploymentResource']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1478
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1479
+ });
1195
1480
  },
1196
1481
  /**
1197
1482
  *
@@ -1200,12 +1485,14 @@ const DeploymentResourcesApiFp = function (configuration) {
1200
1485
  * @param {*} [options] Override http request option.
1201
1486
  * @throws {RequiredError}
1202
1487
  */
1203
- async updateDeploymentResource(id, updateDeploymentResource, options) {
1204
- var _a, _b, _c;
1205
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateDeploymentResource(id, updateDeploymentResource, options);
1206
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1207
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentResourcesApi.updateDeploymentResource']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1208
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1488
+ updateDeploymentResource(id, updateDeploymentResource, options) {
1489
+ return __awaiter(this, void 0, void 0, function* () {
1490
+ var _a, _b, _c;
1491
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDeploymentResource(id, updateDeploymentResource, options);
1492
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1493
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentResourcesApi.updateDeploymentResource']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1494
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1495
+ });
1209
1496
  },
1210
1497
  };
1211
1498
  };
@@ -1339,7 +1626,7 @@ const DeploymentTasksApiAxiosParamCreator = function (configuration) {
1339
1626
  * @param {*} [options] Override http request option.
1340
1627
  * @throws {RequiredError}
1341
1628
  */
1342
- allDeploymentTasks: async (clusterId, deploymentId, page, perPage, options = {}) => {
1629
+ allDeploymentTasks: (clusterId_1, deploymentId_1, page_1, perPage_1, ...args_1) => __awaiter(this, [clusterId_1, deploymentId_1, page_1, perPage_1, ...args_1], void 0, function* (clusterId, deploymentId, page, perPage, options = {}) {
1343
1630
  const localVarPath = `/api/v2/deployment-tasks`;
1344
1631
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1345
1632
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1347,14 +1634,14 @@ const DeploymentTasksApiAxiosParamCreator = function (configuration) {
1347
1634
  if (configuration) {
1348
1635
  baseOptions = configuration.baseOptions;
1349
1636
  }
1350
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1637
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1351
1638
  const localVarHeaderParameter = {};
1352
1639
  const localVarQueryParameter = {};
1353
1640
  // authentication access_token required
1354
1641
  // http bearer authentication required
1355
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1642
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1356
1643
  // authentication user_token required
1357
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1644
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1358
1645
  if (clusterId !== undefined) {
1359
1646
  localVarQueryParameter['cluster_id'] = clusterId;
1360
1647
  }
@@ -1369,19 +1656,19 @@ const DeploymentTasksApiAxiosParamCreator = function (configuration) {
1369
1656
  }
1370
1657
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1371
1658
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1372
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1659
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1373
1660
  return {
1374
1661
  url: (0, common_1.toPathString)(localVarUrlObj),
1375
1662
  options: localVarRequestOptions,
1376
1663
  };
1377
- },
1664
+ }),
1378
1665
  /**
1379
1666
  *
1380
1667
  * @param {CreateDeploymentTask} createDeploymentTask
1381
1668
  * @param {*} [options] Override http request option.
1382
1669
  * @throws {RequiredError}
1383
1670
  */
1384
- createDeploymentTask: async (createDeploymentTask, options = {}) => {
1671
+ createDeploymentTask: (createDeploymentTask_1, ...args_1) => __awaiter(this, [createDeploymentTask_1, ...args_1], void 0, function* (createDeploymentTask, options = {}) {
1385
1672
  // verify required parameter 'createDeploymentTask' is not null or undefined
1386
1673
  (0, common_1.assertParamExists)('createDeploymentTask', 'createDeploymentTask', createDeploymentTask);
1387
1674
  const localVarPath = `/api/v2/deployment-tasks`;
@@ -1391,31 +1678,31 @@ const DeploymentTasksApiAxiosParamCreator = function (configuration) {
1391
1678
  if (configuration) {
1392
1679
  baseOptions = configuration.baseOptions;
1393
1680
  }
1394
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1681
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1395
1682
  const localVarHeaderParameter = {};
1396
1683
  const localVarQueryParameter = {};
1397
1684
  // authentication access_token required
1398
1685
  // http bearer authentication required
1399
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1686
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1400
1687
  // authentication user_token required
1401
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1688
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1402
1689
  localVarHeaderParameter['Content-Type'] = 'application/json';
1403
1690
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1404
1691
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1405
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1692
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1406
1693
  localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDeploymentTask, localVarRequestOptions, configuration);
1407
1694
  return {
1408
1695
  url: (0, common_1.toPathString)(localVarUrlObj),
1409
1696
  options: localVarRequestOptions,
1410
1697
  };
1411
- },
1698
+ }),
1412
1699
  /**
1413
1700
  *
1414
1701
  * @param {string} id
1415
1702
  * @param {*} [options] Override http request option.
1416
1703
  * @throws {RequiredError}
1417
1704
  */
1418
- getDeploymentTask: async (id, options = {}) => {
1705
+ getDeploymentTask: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
1419
1706
  // verify required parameter 'id' is not null or undefined
1420
1707
  (0, common_1.assertParamExists)('getDeploymentTask', 'id', id);
1421
1708
  const localVarPath = `/api/v2/deployment-tasks/{id}`
@@ -1426,22 +1713,22 @@ const DeploymentTasksApiAxiosParamCreator = function (configuration) {
1426
1713
  if (configuration) {
1427
1714
  baseOptions = configuration.baseOptions;
1428
1715
  }
1429
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1716
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1430
1717
  const localVarHeaderParameter = {};
1431
1718
  const localVarQueryParameter = {};
1432
1719
  // authentication access_token required
1433
1720
  // http bearer authentication required
1434
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1721
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1435
1722
  // authentication user_token required
1436
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1723
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1437
1724
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1438
1725
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1439
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1726
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1440
1727
  return {
1441
1728
  url: (0, common_1.toPathString)(localVarUrlObj),
1442
1729
  options: localVarRequestOptions,
1443
1730
  };
1444
- },
1731
+ }),
1445
1732
  };
1446
1733
  };
1447
1734
  exports.DeploymentTasksApiAxiosParamCreator = DeploymentTasksApiAxiosParamCreator;
@@ -1461,12 +1748,14 @@ const DeploymentTasksApiFp = function (configuration) {
1461
1748
  * @param {*} [options] Override http request option.
1462
1749
  * @throws {RequiredError}
1463
1750
  */
1464
- async allDeploymentTasks(clusterId, deploymentId, page, perPage, options) {
1465
- var _a, _b, _c;
1466
- const localVarAxiosArgs = await localVarAxiosParamCreator.allDeploymentTasks(clusterId, deploymentId, page, perPage, options);
1467
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1468
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentTasksApi.allDeploymentTasks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1469
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1751
+ allDeploymentTasks(clusterId, deploymentId, page, perPage, options) {
1752
+ return __awaiter(this, void 0, void 0, function* () {
1753
+ var _a, _b, _c;
1754
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentTasks(clusterId, deploymentId, page, perPage, options);
1755
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1756
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentTasksApi.allDeploymentTasks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1757
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1758
+ });
1470
1759
  },
1471
1760
  /**
1472
1761
  *
@@ -1474,12 +1763,14 @@ const DeploymentTasksApiFp = function (configuration) {
1474
1763
  * @param {*} [options] Override http request option.
1475
1764
  * @throws {RequiredError}
1476
1765
  */
1477
- async createDeploymentTask(createDeploymentTask, options) {
1478
- var _a, _b, _c;
1479
- const localVarAxiosArgs = await localVarAxiosParamCreator.createDeploymentTask(createDeploymentTask, options);
1480
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1481
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentTasksApi.createDeploymentTask']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1482
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1766
+ createDeploymentTask(createDeploymentTask, options) {
1767
+ return __awaiter(this, void 0, void 0, function* () {
1768
+ var _a, _b, _c;
1769
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createDeploymentTask(createDeploymentTask, options);
1770
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1771
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentTasksApi.createDeploymentTask']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1772
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1773
+ });
1483
1774
  },
1484
1775
  /**
1485
1776
  *
@@ -1487,12 +1778,14 @@ const DeploymentTasksApiFp = function (configuration) {
1487
1778
  * @param {*} [options] Override http request option.
1488
1779
  * @throws {RequiredError}
1489
1780
  */
1490
- async getDeploymentTask(id, options) {
1491
- var _a, _b, _c;
1492
- const localVarAxiosArgs = await localVarAxiosParamCreator.getDeploymentTask(id, options);
1493
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1494
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentTasksApi.getDeploymentTask']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1495
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1781
+ getDeploymentTask(id, options) {
1782
+ return __awaiter(this, void 0, void 0, function* () {
1783
+ var _a, _b, _c;
1784
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeploymentTask(id, options);
1785
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1786
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentTasksApi.getDeploymentTask']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1787
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1788
+ });
1496
1789
  },
1497
1790
  };
1498
1791
  };
@@ -1582,7 +1875,6 @@ const DeploymentsApiAxiosParamCreator = function (configuration) {
1582
1875
  /**
1583
1876
  *
1584
1877
  * @param {string | null} [name]
1585
- * @param {string | null} [kind]
1586
1878
  * @param {string | null} [kindId]
1587
1879
  * @param {string | null} [clusterId]
1588
1880
  * @param {boolean | null} [enabled]
@@ -1591,7 +1883,7 @@ const DeploymentsApiAxiosParamCreator = function (configuration) {
1591
1883
  * @param {*} [options] Override http request option.
1592
1884
  * @throws {RequiredError}
1593
1885
  */
1594
- allDeployments: async (name, kind, kindId, clusterId, enabled, page, perPage, options = {}) => {
1886
+ allDeployments: (name_1, kindId_1, clusterId_1, enabled_1, page_1, perPage_1, ...args_1) => __awaiter(this, [name_1, kindId_1, clusterId_1, enabled_1, page_1, perPage_1, ...args_1], void 0, function* (name, kindId, clusterId, enabled, page, perPage, options = {}) {
1595
1887
  const localVarPath = `/api/v2/deployments`;
1596
1888
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1597
1889
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1599,20 +1891,17 @@ const DeploymentsApiAxiosParamCreator = function (configuration) {
1599
1891
  if (configuration) {
1600
1892
  baseOptions = configuration.baseOptions;
1601
1893
  }
1602
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1894
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1603
1895
  const localVarHeaderParameter = {};
1604
1896
  const localVarQueryParameter = {};
1605
1897
  // authentication access_token required
1606
1898
  // http bearer authentication required
1607
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1899
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1608
1900
  // authentication user_token required
1609
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1901
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1610
1902
  if (name !== undefined) {
1611
1903
  localVarQueryParameter['name'] = name;
1612
1904
  }
1613
- if (kind !== undefined) {
1614
- localVarQueryParameter['kind'] = kind;
1615
- }
1616
1905
  if (kindId !== undefined) {
1617
1906
  localVarQueryParameter['kind_id'] = kindId;
1618
1907
  }
@@ -1630,19 +1919,19 @@ const DeploymentsApiAxiosParamCreator = function (configuration) {
1630
1919
  }
1631
1920
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1632
1921
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1633
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1922
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1634
1923
  return {
1635
1924
  url: (0, common_1.toPathString)(localVarUrlObj),
1636
1925
  options: localVarRequestOptions,
1637
1926
  };
1638
- },
1927
+ }),
1639
1928
  /**
1640
1929
  *
1641
1930
  * @param {NewDeployment} newDeployment
1642
1931
  * @param {*} [options] Override http request option.
1643
1932
  * @throws {RequiredError}
1644
1933
  */
1645
- createDeployment: async (newDeployment, options = {}) => {
1934
+ createDeployment: (newDeployment_1, ...args_1) => __awaiter(this, [newDeployment_1, ...args_1], void 0, function* (newDeployment, options = {}) {
1646
1935
  // verify required parameter 'newDeployment' is not null or undefined
1647
1936
  (0, common_1.assertParamExists)('createDeployment', 'newDeployment', newDeployment);
1648
1937
  const localVarPath = `/api/v2/deployments`;
@@ -1652,31 +1941,31 @@ const DeploymentsApiAxiosParamCreator = function (configuration) {
1652
1941
  if (configuration) {
1653
1942
  baseOptions = configuration.baseOptions;
1654
1943
  }
1655
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1944
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1656
1945
  const localVarHeaderParameter = {};
1657
1946
  const localVarQueryParameter = {};
1658
1947
  // authentication access_token required
1659
1948
  // http bearer authentication required
1660
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1949
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1661
1950
  // authentication user_token required
1662
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1951
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1663
1952
  localVarHeaderParameter['Content-Type'] = 'application/json';
1664
1953
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1665
1954
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1666
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1955
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1667
1956
  localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(newDeployment, localVarRequestOptions, configuration);
1668
1957
  return {
1669
1958
  url: (0, common_1.toPathString)(localVarUrlObj),
1670
1959
  options: localVarRequestOptions,
1671
1960
  };
1672
- },
1961
+ }),
1673
1962
  /**
1674
1963
  *
1675
1964
  * @param {string} id
1676
1965
  * @param {*} [options] Override http request option.
1677
1966
  * @throws {RequiredError}
1678
1967
  */
1679
- deleteDeployment: async (id, options = {}) => {
1968
+ deleteDeployment: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
1680
1969
  // verify required parameter 'id' is not null or undefined
1681
1970
  (0, common_1.assertParamExists)('deleteDeployment', 'id', id);
1682
1971
  const localVarPath = `/api/v2/deployments/{id}`
@@ -1687,29 +1976,29 @@ const DeploymentsApiAxiosParamCreator = function (configuration) {
1687
1976
  if (configuration) {
1688
1977
  baseOptions = configuration.baseOptions;
1689
1978
  }
1690
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
1979
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1691
1980
  const localVarHeaderParameter = {};
1692
1981
  const localVarQueryParameter = {};
1693
1982
  // authentication access_token required
1694
1983
  // http bearer authentication required
1695
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1984
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1696
1985
  // authentication user_token required
1697
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1986
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1698
1987
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1699
1988
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1700
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1989
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1701
1990
  return {
1702
1991
  url: (0, common_1.toPathString)(localVarUrlObj),
1703
1992
  options: localVarRequestOptions,
1704
1993
  };
1705
- },
1994
+ }),
1706
1995
  /**
1707
1996
  *
1708
1997
  * @param {string} id
1709
1998
  * @param {*} [options] Override http request option.
1710
1999
  * @throws {RequiredError}
1711
2000
  */
1712
- getDeployment: async (id, options = {}) => {
2001
+ getDeployment: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
1713
2002
  // verify required parameter 'id' is not null or undefined
1714
2003
  (0, common_1.assertParamExists)('getDeployment', 'id', id);
1715
2004
  const localVarPath = `/api/v2/deployments/{id}`
@@ -1720,22 +2009,22 @@ const DeploymentsApiAxiosParamCreator = function (configuration) {
1720
2009
  if (configuration) {
1721
2010
  baseOptions = configuration.baseOptions;
1722
2011
  }
1723
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2012
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1724
2013
  const localVarHeaderParameter = {};
1725
2014
  const localVarQueryParameter = {};
1726
2015
  // authentication access_token required
1727
2016
  // http bearer authentication required
1728
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2017
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1729
2018
  // authentication user_token required
1730
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2019
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1731
2020
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1732
2021
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1733
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2022
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1734
2023
  return {
1735
2024
  url: (0, common_1.toPathString)(localVarUrlObj),
1736
2025
  options: localVarRequestOptions,
1737
2026
  };
1738
- },
2027
+ }),
1739
2028
  /**
1740
2029
  *
1741
2030
  * @param {string} id
@@ -1743,7 +2032,7 @@ const DeploymentsApiAxiosParamCreator = function (configuration) {
1743
2032
  * @param {*} [options] Override http request option.
1744
2033
  * @throws {RequiredError}
1745
2034
  */
1746
- updateDeployment: async (id, updateDeployment, options = {}) => {
2035
+ updateDeployment: (id_1, updateDeployment_1, ...args_1) => __awaiter(this, [id_1, updateDeployment_1, ...args_1], void 0, function* (id, updateDeployment, options = {}) {
1747
2036
  // verify required parameter 'id' is not null or undefined
1748
2037
  (0, common_1.assertParamExists)('updateDeployment', 'id', id);
1749
2038
  // verify required parameter 'updateDeployment' is not null or undefined
@@ -1756,24 +2045,24 @@ const DeploymentsApiAxiosParamCreator = function (configuration) {
1756
2045
  if (configuration) {
1757
2046
  baseOptions = configuration.baseOptions;
1758
2047
  }
1759
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
2048
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1760
2049
  const localVarHeaderParameter = {};
1761
2050
  const localVarQueryParameter = {};
1762
2051
  // authentication access_token required
1763
2052
  // http bearer authentication required
1764
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2053
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1765
2054
  // authentication user_token required
1766
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2055
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
1767
2056
  localVarHeaderParameter['Content-Type'] = 'application/json';
1768
2057
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1769
2058
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1770
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2059
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1771
2060
  localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateDeployment, localVarRequestOptions, configuration);
1772
2061
  return {
1773
2062
  url: (0, common_1.toPathString)(localVarUrlObj),
1774
2063
  options: localVarRequestOptions,
1775
2064
  };
1776
- },
2065
+ }),
1777
2066
  };
1778
2067
  };
1779
2068
  exports.DeploymentsApiAxiosParamCreator = DeploymentsApiAxiosParamCreator;
@@ -1787,7 +2076,6 @@ const DeploymentsApiFp = function (configuration) {
1787
2076
  /**
1788
2077
  *
1789
2078
  * @param {string | null} [name]
1790
- * @param {string | null} [kind]
1791
2079
  * @param {string | null} [kindId]
1792
2080
  * @param {string | null} [clusterId]
1793
2081
  * @param {boolean | null} [enabled]
@@ -1796,12 +2084,14 @@ const DeploymentsApiFp = function (configuration) {
1796
2084
  * @param {*} [options] Override http request option.
1797
2085
  * @throws {RequiredError}
1798
2086
  */
1799
- async allDeployments(name, kind, kindId, clusterId, enabled, page, perPage, options) {
1800
- var _a, _b, _c;
1801
- const localVarAxiosArgs = await localVarAxiosParamCreator.allDeployments(name, kind, kindId, clusterId, enabled, page, perPage, options);
1802
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1803
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentsApi.allDeployments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1804
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2087
+ allDeployments(name, kindId, clusterId, enabled, page, perPage, options) {
2088
+ return __awaiter(this, void 0, void 0, function* () {
2089
+ var _a, _b, _c;
2090
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeployments(name, kindId, clusterId, enabled, page, perPage, options);
2091
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2092
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentsApi.allDeployments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2093
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2094
+ });
1805
2095
  },
1806
2096
  /**
1807
2097
  *
@@ -1809,12 +2099,14 @@ const DeploymentsApiFp = function (configuration) {
1809
2099
  * @param {*} [options] Override http request option.
1810
2100
  * @throws {RequiredError}
1811
2101
  */
1812
- async createDeployment(newDeployment, options) {
1813
- var _a, _b, _c;
1814
- const localVarAxiosArgs = await localVarAxiosParamCreator.createDeployment(newDeployment, options);
1815
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1816
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentsApi.createDeployment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1817
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2102
+ createDeployment(newDeployment, options) {
2103
+ return __awaiter(this, void 0, void 0, function* () {
2104
+ var _a, _b, _c;
2105
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createDeployment(newDeployment, options);
2106
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2107
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentsApi.createDeployment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2108
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2109
+ });
1818
2110
  },
1819
2111
  /**
1820
2112
  *
@@ -1822,12 +2114,14 @@ const DeploymentsApiFp = function (configuration) {
1822
2114
  * @param {*} [options] Override http request option.
1823
2115
  * @throws {RequiredError}
1824
2116
  */
1825
- async deleteDeployment(id, options) {
1826
- var _a, _b, _c;
1827
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeployment(id, options);
1828
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1829
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentsApi.deleteDeployment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1830
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2117
+ deleteDeployment(id, options) {
2118
+ return __awaiter(this, void 0, void 0, function* () {
2119
+ var _a, _b, _c;
2120
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDeployment(id, options);
2121
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2122
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentsApi.deleteDeployment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2123
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2124
+ });
1831
2125
  },
1832
2126
  /**
1833
2127
  *
@@ -1835,12 +2129,14 @@ const DeploymentsApiFp = function (configuration) {
1835
2129
  * @param {*} [options] Override http request option.
1836
2130
  * @throws {RequiredError}
1837
2131
  */
1838
- async getDeployment(id, options) {
1839
- var _a, _b, _c;
1840
- const localVarAxiosArgs = await localVarAxiosParamCreator.getDeployment(id, options);
1841
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1842
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentsApi.getDeployment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1843
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2132
+ getDeployment(id, options) {
2133
+ return __awaiter(this, void 0, void 0, function* () {
2134
+ var _a, _b, _c;
2135
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeployment(id, options);
2136
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2137
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentsApi.getDeployment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2138
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2139
+ });
1844
2140
  },
1845
2141
  /**
1846
2142
  *
@@ -1849,12 +2145,14 @@ const DeploymentsApiFp = function (configuration) {
1849
2145
  * @param {*} [options] Override http request option.
1850
2146
  * @throws {RequiredError}
1851
2147
  */
1852
- async updateDeployment(id, updateDeployment, options) {
1853
- var _a, _b, _c;
1854
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateDeployment(id, updateDeployment, options);
1855
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1856
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentsApi.updateDeployment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1857
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2148
+ updateDeployment(id, updateDeployment, options) {
2149
+ return __awaiter(this, void 0, void 0, function* () {
2150
+ var _a, _b, _c;
2151
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDeployment(id, updateDeployment, options);
2152
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2153
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeploymentsApi.updateDeployment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2154
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2155
+ });
1858
2156
  },
1859
2157
  };
1860
2158
  };
@@ -1873,7 +2171,7 @@ const DeploymentsApiFactory = function (configuration, basePath, axios) {
1873
2171
  * @throws {RequiredError}
1874
2172
  */
1875
2173
  allDeployments(requestParameters = {}, options) {
1876
- return localVarFp.allDeployments(requestParameters.name, requestParameters.kind, requestParameters.kindId, requestParameters.clusterId, requestParameters.enabled, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
2174
+ return localVarFp.allDeployments(requestParameters.name, requestParameters.kindId, requestParameters.clusterId, requestParameters.enabled, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
1877
2175
  },
1878
2176
  /**
1879
2177
  *
@@ -1929,7 +2227,7 @@ class DeploymentsApi extends base_1.BaseAPI {
1929
2227
  * @memberof DeploymentsApi
1930
2228
  */
1931
2229
  allDeployments(requestParameters = {}, options) {
1932
- return (0, exports.DeploymentsApiFp)(this.configuration).allDeployments(requestParameters.name, requestParameters.kind, requestParameters.kindId, requestParameters.clusterId, requestParameters.enabled, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
2230
+ return (0, exports.DeploymentsApiFp)(this.configuration).allDeployments(requestParameters.name, requestParameters.kindId, requestParameters.clusterId, requestParameters.enabled, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
1933
2231
  }
1934
2232
  /**
1935
2233
  *
@@ -1987,7 +2285,7 @@ const EnvUserPermissionsApiAxiosParamCreator = function (configuration) {
1987
2285
  * @param {*} [options] Override http request option.
1988
2286
  * @throws {RequiredError}
1989
2287
  */
1990
- allEnvUserPermissions: async (envId, page, perPage, options = {}) => {
2288
+ allEnvUserPermissions: (envId_1, page_1, perPage_1, ...args_1) => __awaiter(this, [envId_1, page_1, perPage_1, ...args_1], void 0, function* (envId, page, perPage, options = {}) {
1991
2289
  const localVarPath = `/api/v2/env-user-permissions`;
1992
2290
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1993
2291
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1995,14 +2293,14 @@ const EnvUserPermissionsApiAxiosParamCreator = function (configuration) {
1995
2293
  if (configuration) {
1996
2294
  baseOptions = configuration.baseOptions;
1997
2295
  }
1998
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2296
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1999
2297
  const localVarHeaderParameter = {};
2000
2298
  const localVarQueryParameter = {};
2001
2299
  // authentication access_token required
2002
2300
  // http bearer authentication required
2003
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2301
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2004
2302
  // authentication user_token required
2005
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2303
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2006
2304
  if (envId !== undefined) {
2007
2305
  localVarQueryParameter['env_id'] = envId;
2008
2306
  }
@@ -2014,19 +2312,19 @@ const EnvUserPermissionsApiAxiosParamCreator = function (configuration) {
2014
2312
  }
2015
2313
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2016
2314
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2017
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2315
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2018
2316
  return {
2019
2317
  url: (0, common_1.toPathString)(localVarUrlObj),
2020
2318
  options: localVarRequestOptions,
2021
2319
  };
2022
- },
2320
+ }),
2023
2321
  /**
2024
2322
  *
2025
2323
  * @param {NewEnvUserPermission} newEnvUserPermission
2026
2324
  * @param {*} [options] Override http request option.
2027
2325
  * @throws {RequiredError}
2028
2326
  */
2029
- createEnvUserPermission: async (newEnvUserPermission, options = {}) => {
2327
+ createEnvUserPermission: (newEnvUserPermission_1, ...args_1) => __awaiter(this, [newEnvUserPermission_1, ...args_1], void 0, function* (newEnvUserPermission, options = {}) {
2030
2328
  // verify required parameter 'newEnvUserPermission' is not null or undefined
2031
2329
  (0, common_1.assertParamExists)('createEnvUserPermission', 'newEnvUserPermission', newEnvUserPermission);
2032
2330
  const localVarPath = `/api/v2/env-user-permissions`;
@@ -2036,31 +2334,31 @@ const EnvUserPermissionsApiAxiosParamCreator = function (configuration) {
2036
2334
  if (configuration) {
2037
2335
  baseOptions = configuration.baseOptions;
2038
2336
  }
2039
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2337
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2040
2338
  const localVarHeaderParameter = {};
2041
2339
  const localVarQueryParameter = {};
2042
2340
  // authentication access_token required
2043
2341
  // http bearer authentication required
2044
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2342
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2045
2343
  // authentication user_token required
2046
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2344
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2047
2345
  localVarHeaderParameter['Content-Type'] = 'application/json';
2048
2346
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2049
2347
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2050
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2348
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2051
2349
  localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(newEnvUserPermission, localVarRequestOptions, configuration);
2052
2350
  return {
2053
2351
  url: (0, common_1.toPathString)(localVarUrlObj),
2054
2352
  options: localVarRequestOptions,
2055
2353
  };
2056
- },
2354
+ }),
2057
2355
  /**
2058
2356
  *
2059
2357
  * @param {string} id
2060
2358
  * @param {*} [options] Override http request option.
2061
2359
  * @throws {RequiredError}
2062
2360
  */
2063
- deleteEnvUserPermission: async (id, options = {}) => {
2361
+ deleteEnvUserPermission: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2064
2362
  // verify required parameter 'id' is not null or undefined
2065
2363
  (0, common_1.assertParamExists)('deleteEnvUserPermission', 'id', id);
2066
2364
  const localVarPath = `/api/v2/env-user-permissions/{id}`
@@ -2071,29 +2369,29 @@ const EnvUserPermissionsApiAxiosParamCreator = function (configuration) {
2071
2369
  if (configuration) {
2072
2370
  baseOptions = configuration.baseOptions;
2073
2371
  }
2074
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
2372
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
2075
2373
  const localVarHeaderParameter = {};
2076
2374
  const localVarQueryParameter = {};
2077
2375
  // authentication access_token required
2078
2376
  // http bearer authentication required
2079
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2377
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2080
2378
  // authentication user_token required
2081
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2379
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2082
2380
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2083
2381
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2084
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2382
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2085
2383
  return {
2086
2384
  url: (0, common_1.toPathString)(localVarUrlObj),
2087
2385
  options: localVarRequestOptions,
2088
2386
  };
2089
- },
2387
+ }),
2090
2388
  /**
2091
2389
  *
2092
2390
  * @param {string} id
2093
2391
  * @param {*} [options] Override http request option.
2094
2392
  * @throws {RequiredError}
2095
2393
  */
2096
- getEnvUserPermission: async (id, options = {}) => {
2394
+ getEnvUserPermission: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2097
2395
  // verify required parameter 'id' is not null or undefined
2098
2396
  (0, common_1.assertParamExists)('getEnvUserPermission', 'id', id);
2099
2397
  const localVarPath = `/api/v2/env-user-permissions/{id}`
@@ -2104,22 +2402,22 @@ const EnvUserPermissionsApiAxiosParamCreator = function (configuration) {
2104
2402
  if (configuration) {
2105
2403
  baseOptions = configuration.baseOptions;
2106
2404
  }
2107
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2405
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2108
2406
  const localVarHeaderParameter = {};
2109
2407
  const localVarQueryParameter = {};
2110
2408
  // authentication access_token required
2111
2409
  // http bearer authentication required
2112
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2410
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2113
2411
  // authentication user_token required
2114
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2412
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2115
2413
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2116
2414
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2117
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2415
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2118
2416
  return {
2119
2417
  url: (0, common_1.toPathString)(localVarUrlObj),
2120
2418
  options: localVarRequestOptions,
2121
2419
  };
2122
- },
2420
+ }),
2123
2421
  };
2124
2422
  };
2125
2423
  exports.EnvUserPermissionsApiAxiosParamCreator = EnvUserPermissionsApiAxiosParamCreator;
@@ -2138,12 +2436,14 @@ const EnvUserPermissionsApiFp = function (configuration) {
2138
2436
  * @param {*} [options] Override http request option.
2139
2437
  * @throws {RequiredError}
2140
2438
  */
2141
- async allEnvUserPermissions(envId, page, perPage, options) {
2142
- var _a, _b, _c;
2143
- const localVarAxiosArgs = await localVarAxiosParamCreator.allEnvUserPermissions(envId, page, perPage, options);
2144
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2145
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnvUserPermissionsApi.allEnvUserPermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2146
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2439
+ allEnvUserPermissions(envId, page, perPage, options) {
2440
+ return __awaiter(this, void 0, void 0, function* () {
2441
+ var _a, _b, _c;
2442
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allEnvUserPermissions(envId, page, perPage, options);
2443
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2444
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnvUserPermissionsApi.allEnvUserPermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2445
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2446
+ });
2147
2447
  },
2148
2448
  /**
2149
2449
  *
@@ -2151,12 +2451,14 @@ const EnvUserPermissionsApiFp = function (configuration) {
2151
2451
  * @param {*} [options] Override http request option.
2152
2452
  * @throws {RequiredError}
2153
2453
  */
2154
- async createEnvUserPermission(newEnvUserPermission, options) {
2155
- var _a, _b, _c;
2156
- const localVarAxiosArgs = await localVarAxiosParamCreator.createEnvUserPermission(newEnvUserPermission, options);
2157
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2158
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnvUserPermissionsApi.createEnvUserPermission']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2159
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2454
+ createEnvUserPermission(newEnvUserPermission, options) {
2455
+ return __awaiter(this, void 0, void 0, function* () {
2456
+ var _a, _b, _c;
2457
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createEnvUserPermission(newEnvUserPermission, options);
2458
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2459
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnvUserPermissionsApi.createEnvUserPermission']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2460
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2461
+ });
2160
2462
  },
2161
2463
  /**
2162
2464
  *
@@ -2164,12 +2466,14 @@ const EnvUserPermissionsApiFp = function (configuration) {
2164
2466
  * @param {*} [options] Override http request option.
2165
2467
  * @throws {RequiredError}
2166
2468
  */
2167
- async deleteEnvUserPermission(id, options) {
2168
- var _a, _b, _c;
2169
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEnvUserPermission(id, options);
2170
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2171
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnvUserPermissionsApi.deleteEnvUserPermission']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2172
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2469
+ deleteEnvUserPermission(id, options) {
2470
+ return __awaiter(this, void 0, void 0, function* () {
2471
+ var _a, _b, _c;
2472
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEnvUserPermission(id, options);
2473
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2474
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnvUserPermissionsApi.deleteEnvUserPermission']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2475
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2476
+ });
2173
2477
  },
2174
2478
  /**
2175
2479
  *
@@ -2177,12 +2481,14 @@ const EnvUserPermissionsApiFp = function (configuration) {
2177
2481
  * @param {*} [options] Override http request option.
2178
2482
  * @throws {RequiredError}
2179
2483
  */
2180
- async getEnvUserPermission(id, options) {
2181
- var _a, _b, _c;
2182
- const localVarAxiosArgs = await localVarAxiosParamCreator.getEnvUserPermission(id, options);
2183
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2184
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnvUserPermissionsApi.getEnvUserPermission']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2185
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2484
+ getEnvUserPermission(id, options) {
2485
+ return __awaiter(this, void 0, void 0, function* () {
2486
+ var _a, _b, _c;
2487
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEnvUserPermission(id, options);
2488
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2489
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnvUserPermissionsApi.getEnvUserPermission']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2490
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2491
+ });
2186
2492
  },
2187
2493
  };
2188
2494
  };
@@ -2297,7 +2603,7 @@ const EnvsApiAxiosParamCreator = function (configuration) {
2297
2603
  * @param {*} [options] Override http request option.
2298
2604
  * @throws {RequiredError}
2299
2605
  */
2300
- allEnvs: async (name, autoAddNewUsers, page, perPage, options = {}) => {
2606
+ allEnvs: (name_1, autoAddNewUsers_1, page_1, perPage_1, ...args_1) => __awaiter(this, [name_1, autoAddNewUsers_1, page_1, perPage_1, ...args_1], void 0, function* (name, autoAddNewUsers, page, perPage, options = {}) {
2301
2607
  const localVarPath = `/api/v2/envs`;
2302
2608
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2303
2609
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -2305,14 +2611,14 @@ const EnvsApiAxiosParamCreator = function (configuration) {
2305
2611
  if (configuration) {
2306
2612
  baseOptions = configuration.baseOptions;
2307
2613
  }
2308
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2614
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2309
2615
  const localVarHeaderParameter = {};
2310
2616
  const localVarQueryParameter = {};
2311
2617
  // authentication access_token required
2312
2618
  // http bearer authentication required
2313
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2619
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2314
2620
  // authentication user_token required
2315
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2621
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2316
2622
  if (name !== undefined) {
2317
2623
  localVarQueryParameter['name'] = name;
2318
2624
  }
@@ -2327,19 +2633,19 @@ const EnvsApiAxiosParamCreator = function (configuration) {
2327
2633
  }
2328
2634
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2329
2635
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2330
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2636
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2331
2637
  return {
2332
2638
  url: (0, common_1.toPathString)(localVarUrlObj),
2333
2639
  options: localVarRequestOptions,
2334
2640
  };
2335
- },
2641
+ }),
2336
2642
  /**
2337
2643
  *
2338
2644
  * @param {NewEnv} newEnv
2339
2645
  * @param {*} [options] Override http request option.
2340
2646
  * @throws {RequiredError}
2341
2647
  */
2342
- createEnv: async (newEnv, options = {}) => {
2648
+ createEnv: (newEnv_1, ...args_1) => __awaiter(this, [newEnv_1, ...args_1], void 0, function* (newEnv, options = {}) {
2343
2649
  // verify required parameter 'newEnv' is not null or undefined
2344
2650
  (0, common_1.assertParamExists)('createEnv', 'newEnv', newEnv);
2345
2651
  const localVarPath = `/api/v2/envs`;
@@ -2349,31 +2655,31 @@ const EnvsApiAxiosParamCreator = function (configuration) {
2349
2655
  if (configuration) {
2350
2656
  baseOptions = configuration.baseOptions;
2351
2657
  }
2352
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2658
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2353
2659
  const localVarHeaderParameter = {};
2354
2660
  const localVarQueryParameter = {};
2355
2661
  // authentication access_token required
2356
2662
  // http bearer authentication required
2357
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2663
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2358
2664
  // authentication user_token required
2359
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2665
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2360
2666
  localVarHeaderParameter['Content-Type'] = 'application/json';
2361
2667
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2362
2668
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2363
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2669
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2364
2670
  localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(newEnv, localVarRequestOptions, configuration);
2365
2671
  return {
2366
2672
  url: (0, common_1.toPathString)(localVarUrlObj),
2367
2673
  options: localVarRequestOptions,
2368
2674
  };
2369
- },
2675
+ }),
2370
2676
  /**
2371
2677
  *
2372
2678
  * @param {string} id
2373
2679
  * @param {*} [options] Override http request option.
2374
2680
  * @throws {RequiredError}
2375
2681
  */
2376
- deleteEnv: async (id, options = {}) => {
2682
+ deleteEnv: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2377
2683
  // verify required parameter 'id' is not null or undefined
2378
2684
  (0, common_1.assertParamExists)('deleteEnv', 'id', id);
2379
2685
  const localVarPath = `/api/v2/envs/{id}`
@@ -2384,29 +2690,29 @@ const EnvsApiAxiosParamCreator = function (configuration) {
2384
2690
  if (configuration) {
2385
2691
  baseOptions = configuration.baseOptions;
2386
2692
  }
2387
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
2693
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
2388
2694
  const localVarHeaderParameter = {};
2389
2695
  const localVarQueryParameter = {};
2390
2696
  // authentication access_token required
2391
2697
  // http bearer authentication required
2392
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2698
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2393
2699
  // authentication user_token required
2394
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2700
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2395
2701
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2396
2702
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2397
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2703
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2398
2704
  return {
2399
2705
  url: (0, common_1.toPathString)(localVarUrlObj),
2400
2706
  options: localVarRequestOptions,
2401
2707
  };
2402
- },
2708
+ }),
2403
2709
  /**
2404
2710
  *
2405
2711
  * @param {string} id
2406
2712
  * @param {*} [options] Override http request option.
2407
2713
  * @throws {RequiredError}
2408
2714
  */
2409
- getEnv: async (id, options = {}) => {
2715
+ getEnv: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2410
2716
  // verify required parameter 'id' is not null or undefined
2411
2717
  (0, common_1.assertParamExists)('getEnv', 'id', id);
2412
2718
  const localVarPath = `/api/v2/envs/{id}`
@@ -2417,22 +2723,22 @@ const EnvsApiAxiosParamCreator = function (configuration) {
2417
2723
  if (configuration) {
2418
2724
  baseOptions = configuration.baseOptions;
2419
2725
  }
2420
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2726
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2421
2727
  const localVarHeaderParameter = {};
2422
2728
  const localVarQueryParameter = {};
2423
2729
  // authentication access_token required
2424
2730
  // http bearer authentication required
2425
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2731
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2426
2732
  // authentication user_token required
2427
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2733
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2428
2734
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2429
2735
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2430
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2736
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2431
2737
  return {
2432
2738
  url: (0, common_1.toPathString)(localVarUrlObj),
2433
2739
  options: localVarRequestOptions,
2434
2740
  };
2435
- },
2741
+ }),
2436
2742
  /**
2437
2743
  *
2438
2744
  * @param {string} id
@@ -2440,7 +2746,7 @@ const EnvsApiAxiosParamCreator = function (configuration) {
2440
2746
  * @param {*} [options] Override http request option.
2441
2747
  * @throws {RequiredError}
2442
2748
  */
2443
- updateEnv: async (id, updateEnv, options = {}) => {
2749
+ updateEnv: (id_1, updateEnv_1, ...args_1) => __awaiter(this, [id_1, updateEnv_1, ...args_1], void 0, function* (id, updateEnv, options = {}) {
2444
2750
  // verify required parameter 'id' is not null or undefined
2445
2751
  (0, common_1.assertParamExists)('updateEnv', 'id', id);
2446
2752
  // verify required parameter 'updateEnv' is not null or undefined
@@ -2453,24 +2759,24 @@ const EnvsApiAxiosParamCreator = function (configuration) {
2453
2759
  if (configuration) {
2454
2760
  baseOptions = configuration.baseOptions;
2455
2761
  }
2456
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
2762
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2457
2763
  const localVarHeaderParameter = {};
2458
2764
  const localVarQueryParameter = {};
2459
2765
  // authentication access_token required
2460
2766
  // http bearer authentication required
2461
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2767
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2462
2768
  // authentication user_token required
2463
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2769
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2464
2770
  localVarHeaderParameter['Content-Type'] = 'application/json';
2465
2771
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2466
2772
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2467
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2773
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2468
2774
  localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateEnv, localVarRequestOptions, configuration);
2469
2775
  return {
2470
2776
  url: (0, common_1.toPathString)(localVarUrlObj),
2471
2777
  options: localVarRequestOptions,
2472
2778
  };
2473
- },
2779
+ }),
2474
2780
  };
2475
2781
  };
2476
2782
  exports.EnvsApiAxiosParamCreator = EnvsApiAxiosParamCreator;
@@ -2490,12 +2796,14 @@ const EnvsApiFp = function (configuration) {
2490
2796
  * @param {*} [options] Override http request option.
2491
2797
  * @throws {RequiredError}
2492
2798
  */
2493
- async allEnvs(name, autoAddNewUsers, page, perPage, options) {
2494
- var _a, _b, _c;
2495
- const localVarAxiosArgs = await localVarAxiosParamCreator.allEnvs(name, autoAddNewUsers, page, perPage, options);
2496
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2497
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnvsApi.allEnvs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2498
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2799
+ allEnvs(name, autoAddNewUsers, page, perPage, options) {
2800
+ return __awaiter(this, void 0, void 0, function* () {
2801
+ var _a, _b, _c;
2802
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allEnvs(name, autoAddNewUsers, page, perPage, options);
2803
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2804
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnvsApi.allEnvs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2805
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2806
+ });
2499
2807
  },
2500
2808
  /**
2501
2809
  *
@@ -2503,12 +2811,14 @@ const EnvsApiFp = function (configuration) {
2503
2811
  * @param {*} [options] Override http request option.
2504
2812
  * @throws {RequiredError}
2505
2813
  */
2506
- async createEnv(newEnv, options) {
2507
- var _a, _b, _c;
2508
- const localVarAxiosArgs = await localVarAxiosParamCreator.createEnv(newEnv, options);
2509
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2510
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnvsApi.createEnv']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2511
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2814
+ createEnv(newEnv, options) {
2815
+ return __awaiter(this, void 0, void 0, function* () {
2816
+ var _a, _b, _c;
2817
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createEnv(newEnv, options);
2818
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2819
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnvsApi.createEnv']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2820
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2821
+ });
2512
2822
  },
2513
2823
  /**
2514
2824
  *
@@ -2516,12 +2826,14 @@ const EnvsApiFp = function (configuration) {
2516
2826
  * @param {*} [options] Override http request option.
2517
2827
  * @throws {RequiredError}
2518
2828
  */
2519
- async deleteEnv(id, options) {
2520
- var _a, _b, _c;
2521
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEnv(id, options);
2522
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2523
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnvsApi.deleteEnv']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2524
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2829
+ deleteEnv(id, options) {
2830
+ return __awaiter(this, void 0, void 0, function* () {
2831
+ var _a, _b, _c;
2832
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEnv(id, options);
2833
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2834
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnvsApi.deleteEnv']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2835
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2836
+ });
2525
2837
  },
2526
2838
  /**
2527
2839
  *
@@ -2529,12 +2841,14 @@ const EnvsApiFp = function (configuration) {
2529
2841
  * @param {*} [options] Override http request option.
2530
2842
  * @throws {RequiredError}
2531
2843
  */
2532
- async getEnv(id, options) {
2533
- var _a, _b, _c;
2534
- const localVarAxiosArgs = await localVarAxiosParamCreator.getEnv(id, options);
2535
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2536
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnvsApi.getEnv']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2537
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2844
+ getEnv(id, options) {
2845
+ return __awaiter(this, void 0, void 0, function* () {
2846
+ var _a, _b, _c;
2847
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEnv(id, options);
2848
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2849
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnvsApi.getEnv']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2850
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2851
+ });
2538
2852
  },
2539
2853
  /**
2540
2854
  *
@@ -2543,12 +2857,14 @@ const EnvsApiFp = function (configuration) {
2543
2857
  * @param {*} [options] Override http request option.
2544
2858
  * @throws {RequiredError}
2545
2859
  */
2546
- async updateEnv(id, updateEnv, options) {
2547
- var _a, _b, _c;
2548
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateEnv(id, updateEnv, options);
2549
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2550
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnvsApi.updateEnv']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2551
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2860
+ updateEnv(id, updateEnv, options) {
2861
+ return __awaiter(this, void 0, void 0, function* () {
2862
+ var _a, _b, _c;
2863
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEnv(id, updateEnv, options);
2864
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2865
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnvsApi.updateEnv']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2866
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2867
+ });
2552
2868
  },
2553
2869
  };
2554
2870
  };
@@ -2682,7 +2998,7 @@ const HelmChartsApiAxiosParamCreator = function (configuration) {
2682
2998
  * @param {*} [options] Override http request option.
2683
2999
  * @throws {RequiredError}
2684
3000
  */
2685
- allHelmCharts: async (helmRegistryId, parsedBranch, page, perPage, options = {}) => {
3001
+ allHelmCharts: (helmRegistryId_1, parsedBranch_1, page_1, perPage_1, ...args_1) => __awaiter(this, [helmRegistryId_1, parsedBranch_1, page_1, perPage_1, ...args_1], void 0, function* (helmRegistryId, parsedBranch, page, perPage, options = {}) {
2686
3002
  const localVarPath = `/api/v2/helm-charts`;
2687
3003
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2688
3004
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -2690,14 +3006,14 @@ const HelmChartsApiAxiosParamCreator = function (configuration) {
2690
3006
  if (configuration) {
2691
3007
  baseOptions = configuration.baseOptions;
2692
3008
  }
2693
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3009
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2694
3010
  const localVarHeaderParameter = {};
2695
3011
  const localVarQueryParameter = {};
2696
3012
  // authentication access_token required
2697
3013
  // http bearer authentication required
2698
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3014
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2699
3015
  // authentication user_token required
2700
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3016
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2701
3017
  if (helmRegistryId !== undefined) {
2702
3018
  localVarQueryParameter['helm_registry_id'] = helmRegistryId;
2703
3019
  }
@@ -2712,19 +3028,19 @@ const HelmChartsApiAxiosParamCreator = function (configuration) {
2712
3028
  }
2713
3029
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2714
3030
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2715
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3031
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2716
3032
  return {
2717
3033
  url: (0, common_1.toPathString)(localVarUrlObj),
2718
3034
  options: localVarRequestOptions,
2719
3035
  };
2720
- },
3036
+ }),
2721
3037
  /**
2722
3038
  *
2723
3039
  * @param {string} id
2724
3040
  * @param {*} [options] Override http request option.
2725
3041
  * @throws {RequiredError}
2726
3042
  */
2727
- getHelmChart: async (id, options = {}) => {
3043
+ getHelmChart: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2728
3044
  // verify required parameter 'id' is not null or undefined
2729
3045
  (0, common_1.assertParamExists)('getHelmChart', 'id', id);
2730
3046
  const localVarPath = `/api/v2/helm-charts/{id}`
@@ -2735,22 +3051,22 @@ const HelmChartsApiAxiosParamCreator = function (configuration) {
2735
3051
  if (configuration) {
2736
3052
  baseOptions = configuration.baseOptions;
2737
3053
  }
2738
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3054
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2739
3055
  const localVarHeaderParameter = {};
2740
3056
  const localVarQueryParameter = {};
2741
3057
  // authentication access_token required
2742
3058
  // http bearer authentication required
2743
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3059
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2744
3060
  // authentication user_token required
2745
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3061
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2746
3062
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2747
3063
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2748
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3064
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2749
3065
  return {
2750
3066
  url: (0, common_1.toPathString)(localVarUrlObj),
2751
3067
  options: localVarRequestOptions,
2752
3068
  };
2753
- },
3069
+ }),
2754
3070
  };
2755
3071
  };
2756
3072
  exports.HelmChartsApiAxiosParamCreator = HelmChartsApiAxiosParamCreator;
@@ -2770,12 +3086,14 @@ const HelmChartsApiFp = function (configuration) {
2770
3086
  * @param {*} [options] Override http request option.
2771
3087
  * @throws {RequiredError}
2772
3088
  */
2773
- async allHelmCharts(helmRegistryId, parsedBranch, page, perPage, options) {
2774
- var _a, _b, _c;
2775
- const localVarAxiosArgs = await localVarAxiosParamCreator.allHelmCharts(helmRegistryId, parsedBranch, page, perPage, options);
2776
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2777
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HelmChartsApi.allHelmCharts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2778
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3089
+ allHelmCharts(helmRegistryId, parsedBranch, page, perPage, options) {
3090
+ return __awaiter(this, void 0, void 0, function* () {
3091
+ var _a, _b, _c;
3092
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmCharts(helmRegistryId, parsedBranch, page, perPage, options);
3093
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3094
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HelmChartsApi.allHelmCharts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3095
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3096
+ });
2779
3097
  },
2780
3098
  /**
2781
3099
  *
@@ -2783,12 +3101,14 @@ const HelmChartsApiFp = function (configuration) {
2783
3101
  * @param {*} [options] Override http request option.
2784
3102
  * @throws {RequiredError}
2785
3103
  */
2786
- async getHelmChart(id, options) {
2787
- var _a, _b, _c;
2788
- const localVarAxiosArgs = await localVarAxiosParamCreator.getHelmChart(id, options);
2789
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2790
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HelmChartsApi.getHelmChart']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2791
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3104
+ getHelmChart(id, options) {
3105
+ return __awaiter(this, void 0, void 0, function* () {
3106
+ var _a, _b, _c;
3107
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getHelmChart(id, options);
3108
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3109
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HelmChartsApi.getHelmChart']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3110
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3111
+ });
2792
3112
  },
2793
3113
  };
2794
3114
  };
@@ -2859,14 +3179,13 @@ const HelmRegistriesApiAxiosParamCreator = function (configuration) {
2859
3179
  /**
2860
3180
  *
2861
3181
  * @param {string | null} [repoName]
2862
- * @param {string | null} [kind]
2863
3182
  * @param {string | null} [kindId]
2864
3183
  * @param {number | null} [page]
2865
3184
  * @param {number | null} [perPage]
2866
3185
  * @param {*} [options] Override http request option.
2867
3186
  * @throws {RequiredError}
2868
3187
  */
2869
- allHelmRegistries: async (repoName, kind, kindId, page, perPage, options = {}) => {
3188
+ allHelmRegistries: (repoName_1, kindId_1, page_1, perPage_1, ...args_1) => __awaiter(this, [repoName_1, kindId_1, page_1, perPage_1, ...args_1], void 0, function* (repoName, kindId, page, perPage, options = {}) {
2870
3189
  const localVarPath = `/api/v2/helm-registries`;
2871
3190
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2872
3191
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -2874,20 +3193,17 @@ const HelmRegistriesApiAxiosParamCreator = function (configuration) {
2874
3193
  if (configuration) {
2875
3194
  baseOptions = configuration.baseOptions;
2876
3195
  }
2877
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3196
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2878
3197
  const localVarHeaderParameter = {};
2879
3198
  const localVarQueryParameter = {};
2880
3199
  // authentication access_token required
2881
3200
  // http bearer authentication required
2882
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3201
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2883
3202
  // authentication user_token required
2884
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3203
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2885
3204
  if (repoName !== undefined) {
2886
3205
  localVarQueryParameter['repo_name'] = repoName;
2887
3206
  }
2888
- if (kind !== undefined) {
2889
- localVarQueryParameter['kind'] = kind;
2890
- }
2891
3207
  if (kindId !== undefined) {
2892
3208
  localVarQueryParameter['kind_id'] = kindId;
2893
3209
  }
@@ -2899,19 +3215,19 @@ const HelmRegistriesApiAxiosParamCreator = function (configuration) {
2899
3215
  }
2900
3216
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2901
3217
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2902
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3218
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2903
3219
  return {
2904
3220
  url: (0, common_1.toPathString)(localVarUrlObj),
2905
3221
  options: localVarRequestOptions,
2906
3222
  };
2907
- },
3223
+ }),
2908
3224
  /**
2909
3225
  *
2910
3226
  * @param {string} id
2911
3227
  * @param {*} [options] Override http request option.
2912
3228
  * @throws {RequiredError}
2913
3229
  */
2914
- getHelmRegistry: async (id, options = {}) => {
3230
+ getHelmRegistry: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2915
3231
  // verify required parameter 'id' is not null or undefined
2916
3232
  (0, common_1.assertParamExists)('getHelmRegistry', 'id', id);
2917
3233
  const localVarPath = `/api/v2/helm-registries/{id}`
@@ -2922,22 +3238,22 @@ const HelmRegistriesApiAxiosParamCreator = function (configuration) {
2922
3238
  if (configuration) {
2923
3239
  baseOptions = configuration.baseOptions;
2924
3240
  }
2925
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3241
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2926
3242
  const localVarHeaderParameter = {};
2927
3243
  const localVarQueryParameter = {};
2928
3244
  // authentication access_token required
2929
3245
  // http bearer authentication required
2930
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3246
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2931
3247
  // authentication user_token required
2932
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3248
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2933
3249
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2934
3250
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2935
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3251
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2936
3252
  return {
2937
3253
  url: (0, common_1.toPathString)(localVarUrlObj),
2938
3254
  options: localVarRequestOptions,
2939
3255
  };
2940
- },
3256
+ }),
2941
3257
  /**
2942
3258
  *
2943
3259
  * @param {string} id
@@ -2945,7 +3261,7 @@ const HelmRegistriesApiAxiosParamCreator = function (configuration) {
2945
3261
  * @param {*} [options] Override http request option.
2946
3262
  * @throws {RequiredError}
2947
3263
  */
2948
- updateHelmRegistry: async (id, updateHelmRegistry, options = {}) => {
3264
+ updateHelmRegistry: (id_1, updateHelmRegistry_1, ...args_1) => __awaiter(this, [id_1, updateHelmRegistry_1, ...args_1], void 0, function* (id, updateHelmRegistry, options = {}) {
2949
3265
  // verify required parameter 'id' is not null or undefined
2950
3266
  (0, common_1.assertParamExists)('updateHelmRegistry', 'id', id);
2951
3267
  // verify required parameter 'updateHelmRegistry' is not null or undefined
@@ -2958,24 +3274,24 @@ const HelmRegistriesApiAxiosParamCreator = function (configuration) {
2958
3274
  if (configuration) {
2959
3275
  baseOptions = configuration.baseOptions;
2960
3276
  }
2961
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
3277
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2962
3278
  const localVarHeaderParameter = {};
2963
3279
  const localVarQueryParameter = {};
2964
3280
  // authentication access_token required
2965
3281
  // http bearer authentication required
2966
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3282
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2967
3283
  // authentication user_token required
2968
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3284
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
2969
3285
  localVarHeaderParameter['Content-Type'] = 'application/json';
2970
3286
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2971
3287
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2972
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3288
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2973
3289
  localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateHelmRegistry, localVarRequestOptions, configuration);
2974
3290
  return {
2975
3291
  url: (0, common_1.toPathString)(localVarUrlObj),
2976
3292
  options: localVarRequestOptions,
2977
3293
  };
2978
- },
3294
+ }),
2979
3295
  };
2980
3296
  };
2981
3297
  exports.HelmRegistriesApiAxiosParamCreator = HelmRegistriesApiAxiosParamCreator;
@@ -2989,19 +3305,20 @@ const HelmRegistriesApiFp = function (configuration) {
2989
3305
  /**
2990
3306
  *
2991
3307
  * @param {string | null} [repoName]
2992
- * @param {string | null} [kind]
2993
3308
  * @param {string | null} [kindId]
2994
3309
  * @param {number | null} [page]
2995
3310
  * @param {number | null} [perPage]
2996
3311
  * @param {*} [options] Override http request option.
2997
3312
  * @throws {RequiredError}
2998
3313
  */
2999
- async allHelmRegistries(repoName, kind, kindId, page, perPage, options) {
3000
- var _a, _b, _c;
3001
- const localVarAxiosArgs = await localVarAxiosParamCreator.allHelmRegistries(repoName, kind, kindId, page, perPage, options);
3002
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3003
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HelmRegistriesApi.allHelmRegistries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3004
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3314
+ allHelmRegistries(repoName, kindId, page, perPage, options) {
3315
+ return __awaiter(this, void 0, void 0, function* () {
3316
+ var _a, _b, _c;
3317
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmRegistries(repoName, kindId, page, perPage, options);
3318
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3319
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HelmRegistriesApi.allHelmRegistries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3320
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3321
+ });
3005
3322
  },
3006
3323
  /**
3007
3324
  *
@@ -3009,12 +3326,14 @@ const HelmRegistriesApiFp = function (configuration) {
3009
3326
  * @param {*} [options] Override http request option.
3010
3327
  * @throws {RequiredError}
3011
3328
  */
3012
- async getHelmRegistry(id, options) {
3013
- var _a, _b, _c;
3014
- const localVarAxiosArgs = await localVarAxiosParamCreator.getHelmRegistry(id, options);
3015
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3016
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HelmRegistriesApi.getHelmRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3017
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3329
+ getHelmRegistry(id, options) {
3330
+ return __awaiter(this, void 0, void 0, function* () {
3331
+ var _a, _b, _c;
3332
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getHelmRegistry(id, options);
3333
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3334
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HelmRegistriesApi.getHelmRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3335
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3336
+ });
3018
3337
  },
3019
3338
  /**
3020
3339
  *
@@ -3023,12 +3342,14 @@ const HelmRegistriesApiFp = function (configuration) {
3023
3342
  * @param {*} [options] Override http request option.
3024
3343
  * @throws {RequiredError}
3025
3344
  */
3026
- async updateHelmRegistry(id, updateHelmRegistry, options) {
3027
- var _a, _b, _c;
3028
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateHelmRegistry(id, updateHelmRegistry, options);
3029
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3030
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HelmRegistriesApi.updateHelmRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3031
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3345
+ updateHelmRegistry(id, updateHelmRegistry, options) {
3346
+ return __awaiter(this, void 0, void 0, function* () {
3347
+ var _a, _b, _c;
3348
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateHelmRegistry(id, updateHelmRegistry, options);
3349
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3350
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HelmRegistriesApi.updateHelmRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3351
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3352
+ });
3032
3353
  },
3033
3354
  };
3034
3355
  };
@@ -3047,7 +3368,7 @@ const HelmRegistriesApiFactory = function (configuration, basePath, axios) {
3047
3368
  * @throws {RequiredError}
3048
3369
  */
3049
3370
  allHelmRegistries(requestParameters = {}, options) {
3050
- return localVarFp.allHelmRegistries(requestParameters.repoName, requestParameters.kind, requestParameters.kindId, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
3371
+ return localVarFp.allHelmRegistries(requestParameters.repoName, requestParameters.kindId, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
3051
3372
  },
3052
3373
  /**
3053
3374
  *
@@ -3085,7 +3406,7 @@ class HelmRegistriesApi extends base_1.BaseAPI {
3085
3406
  * @memberof HelmRegistriesApi
3086
3407
  */
3087
3408
  allHelmRegistries(requestParameters = {}, options) {
3088
- return (0, exports.HelmRegistriesApiFp)(this.configuration).allHelmRegistries(requestParameters.repoName, requestParameters.kind, requestParameters.kindId, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
3409
+ return (0, exports.HelmRegistriesApiFp)(this.configuration).allHelmRegistries(requestParameters.repoName, requestParameters.kindId, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
3089
3410
  }
3090
3411
  /**
3091
3412
  *
@@ -3123,7 +3444,7 @@ const HelmTagFormatsApiAxiosParamCreator = function (configuration) {
3123
3444
  * @param {*} [options] Override http request option.
3124
3445
  * @throws {RequiredError}
3125
3446
  */
3126
- allHelmTagFormats: async (pattern, page, perPage, options = {}) => {
3447
+ allHelmTagFormats: (pattern_1, page_1, perPage_1, ...args_1) => __awaiter(this, [pattern_1, page_1, perPage_1, ...args_1], void 0, function* (pattern, page, perPage, options = {}) {
3127
3448
  const localVarPath = `/api/v2/helm-tag-formats`;
3128
3449
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3129
3450
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -3131,14 +3452,14 @@ const HelmTagFormatsApiAxiosParamCreator = function (configuration) {
3131
3452
  if (configuration) {
3132
3453
  baseOptions = configuration.baseOptions;
3133
3454
  }
3134
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3455
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3135
3456
  const localVarHeaderParameter = {};
3136
3457
  const localVarQueryParameter = {};
3137
3458
  // authentication access_token required
3138
3459
  // http bearer authentication required
3139
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3460
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3140
3461
  // authentication user_token required
3141
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3462
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3142
3463
  if (pattern !== undefined) {
3143
3464
  localVarQueryParameter['pattern'] = pattern;
3144
3465
  }
@@ -3150,19 +3471,19 @@ const HelmTagFormatsApiAxiosParamCreator = function (configuration) {
3150
3471
  }
3151
3472
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3152
3473
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3153
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3474
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3154
3475
  return {
3155
3476
  url: (0, common_1.toPathString)(localVarUrlObj),
3156
3477
  options: localVarRequestOptions,
3157
3478
  };
3158
- },
3479
+ }),
3159
3480
  /**
3160
3481
  *
3161
3482
  * @param {NewHelmTagFormat} newHelmTagFormat
3162
3483
  * @param {*} [options] Override http request option.
3163
3484
  * @throws {RequiredError}
3164
3485
  */
3165
- createHelmTagFormat: async (newHelmTagFormat, options = {}) => {
3486
+ createHelmTagFormat: (newHelmTagFormat_1, ...args_1) => __awaiter(this, [newHelmTagFormat_1, ...args_1], void 0, function* (newHelmTagFormat, options = {}) {
3166
3487
  // verify required parameter 'newHelmTagFormat' is not null or undefined
3167
3488
  (0, common_1.assertParamExists)('createHelmTagFormat', 'newHelmTagFormat', newHelmTagFormat);
3168
3489
  const localVarPath = `/api/v2/helm-tag-formats`;
@@ -3172,31 +3493,31 @@ const HelmTagFormatsApiAxiosParamCreator = function (configuration) {
3172
3493
  if (configuration) {
3173
3494
  baseOptions = configuration.baseOptions;
3174
3495
  }
3175
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3496
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3176
3497
  const localVarHeaderParameter = {};
3177
3498
  const localVarQueryParameter = {};
3178
3499
  // authentication access_token required
3179
3500
  // http bearer authentication required
3180
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3501
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3181
3502
  // authentication user_token required
3182
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3503
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3183
3504
  localVarHeaderParameter['Content-Type'] = 'application/json';
3184
3505
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3185
3506
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3186
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3507
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3187
3508
  localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(newHelmTagFormat, localVarRequestOptions, configuration);
3188
3509
  return {
3189
3510
  url: (0, common_1.toPathString)(localVarUrlObj),
3190
3511
  options: localVarRequestOptions,
3191
3512
  };
3192
- },
3513
+ }),
3193
3514
  /**
3194
3515
  *
3195
3516
  * @param {string} id
3196
3517
  * @param {*} [options] Override http request option.
3197
3518
  * @throws {RequiredError}
3198
3519
  */
3199
- deleteHelmTagFormat: async (id, options = {}) => {
3520
+ deleteHelmTagFormat: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
3200
3521
  // verify required parameter 'id' is not null or undefined
3201
3522
  (0, common_1.assertParamExists)('deleteHelmTagFormat', 'id', id);
3202
3523
  const localVarPath = `/api/v2/helm-tag-formats/{id}`
@@ -3207,29 +3528,29 @@ const HelmTagFormatsApiAxiosParamCreator = function (configuration) {
3207
3528
  if (configuration) {
3208
3529
  baseOptions = configuration.baseOptions;
3209
3530
  }
3210
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
3531
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3211
3532
  const localVarHeaderParameter = {};
3212
3533
  const localVarQueryParameter = {};
3213
3534
  // authentication access_token required
3214
3535
  // http bearer authentication required
3215
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3536
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3216
3537
  // authentication user_token required
3217
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3538
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3218
3539
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3219
3540
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3220
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3541
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3221
3542
  return {
3222
3543
  url: (0, common_1.toPathString)(localVarUrlObj),
3223
3544
  options: localVarRequestOptions,
3224
3545
  };
3225
- },
3546
+ }),
3226
3547
  /**
3227
3548
  *
3228
3549
  * @param {string} id
3229
3550
  * @param {*} [options] Override http request option.
3230
3551
  * @throws {RequiredError}
3231
3552
  */
3232
- getHelmTagFormat: async (id, options = {}) => {
3553
+ getHelmTagFormat: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
3233
3554
  // verify required parameter 'id' is not null or undefined
3234
3555
  (0, common_1.assertParamExists)('getHelmTagFormat', 'id', id);
3235
3556
  const localVarPath = `/api/v2/helm-tag-formats/{id}`
@@ -3240,22 +3561,22 @@ const HelmTagFormatsApiAxiosParamCreator = function (configuration) {
3240
3561
  if (configuration) {
3241
3562
  baseOptions = configuration.baseOptions;
3242
3563
  }
3243
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3564
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3244
3565
  const localVarHeaderParameter = {};
3245
3566
  const localVarQueryParameter = {};
3246
3567
  // authentication access_token required
3247
3568
  // http bearer authentication required
3248
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3569
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3249
3570
  // authentication user_token required
3250
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3571
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3251
3572
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3252
3573
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3253
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3574
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3254
3575
  return {
3255
3576
  url: (0, common_1.toPathString)(localVarUrlObj),
3256
3577
  options: localVarRequestOptions,
3257
3578
  };
3258
- },
3579
+ }),
3259
3580
  };
3260
3581
  };
3261
3582
  exports.HelmTagFormatsApiAxiosParamCreator = HelmTagFormatsApiAxiosParamCreator;
@@ -3274,12 +3595,14 @@ const HelmTagFormatsApiFp = function (configuration) {
3274
3595
  * @param {*} [options] Override http request option.
3275
3596
  * @throws {RequiredError}
3276
3597
  */
3277
- async allHelmTagFormats(pattern, page, perPage, options) {
3278
- var _a, _b, _c;
3279
- const localVarAxiosArgs = await localVarAxiosParamCreator.allHelmTagFormats(pattern, page, perPage, options);
3280
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3281
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HelmTagFormatsApi.allHelmTagFormats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3282
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3598
+ allHelmTagFormats(pattern, page, perPage, options) {
3599
+ return __awaiter(this, void 0, void 0, function* () {
3600
+ var _a, _b, _c;
3601
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmTagFormats(pattern, page, perPage, options);
3602
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3603
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HelmTagFormatsApi.allHelmTagFormats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3604
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3605
+ });
3283
3606
  },
3284
3607
  /**
3285
3608
  *
@@ -3287,12 +3610,14 @@ const HelmTagFormatsApiFp = function (configuration) {
3287
3610
  * @param {*} [options] Override http request option.
3288
3611
  * @throws {RequiredError}
3289
3612
  */
3290
- async createHelmTagFormat(newHelmTagFormat, options) {
3291
- var _a, _b, _c;
3292
- const localVarAxiosArgs = await localVarAxiosParamCreator.createHelmTagFormat(newHelmTagFormat, options);
3293
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3294
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HelmTagFormatsApi.createHelmTagFormat']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3295
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3613
+ createHelmTagFormat(newHelmTagFormat, options) {
3614
+ return __awaiter(this, void 0, void 0, function* () {
3615
+ var _a, _b, _c;
3616
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createHelmTagFormat(newHelmTagFormat, options);
3617
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3618
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HelmTagFormatsApi.createHelmTagFormat']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3619
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3620
+ });
3296
3621
  },
3297
3622
  /**
3298
3623
  *
@@ -3300,12 +3625,14 @@ const HelmTagFormatsApiFp = function (configuration) {
3300
3625
  * @param {*} [options] Override http request option.
3301
3626
  * @throws {RequiredError}
3302
3627
  */
3303
- async deleteHelmTagFormat(id, options) {
3304
- var _a, _b, _c;
3305
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteHelmTagFormat(id, options);
3306
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3307
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HelmTagFormatsApi.deleteHelmTagFormat']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3308
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3628
+ deleteHelmTagFormat(id, options) {
3629
+ return __awaiter(this, void 0, void 0, function* () {
3630
+ var _a, _b, _c;
3631
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteHelmTagFormat(id, options);
3632
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3633
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HelmTagFormatsApi.deleteHelmTagFormat']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3634
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3635
+ });
3309
3636
  },
3310
3637
  /**
3311
3638
  *
@@ -3313,12 +3640,14 @@ const HelmTagFormatsApiFp = function (configuration) {
3313
3640
  * @param {*} [options] Override http request option.
3314
3641
  * @throws {RequiredError}
3315
3642
  */
3316
- async getHelmTagFormat(id, options) {
3317
- var _a, _b, _c;
3318
- const localVarAxiosArgs = await localVarAxiosParamCreator.getHelmTagFormat(id, options);
3319
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3320
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HelmTagFormatsApi.getHelmTagFormat']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3321
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3643
+ getHelmTagFormat(id, options) {
3644
+ return __awaiter(this, void 0, void 0, function* () {
3645
+ var _a, _b, _c;
3646
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getHelmTagFormat(id, options);
3647
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3648
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HelmTagFormatsApi.getHelmTagFormat']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3649
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3650
+ });
3322
3651
  },
3323
3652
  };
3324
3653
  };
@@ -3433,7 +3762,7 @@ const KubernetesClustersApiAxiosParamCreator = function (configuration) {
3433
3762
  * @param {*} [options] Override http request option.
3434
3763
  * @throws {RequiredError}
3435
3764
  */
3436
- allK8sClusters: async (envId, name, page, perPage, options = {}) => {
3765
+ allK8sClusters: (envId_1, name_1, page_1, perPage_1, ...args_1) => __awaiter(this, [envId_1, name_1, page_1, perPage_1, ...args_1], void 0, function* (envId, name, page, perPage, options = {}) {
3437
3766
  const localVarPath = `/api/v2/k8s-clusters`;
3438
3767
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3439
3768
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -3441,14 +3770,14 @@ const KubernetesClustersApiAxiosParamCreator = function (configuration) {
3441
3770
  if (configuration) {
3442
3771
  baseOptions = configuration.baseOptions;
3443
3772
  }
3444
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3773
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3445
3774
  const localVarHeaderParameter = {};
3446
3775
  const localVarQueryParameter = {};
3447
3776
  // authentication access_token required
3448
3777
  // http bearer authentication required
3449
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3778
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3450
3779
  // authentication user_token required
3451
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3780
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3452
3781
  if (envId !== undefined) {
3453
3782
  localVarQueryParameter['env_id'] = envId;
3454
3783
  }
@@ -3463,19 +3792,19 @@ const KubernetesClustersApiAxiosParamCreator = function (configuration) {
3463
3792
  }
3464
3793
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3465
3794
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3466
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3795
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3467
3796
  return {
3468
3797
  url: (0, common_1.toPathString)(localVarUrlObj),
3469
3798
  options: localVarRequestOptions,
3470
3799
  };
3471
- },
3800
+ }),
3472
3801
  /**
3473
3802
  *
3474
3803
  * @param {string} id
3475
3804
  * @param {*} [options] Override http request option.
3476
3805
  * @throws {RequiredError}
3477
3806
  */
3478
- deleteK8sCluster: async (id, options = {}) => {
3807
+ deleteK8sCluster: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
3479
3808
  // verify required parameter 'id' is not null or undefined
3480
3809
  (0, common_1.assertParamExists)('deleteK8sCluster', 'id', id);
3481
3810
  const localVarPath = `/api/v2/k8s-clusters/{id}`
@@ -3486,29 +3815,29 @@ const KubernetesClustersApiAxiosParamCreator = function (configuration) {
3486
3815
  if (configuration) {
3487
3816
  baseOptions = configuration.baseOptions;
3488
3817
  }
3489
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
3818
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3490
3819
  const localVarHeaderParameter = {};
3491
3820
  const localVarQueryParameter = {};
3492
3821
  // authentication access_token required
3493
3822
  // http bearer authentication required
3494
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3823
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3495
3824
  // authentication user_token required
3496
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3825
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3497
3826
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3498
3827
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3499
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3828
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3500
3829
  return {
3501
3830
  url: (0, common_1.toPathString)(localVarUrlObj),
3502
3831
  options: localVarRequestOptions,
3503
3832
  };
3504
- },
3833
+ }),
3505
3834
  /**
3506
3835
  *
3507
3836
  * @param {string} id
3508
3837
  * @param {*} [options] Override http request option.
3509
3838
  * @throws {RequiredError}
3510
3839
  */
3511
- getK8sCluster: async (id, options = {}) => {
3840
+ getK8sCluster: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
3512
3841
  // verify required parameter 'id' is not null or undefined
3513
3842
  (0, common_1.assertParamExists)('getK8sCluster', 'id', id);
3514
3843
  const localVarPath = `/api/v2/k8s-clusters/{id}`
@@ -3519,22 +3848,22 @@ const KubernetesClustersApiAxiosParamCreator = function (configuration) {
3519
3848
  if (configuration) {
3520
3849
  baseOptions = configuration.baseOptions;
3521
3850
  }
3522
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3851
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3523
3852
  const localVarHeaderParameter = {};
3524
3853
  const localVarQueryParameter = {};
3525
3854
  // authentication access_token required
3526
3855
  // http bearer authentication required
3527
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3856
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3528
3857
  // authentication user_token required
3529
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3858
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3530
3859
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3531
3860
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3532
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3861
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3533
3862
  return {
3534
3863
  url: (0, common_1.toPathString)(localVarUrlObj),
3535
3864
  options: localVarRequestOptions,
3536
3865
  };
3537
- },
3866
+ }),
3538
3867
  /**
3539
3868
  *
3540
3869
  * @param {string} id
@@ -3542,7 +3871,7 @@ const KubernetesClustersApiAxiosParamCreator = function (configuration) {
3542
3871
  * @param {*} [options] Override http request option.
3543
3872
  * @throws {RequiredError}
3544
3873
  */
3545
- updateK8sCluster: async (id, updateK8sCluster, options = {}) => {
3874
+ updateK8sCluster: (id_1, updateK8sCluster_1, ...args_1) => __awaiter(this, [id_1, updateK8sCluster_1, ...args_1], void 0, function* (id, updateK8sCluster, options = {}) {
3546
3875
  // verify required parameter 'id' is not null or undefined
3547
3876
  (0, common_1.assertParamExists)('updateK8sCluster', 'id', id);
3548
3877
  // verify required parameter 'updateK8sCluster' is not null or undefined
@@ -3555,24 +3884,24 @@ const KubernetesClustersApiAxiosParamCreator = function (configuration) {
3555
3884
  if (configuration) {
3556
3885
  baseOptions = configuration.baseOptions;
3557
3886
  }
3558
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
3887
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
3559
3888
  const localVarHeaderParameter = {};
3560
3889
  const localVarQueryParameter = {};
3561
3890
  // authentication access_token required
3562
3891
  // http bearer authentication required
3563
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3892
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3564
3893
  // authentication user_token required
3565
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3894
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3566
3895
  localVarHeaderParameter['Content-Type'] = 'application/json';
3567
3896
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3568
3897
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3569
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3898
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3570
3899
  localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateK8sCluster, localVarRequestOptions, configuration);
3571
3900
  return {
3572
3901
  url: (0, common_1.toPathString)(localVarUrlObj),
3573
3902
  options: localVarRequestOptions,
3574
3903
  };
3575
- },
3904
+ }),
3576
3905
  };
3577
3906
  };
3578
3907
  exports.KubernetesClustersApiAxiosParamCreator = KubernetesClustersApiAxiosParamCreator;
@@ -3592,12 +3921,14 @@ const KubernetesClustersApiFp = function (configuration) {
3592
3921
  * @param {*} [options] Override http request option.
3593
3922
  * @throws {RequiredError}
3594
3923
  */
3595
- async allK8sClusters(envId, name, page, perPage, options) {
3596
- var _a, _b, _c;
3597
- const localVarAxiosArgs = await localVarAxiosParamCreator.allK8sClusters(envId, name, page, perPage, options);
3598
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3599
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['KubernetesClustersApi.allK8sClusters']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3600
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3924
+ allK8sClusters(envId, name, page, perPage, options) {
3925
+ return __awaiter(this, void 0, void 0, function* () {
3926
+ var _a, _b, _c;
3927
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allK8sClusters(envId, name, page, perPage, options);
3928
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3929
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['KubernetesClustersApi.allK8sClusters']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3930
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3931
+ });
3601
3932
  },
3602
3933
  /**
3603
3934
  *
@@ -3605,12 +3936,14 @@ const KubernetesClustersApiFp = function (configuration) {
3605
3936
  * @param {*} [options] Override http request option.
3606
3937
  * @throws {RequiredError}
3607
3938
  */
3608
- async deleteK8sCluster(id, options) {
3609
- var _a, _b, _c;
3610
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteK8sCluster(id, options);
3611
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3612
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['KubernetesClustersApi.deleteK8sCluster']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3613
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3939
+ deleteK8sCluster(id, options) {
3940
+ return __awaiter(this, void 0, void 0, function* () {
3941
+ var _a, _b, _c;
3942
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteK8sCluster(id, options);
3943
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3944
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['KubernetesClustersApi.deleteK8sCluster']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3945
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3946
+ });
3614
3947
  },
3615
3948
  /**
3616
3949
  *
@@ -3618,12 +3951,14 @@ const KubernetesClustersApiFp = function (configuration) {
3618
3951
  * @param {*} [options] Override http request option.
3619
3952
  * @throws {RequiredError}
3620
3953
  */
3621
- async getK8sCluster(id, options) {
3622
- var _a, _b, _c;
3623
- const localVarAxiosArgs = await localVarAxiosParamCreator.getK8sCluster(id, options);
3624
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3625
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['KubernetesClustersApi.getK8sCluster']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3626
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3954
+ getK8sCluster(id, options) {
3955
+ return __awaiter(this, void 0, void 0, function* () {
3956
+ var _a, _b, _c;
3957
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getK8sCluster(id, options);
3958
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3959
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['KubernetesClustersApi.getK8sCluster']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3960
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3961
+ });
3627
3962
  },
3628
3963
  /**
3629
3964
  *
@@ -3632,12 +3967,14 @@ const KubernetesClustersApiFp = function (configuration) {
3632
3967
  * @param {*} [options] Override http request option.
3633
3968
  * @throws {RequiredError}
3634
3969
  */
3635
- async updateK8sCluster(id, updateK8sCluster, options) {
3636
- var _a, _b, _c;
3637
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateK8sCluster(id, updateK8sCluster, options);
3638
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3639
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['KubernetesClustersApi.updateK8sCluster']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3640
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3970
+ updateK8sCluster(id, updateK8sCluster, options) {
3971
+ return __awaiter(this, void 0, void 0, function* () {
3972
+ var _a, _b, _c;
3973
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateK8sCluster(id, updateK8sCluster, options);
3974
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3975
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['KubernetesClustersApi.updateK8sCluster']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3976
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3977
+ });
3641
3978
  },
3642
3979
  };
3643
3980
  };
@@ -3754,7 +4091,7 @@ const KubernetesResourcesApiAxiosParamCreator = function (configuration) {
3754
4091
  * @param {*} [options] Override http request option.
3755
4092
  * @throws {RequiredError}
3756
4093
  */
3757
- allK8sResources: async (clusterId, deploymentId, kind, name, page, perPage, options = {}) => {
4094
+ allK8sResources: (clusterId_1, deploymentId_1, kind_1, name_1, page_1, perPage_1, ...args_1) => __awaiter(this, [clusterId_1, deploymentId_1, kind_1, name_1, page_1, perPage_1, ...args_1], void 0, function* (clusterId, deploymentId, kind, name, page, perPage, options = {}) {
3758
4095
  const localVarPath = `/api/v2/k8s-resources`;
3759
4096
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3760
4097
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -3762,14 +4099,14 @@ const KubernetesResourcesApiAxiosParamCreator = function (configuration) {
3762
4099
  if (configuration) {
3763
4100
  baseOptions = configuration.baseOptions;
3764
4101
  }
3765
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4102
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3766
4103
  const localVarHeaderParameter = {};
3767
4104
  const localVarQueryParameter = {};
3768
4105
  // authentication access_token required
3769
4106
  // http bearer authentication required
3770
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4107
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3771
4108
  // authentication user_token required
3772
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4109
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3773
4110
  if (clusterId !== undefined) {
3774
4111
  localVarQueryParameter['cluster_id'] = clusterId;
3775
4112
  }
@@ -3790,19 +4127,19 @@ const KubernetesResourcesApiAxiosParamCreator = function (configuration) {
3790
4127
  }
3791
4128
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3792
4129
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3793
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4130
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3794
4131
  return {
3795
4132
  url: (0, common_1.toPathString)(localVarUrlObj),
3796
4133
  options: localVarRequestOptions,
3797
4134
  };
3798
- },
4135
+ }),
3799
4136
  /**
3800
4137
  *
3801
4138
  * @param {string} id
3802
4139
  * @param {*} [options] Override http request option.
3803
4140
  * @throws {RequiredError}
3804
4141
  */
3805
- getK8sResource: async (id, options = {}) => {
4142
+ getK8sResource: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
3806
4143
  // verify required parameter 'id' is not null or undefined
3807
4144
  (0, common_1.assertParamExists)('getK8sResource', 'id', id);
3808
4145
  const localVarPath = `/api/v2/k8s-resources/{id}`
@@ -3813,22 +4150,22 @@ const KubernetesResourcesApiAxiosParamCreator = function (configuration) {
3813
4150
  if (configuration) {
3814
4151
  baseOptions = configuration.baseOptions;
3815
4152
  }
3816
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4153
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3817
4154
  const localVarHeaderParameter = {};
3818
4155
  const localVarQueryParameter = {};
3819
4156
  // authentication access_token required
3820
4157
  // http bearer authentication required
3821
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4158
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3822
4159
  // authentication user_token required
3823
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4160
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3824
4161
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3825
4162
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3826
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4163
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3827
4164
  return {
3828
4165
  url: (0, common_1.toPathString)(localVarUrlObj),
3829
4166
  options: localVarRequestOptions,
3830
4167
  };
3831
- },
4168
+ }),
3832
4169
  };
3833
4170
  };
3834
4171
  exports.KubernetesResourcesApiAxiosParamCreator = KubernetesResourcesApiAxiosParamCreator;
@@ -3850,12 +4187,14 @@ const KubernetesResourcesApiFp = function (configuration) {
3850
4187
  * @param {*} [options] Override http request option.
3851
4188
  * @throws {RequiredError}
3852
4189
  */
3853
- async allK8sResources(clusterId, deploymentId, kind, name, page, perPage, options) {
3854
- var _a, _b, _c;
3855
- const localVarAxiosArgs = await localVarAxiosParamCreator.allK8sResources(clusterId, deploymentId, kind, name, page, perPage, options);
3856
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3857
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['KubernetesResourcesApi.allK8sResources']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3858
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4190
+ allK8sResources(clusterId, deploymentId, kind, name, page, perPage, options) {
4191
+ return __awaiter(this, void 0, void 0, function* () {
4192
+ var _a, _b, _c;
4193
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allK8sResources(clusterId, deploymentId, kind, name, page, perPage, options);
4194
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4195
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['KubernetesResourcesApi.allK8sResources']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4196
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4197
+ });
3859
4198
  },
3860
4199
  /**
3861
4200
  *
@@ -3863,12 +4202,14 @@ const KubernetesResourcesApiFp = function (configuration) {
3863
4202
  * @param {*} [options] Override http request option.
3864
4203
  * @throws {RequiredError}
3865
4204
  */
3866
- async getK8sResource(id, options) {
3867
- var _a, _b, _c;
3868
- const localVarAxiosArgs = await localVarAxiosParamCreator.getK8sResource(id, options);
3869
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3870
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['KubernetesResourcesApi.getK8sResource']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3871
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4205
+ getK8sResource(id, options) {
4206
+ return __awaiter(this, void 0, void 0, function* () {
4207
+ var _a, _b, _c;
4208
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getK8sResource(id, options);
4209
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4210
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['KubernetesResourcesApi.getK8sResource']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4211
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4212
+ });
3872
4213
  },
3873
4214
  };
3874
4215
  };
@@ -3946,7 +4287,7 @@ const SecretsApiAxiosParamCreator = function (configuration) {
3946
4287
  * @param {*} [options] Override http request option.
3947
4288
  * @throws {RequiredError}
3948
4289
  */
3949
- allSecrets: async (envId, collection, name, page, perPage, options = {}) => {
4290
+ allSecrets: (envId_1, collection_1, name_1, page_1, perPage_1, ...args_1) => __awaiter(this, [envId_1, collection_1, name_1, page_1, perPage_1, ...args_1], void 0, function* (envId, collection, name, page, perPage, options = {}) {
3950
4291
  const localVarPath = `/api/v2/secrets`;
3951
4292
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3952
4293
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -3954,14 +4295,14 @@ const SecretsApiAxiosParamCreator = function (configuration) {
3954
4295
  if (configuration) {
3955
4296
  baseOptions = configuration.baseOptions;
3956
4297
  }
3957
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4298
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3958
4299
  const localVarHeaderParameter = {};
3959
4300
  const localVarQueryParameter = {};
3960
4301
  // authentication access_token required
3961
4302
  // http bearer authentication required
3962
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4303
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3963
4304
  // authentication user_token required
3964
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4305
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
3965
4306
  if (envId !== undefined) {
3966
4307
  localVarQueryParameter['env_id'] = envId;
3967
4308
  }
@@ -3979,19 +4320,19 @@ const SecretsApiAxiosParamCreator = function (configuration) {
3979
4320
  }
3980
4321
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3981
4322
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3982
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4323
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3983
4324
  return {
3984
4325
  url: (0, common_1.toPathString)(localVarUrlObj),
3985
4326
  options: localVarRequestOptions,
3986
4327
  };
3987
- },
4328
+ }),
3988
4329
  /**
3989
4330
  *
3990
4331
  * @param {NewSecret} newSecret
3991
4332
  * @param {*} [options] Override http request option.
3992
4333
  * @throws {RequiredError}
3993
4334
  */
3994
- createSecret: async (newSecret, options = {}) => {
4335
+ createSecret: (newSecret_1, ...args_1) => __awaiter(this, [newSecret_1, ...args_1], void 0, function* (newSecret, options = {}) {
3995
4336
  // verify required parameter 'newSecret' is not null or undefined
3996
4337
  (0, common_1.assertParamExists)('createSecret', 'newSecret', newSecret);
3997
4338
  const localVarPath = `/api/v2/secrets`;
@@ -4001,31 +4342,31 @@ const SecretsApiAxiosParamCreator = function (configuration) {
4001
4342
  if (configuration) {
4002
4343
  baseOptions = configuration.baseOptions;
4003
4344
  }
4004
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4345
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4005
4346
  const localVarHeaderParameter = {};
4006
4347
  const localVarQueryParameter = {};
4007
4348
  // authentication access_token required
4008
4349
  // http bearer authentication required
4009
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4350
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4010
4351
  // authentication user_token required
4011
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4352
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4012
4353
  localVarHeaderParameter['Content-Type'] = 'application/json';
4013
4354
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4014
4355
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4015
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4356
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4016
4357
  localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(newSecret, localVarRequestOptions, configuration);
4017
4358
  return {
4018
4359
  url: (0, common_1.toPathString)(localVarUrlObj),
4019
4360
  options: localVarRequestOptions,
4020
4361
  };
4021
- },
4362
+ }),
4022
4363
  /**
4023
4364
  *
4024
4365
  * @param {string} id
4025
4366
  * @param {*} [options] Override http request option.
4026
4367
  * @throws {RequiredError}
4027
4368
  */
4028
- deleteSecret: async (id, options = {}) => {
4369
+ deleteSecret: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
4029
4370
  // verify required parameter 'id' is not null or undefined
4030
4371
  (0, common_1.assertParamExists)('deleteSecret', 'id', id);
4031
4372
  const localVarPath = `/api/v2/secrets/{id}`
@@ -4036,29 +4377,29 @@ const SecretsApiAxiosParamCreator = function (configuration) {
4036
4377
  if (configuration) {
4037
4378
  baseOptions = configuration.baseOptions;
4038
4379
  }
4039
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
4380
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
4040
4381
  const localVarHeaderParameter = {};
4041
4382
  const localVarQueryParameter = {};
4042
4383
  // authentication access_token required
4043
4384
  // http bearer authentication required
4044
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4385
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4045
4386
  // authentication user_token required
4046
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4387
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4047
4388
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4048
4389
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4049
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4390
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4050
4391
  return {
4051
4392
  url: (0, common_1.toPathString)(localVarUrlObj),
4052
4393
  options: localVarRequestOptions,
4053
4394
  };
4054
- },
4395
+ }),
4055
4396
  /**
4056
4397
  *
4057
4398
  * @param {string} id
4058
4399
  * @param {*} [options] Override http request option.
4059
4400
  * @throws {RequiredError}
4060
4401
  */
4061
- getSecret: async (id, options = {}) => {
4402
+ getSecret: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
4062
4403
  // verify required parameter 'id' is not null or undefined
4063
4404
  (0, common_1.assertParamExists)('getSecret', 'id', id);
4064
4405
  const localVarPath = `/api/v2/secrets/{id}`
@@ -4069,34 +4410,34 @@ const SecretsApiAxiosParamCreator = function (configuration) {
4069
4410
  if (configuration) {
4070
4411
  baseOptions = configuration.baseOptions;
4071
4412
  }
4072
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4413
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4073
4414
  const localVarHeaderParameter = {};
4074
4415
  const localVarQueryParameter = {};
4075
4416
  // authentication access_token required
4076
4417
  // http bearer authentication required
4077
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4418
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4078
4419
  // authentication user_token required
4079
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4420
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4080
4421
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4081
4422
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4082
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4423
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4083
4424
  return {
4084
4425
  url: (0, common_1.toPathString)(localVarUrlObj),
4085
4426
  options: localVarRequestOptions,
4086
4427
  };
4087
- },
4428
+ }),
4088
4429
  /**
4089
4430
  *
4090
4431
  * @param {string} id
4091
- * @param {UpdateSecretApi} updateSecretApi
4432
+ * @param {UpdateSecret} updateSecret
4092
4433
  * @param {*} [options] Override http request option.
4093
4434
  * @throws {RequiredError}
4094
4435
  */
4095
- updateSecret: async (id, updateSecretApi, options = {}) => {
4436
+ updateSecret: (id_1, updateSecret_1, ...args_1) => __awaiter(this, [id_1, updateSecret_1, ...args_1], void 0, function* (id, updateSecret, options = {}) {
4096
4437
  // verify required parameter 'id' is not null or undefined
4097
4438
  (0, common_1.assertParamExists)('updateSecret', 'id', id);
4098
- // verify required parameter 'updateSecretApi' is not null or undefined
4099
- (0, common_1.assertParamExists)('updateSecret', 'updateSecretApi', updateSecretApi);
4439
+ // verify required parameter 'updateSecret' is not null or undefined
4440
+ (0, common_1.assertParamExists)('updateSecret', 'updateSecret', updateSecret);
4100
4441
  const localVarPath = `/api/v2/secrets/{id}`
4101
4442
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4102
4443
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -4105,24 +4446,24 @@ const SecretsApiAxiosParamCreator = function (configuration) {
4105
4446
  if (configuration) {
4106
4447
  baseOptions = configuration.baseOptions;
4107
4448
  }
4108
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
4449
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4109
4450
  const localVarHeaderParameter = {};
4110
4451
  const localVarQueryParameter = {};
4111
4452
  // authentication access_token required
4112
4453
  // http bearer authentication required
4113
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4454
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4114
4455
  // authentication user_token required
4115
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4456
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4116
4457
  localVarHeaderParameter['Content-Type'] = 'application/json';
4117
4458
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4118
4459
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4119
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4120
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSecretApi, localVarRequestOptions, configuration);
4460
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4461
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSecret, localVarRequestOptions, configuration);
4121
4462
  return {
4122
4463
  url: (0, common_1.toPathString)(localVarUrlObj),
4123
4464
  options: localVarRequestOptions,
4124
4465
  };
4125
- },
4466
+ }),
4126
4467
  };
4127
4468
  };
4128
4469
  exports.SecretsApiAxiosParamCreator = SecretsApiAxiosParamCreator;
@@ -4143,12 +4484,14 @@ const SecretsApiFp = function (configuration) {
4143
4484
  * @param {*} [options] Override http request option.
4144
4485
  * @throws {RequiredError}
4145
4486
  */
4146
- async allSecrets(envId, collection, name, page, perPage, options) {
4147
- var _a, _b, _c;
4148
- const localVarAxiosArgs = await localVarAxiosParamCreator.allSecrets(envId, collection, name, page, perPage, options);
4149
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4150
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SecretsApi.allSecrets']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4151
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4487
+ allSecrets(envId, collection, name, page, perPage, options) {
4488
+ return __awaiter(this, void 0, void 0, function* () {
4489
+ var _a, _b, _c;
4490
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allSecrets(envId, collection, name, page, perPage, options);
4491
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4492
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SecretsApi.allSecrets']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4493
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4494
+ });
4152
4495
  },
4153
4496
  /**
4154
4497
  *
@@ -4156,12 +4499,14 @@ const SecretsApiFp = function (configuration) {
4156
4499
  * @param {*} [options] Override http request option.
4157
4500
  * @throws {RequiredError}
4158
4501
  */
4159
- async createSecret(newSecret, options) {
4160
- var _a, _b, _c;
4161
- const localVarAxiosArgs = await localVarAxiosParamCreator.createSecret(newSecret, options);
4162
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4163
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SecretsApi.createSecret']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4164
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4502
+ createSecret(newSecret, options) {
4503
+ return __awaiter(this, void 0, void 0, function* () {
4504
+ var _a, _b, _c;
4505
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSecret(newSecret, options);
4506
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4507
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SecretsApi.createSecret']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4508
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4509
+ });
4165
4510
  },
4166
4511
  /**
4167
4512
  *
@@ -4169,12 +4514,14 @@ const SecretsApiFp = function (configuration) {
4169
4514
  * @param {*} [options] Override http request option.
4170
4515
  * @throws {RequiredError}
4171
4516
  */
4172
- async deleteSecret(id, options) {
4173
- var _a, _b, _c;
4174
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSecret(id, options);
4175
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4176
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SecretsApi.deleteSecret']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4177
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4517
+ deleteSecret(id, options) {
4518
+ return __awaiter(this, void 0, void 0, function* () {
4519
+ var _a, _b, _c;
4520
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSecret(id, options);
4521
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4522
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SecretsApi.deleteSecret']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4523
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4524
+ });
4178
4525
  },
4179
4526
  /**
4180
4527
  *
@@ -4182,26 +4529,30 @@ const SecretsApiFp = function (configuration) {
4182
4529
  * @param {*} [options] Override http request option.
4183
4530
  * @throws {RequiredError}
4184
4531
  */
4185
- async getSecret(id, options) {
4186
- var _a, _b, _c;
4187
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSecret(id, options);
4188
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4189
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SecretsApi.getSecret']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4190
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4532
+ getSecret(id, options) {
4533
+ return __awaiter(this, void 0, void 0, function* () {
4534
+ var _a, _b, _c;
4535
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSecret(id, options);
4536
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4537
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SecretsApi.getSecret']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4538
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4539
+ });
4191
4540
  },
4192
4541
  /**
4193
4542
  *
4194
4543
  * @param {string} id
4195
- * @param {UpdateSecretApi} updateSecretApi
4544
+ * @param {UpdateSecret} updateSecret
4196
4545
  * @param {*} [options] Override http request option.
4197
4546
  * @throws {RequiredError}
4198
4547
  */
4199
- async updateSecret(id, updateSecretApi, options) {
4200
- var _a, _b, _c;
4201
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateSecret(id, updateSecretApi, options);
4202
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4203
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SecretsApi.updateSecret']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4204
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4548
+ updateSecret(id, updateSecret, options) {
4549
+ return __awaiter(this, void 0, void 0, function* () {
4550
+ var _a, _b, _c;
4551
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSecret(id, updateSecret, options);
4552
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4553
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SecretsApi.updateSecret']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4554
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4555
+ });
4205
4556
  },
4206
4557
  };
4207
4558
  };
@@ -4256,7 +4607,7 @@ const SecretsApiFactory = function (configuration, basePath, axios) {
4256
4607
  * @throws {RequiredError}
4257
4608
  */
4258
4609
  updateSecret(requestParameters, options) {
4259
- return localVarFp.updateSecret(requestParameters.id, requestParameters.updateSecretApi, options).then((request) => request(axios, basePath));
4610
+ return localVarFp.updateSecret(requestParameters.id, requestParameters.updateSecret, options).then((request) => request(axios, basePath));
4260
4611
  },
4261
4612
  };
4262
4613
  };
@@ -4316,7 +4667,7 @@ class SecretsApi extends base_1.BaseAPI {
4316
4667
  * @memberof SecretsApi
4317
4668
  */
4318
4669
  updateSecret(requestParameters, options) {
4319
- return (0, exports.SecretsApiFp)(this.configuration).updateSecret(requestParameters.id, requestParameters.updateSecretApi, options).then((request) => request(this.axios, this.basePath));
4670
+ return (0, exports.SecretsApiFp)(this.configuration).updateSecret(requestParameters.id, requestParameters.updateSecret, options).then((request) => request(this.axios, this.basePath));
4320
4671
  }
4321
4672
  }
4322
4673
  exports.SecretsApi = SecretsApi;
@@ -4331,7 +4682,7 @@ const ServerApiAxiosParamCreator = function (configuration) {
4331
4682
  * @param {*} [options] Override http request option.
4332
4683
  * @throws {RequiredError}
4333
4684
  */
4334
- getServerInfo: async (options = {}) => {
4685
+ getServerInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4335
4686
  const localVarPath = `/api/v2/server`;
4336
4687
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4337
4688
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -4339,22 +4690,22 @@ const ServerApiAxiosParamCreator = function (configuration) {
4339
4690
  if (configuration) {
4340
4691
  baseOptions = configuration.baseOptions;
4341
4692
  }
4342
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4693
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4343
4694
  const localVarHeaderParameter = {};
4344
4695
  const localVarQueryParameter = {};
4345
4696
  // authentication access_token required
4346
4697
  // http bearer authentication required
4347
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4698
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4348
4699
  // authentication user_token required
4349
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4700
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4350
4701
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4351
4702
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4352
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4703
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4353
4704
  return {
4354
4705
  url: (0, common_1.toPathString)(localVarUrlObj),
4355
4706
  options: localVarRequestOptions,
4356
4707
  };
4357
- },
4708
+ }),
4358
4709
  };
4359
4710
  };
4360
4711
  exports.ServerApiAxiosParamCreator = ServerApiAxiosParamCreator;
@@ -4370,12 +4721,14 @@ const ServerApiFp = function (configuration) {
4370
4721
  * @param {*} [options] Override http request option.
4371
4722
  * @throws {RequiredError}
4372
4723
  */
4373
- async getServerInfo(options) {
4374
- var _a, _b, _c;
4375
- const localVarAxiosArgs = await localVarAxiosParamCreator.getServerInfo(options);
4376
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4377
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ServerApi.getServerInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4378
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4724
+ getServerInfo(options) {
4725
+ return __awaiter(this, void 0, void 0, function* () {
4726
+ var _a, _b, _c;
4727
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getServerInfo(options);
4728
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4729
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ServerApi.getServerInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4730
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4731
+ });
4379
4732
  },
4380
4733
  };
4381
4734
  };
@@ -4430,7 +4783,7 @@ const UserTokensApiAxiosParamCreator = function (configuration) {
4430
4783
  * @param {*} [options] Override http request option.
4431
4784
  * @throws {RequiredError}
4432
4785
  */
4433
- allUserTokens: async (userId, page, perPage, options = {}) => {
4786
+ allUserTokens: (userId_1, page_1, perPage_1, ...args_1) => __awaiter(this, [userId_1, page_1, perPage_1, ...args_1], void 0, function* (userId, page, perPage, options = {}) {
4434
4787
  const localVarPath = `/api/v2/user-tokens`;
4435
4788
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4436
4789
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -4438,14 +4791,14 @@ const UserTokensApiAxiosParamCreator = function (configuration) {
4438
4791
  if (configuration) {
4439
4792
  baseOptions = configuration.baseOptions;
4440
4793
  }
4441
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4794
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4442
4795
  const localVarHeaderParameter = {};
4443
4796
  const localVarQueryParameter = {};
4444
4797
  // authentication access_token required
4445
4798
  // http bearer authentication required
4446
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4799
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4447
4800
  // authentication user_token required
4448
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4801
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4449
4802
  if (userId !== undefined) {
4450
4803
  localVarQueryParameter['user_id'] = userId;
4451
4804
  }
@@ -4457,19 +4810,19 @@ const UserTokensApiAxiosParamCreator = function (configuration) {
4457
4810
  }
4458
4811
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4459
4812
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4460
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4813
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4461
4814
  return {
4462
4815
  url: (0, common_1.toPathString)(localVarUrlObj),
4463
4816
  options: localVarRequestOptions,
4464
4817
  };
4465
- },
4818
+ }),
4466
4819
  /**
4467
4820
  *
4468
4821
  * @param {CreateUserToken} createUserToken
4469
4822
  * @param {*} [options] Override http request option.
4470
4823
  * @throws {RequiredError}
4471
4824
  */
4472
- createUserToken: async (createUserToken, options = {}) => {
4825
+ createUserToken: (createUserToken_1, ...args_1) => __awaiter(this, [createUserToken_1, ...args_1], void 0, function* (createUserToken, options = {}) {
4473
4826
  // verify required parameter 'createUserToken' is not null or undefined
4474
4827
  (0, common_1.assertParamExists)('createUserToken', 'createUserToken', createUserToken);
4475
4828
  const localVarPath = `/api/v2/user-tokens`;
@@ -4479,31 +4832,31 @@ const UserTokensApiAxiosParamCreator = function (configuration) {
4479
4832
  if (configuration) {
4480
4833
  baseOptions = configuration.baseOptions;
4481
4834
  }
4482
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4835
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4483
4836
  const localVarHeaderParameter = {};
4484
4837
  const localVarQueryParameter = {};
4485
4838
  // authentication access_token required
4486
4839
  // http bearer authentication required
4487
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4840
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4488
4841
  // authentication user_token required
4489
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4842
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4490
4843
  localVarHeaderParameter['Content-Type'] = 'application/json';
4491
4844
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4492
4845
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4493
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4846
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4494
4847
  localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createUserToken, localVarRequestOptions, configuration);
4495
4848
  return {
4496
4849
  url: (0, common_1.toPathString)(localVarUrlObj),
4497
4850
  options: localVarRequestOptions,
4498
4851
  };
4499
- },
4852
+ }),
4500
4853
  /**
4501
4854
  *
4502
4855
  * @param {string} id
4503
4856
  * @param {*} [options] Override http request option.
4504
4857
  * @throws {RequiredError}
4505
4858
  */
4506
- deleteUserToken: async (id, options = {}) => {
4859
+ deleteUserToken: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
4507
4860
  // verify required parameter 'id' is not null or undefined
4508
4861
  (0, common_1.assertParamExists)('deleteUserToken', 'id', id);
4509
4862
  const localVarPath = `/api/v2/user-tokens/{id}`
@@ -4514,29 +4867,29 @@ const UserTokensApiAxiosParamCreator = function (configuration) {
4514
4867
  if (configuration) {
4515
4868
  baseOptions = configuration.baseOptions;
4516
4869
  }
4517
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
4870
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
4518
4871
  const localVarHeaderParameter = {};
4519
4872
  const localVarQueryParameter = {};
4520
4873
  // authentication access_token required
4521
4874
  // http bearer authentication required
4522
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4875
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4523
4876
  // authentication user_token required
4524
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4877
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4525
4878
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4526
4879
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4527
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4880
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4528
4881
  return {
4529
4882
  url: (0, common_1.toPathString)(localVarUrlObj),
4530
4883
  options: localVarRequestOptions,
4531
4884
  };
4532
- },
4885
+ }),
4533
4886
  /**
4534
4887
  *
4535
4888
  * @param {string} id
4536
4889
  * @param {*} [options] Override http request option.
4537
4890
  * @throws {RequiredError}
4538
4891
  */
4539
- getUserToken: async (id, options = {}) => {
4892
+ getUserToken: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
4540
4893
  // verify required parameter 'id' is not null or undefined
4541
4894
  (0, common_1.assertParamExists)('getUserToken', 'id', id);
4542
4895
  const localVarPath = `/api/v2/user-tokens/{id}`
@@ -4547,22 +4900,22 @@ const UserTokensApiAxiosParamCreator = function (configuration) {
4547
4900
  if (configuration) {
4548
4901
  baseOptions = configuration.baseOptions;
4549
4902
  }
4550
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4903
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4551
4904
  const localVarHeaderParameter = {};
4552
4905
  const localVarQueryParameter = {};
4553
4906
  // authentication access_token required
4554
4907
  // http bearer authentication required
4555
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4908
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4556
4909
  // authentication user_token required
4557
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4910
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4558
4911
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4559
4912
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4560
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4913
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4561
4914
  return {
4562
4915
  url: (0, common_1.toPathString)(localVarUrlObj),
4563
4916
  options: localVarRequestOptions,
4564
4917
  };
4565
- },
4918
+ }),
4566
4919
  };
4567
4920
  };
4568
4921
  exports.UserTokensApiAxiosParamCreator = UserTokensApiAxiosParamCreator;
@@ -4581,12 +4934,14 @@ const UserTokensApiFp = function (configuration) {
4581
4934
  * @param {*} [options] Override http request option.
4582
4935
  * @throws {RequiredError}
4583
4936
  */
4584
- async allUserTokens(userId, page, perPage, options) {
4585
- var _a, _b, _c;
4586
- const localVarAxiosArgs = await localVarAxiosParamCreator.allUserTokens(userId, page, perPage, options);
4587
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4588
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserTokensApi.allUserTokens']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4589
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4937
+ allUserTokens(userId, page, perPage, options) {
4938
+ return __awaiter(this, void 0, void 0, function* () {
4939
+ var _a, _b, _c;
4940
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allUserTokens(userId, page, perPage, options);
4941
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4942
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserTokensApi.allUserTokens']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4943
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4944
+ });
4590
4945
  },
4591
4946
  /**
4592
4947
  *
@@ -4594,12 +4949,14 @@ const UserTokensApiFp = function (configuration) {
4594
4949
  * @param {*} [options] Override http request option.
4595
4950
  * @throws {RequiredError}
4596
4951
  */
4597
- async createUserToken(createUserToken, options) {
4598
- var _a, _b, _c;
4599
- const localVarAxiosArgs = await localVarAxiosParamCreator.createUserToken(createUserToken, options);
4600
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4601
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserTokensApi.createUserToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4602
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4952
+ createUserToken(createUserToken, options) {
4953
+ return __awaiter(this, void 0, void 0, function* () {
4954
+ var _a, _b, _c;
4955
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createUserToken(createUserToken, options);
4956
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4957
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserTokensApi.createUserToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4958
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4959
+ });
4603
4960
  },
4604
4961
  /**
4605
4962
  *
@@ -4607,12 +4964,14 @@ const UserTokensApiFp = function (configuration) {
4607
4964
  * @param {*} [options] Override http request option.
4608
4965
  * @throws {RequiredError}
4609
4966
  */
4610
- async deleteUserToken(id, options) {
4611
- var _a, _b, _c;
4612
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUserToken(id, options);
4613
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4614
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserTokensApi.deleteUserToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4615
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4967
+ deleteUserToken(id, options) {
4968
+ return __awaiter(this, void 0, void 0, function* () {
4969
+ var _a, _b, _c;
4970
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteUserToken(id, options);
4971
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4972
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserTokensApi.deleteUserToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4973
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4974
+ });
4616
4975
  },
4617
4976
  /**
4618
4977
  *
@@ -4620,12 +4979,14 @@ const UserTokensApiFp = function (configuration) {
4620
4979
  * @param {*} [options] Override http request option.
4621
4980
  * @throws {RequiredError}
4622
4981
  */
4623
- async getUserToken(id, options) {
4624
- var _a, _b, _c;
4625
- const localVarAxiosArgs = await localVarAxiosParamCreator.getUserToken(id, options);
4626
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4627
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserTokensApi.getUserToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4628
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4982
+ getUserToken(id, options) {
4983
+ return __awaiter(this, void 0, void 0, function* () {
4984
+ var _a, _b, _c;
4985
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserToken(id, options);
4986
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4987
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserTokensApi.getUserToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4988
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4989
+ });
4629
4990
  },
4630
4991
  };
4631
4992
  };
@@ -4741,7 +5102,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
4741
5102
  * @param {*} [options] Override http request option.
4742
5103
  * @throws {RequiredError}
4743
5104
  */
4744
- allUsers: async (displayName, email, isActive, page, perPage, options = {}) => {
5105
+ allUsers: (displayName_1, email_1, isActive_1, page_1, perPage_1, ...args_1) => __awaiter(this, [displayName_1, email_1, isActive_1, page_1, perPage_1, ...args_1], void 0, function* (displayName, email, isActive, page, perPage, options = {}) {
4745
5106
  const localVarPath = `/api/v2/users`;
4746
5107
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4747
5108
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -4749,14 +5110,14 @@ const UsersApiAxiosParamCreator = function (configuration) {
4749
5110
  if (configuration) {
4750
5111
  baseOptions = configuration.baseOptions;
4751
5112
  }
4752
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5113
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4753
5114
  const localVarHeaderParameter = {};
4754
5115
  const localVarQueryParameter = {};
4755
5116
  // authentication access_token required
4756
5117
  // http bearer authentication required
4757
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5118
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4758
5119
  // authentication user_token required
4759
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
5120
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4760
5121
  if (displayName !== undefined) {
4761
5122
  localVarQueryParameter['display_name'] = displayName;
4762
5123
  }
@@ -4774,19 +5135,19 @@ const UsersApiAxiosParamCreator = function (configuration) {
4774
5135
  }
4775
5136
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4776
5137
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4777
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5138
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4778
5139
  return {
4779
5140
  url: (0, common_1.toPathString)(localVarUrlObj),
4780
5141
  options: localVarRequestOptions,
4781
5142
  };
4782
- },
5143
+ }),
4783
5144
  /**
4784
5145
  *
4785
5146
  * @param {string} id
4786
5147
  * @param {*} [options] Override http request option.
4787
5148
  * @throws {RequiredError}
4788
5149
  */
4789
- getUser: async (id, options = {}) => {
5150
+ getUser: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
4790
5151
  // verify required parameter 'id' is not null or undefined
4791
5152
  (0, common_1.assertParamExists)('getUser', 'id', id);
4792
5153
  const localVarPath = `/api/v2/users/{id}`
@@ -4797,22 +5158,22 @@ const UsersApiAxiosParamCreator = function (configuration) {
4797
5158
  if (configuration) {
4798
5159
  baseOptions = configuration.baseOptions;
4799
5160
  }
4800
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5161
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4801
5162
  const localVarHeaderParameter = {};
4802
5163
  const localVarQueryParameter = {};
4803
5164
  // authentication access_token required
4804
5165
  // http bearer authentication required
4805
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5166
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4806
5167
  // authentication user_token required
4807
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
5168
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4808
5169
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4809
5170
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4810
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5171
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4811
5172
  return {
4812
5173
  url: (0, common_1.toPathString)(localVarUrlObj),
4813
5174
  options: localVarRequestOptions,
4814
5175
  };
4815
- },
5176
+ }),
4816
5177
  /**
4817
5178
  *
4818
5179
  * @param {string} id
@@ -4820,7 +5181,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
4820
5181
  * @param {*} [options] Override http request option.
4821
5182
  * @throws {RequiredError}
4822
5183
  */
4823
- updateUser: async (id, updateUser, options = {}) => {
5184
+ updateUser: (id_1, updateUser_1, ...args_1) => __awaiter(this, [id_1, updateUser_1, ...args_1], void 0, function* (id, updateUser, options = {}) {
4824
5185
  // verify required parameter 'id' is not null or undefined
4825
5186
  (0, common_1.assertParamExists)('updateUser', 'id', id);
4826
5187
  // verify required parameter 'updateUser' is not null or undefined
@@ -4833,24 +5194,24 @@ const UsersApiAxiosParamCreator = function (configuration) {
4833
5194
  if (configuration) {
4834
5195
  baseOptions = configuration.baseOptions;
4835
5196
  }
4836
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
5197
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4837
5198
  const localVarHeaderParameter = {};
4838
5199
  const localVarQueryParameter = {};
4839
5200
  // authentication access_token required
4840
5201
  // http bearer authentication required
4841
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5202
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4842
5203
  // authentication user_token required
4843
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
5204
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-platz-token", configuration);
4844
5205
  localVarHeaderParameter['Content-Type'] = 'application/json';
4845
5206
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4846
5207
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4847
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5208
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4848
5209
  localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUser, localVarRequestOptions, configuration);
4849
5210
  return {
4850
5211
  url: (0, common_1.toPathString)(localVarUrlObj),
4851
5212
  options: localVarRequestOptions,
4852
5213
  };
4853
- },
5214
+ }),
4854
5215
  };
4855
5216
  };
4856
5217
  exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
@@ -4871,12 +5232,14 @@ const UsersApiFp = function (configuration) {
4871
5232
  * @param {*} [options] Override http request option.
4872
5233
  * @throws {RequiredError}
4873
5234
  */
4874
- async allUsers(displayName, email, isActive, page, perPage, options) {
4875
- var _a, _b, _c;
4876
- const localVarAxiosArgs = await localVarAxiosParamCreator.allUsers(displayName, email, isActive, page, perPage, options);
4877
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4878
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.allUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4879
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5235
+ allUsers(displayName, email, isActive, page, perPage, options) {
5236
+ return __awaiter(this, void 0, void 0, function* () {
5237
+ var _a, _b, _c;
5238
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allUsers(displayName, email, isActive, page, perPage, options);
5239
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5240
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.allUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5241
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5242
+ });
4880
5243
  },
4881
5244
  /**
4882
5245
  *
@@ -4884,12 +5247,14 @@ const UsersApiFp = function (configuration) {
4884
5247
  * @param {*} [options] Override http request option.
4885
5248
  * @throws {RequiredError}
4886
5249
  */
4887
- async getUser(id, options) {
4888
- var _a, _b, _c;
4889
- const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(id, options);
4890
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4891
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4892
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5250
+ getUser(id, options) {
5251
+ return __awaiter(this, void 0, void 0, function* () {
5252
+ var _a, _b, _c;
5253
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUser(id, options);
5254
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5255
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5256
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5257
+ });
4893
5258
  },
4894
5259
  /**
4895
5260
  *
@@ -4898,12 +5263,14 @@ const UsersApiFp = function (configuration) {
4898
5263
  * @param {*} [options] Override http request option.
4899
5264
  * @throws {RequiredError}
4900
5265
  */
4901
- async updateUser(id, updateUser, options) {
4902
- var _a, _b, _c;
4903
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(id, updateUser, options);
4904
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4905
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.updateUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4906
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5266
+ updateUser(id, updateUser, options) {
5267
+ return __awaiter(this, void 0, void 0, function* () {
5268
+ var _a, _b, _c;
5269
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUser(id, updateUser, options);
5270
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5271
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.updateUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5272
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5273
+ });
4907
5274
  },
4908
5275
  };
4909
5276
  };