system-initiative-api-client 1.10.0 → 1.12.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 +137 -132
- package/dist/cjs/api.js +136 -74
- package/dist/esm/api.d.ts +137 -132
- package/dist/esm/api.js +136 -74
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -1250,44 +1250,6 @@ export const ComponentsApiAxiosParamCreator = function (configuration) {
|
|
|
1250
1250
|
options: localVarRequestOptions,
|
|
1251
1251
|
};
|
|
1252
1252
|
},
|
|
1253
|
-
/**
|
|
1254
|
-
*
|
|
1255
|
-
* @summary Generate a template
|
|
1256
|
-
* @param {string} workspaceId Workspace identifier
|
|
1257
|
-
* @param {string} changeSetId Change Set identifier
|
|
1258
|
-
* @param {GenerateTemplateV1Request} generateTemplateV1Request
|
|
1259
|
-
* @param {*} [options] Override http request option.
|
|
1260
|
-
* @throws {RequiredError}
|
|
1261
|
-
*/
|
|
1262
|
-
generateTemplate: async (workspaceId, changeSetId, generateTemplateV1Request, options = {}) => {
|
|
1263
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
1264
|
-
assertParamExists('generateTemplate', 'workspaceId', workspaceId);
|
|
1265
|
-
// verify required parameter 'changeSetId' is not null or undefined
|
|
1266
|
-
assertParamExists('generateTemplate', 'changeSetId', changeSetId);
|
|
1267
|
-
// verify required parameter 'generateTemplateV1Request' is not null or undefined
|
|
1268
|
-
assertParamExists('generateTemplate', 'generateTemplateV1Request', generateTemplateV1Request);
|
|
1269
|
-
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/generate_template`
|
|
1270
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
1271
|
-
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
|
|
1272
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1273
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1274
|
-
let baseOptions;
|
|
1275
|
-
if (configuration) {
|
|
1276
|
-
baseOptions = configuration.baseOptions;
|
|
1277
|
-
}
|
|
1278
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1279
|
-
const localVarHeaderParameter = {};
|
|
1280
|
-
const localVarQueryParameter = {};
|
|
1281
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1282
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1283
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1284
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1285
|
-
localVarRequestOptions.data = serializeDataIfNeeded(generateTemplateV1Request, localVarRequestOptions, configuration);
|
|
1286
|
-
return {
|
|
1287
|
-
url: toPathString(localVarUrlObj),
|
|
1288
|
-
options: localVarRequestOptions,
|
|
1289
|
-
};
|
|
1290
|
-
},
|
|
1291
1253
|
/**
|
|
1292
1254
|
*
|
|
1293
1255
|
* @summary Get a component by component Id
|
|
@@ -1735,21 +1697,6 @@ export const ComponentsApiFp = function (configuration) {
|
|
|
1735
1697
|
const localVarOperationServerBasePath = operationServerMap['ComponentsApi.findComponent']?.[localVarOperationServerIndex]?.url;
|
|
1736
1698
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1737
1699
|
},
|
|
1738
|
-
/**
|
|
1739
|
-
*
|
|
1740
|
-
* @summary Generate a template
|
|
1741
|
-
* @param {string} workspaceId Workspace identifier
|
|
1742
|
-
* @param {string} changeSetId Change Set identifier
|
|
1743
|
-
* @param {GenerateTemplateV1Request} generateTemplateV1Request
|
|
1744
|
-
* @param {*} [options] Override http request option.
|
|
1745
|
-
* @throws {RequiredError}
|
|
1746
|
-
*/
|
|
1747
|
-
async generateTemplate(workspaceId, changeSetId, generateTemplateV1Request, options) {
|
|
1748
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.generateTemplate(workspaceId, changeSetId, generateTemplateV1Request, options);
|
|
1749
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1750
|
-
const localVarOperationServerBasePath = operationServerMap['ComponentsApi.generateTemplate']?.[localVarOperationServerIndex]?.url;
|
|
1751
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1752
|
-
},
|
|
1753
1700
|
/**
|
|
1754
1701
|
*
|
|
1755
1702
|
* @summary Get a component by component Id
|
|
@@ -1963,16 +1910,6 @@ export const ComponentsApiFactory = function (configuration, basePath, axios) {
|
|
|
1963
1910
|
findComponent(requestParameters, options) {
|
|
1964
1911
|
return localVarFp.findComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.component, requestParameters.componentId, options).then((request) => request(axios, basePath));
|
|
1965
1912
|
},
|
|
1966
|
-
/**
|
|
1967
|
-
*
|
|
1968
|
-
* @summary Generate a template
|
|
1969
|
-
* @param {ComponentsApiGenerateTemplateRequest} requestParameters Request parameters.
|
|
1970
|
-
* @param {*} [options] Override http request option.
|
|
1971
|
-
* @throws {RequiredError}
|
|
1972
|
-
*/
|
|
1973
|
-
generateTemplate(requestParameters, options) {
|
|
1974
|
-
return localVarFp.generateTemplate(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.generateTemplateV1Request, options).then((request) => request(axios, basePath));
|
|
1975
|
-
},
|
|
1976
1913
|
/**
|
|
1977
1914
|
*
|
|
1978
1915
|
* @summary Get a component by component Id
|
|
@@ -2150,17 +2087,6 @@ export class ComponentsApi extends BaseAPI {
|
|
|
2150
2087
|
findComponent(requestParameters, options) {
|
|
2151
2088
|
return ComponentsApiFp(this.configuration).findComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.component, requestParameters.componentId, options).then((request) => request(this.axios, this.basePath));
|
|
2152
2089
|
}
|
|
2153
|
-
/**
|
|
2154
|
-
*
|
|
2155
|
-
* @summary Generate a template
|
|
2156
|
-
* @param {ComponentsApiGenerateTemplateRequest} requestParameters Request parameters.
|
|
2157
|
-
* @param {*} [options] Override http request option.
|
|
2158
|
-
* @throws {RequiredError}
|
|
2159
|
-
* @memberof ComponentsApi
|
|
2160
|
-
*/
|
|
2161
|
-
generateTemplate(requestParameters, options) {
|
|
2162
|
-
return ComponentsApiFp(this.configuration).generateTemplate(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.generateTemplateV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
2163
|
-
}
|
|
2164
2090
|
/**
|
|
2165
2091
|
*
|
|
2166
2092
|
* @summary Get a component by component Id
|
|
@@ -3042,6 +2968,43 @@ export class RootApi extends BaseAPI {
|
|
|
3042
2968
|
*/
|
|
3043
2969
|
export const SchemasApiAxiosParamCreator = function (configuration) {
|
|
3044
2970
|
return {
|
|
2971
|
+
/**
|
|
2972
|
+
*
|
|
2973
|
+
* @summary Contribute the default variant of a schema to the module index
|
|
2974
|
+
* @param {string} workspaceId Workspace identifier
|
|
2975
|
+
* @param {string} changeSetId Change Set identifier
|
|
2976
|
+
* @param {string} schemaId Schema identifier
|
|
2977
|
+
* @param {*} [options] Override http request option.
|
|
2978
|
+
* @throws {RequiredError}
|
|
2979
|
+
*/
|
|
2980
|
+
contribute: async (workspaceId, changeSetId, schemaId, options = {}) => {
|
|
2981
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
2982
|
+
assertParamExists('contribute', 'workspaceId', workspaceId);
|
|
2983
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
2984
|
+
assertParamExists('contribute', 'changeSetId', changeSetId);
|
|
2985
|
+
// verify required parameter 'schemaId' is not null or undefined
|
|
2986
|
+
assertParamExists('contribute', 'schemaId', schemaId);
|
|
2987
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/contribute`
|
|
2988
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
2989
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
2990
|
+
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)));
|
|
2991
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2992
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2993
|
+
let baseOptions;
|
|
2994
|
+
if (configuration) {
|
|
2995
|
+
baseOptions = configuration.baseOptions;
|
|
2996
|
+
}
|
|
2997
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2998
|
+
const localVarHeaderParameter = {};
|
|
2999
|
+
const localVarQueryParameter = {};
|
|
3000
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3001
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3002
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3003
|
+
return {
|
|
3004
|
+
url: toPathString(localVarUrlObj),
|
|
3005
|
+
options: localVarRequestOptions,
|
|
3006
|
+
};
|
|
3007
|
+
},
|
|
3045
3008
|
/**
|
|
3046
3009
|
*
|
|
3047
3010
|
* @summary Create a schema and it\'s default variant
|
|
@@ -3990,6 +3953,21 @@ export const SchemasApiAxiosParamCreator = function (configuration) {
|
|
|
3990
3953
|
export const SchemasApiFp = function (configuration) {
|
|
3991
3954
|
const localVarAxiosParamCreator = SchemasApiAxiosParamCreator(configuration);
|
|
3992
3955
|
return {
|
|
3956
|
+
/**
|
|
3957
|
+
*
|
|
3958
|
+
* @summary Contribute the default variant of a schema to the module index
|
|
3959
|
+
* @param {string} workspaceId Workspace identifier
|
|
3960
|
+
* @param {string} changeSetId Change Set identifier
|
|
3961
|
+
* @param {string} schemaId Schema identifier
|
|
3962
|
+
* @param {*} [options] Override http request option.
|
|
3963
|
+
* @throws {RequiredError}
|
|
3964
|
+
*/
|
|
3965
|
+
async contribute(workspaceId, changeSetId, schemaId, options) {
|
|
3966
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contribute(workspaceId, changeSetId, schemaId, options);
|
|
3967
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3968
|
+
const localVarOperationServerBasePath = operationServerMap['SchemasApi.contribute']?.[localVarOperationServerIndex]?.url;
|
|
3969
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3970
|
+
},
|
|
3993
3971
|
/**
|
|
3994
3972
|
*
|
|
3995
3973
|
* @summary Create a schema and it\'s default variant
|
|
@@ -4358,6 +4336,16 @@ export const SchemasApiFp = function (configuration) {
|
|
|
4358
4336
|
export const SchemasApiFactory = function (configuration, basePath, axios) {
|
|
4359
4337
|
const localVarFp = SchemasApiFp(configuration);
|
|
4360
4338
|
return {
|
|
4339
|
+
/**
|
|
4340
|
+
*
|
|
4341
|
+
* @summary Contribute the default variant of a schema to the module index
|
|
4342
|
+
* @param {SchemasApiContributeRequest} requestParameters Request parameters.
|
|
4343
|
+
* @param {*} [options] Override http request option.
|
|
4344
|
+
* @throws {RequiredError}
|
|
4345
|
+
*/
|
|
4346
|
+
contribute(requestParameters, options) {
|
|
4347
|
+
return localVarFp.contribute(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, options).then((request) => request(axios, basePath));
|
|
4348
|
+
},
|
|
4361
4349
|
/**
|
|
4362
4350
|
*
|
|
4363
4351
|
* @summary Create a schema and it\'s default variant
|
|
@@ -4587,6 +4575,17 @@ export const SchemasApiFactory = function (configuration, basePath, axios) {
|
|
|
4587
4575
|
* @extends {BaseAPI}
|
|
4588
4576
|
*/
|
|
4589
4577
|
export class SchemasApi extends BaseAPI {
|
|
4578
|
+
/**
|
|
4579
|
+
*
|
|
4580
|
+
* @summary Contribute the default variant of a schema to the module index
|
|
4581
|
+
* @param {SchemasApiContributeRequest} requestParameters Request parameters.
|
|
4582
|
+
* @param {*} [options] Override http request option.
|
|
4583
|
+
* @throws {RequiredError}
|
|
4584
|
+
* @memberof SchemasApi
|
|
4585
|
+
*/
|
|
4586
|
+
contribute(requestParameters, options) {
|
|
4587
|
+
return SchemasApiFp(this.configuration).contribute(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, options).then((request) => request(this.axios, this.basePath));
|
|
4588
|
+
}
|
|
4590
4589
|
/**
|
|
4591
4590
|
*
|
|
4592
4591
|
* @summary Create a schema and it\'s default variant
|
|
@@ -5481,6 +5480,35 @@ export const WorkspaceManagementApiAxiosParamCreator = function (configuration)
|
|
|
5481
5480
|
options: localVarRequestOptions,
|
|
5482
5481
|
};
|
|
5483
5482
|
},
|
|
5483
|
+
/**
|
|
5484
|
+
*
|
|
5485
|
+
* @summary Leave a workspace (remove yourself)
|
|
5486
|
+
* @param {string} workspaceId Workspace identifier
|
|
5487
|
+
* @param {*} [options] Override http request option.
|
|
5488
|
+
* @throws {RequiredError}
|
|
5489
|
+
*/
|
|
5490
|
+
leaveWorkspace: async (workspaceId, options = {}) => {
|
|
5491
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
5492
|
+
assertParamExists('leaveWorkspace', 'workspaceId', workspaceId);
|
|
5493
|
+
const localVarPath = `/management/workspaces/{workspace_id}/leave`
|
|
5494
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
5495
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5496
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5497
|
+
let baseOptions;
|
|
5498
|
+
if (configuration) {
|
|
5499
|
+
baseOptions = configuration.baseOptions;
|
|
5500
|
+
}
|
|
5501
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
5502
|
+
const localVarHeaderParameter = {};
|
|
5503
|
+
const localVarQueryParameter = {};
|
|
5504
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5505
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5506
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5507
|
+
return {
|
|
5508
|
+
url: toPathString(localVarUrlObj),
|
|
5509
|
+
options: localVarRequestOptions,
|
|
5510
|
+
};
|
|
5511
|
+
},
|
|
5484
5512
|
/**
|
|
5485
5513
|
*
|
|
5486
5514
|
* @summary List all members of a workspace
|
|
@@ -5699,6 +5727,19 @@ export const WorkspaceManagementApiFp = function (configuration) {
|
|
|
5699
5727
|
const localVarOperationServerBasePath = operationServerMap['WorkspaceManagementApi.inviteMember']?.[localVarOperationServerIndex]?.url;
|
|
5700
5728
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5701
5729
|
},
|
|
5730
|
+
/**
|
|
5731
|
+
*
|
|
5732
|
+
* @summary Leave a workspace (remove yourself)
|
|
5733
|
+
* @param {string} workspaceId Workspace identifier
|
|
5734
|
+
* @param {*} [options] Override http request option.
|
|
5735
|
+
* @throws {RequiredError}
|
|
5736
|
+
*/
|
|
5737
|
+
async leaveWorkspace(workspaceId, options) {
|
|
5738
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.leaveWorkspace(workspaceId, options);
|
|
5739
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5740
|
+
const localVarOperationServerBasePath = operationServerMap['WorkspaceManagementApi.leaveWorkspace']?.[localVarOperationServerIndex]?.url;
|
|
5741
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5742
|
+
},
|
|
5702
5743
|
/**
|
|
5703
5744
|
*
|
|
5704
5745
|
* @summary List all members of a workspace
|
|
@@ -5815,6 +5856,16 @@ export const WorkspaceManagementApiFactory = function (configuration, basePath,
|
|
|
5815
5856
|
inviteMember(requestParameters, options) {
|
|
5816
5857
|
return localVarFp.inviteMember(requestParameters.workspaceId, requestParameters.inviteMemberRequest, options).then((request) => request(axios, basePath));
|
|
5817
5858
|
},
|
|
5859
|
+
/**
|
|
5860
|
+
*
|
|
5861
|
+
* @summary Leave a workspace (remove yourself)
|
|
5862
|
+
* @param {WorkspaceManagementApiLeaveWorkspaceRequest} requestParameters Request parameters.
|
|
5863
|
+
* @param {*} [options] Override http request option.
|
|
5864
|
+
* @throws {RequiredError}
|
|
5865
|
+
*/
|
|
5866
|
+
leaveWorkspace(requestParameters, options) {
|
|
5867
|
+
return localVarFp.leaveWorkspace(requestParameters.workspaceId, options).then((request) => request(axios, basePath));
|
|
5868
|
+
},
|
|
5818
5869
|
/**
|
|
5819
5870
|
*
|
|
5820
5871
|
* @summary List all members of a workspace
|
|
@@ -5917,6 +5968,17 @@ export class WorkspaceManagementApi extends BaseAPI {
|
|
|
5917
5968
|
inviteMember(requestParameters, options) {
|
|
5918
5969
|
return WorkspaceManagementApiFp(this.configuration).inviteMember(requestParameters.workspaceId, requestParameters.inviteMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5919
5970
|
}
|
|
5971
|
+
/**
|
|
5972
|
+
*
|
|
5973
|
+
* @summary Leave a workspace (remove yourself)
|
|
5974
|
+
* @param {WorkspaceManagementApiLeaveWorkspaceRequest} requestParameters Request parameters.
|
|
5975
|
+
* @param {*} [options] Override http request option.
|
|
5976
|
+
* @throws {RequiredError}
|
|
5977
|
+
* @memberof WorkspaceManagementApi
|
|
5978
|
+
*/
|
|
5979
|
+
leaveWorkspace(requestParameters, options) {
|
|
5980
|
+
return WorkspaceManagementApiFp(this.configuration).leaveWorkspace(requestParameters.workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
5981
|
+
}
|
|
5920
5982
|
/**
|
|
5921
5983
|
*
|
|
5922
5984
|
* @summary List all members of a workspace
|
package/package.json
CHANGED