qovery-typescript-axios 1.1.19 → 1.1.21
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/api.ts +1155 -121
- package/dist/api.d.ts +791 -63
- package/dist/api.js +699 -112
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -22,12 +22,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
25
|
+
exports.ApplicationActionsApiAxiosParamCreator = exports.AccountInfoApi = exports.AccountInfoApiFactory = exports.AccountInfoApiFp = exports.AccountInfoApiAxiosParamCreator = exports.WeekdayEnum = exports.TypeOfUseEnum = exports.ThresholdMetricStatusEnum = exports.StorageTypeEnum = exports.StatusKindEnum = exports.StateEnum = exports.ServiceTypeEnum = exports.ServiceDeploymentStatusEnum = exports.RewardClaimTypeEnum = exports.PortProtocolEnum = exports.PlanEnum = exports.OrganizationWebhookKindEnum = exports.OrganizationWebhookEventEnum = exports.OrganizationCustomRoleProjectPermission = exports.OrganizationCustomRoleClusterPermission = exports.OrganizationApiTokenScope = exports.LinkedServiceTypeEnum = exports.KubernetesEnum = exports.InvoiceStatusEnum = exports.InviteStatusEnum = exports.InviteMemberRoleEnum = exports.HealthcheckProtocolEnum = exports.GitProviderEnum = exports.EnvironmentModeEnum = exports.EnvironmentLogTypeEnum = exports.DeploymentRestrictionTypeEnum = exports.DeploymentRestrictionModeEnum = exports.DeploymentHistoryStatusEnum = exports.DatabaseTypeEnum = exports.DatabaseModeEnum = exports.DatabaseAccessibilityEnum = exports.CustomDomainStatusEnum = exports.CreateEnvironmentModeEnum = exports.ContainerRegistryKindEnum = exports.ContainerAdvancedSettingsLivenessProbeTypeEnum = exports.ContainerAdvancedSettingsReadinessProbeTypeEnum = exports.CompanySizeEnum = exports.ClusterLogsStepEnum = exports.ClusterFeatureValueTypeEnum = exports.CloudProviderEnum = exports.BuildPackLanguageEnum = exports.BuildModeEnum = exports.ApplicationAdvancedSettingsLivenessProbeTypeEnum = exports.ApplicationAdvancedSettingsReadinessProbeTypeEnum = exports.APIVariableScopeEnum = void 0;
|
|
26
|
+
exports.BackupsApiFactory = exports.BackupsApiFp = exports.BackupsApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = exports.ApplicationSecretApi = exports.ApplicationSecretApiFactory = exports.ApplicationSecretApiFp = exports.ApplicationSecretApiAxiosParamCreator = exports.ApplicationMetricsApi = exports.ApplicationMetricsApiFactory = exports.ApplicationMetricsApiFp = exports.ApplicationMetricsApiAxiosParamCreator = exports.ApplicationMainCallsApi = exports.ApplicationMainCallsApiFactory = exports.ApplicationMainCallsApiFp = exports.ApplicationMainCallsApiAxiosParamCreator = exports.ApplicationLogsApi = exports.ApplicationLogsApiFactory = exports.ApplicationLogsApiFp = exports.ApplicationLogsApiAxiosParamCreator = exports.ApplicationEventApi = exports.ApplicationEventApiFactory = exports.ApplicationEventApiFp = exports.ApplicationEventApiAxiosParamCreator = exports.ApplicationEnvironmentVariableApi = exports.ApplicationEnvironmentVariableApiFactory = exports.ApplicationEnvironmentVariableApiFp = exports.ApplicationEnvironmentVariableApiAxiosParamCreator = exports.ApplicationDeploymentRestrictionApi = exports.ApplicationDeploymentRestrictionApiFactory = exports.ApplicationDeploymentRestrictionApiFp = exports.ApplicationDeploymentRestrictionApiAxiosParamCreator = exports.ApplicationDeploymentHistoryApi = exports.ApplicationDeploymentHistoryApiFactory = exports.ApplicationDeploymentHistoryApiFp = exports.ApplicationDeploymentHistoryApiAxiosParamCreator = exports.ApplicationDatabaseApi = exports.ApplicationDatabaseApiFactory = exports.ApplicationDatabaseApiFp = exports.ApplicationDatabaseApiAxiosParamCreator = exports.ApplicationConfigurationApi = exports.ApplicationConfigurationApiFactory = exports.ApplicationConfigurationApiFp = exports.ApplicationConfigurationApiAxiosParamCreator = exports.ApplicationActionsApi = exports.ApplicationActionsApiFactory = exports.ApplicationActionsApiFp = void 0;
|
|
27
|
+
exports.ContainerMainCallsApiAxiosParamCreator = exports.ContainerLogsApi = exports.ContainerLogsApiFactory = exports.ContainerLogsApiFp = exports.ContainerLogsApiAxiosParamCreator = exports.ContainerEnvironmentVariableApi = exports.ContainerEnvironmentVariableApiFactory = exports.ContainerEnvironmentVariableApiFp = exports.ContainerEnvironmentVariableApiAxiosParamCreator = exports.ContainerDeploymentHistoryApi = exports.ContainerDeploymentHistoryApiFactory = exports.ContainerDeploymentHistoryApiFp = exports.ContainerDeploymentHistoryApiAxiosParamCreator = exports.ContainerDependencyApi = exports.ContainerDependencyApiFactory = exports.ContainerDependencyApiFp = exports.ContainerDependencyApiAxiosParamCreator = exports.ContainerDatabaseApi = exports.ContainerDatabaseApiFactory = exports.ContainerDatabaseApiFp = exports.ContainerDatabaseApiAxiosParamCreator = exports.ContainerCustomDomainApi = exports.ContainerCustomDomainApiFactory = exports.ContainerCustomDomainApiFp = exports.ContainerCustomDomainApiAxiosParamCreator = exports.ContainerConfigurationApi = exports.ContainerConfigurationApiFactory = exports.ContainerConfigurationApiFp = exports.ContainerConfigurationApiAxiosParamCreator = exports.ContainerActionsApi = exports.ContainerActionsApiFactory = exports.ContainerActionsApiFp = exports.ContainerActionsApiAxiosParamCreator = exports.ClustersApi = exports.ClustersApiFactory = exports.ClustersApiFp = exports.ClustersApiAxiosParamCreator = exports.CloudProviderCredentialsApi = exports.CloudProviderCredentialsApiFactory = exports.CloudProviderCredentialsApiFp = exports.CloudProviderCredentialsApiAxiosParamCreator = exports.CloudProviderApi = exports.CloudProviderApiFactory = exports.CloudProviderApiFp = exports.CloudProviderApiAxiosParamCreator = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.BackupsApi = void 0;
|
|
28
|
+
exports.DatabasesApiFactory = exports.DatabasesApiFp = exports.DatabasesApiAxiosParamCreator = exports.DatabaseMetricsApi = exports.DatabaseMetricsApiFactory = exports.DatabaseMetricsApiFp = exports.DatabaseMetricsApiAxiosParamCreator = exports.DatabaseMainCallsApi = exports.DatabaseMainCallsApiFactory = exports.DatabaseMainCallsApiFp = exports.DatabaseMainCallsApiAxiosParamCreator = exports.DatabaseEventApi = exports.DatabaseEventApiFactory = exports.DatabaseEventApiFp = exports.DatabaseEventApiAxiosParamCreator = exports.DatabaseDeploymentHistoryApi = exports.DatabaseDeploymentHistoryApiFactory = exports.DatabaseDeploymentHistoryApiFp = exports.DatabaseDeploymentHistoryApiAxiosParamCreator = exports.DatabaseApplicationApi = exports.DatabaseApplicationApiFactory = exports.DatabaseApplicationApiFp = exports.DatabaseApplicationApiAxiosParamCreator = exports.DatabaseActionsApi = exports.DatabaseActionsApiFactory = exports.DatabaseActionsApiFp = exports.DatabaseActionsApiAxiosParamCreator = exports.CustomDomainApi = exports.CustomDomainApiFactory = exports.CustomDomainApiFp = exports.CustomDomainApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = exports.ContainersApiFp = exports.ContainersApiAxiosParamCreator = exports.ContainerSecretApi = exports.ContainerSecretApiFactory = exports.ContainerSecretApiFp = exports.ContainerSecretApiAxiosParamCreator = exports.ContainerRegistriesApi = exports.ContainerRegistriesApiFactory = exports.ContainerRegistriesApiFp = exports.ContainerRegistriesApiAxiosParamCreator = exports.ContainerMetricsApi = exports.ContainerMetricsApiFactory = exports.ContainerMetricsApiFp = exports.ContainerMetricsApiAxiosParamCreator = exports.ContainerMainCallsApi = exports.ContainerMainCallsApiFactory = exports.ContainerMainCallsApiFp = void 0;
|
|
29
|
+
exports.LogicalDatabaseApiAxiosParamCreator = exports.GithubAppApi = exports.GithubAppApiFactory = exports.GithubAppApiFp = exports.GithubAppApiAxiosParamCreator = exports.GitRepositoriesApi = exports.GitRepositoriesApiFactory = exports.GitRepositoriesApiFp = exports.GitRepositoriesApiAxiosParamCreator = exports.EnvironmentsApi = exports.EnvironmentsApiFactory = exports.EnvironmentsApiFp = exports.EnvironmentsApiAxiosParamCreator = exports.EnvironmentVariableApi = exports.EnvironmentVariableApiFactory = exports.EnvironmentVariableApiFp = exports.EnvironmentVariableApiAxiosParamCreator = exports.EnvironmentSecretApi = exports.EnvironmentSecretApiFactory = exports.EnvironmentSecretApiFp = exports.EnvironmentSecretApiAxiosParamCreator = exports.EnvironmentMainCallsApi = exports.EnvironmentMainCallsApiFactory = exports.EnvironmentMainCallsApiFp = exports.EnvironmentMainCallsApiAxiosParamCreator = exports.EnvironmentLogsApi = exports.EnvironmentLogsApiFactory = exports.EnvironmentLogsApiFp = exports.EnvironmentLogsApiAxiosParamCreator = exports.EnvironmentDeploymentRuleApi = exports.EnvironmentDeploymentRuleApiFactory = exports.EnvironmentDeploymentRuleApiFp = exports.EnvironmentDeploymentRuleApiAxiosParamCreator = exports.EnvironmentDeploymentHistoryApi = exports.EnvironmentDeploymentHistoryApiFactory = exports.EnvironmentDeploymentHistoryApiFp = exports.EnvironmentDeploymentHistoryApiAxiosParamCreator = exports.EnvironmentActionsApi = exports.EnvironmentActionsApiFactory = exports.EnvironmentActionsApiFp = exports.EnvironmentActionsApiAxiosParamCreator = exports.EnvironmentApi = exports.EnvironmentApiFactory = exports.EnvironmentApiFp = exports.EnvironmentApiAxiosParamCreator = exports.DependencyApi = exports.DependencyApiFactory = exports.DependencyApiFp = exports.DependencyApiAxiosParamCreator = exports.DatabasesApi = void 0;
|
|
30
|
+
exports.ReferralRewardsApiFactory = exports.ReferralRewardsApiFp = exports.ReferralRewardsApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectSecretApi = exports.ProjectSecretApiFactory = exports.ProjectSecretApiFp = exports.ProjectSecretApiAxiosParamCreator = exports.ProjectMainCallsApi = exports.ProjectMainCallsApiFactory = exports.ProjectMainCallsApiFp = exports.ProjectMainCallsApiAxiosParamCreator = exports.ProjectEnvironmentVariableApi = exports.ProjectEnvironmentVariableApiFactory = exports.ProjectEnvironmentVariableApiFp = exports.ProjectEnvironmentVariableApiAxiosParamCreator = exports.ProjectDeploymentRuleApi = exports.ProjectDeploymentRuleApiFactory = exports.ProjectDeploymentRuleApiFp = exports.ProjectDeploymentRuleApiAxiosParamCreator = exports.OrganizationWebhookApi = exports.OrganizationWebhookApiFactory = exports.OrganizationWebhookApiFp = exports.OrganizationWebhookApiAxiosParamCreator = exports.OrganizationMainCallsApi = exports.OrganizationMainCallsApiFactory = exports.OrganizationMainCallsApiFp = exports.OrganizationMainCallsApiAxiosParamCreator = exports.OrganizationCustomRoleApi = exports.OrganizationCustomRoleApiFactory = exports.OrganizationCustomRoleApiFp = exports.OrganizationCustomRoleApiAxiosParamCreator = exports.OrganizationApiTokenApi = exports.OrganizationApiTokenApiFactory = exports.OrganizationApiTokenApiFp = exports.OrganizationApiTokenApiAxiosParamCreator = exports.OrganizationAccountGitRepositoriesApi = exports.OrganizationAccountGitRepositoriesApiFactory = exports.OrganizationAccountGitRepositoriesApiFp = exports.OrganizationAccountGitRepositoriesApiAxiosParamCreator = exports.MembersApi = exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = exports.LogicalDatabaseApi = exports.LogicalDatabaseApiFactory = exports.LogicalDatabaseApiFp = void 0;
|
|
31
|
+
exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.ReferralRewardsApi = void 0;
|
|
31
32
|
const axios_1 = require("axios");
|
|
32
33
|
// Some imports not used depending on template conditions
|
|
33
34
|
// @ts-ignore
|
|
@@ -309,7 +310,7 @@ var HealthcheckProtocolEnum;
|
|
|
309
310
|
HealthcheckProtocolEnum["NONE"] = "None";
|
|
310
311
|
})(HealthcheckProtocolEnum = exports.HealthcheckProtocolEnum || (exports.HealthcheckProtocolEnum = {}));
|
|
311
312
|
/**
|
|
312
|
-
*
|
|
313
|
+
* deprecated
|
|
313
314
|
* @export
|
|
314
315
|
* @enum {string}
|
|
315
316
|
*/
|
|
@@ -374,6 +375,29 @@ var OrganizationApiTokenScope;
|
|
|
374
375
|
(function (OrganizationApiTokenScope) {
|
|
375
376
|
OrganizationApiTokenScope["ADMIN"] = "ADMIN";
|
|
376
377
|
})(OrganizationApiTokenScope = exports.OrganizationApiTokenScope || (exports.OrganizationApiTokenScope = {}));
|
|
378
|
+
/**
|
|
379
|
+
* Indicates the permission for a target cluster, from the lowest to the highest: - `VIEWER` user has only read access on target cluster - `ENV_CREATOR` user can deploy on the cluster - `ADMIN` user can modify the cluster settings
|
|
380
|
+
* @export
|
|
381
|
+
* @enum {string}
|
|
382
|
+
*/
|
|
383
|
+
var OrganizationCustomRoleClusterPermission;
|
|
384
|
+
(function (OrganizationCustomRoleClusterPermission) {
|
|
385
|
+
OrganizationCustomRoleClusterPermission["VIEWER"] = "VIEWER";
|
|
386
|
+
OrganizationCustomRoleClusterPermission["ENV_CREATOR"] = "ENV_CREATOR";
|
|
387
|
+
OrganizationCustomRoleClusterPermission["ADMIN"] = "ADMIN";
|
|
388
|
+
})(OrganizationCustomRoleClusterPermission = exports.OrganizationCustomRoleClusterPermission || (exports.OrganizationCustomRoleClusterPermission = {}));
|
|
389
|
+
/**
|
|
390
|
+
* Indicates the permission for a target project and a given environment type, from the lowest to the highest: - `NO_ACCESS` user has no access - `VIEWER` user can access the environment (and applications / containers / databases / variables) - `DEPLOYER` user can deploy the environment (dependent on the required cluster permission `ENV_CREATOR`) - `MANAGER` user can create an environment (and applications / containers / databases / variables)
|
|
391
|
+
* @export
|
|
392
|
+
* @enum {string}
|
|
393
|
+
*/
|
|
394
|
+
var OrganizationCustomRoleProjectPermission;
|
|
395
|
+
(function (OrganizationCustomRoleProjectPermission) {
|
|
396
|
+
OrganizationCustomRoleProjectPermission["NO_ACCESS"] = "NO_ACCESS";
|
|
397
|
+
OrganizationCustomRoleProjectPermission["VIEWER"] = "VIEWER";
|
|
398
|
+
OrganizationCustomRoleProjectPermission["DEPLOYER"] = "DEPLOYER";
|
|
399
|
+
OrganizationCustomRoleProjectPermission["MANAGER"] = "MANAGER";
|
|
400
|
+
})(OrganizationCustomRoleProjectPermission = exports.OrganizationCustomRoleProjectPermission || (exports.OrganizationCustomRoleProjectPermission = {}));
|
|
377
401
|
/**
|
|
378
402
|
* Events to subscribe to and send to the `target_url`. - `DEPLOYMENT_STARTED` send an event when a deployment is started and going to be executed - `DEPLOYMENT_CANCELLED` send an event when a deployment is cancelled - `DEPLOYMENT_FAILURE` send an event when a deployment failed - `DEPLOYMENT_SUCCESSFUL` send an event when a deployment is successful
|
|
379
403
|
* @export
|
|
@@ -4732,41 +4756,6 @@ const ApplicationsApiAxiosParamCreator = function (configuration) {
|
|
|
4732
4756
|
options: localVarRequestOptions,
|
|
4733
4757
|
};
|
|
4734
4758
|
}),
|
|
4735
|
-
/**
|
|
4736
|
-
* Deploy to the last commit the applications you specified.
|
|
4737
|
-
* @summary Deploy applications
|
|
4738
|
-
* @param {string} environmentId Environment ID
|
|
4739
|
-
* @param {DeployAllRequest} [deployAllRequest]
|
|
4740
|
-
* @param {*} [options] Override http request option.
|
|
4741
|
-
* @throws {RequiredError}
|
|
4742
|
-
*/
|
|
4743
|
-
deployAllApplications: (environmentId, deployAllRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4744
|
-
// verify required parameter 'environmentId' is not null or undefined
|
|
4745
|
-
(0, common_1.assertParamExists)('deployAllApplications', 'environmentId', environmentId);
|
|
4746
|
-
const localVarPath = `/environment/{environmentId}/application/deploy`
|
|
4747
|
-
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
4748
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4749
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4750
|
-
let baseOptions;
|
|
4751
|
-
if (configuration) {
|
|
4752
|
-
baseOptions = configuration.baseOptions;
|
|
4753
|
-
}
|
|
4754
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4755
|
-
const localVarHeaderParameter = {};
|
|
4756
|
-
const localVarQueryParameter = {};
|
|
4757
|
-
// authentication bearerAuth required
|
|
4758
|
-
// http bearer authentication required
|
|
4759
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4760
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4761
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4762
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4763
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4764
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deployAllRequest, localVarRequestOptions, configuration);
|
|
4765
|
-
return {
|
|
4766
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4767
|
-
options: localVarRequestOptions,
|
|
4768
|
-
};
|
|
4769
|
-
}),
|
|
4770
4759
|
/**
|
|
4771
4760
|
*
|
|
4772
4761
|
* @summary List default application advanced settings
|
|
@@ -4979,20 +4968,6 @@ const ApplicationsApiFp = function (configuration) {
|
|
|
4979
4968
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4980
4969
|
});
|
|
4981
4970
|
},
|
|
4982
|
-
/**
|
|
4983
|
-
* Deploy to the last commit the applications you specified.
|
|
4984
|
-
* @summary Deploy applications
|
|
4985
|
-
* @param {string} environmentId Environment ID
|
|
4986
|
-
* @param {DeployAllRequest} [deployAllRequest]
|
|
4987
|
-
* @param {*} [options] Override http request option.
|
|
4988
|
-
* @throws {RequiredError}
|
|
4989
|
-
*/
|
|
4990
|
-
deployAllApplications(environmentId, deployAllRequest, options) {
|
|
4991
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4992
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deployAllApplications(environmentId, deployAllRequest, options);
|
|
4993
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4994
|
-
});
|
|
4995
|
-
},
|
|
4996
4971
|
/**
|
|
4997
4972
|
*
|
|
4998
4973
|
* @summary List default application advanced settings
|
|
@@ -5091,17 +5066,6 @@ const ApplicationsApiFactory = function (configuration, basePath, axios) {
|
|
|
5091
5066
|
createApplication(environmentId, applicationRequest, options) {
|
|
5092
5067
|
return localVarFp.createApplication(environmentId, applicationRequest, options).then((request) => request(axios, basePath));
|
|
5093
5068
|
},
|
|
5094
|
-
/**
|
|
5095
|
-
* Deploy to the last commit the applications you specified.
|
|
5096
|
-
* @summary Deploy applications
|
|
5097
|
-
* @param {string} environmentId Environment ID
|
|
5098
|
-
* @param {DeployAllRequest} [deployAllRequest]
|
|
5099
|
-
* @param {*} [options] Override http request option.
|
|
5100
|
-
* @throws {RequiredError}
|
|
5101
|
-
*/
|
|
5102
|
-
deployAllApplications(environmentId, deployAllRequest, options) {
|
|
5103
|
-
return localVarFp.deployAllApplications(environmentId, deployAllRequest, options).then((request) => request(axios, basePath));
|
|
5104
|
-
},
|
|
5105
5069
|
/**
|
|
5106
5070
|
*
|
|
5107
5071
|
* @summary List default application advanced settings
|
|
@@ -5183,18 +5147,6 @@ class ApplicationsApi extends base_1.BaseAPI {
|
|
|
5183
5147
|
createApplication(environmentId, applicationRequest, options) {
|
|
5184
5148
|
return (0, exports.ApplicationsApiFp)(this.configuration).createApplication(environmentId, applicationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5185
5149
|
}
|
|
5186
|
-
/**
|
|
5187
|
-
* Deploy to the last commit the applications you specified.
|
|
5188
|
-
* @summary Deploy applications
|
|
5189
|
-
* @param {string} environmentId Environment ID
|
|
5190
|
-
* @param {DeployAllRequest} [deployAllRequest]
|
|
5191
|
-
* @param {*} [options] Override http request option.
|
|
5192
|
-
* @throws {RequiredError}
|
|
5193
|
-
* @memberof ApplicationsApi
|
|
5194
|
-
*/
|
|
5195
|
-
deployAllApplications(environmentId, deployAllRequest, options) {
|
|
5196
|
-
return (0, exports.ApplicationsApiFp)(this.configuration).deployAllApplications(environmentId, deployAllRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5197
|
-
}
|
|
5198
5150
|
/**
|
|
5199
5151
|
*
|
|
5200
5152
|
* @summary List default application advanced settings
|
|
@@ -16599,6 +16551,116 @@ class DependencyApi extends base_1.BaseAPI {
|
|
|
16599
16551
|
}
|
|
16600
16552
|
}
|
|
16601
16553
|
exports.DependencyApi = DependencyApi;
|
|
16554
|
+
/**
|
|
16555
|
+
* EnvironmentApi - axios parameter creator
|
|
16556
|
+
* @export
|
|
16557
|
+
*/
|
|
16558
|
+
const EnvironmentApiAxiosParamCreator = function (configuration) {
|
|
16559
|
+
return {
|
|
16560
|
+
/**
|
|
16561
|
+
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
16562
|
+
* @summary Deploy applications
|
|
16563
|
+
* @param {string} environmentId Environment ID
|
|
16564
|
+
* @param {DeployAllRequest} [deployAllRequest]
|
|
16565
|
+
* @param {*} [options] Override http request option.
|
|
16566
|
+
* @throws {RequiredError}
|
|
16567
|
+
*/
|
|
16568
|
+
deployAllApplications: (environmentId, deployAllRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
16569
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
16570
|
+
(0, common_1.assertParamExists)('deployAllApplications', 'environmentId', environmentId);
|
|
16571
|
+
const localVarPath = `/environment/{environmentId}/application/deploy`
|
|
16572
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
16573
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16574
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16575
|
+
let baseOptions;
|
|
16576
|
+
if (configuration) {
|
|
16577
|
+
baseOptions = configuration.baseOptions;
|
|
16578
|
+
}
|
|
16579
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
16580
|
+
const localVarHeaderParameter = {};
|
|
16581
|
+
const localVarQueryParameter = {};
|
|
16582
|
+
// authentication bearerAuth required
|
|
16583
|
+
// http bearer authentication required
|
|
16584
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
16585
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16586
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16587
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16588
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16589
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deployAllRequest, localVarRequestOptions, configuration);
|
|
16590
|
+
return {
|
|
16591
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16592
|
+
options: localVarRequestOptions,
|
|
16593
|
+
};
|
|
16594
|
+
}),
|
|
16595
|
+
};
|
|
16596
|
+
};
|
|
16597
|
+
exports.EnvironmentApiAxiosParamCreator = EnvironmentApiAxiosParamCreator;
|
|
16598
|
+
/**
|
|
16599
|
+
* EnvironmentApi - functional programming interface
|
|
16600
|
+
* @export
|
|
16601
|
+
*/
|
|
16602
|
+
const EnvironmentApiFp = function (configuration) {
|
|
16603
|
+
const localVarAxiosParamCreator = (0, exports.EnvironmentApiAxiosParamCreator)(configuration);
|
|
16604
|
+
return {
|
|
16605
|
+
/**
|
|
16606
|
+
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
16607
|
+
* @summary Deploy applications
|
|
16608
|
+
* @param {string} environmentId Environment ID
|
|
16609
|
+
* @param {DeployAllRequest} [deployAllRequest]
|
|
16610
|
+
* @param {*} [options] Override http request option.
|
|
16611
|
+
* @throws {RequiredError}
|
|
16612
|
+
*/
|
|
16613
|
+
deployAllApplications(environmentId, deployAllRequest, options) {
|
|
16614
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16615
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deployAllApplications(environmentId, deployAllRequest, options);
|
|
16616
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
16617
|
+
});
|
|
16618
|
+
},
|
|
16619
|
+
};
|
|
16620
|
+
};
|
|
16621
|
+
exports.EnvironmentApiFp = EnvironmentApiFp;
|
|
16622
|
+
/**
|
|
16623
|
+
* EnvironmentApi - factory interface
|
|
16624
|
+
* @export
|
|
16625
|
+
*/
|
|
16626
|
+
const EnvironmentApiFactory = function (configuration, basePath, axios) {
|
|
16627
|
+
const localVarFp = (0, exports.EnvironmentApiFp)(configuration);
|
|
16628
|
+
return {
|
|
16629
|
+
/**
|
|
16630
|
+
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
16631
|
+
* @summary Deploy applications
|
|
16632
|
+
* @param {string} environmentId Environment ID
|
|
16633
|
+
* @param {DeployAllRequest} [deployAllRequest]
|
|
16634
|
+
* @param {*} [options] Override http request option.
|
|
16635
|
+
* @throws {RequiredError}
|
|
16636
|
+
*/
|
|
16637
|
+
deployAllApplications(environmentId, deployAllRequest, options) {
|
|
16638
|
+
return localVarFp.deployAllApplications(environmentId, deployAllRequest, options).then((request) => request(axios, basePath));
|
|
16639
|
+
},
|
|
16640
|
+
};
|
|
16641
|
+
};
|
|
16642
|
+
exports.EnvironmentApiFactory = EnvironmentApiFactory;
|
|
16643
|
+
/**
|
|
16644
|
+
* EnvironmentApi - object-oriented interface
|
|
16645
|
+
* @export
|
|
16646
|
+
* @class EnvironmentApi
|
|
16647
|
+
* @extends {BaseAPI}
|
|
16648
|
+
*/
|
|
16649
|
+
class EnvironmentApi extends base_1.BaseAPI {
|
|
16650
|
+
/**
|
|
16651
|
+
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
16652
|
+
* @summary Deploy applications
|
|
16653
|
+
* @param {string} environmentId Environment ID
|
|
16654
|
+
* @param {DeployAllRequest} [deployAllRequest]
|
|
16655
|
+
* @param {*} [options] Override http request option.
|
|
16656
|
+
* @throws {RequiredError}
|
|
16657
|
+
* @memberof EnvironmentApi
|
|
16658
|
+
*/
|
|
16659
|
+
deployAllApplications(environmentId, deployAllRequest, options) {
|
|
16660
|
+
return (0, exports.EnvironmentApiFp)(this.configuration).deployAllApplications(environmentId, deployAllRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16661
|
+
}
|
|
16662
|
+
}
|
|
16663
|
+
exports.EnvironmentApi = EnvironmentApi;
|
|
16602
16664
|
/**
|
|
16603
16665
|
* EnvironmentActionsApi - axios parameter creator
|
|
16604
16666
|
* @export
|
|
@@ -20376,6 +20438,41 @@ const MembersApiAxiosParamCreator = function (configuration) {
|
|
|
20376
20438
|
options: localVarRequestOptions,
|
|
20377
20439
|
};
|
|
20378
20440
|
}),
|
|
20441
|
+
/**
|
|
20442
|
+
* Edit an organization member role
|
|
20443
|
+
* @summary Edit an organization member role
|
|
20444
|
+
* @param {string} organizationId Organization ID
|
|
20445
|
+
* @param {MemberRoleUpdateRequest} [memberRoleUpdateRequest]
|
|
20446
|
+
* @param {*} [options] Override http request option.
|
|
20447
|
+
* @throws {RequiredError}
|
|
20448
|
+
*/
|
|
20449
|
+
editOrganizationMemberRole: (organizationId, memberRoleUpdateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20450
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
20451
|
+
(0, common_1.assertParamExists)('editOrganizationMemberRole', 'organizationId', organizationId);
|
|
20452
|
+
const localVarPath = `/organization/{organizationId}/member`
|
|
20453
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
20454
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20455
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20456
|
+
let baseOptions;
|
|
20457
|
+
if (configuration) {
|
|
20458
|
+
baseOptions = configuration.baseOptions;
|
|
20459
|
+
}
|
|
20460
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
20461
|
+
const localVarHeaderParameter = {};
|
|
20462
|
+
const localVarQueryParameter = {};
|
|
20463
|
+
// authentication bearerAuth required
|
|
20464
|
+
// http bearer authentication required
|
|
20465
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
20466
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20467
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
20468
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20469
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20470
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(memberRoleUpdateRequest, localVarRequestOptions, configuration);
|
|
20471
|
+
return {
|
|
20472
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
20473
|
+
options: localVarRequestOptions,
|
|
20474
|
+
};
|
|
20475
|
+
}),
|
|
20379
20476
|
/**
|
|
20380
20477
|
*
|
|
20381
20478
|
* @summary Get invited members
|
|
@@ -20583,6 +20680,20 @@ const MembersApiFp = function (configuration) {
|
|
|
20583
20680
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20584
20681
|
});
|
|
20585
20682
|
},
|
|
20683
|
+
/**
|
|
20684
|
+
* Edit an organization member role
|
|
20685
|
+
* @summary Edit an organization member role
|
|
20686
|
+
* @param {string} organizationId Organization ID
|
|
20687
|
+
* @param {MemberRoleUpdateRequest} [memberRoleUpdateRequest]
|
|
20688
|
+
* @param {*} [options] Override http request option.
|
|
20689
|
+
* @throws {RequiredError}
|
|
20690
|
+
*/
|
|
20691
|
+
editOrganizationMemberRole(organizationId, memberRoleUpdateRequest, options) {
|
|
20692
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20693
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.editOrganizationMemberRole(organizationId, memberRoleUpdateRequest, options);
|
|
20694
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20695
|
+
});
|
|
20696
|
+
},
|
|
20586
20697
|
/**
|
|
20587
20698
|
*
|
|
20588
20699
|
* @summary Get invited members
|
|
@@ -20682,6 +20793,17 @@ const MembersApiFactory = function (configuration, basePath, axios) {
|
|
|
20682
20793
|
deleteMember(organizationId, userId, options) {
|
|
20683
20794
|
return localVarFp.deleteMember(organizationId, userId, options).then((request) => request(axios, basePath));
|
|
20684
20795
|
},
|
|
20796
|
+
/**
|
|
20797
|
+
* Edit an organization member role
|
|
20798
|
+
* @summary Edit an organization member role
|
|
20799
|
+
* @param {string} organizationId Organization ID
|
|
20800
|
+
* @param {MemberRoleUpdateRequest} [memberRoleUpdateRequest]
|
|
20801
|
+
* @param {*} [options] Override http request option.
|
|
20802
|
+
* @throws {RequiredError}
|
|
20803
|
+
*/
|
|
20804
|
+
editOrganizationMemberRole(organizationId, memberRoleUpdateRequest, options) {
|
|
20805
|
+
return localVarFp.editOrganizationMemberRole(organizationId, memberRoleUpdateRequest, options).then((request) => request(axios, basePath));
|
|
20806
|
+
},
|
|
20685
20807
|
/**
|
|
20686
20808
|
*
|
|
20687
20809
|
* @summary Get invited members
|
|
@@ -20768,6 +20890,18 @@ class MembersApi extends base_1.BaseAPI {
|
|
|
20768
20890
|
deleteMember(organizationId, userId, options) {
|
|
20769
20891
|
return (0, exports.MembersApiFp)(this.configuration).deleteMember(organizationId, userId, options).then((request) => request(this.axios, this.basePath));
|
|
20770
20892
|
}
|
|
20893
|
+
/**
|
|
20894
|
+
* Edit an organization member role
|
|
20895
|
+
* @summary Edit an organization member role
|
|
20896
|
+
* @param {string} organizationId Organization ID
|
|
20897
|
+
* @param {MemberRoleUpdateRequest} [memberRoleUpdateRequest]
|
|
20898
|
+
* @param {*} [options] Override http request option.
|
|
20899
|
+
* @throws {RequiredError}
|
|
20900
|
+
* @memberof MembersApi
|
|
20901
|
+
*/
|
|
20902
|
+
editOrganizationMemberRole(organizationId, memberRoleUpdateRequest, options) {
|
|
20903
|
+
return (0, exports.MembersApiFp)(this.configuration).editOrganizationMemberRole(organizationId, memberRoleUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
20904
|
+
}
|
|
20771
20905
|
/**
|
|
20772
20906
|
*
|
|
20773
20907
|
* @summary Get invited members
|
|
@@ -21599,20 +21733,24 @@ class OrganizationApiTokenApi extends base_1.BaseAPI {
|
|
|
21599
21733
|
}
|
|
21600
21734
|
exports.OrganizationApiTokenApi = OrganizationApiTokenApi;
|
|
21601
21735
|
/**
|
|
21602
|
-
*
|
|
21736
|
+
* OrganizationCustomRoleApi - axios parameter creator
|
|
21603
21737
|
* @export
|
|
21604
21738
|
*/
|
|
21605
|
-
const
|
|
21739
|
+
const OrganizationCustomRoleApiAxiosParamCreator = function (configuration) {
|
|
21606
21740
|
return {
|
|
21607
21741
|
/**
|
|
21608
|
-
*
|
|
21609
|
-
* @summary Create an organization
|
|
21610
|
-
* @param {
|
|
21742
|
+
* Create an organization custom role
|
|
21743
|
+
* @summary Create an organization custom role
|
|
21744
|
+
* @param {string} organizationId Organization ID
|
|
21745
|
+
* @param {OrganizationCustomRoleCreateRequest} [organizationCustomRoleCreateRequest]
|
|
21611
21746
|
* @param {*} [options] Override http request option.
|
|
21612
21747
|
* @throws {RequiredError}
|
|
21613
21748
|
*/
|
|
21614
|
-
|
|
21615
|
-
|
|
21749
|
+
createOrganizationCustomRole: (organizationId, organizationCustomRoleCreateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
21750
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
21751
|
+
(0, common_1.assertParamExists)('createOrganizationCustomRole', 'organizationId', organizationId);
|
|
21752
|
+
const localVarPath = `/organization/{organizationId}/customRole`
|
|
21753
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
21616
21754
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21617
21755
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21618
21756
|
let baseOptions;
|
|
@@ -21629,23 +21767,23 @@ const OrganizationMainCallsApiAxiosParamCreator = function (configuration) {
|
|
|
21629
21767
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
21630
21768
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21631
21769
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
21632
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
21770
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(organizationCustomRoleCreateRequest, localVarRequestOptions, configuration);
|
|
21633
21771
|
return {
|
|
21634
21772
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
21635
21773
|
options: localVarRequestOptions,
|
|
21636
21774
|
};
|
|
21637
21775
|
}),
|
|
21638
21776
|
/**
|
|
21639
|
-
*
|
|
21640
|
-
* @summary Delete
|
|
21777
|
+
* Delete organization custom role
|
|
21778
|
+
* @summary Delete organization custom role
|
|
21641
21779
|
* @param {string} organizationId Organization ID
|
|
21642
21780
|
* @param {*} [options] Override http request option.
|
|
21643
21781
|
* @throws {RequiredError}
|
|
21644
21782
|
*/
|
|
21645
|
-
|
|
21783
|
+
deleteOrganizationCustomRole: (organizationId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
21646
21784
|
// verify required parameter 'organizationId' is not null or undefined
|
|
21647
|
-
(0, common_1.assertParamExists)('
|
|
21648
|
-
const localVarPath = `/organization/{organizationId}`
|
|
21785
|
+
(0, common_1.assertParamExists)('deleteOrganizationCustomRole', 'organizationId', organizationId);
|
|
21786
|
+
const localVarPath = `/organization/{organizationId}/customRole/{customRoleId}`
|
|
21649
21787
|
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
21650
21788
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21651
21789
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -21668,17 +21806,17 @@ const OrganizationMainCallsApiAxiosParamCreator = function (configuration) {
|
|
|
21668
21806
|
};
|
|
21669
21807
|
}),
|
|
21670
21808
|
/**
|
|
21671
|
-
*
|
|
21672
|
-
* @summary Edit an organization
|
|
21809
|
+
* Edit an organization custom role
|
|
21810
|
+
* @summary Edit an organization custom role
|
|
21673
21811
|
* @param {string} organizationId Organization ID
|
|
21674
|
-
* @param {
|
|
21812
|
+
* @param {OrganizationCustomRoleUpdateRequest} [organizationCustomRoleUpdateRequest]
|
|
21675
21813
|
* @param {*} [options] Override http request option.
|
|
21676
21814
|
* @throws {RequiredError}
|
|
21677
21815
|
*/
|
|
21678
|
-
|
|
21816
|
+
editOrganizationCustomRole: (organizationId, organizationCustomRoleUpdateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
21679
21817
|
// verify required parameter 'organizationId' is not null or undefined
|
|
21680
|
-
(0, common_1.assertParamExists)('
|
|
21681
|
-
const localVarPath = `/organization/{organizationId}`
|
|
21818
|
+
(0, common_1.assertParamExists)('editOrganizationCustomRole', 'organizationId', organizationId);
|
|
21819
|
+
const localVarPath = `/organization/{organizationId}/customRole/{customRoleId}`
|
|
21682
21820
|
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
21683
21821
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21684
21822
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -21696,24 +21834,28 @@ const OrganizationMainCallsApiAxiosParamCreator = function (configuration) {
|
|
|
21696
21834
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
21697
21835
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21698
21836
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
21699
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
21837
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(organizationCustomRoleUpdateRequest, localVarRequestOptions, configuration);
|
|
21700
21838
|
return {
|
|
21701
21839
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
21702
21840
|
options: localVarRequestOptions,
|
|
21703
21841
|
};
|
|
21704
21842
|
}),
|
|
21705
21843
|
/**
|
|
21706
|
-
*
|
|
21707
|
-
* @summary Get organization
|
|
21844
|
+
* Get an organization custom role
|
|
21845
|
+
* @summary Get an organization custom role
|
|
21708
21846
|
* @param {string} organizationId Organization ID
|
|
21847
|
+
* @param {string} customRoleId Custom Role ID
|
|
21709
21848
|
* @param {*} [options] Override http request option.
|
|
21710
21849
|
* @throws {RequiredError}
|
|
21711
21850
|
*/
|
|
21712
|
-
|
|
21851
|
+
getOrganizationCustomRole: (organizationId, customRoleId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
21713
21852
|
// verify required parameter 'organizationId' is not null or undefined
|
|
21714
|
-
(0, common_1.assertParamExists)('
|
|
21715
|
-
|
|
21716
|
-
|
|
21853
|
+
(0, common_1.assertParamExists)('getOrganizationCustomRole', 'organizationId', organizationId);
|
|
21854
|
+
// verify required parameter 'customRoleId' is not null or undefined
|
|
21855
|
+
(0, common_1.assertParamExists)('getOrganizationCustomRole', 'customRoleId', customRoleId);
|
|
21856
|
+
const localVarPath = `/organization/{organizationId}/customRole/{customRoleId}`
|
|
21857
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
21858
|
+
.replace(`{${"customRoleId"}}`, encodeURIComponent(String(customRoleId)));
|
|
21717
21859
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21718
21860
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21719
21861
|
let baseOptions;
|
|
@@ -21735,13 +21877,17 @@ const OrganizationMainCallsApiAxiosParamCreator = function (configuration) {
|
|
|
21735
21877
|
};
|
|
21736
21878
|
}),
|
|
21737
21879
|
/**
|
|
21738
|
-
*
|
|
21739
|
-
* @summary List
|
|
21880
|
+
* List organization custom roles
|
|
21881
|
+
* @summary List organization custom roles
|
|
21882
|
+
* @param {string} organizationId Organization ID
|
|
21740
21883
|
* @param {*} [options] Override http request option.
|
|
21741
21884
|
* @throws {RequiredError}
|
|
21742
21885
|
*/
|
|
21743
|
-
|
|
21744
|
-
|
|
21886
|
+
listOrganizationCustomRoles: (organizationId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
21887
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
21888
|
+
(0, common_1.assertParamExists)('listOrganizationCustomRoles', 'organizationId', organizationId);
|
|
21889
|
+
const localVarPath = `/organization/{organizationId}/customRole`
|
|
21890
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
21745
21891
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21746
21892
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21747
21893
|
let baseOptions;
|
|
@@ -21764,12 +21910,419 @@ const OrganizationMainCallsApiAxiosParamCreator = function (configuration) {
|
|
|
21764
21910
|
}),
|
|
21765
21911
|
};
|
|
21766
21912
|
};
|
|
21767
|
-
exports.
|
|
21913
|
+
exports.OrganizationCustomRoleApiAxiosParamCreator = OrganizationCustomRoleApiAxiosParamCreator;
|
|
21768
21914
|
/**
|
|
21769
|
-
*
|
|
21915
|
+
* OrganizationCustomRoleApi - functional programming interface
|
|
21770
21916
|
* @export
|
|
21771
21917
|
*/
|
|
21772
|
-
const
|
|
21918
|
+
const OrganizationCustomRoleApiFp = function (configuration) {
|
|
21919
|
+
const localVarAxiosParamCreator = (0, exports.OrganizationCustomRoleApiAxiosParamCreator)(configuration);
|
|
21920
|
+
return {
|
|
21921
|
+
/**
|
|
21922
|
+
* Create an organization custom role
|
|
21923
|
+
* @summary Create an organization custom role
|
|
21924
|
+
* @param {string} organizationId Organization ID
|
|
21925
|
+
* @param {OrganizationCustomRoleCreateRequest} [organizationCustomRoleCreateRequest]
|
|
21926
|
+
* @param {*} [options] Override http request option.
|
|
21927
|
+
* @throws {RequiredError}
|
|
21928
|
+
*/
|
|
21929
|
+
createOrganizationCustomRole(organizationId, organizationCustomRoleCreateRequest, options) {
|
|
21930
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21931
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrganizationCustomRole(organizationId, organizationCustomRoleCreateRequest, options);
|
|
21932
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
21933
|
+
});
|
|
21934
|
+
},
|
|
21935
|
+
/**
|
|
21936
|
+
* Delete organization custom role
|
|
21937
|
+
* @summary Delete organization custom role
|
|
21938
|
+
* @param {string} organizationId Organization ID
|
|
21939
|
+
* @param {*} [options] Override http request option.
|
|
21940
|
+
* @throws {RequiredError}
|
|
21941
|
+
*/
|
|
21942
|
+
deleteOrganizationCustomRole(organizationId, options) {
|
|
21943
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21944
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteOrganizationCustomRole(organizationId, options);
|
|
21945
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
21946
|
+
});
|
|
21947
|
+
},
|
|
21948
|
+
/**
|
|
21949
|
+
* Edit an organization custom role
|
|
21950
|
+
* @summary Edit an organization custom role
|
|
21951
|
+
* @param {string} organizationId Organization ID
|
|
21952
|
+
* @param {OrganizationCustomRoleUpdateRequest} [organizationCustomRoleUpdateRequest]
|
|
21953
|
+
* @param {*} [options] Override http request option.
|
|
21954
|
+
* @throws {RequiredError}
|
|
21955
|
+
*/
|
|
21956
|
+
editOrganizationCustomRole(organizationId, organizationCustomRoleUpdateRequest, options) {
|
|
21957
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21958
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.editOrganizationCustomRole(organizationId, organizationCustomRoleUpdateRequest, options);
|
|
21959
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
21960
|
+
});
|
|
21961
|
+
},
|
|
21962
|
+
/**
|
|
21963
|
+
* Get an organization custom role
|
|
21964
|
+
* @summary Get an organization custom role
|
|
21965
|
+
* @param {string} organizationId Organization ID
|
|
21966
|
+
* @param {string} customRoleId Custom Role ID
|
|
21967
|
+
* @param {*} [options] Override http request option.
|
|
21968
|
+
* @throws {RequiredError}
|
|
21969
|
+
*/
|
|
21970
|
+
getOrganizationCustomRole(organizationId, customRoleId, options) {
|
|
21971
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21972
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganizationCustomRole(organizationId, customRoleId, options);
|
|
21973
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
21974
|
+
});
|
|
21975
|
+
},
|
|
21976
|
+
/**
|
|
21977
|
+
* List organization custom roles
|
|
21978
|
+
* @summary List organization custom roles
|
|
21979
|
+
* @param {string} organizationId Organization ID
|
|
21980
|
+
* @param {*} [options] Override http request option.
|
|
21981
|
+
* @throws {RequiredError}
|
|
21982
|
+
*/
|
|
21983
|
+
listOrganizationCustomRoles(organizationId, options) {
|
|
21984
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21985
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrganizationCustomRoles(organizationId, options);
|
|
21986
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
21987
|
+
});
|
|
21988
|
+
},
|
|
21989
|
+
};
|
|
21990
|
+
};
|
|
21991
|
+
exports.OrganizationCustomRoleApiFp = OrganizationCustomRoleApiFp;
|
|
21992
|
+
/**
|
|
21993
|
+
* OrganizationCustomRoleApi - factory interface
|
|
21994
|
+
* @export
|
|
21995
|
+
*/
|
|
21996
|
+
const OrganizationCustomRoleApiFactory = function (configuration, basePath, axios) {
|
|
21997
|
+
const localVarFp = (0, exports.OrganizationCustomRoleApiFp)(configuration);
|
|
21998
|
+
return {
|
|
21999
|
+
/**
|
|
22000
|
+
* Create an organization custom role
|
|
22001
|
+
* @summary Create an organization custom role
|
|
22002
|
+
* @param {string} organizationId Organization ID
|
|
22003
|
+
* @param {OrganizationCustomRoleCreateRequest} [organizationCustomRoleCreateRequest]
|
|
22004
|
+
* @param {*} [options] Override http request option.
|
|
22005
|
+
* @throws {RequiredError}
|
|
22006
|
+
*/
|
|
22007
|
+
createOrganizationCustomRole(organizationId, organizationCustomRoleCreateRequest, options) {
|
|
22008
|
+
return localVarFp.createOrganizationCustomRole(organizationId, organizationCustomRoleCreateRequest, options).then((request) => request(axios, basePath));
|
|
22009
|
+
},
|
|
22010
|
+
/**
|
|
22011
|
+
* Delete organization custom role
|
|
22012
|
+
* @summary Delete organization custom role
|
|
22013
|
+
* @param {string} organizationId Organization ID
|
|
22014
|
+
* @param {*} [options] Override http request option.
|
|
22015
|
+
* @throws {RequiredError}
|
|
22016
|
+
*/
|
|
22017
|
+
deleteOrganizationCustomRole(organizationId, options) {
|
|
22018
|
+
return localVarFp.deleteOrganizationCustomRole(organizationId, options).then((request) => request(axios, basePath));
|
|
22019
|
+
},
|
|
22020
|
+
/**
|
|
22021
|
+
* Edit an organization custom role
|
|
22022
|
+
* @summary Edit an organization custom role
|
|
22023
|
+
* @param {string} organizationId Organization ID
|
|
22024
|
+
* @param {OrganizationCustomRoleUpdateRequest} [organizationCustomRoleUpdateRequest]
|
|
22025
|
+
* @param {*} [options] Override http request option.
|
|
22026
|
+
* @throws {RequiredError}
|
|
22027
|
+
*/
|
|
22028
|
+
editOrganizationCustomRole(organizationId, organizationCustomRoleUpdateRequest, options) {
|
|
22029
|
+
return localVarFp.editOrganizationCustomRole(organizationId, organizationCustomRoleUpdateRequest, options).then((request) => request(axios, basePath));
|
|
22030
|
+
},
|
|
22031
|
+
/**
|
|
22032
|
+
* Get an organization custom role
|
|
22033
|
+
* @summary Get an organization custom role
|
|
22034
|
+
* @param {string} organizationId Organization ID
|
|
22035
|
+
* @param {string} customRoleId Custom Role ID
|
|
22036
|
+
* @param {*} [options] Override http request option.
|
|
22037
|
+
* @throws {RequiredError}
|
|
22038
|
+
*/
|
|
22039
|
+
getOrganizationCustomRole(organizationId, customRoleId, options) {
|
|
22040
|
+
return localVarFp.getOrganizationCustomRole(organizationId, customRoleId, options).then((request) => request(axios, basePath));
|
|
22041
|
+
},
|
|
22042
|
+
/**
|
|
22043
|
+
* List organization custom roles
|
|
22044
|
+
* @summary List organization custom roles
|
|
22045
|
+
* @param {string} organizationId Organization ID
|
|
22046
|
+
* @param {*} [options] Override http request option.
|
|
22047
|
+
* @throws {RequiredError}
|
|
22048
|
+
*/
|
|
22049
|
+
listOrganizationCustomRoles(organizationId, options) {
|
|
22050
|
+
return localVarFp.listOrganizationCustomRoles(organizationId, options).then((request) => request(axios, basePath));
|
|
22051
|
+
},
|
|
22052
|
+
};
|
|
22053
|
+
};
|
|
22054
|
+
exports.OrganizationCustomRoleApiFactory = OrganizationCustomRoleApiFactory;
|
|
22055
|
+
/**
|
|
22056
|
+
* OrganizationCustomRoleApi - object-oriented interface
|
|
22057
|
+
* @export
|
|
22058
|
+
* @class OrganizationCustomRoleApi
|
|
22059
|
+
* @extends {BaseAPI}
|
|
22060
|
+
*/
|
|
22061
|
+
class OrganizationCustomRoleApi extends base_1.BaseAPI {
|
|
22062
|
+
/**
|
|
22063
|
+
* Create an organization custom role
|
|
22064
|
+
* @summary Create an organization custom role
|
|
22065
|
+
* @param {string} organizationId Organization ID
|
|
22066
|
+
* @param {OrganizationCustomRoleCreateRequest} [organizationCustomRoleCreateRequest]
|
|
22067
|
+
* @param {*} [options] Override http request option.
|
|
22068
|
+
* @throws {RequiredError}
|
|
22069
|
+
* @memberof OrganizationCustomRoleApi
|
|
22070
|
+
*/
|
|
22071
|
+
createOrganizationCustomRole(organizationId, organizationCustomRoleCreateRequest, options) {
|
|
22072
|
+
return (0, exports.OrganizationCustomRoleApiFp)(this.configuration).createOrganizationCustomRole(organizationId, organizationCustomRoleCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
22073
|
+
}
|
|
22074
|
+
/**
|
|
22075
|
+
* Delete organization custom role
|
|
22076
|
+
* @summary Delete organization custom role
|
|
22077
|
+
* @param {string} organizationId Organization ID
|
|
22078
|
+
* @param {*} [options] Override http request option.
|
|
22079
|
+
* @throws {RequiredError}
|
|
22080
|
+
* @memberof OrganizationCustomRoleApi
|
|
22081
|
+
*/
|
|
22082
|
+
deleteOrganizationCustomRole(organizationId, options) {
|
|
22083
|
+
return (0, exports.OrganizationCustomRoleApiFp)(this.configuration).deleteOrganizationCustomRole(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
22084
|
+
}
|
|
22085
|
+
/**
|
|
22086
|
+
* Edit an organization custom role
|
|
22087
|
+
* @summary Edit an organization custom role
|
|
22088
|
+
* @param {string} organizationId Organization ID
|
|
22089
|
+
* @param {OrganizationCustomRoleUpdateRequest} [organizationCustomRoleUpdateRequest]
|
|
22090
|
+
* @param {*} [options] Override http request option.
|
|
22091
|
+
* @throws {RequiredError}
|
|
22092
|
+
* @memberof OrganizationCustomRoleApi
|
|
22093
|
+
*/
|
|
22094
|
+
editOrganizationCustomRole(organizationId, organizationCustomRoleUpdateRequest, options) {
|
|
22095
|
+
return (0, exports.OrganizationCustomRoleApiFp)(this.configuration).editOrganizationCustomRole(organizationId, organizationCustomRoleUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
22096
|
+
}
|
|
22097
|
+
/**
|
|
22098
|
+
* Get an organization custom role
|
|
22099
|
+
* @summary Get an organization custom role
|
|
22100
|
+
* @param {string} organizationId Organization ID
|
|
22101
|
+
* @param {string} customRoleId Custom Role ID
|
|
22102
|
+
* @param {*} [options] Override http request option.
|
|
22103
|
+
* @throws {RequiredError}
|
|
22104
|
+
* @memberof OrganizationCustomRoleApi
|
|
22105
|
+
*/
|
|
22106
|
+
getOrganizationCustomRole(organizationId, customRoleId, options) {
|
|
22107
|
+
return (0, exports.OrganizationCustomRoleApiFp)(this.configuration).getOrganizationCustomRole(organizationId, customRoleId, options).then((request) => request(this.axios, this.basePath));
|
|
22108
|
+
}
|
|
22109
|
+
/**
|
|
22110
|
+
* List organization custom roles
|
|
22111
|
+
* @summary List organization custom roles
|
|
22112
|
+
* @param {string} organizationId Organization ID
|
|
22113
|
+
* @param {*} [options] Override http request option.
|
|
22114
|
+
* @throws {RequiredError}
|
|
22115
|
+
* @memberof OrganizationCustomRoleApi
|
|
22116
|
+
*/
|
|
22117
|
+
listOrganizationCustomRoles(organizationId, options) {
|
|
22118
|
+
return (0, exports.OrganizationCustomRoleApiFp)(this.configuration).listOrganizationCustomRoles(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
22119
|
+
}
|
|
22120
|
+
}
|
|
22121
|
+
exports.OrganizationCustomRoleApi = OrganizationCustomRoleApi;
|
|
22122
|
+
/**
|
|
22123
|
+
* OrganizationMainCallsApi - axios parameter creator
|
|
22124
|
+
* @export
|
|
22125
|
+
*/
|
|
22126
|
+
const OrganizationMainCallsApiAxiosParamCreator = function (configuration) {
|
|
22127
|
+
return {
|
|
22128
|
+
/**
|
|
22129
|
+
*
|
|
22130
|
+
* @summary Create an organization
|
|
22131
|
+
* @param {OrganizationRequest} [organizationRequest]
|
|
22132
|
+
* @param {*} [options] Override http request option.
|
|
22133
|
+
* @throws {RequiredError}
|
|
22134
|
+
*/
|
|
22135
|
+
createOrganization: (organizationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
22136
|
+
const localVarPath = `/organization`;
|
|
22137
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22138
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22139
|
+
let baseOptions;
|
|
22140
|
+
if (configuration) {
|
|
22141
|
+
baseOptions = configuration.baseOptions;
|
|
22142
|
+
}
|
|
22143
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
22144
|
+
const localVarHeaderParameter = {};
|
|
22145
|
+
const localVarQueryParameter = {};
|
|
22146
|
+
// authentication bearerAuth required
|
|
22147
|
+
// http bearer authentication required
|
|
22148
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
22149
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22150
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
22151
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22152
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22153
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(organizationRequest, localVarRequestOptions, configuration);
|
|
22154
|
+
return {
|
|
22155
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
22156
|
+
options: localVarRequestOptions,
|
|
22157
|
+
};
|
|
22158
|
+
}),
|
|
22159
|
+
/**
|
|
22160
|
+
* To delete an organization you must have the admin permission
|
|
22161
|
+
* @summary Delete an organization
|
|
22162
|
+
* @param {string} organizationId Organization ID
|
|
22163
|
+
* @param {*} [options] Override http request option.
|
|
22164
|
+
* @throws {RequiredError}
|
|
22165
|
+
*/
|
|
22166
|
+
deleteOrganization: (organizationId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
22167
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
22168
|
+
(0, common_1.assertParamExists)('deleteOrganization', 'organizationId', organizationId);
|
|
22169
|
+
const localVarPath = `/organization/{organizationId}`
|
|
22170
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
22171
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22172
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22173
|
+
let baseOptions;
|
|
22174
|
+
if (configuration) {
|
|
22175
|
+
baseOptions = configuration.baseOptions;
|
|
22176
|
+
}
|
|
22177
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
22178
|
+
const localVarHeaderParameter = {};
|
|
22179
|
+
const localVarQueryParameter = {};
|
|
22180
|
+
// authentication bearerAuth required
|
|
22181
|
+
// http bearer authentication required
|
|
22182
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
22183
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
22184
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22185
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22186
|
+
return {
|
|
22187
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
22188
|
+
options: localVarRequestOptions,
|
|
22189
|
+
};
|
|
22190
|
+
}),
|
|
22191
|
+
/**
|
|
22192
|
+
* To edit an organization you must have the admin permission
|
|
22193
|
+
* @summary Edit an organization
|
|
22194
|
+
* @param {string} organizationId Organization ID
|
|
22195
|
+
* @param {OrganizationEditRequest} [organizationEditRequest]
|
|
22196
|
+
* @param {*} [options] Override http request option.
|
|
22197
|
+
* @throws {RequiredError}
|
|
22198
|
+
*/
|
|
22199
|
+
editOrganization: (organizationId, organizationEditRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
22200
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
22201
|
+
(0, common_1.assertParamExists)('editOrganization', 'organizationId', organizationId);
|
|
22202
|
+
const localVarPath = `/organization/{organizationId}`
|
|
22203
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
22204
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22205
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22206
|
+
let baseOptions;
|
|
22207
|
+
if (configuration) {
|
|
22208
|
+
baseOptions = configuration.baseOptions;
|
|
22209
|
+
}
|
|
22210
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
22211
|
+
const localVarHeaderParameter = {};
|
|
22212
|
+
const localVarQueryParameter = {};
|
|
22213
|
+
// authentication bearerAuth required
|
|
22214
|
+
// http bearer authentication required
|
|
22215
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
22216
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22217
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
22218
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22219
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22220
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(organizationEditRequest, localVarRequestOptions, configuration);
|
|
22221
|
+
return {
|
|
22222
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
22223
|
+
options: localVarRequestOptions,
|
|
22224
|
+
};
|
|
22225
|
+
}),
|
|
22226
|
+
/**
|
|
22227
|
+
*
|
|
22228
|
+
* @summary Get organization by ID
|
|
22229
|
+
* @param {string} organizationId Organization ID
|
|
22230
|
+
* @param {*} [options] Override http request option.
|
|
22231
|
+
* @throws {RequiredError}
|
|
22232
|
+
*/
|
|
22233
|
+
getOrganization: (organizationId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
22234
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
22235
|
+
(0, common_1.assertParamExists)('getOrganization', 'organizationId', organizationId);
|
|
22236
|
+
const localVarPath = `/organization/{organizationId}`
|
|
22237
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
22238
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22239
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22240
|
+
let baseOptions;
|
|
22241
|
+
if (configuration) {
|
|
22242
|
+
baseOptions = configuration.baseOptions;
|
|
22243
|
+
}
|
|
22244
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
22245
|
+
const localVarHeaderParameter = {};
|
|
22246
|
+
const localVarQueryParameter = {};
|
|
22247
|
+
// authentication bearerAuth required
|
|
22248
|
+
// http bearer authentication required
|
|
22249
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
22250
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
22251
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22252
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22253
|
+
return {
|
|
22254
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
22255
|
+
options: localVarRequestOptions,
|
|
22256
|
+
};
|
|
22257
|
+
}),
|
|
22258
|
+
/**
|
|
22259
|
+
*
|
|
22260
|
+
* @summary List user organizations
|
|
22261
|
+
* @param {*} [options] Override http request option.
|
|
22262
|
+
* @throws {RequiredError}
|
|
22263
|
+
*/
|
|
22264
|
+
listOrganization: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
22265
|
+
const localVarPath = `/organization`;
|
|
22266
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22267
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22268
|
+
let baseOptions;
|
|
22269
|
+
if (configuration) {
|
|
22270
|
+
baseOptions = configuration.baseOptions;
|
|
22271
|
+
}
|
|
22272
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
22273
|
+
const localVarHeaderParameter = {};
|
|
22274
|
+
const localVarQueryParameter = {};
|
|
22275
|
+
// authentication bearerAuth required
|
|
22276
|
+
// http bearer authentication required
|
|
22277
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
22278
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
22279
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22280
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22281
|
+
return {
|
|
22282
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
22283
|
+
options: localVarRequestOptions,
|
|
22284
|
+
};
|
|
22285
|
+
}),
|
|
22286
|
+
/**
|
|
22287
|
+
* List organization available roles
|
|
22288
|
+
* @summary List organization available roles
|
|
22289
|
+
* @param {string} organizationId Organization ID
|
|
22290
|
+
* @param {*} [options] Override http request option.
|
|
22291
|
+
* @throws {RequiredError}
|
|
22292
|
+
*/
|
|
22293
|
+
listOrganizationAvailableRoles: (organizationId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
22294
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
22295
|
+
(0, common_1.assertParamExists)('listOrganizationAvailableRoles', 'organizationId', organizationId);
|
|
22296
|
+
const localVarPath = `/organization/{organizationId}/availableRole`
|
|
22297
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
22298
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22299
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22300
|
+
let baseOptions;
|
|
22301
|
+
if (configuration) {
|
|
22302
|
+
baseOptions = configuration.baseOptions;
|
|
22303
|
+
}
|
|
22304
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
22305
|
+
const localVarHeaderParameter = {};
|
|
22306
|
+
const localVarQueryParameter = {};
|
|
22307
|
+
// authentication bearerAuth required
|
|
22308
|
+
// http bearer authentication required
|
|
22309
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
22310
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
22311
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22312
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22313
|
+
return {
|
|
22314
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
22315
|
+
options: localVarRequestOptions,
|
|
22316
|
+
};
|
|
22317
|
+
}),
|
|
22318
|
+
};
|
|
22319
|
+
};
|
|
22320
|
+
exports.OrganizationMainCallsApiAxiosParamCreator = OrganizationMainCallsApiAxiosParamCreator;
|
|
22321
|
+
/**
|
|
22322
|
+
* OrganizationMainCallsApi - functional programming interface
|
|
22323
|
+
* @export
|
|
22324
|
+
*/
|
|
22325
|
+
const OrganizationMainCallsApiFp = function (configuration) {
|
|
21773
22326
|
const localVarAxiosParamCreator = (0, exports.OrganizationMainCallsApiAxiosParamCreator)(configuration);
|
|
21774
22327
|
return {
|
|
21775
22328
|
/**
|
|
@@ -21837,6 +22390,19 @@ const OrganizationMainCallsApiFp = function (configuration) {
|
|
|
21837
22390
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
21838
22391
|
});
|
|
21839
22392
|
},
|
|
22393
|
+
/**
|
|
22394
|
+
* List organization available roles
|
|
22395
|
+
* @summary List organization available roles
|
|
22396
|
+
* @param {string} organizationId Organization ID
|
|
22397
|
+
* @param {*} [options] Override http request option.
|
|
22398
|
+
* @throws {RequiredError}
|
|
22399
|
+
*/
|
|
22400
|
+
listOrganizationAvailableRoles(organizationId, options) {
|
|
22401
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22402
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrganizationAvailableRoles(organizationId, options);
|
|
22403
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
22404
|
+
});
|
|
22405
|
+
},
|
|
21840
22406
|
};
|
|
21841
22407
|
};
|
|
21842
22408
|
exports.OrganizationMainCallsApiFp = OrganizationMainCallsApiFp;
|
|
@@ -21897,6 +22463,16 @@ const OrganizationMainCallsApiFactory = function (configuration, basePath, axios
|
|
|
21897
22463
|
listOrganization(options) {
|
|
21898
22464
|
return localVarFp.listOrganization(options).then((request) => request(axios, basePath));
|
|
21899
22465
|
},
|
|
22466
|
+
/**
|
|
22467
|
+
* List organization available roles
|
|
22468
|
+
* @summary List organization available roles
|
|
22469
|
+
* @param {string} organizationId Organization ID
|
|
22470
|
+
* @param {*} [options] Override http request option.
|
|
22471
|
+
* @throws {RequiredError}
|
|
22472
|
+
*/
|
|
22473
|
+
listOrganizationAvailableRoles(organizationId, options) {
|
|
22474
|
+
return localVarFp.listOrganizationAvailableRoles(organizationId, options).then((request) => request(axios, basePath));
|
|
22475
|
+
},
|
|
21900
22476
|
};
|
|
21901
22477
|
};
|
|
21902
22478
|
exports.OrganizationMainCallsApiFactory = OrganizationMainCallsApiFactory;
|
|
@@ -21962,6 +22538,17 @@ class OrganizationMainCallsApi extends base_1.BaseAPI {
|
|
|
21962
22538
|
listOrganization(options) {
|
|
21963
22539
|
return (0, exports.OrganizationMainCallsApiFp)(this.configuration).listOrganization(options).then((request) => request(this.axios, this.basePath));
|
|
21964
22540
|
}
|
|
22541
|
+
/**
|
|
22542
|
+
* List organization available roles
|
|
22543
|
+
* @summary List organization available roles
|
|
22544
|
+
* @param {string} organizationId Organization ID
|
|
22545
|
+
* @param {*} [options] Override http request option.
|
|
22546
|
+
* @throws {RequiredError}
|
|
22547
|
+
* @memberof OrganizationMainCallsApi
|
|
22548
|
+
*/
|
|
22549
|
+
listOrganizationAvailableRoles(organizationId, options) {
|
|
22550
|
+
return (0, exports.OrganizationMainCallsApiFp)(this.configuration).listOrganizationAvailableRoles(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
22551
|
+
}
|
|
21965
22552
|
}
|
|
21966
22553
|
exports.OrganizationMainCallsApi = OrganizationMainCallsApi;
|
|
21967
22554
|
/**
|