system-initiative-api-client 1.4.0 → 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 +1381 -58
- package/dist/cjs/api.js +1133 -21
- package/dist/esm/api.d.ts +1381 -58
- package/dist/esm/api.js +1128 -20
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -979,6 +979,44 @@ export const ComponentsApiAxiosParamCreator = function (configuration) {
|
|
|
979
979
|
options: localVarRequestOptions,
|
|
980
980
|
};
|
|
981
981
|
},
|
|
982
|
+
/**
|
|
983
|
+
* Adds multiple components to a view by name. If the view doesn\'t exist, it will be created automatically.
|
|
984
|
+
* @summary Add components to a view
|
|
985
|
+
* @param {string} workspaceId Workspace identifier
|
|
986
|
+
* @param {string} changeSetId Change Set identifier
|
|
987
|
+
* @param {AddToViewV1Request} addToViewV1Request
|
|
988
|
+
* @param {*} [options] Override http request option.
|
|
989
|
+
* @throws {RequiredError}
|
|
990
|
+
*/
|
|
991
|
+
addToView: async (workspaceId, changeSetId, addToViewV1Request, options = {}) => {
|
|
992
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
993
|
+
assertParamExists('addToView', 'workspaceId', workspaceId);
|
|
994
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
995
|
+
assertParamExists('addToView', 'changeSetId', changeSetId);
|
|
996
|
+
// verify required parameter 'addToViewV1Request' is not null or undefined
|
|
997
|
+
assertParamExists('addToView', 'addToViewV1Request', addToViewV1Request);
|
|
998
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/add_to_view`
|
|
999
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
1000
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
|
|
1001
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1002
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1003
|
+
let baseOptions;
|
|
1004
|
+
if (configuration) {
|
|
1005
|
+
baseOptions = configuration.baseOptions;
|
|
1006
|
+
}
|
|
1007
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1008
|
+
const localVarHeaderParameter = {};
|
|
1009
|
+
const localVarQueryParameter = {};
|
|
1010
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1011
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1012
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1013
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1014
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addToViewV1Request, localVarRequestOptions, configuration);
|
|
1015
|
+
return {
|
|
1016
|
+
url: toPathString(localVarUrlObj),
|
|
1017
|
+
options: localVarRequestOptions,
|
|
1018
|
+
};
|
|
1019
|
+
},
|
|
982
1020
|
/**
|
|
983
1021
|
*
|
|
984
1022
|
* @summary Create a component
|
|
@@ -1553,6 +1591,21 @@ export const ComponentsApiFp = function (configuration) {
|
|
|
1553
1591
|
const localVarOperationServerBasePath = operationServerMap['ComponentsApi.addAction']?.[localVarOperationServerIndex]?.url;
|
|
1554
1592
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1555
1593
|
},
|
|
1594
|
+
/**
|
|
1595
|
+
* Adds multiple components to a view by name. If the view doesn\'t exist, it will be created automatically.
|
|
1596
|
+
* @summary Add components to a view
|
|
1597
|
+
* @param {string} workspaceId Workspace identifier
|
|
1598
|
+
* @param {string} changeSetId Change Set identifier
|
|
1599
|
+
* @param {AddToViewV1Request} addToViewV1Request
|
|
1600
|
+
* @param {*} [options] Override http request option.
|
|
1601
|
+
* @throws {RequiredError}
|
|
1602
|
+
*/
|
|
1603
|
+
async addToView(workspaceId, changeSetId, addToViewV1Request, options) {
|
|
1604
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addToView(workspaceId, changeSetId, addToViewV1Request, options);
|
|
1605
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1606
|
+
const localVarOperationServerBasePath = operationServerMap['ComponentsApi.addToView']?.[localVarOperationServerIndex]?.url;
|
|
1607
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1608
|
+
},
|
|
1556
1609
|
/**
|
|
1557
1610
|
*
|
|
1558
1611
|
* @summary Create a component
|
|
@@ -1788,6 +1841,16 @@ export const ComponentsApiFactory = function (configuration, basePath, axios) {
|
|
|
1788
1841
|
addAction(requestParameters, options) {
|
|
1789
1842
|
return localVarFp.addAction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, requestParameters.addActionV1Request, options).then((request) => request(axios, basePath));
|
|
1790
1843
|
},
|
|
1844
|
+
/**
|
|
1845
|
+
* Adds multiple components to a view by name. If the view doesn\'t exist, it will be created automatically.
|
|
1846
|
+
* @summary Add components to a view
|
|
1847
|
+
* @param {ComponentsApiAddToViewRequest} requestParameters Request parameters.
|
|
1848
|
+
* @param {*} [options] Override http request option.
|
|
1849
|
+
* @throws {RequiredError}
|
|
1850
|
+
*/
|
|
1851
|
+
addToView(requestParameters, options) {
|
|
1852
|
+
return localVarFp.addToView(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.addToViewV1Request, options).then((request) => request(axios, basePath));
|
|
1853
|
+
},
|
|
1791
1854
|
/**
|
|
1792
1855
|
*
|
|
1793
1856
|
* @summary Create a component
|
|
@@ -1948,6 +2011,17 @@ export class ComponentsApi extends BaseAPI {
|
|
|
1948
2011
|
addAction(requestParameters, options) {
|
|
1949
2012
|
return ComponentsApiFp(this.configuration).addAction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, requestParameters.addActionV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
1950
2013
|
}
|
|
2014
|
+
/**
|
|
2015
|
+
* Adds multiple components to a view by name. If the view doesn\'t exist, it will be created automatically.
|
|
2016
|
+
* @summary Add components to a view
|
|
2017
|
+
* @param {ComponentsApiAddToViewRequest} requestParameters Request parameters.
|
|
2018
|
+
* @param {*} [options] Override http request option.
|
|
2019
|
+
* @throws {RequiredError}
|
|
2020
|
+
* @memberof ComponentsApi
|
|
2021
|
+
*/
|
|
2022
|
+
addToView(requestParameters, options) {
|
|
2023
|
+
return ComponentsApiFp(this.configuration).addToView(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.addToViewV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
2024
|
+
}
|
|
1951
2025
|
/**
|
|
1952
2026
|
*
|
|
1953
2027
|
* @summary Create a component
|
|
@@ -2908,6 +2982,231 @@ export const SchemasApiAxiosParamCreator = function (configuration) {
|
|
|
2908
2982
|
options: localVarRequestOptions,
|
|
2909
2983
|
};
|
|
2910
2984
|
},
|
|
2985
|
+
/**
|
|
2986
|
+
*
|
|
2987
|
+
* @summary Delete the binding between an action func and the schema variant
|
|
2988
|
+
* @param {string} workspaceId Workspace identifier
|
|
2989
|
+
* @param {string} changeSetId Change Set identifier
|
|
2990
|
+
* @param {string} schemaId Schema identifier
|
|
2991
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
2992
|
+
* @param {string} funcId Func identifier
|
|
2993
|
+
* @param {*} [options] Override http request option.
|
|
2994
|
+
* @throws {RequiredError}
|
|
2995
|
+
*/
|
|
2996
|
+
detachActionFuncBinding: async (workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options = {}) => {
|
|
2997
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
2998
|
+
assertParamExists('detachActionFuncBinding', 'workspaceId', workspaceId);
|
|
2999
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
3000
|
+
assertParamExists('detachActionFuncBinding', 'changeSetId', changeSetId);
|
|
3001
|
+
// verify required parameter 'schemaId' is not null or undefined
|
|
3002
|
+
assertParamExists('detachActionFuncBinding', 'schemaId', schemaId);
|
|
3003
|
+
// verify required parameter 'schemaVariantId' is not null or undefined
|
|
3004
|
+
assertParamExists('detachActionFuncBinding', 'schemaVariantId', schemaVariantId);
|
|
3005
|
+
// verify required parameter 'funcId' is not null or undefined
|
|
3006
|
+
assertParamExists('detachActionFuncBinding', 'funcId', funcId);
|
|
3007
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}/funcs/action/{func_id}`
|
|
3008
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
3009
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
3010
|
+
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
|
|
3011
|
+
.replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)))
|
|
3012
|
+
.replace(`{${"func_id"}}`, encodeURIComponent(String(funcId)));
|
|
3013
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3014
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3015
|
+
let baseOptions;
|
|
3016
|
+
if (configuration) {
|
|
3017
|
+
baseOptions = configuration.baseOptions;
|
|
3018
|
+
}
|
|
3019
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
3020
|
+
const localVarHeaderParameter = {};
|
|
3021
|
+
const localVarQueryParameter = {};
|
|
3022
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3023
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3024
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3025
|
+
return {
|
|
3026
|
+
url: toPathString(localVarUrlObj),
|
|
3027
|
+
options: localVarRequestOptions,
|
|
3028
|
+
};
|
|
3029
|
+
},
|
|
3030
|
+
/**
|
|
3031
|
+
*
|
|
3032
|
+
* @summary Delete the binding between an authentication func and the schema variant
|
|
3033
|
+
* @param {string} workspaceId Workspace identifier
|
|
3034
|
+
* @param {string} changeSetId Change Set identifier
|
|
3035
|
+
* @param {string} schemaId Schema identifier
|
|
3036
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3037
|
+
* @param {string} funcId Func identifier
|
|
3038
|
+
* @param {*} [options] Override http request option.
|
|
3039
|
+
* @throws {RequiredError}
|
|
3040
|
+
*/
|
|
3041
|
+
detachAuthenticationFuncBinding: async (workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options = {}) => {
|
|
3042
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
3043
|
+
assertParamExists('detachAuthenticationFuncBinding', 'workspaceId', workspaceId);
|
|
3044
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
3045
|
+
assertParamExists('detachAuthenticationFuncBinding', 'changeSetId', changeSetId);
|
|
3046
|
+
// verify required parameter 'schemaId' is not null or undefined
|
|
3047
|
+
assertParamExists('detachAuthenticationFuncBinding', 'schemaId', schemaId);
|
|
3048
|
+
// verify required parameter 'schemaVariantId' is not null or undefined
|
|
3049
|
+
assertParamExists('detachAuthenticationFuncBinding', 'schemaVariantId', schemaVariantId);
|
|
3050
|
+
// verify required parameter 'funcId' is not null or undefined
|
|
3051
|
+
assertParamExists('detachAuthenticationFuncBinding', 'funcId', funcId);
|
|
3052
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}/funcs/authentication/{func_id}`
|
|
3053
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
3054
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
3055
|
+
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
|
|
3056
|
+
.replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)))
|
|
3057
|
+
.replace(`{${"func_id"}}`, encodeURIComponent(String(funcId)));
|
|
3058
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3059
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3060
|
+
let baseOptions;
|
|
3061
|
+
if (configuration) {
|
|
3062
|
+
baseOptions = configuration.baseOptions;
|
|
3063
|
+
}
|
|
3064
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
3065
|
+
const localVarHeaderParameter = {};
|
|
3066
|
+
const localVarQueryParameter = {};
|
|
3067
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3068
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3069
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3070
|
+
return {
|
|
3071
|
+
url: toPathString(localVarUrlObj),
|
|
3072
|
+
options: localVarRequestOptions,
|
|
3073
|
+
};
|
|
3074
|
+
},
|
|
3075
|
+
/**
|
|
3076
|
+
*
|
|
3077
|
+
* @summary Delete the binding between a codegen func and the schema variant
|
|
3078
|
+
* @param {string} workspaceId Workspace identifier
|
|
3079
|
+
* @param {string} changeSetId Change Set identifier
|
|
3080
|
+
* @param {string} schemaId Schema identifier
|
|
3081
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3082
|
+
* @param {string} funcId Func identifier
|
|
3083
|
+
* @param {*} [options] Override http request option.
|
|
3084
|
+
* @throws {RequiredError}
|
|
3085
|
+
*/
|
|
3086
|
+
detachCodegenFuncBinding: async (workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options = {}) => {
|
|
3087
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
3088
|
+
assertParamExists('detachCodegenFuncBinding', 'workspaceId', workspaceId);
|
|
3089
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
3090
|
+
assertParamExists('detachCodegenFuncBinding', 'changeSetId', changeSetId);
|
|
3091
|
+
// verify required parameter 'schemaId' is not null or undefined
|
|
3092
|
+
assertParamExists('detachCodegenFuncBinding', 'schemaId', schemaId);
|
|
3093
|
+
// verify required parameter 'schemaVariantId' is not null or undefined
|
|
3094
|
+
assertParamExists('detachCodegenFuncBinding', 'schemaVariantId', schemaVariantId);
|
|
3095
|
+
// verify required parameter 'funcId' is not null or undefined
|
|
3096
|
+
assertParamExists('detachCodegenFuncBinding', 'funcId', funcId);
|
|
3097
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}/funcs/codegen/{func_id}`
|
|
3098
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
3099
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
3100
|
+
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
|
|
3101
|
+
.replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)))
|
|
3102
|
+
.replace(`{${"func_id"}}`, encodeURIComponent(String(funcId)));
|
|
3103
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3104
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3105
|
+
let baseOptions;
|
|
3106
|
+
if (configuration) {
|
|
3107
|
+
baseOptions = configuration.baseOptions;
|
|
3108
|
+
}
|
|
3109
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
3110
|
+
const localVarHeaderParameter = {};
|
|
3111
|
+
const localVarQueryParameter = {};
|
|
3112
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3113
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3114
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3115
|
+
return {
|
|
3116
|
+
url: toPathString(localVarUrlObj),
|
|
3117
|
+
options: localVarRequestOptions,
|
|
3118
|
+
};
|
|
3119
|
+
},
|
|
3120
|
+
/**
|
|
3121
|
+
*
|
|
3122
|
+
* @summary Delete the binding between a management func and the schema variant
|
|
3123
|
+
* @param {string} workspaceId Workspace identifier
|
|
3124
|
+
* @param {string} changeSetId Change Set identifier
|
|
3125
|
+
* @param {string} schemaId Schema identifier
|
|
3126
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3127
|
+
* @param {string} funcId Func identifier
|
|
3128
|
+
* @param {*} [options] Override http request option.
|
|
3129
|
+
* @throws {RequiredError}
|
|
3130
|
+
*/
|
|
3131
|
+
detachManagementFuncBinding: async (workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options = {}) => {
|
|
3132
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
3133
|
+
assertParamExists('detachManagementFuncBinding', 'workspaceId', workspaceId);
|
|
3134
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
3135
|
+
assertParamExists('detachManagementFuncBinding', 'changeSetId', changeSetId);
|
|
3136
|
+
// verify required parameter 'schemaId' is not null or undefined
|
|
3137
|
+
assertParamExists('detachManagementFuncBinding', 'schemaId', schemaId);
|
|
3138
|
+
// verify required parameter 'schemaVariantId' is not null or undefined
|
|
3139
|
+
assertParamExists('detachManagementFuncBinding', 'schemaVariantId', schemaVariantId);
|
|
3140
|
+
// verify required parameter 'funcId' is not null or undefined
|
|
3141
|
+
assertParamExists('detachManagementFuncBinding', 'funcId', funcId);
|
|
3142
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}/funcs/management/{func_id}`
|
|
3143
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
3144
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
3145
|
+
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
|
|
3146
|
+
.replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)))
|
|
3147
|
+
.replace(`{${"func_id"}}`, encodeURIComponent(String(funcId)));
|
|
3148
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3149
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3150
|
+
let baseOptions;
|
|
3151
|
+
if (configuration) {
|
|
3152
|
+
baseOptions = configuration.baseOptions;
|
|
3153
|
+
}
|
|
3154
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
3155
|
+
const localVarHeaderParameter = {};
|
|
3156
|
+
const localVarQueryParameter = {};
|
|
3157
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3158
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3159
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3160
|
+
return {
|
|
3161
|
+
url: toPathString(localVarUrlObj),
|
|
3162
|
+
options: localVarRequestOptions,
|
|
3163
|
+
};
|
|
3164
|
+
},
|
|
3165
|
+
/**
|
|
3166
|
+
*
|
|
3167
|
+
* @summary Delete the binding between a qualification func and the schema variant
|
|
3168
|
+
* @param {string} workspaceId Workspace identifier
|
|
3169
|
+
* @param {string} changeSetId Change Set identifier
|
|
3170
|
+
* @param {string} schemaId Schema identifier
|
|
3171
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3172
|
+
* @param {string} funcId Func identifier
|
|
3173
|
+
* @param {*} [options] Override http request option.
|
|
3174
|
+
* @throws {RequiredError}
|
|
3175
|
+
*/
|
|
3176
|
+
detachQualificationFuncBinding: async (workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options = {}) => {
|
|
3177
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
3178
|
+
assertParamExists('detachQualificationFuncBinding', 'workspaceId', workspaceId);
|
|
3179
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
3180
|
+
assertParamExists('detachQualificationFuncBinding', 'changeSetId', changeSetId);
|
|
3181
|
+
// verify required parameter 'schemaId' is not null or undefined
|
|
3182
|
+
assertParamExists('detachQualificationFuncBinding', 'schemaId', schemaId);
|
|
3183
|
+
// verify required parameter 'schemaVariantId' is not null or undefined
|
|
3184
|
+
assertParamExists('detachQualificationFuncBinding', 'schemaVariantId', schemaVariantId);
|
|
3185
|
+
// verify required parameter 'funcId' is not null or undefined
|
|
3186
|
+
assertParamExists('detachQualificationFuncBinding', 'funcId', funcId);
|
|
3187
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}/funcs/qualification/{func_id}`
|
|
3188
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
3189
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
3190
|
+
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
|
|
3191
|
+
.replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)))
|
|
3192
|
+
.replace(`{${"func_id"}}`, encodeURIComponent(String(funcId)));
|
|
3193
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3194
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3195
|
+
let baseOptions;
|
|
3196
|
+
if (configuration) {
|
|
3197
|
+
baseOptions = configuration.baseOptions;
|
|
3198
|
+
}
|
|
3199
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
3200
|
+
const localVarHeaderParameter = {};
|
|
3201
|
+
const localVarQueryParameter = {};
|
|
3202
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3203
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3204
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3205
|
+
return {
|
|
3206
|
+
url: toPathString(localVarUrlObj),
|
|
3207
|
+
options: localVarRequestOptions,
|
|
3208
|
+
};
|
|
3209
|
+
},
|
|
2911
3210
|
/**
|
|
2912
3211
|
*
|
|
2913
3212
|
* @summary Find schema by name or schema id
|
|
@@ -3337,72 +3636,157 @@ export const SchemasApiFp = function (configuration) {
|
|
|
3337
3636
|
},
|
|
3338
3637
|
/**
|
|
3339
3638
|
*
|
|
3340
|
-
* @summary
|
|
3639
|
+
* @summary Delete the binding between an action func and the schema variant
|
|
3341
3640
|
* @param {string} workspaceId Workspace identifier
|
|
3342
3641
|
* @param {string} changeSetId Change Set identifier
|
|
3343
|
-
* @param {string
|
|
3344
|
-
* @param {string
|
|
3642
|
+
* @param {string} schemaId Schema identifier
|
|
3643
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3644
|
+
* @param {string} funcId Func identifier
|
|
3345
3645
|
* @param {*} [options] Override http request option.
|
|
3346
3646
|
* @throws {RequiredError}
|
|
3347
3647
|
*/
|
|
3348
|
-
async
|
|
3349
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3648
|
+
async detachActionFuncBinding(workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options) {
|
|
3649
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.detachActionFuncBinding(workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options);
|
|
3350
3650
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3351
|
-
const localVarOperationServerBasePath = operationServerMap['SchemasApi.
|
|
3651
|
+
const localVarOperationServerBasePath = operationServerMap['SchemasApi.detachActionFuncBinding']?.[localVarOperationServerIndex]?.url;
|
|
3352
3652
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3353
3653
|
},
|
|
3354
3654
|
/**
|
|
3355
3655
|
*
|
|
3356
|
-
* @summary
|
|
3656
|
+
* @summary Delete the binding between an authentication func and the schema variant
|
|
3357
3657
|
* @param {string} workspaceId Workspace identifier
|
|
3358
3658
|
* @param {string} changeSetId Change Set identifier
|
|
3359
3659
|
* @param {string} schemaId Schema identifier
|
|
3660
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3661
|
+
* @param {string} funcId Func identifier
|
|
3360
3662
|
* @param {*} [options] Override http request option.
|
|
3361
3663
|
* @throws {RequiredError}
|
|
3362
3664
|
*/
|
|
3363
|
-
async
|
|
3364
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3665
|
+
async detachAuthenticationFuncBinding(workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options) {
|
|
3666
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.detachAuthenticationFuncBinding(workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options);
|
|
3365
3667
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3366
|
-
const localVarOperationServerBasePath = operationServerMap['SchemasApi.
|
|
3668
|
+
const localVarOperationServerBasePath = operationServerMap['SchemasApi.detachAuthenticationFuncBinding']?.[localVarOperationServerIndex]?.url;
|
|
3367
3669
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3368
3670
|
},
|
|
3369
3671
|
/**
|
|
3370
3672
|
*
|
|
3371
|
-
* @summary
|
|
3673
|
+
* @summary Delete the binding between a codegen func and the schema variant
|
|
3372
3674
|
* @param {string} workspaceId Workspace identifier
|
|
3373
3675
|
* @param {string} changeSetId Change Set identifier
|
|
3374
3676
|
* @param {string} schemaId Schema identifier
|
|
3677
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3678
|
+
* @param {string} funcId Func identifier
|
|
3375
3679
|
* @param {*} [options] Override http request option.
|
|
3376
3680
|
* @throws {RequiredError}
|
|
3377
3681
|
*/
|
|
3378
|
-
async
|
|
3379
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3682
|
+
async detachCodegenFuncBinding(workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options) {
|
|
3683
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.detachCodegenFuncBinding(workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options);
|
|
3380
3684
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3381
|
-
const localVarOperationServerBasePath = operationServerMap['SchemasApi.
|
|
3685
|
+
const localVarOperationServerBasePath = operationServerMap['SchemasApi.detachCodegenFuncBinding']?.[localVarOperationServerIndex]?.url;
|
|
3382
3686
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3383
3687
|
},
|
|
3384
3688
|
/**
|
|
3385
3689
|
*
|
|
3386
|
-
* @summary
|
|
3690
|
+
* @summary Delete the binding between a management func and the schema variant
|
|
3387
3691
|
* @param {string} workspaceId Workspace identifier
|
|
3388
3692
|
* @param {string} changeSetId Change Set identifier
|
|
3389
3693
|
* @param {string} schemaId Schema identifier
|
|
3390
3694
|
* @param {string} schemaVariantId Schema variant identifier
|
|
3695
|
+
* @param {string} funcId Func identifier
|
|
3391
3696
|
* @param {*} [options] Override http request option.
|
|
3392
3697
|
* @throws {RequiredError}
|
|
3393
3698
|
*/
|
|
3394
|
-
async
|
|
3395
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3699
|
+
async detachManagementFuncBinding(workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options) {
|
|
3700
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.detachManagementFuncBinding(workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options);
|
|
3396
3701
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3397
|
-
const localVarOperationServerBasePath = operationServerMap['SchemasApi.
|
|
3702
|
+
const localVarOperationServerBasePath = operationServerMap['SchemasApi.detachManagementFuncBinding']?.[localVarOperationServerIndex]?.url;
|
|
3398
3703
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3399
3704
|
},
|
|
3400
3705
|
/**
|
|
3401
3706
|
*
|
|
3402
|
-
* @summary
|
|
3707
|
+
* @summary Delete the binding between a qualification func and the schema variant
|
|
3403
3708
|
* @param {string} workspaceId Workspace identifier
|
|
3404
3709
|
* @param {string} changeSetId Change Set identifier
|
|
3405
|
-
* @param {string}
|
|
3710
|
+
* @param {string} schemaId Schema identifier
|
|
3711
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3712
|
+
* @param {string} funcId Func identifier
|
|
3713
|
+
* @param {*} [options] Override http request option.
|
|
3714
|
+
* @throws {RequiredError}
|
|
3715
|
+
*/
|
|
3716
|
+
async detachQualificationFuncBinding(workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options) {
|
|
3717
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.detachQualificationFuncBinding(workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options);
|
|
3718
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3719
|
+
const localVarOperationServerBasePath = operationServerMap['SchemasApi.detachQualificationFuncBinding']?.[localVarOperationServerIndex]?.url;
|
|
3720
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3721
|
+
},
|
|
3722
|
+
/**
|
|
3723
|
+
*
|
|
3724
|
+
* @summary Find schema by name or schema id
|
|
3725
|
+
* @param {string} workspaceId Workspace identifier
|
|
3726
|
+
* @param {string} changeSetId Change Set identifier
|
|
3727
|
+
* @param {string | null} [schema]
|
|
3728
|
+
* @param {string | null} [schemaId]
|
|
3729
|
+
* @param {*} [options] Override http request option.
|
|
3730
|
+
* @throws {RequiredError}
|
|
3731
|
+
*/
|
|
3732
|
+
async findSchema(workspaceId, changeSetId, schema, schemaId, options) {
|
|
3733
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findSchema(workspaceId, changeSetId, schema, schemaId, options);
|
|
3734
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3735
|
+
const localVarOperationServerBasePath = operationServerMap['SchemasApi.findSchema']?.[localVarOperationServerIndex]?.url;
|
|
3736
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3737
|
+
},
|
|
3738
|
+
/**
|
|
3739
|
+
*
|
|
3740
|
+
* @summary Get the default variant for a schema id
|
|
3741
|
+
* @param {string} workspaceId Workspace identifier
|
|
3742
|
+
* @param {string} changeSetId Change Set identifier
|
|
3743
|
+
* @param {string} schemaId Schema identifier
|
|
3744
|
+
* @param {*} [options] Override http request option.
|
|
3745
|
+
* @throws {RequiredError}
|
|
3746
|
+
*/
|
|
3747
|
+
async getDefaultVariant(workspaceId, changeSetId, schemaId, options) {
|
|
3748
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaultVariant(workspaceId, changeSetId, schemaId, options);
|
|
3749
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3750
|
+
const localVarOperationServerBasePath = operationServerMap['SchemasApi.getDefaultVariant']?.[localVarOperationServerIndex]?.url;
|
|
3751
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3752
|
+
},
|
|
3753
|
+
/**
|
|
3754
|
+
*
|
|
3755
|
+
* @summary Get a schema by schema id
|
|
3756
|
+
* @param {string} workspaceId Workspace identifier
|
|
3757
|
+
* @param {string} changeSetId Change Set identifier
|
|
3758
|
+
* @param {string} schemaId Schema identifier
|
|
3759
|
+
* @param {*} [options] Override http request option.
|
|
3760
|
+
* @throws {RequiredError}
|
|
3761
|
+
*/
|
|
3762
|
+
async getSchema(workspaceId, changeSetId, schemaId, options) {
|
|
3763
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSchema(workspaceId, changeSetId, schemaId, options);
|
|
3764
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3765
|
+
const localVarOperationServerBasePath = operationServerMap['SchemasApi.getSchema']?.[localVarOperationServerIndex]?.url;
|
|
3766
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3767
|
+
},
|
|
3768
|
+
/**
|
|
3769
|
+
*
|
|
3770
|
+
* @summary Get a schema variant by schema id and schema variant id
|
|
3771
|
+
* @param {string} workspaceId Workspace identifier
|
|
3772
|
+
* @param {string} changeSetId Change Set identifier
|
|
3773
|
+
* @param {string} schemaId Schema identifier
|
|
3774
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3775
|
+
* @param {*} [options] Override http request option.
|
|
3776
|
+
* @throws {RequiredError}
|
|
3777
|
+
*/
|
|
3778
|
+
async getVariant(workspaceId, changeSetId, schemaId, schemaVariantId, options) {
|
|
3779
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVariant(workspaceId, changeSetId, schemaId, schemaVariantId, options);
|
|
3780
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3781
|
+
const localVarOperationServerBasePath = operationServerMap['SchemasApi.getVariant']?.[localVarOperationServerIndex]?.url;
|
|
3782
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3783
|
+
},
|
|
3784
|
+
/**
|
|
3785
|
+
*
|
|
3786
|
+
* @summary List all schemas (paginated endpoint)
|
|
3787
|
+
* @param {string} workspaceId Workspace identifier
|
|
3788
|
+
* @param {string} changeSetId Change Set identifier
|
|
3789
|
+
* @param {string} [limit] Maximum number of results to return (default: 50, max: 300)
|
|
3406
3790
|
* @param {string} [cursor] Cursor for pagination (SchemaId of the last item from previous page)
|
|
3407
3791
|
* @param {*} [options] Override http request option.
|
|
3408
3792
|
* @throws {RequiredError}
|
|
@@ -3529,6 +3913,56 @@ export const SchemasApiFactory = function (configuration, basePath, axios) {
|
|
|
3529
3913
|
createVariantQualification(requestParameters, options) {
|
|
3530
3914
|
return localVarFp.createVariantQualification(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantQualificationFuncV1Request, options).then((request) => request(axios, basePath));
|
|
3531
3915
|
},
|
|
3916
|
+
/**
|
|
3917
|
+
*
|
|
3918
|
+
* @summary Delete the binding between an action func and the schema variant
|
|
3919
|
+
* @param {SchemasApiDetachActionFuncBindingRequest} requestParameters Request parameters.
|
|
3920
|
+
* @param {*} [options] Override http request option.
|
|
3921
|
+
* @throws {RequiredError}
|
|
3922
|
+
*/
|
|
3923
|
+
detachActionFuncBinding(requestParameters, options) {
|
|
3924
|
+
return localVarFp.detachActionFuncBinding(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.funcId, options).then((request) => request(axios, basePath));
|
|
3925
|
+
},
|
|
3926
|
+
/**
|
|
3927
|
+
*
|
|
3928
|
+
* @summary Delete the binding between an authentication func and the schema variant
|
|
3929
|
+
* @param {SchemasApiDetachAuthenticationFuncBindingRequest} requestParameters Request parameters.
|
|
3930
|
+
* @param {*} [options] Override http request option.
|
|
3931
|
+
* @throws {RequiredError}
|
|
3932
|
+
*/
|
|
3933
|
+
detachAuthenticationFuncBinding(requestParameters, options) {
|
|
3934
|
+
return localVarFp.detachAuthenticationFuncBinding(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.funcId, options).then((request) => request(axios, basePath));
|
|
3935
|
+
},
|
|
3936
|
+
/**
|
|
3937
|
+
*
|
|
3938
|
+
* @summary Delete the binding between a codegen func and the schema variant
|
|
3939
|
+
* @param {SchemasApiDetachCodegenFuncBindingRequest} requestParameters Request parameters.
|
|
3940
|
+
* @param {*} [options] Override http request option.
|
|
3941
|
+
* @throws {RequiredError}
|
|
3942
|
+
*/
|
|
3943
|
+
detachCodegenFuncBinding(requestParameters, options) {
|
|
3944
|
+
return localVarFp.detachCodegenFuncBinding(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.funcId, options).then((request) => request(axios, basePath));
|
|
3945
|
+
},
|
|
3946
|
+
/**
|
|
3947
|
+
*
|
|
3948
|
+
* @summary Delete the binding between a management func and the schema variant
|
|
3949
|
+
* @param {SchemasApiDetachManagementFuncBindingRequest} requestParameters Request parameters.
|
|
3950
|
+
* @param {*} [options] Override http request option.
|
|
3951
|
+
* @throws {RequiredError}
|
|
3952
|
+
*/
|
|
3953
|
+
detachManagementFuncBinding(requestParameters, options) {
|
|
3954
|
+
return localVarFp.detachManagementFuncBinding(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.funcId, options).then((request) => request(axios, basePath));
|
|
3955
|
+
},
|
|
3956
|
+
/**
|
|
3957
|
+
*
|
|
3958
|
+
* @summary Delete the binding between a qualification func and the schema variant
|
|
3959
|
+
* @param {SchemasApiDetachQualificationFuncBindingRequest} requestParameters Request parameters.
|
|
3960
|
+
* @param {*} [options] Override http request option.
|
|
3961
|
+
* @throws {RequiredError}
|
|
3962
|
+
*/
|
|
3963
|
+
detachQualificationFuncBinding(requestParameters, options) {
|
|
3964
|
+
return localVarFp.detachQualificationFuncBinding(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.funcId, options).then((request) => request(axios, basePath));
|
|
3965
|
+
},
|
|
3532
3966
|
/**
|
|
3533
3967
|
*
|
|
3534
3968
|
* @summary Find schema by name or schema id
|
|
@@ -3684,6 +4118,61 @@ export class SchemasApi extends BaseAPI {
|
|
|
3684
4118
|
createVariantQualification(requestParameters, options) {
|
|
3685
4119
|
return SchemasApiFp(this.configuration).createVariantQualification(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantQualificationFuncV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
3686
4120
|
}
|
|
4121
|
+
/**
|
|
4122
|
+
*
|
|
4123
|
+
* @summary Delete the binding between an action func and the schema variant
|
|
4124
|
+
* @param {SchemasApiDetachActionFuncBindingRequest} requestParameters Request parameters.
|
|
4125
|
+
* @param {*} [options] Override http request option.
|
|
4126
|
+
* @throws {RequiredError}
|
|
4127
|
+
* @memberof SchemasApi
|
|
4128
|
+
*/
|
|
4129
|
+
detachActionFuncBinding(requestParameters, options) {
|
|
4130
|
+
return SchemasApiFp(this.configuration).detachActionFuncBinding(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.funcId, options).then((request) => request(this.axios, this.basePath));
|
|
4131
|
+
}
|
|
4132
|
+
/**
|
|
4133
|
+
*
|
|
4134
|
+
* @summary Delete the binding between an authentication func and the schema variant
|
|
4135
|
+
* @param {SchemasApiDetachAuthenticationFuncBindingRequest} requestParameters Request parameters.
|
|
4136
|
+
* @param {*} [options] Override http request option.
|
|
4137
|
+
* @throws {RequiredError}
|
|
4138
|
+
* @memberof SchemasApi
|
|
4139
|
+
*/
|
|
4140
|
+
detachAuthenticationFuncBinding(requestParameters, options) {
|
|
4141
|
+
return SchemasApiFp(this.configuration).detachAuthenticationFuncBinding(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.funcId, options).then((request) => request(this.axios, this.basePath));
|
|
4142
|
+
}
|
|
4143
|
+
/**
|
|
4144
|
+
*
|
|
4145
|
+
* @summary Delete the binding between a codegen func and the schema variant
|
|
4146
|
+
* @param {SchemasApiDetachCodegenFuncBindingRequest} requestParameters Request parameters.
|
|
4147
|
+
* @param {*} [options] Override http request option.
|
|
4148
|
+
* @throws {RequiredError}
|
|
4149
|
+
* @memberof SchemasApi
|
|
4150
|
+
*/
|
|
4151
|
+
detachCodegenFuncBinding(requestParameters, options) {
|
|
4152
|
+
return SchemasApiFp(this.configuration).detachCodegenFuncBinding(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.funcId, options).then((request) => request(this.axios, this.basePath));
|
|
4153
|
+
}
|
|
4154
|
+
/**
|
|
4155
|
+
*
|
|
4156
|
+
* @summary Delete the binding between a management func and the schema variant
|
|
4157
|
+
* @param {SchemasApiDetachManagementFuncBindingRequest} requestParameters Request parameters.
|
|
4158
|
+
* @param {*} [options] Override http request option.
|
|
4159
|
+
* @throws {RequiredError}
|
|
4160
|
+
* @memberof SchemasApi
|
|
4161
|
+
*/
|
|
4162
|
+
detachManagementFuncBinding(requestParameters, options) {
|
|
4163
|
+
return SchemasApiFp(this.configuration).detachManagementFuncBinding(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 a qualification func and the schema variant
|
|
4168
|
+
* @param {SchemasApiDetachQualificationFuncBindingRequest} requestParameters Request parameters.
|
|
4169
|
+
* @param {*} [options] Override http request option.
|
|
4170
|
+
* @throws {RequiredError}
|
|
4171
|
+
* @memberof SchemasApi
|
|
4172
|
+
*/
|
|
4173
|
+
detachQualificationFuncBinding(requestParameters, options) {
|
|
4174
|
+
return SchemasApiFp(this.configuration).detachQualificationFuncBinding(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.funcId, options).then((request) => request(this.axios, this.basePath));
|
|
4175
|
+
}
|
|
3687
4176
|
/**
|
|
3688
4177
|
*
|
|
3689
4178
|
* @summary Find schema by name or schema id
|
|
@@ -4296,3 +4785,622 @@ export class WhoamiApi extends BaseAPI {
|
|
|
4296
4785
|
return WhoamiApiFp(this.configuration).whoami(options).then((request) => request(this.axios, this.basePath));
|
|
4297
4786
|
}
|
|
4298
4787
|
}
|
|
4788
|
+
/**
|
|
4789
|
+
* WorkspaceManagementApi - axios parameter creator
|
|
4790
|
+
* @export
|
|
4791
|
+
*/
|
|
4792
|
+
export const WorkspaceManagementApiAxiosParamCreator = function (configuration) {
|
|
4793
|
+
return {
|
|
4794
|
+
/**
|
|
4795
|
+
*
|
|
4796
|
+
* @summary Create a new workspace
|
|
4797
|
+
* @param {CreateWorkspaceRequest} createWorkspaceRequest
|
|
4798
|
+
* @param {*} [options] Override http request option.
|
|
4799
|
+
* @throws {RequiredError}
|
|
4800
|
+
*/
|
|
4801
|
+
createWorkspace: async (createWorkspaceRequest, options = {}) => {
|
|
4802
|
+
// verify required parameter 'createWorkspaceRequest' is not null or undefined
|
|
4803
|
+
assertParamExists('createWorkspace', 'createWorkspaceRequest', createWorkspaceRequest);
|
|
4804
|
+
const localVarPath = `/management/workspaces`;
|
|
4805
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4806
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4807
|
+
let baseOptions;
|
|
4808
|
+
if (configuration) {
|
|
4809
|
+
baseOptions = configuration.baseOptions;
|
|
4810
|
+
}
|
|
4811
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
4812
|
+
const localVarHeaderParameter = {};
|
|
4813
|
+
const localVarQueryParameter = {};
|
|
4814
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4815
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4816
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4817
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4818
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createWorkspaceRequest, localVarRequestOptions, configuration);
|
|
4819
|
+
return {
|
|
4820
|
+
url: toPathString(localVarUrlObj),
|
|
4821
|
+
options: localVarRequestOptions,
|
|
4822
|
+
};
|
|
4823
|
+
},
|
|
4824
|
+
/**
|
|
4825
|
+
*
|
|
4826
|
+
* @summary Delete a workspace - please note, this is a soft delete and workspaces can be recovered
|
|
4827
|
+
* @param {string} workspaceId Workspace identifier
|
|
4828
|
+
* @param {*} [options] Override http request option.
|
|
4829
|
+
* @throws {RequiredError}
|
|
4830
|
+
*/
|
|
4831
|
+
deleteWorkspace: async (workspaceId, options = {}) => {
|
|
4832
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
4833
|
+
assertParamExists('deleteWorkspace', 'workspaceId', workspaceId);
|
|
4834
|
+
const localVarPath = `/management/workspaces/{workspace_id}`
|
|
4835
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
4836
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4837
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4838
|
+
let baseOptions;
|
|
4839
|
+
if (configuration) {
|
|
4840
|
+
baseOptions = configuration.baseOptions;
|
|
4841
|
+
}
|
|
4842
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
4843
|
+
const localVarHeaderParameter = {};
|
|
4844
|
+
const localVarQueryParameter = {};
|
|
4845
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4846
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4847
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4848
|
+
return {
|
|
4849
|
+
url: toPathString(localVarUrlObj),
|
|
4850
|
+
options: localVarRequestOptions,
|
|
4851
|
+
};
|
|
4852
|
+
},
|
|
4853
|
+
/**
|
|
4854
|
+
*
|
|
4855
|
+
* @summary Get the details of a workspace
|
|
4856
|
+
* @param {string} workspaceId Workspace identifier
|
|
4857
|
+
* @param {*} [options] Override http request option.
|
|
4858
|
+
* @throws {RequiredError}
|
|
4859
|
+
*/
|
|
4860
|
+
getWorkspace: async (workspaceId, options = {}) => {
|
|
4861
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
4862
|
+
assertParamExists('getWorkspace', 'workspaceId', workspaceId);
|
|
4863
|
+
const localVarPath = `/management/workspaces/{workspace_id}`
|
|
4864
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
4865
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4866
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4867
|
+
let baseOptions;
|
|
4868
|
+
if (configuration) {
|
|
4869
|
+
baseOptions = configuration.baseOptions;
|
|
4870
|
+
}
|
|
4871
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4872
|
+
const localVarHeaderParameter = {};
|
|
4873
|
+
const localVarQueryParameter = {};
|
|
4874
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4875
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4876
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4877
|
+
return {
|
|
4878
|
+
url: toPathString(localVarUrlObj),
|
|
4879
|
+
options: localVarRequestOptions,
|
|
4880
|
+
};
|
|
4881
|
+
},
|
|
4882
|
+
/**
|
|
4883
|
+
*
|
|
4884
|
+
* @summary Invite a new member to the workspace
|
|
4885
|
+
* @param {string} workspaceId Workspace identifier
|
|
4886
|
+
* @param {InviteMemberRequest} inviteMemberRequest
|
|
4887
|
+
* @param {*} [options] Override http request option.
|
|
4888
|
+
* @throws {RequiredError}
|
|
4889
|
+
*/
|
|
4890
|
+
inviteMember: async (workspaceId, inviteMemberRequest, options = {}) => {
|
|
4891
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
4892
|
+
assertParamExists('inviteMember', 'workspaceId', workspaceId);
|
|
4893
|
+
// verify required parameter 'inviteMemberRequest' is not null or undefined
|
|
4894
|
+
assertParamExists('inviteMember', 'inviteMemberRequest', inviteMemberRequest);
|
|
4895
|
+
const localVarPath = `/management/workspaces/{workspace_id}/members`
|
|
4896
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
4897
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4898
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4899
|
+
let baseOptions;
|
|
4900
|
+
if (configuration) {
|
|
4901
|
+
baseOptions = configuration.baseOptions;
|
|
4902
|
+
}
|
|
4903
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
4904
|
+
const localVarHeaderParameter = {};
|
|
4905
|
+
const localVarQueryParameter = {};
|
|
4906
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4907
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4908
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4909
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4910
|
+
localVarRequestOptions.data = serializeDataIfNeeded(inviteMemberRequest, localVarRequestOptions, configuration);
|
|
4911
|
+
return {
|
|
4912
|
+
url: toPathString(localVarUrlObj),
|
|
4913
|
+
options: localVarRequestOptions,
|
|
4914
|
+
};
|
|
4915
|
+
},
|
|
4916
|
+
/**
|
|
4917
|
+
*
|
|
4918
|
+
* @summary List all members of a workspace
|
|
4919
|
+
* @param {string} workspaceId Workspace identifier
|
|
4920
|
+
* @param {*} [options] Override http request option.
|
|
4921
|
+
* @throws {RequiredError}
|
|
4922
|
+
*/
|
|
4923
|
+
listMembers: async (workspaceId, options = {}) => {
|
|
4924
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
4925
|
+
assertParamExists('listMembers', 'workspaceId', workspaceId);
|
|
4926
|
+
const localVarPath = `/management/workspaces/{workspace_id}/members`
|
|
4927
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
4928
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4929
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4930
|
+
let baseOptions;
|
|
4931
|
+
if (configuration) {
|
|
4932
|
+
baseOptions = configuration.baseOptions;
|
|
4933
|
+
}
|
|
4934
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4935
|
+
const localVarHeaderParameter = {};
|
|
4936
|
+
const localVarQueryParameter = {};
|
|
4937
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4938
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4939
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4940
|
+
return {
|
|
4941
|
+
url: toPathString(localVarUrlObj),
|
|
4942
|
+
options: localVarRequestOptions,
|
|
4943
|
+
};
|
|
4944
|
+
},
|
|
4945
|
+
/**
|
|
4946
|
+
*
|
|
4947
|
+
* @summary List workspaces
|
|
4948
|
+
* @param {*} [options] Override http request option.
|
|
4949
|
+
* @throws {RequiredError}
|
|
4950
|
+
*/
|
|
4951
|
+
listWorkspaces: async (options = {}) => {
|
|
4952
|
+
const localVarPath = `/management/workspaces`;
|
|
4953
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4954
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4955
|
+
let baseOptions;
|
|
4956
|
+
if (configuration) {
|
|
4957
|
+
baseOptions = configuration.baseOptions;
|
|
4958
|
+
}
|
|
4959
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4960
|
+
const localVarHeaderParameter = {};
|
|
4961
|
+
const localVarQueryParameter = {};
|
|
4962
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4963
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4964
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4965
|
+
return {
|
|
4966
|
+
url: toPathString(localVarUrlObj),
|
|
4967
|
+
options: localVarRequestOptions,
|
|
4968
|
+
};
|
|
4969
|
+
},
|
|
4970
|
+
/**
|
|
4971
|
+
*
|
|
4972
|
+
* @summary Remove a member from the workspace
|
|
4973
|
+
* @param {string} workspaceId Workspace identifier
|
|
4974
|
+
* @param {RemoveMemberRequest} removeMemberRequest
|
|
4975
|
+
* @param {*} [options] Override http request option.
|
|
4976
|
+
* @throws {RequiredError}
|
|
4977
|
+
*/
|
|
4978
|
+
removeMember: async (workspaceId, removeMemberRequest, options = {}) => {
|
|
4979
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
4980
|
+
assertParamExists('removeMember', 'workspaceId', workspaceId);
|
|
4981
|
+
// verify required parameter 'removeMemberRequest' is not null or undefined
|
|
4982
|
+
assertParamExists('removeMember', 'removeMemberRequest', removeMemberRequest);
|
|
4983
|
+
const localVarPath = `/management/workspaces/{workspace_id}/members`
|
|
4984
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
4985
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4986
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4987
|
+
let baseOptions;
|
|
4988
|
+
if (configuration) {
|
|
4989
|
+
baseOptions = configuration.baseOptions;
|
|
4990
|
+
}
|
|
4991
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
4992
|
+
const localVarHeaderParameter = {};
|
|
4993
|
+
const localVarQueryParameter = {};
|
|
4994
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4995
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4996
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4997
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4998
|
+
localVarRequestOptions.data = serializeDataIfNeeded(removeMemberRequest, localVarRequestOptions, configuration);
|
|
4999
|
+
return {
|
|
5000
|
+
url: toPathString(localVarUrlObj),
|
|
5001
|
+
options: localVarRequestOptions,
|
|
5002
|
+
};
|
|
5003
|
+
},
|
|
5004
|
+
/**
|
|
5005
|
+
*
|
|
5006
|
+
* @summary Update a member\'s role in the workspace
|
|
5007
|
+
* @param {string} workspaceId Workspace identifier
|
|
5008
|
+
* @param {UpdateMemberRoleRequest} updateMemberRoleRequest
|
|
5009
|
+
* @param {*} [options] Override http request option.
|
|
5010
|
+
* @throws {RequiredError}
|
|
5011
|
+
*/
|
|
5012
|
+
updateMemberRole: async (workspaceId, updateMemberRoleRequest, options = {}) => {
|
|
5013
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
5014
|
+
assertParamExists('updateMemberRole', 'workspaceId', workspaceId);
|
|
5015
|
+
// verify required parameter 'updateMemberRoleRequest' is not null or undefined
|
|
5016
|
+
assertParamExists('updateMemberRole', 'updateMemberRoleRequest', updateMemberRoleRequest);
|
|
5017
|
+
const localVarPath = `/management/workspaces/{workspace_id}/update_member_access`
|
|
5018
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
5019
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5020
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5021
|
+
let baseOptions;
|
|
5022
|
+
if (configuration) {
|
|
5023
|
+
baseOptions = configuration.baseOptions;
|
|
5024
|
+
}
|
|
5025
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
5026
|
+
const localVarHeaderParameter = {};
|
|
5027
|
+
const localVarQueryParameter = {};
|
|
5028
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5029
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5030
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5031
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5032
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateMemberRoleRequest, localVarRequestOptions, configuration);
|
|
5033
|
+
return {
|
|
5034
|
+
url: toPathString(localVarUrlObj),
|
|
5035
|
+
options: localVarRequestOptions,
|
|
5036
|
+
};
|
|
5037
|
+
},
|
|
5038
|
+
/**
|
|
5039
|
+
*
|
|
5040
|
+
* @summary Update the details of a workspace
|
|
5041
|
+
* @param {string} workspaceId Workspace identifier
|
|
5042
|
+
* @param {UpdateWorkspaceRequest} updateWorkspaceRequest
|
|
5043
|
+
* @param {*} [options] Override http request option.
|
|
5044
|
+
* @throws {RequiredError}
|
|
5045
|
+
*/
|
|
5046
|
+
updateWorkspace: async (workspaceId, updateWorkspaceRequest, options = {}) => {
|
|
5047
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
5048
|
+
assertParamExists('updateWorkspace', 'workspaceId', workspaceId);
|
|
5049
|
+
// verify required parameter 'updateWorkspaceRequest' is not null or undefined
|
|
5050
|
+
assertParamExists('updateWorkspace', 'updateWorkspaceRequest', updateWorkspaceRequest);
|
|
5051
|
+
const localVarPath = `/management/workspaces/{workspace_id}`
|
|
5052
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
5053
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5054
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5055
|
+
let baseOptions;
|
|
5056
|
+
if (configuration) {
|
|
5057
|
+
baseOptions = configuration.baseOptions;
|
|
5058
|
+
}
|
|
5059
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
5060
|
+
const localVarHeaderParameter = {};
|
|
5061
|
+
const localVarQueryParameter = {};
|
|
5062
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5063
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5064
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5065
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5066
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateWorkspaceRequest, localVarRequestOptions, configuration);
|
|
5067
|
+
return {
|
|
5068
|
+
url: toPathString(localVarUrlObj),
|
|
5069
|
+
options: localVarRequestOptions,
|
|
5070
|
+
};
|
|
5071
|
+
},
|
|
5072
|
+
};
|
|
5073
|
+
};
|
|
5074
|
+
/**
|
|
5075
|
+
* WorkspaceManagementApi - functional programming interface
|
|
5076
|
+
* @export
|
|
5077
|
+
*/
|
|
5078
|
+
export const WorkspaceManagementApiFp = function (configuration) {
|
|
5079
|
+
const localVarAxiosParamCreator = WorkspaceManagementApiAxiosParamCreator(configuration);
|
|
5080
|
+
return {
|
|
5081
|
+
/**
|
|
5082
|
+
*
|
|
5083
|
+
* @summary Create a new workspace
|
|
5084
|
+
* @param {CreateWorkspaceRequest} createWorkspaceRequest
|
|
5085
|
+
* @param {*} [options] Override http request option.
|
|
5086
|
+
* @throws {RequiredError}
|
|
5087
|
+
*/
|
|
5088
|
+
async createWorkspace(createWorkspaceRequest, options) {
|
|
5089
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createWorkspace(createWorkspaceRequest, options);
|
|
5090
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5091
|
+
const localVarOperationServerBasePath = operationServerMap['WorkspaceManagementApi.createWorkspace']?.[localVarOperationServerIndex]?.url;
|
|
5092
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5093
|
+
},
|
|
5094
|
+
/**
|
|
5095
|
+
*
|
|
5096
|
+
* @summary Delete a workspace - please note, this is a soft delete and workspaces can be recovered
|
|
5097
|
+
* @param {string} workspaceId Workspace identifier
|
|
5098
|
+
* @param {*} [options] Override http request option.
|
|
5099
|
+
* @throws {RequiredError}
|
|
5100
|
+
*/
|
|
5101
|
+
async deleteWorkspace(workspaceId, options) {
|
|
5102
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteWorkspace(workspaceId, options);
|
|
5103
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5104
|
+
const localVarOperationServerBasePath = operationServerMap['WorkspaceManagementApi.deleteWorkspace']?.[localVarOperationServerIndex]?.url;
|
|
5105
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5106
|
+
},
|
|
5107
|
+
/**
|
|
5108
|
+
*
|
|
5109
|
+
* @summary Get the details of a workspace
|
|
5110
|
+
* @param {string} workspaceId Workspace identifier
|
|
5111
|
+
* @param {*} [options] Override http request option.
|
|
5112
|
+
* @throws {RequiredError}
|
|
5113
|
+
*/
|
|
5114
|
+
async getWorkspace(workspaceId, options) {
|
|
5115
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspace(workspaceId, options);
|
|
5116
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5117
|
+
const localVarOperationServerBasePath = operationServerMap['WorkspaceManagementApi.getWorkspace']?.[localVarOperationServerIndex]?.url;
|
|
5118
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5119
|
+
},
|
|
5120
|
+
/**
|
|
5121
|
+
*
|
|
5122
|
+
* @summary Invite a new member to the workspace
|
|
5123
|
+
* @param {string} workspaceId Workspace identifier
|
|
5124
|
+
* @param {InviteMemberRequest} inviteMemberRequest
|
|
5125
|
+
* @param {*} [options] Override http request option.
|
|
5126
|
+
* @throws {RequiredError}
|
|
5127
|
+
*/
|
|
5128
|
+
async inviteMember(workspaceId, inviteMemberRequest, options) {
|
|
5129
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteMember(workspaceId, inviteMemberRequest, options);
|
|
5130
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5131
|
+
const localVarOperationServerBasePath = operationServerMap['WorkspaceManagementApi.inviteMember']?.[localVarOperationServerIndex]?.url;
|
|
5132
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5133
|
+
},
|
|
5134
|
+
/**
|
|
5135
|
+
*
|
|
5136
|
+
* @summary List all members of a workspace
|
|
5137
|
+
* @param {string} workspaceId Workspace identifier
|
|
5138
|
+
* @param {*} [options] Override http request option.
|
|
5139
|
+
* @throws {RequiredError}
|
|
5140
|
+
*/
|
|
5141
|
+
async listMembers(workspaceId, options) {
|
|
5142
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listMembers(workspaceId, options);
|
|
5143
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5144
|
+
const localVarOperationServerBasePath = operationServerMap['WorkspaceManagementApi.listMembers']?.[localVarOperationServerIndex]?.url;
|
|
5145
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5146
|
+
},
|
|
5147
|
+
/**
|
|
5148
|
+
*
|
|
5149
|
+
* @summary List workspaces
|
|
5150
|
+
* @param {*} [options] Override http request option.
|
|
5151
|
+
* @throws {RequiredError}
|
|
5152
|
+
*/
|
|
5153
|
+
async listWorkspaces(options) {
|
|
5154
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listWorkspaces(options);
|
|
5155
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5156
|
+
const localVarOperationServerBasePath = operationServerMap['WorkspaceManagementApi.listWorkspaces']?.[localVarOperationServerIndex]?.url;
|
|
5157
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5158
|
+
},
|
|
5159
|
+
/**
|
|
5160
|
+
*
|
|
5161
|
+
* @summary Remove a member from the workspace
|
|
5162
|
+
* @param {string} workspaceId Workspace identifier
|
|
5163
|
+
* @param {RemoveMemberRequest} removeMemberRequest
|
|
5164
|
+
* @param {*} [options] Override http request option.
|
|
5165
|
+
* @throws {RequiredError}
|
|
5166
|
+
*/
|
|
5167
|
+
async removeMember(workspaceId, removeMemberRequest, options) {
|
|
5168
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeMember(workspaceId, removeMemberRequest, options);
|
|
5169
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5170
|
+
const localVarOperationServerBasePath = operationServerMap['WorkspaceManagementApi.removeMember']?.[localVarOperationServerIndex]?.url;
|
|
5171
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5172
|
+
},
|
|
5173
|
+
/**
|
|
5174
|
+
*
|
|
5175
|
+
* @summary Update a member\'s role in the workspace
|
|
5176
|
+
* @param {string} workspaceId Workspace identifier
|
|
5177
|
+
* @param {UpdateMemberRoleRequest} updateMemberRoleRequest
|
|
5178
|
+
* @param {*} [options] Override http request option.
|
|
5179
|
+
* @throws {RequiredError}
|
|
5180
|
+
*/
|
|
5181
|
+
async updateMemberRole(workspaceId, updateMemberRoleRequest, options) {
|
|
5182
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateMemberRole(workspaceId, updateMemberRoleRequest, options);
|
|
5183
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5184
|
+
const localVarOperationServerBasePath = operationServerMap['WorkspaceManagementApi.updateMemberRole']?.[localVarOperationServerIndex]?.url;
|
|
5185
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5186
|
+
},
|
|
5187
|
+
/**
|
|
5188
|
+
*
|
|
5189
|
+
* @summary Update the details of a workspace
|
|
5190
|
+
* @param {string} workspaceId Workspace identifier
|
|
5191
|
+
* @param {UpdateWorkspaceRequest} updateWorkspaceRequest
|
|
5192
|
+
* @param {*} [options] Override http request option.
|
|
5193
|
+
* @throws {RequiredError}
|
|
5194
|
+
*/
|
|
5195
|
+
async updateWorkspace(workspaceId, updateWorkspaceRequest, options) {
|
|
5196
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateWorkspace(workspaceId, updateWorkspaceRequest, options);
|
|
5197
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5198
|
+
const localVarOperationServerBasePath = operationServerMap['WorkspaceManagementApi.updateWorkspace']?.[localVarOperationServerIndex]?.url;
|
|
5199
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5200
|
+
},
|
|
5201
|
+
};
|
|
5202
|
+
};
|
|
5203
|
+
/**
|
|
5204
|
+
* WorkspaceManagementApi - factory interface
|
|
5205
|
+
* @export
|
|
5206
|
+
*/
|
|
5207
|
+
export const WorkspaceManagementApiFactory = function (configuration, basePath, axios) {
|
|
5208
|
+
const localVarFp = WorkspaceManagementApiFp(configuration);
|
|
5209
|
+
return {
|
|
5210
|
+
/**
|
|
5211
|
+
*
|
|
5212
|
+
* @summary Create a new workspace
|
|
5213
|
+
* @param {WorkspaceManagementApiCreateWorkspaceRequest} requestParameters Request parameters.
|
|
5214
|
+
* @param {*} [options] Override http request option.
|
|
5215
|
+
* @throws {RequiredError}
|
|
5216
|
+
*/
|
|
5217
|
+
createWorkspace(requestParameters, options) {
|
|
5218
|
+
return localVarFp.createWorkspace(requestParameters.createWorkspaceRequest, options).then((request) => request(axios, basePath));
|
|
5219
|
+
},
|
|
5220
|
+
/**
|
|
5221
|
+
*
|
|
5222
|
+
* @summary Delete a workspace - please note, this is a soft delete and workspaces can be recovered
|
|
5223
|
+
* @param {WorkspaceManagementApiDeleteWorkspaceRequest} requestParameters Request parameters.
|
|
5224
|
+
* @param {*} [options] Override http request option.
|
|
5225
|
+
* @throws {RequiredError}
|
|
5226
|
+
*/
|
|
5227
|
+
deleteWorkspace(requestParameters, options) {
|
|
5228
|
+
return localVarFp.deleteWorkspace(requestParameters.workspaceId, options).then((request) => request(axios, basePath));
|
|
5229
|
+
},
|
|
5230
|
+
/**
|
|
5231
|
+
*
|
|
5232
|
+
* @summary Get the details of a workspace
|
|
5233
|
+
* @param {WorkspaceManagementApiGetWorkspaceRequest} requestParameters Request parameters.
|
|
5234
|
+
* @param {*} [options] Override http request option.
|
|
5235
|
+
* @throws {RequiredError}
|
|
5236
|
+
*/
|
|
5237
|
+
getWorkspace(requestParameters, options) {
|
|
5238
|
+
return localVarFp.getWorkspace(requestParameters.workspaceId, options).then((request) => request(axios, basePath));
|
|
5239
|
+
},
|
|
5240
|
+
/**
|
|
5241
|
+
*
|
|
5242
|
+
* @summary Invite a new member to the workspace
|
|
5243
|
+
* @param {WorkspaceManagementApiInviteMemberRequest} requestParameters Request parameters.
|
|
5244
|
+
* @param {*} [options] Override http request option.
|
|
5245
|
+
* @throws {RequiredError}
|
|
5246
|
+
*/
|
|
5247
|
+
inviteMember(requestParameters, options) {
|
|
5248
|
+
return localVarFp.inviteMember(requestParameters.workspaceId, requestParameters.inviteMemberRequest, options).then((request) => request(axios, basePath));
|
|
5249
|
+
},
|
|
5250
|
+
/**
|
|
5251
|
+
*
|
|
5252
|
+
* @summary List all members of a workspace
|
|
5253
|
+
* @param {WorkspaceManagementApiListMembersRequest} requestParameters Request parameters.
|
|
5254
|
+
* @param {*} [options] Override http request option.
|
|
5255
|
+
* @throws {RequiredError}
|
|
5256
|
+
*/
|
|
5257
|
+
listMembers(requestParameters, options) {
|
|
5258
|
+
return localVarFp.listMembers(requestParameters.workspaceId, options).then((request) => request(axios, basePath));
|
|
5259
|
+
},
|
|
5260
|
+
/**
|
|
5261
|
+
*
|
|
5262
|
+
* @summary List workspaces
|
|
5263
|
+
* @param {*} [options] Override http request option.
|
|
5264
|
+
* @throws {RequiredError}
|
|
5265
|
+
*/
|
|
5266
|
+
listWorkspaces(options) {
|
|
5267
|
+
return localVarFp.listWorkspaces(options).then((request) => request(axios, basePath));
|
|
5268
|
+
},
|
|
5269
|
+
/**
|
|
5270
|
+
*
|
|
5271
|
+
* @summary Remove a member from the workspace
|
|
5272
|
+
* @param {WorkspaceManagementApiRemoveMemberRequest} requestParameters Request parameters.
|
|
5273
|
+
* @param {*} [options] Override http request option.
|
|
5274
|
+
* @throws {RequiredError}
|
|
5275
|
+
*/
|
|
5276
|
+
removeMember(requestParameters, options) {
|
|
5277
|
+
return localVarFp.removeMember(requestParameters.workspaceId, requestParameters.removeMemberRequest, options).then((request) => request(axios, basePath));
|
|
5278
|
+
},
|
|
5279
|
+
/**
|
|
5280
|
+
*
|
|
5281
|
+
* @summary Update a member\'s role in the workspace
|
|
5282
|
+
* @param {WorkspaceManagementApiUpdateMemberRoleRequest} requestParameters Request parameters.
|
|
5283
|
+
* @param {*} [options] Override http request option.
|
|
5284
|
+
* @throws {RequiredError}
|
|
5285
|
+
*/
|
|
5286
|
+
updateMemberRole(requestParameters, options) {
|
|
5287
|
+
return localVarFp.updateMemberRole(requestParameters.workspaceId, requestParameters.updateMemberRoleRequest, options).then((request) => request(axios, basePath));
|
|
5288
|
+
},
|
|
5289
|
+
/**
|
|
5290
|
+
*
|
|
5291
|
+
* @summary Update the details of a workspace
|
|
5292
|
+
* @param {WorkspaceManagementApiUpdateWorkspaceRequest} requestParameters Request parameters.
|
|
5293
|
+
* @param {*} [options] Override http request option.
|
|
5294
|
+
* @throws {RequiredError}
|
|
5295
|
+
*/
|
|
5296
|
+
updateWorkspace(requestParameters, options) {
|
|
5297
|
+
return localVarFp.updateWorkspace(requestParameters.workspaceId, requestParameters.updateWorkspaceRequest, options).then((request) => request(axios, basePath));
|
|
5298
|
+
},
|
|
5299
|
+
};
|
|
5300
|
+
};
|
|
5301
|
+
/**
|
|
5302
|
+
* WorkspaceManagementApi - object-oriented interface
|
|
5303
|
+
* @export
|
|
5304
|
+
* @class WorkspaceManagementApi
|
|
5305
|
+
* @extends {BaseAPI}
|
|
5306
|
+
*/
|
|
5307
|
+
export class WorkspaceManagementApi extends BaseAPI {
|
|
5308
|
+
/**
|
|
5309
|
+
*
|
|
5310
|
+
* @summary Create a new workspace
|
|
5311
|
+
* @param {WorkspaceManagementApiCreateWorkspaceRequest} requestParameters Request parameters.
|
|
5312
|
+
* @param {*} [options] Override http request option.
|
|
5313
|
+
* @throws {RequiredError}
|
|
5314
|
+
* @memberof WorkspaceManagementApi
|
|
5315
|
+
*/
|
|
5316
|
+
createWorkspace(requestParameters, options) {
|
|
5317
|
+
return WorkspaceManagementApiFp(this.configuration).createWorkspace(requestParameters.createWorkspaceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5318
|
+
}
|
|
5319
|
+
/**
|
|
5320
|
+
*
|
|
5321
|
+
* @summary Delete a workspace - please note, this is a soft delete and workspaces can be recovered
|
|
5322
|
+
* @param {WorkspaceManagementApiDeleteWorkspaceRequest} requestParameters Request parameters.
|
|
5323
|
+
* @param {*} [options] Override http request option.
|
|
5324
|
+
* @throws {RequiredError}
|
|
5325
|
+
* @memberof WorkspaceManagementApi
|
|
5326
|
+
*/
|
|
5327
|
+
deleteWorkspace(requestParameters, options) {
|
|
5328
|
+
return WorkspaceManagementApiFp(this.configuration).deleteWorkspace(requestParameters.workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
5329
|
+
}
|
|
5330
|
+
/**
|
|
5331
|
+
*
|
|
5332
|
+
* @summary Get the details of a workspace
|
|
5333
|
+
* @param {WorkspaceManagementApiGetWorkspaceRequest} requestParameters Request parameters.
|
|
5334
|
+
* @param {*} [options] Override http request option.
|
|
5335
|
+
* @throws {RequiredError}
|
|
5336
|
+
* @memberof WorkspaceManagementApi
|
|
5337
|
+
*/
|
|
5338
|
+
getWorkspace(requestParameters, options) {
|
|
5339
|
+
return WorkspaceManagementApiFp(this.configuration).getWorkspace(requestParameters.workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
5340
|
+
}
|
|
5341
|
+
/**
|
|
5342
|
+
*
|
|
5343
|
+
* @summary Invite a new member to the workspace
|
|
5344
|
+
* @param {WorkspaceManagementApiInviteMemberRequest} requestParameters Request parameters.
|
|
5345
|
+
* @param {*} [options] Override http request option.
|
|
5346
|
+
* @throws {RequiredError}
|
|
5347
|
+
* @memberof WorkspaceManagementApi
|
|
5348
|
+
*/
|
|
5349
|
+
inviteMember(requestParameters, options) {
|
|
5350
|
+
return WorkspaceManagementApiFp(this.configuration).inviteMember(requestParameters.workspaceId, requestParameters.inviteMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5351
|
+
}
|
|
5352
|
+
/**
|
|
5353
|
+
*
|
|
5354
|
+
* @summary List all members of a workspace
|
|
5355
|
+
* @param {WorkspaceManagementApiListMembersRequest} requestParameters Request parameters.
|
|
5356
|
+
* @param {*} [options] Override http request option.
|
|
5357
|
+
* @throws {RequiredError}
|
|
5358
|
+
* @memberof WorkspaceManagementApi
|
|
5359
|
+
*/
|
|
5360
|
+
listMembers(requestParameters, options) {
|
|
5361
|
+
return WorkspaceManagementApiFp(this.configuration).listMembers(requestParameters.workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
5362
|
+
}
|
|
5363
|
+
/**
|
|
5364
|
+
*
|
|
5365
|
+
* @summary List workspaces
|
|
5366
|
+
* @param {*} [options] Override http request option.
|
|
5367
|
+
* @throws {RequiredError}
|
|
5368
|
+
* @memberof WorkspaceManagementApi
|
|
5369
|
+
*/
|
|
5370
|
+
listWorkspaces(options) {
|
|
5371
|
+
return WorkspaceManagementApiFp(this.configuration).listWorkspaces(options).then((request) => request(this.axios, this.basePath));
|
|
5372
|
+
}
|
|
5373
|
+
/**
|
|
5374
|
+
*
|
|
5375
|
+
* @summary Remove a member from the workspace
|
|
5376
|
+
* @param {WorkspaceManagementApiRemoveMemberRequest} requestParameters Request parameters.
|
|
5377
|
+
* @param {*} [options] Override http request option.
|
|
5378
|
+
* @throws {RequiredError}
|
|
5379
|
+
* @memberof WorkspaceManagementApi
|
|
5380
|
+
*/
|
|
5381
|
+
removeMember(requestParameters, options) {
|
|
5382
|
+
return WorkspaceManagementApiFp(this.configuration).removeMember(requestParameters.workspaceId, requestParameters.removeMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5383
|
+
}
|
|
5384
|
+
/**
|
|
5385
|
+
*
|
|
5386
|
+
* @summary Update a member\'s role in the workspace
|
|
5387
|
+
* @param {WorkspaceManagementApiUpdateMemberRoleRequest} requestParameters Request parameters.
|
|
5388
|
+
* @param {*} [options] Override http request option.
|
|
5389
|
+
* @throws {RequiredError}
|
|
5390
|
+
* @memberof WorkspaceManagementApi
|
|
5391
|
+
*/
|
|
5392
|
+
updateMemberRole(requestParameters, options) {
|
|
5393
|
+
return WorkspaceManagementApiFp(this.configuration).updateMemberRole(requestParameters.workspaceId, requestParameters.updateMemberRoleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5394
|
+
}
|
|
5395
|
+
/**
|
|
5396
|
+
*
|
|
5397
|
+
* @summary Update the details of a workspace
|
|
5398
|
+
* @param {WorkspaceManagementApiUpdateWorkspaceRequest} requestParameters Request parameters.
|
|
5399
|
+
* @param {*} [options] Override http request option.
|
|
5400
|
+
* @throws {RequiredError}
|
|
5401
|
+
* @memberof WorkspaceManagementApi
|
|
5402
|
+
*/
|
|
5403
|
+
updateWorkspace(requestParameters, options) {
|
|
5404
|
+
return WorkspaceManagementApiFp(this.configuration).updateWorkspace(requestParameters.workspaceId, requestParameters.updateWorkspaceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5405
|
+
}
|
|
5406
|
+
}
|