system-initiative-api-client 1.3.3 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api.d.ts +1385 -56
- package/dist/cjs/api.js +1133 -21
- package/dist/esm/api.d.ts +1385 -56
- package/dist/esm/api.js +1128 -20
- package/package.json +1 -1
package/dist/cjs/api.js
CHANGED
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.WhoamiApi = exports.WhoamiApiFactory = exports.WhoamiApiFp = exports.WhoamiApiAxiosParamCreator = exports.SecretsApi = exports.SecretsApiFactory = exports.SecretsApiFp = exports.SecretsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.SchemasApi = exports.SchemasApiFactory = exports.SchemasApiFp = exports.SchemasApiAxiosParamCreator = exports.RootApi = exports.RootApiFactory = exports.RootApiFp = exports.RootApiAxiosParamCreator = exports.ManagementFuncsApi = exports.ManagementFuncsApiFactory = exports.ManagementFuncsApiFp = exports.ManagementFuncsApiAxiosParamCreator = exports.FuncsApi = exports.FuncsApiFactory = exports.FuncsApiFp = exports.FuncsApiAxiosParamCreator = exports.ComponentsApi = exports.ComponentsApiFactory = exports.ComponentsApiFp = exports.ComponentsApiAxiosParamCreator = exports.ChangeSetsApi = exports.ChangeSetsApiFactory = exports.ChangeSetsApiFp = exports.ChangeSetsApiAxiosParamCreator = exports.ActionsApi = exports.ActionsApiFactory = exports.ActionsApiFp = exports.ActionsApiAxiosParamCreator = exports.SchemaVariantFuncKindOneOf2KindEnum = exports.SchemaVariantFuncKindOneOf1KindEnum = exports.SchemaVariantFuncKindOneOfKindEnum = void 0;
|
|
19
|
+
exports.WorkspaceManagementApi = exports.WorkspaceManagementApiFactory = exports.WorkspaceManagementApiFp = exports.WorkspaceManagementApiAxiosParamCreator = exports.WhoamiApi = exports.WhoamiApiFactory = exports.WhoamiApiFp = exports.WhoamiApiAxiosParamCreator = exports.SecretsApi = exports.SecretsApiFactory = exports.SecretsApiFp = exports.SecretsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.SchemasApi = exports.SchemasApiFactory = exports.SchemasApiFp = exports.SchemasApiAxiosParamCreator = exports.RootApi = exports.RootApiFactory = exports.RootApiFp = exports.RootApiAxiosParamCreator = exports.ManagementFuncsApi = exports.ManagementFuncsApiFactory = exports.ManagementFuncsApiFp = exports.ManagementFuncsApiAxiosParamCreator = exports.FuncsApi = exports.FuncsApiFactory = exports.FuncsApiFp = exports.FuncsApiAxiosParamCreator = exports.ComponentsApi = exports.ComponentsApiFactory = exports.ComponentsApiFp = exports.ComponentsApiAxiosParamCreator = exports.ChangeSetsApi = exports.ChangeSetsApiFactory = exports.ChangeSetsApiFp = exports.ChangeSetsApiAxiosParamCreator = exports.ActionsApi = exports.ActionsApiFactory = exports.ActionsApiFp = exports.ActionsApiAxiosParamCreator = exports.SchemaVariantFuncKindOneOf2KindEnum = exports.SchemaVariantFuncKindOneOf1KindEnum = exports.SchemaVariantFuncKindOneOfKindEnum = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
// Some imports not used depending on template conditions
|
|
22
22
|
// @ts-ignore
|
|
@@ -993,6 +993,44 @@ const ComponentsApiAxiosParamCreator = function (configuration) {
|
|
|
993
993
|
options: localVarRequestOptions,
|
|
994
994
|
};
|
|
995
995
|
},
|
|
996
|
+
/**
|
|
997
|
+
* Adds multiple components to a view by name. If the view doesn\'t exist, it will be created automatically.
|
|
998
|
+
* @summary Add components to a view
|
|
999
|
+
* @param {string} workspaceId Workspace identifier
|
|
1000
|
+
* @param {string} changeSetId Change Set identifier
|
|
1001
|
+
* @param {AddToViewV1Request} addToViewV1Request
|
|
1002
|
+
* @param {*} [options] Override http request option.
|
|
1003
|
+
* @throws {RequiredError}
|
|
1004
|
+
*/
|
|
1005
|
+
addToView: async (workspaceId, changeSetId, addToViewV1Request, options = {}) => {
|
|
1006
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
1007
|
+
(0, common_1.assertParamExists)('addToView', 'workspaceId', workspaceId);
|
|
1008
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
1009
|
+
(0, common_1.assertParamExists)('addToView', 'changeSetId', changeSetId);
|
|
1010
|
+
// verify required parameter 'addToViewV1Request' is not null or undefined
|
|
1011
|
+
(0, common_1.assertParamExists)('addToView', 'addToViewV1Request', addToViewV1Request);
|
|
1012
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/add_to_view`
|
|
1013
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
1014
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
|
|
1015
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1016
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1017
|
+
let baseOptions;
|
|
1018
|
+
if (configuration) {
|
|
1019
|
+
baseOptions = configuration.baseOptions;
|
|
1020
|
+
}
|
|
1021
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1022
|
+
const localVarHeaderParameter = {};
|
|
1023
|
+
const localVarQueryParameter = {};
|
|
1024
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1025
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1026
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1027
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1028
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addToViewV1Request, localVarRequestOptions, configuration);
|
|
1029
|
+
return {
|
|
1030
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1031
|
+
options: localVarRequestOptions,
|
|
1032
|
+
};
|
|
1033
|
+
},
|
|
996
1034
|
/**
|
|
997
1035
|
*
|
|
998
1036
|
* @summary Create a component
|
|
@@ -1568,6 +1606,21 @@ const ComponentsApiFp = function (configuration) {
|
|
|
1568
1606
|
const localVarOperationServerBasePath = base_1.operationServerMap['ComponentsApi.addAction']?.[localVarOperationServerIndex]?.url;
|
|
1569
1607
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1570
1608
|
},
|
|
1609
|
+
/**
|
|
1610
|
+
* Adds multiple components to a view by name. If the view doesn\'t exist, it will be created automatically.
|
|
1611
|
+
* @summary Add components to a view
|
|
1612
|
+
* @param {string} workspaceId Workspace identifier
|
|
1613
|
+
* @param {string} changeSetId Change Set identifier
|
|
1614
|
+
* @param {AddToViewV1Request} addToViewV1Request
|
|
1615
|
+
* @param {*} [options] Override http request option.
|
|
1616
|
+
* @throws {RequiredError}
|
|
1617
|
+
*/
|
|
1618
|
+
async addToView(workspaceId, changeSetId, addToViewV1Request, options) {
|
|
1619
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addToView(workspaceId, changeSetId, addToViewV1Request, options);
|
|
1620
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1621
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ComponentsApi.addToView']?.[localVarOperationServerIndex]?.url;
|
|
1622
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1623
|
+
},
|
|
1571
1624
|
/**
|
|
1572
1625
|
*
|
|
1573
1626
|
* @summary Create a component
|
|
@@ -1804,6 +1857,16 @@ const ComponentsApiFactory = function (configuration, basePath, axios) {
|
|
|
1804
1857
|
addAction(requestParameters, options) {
|
|
1805
1858
|
return localVarFp.addAction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, requestParameters.addActionV1Request, options).then((request) => request(axios, basePath));
|
|
1806
1859
|
},
|
|
1860
|
+
/**
|
|
1861
|
+
* Adds multiple components to a view by name. If the view doesn\'t exist, it will be created automatically.
|
|
1862
|
+
* @summary Add components to a view
|
|
1863
|
+
* @param {ComponentsApiAddToViewRequest} requestParameters Request parameters.
|
|
1864
|
+
* @param {*} [options] Override http request option.
|
|
1865
|
+
* @throws {RequiredError}
|
|
1866
|
+
*/
|
|
1867
|
+
addToView(requestParameters, options) {
|
|
1868
|
+
return localVarFp.addToView(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.addToViewV1Request, options).then((request) => request(axios, basePath));
|
|
1869
|
+
},
|
|
1807
1870
|
/**
|
|
1808
1871
|
*
|
|
1809
1872
|
* @summary Create a component
|
|
@@ -1965,6 +2028,17 @@ class ComponentsApi extends base_1.BaseAPI {
|
|
|
1965
2028
|
addAction(requestParameters, options) {
|
|
1966
2029
|
return (0, exports.ComponentsApiFp)(this.configuration).addAction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, requestParameters.addActionV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
1967
2030
|
}
|
|
2031
|
+
/**
|
|
2032
|
+
* Adds multiple components to a view by name. If the view doesn\'t exist, it will be created automatically.
|
|
2033
|
+
* @summary Add components to a view
|
|
2034
|
+
* @param {ComponentsApiAddToViewRequest} requestParameters Request parameters.
|
|
2035
|
+
* @param {*} [options] Override http request option.
|
|
2036
|
+
* @throws {RequiredError}
|
|
2037
|
+
* @memberof ComponentsApi
|
|
2038
|
+
*/
|
|
2039
|
+
addToView(requestParameters, options) {
|
|
2040
|
+
return (0, exports.ComponentsApiFp)(this.configuration).addToView(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.addToViewV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
2041
|
+
}
|
|
1968
2042
|
/**
|
|
1969
2043
|
*
|
|
1970
2044
|
* @summary Create a component
|
|
@@ -2938,6 +3012,231 @@ const SchemasApiAxiosParamCreator = function (configuration) {
|
|
|
2938
3012
|
options: localVarRequestOptions,
|
|
2939
3013
|
};
|
|
2940
3014
|
},
|
|
3015
|
+
/**
|
|
3016
|
+
*
|
|
3017
|
+
* @summary Delete the binding between an action func and the schema variant
|
|
3018
|
+
* @param {string} workspaceId Workspace identifier
|
|
3019
|
+
* @param {string} changeSetId Change Set identifier
|
|
3020
|
+
* @param {string} schemaId Schema identifier
|
|
3021
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3022
|
+
* @param {string} funcId Func identifier
|
|
3023
|
+
* @param {*} [options] Override http request option.
|
|
3024
|
+
* @throws {RequiredError}
|
|
3025
|
+
*/
|
|
3026
|
+
detachActionFuncBinding: async (workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options = {}) => {
|
|
3027
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
3028
|
+
(0, common_1.assertParamExists)('detachActionFuncBinding', 'workspaceId', workspaceId);
|
|
3029
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
3030
|
+
(0, common_1.assertParamExists)('detachActionFuncBinding', 'changeSetId', changeSetId);
|
|
3031
|
+
// verify required parameter 'schemaId' is not null or undefined
|
|
3032
|
+
(0, common_1.assertParamExists)('detachActionFuncBinding', 'schemaId', schemaId);
|
|
3033
|
+
// verify required parameter 'schemaVariantId' is not null or undefined
|
|
3034
|
+
(0, common_1.assertParamExists)('detachActionFuncBinding', 'schemaVariantId', schemaVariantId);
|
|
3035
|
+
// verify required parameter 'funcId' is not null or undefined
|
|
3036
|
+
(0, common_1.assertParamExists)('detachActionFuncBinding', 'funcId', funcId);
|
|
3037
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}/funcs/action/{func_id}`
|
|
3038
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
3039
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
3040
|
+
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
|
|
3041
|
+
.replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)))
|
|
3042
|
+
.replace(`{${"func_id"}}`, encodeURIComponent(String(funcId)));
|
|
3043
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3044
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3045
|
+
let baseOptions;
|
|
3046
|
+
if (configuration) {
|
|
3047
|
+
baseOptions = configuration.baseOptions;
|
|
3048
|
+
}
|
|
3049
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
3050
|
+
const localVarHeaderParameter = {};
|
|
3051
|
+
const localVarQueryParameter = {};
|
|
3052
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3053
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3054
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3055
|
+
return {
|
|
3056
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3057
|
+
options: localVarRequestOptions,
|
|
3058
|
+
};
|
|
3059
|
+
},
|
|
3060
|
+
/**
|
|
3061
|
+
*
|
|
3062
|
+
* @summary Delete the binding between an authentication func and the schema variant
|
|
3063
|
+
* @param {string} workspaceId Workspace identifier
|
|
3064
|
+
* @param {string} changeSetId Change Set identifier
|
|
3065
|
+
* @param {string} schemaId Schema identifier
|
|
3066
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3067
|
+
* @param {string} funcId Func identifier
|
|
3068
|
+
* @param {*} [options] Override http request option.
|
|
3069
|
+
* @throws {RequiredError}
|
|
3070
|
+
*/
|
|
3071
|
+
detachAuthenticationFuncBinding: async (workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options = {}) => {
|
|
3072
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
3073
|
+
(0, common_1.assertParamExists)('detachAuthenticationFuncBinding', 'workspaceId', workspaceId);
|
|
3074
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
3075
|
+
(0, common_1.assertParamExists)('detachAuthenticationFuncBinding', 'changeSetId', changeSetId);
|
|
3076
|
+
// verify required parameter 'schemaId' is not null or undefined
|
|
3077
|
+
(0, common_1.assertParamExists)('detachAuthenticationFuncBinding', 'schemaId', schemaId);
|
|
3078
|
+
// verify required parameter 'schemaVariantId' is not null or undefined
|
|
3079
|
+
(0, common_1.assertParamExists)('detachAuthenticationFuncBinding', 'schemaVariantId', schemaVariantId);
|
|
3080
|
+
// verify required parameter 'funcId' is not null or undefined
|
|
3081
|
+
(0, common_1.assertParamExists)('detachAuthenticationFuncBinding', 'funcId', funcId);
|
|
3082
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}/funcs/authentication/{func_id}`
|
|
3083
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
3084
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
3085
|
+
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
|
|
3086
|
+
.replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)))
|
|
3087
|
+
.replace(`{${"func_id"}}`, encodeURIComponent(String(funcId)));
|
|
3088
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3089
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3090
|
+
let baseOptions;
|
|
3091
|
+
if (configuration) {
|
|
3092
|
+
baseOptions = configuration.baseOptions;
|
|
3093
|
+
}
|
|
3094
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
3095
|
+
const localVarHeaderParameter = {};
|
|
3096
|
+
const localVarQueryParameter = {};
|
|
3097
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3098
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3099
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3100
|
+
return {
|
|
3101
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3102
|
+
options: localVarRequestOptions,
|
|
3103
|
+
};
|
|
3104
|
+
},
|
|
3105
|
+
/**
|
|
3106
|
+
*
|
|
3107
|
+
* @summary Delete the binding between a codegen func and the schema variant
|
|
3108
|
+
* @param {string} workspaceId Workspace identifier
|
|
3109
|
+
* @param {string} changeSetId Change Set identifier
|
|
3110
|
+
* @param {string} schemaId Schema identifier
|
|
3111
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3112
|
+
* @param {string} funcId Func identifier
|
|
3113
|
+
* @param {*} [options] Override http request option.
|
|
3114
|
+
* @throws {RequiredError}
|
|
3115
|
+
*/
|
|
3116
|
+
detachCodegenFuncBinding: async (workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options = {}) => {
|
|
3117
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
3118
|
+
(0, common_1.assertParamExists)('detachCodegenFuncBinding', 'workspaceId', workspaceId);
|
|
3119
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
3120
|
+
(0, common_1.assertParamExists)('detachCodegenFuncBinding', 'changeSetId', changeSetId);
|
|
3121
|
+
// verify required parameter 'schemaId' is not null or undefined
|
|
3122
|
+
(0, common_1.assertParamExists)('detachCodegenFuncBinding', 'schemaId', schemaId);
|
|
3123
|
+
// verify required parameter 'schemaVariantId' is not null or undefined
|
|
3124
|
+
(0, common_1.assertParamExists)('detachCodegenFuncBinding', 'schemaVariantId', schemaVariantId);
|
|
3125
|
+
// verify required parameter 'funcId' is not null or undefined
|
|
3126
|
+
(0, common_1.assertParamExists)('detachCodegenFuncBinding', 'funcId', funcId);
|
|
3127
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}/funcs/codegen/{func_id}`
|
|
3128
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
3129
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
3130
|
+
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
|
|
3131
|
+
.replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)))
|
|
3132
|
+
.replace(`{${"func_id"}}`, encodeURIComponent(String(funcId)));
|
|
3133
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3134
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3135
|
+
let baseOptions;
|
|
3136
|
+
if (configuration) {
|
|
3137
|
+
baseOptions = configuration.baseOptions;
|
|
3138
|
+
}
|
|
3139
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
3140
|
+
const localVarHeaderParameter = {};
|
|
3141
|
+
const localVarQueryParameter = {};
|
|
3142
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3143
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3144
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3145
|
+
return {
|
|
3146
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3147
|
+
options: localVarRequestOptions,
|
|
3148
|
+
};
|
|
3149
|
+
},
|
|
3150
|
+
/**
|
|
3151
|
+
*
|
|
3152
|
+
* @summary Delete the binding between a management func and the schema variant
|
|
3153
|
+
* @param {string} workspaceId Workspace identifier
|
|
3154
|
+
* @param {string} changeSetId Change Set identifier
|
|
3155
|
+
* @param {string} schemaId Schema identifier
|
|
3156
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3157
|
+
* @param {string} funcId Func identifier
|
|
3158
|
+
* @param {*} [options] Override http request option.
|
|
3159
|
+
* @throws {RequiredError}
|
|
3160
|
+
*/
|
|
3161
|
+
detachManagementFuncBinding: async (workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options = {}) => {
|
|
3162
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
3163
|
+
(0, common_1.assertParamExists)('detachManagementFuncBinding', 'workspaceId', workspaceId);
|
|
3164
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
3165
|
+
(0, common_1.assertParamExists)('detachManagementFuncBinding', 'changeSetId', changeSetId);
|
|
3166
|
+
// verify required parameter 'schemaId' is not null or undefined
|
|
3167
|
+
(0, common_1.assertParamExists)('detachManagementFuncBinding', 'schemaId', schemaId);
|
|
3168
|
+
// verify required parameter 'schemaVariantId' is not null or undefined
|
|
3169
|
+
(0, common_1.assertParamExists)('detachManagementFuncBinding', 'schemaVariantId', schemaVariantId);
|
|
3170
|
+
// verify required parameter 'funcId' is not null or undefined
|
|
3171
|
+
(0, common_1.assertParamExists)('detachManagementFuncBinding', 'funcId', funcId);
|
|
3172
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}/funcs/management/{func_id}`
|
|
3173
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
3174
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
3175
|
+
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
|
|
3176
|
+
.replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)))
|
|
3177
|
+
.replace(`{${"func_id"}}`, encodeURIComponent(String(funcId)));
|
|
3178
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3179
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3180
|
+
let baseOptions;
|
|
3181
|
+
if (configuration) {
|
|
3182
|
+
baseOptions = configuration.baseOptions;
|
|
3183
|
+
}
|
|
3184
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
3185
|
+
const localVarHeaderParameter = {};
|
|
3186
|
+
const localVarQueryParameter = {};
|
|
3187
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3188
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3189
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3190
|
+
return {
|
|
3191
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3192
|
+
options: localVarRequestOptions,
|
|
3193
|
+
};
|
|
3194
|
+
},
|
|
3195
|
+
/**
|
|
3196
|
+
*
|
|
3197
|
+
* @summary Delete the binding between a qualification func and the schema variant
|
|
3198
|
+
* @param {string} workspaceId Workspace identifier
|
|
3199
|
+
* @param {string} changeSetId Change Set identifier
|
|
3200
|
+
* @param {string} schemaId Schema identifier
|
|
3201
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3202
|
+
* @param {string} funcId Func identifier
|
|
3203
|
+
* @param {*} [options] Override http request option.
|
|
3204
|
+
* @throws {RequiredError}
|
|
3205
|
+
*/
|
|
3206
|
+
detachQualificationFuncBinding: async (workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options = {}) => {
|
|
3207
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
3208
|
+
(0, common_1.assertParamExists)('detachQualificationFuncBinding', 'workspaceId', workspaceId);
|
|
3209
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
3210
|
+
(0, common_1.assertParamExists)('detachQualificationFuncBinding', 'changeSetId', changeSetId);
|
|
3211
|
+
// verify required parameter 'schemaId' is not null or undefined
|
|
3212
|
+
(0, common_1.assertParamExists)('detachQualificationFuncBinding', 'schemaId', schemaId);
|
|
3213
|
+
// verify required parameter 'schemaVariantId' is not null or undefined
|
|
3214
|
+
(0, common_1.assertParamExists)('detachQualificationFuncBinding', 'schemaVariantId', schemaVariantId);
|
|
3215
|
+
// verify required parameter 'funcId' is not null or undefined
|
|
3216
|
+
(0, common_1.assertParamExists)('detachQualificationFuncBinding', 'funcId', funcId);
|
|
3217
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}/funcs/qualification/{func_id}`
|
|
3218
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
3219
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
3220
|
+
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
|
|
3221
|
+
.replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)))
|
|
3222
|
+
.replace(`{${"func_id"}}`, encodeURIComponent(String(funcId)));
|
|
3223
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3224
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3225
|
+
let baseOptions;
|
|
3226
|
+
if (configuration) {
|
|
3227
|
+
baseOptions = configuration.baseOptions;
|
|
3228
|
+
}
|
|
3229
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
3230
|
+
const localVarHeaderParameter = {};
|
|
3231
|
+
const localVarQueryParameter = {};
|
|
3232
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3233
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3234
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3235
|
+
return {
|
|
3236
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3237
|
+
options: localVarRequestOptions,
|
|
3238
|
+
};
|
|
3239
|
+
},
|
|
2941
3240
|
/**
|
|
2942
3241
|
*
|
|
2943
3242
|
* @summary Find schema by name or schema id
|
|
@@ -3368,72 +3667,157 @@ const SchemasApiFp = function (configuration) {
|
|
|
3368
3667
|
},
|
|
3369
3668
|
/**
|
|
3370
3669
|
*
|
|
3371
|
-
* @summary
|
|
3670
|
+
* @summary Delete the binding between an action func and the schema variant
|
|
3372
3671
|
* @param {string} workspaceId Workspace identifier
|
|
3373
3672
|
* @param {string} changeSetId Change Set identifier
|
|
3374
|
-
* @param {string
|
|
3375
|
-
* @param {string
|
|
3673
|
+
* @param {string} schemaId Schema identifier
|
|
3674
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3675
|
+
* @param {string} funcId Func identifier
|
|
3376
3676
|
* @param {*} [options] Override http request option.
|
|
3377
3677
|
* @throws {RequiredError}
|
|
3378
3678
|
*/
|
|
3379
|
-
async
|
|
3380
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3679
|
+
async detachActionFuncBinding(workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options) {
|
|
3680
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.detachActionFuncBinding(workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options);
|
|
3381
3681
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3382
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.
|
|
3682
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.detachActionFuncBinding']?.[localVarOperationServerIndex]?.url;
|
|
3383
3683
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3384
3684
|
},
|
|
3385
3685
|
/**
|
|
3386
3686
|
*
|
|
3387
|
-
* @summary
|
|
3687
|
+
* @summary Delete the binding between an authentication func and the schema variant
|
|
3388
3688
|
* @param {string} workspaceId Workspace identifier
|
|
3389
3689
|
* @param {string} changeSetId Change Set identifier
|
|
3390
3690
|
* @param {string} schemaId Schema identifier
|
|
3691
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3692
|
+
* @param {string} funcId Func identifier
|
|
3391
3693
|
* @param {*} [options] Override http request option.
|
|
3392
3694
|
* @throws {RequiredError}
|
|
3393
3695
|
*/
|
|
3394
|
-
async
|
|
3395
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3696
|
+
async detachAuthenticationFuncBinding(workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options) {
|
|
3697
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.detachAuthenticationFuncBinding(workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options);
|
|
3396
3698
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3397
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.
|
|
3699
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.detachAuthenticationFuncBinding']?.[localVarOperationServerIndex]?.url;
|
|
3398
3700
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3399
3701
|
},
|
|
3400
3702
|
/**
|
|
3401
3703
|
*
|
|
3402
|
-
* @summary
|
|
3704
|
+
* @summary Delete the binding between a codegen func and the schema variant
|
|
3403
3705
|
* @param {string} workspaceId Workspace identifier
|
|
3404
3706
|
* @param {string} changeSetId Change Set identifier
|
|
3405
3707
|
* @param {string} schemaId Schema identifier
|
|
3708
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3709
|
+
* @param {string} funcId Func identifier
|
|
3406
3710
|
* @param {*} [options] Override http request option.
|
|
3407
3711
|
* @throws {RequiredError}
|
|
3408
3712
|
*/
|
|
3409
|
-
async
|
|
3410
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3713
|
+
async detachCodegenFuncBinding(workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options) {
|
|
3714
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.detachCodegenFuncBinding(workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options);
|
|
3411
3715
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3412
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.
|
|
3716
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.detachCodegenFuncBinding']?.[localVarOperationServerIndex]?.url;
|
|
3413
3717
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3414
3718
|
},
|
|
3415
3719
|
/**
|
|
3416
3720
|
*
|
|
3417
|
-
* @summary
|
|
3721
|
+
* @summary Delete the binding between a management func and the schema variant
|
|
3418
3722
|
* @param {string} workspaceId Workspace identifier
|
|
3419
3723
|
* @param {string} changeSetId Change Set identifier
|
|
3420
3724
|
* @param {string} schemaId Schema identifier
|
|
3421
3725
|
* @param {string} schemaVariantId Schema variant identifier
|
|
3726
|
+
* @param {string} funcId Func identifier
|
|
3422
3727
|
* @param {*} [options] Override http request option.
|
|
3423
3728
|
* @throws {RequiredError}
|
|
3424
3729
|
*/
|
|
3425
|
-
async
|
|
3426
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3730
|
+
async detachManagementFuncBinding(workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options) {
|
|
3731
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.detachManagementFuncBinding(workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options);
|
|
3427
3732
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3428
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.
|
|
3733
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.detachManagementFuncBinding']?.[localVarOperationServerIndex]?.url;
|
|
3429
3734
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3430
3735
|
},
|
|
3431
3736
|
/**
|
|
3432
3737
|
*
|
|
3433
|
-
* @summary
|
|
3738
|
+
* @summary Delete the binding between a qualification func and the schema variant
|
|
3434
3739
|
* @param {string} workspaceId Workspace identifier
|
|
3435
3740
|
* @param {string} changeSetId Change Set identifier
|
|
3436
|
-
* @param {string}
|
|
3741
|
+
* @param {string} schemaId Schema identifier
|
|
3742
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3743
|
+
* @param {string} funcId Func identifier
|
|
3744
|
+
* @param {*} [options] Override http request option.
|
|
3745
|
+
* @throws {RequiredError}
|
|
3746
|
+
*/
|
|
3747
|
+
async detachQualificationFuncBinding(workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options) {
|
|
3748
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.detachQualificationFuncBinding(workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options);
|
|
3749
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3750
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.detachQualificationFuncBinding']?.[localVarOperationServerIndex]?.url;
|
|
3751
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3752
|
+
},
|
|
3753
|
+
/**
|
|
3754
|
+
*
|
|
3755
|
+
* @summary Find schema by name or schema id
|
|
3756
|
+
* @param {string} workspaceId Workspace identifier
|
|
3757
|
+
* @param {string} changeSetId Change Set identifier
|
|
3758
|
+
* @param {string | null} [schema]
|
|
3759
|
+
* @param {string | null} [schemaId]
|
|
3760
|
+
* @param {*} [options] Override http request option.
|
|
3761
|
+
* @throws {RequiredError}
|
|
3762
|
+
*/
|
|
3763
|
+
async findSchema(workspaceId, changeSetId, schema, schemaId, options) {
|
|
3764
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findSchema(workspaceId, changeSetId, schema, schemaId, options);
|
|
3765
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3766
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.findSchema']?.[localVarOperationServerIndex]?.url;
|
|
3767
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3768
|
+
},
|
|
3769
|
+
/**
|
|
3770
|
+
*
|
|
3771
|
+
* @summary Get the default variant for a schema id
|
|
3772
|
+
* @param {string} workspaceId Workspace identifier
|
|
3773
|
+
* @param {string} changeSetId Change Set identifier
|
|
3774
|
+
* @param {string} schemaId Schema identifier
|
|
3775
|
+
* @param {*} [options] Override http request option.
|
|
3776
|
+
* @throws {RequiredError}
|
|
3777
|
+
*/
|
|
3778
|
+
async getDefaultVariant(workspaceId, changeSetId, schemaId, options) {
|
|
3779
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaultVariant(workspaceId, changeSetId, schemaId, options);
|
|
3780
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3781
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.getDefaultVariant']?.[localVarOperationServerIndex]?.url;
|
|
3782
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3783
|
+
},
|
|
3784
|
+
/**
|
|
3785
|
+
*
|
|
3786
|
+
* @summary Get a schema by schema id
|
|
3787
|
+
* @param {string} workspaceId Workspace identifier
|
|
3788
|
+
* @param {string} changeSetId Change Set identifier
|
|
3789
|
+
* @param {string} schemaId Schema identifier
|
|
3790
|
+
* @param {*} [options] Override http request option.
|
|
3791
|
+
* @throws {RequiredError}
|
|
3792
|
+
*/
|
|
3793
|
+
async getSchema(workspaceId, changeSetId, schemaId, options) {
|
|
3794
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSchema(workspaceId, changeSetId, schemaId, options);
|
|
3795
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3796
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.getSchema']?.[localVarOperationServerIndex]?.url;
|
|
3797
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3798
|
+
},
|
|
3799
|
+
/**
|
|
3800
|
+
*
|
|
3801
|
+
* @summary Get a schema variant by schema id and schema variant id
|
|
3802
|
+
* @param {string} workspaceId Workspace identifier
|
|
3803
|
+
* @param {string} changeSetId Change Set identifier
|
|
3804
|
+
* @param {string} schemaId Schema identifier
|
|
3805
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3806
|
+
* @param {*} [options] Override http request option.
|
|
3807
|
+
* @throws {RequiredError}
|
|
3808
|
+
*/
|
|
3809
|
+
async getVariant(workspaceId, changeSetId, schemaId, schemaVariantId, options) {
|
|
3810
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVariant(workspaceId, changeSetId, schemaId, schemaVariantId, options);
|
|
3811
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3812
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.getVariant']?.[localVarOperationServerIndex]?.url;
|
|
3813
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3814
|
+
},
|
|
3815
|
+
/**
|
|
3816
|
+
*
|
|
3817
|
+
* @summary List all schemas (paginated endpoint)
|
|
3818
|
+
* @param {string} workspaceId Workspace identifier
|
|
3819
|
+
* @param {string} changeSetId Change Set identifier
|
|
3820
|
+
* @param {string} [limit] Maximum number of results to return (default: 50, max: 300)
|
|
3437
3821
|
* @param {string} [cursor] Cursor for pagination (SchemaId of the last item from previous page)
|
|
3438
3822
|
* @param {*} [options] Override http request option.
|
|
3439
3823
|
* @throws {RequiredError}
|
|
@@ -3561,6 +3945,56 @@ const SchemasApiFactory = function (configuration, basePath, axios) {
|
|
|
3561
3945
|
createVariantQualification(requestParameters, options) {
|
|
3562
3946
|
return localVarFp.createVariantQualification(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantQualificationFuncV1Request, options).then((request) => request(axios, basePath));
|
|
3563
3947
|
},
|
|
3948
|
+
/**
|
|
3949
|
+
*
|
|
3950
|
+
* @summary Delete the binding between an action func and the schema variant
|
|
3951
|
+
* @param {SchemasApiDetachActionFuncBindingRequest} requestParameters Request parameters.
|
|
3952
|
+
* @param {*} [options] Override http request option.
|
|
3953
|
+
* @throws {RequiredError}
|
|
3954
|
+
*/
|
|
3955
|
+
detachActionFuncBinding(requestParameters, options) {
|
|
3956
|
+
return localVarFp.detachActionFuncBinding(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.funcId, options).then((request) => request(axios, basePath));
|
|
3957
|
+
},
|
|
3958
|
+
/**
|
|
3959
|
+
*
|
|
3960
|
+
* @summary Delete the binding between an authentication func and the schema variant
|
|
3961
|
+
* @param {SchemasApiDetachAuthenticationFuncBindingRequest} requestParameters Request parameters.
|
|
3962
|
+
* @param {*} [options] Override http request option.
|
|
3963
|
+
* @throws {RequiredError}
|
|
3964
|
+
*/
|
|
3965
|
+
detachAuthenticationFuncBinding(requestParameters, options) {
|
|
3966
|
+
return localVarFp.detachAuthenticationFuncBinding(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.funcId, options).then((request) => request(axios, basePath));
|
|
3967
|
+
},
|
|
3968
|
+
/**
|
|
3969
|
+
*
|
|
3970
|
+
* @summary Delete the binding between a codegen func and the schema variant
|
|
3971
|
+
* @param {SchemasApiDetachCodegenFuncBindingRequest} requestParameters Request parameters.
|
|
3972
|
+
* @param {*} [options] Override http request option.
|
|
3973
|
+
* @throws {RequiredError}
|
|
3974
|
+
*/
|
|
3975
|
+
detachCodegenFuncBinding(requestParameters, options) {
|
|
3976
|
+
return localVarFp.detachCodegenFuncBinding(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.funcId, options).then((request) => request(axios, basePath));
|
|
3977
|
+
},
|
|
3978
|
+
/**
|
|
3979
|
+
*
|
|
3980
|
+
* @summary Delete the binding between a management func and the schema variant
|
|
3981
|
+
* @param {SchemasApiDetachManagementFuncBindingRequest} requestParameters Request parameters.
|
|
3982
|
+
* @param {*} [options] Override http request option.
|
|
3983
|
+
* @throws {RequiredError}
|
|
3984
|
+
*/
|
|
3985
|
+
detachManagementFuncBinding(requestParameters, options) {
|
|
3986
|
+
return localVarFp.detachManagementFuncBinding(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.funcId, options).then((request) => request(axios, basePath));
|
|
3987
|
+
},
|
|
3988
|
+
/**
|
|
3989
|
+
*
|
|
3990
|
+
* @summary Delete the binding between a qualification func and the schema variant
|
|
3991
|
+
* @param {SchemasApiDetachQualificationFuncBindingRequest} requestParameters Request parameters.
|
|
3992
|
+
* @param {*} [options] Override http request option.
|
|
3993
|
+
* @throws {RequiredError}
|
|
3994
|
+
*/
|
|
3995
|
+
detachQualificationFuncBinding(requestParameters, options) {
|
|
3996
|
+
return localVarFp.detachQualificationFuncBinding(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.funcId, options).then((request) => request(axios, basePath));
|
|
3997
|
+
},
|
|
3564
3998
|
/**
|
|
3565
3999
|
*
|
|
3566
4000
|
* @summary Find schema by name or schema id
|
|
@@ -3717,6 +4151,61 @@ class SchemasApi extends base_1.BaseAPI {
|
|
|
3717
4151
|
createVariantQualification(requestParameters, options) {
|
|
3718
4152
|
return (0, exports.SchemasApiFp)(this.configuration).createVariantQualification(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantQualificationFuncV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
3719
4153
|
}
|
|
4154
|
+
/**
|
|
4155
|
+
*
|
|
4156
|
+
* @summary Delete the binding between an action func and the schema variant
|
|
4157
|
+
* @param {SchemasApiDetachActionFuncBindingRequest} requestParameters Request parameters.
|
|
4158
|
+
* @param {*} [options] Override http request option.
|
|
4159
|
+
* @throws {RequiredError}
|
|
4160
|
+
* @memberof SchemasApi
|
|
4161
|
+
*/
|
|
4162
|
+
detachActionFuncBinding(requestParameters, options) {
|
|
4163
|
+
return (0, exports.SchemasApiFp)(this.configuration).detachActionFuncBinding(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.funcId, options).then((request) => request(this.axios, this.basePath));
|
|
4164
|
+
}
|
|
4165
|
+
/**
|
|
4166
|
+
*
|
|
4167
|
+
* @summary Delete the binding between an authentication func and the schema variant
|
|
4168
|
+
* @param {SchemasApiDetachAuthenticationFuncBindingRequest} requestParameters Request parameters.
|
|
4169
|
+
* @param {*} [options] Override http request option.
|
|
4170
|
+
* @throws {RequiredError}
|
|
4171
|
+
* @memberof SchemasApi
|
|
4172
|
+
*/
|
|
4173
|
+
detachAuthenticationFuncBinding(requestParameters, options) {
|
|
4174
|
+
return (0, exports.SchemasApiFp)(this.configuration).detachAuthenticationFuncBinding(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.funcId, options).then((request) => request(this.axios, this.basePath));
|
|
4175
|
+
}
|
|
4176
|
+
/**
|
|
4177
|
+
*
|
|
4178
|
+
* @summary Delete the binding between a codegen func and the schema variant
|
|
4179
|
+
* @param {SchemasApiDetachCodegenFuncBindingRequest} requestParameters Request parameters.
|
|
4180
|
+
* @param {*} [options] Override http request option.
|
|
4181
|
+
* @throws {RequiredError}
|
|
4182
|
+
* @memberof SchemasApi
|
|
4183
|
+
*/
|
|
4184
|
+
detachCodegenFuncBinding(requestParameters, options) {
|
|
4185
|
+
return (0, exports.SchemasApiFp)(this.configuration).detachCodegenFuncBinding(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.funcId, options).then((request) => request(this.axios, this.basePath));
|
|
4186
|
+
}
|
|
4187
|
+
/**
|
|
4188
|
+
*
|
|
4189
|
+
* @summary Delete the binding between a management func and the schema variant
|
|
4190
|
+
* @param {SchemasApiDetachManagementFuncBindingRequest} requestParameters Request parameters.
|
|
4191
|
+
* @param {*} [options] Override http request option.
|
|
4192
|
+
* @throws {RequiredError}
|
|
4193
|
+
* @memberof SchemasApi
|
|
4194
|
+
*/
|
|
4195
|
+
detachManagementFuncBinding(requestParameters, options) {
|
|
4196
|
+
return (0, exports.SchemasApiFp)(this.configuration).detachManagementFuncBinding(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.funcId, options).then((request) => request(this.axios, this.basePath));
|
|
4197
|
+
}
|
|
4198
|
+
/**
|
|
4199
|
+
*
|
|
4200
|
+
* @summary Delete the binding between a qualification func and the schema variant
|
|
4201
|
+
* @param {SchemasApiDetachQualificationFuncBindingRequest} requestParameters Request parameters.
|
|
4202
|
+
* @param {*} [options] Override http request option.
|
|
4203
|
+
* @throws {RequiredError}
|
|
4204
|
+
* @memberof SchemasApi
|
|
4205
|
+
*/
|
|
4206
|
+
detachQualificationFuncBinding(requestParameters, options) {
|
|
4207
|
+
return (0, exports.SchemasApiFp)(this.configuration).detachQualificationFuncBinding(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.funcId, options).then((request) => request(this.axios, this.basePath));
|
|
4208
|
+
}
|
|
3720
4209
|
/**
|
|
3721
4210
|
*
|
|
3722
4211
|
* @summary Find schema by name or schema id
|
|
@@ -4342,3 +4831,626 @@ class WhoamiApi extends base_1.BaseAPI {
|
|
|
4342
4831
|
}
|
|
4343
4832
|
}
|
|
4344
4833
|
exports.WhoamiApi = WhoamiApi;
|
|
4834
|
+
/**
|
|
4835
|
+
* WorkspaceManagementApi - axios parameter creator
|
|
4836
|
+
* @export
|
|
4837
|
+
*/
|
|
4838
|
+
const WorkspaceManagementApiAxiosParamCreator = function (configuration) {
|
|
4839
|
+
return {
|
|
4840
|
+
/**
|
|
4841
|
+
*
|
|
4842
|
+
* @summary Create a new workspace
|
|
4843
|
+
* @param {CreateWorkspaceRequest} createWorkspaceRequest
|
|
4844
|
+
* @param {*} [options] Override http request option.
|
|
4845
|
+
* @throws {RequiredError}
|
|
4846
|
+
*/
|
|
4847
|
+
createWorkspace: async (createWorkspaceRequest, options = {}) => {
|
|
4848
|
+
// verify required parameter 'createWorkspaceRequest' is not null or undefined
|
|
4849
|
+
(0, common_1.assertParamExists)('createWorkspace', 'createWorkspaceRequest', createWorkspaceRequest);
|
|
4850
|
+
const localVarPath = `/management/workspaces`;
|
|
4851
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4852
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4853
|
+
let baseOptions;
|
|
4854
|
+
if (configuration) {
|
|
4855
|
+
baseOptions = configuration.baseOptions;
|
|
4856
|
+
}
|
|
4857
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
4858
|
+
const localVarHeaderParameter = {};
|
|
4859
|
+
const localVarQueryParameter = {};
|
|
4860
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4861
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4862
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4863
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4864
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createWorkspaceRequest, localVarRequestOptions, configuration);
|
|
4865
|
+
return {
|
|
4866
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4867
|
+
options: localVarRequestOptions,
|
|
4868
|
+
};
|
|
4869
|
+
},
|
|
4870
|
+
/**
|
|
4871
|
+
*
|
|
4872
|
+
* @summary Delete a workspace - please note, this is a soft delete and workspaces can be recovered
|
|
4873
|
+
* @param {string} workspaceId Workspace identifier
|
|
4874
|
+
* @param {*} [options] Override http request option.
|
|
4875
|
+
* @throws {RequiredError}
|
|
4876
|
+
*/
|
|
4877
|
+
deleteWorkspace: async (workspaceId, options = {}) => {
|
|
4878
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
4879
|
+
(0, common_1.assertParamExists)('deleteWorkspace', 'workspaceId', workspaceId);
|
|
4880
|
+
const localVarPath = `/management/workspaces/{workspace_id}`
|
|
4881
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
4882
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4883
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4884
|
+
let baseOptions;
|
|
4885
|
+
if (configuration) {
|
|
4886
|
+
baseOptions = configuration.baseOptions;
|
|
4887
|
+
}
|
|
4888
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
4889
|
+
const localVarHeaderParameter = {};
|
|
4890
|
+
const localVarQueryParameter = {};
|
|
4891
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4892
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4893
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4894
|
+
return {
|
|
4895
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4896
|
+
options: localVarRequestOptions,
|
|
4897
|
+
};
|
|
4898
|
+
},
|
|
4899
|
+
/**
|
|
4900
|
+
*
|
|
4901
|
+
* @summary Get the details of a workspace
|
|
4902
|
+
* @param {string} workspaceId Workspace identifier
|
|
4903
|
+
* @param {*} [options] Override http request option.
|
|
4904
|
+
* @throws {RequiredError}
|
|
4905
|
+
*/
|
|
4906
|
+
getWorkspace: async (workspaceId, options = {}) => {
|
|
4907
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
4908
|
+
(0, common_1.assertParamExists)('getWorkspace', 'workspaceId', workspaceId);
|
|
4909
|
+
const localVarPath = `/management/workspaces/{workspace_id}`
|
|
4910
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
4911
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4912
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4913
|
+
let baseOptions;
|
|
4914
|
+
if (configuration) {
|
|
4915
|
+
baseOptions = configuration.baseOptions;
|
|
4916
|
+
}
|
|
4917
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4918
|
+
const localVarHeaderParameter = {};
|
|
4919
|
+
const localVarQueryParameter = {};
|
|
4920
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4921
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4922
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4923
|
+
return {
|
|
4924
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4925
|
+
options: localVarRequestOptions,
|
|
4926
|
+
};
|
|
4927
|
+
},
|
|
4928
|
+
/**
|
|
4929
|
+
*
|
|
4930
|
+
* @summary Invite a new member to the workspace
|
|
4931
|
+
* @param {string} workspaceId Workspace identifier
|
|
4932
|
+
* @param {InviteMemberRequest} inviteMemberRequest
|
|
4933
|
+
* @param {*} [options] Override http request option.
|
|
4934
|
+
* @throws {RequiredError}
|
|
4935
|
+
*/
|
|
4936
|
+
inviteMember: async (workspaceId, inviteMemberRequest, options = {}) => {
|
|
4937
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
4938
|
+
(0, common_1.assertParamExists)('inviteMember', 'workspaceId', workspaceId);
|
|
4939
|
+
// verify required parameter 'inviteMemberRequest' is not null or undefined
|
|
4940
|
+
(0, common_1.assertParamExists)('inviteMember', 'inviteMemberRequest', inviteMemberRequest);
|
|
4941
|
+
const localVarPath = `/management/workspaces/{workspace_id}/members`
|
|
4942
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
4943
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4944
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4945
|
+
let baseOptions;
|
|
4946
|
+
if (configuration) {
|
|
4947
|
+
baseOptions = configuration.baseOptions;
|
|
4948
|
+
}
|
|
4949
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
4950
|
+
const localVarHeaderParameter = {};
|
|
4951
|
+
const localVarQueryParameter = {};
|
|
4952
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4953
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4954
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4955
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4956
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(inviteMemberRequest, localVarRequestOptions, configuration);
|
|
4957
|
+
return {
|
|
4958
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4959
|
+
options: localVarRequestOptions,
|
|
4960
|
+
};
|
|
4961
|
+
},
|
|
4962
|
+
/**
|
|
4963
|
+
*
|
|
4964
|
+
* @summary List all members of a workspace
|
|
4965
|
+
* @param {string} workspaceId Workspace identifier
|
|
4966
|
+
* @param {*} [options] Override http request option.
|
|
4967
|
+
* @throws {RequiredError}
|
|
4968
|
+
*/
|
|
4969
|
+
listMembers: async (workspaceId, options = {}) => {
|
|
4970
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
4971
|
+
(0, common_1.assertParamExists)('listMembers', 'workspaceId', workspaceId);
|
|
4972
|
+
const localVarPath = `/management/workspaces/{workspace_id}/members`
|
|
4973
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
4974
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4975
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4976
|
+
let baseOptions;
|
|
4977
|
+
if (configuration) {
|
|
4978
|
+
baseOptions = configuration.baseOptions;
|
|
4979
|
+
}
|
|
4980
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4981
|
+
const localVarHeaderParameter = {};
|
|
4982
|
+
const localVarQueryParameter = {};
|
|
4983
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4984
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4985
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4986
|
+
return {
|
|
4987
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4988
|
+
options: localVarRequestOptions,
|
|
4989
|
+
};
|
|
4990
|
+
},
|
|
4991
|
+
/**
|
|
4992
|
+
*
|
|
4993
|
+
* @summary List workspaces
|
|
4994
|
+
* @param {*} [options] Override http request option.
|
|
4995
|
+
* @throws {RequiredError}
|
|
4996
|
+
*/
|
|
4997
|
+
listWorkspaces: async (options = {}) => {
|
|
4998
|
+
const localVarPath = `/management/workspaces`;
|
|
4999
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5000
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5001
|
+
let baseOptions;
|
|
5002
|
+
if (configuration) {
|
|
5003
|
+
baseOptions = configuration.baseOptions;
|
|
5004
|
+
}
|
|
5005
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
5006
|
+
const localVarHeaderParameter = {};
|
|
5007
|
+
const localVarQueryParameter = {};
|
|
5008
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5009
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5010
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5011
|
+
return {
|
|
5012
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5013
|
+
options: localVarRequestOptions,
|
|
5014
|
+
};
|
|
5015
|
+
},
|
|
5016
|
+
/**
|
|
5017
|
+
*
|
|
5018
|
+
* @summary Remove a member from the workspace
|
|
5019
|
+
* @param {string} workspaceId Workspace identifier
|
|
5020
|
+
* @param {RemoveMemberRequest} removeMemberRequest
|
|
5021
|
+
* @param {*} [options] Override http request option.
|
|
5022
|
+
* @throws {RequiredError}
|
|
5023
|
+
*/
|
|
5024
|
+
removeMember: async (workspaceId, removeMemberRequest, options = {}) => {
|
|
5025
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
5026
|
+
(0, common_1.assertParamExists)('removeMember', 'workspaceId', workspaceId);
|
|
5027
|
+
// verify required parameter 'removeMemberRequest' is not null or undefined
|
|
5028
|
+
(0, common_1.assertParamExists)('removeMember', 'removeMemberRequest', removeMemberRequest);
|
|
5029
|
+
const localVarPath = `/management/workspaces/{workspace_id}/members`
|
|
5030
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
5031
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5032
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5033
|
+
let baseOptions;
|
|
5034
|
+
if (configuration) {
|
|
5035
|
+
baseOptions = configuration.baseOptions;
|
|
5036
|
+
}
|
|
5037
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
5038
|
+
const localVarHeaderParameter = {};
|
|
5039
|
+
const localVarQueryParameter = {};
|
|
5040
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5041
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5042
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5043
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5044
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(removeMemberRequest, localVarRequestOptions, configuration);
|
|
5045
|
+
return {
|
|
5046
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5047
|
+
options: localVarRequestOptions,
|
|
5048
|
+
};
|
|
5049
|
+
},
|
|
5050
|
+
/**
|
|
5051
|
+
*
|
|
5052
|
+
* @summary Update a member\'s role in the workspace
|
|
5053
|
+
* @param {string} workspaceId Workspace identifier
|
|
5054
|
+
* @param {UpdateMemberRoleRequest} updateMemberRoleRequest
|
|
5055
|
+
* @param {*} [options] Override http request option.
|
|
5056
|
+
* @throws {RequiredError}
|
|
5057
|
+
*/
|
|
5058
|
+
updateMemberRole: async (workspaceId, updateMemberRoleRequest, options = {}) => {
|
|
5059
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
5060
|
+
(0, common_1.assertParamExists)('updateMemberRole', 'workspaceId', workspaceId);
|
|
5061
|
+
// verify required parameter 'updateMemberRoleRequest' is not null or undefined
|
|
5062
|
+
(0, common_1.assertParamExists)('updateMemberRole', 'updateMemberRoleRequest', updateMemberRoleRequest);
|
|
5063
|
+
const localVarPath = `/management/workspaces/{workspace_id}/update_member_access`
|
|
5064
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
5065
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5066
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5067
|
+
let baseOptions;
|
|
5068
|
+
if (configuration) {
|
|
5069
|
+
baseOptions = configuration.baseOptions;
|
|
5070
|
+
}
|
|
5071
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
5072
|
+
const localVarHeaderParameter = {};
|
|
5073
|
+
const localVarQueryParameter = {};
|
|
5074
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5075
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5076
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5077
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5078
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateMemberRoleRequest, localVarRequestOptions, configuration);
|
|
5079
|
+
return {
|
|
5080
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5081
|
+
options: localVarRequestOptions,
|
|
5082
|
+
};
|
|
5083
|
+
},
|
|
5084
|
+
/**
|
|
5085
|
+
*
|
|
5086
|
+
* @summary Update the details of a workspace
|
|
5087
|
+
* @param {string} workspaceId Workspace identifier
|
|
5088
|
+
* @param {UpdateWorkspaceRequest} updateWorkspaceRequest
|
|
5089
|
+
* @param {*} [options] Override http request option.
|
|
5090
|
+
* @throws {RequiredError}
|
|
5091
|
+
*/
|
|
5092
|
+
updateWorkspace: async (workspaceId, updateWorkspaceRequest, options = {}) => {
|
|
5093
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
5094
|
+
(0, common_1.assertParamExists)('updateWorkspace', 'workspaceId', workspaceId);
|
|
5095
|
+
// verify required parameter 'updateWorkspaceRequest' is not null or undefined
|
|
5096
|
+
(0, common_1.assertParamExists)('updateWorkspace', 'updateWorkspaceRequest', updateWorkspaceRequest);
|
|
5097
|
+
const localVarPath = `/management/workspaces/{workspace_id}`
|
|
5098
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
5099
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5100
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5101
|
+
let baseOptions;
|
|
5102
|
+
if (configuration) {
|
|
5103
|
+
baseOptions = configuration.baseOptions;
|
|
5104
|
+
}
|
|
5105
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
5106
|
+
const localVarHeaderParameter = {};
|
|
5107
|
+
const localVarQueryParameter = {};
|
|
5108
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5109
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5110
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5111
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5112
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateWorkspaceRequest, localVarRequestOptions, configuration);
|
|
5113
|
+
return {
|
|
5114
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5115
|
+
options: localVarRequestOptions,
|
|
5116
|
+
};
|
|
5117
|
+
},
|
|
5118
|
+
};
|
|
5119
|
+
};
|
|
5120
|
+
exports.WorkspaceManagementApiAxiosParamCreator = WorkspaceManagementApiAxiosParamCreator;
|
|
5121
|
+
/**
|
|
5122
|
+
* WorkspaceManagementApi - functional programming interface
|
|
5123
|
+
* @export
|
|
5124
|
+
*/
|
|
5125
|
+
const WorkspaceManagementApiFp = function (configuration) {
|
|
5126
|
+
const localVarAxiosParamCreator = (0, exports.WorkspaceManagementApiAxiosParamCreator)(configuration);
|
|
5127
|
+
return {
|
|
5128
|
+
/**
|
|
5129
|
+
*
|
|
5130
|
+
* @summary Create a new workspace
|
|
5131
|
+
* @param {CreateWorkspaceRequest} createWorkspaceRequest
|
|
5132
|
+
* @param {*} [options] Override http request option.
|
|
5133
|
+
* @throws {RequiredError}
|
|
5134
|
+
*/
|
|
5135
|
+
async createWorkspace(createWorkspaceRequest, options) {
|
|
5136
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createWorkspace(createWorkspaceRequest, options);
|
|
5137
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5138
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceManagementApi.createWorkspace']?.[localVarOperationServerIndex]?.url;
|
|
5139
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5140
|
+
},
|
|
5141
|
+
/**
|
|
5142
|
+
*
|
|
5143
|
+
* @summary Delete a workspace - please note, this is a soft delete and workspaces can be recovered
|
|
5144
|
+
* @param {string} workspaceId Workspace identifier
|
|
5145
|
+
* @param {*} [options] Override http request option.
|
|
5146
|
+
* @throws {RequiredError}
|
|
5147
|
+
*/
|
|
5148
|
+
async deleteWorkspace(workspaceId, options) {
|
|
5149
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteWorkspace(workspaceId, options);
|
|
5150
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5151
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceManagementApi.deleteWorkspace']?.[localVarOperationServerIndex]?.url;
|
|
5152
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5153
|
+
},
|
|
5154
|
+
/**
|
|
5155
|
+
*
|
|
5156
|
+
* @summary Get the details of a workspace
|
|
5157
|
+
* @param {string} workspaceId Workspace identifier
|
|
5158
|
+
* @param {*} [options] Override http request option.
|
|
5159
|
+
* @throws {RequiredError}
|
|
5160
|
+
*/
|
|
5161
|
+
async getWorkspace(workspaceId, options) {
|
|
5162
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspace(workspaceId, options);
|
|
5163
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5164
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceManagementApi.getWorkspace']?.[localVarOperationServerIndex]?.url;
|
|
5165
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5166
|
+
},
|
|
5167
|
+
/**
|
|
5168
|
+
*
|
|
5169
|
+
* @summary Invite a new member to the workspace
|
|
5170
|
+
* @param {string} workspaceId Workspace identifier
|
|
5171
|
+
* @param {InviteMemberRequest} inviteMemberRequest
|
|
5172
|
+
* @param {*} [options] Override http request option.
|
|
5173
|
+
* @throws {RequiredError}
|
|
5174
|
+
*/
|
|
5175
|
+
async inviteMember(workspaceId, inviteMemberRequest, options) {
|
|
5176
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteMember(workspaceId, inviteMemberRequest, options);
|
|
5177
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5178
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceManagementApi.inviteMember']?.[localVarOperationServerIndex]?.url;
|
|
5179
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5180
|
+
},
|
|
5181
|
+
/**
|
|
5182
|
+
*
|
|
5183
|
+
* @summary List all members of a workspace
|
|
5184
|
+
* @param {string} workspaceId Workspace identifier
|
|
5185
|
+
* @param {*} [options] Override http request option.
|
|
5186
|
+
* @throws {RequiredError}
|
|
5187
|
+
*/
|
|
5188
|
+
async listMembers(workspaceId, options) {
|
|
5189
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listMembers(workspaceId, options);
|
|
5190
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5191
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceManagementApi.listMembers']?.[localVarOperationServerIndex]?.url;
|
|
5192
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5193
|
+
},
|
|
5194
|
+
/**
|
|
5195
|
+
*
|
|
5196
|
+
* @summary List workspaces
|
|
5197
|
+
* @param {*} [options] Override http request option.
|
|
5198
|
+
* @throws {RequiredError}
|
|
5199
|
+
*/
|
|
5200
|
+
async listWorkspaces(options) {
|
|
5201
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listWorkspaces(options);
|
|
5202
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5203
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceManagementApi.listWorkspaces']?.[localVarOperationServerIndex]?.url;
|
|
5204
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5205
|
+
},
|
|
5206
|
+
/**
|
|
5207
|
+
*
|
|
5208
|
+
* @summary Remove a member from the workspace
|
|
5209
|
+
* @param {string} workspaceId Workspace identifier
|
|
5210
|
+
* @param {RemoveMemberRequest} removeMemberRequest
|
|
5211
|
+
* @param {*} [options] Override http request option.
|
|
5212
|
+
* @throws {RequiredError}
|
|
5213
|
+
*/
|
|
5214
|
+
async removeMember(workspaceId, removeMemberRequest, options) {
|
|
5215
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeMember(workspaceId, removeMemberRequest, options);
|
|
5216
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5217
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceManagementApi.removeMember']?.[localVarOperationServerIndex]?.url;
|
|
5218
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5219
|
+
},
|
|
5220
|
+
/**
|
|
5221
|
+
*
|
|
5222
|
+
* @summary Update a member\'s role in the workspace
|
|
5223
|
+
* @param {string} workspaceId Workspace identifier
|
|
5224
|
+
* @param {UpdateMemberRoleRequest} updateMemberRoleRequest
|
|
5225
|
+
* @param {*} [options] Override http request option.
|
|
5226
|
+
* @throws {RequiredError}
|
|
5227
|
+
*/
|
|
5228
|
+
async updateMemberRole(workspaceId, updateMemberRoleRequest, options) {
|
|
5229
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateMemberRole(workspaceId, updateMemberRoleRequest, options);
|
|
5230
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5231
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceManagementApi.updateMemberRole']?.[localVarOperationServerIndex]?.url;
|
|
5232
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5233
|
+
},
|
|
5234
|
+
/**
|
|
5235
|
+
*
|
|
5236
|
+
* @summary Update the details of a workspace
|
|
5237
|
+
* @param {string} workspaceId Workspace identifier
|
|
5238
|
+
* @param {UpdateWorkspaceRequest} updateWorkspaceRequest
|
|
5239
|
+
* @param {*} [options] Override http request option.
|
|
5240
|
+
* @throws {RequiredError}
|
|
5241
|
+
*/
|
|
5242
|
+
async updateWorkspace(workspaceId, updateWorkspaceRequest, options) {
|
|
5243
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateWorkspace(workspaceId, updateWorkspaceRequest, options);
|
|
5244
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5245
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceManagementApi.updateWorkspace']?.[localVarOperationServerIndex]?.url;
|
|
5246
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5247
|
+
},
|
|
5248
|
+
};
|
|
5249
|
+
};
|
|
5250
|
+
exports.WorkspaceManagementApiFp = WorkspaceManagementApiFp;
|
|
5251
|
+
/**
|
|
5252
|
+
* WorkspaceManagementApi - factory interface
|
|
5253
|
+
* @export
|
|
5254
|
+
*/
|
|
5255
|
+
const WorkspaceManagementApiFactory = function (configuration, basePath, axios) {
|
|
5256
|
+
const localVarFp = (0, exports.WorkspaceManagementApiFp)(configuration);
|
|
5257
|
+
return {
|
|
5258
|
+
/**
|
|
5259
|
+
*
|
|
5260
|
+
* @summary Create a new workspace
|
|
5261
|
+
* @param {WorkspaceManagementApiCreateWorkspaceRequest} requestParameters Request parameters.
|
|
5262
|
+
* @param {*} [options] Override http request option.
|
|
5263
|
+
* @throws {RequiredError}
|
|
5264
|
+
*/
|
|
5265
|
+
createWorkspace(requestParameters, options) {
|
|
5266
|
+
return localVarFp.createWorkspace(requestParameters.createWorkspaceRequest, options).then((request) => request(axios, basePath));
|
|
5267
|
+
},
|
|
5268
|
+
/**
|
|
5269
|
+
*
|
|
5270
|
+
* @summary Delete a workspace - please note, this is a soft delete and workspaces can be recovered
|
|
5271
|
+
* @param {WorkspaceManagementApiDeleteWorkspaceRequest} requestParameters Request parameters.
|
|
5272
|
+
* @param {*} [options] Override http request option.
|
|
5273
|
+
* @throws {RequiredError}
|
|
5274
|
+
*/
|
|
5275
|
+
deleteWorkspace(requestParameters, options) {
|
|
5276
|
+
return localVarFp.deleteWorkspace(requestParameters.workspaceId, options).then((request) => request(axios, basePath));
|
|
5277
|
+
},
|
|
5278
|
+
/**
|
|
5279
|
+
*
|
|
5280
|
+
* @summary Get the details of a workspace
|
|
5281
|
+
* @param {WorkspaceManagementApiGetWorkspaceRequest} requestParameters Request parameters.
|
|
5282
|
+
* @param {*} [options] Override http request option.
|
|
5283
|
+
* @throws {RequiredError}
|
|
5284
|
+
*/
|
|
5285
|
+
getWorkspace(requestParameters, options) {
|
|
5286
|
+
return localVarFp.getWorkspace(requestParameters.workspaceId, options).then((request) => request(axios, basePath));
|
|
5287
|
+
},
|
|
5288
|
+
/**
|
|
5289
|
+
*
|
|
5290
|
+
* @summary Invite a new member to the workspace
|
|
5291
|
+
* @param {WorkspaceManagementApiInviteMemberRequest} requestParameters Request parameters.
|
|
5292
|
+
* @param {*} [options] Override http request option.
|
|
5293
|
+
* @throws {RequiredError}
|
|
5294
|
+
*/
|
|
5295
|
+
inviteMember(requestParameters, options) {
|
|
5296
|
+
return localVarFp.inviteMember(requestParameters.workspaceId, requestParameters.inviteMemberRequest, options).then((request) => request(axios, basePath));
|
|
5297
|
+
},
|
|
5298
|
+
/**
|
|
5299
|
+
*
|
|
5300
|
+
* @summary List all members of a workspace
|
|
5301
|
+
* @param {WorkspaceManagementApiListMembersRequest} requestParameters Request parameters.
|
|
5302
|
+
* @param {*} [options] Override http request option.
|
|
5303
|
+
* @throws {RequiredError}
|
|
5304
|
+
*/
|
|
5305
|
+
listMembers(requestParameters, options) {
|
|
5306
|
+
return localVarFp.listMembers(requestParameters.workspaceId, options).then((request) => request(axios, basePath));
|
|
5307
|
+
},
|
|
5308
|
+
/**
|
|
5309
|
+
*
|
|
5310
|
+
* @summary List workspaces
|
|
5311
|
+
* @param {*} [options] Override http request option.
|
|
5312
|
+
* @throws {RequiredError}
|
|
5313
|
+
*/
|
|
5314
|
+
listWorkspaces(options) {
|
|
5315
|
+
return localVarFp.listWorkspaces(options).then((request) => request(axios, basePath));
|
|
5316
|
+
},
|
|
5317
|
+
/**
|
|
5318
|
+
*
|
|
5319
|
+
* @summary Remove a member from the workspace
|
|
5320
|
+
* @param {WorkspaceManagementApiRemoveMemberRequest} requestParameters Request parameters.
|
|
5321
|
+
* @param {*} [options] Override http request option.
|
|
5322
|
+
* @throws {RequiredError}
|
|
5323
|
+
*/
|
|
5324
|
+
removeMember(requestParameters, options) {
|
|
5325
|
+
return localVarFp.removeMember(requestParameters.workspaceId, requestParameters.removeMemberRequest, options).then((request) => request(axios, basePath));
|
|
5326
|
+
},
|
|
5327
|
+
/**
|
|
5328
|
+
*
|
|
5329
|
+
* @summary Update a member\'s role in the workspace
|
|
5330
|
+
* @param {WorkspaceManagementApiUpdateMemberRoleRequest} requestParameters Request parameters.
|
|
5331
|
+
* @param {*} [options] Override http request option.
|
|
5332
|
+
* @throws {RequiredError}
|
|
5333
|
+
*/
|
|
5334
|
+
updateMemberRole(requestParameters, options) {
|
|
5335
|
+
return localVarFp.updateMemberRole(requestParameters.workspaceId, requestParameters.updateMemberRoleRequest, options).then((request) => request(axios, basePath));
|
|
5336
|
+
},
|
|
5337
|
+
/**
|
|
5338
|
+
*
|
|
5339
|
+
* @summary Update the details of a workspace
|
|
5340
|
+
* @param {WorkspaceManagementApiUpdateWorkspaceRequest} requestParameters Request parameters.
|
|
5341
|
+
* @param {*} [options] Override http request option.
|
|
5342
|
+
* @throws {RequiredError}
|
|
5343
|
+
*/
|
|
5344
|
+
updateWorkspace(requestParameters, options) {
|
|
5345
|
+
return localVarFp.updateWorkspace(requestParameters.workspaceId, requestParameters.updateWorkspaceRequest, options).then((request) => request(axios, basePath));
|
|
5346
|
+
},
|
|
5347
|
+
};
|
|
5348
|
+
};
|
|
5349
|
+
exports.WorkspaceManagementApiFactory = WorkspaceManagementApiFactory;
|
|
5350
|
+
/**
|
|
5351
|
+
* WorkspaceManagementApi - object-oriented interface
|
|
5352
|
+
* @export
|
|
5353
|
+
* @class WorkspaceManagementApi
|
|
5354
|
+
* @extends {BaseAPI}
|
|
5355
|
+
*/
|
|
5356
|
+
class WorkspaceManagementApi extends base_1.BaseAPI {
|
|
5357
|
+
/**
|
|
5358
|
+
*
|
|
5359
|
+
* @summary Create a new workspace
|
|
5360
|
+
* @param {WorkspaceManagementApiCreateWorkspaceRequest} requestParameters Request parameters.
|
|
5361
|
+
* @param {*} [options] Override http request option.
|
|
5362
|
+
* @throws {RequiredError}
|
|
5363
|
+
* @memberof WorkspaceManagementApi
|
|
5364
|
+
*/
|
|
5365
|
+
createWorkspace(requestParameters, options) {
|
|
5366
|
+
return (0, exports.WorkspaceManagementApiFp)(this.configuration).createWorkspace(requestParameters.createWorkspaceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5367
|
+
}
|
|
5368
|
+
/**
|
|
5369
|
+
*
|
|
5370
|
+
* @summary Delete a workspace - please note, this is a soft delete and workspaces can be recovered
|
|
5371
|
+
* @param {WorkspaceManagementApiDeleteWorkspaceRequest} requestParameters Request parameters.
|
|
5372
|
+
* @param {*} [options] Override http request option.
|
|
5373
|
+
* @throws {RequiredError}
|
|
5374
|
+
* @memberof WorkspaceManagementApi
|
|
5375
|
+
*/
|
|
5376
|
+
deleteWorkspace(requestParameters, options) {
|
|
5377
|
+
return (0, exports.WorkspaceManagementApiFp)(this.configuration).deleteWorkspace(requestParameters.workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
5378
|
+
}
|
|
5379
|
+
/**
|
|
5380
|
+
*
|
|
5381
|
+
* @summary Get the details of a workspace
|
|
5382
|
+
* @param {WorkspaceManagementApiGetWorkspaceRequest} requestParameters Request parameters.
|
|
5383
|
+
* @param {*} [options] Override http request option.
|
|
5384
|
+
* @throws {RequiredError}
|
|
5385
|
+
* @memberof WorkspaceManagementApi
|
|
5386
|
+
*/
|
|
5387
|
+
getWorkspace(requestParameters, options) {
|
|
5388
|
+
return (0, exports.WorkspaceManagementApiFp)(this.configuration).getWorkspace(requestParameters.workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
5389
|
+
}
|
|
5390
|
+
/**
|
|
5391
|
+
*
|
|
5392
|
+
* @summary Invite a new member to the workspace
|
|
5393
|
+
* @param {WorkspaceManagementApiInviteMemberRequest} requestParameters Request parameters.
|
|
5394
|
+
* @param {*} [options] Override http request option.
|
|
5395
|
+
* @throws {RequiredError}
|
|
5396
|
+
* @memberof WorkspaceManagementApi
|
|
5397
|
+
*/
|
|
5398
|
+
inviteMember(requestParameters, options) {
|
|
5399
|
+
return (0, exports.WorkspaceManagementApiFp)(this.configuration).inviteMember(requestParameters.workspaceId, requestParameters.inviteMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5400
|
+
}
|
|
5401
|
+
/**
|
|
5402
|
+
*
|
|
5403
|
+
* @summary List all members of a workspace
|
|
5404
|
+
* @param {WorkspaceManagementApiListMembersRequest} requestParameters Request parameters.
|
|
5405
|
+
* @param {*} [options] Override http request option.
|
|
5406
|
+
* @throws {RequiredError}
|
|
5407
|
+
* @memberof WorkspaceManagementApi
|
|
5408
|
+
*/
|
|
5409
|
+
listMembers(requestParameters, options) {
|
|
5410
|
+
return (0, exports.WorkspaceManagementApiFp)(this.configuration).listMembers(requestParameters.workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
5411
|
+
}
|
|
5412
|
+
/**
|
|
5413
|
+
*
|
|
5414
|
+
* @summary List workspaces
|
|
5415
|
+
* @param {*} [options] Override http request option.
|
|
5416
|
+
* @throws {RequiredError}
|
|
5417
|
+
* @memberof WorkspaceManagementApi
|
|
5418
|
+
*/
|
|
5419
|
+
listWorkspaces(options) {
|
|
5420
|
+
return (0, exports.WorkspaceManagementApiFp)(this.configuration).listWorkspaces(options).then((request) => request(this.axios, this.basePath));
|
|
5421
|
+
}
|
|
5422
|
+
/**
|
|
5423
|
+
*
|
|
5424
|
+
* @summary Remove a member from the workspace
|
|
5425
|
+
* @param {WorkspaceManagementApiRemoveMemberRequest} requestParameters Request parameters.
|
|
5426
|
+
* @param {*} [options] Override http request option.
|
|
5427
|
+
* @throws {RequiredError}
|
|
5428
|
+
* @memberof WorkspaceManagementApi
|
|
5429
|
+
*/
|
|
5430
|
+
removeMember(requestParameters, options) {
|
|
5431
|
+
return (0, exports.WorkspaceManagementApiFp)(this.configuration).removeMember(requestParameters.workspaceId, requestParameters.removeMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5432
|
+
}
|
|
5433
|
+
/**
|
|
5434
|
+
*
|
|
5435
|
+
* @summary Update a member\'s role in the workspace
|
|
5436
|
+
* @param {WorkspaceManagementApiUpdateMemberRoleRequest} requestParameters Request parameters.
|
|
5437
|
+
* @param {*} [options] Override http request option.
|
|
5438
|
+
* @throws {RequiredError}
|
|
5439
|
+
* @memberof WorkspaceManagementApi
|
|
5440
|
+
*/
|
|
5441
|
+
updateMemberRole(requestParameters, options) {
|
|
5442
|
+
return (0, exports.WorkspaceManagementApiFp)(this.configuration).updateMemberRole(requestParameters.workspaceId, requestParameters.updateMemberRoleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5443
|
+
}
|
|
5444
|
+
/**
|
|
5445
|
+
*
|
|
5446
|
+
* @summary Update the details of a workspace
|
|
5447
|
+
* @param {WorkspaceManagementApiUpdateWorkspaceRequest} requestParameters Request parameters.
|
|
5448
|
+
* @param {*} [options] Override http request option.
|
|
5449
|
+
* @throws {RequiredError}
|
|
5450
|
+
* @memberof WorkspaceManagementApi
|
|
5451
|
+
*/
|
|
5452
|
+
updateWorkspace(requestParameters, options) {
|
|
5453
|
+
return (0, exports.WorkspaceManagementApiFp)(this.configuration).updateWorkspace(requestParameters.workspaceId, requestParameters.updateWorkspaceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5454
|
+
}
|
|
5455
|
+
}
|
|
5456
|
+
exports.WorkspaceManagementApi = WorkspaceManagementApi;
|