system-initiative-api-client 1.11.0 → 1.13.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 +445 -2
- package/dist/cjs/api.js +169 -7
- package/dist/esm/api.d.ts +445 -2
- package/dist/esm/api.js +163 -5
- package/package.json +2 -2
package/dist/cjs/api.js
CHANGED
|
@@ -16,8 +16,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
20
|
-
exports.WorkspaceManagementApi = void 0;
|
|
19
|
+
exports.WhoamiApiFactory = exports.WhoamiApiFp = exports.WhoamiApiAxiosParamCreator = exports.SecretsApi = exports.SecretsApiFactory = exports.SecretsApiFp = exports.SecretsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.SchemasApi = exports.SchemasApiFactory = exports.SchemasApiFp = exports.SchemasApiAxiosParamCreator = exports.RootApi = exports.RootApiFactory = exports.RootApiFp = exports.RootApiAxiosParamCreator = exports.PolicyReportsApi = exports.PolicyReportsApiFactory = exports.PolicyReportsApiFp = exports.PolicyReportsApiAxiosParamCreator = exports.ManagementFuncsApi = exports.ManagementFuncsApiFactory = exports.ManagementFuncsApiFp = exports.ManagementFuncsApiAxiosParamCreator = exports.FuncsApi = exports.FuncsApiFactory = exports.FuncsApiFp = exports.FuncsApiAxiosParamCreator = exports.DebugFuncsApi = exports.DebugFuncsApiFactory = exports.DebugFuncsApiFp = exports.DebugFuncsApiAxiosParamCreator = exports.ComponentsApi = exports.ComponentsApiFactory = exports.ComponentsApiFp = exports.ComponentsApiAxiosParamCreator = exports.ChangeSetsApi = exports.ChangeSetsApiFactory = exports.ChangeSetsApiFp = exports.ChangeSetsApiAxiosParamCreator = exports.ActionsApi = exports.ActionsApiFactory = exports.ActionsApiFp = exports.ActionsApiAxiosParamCreator = exports.SchemaVariantFuncKindOneOf2KindEnum = exports.SchemaVariantFuncKindOneOf1KindEnum = exports.SchemaVariantFuncKindOneOfKindEnum = void 0;
|
|
20
|
+
exports.WorkspaceManagementApi = exports.WorkspaceManagementApiFactory = exports.WorkspaceManagementApiFp = exports.WorkspaceManagementApiAxiosParamCreator = exports.WhoamiApi = void 0;
|
|
21
21
|
const axios_1 = __importDefault(require("axios"));
|
|
22
22
|
// Some imports not used depending on template conditions
|
|
23
23
|
// @ts-ignore
|
|
@@ -1347,10 +1347,20 @@ const ComponentsApiAxiosParamCreator = function (configuration) {
|
|
|
1347
1347
|
* @param {string} [limit] Maximum number of results to return (default: 50, max: 300)
|
|
1348
1348
|
* @param {string} [cursor] Cursor for pagination (ComponentId of the last item from previous page)
|
|
1349
1349
|
* @param {boolean} [includeCodegen] Allow returning the codegen for the cloudformation template for the component (if it exists)
|
|
1350
|
+
* @param {boolean} [includeAll] Include all graph summary data (equivalent to enabling all include options)
|
|
1351
|
+
* @param {boolean} [includeFunctions] Include all function types (action, management, qualification)
|
|
1352
|
+
* @param {boolean} [includeSubscriptions] Include subscription relationships
|
|
1353
|
+
* @param {boolean} [includeManages] Include management relationships
|
|
1354
|
+
* @param {boolean} [includeActionFunctions] Include action function relationships
|
|
1355
|
+
* @param {boolean} [includeManagementFunctions] Include management function relationships
|
|
1356
|
+
* @param {boolean} [includeQualificationFunctions] Include qualification function relationships
|
|
1357
|
+
* @param {boolean} [includeResourceInfo] Include resource information (resource ID and status)
|
|
1358
|
+
* @param {boolean} [includeDiffStatus] Include component diff status vs HEAD (Added/Modified/None)
|
|
1359
|
+
* @param {boolean} [includeExecutionHistory] Include last 10 execution history entries for each function
|
|
1350
1360
|
* @param {*} [options] Override http request option.
|
|
1351
1361
|
* @throws {RequiredError}
|
|
1352
1362
|
*/
|
|
1353
|
-
listComponents: async (workspaceId, changeSetId, limit, cursor, includeCodegen, options = {}) => {
|
|
1363
|
+
listComponents: async (workspaceId, changeSetId, limit, cursor, includeCodegen, includeAll, includeFunctions, includeSubscriptions, includeManages, includeActionFunctions, includeManagementFunctions, includeQualificationFunctions, includeResourceInfo, includeDiffStatus, includeExecutionHistory, options = {}) => {
|
|
1354
1364
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
1355
1365
|
(0, common_1.assertParamExists)('listComponents', 'workspaceId', workspaceId);
|
|
1356
1366
|
// verify required parameter 'changeSetId' is not null or undefined
|
|
@@ -1376,6 +1386,36 @@ const ComponentsApiAxiosParamCreator = function (configuration) {
|
|
|
1376
1386
|
if (includeCodegen !== undefined) {
|
|
1377
1387
|
localVarQueryParameter['includeCodegen'] = includeCodegen;
|
|
1378
1388
|
}
|
|
1389
|
+
if (includeAll !== undefined) {
|
|
1390
|
+
localVarQueryParameter['includeAll'] = includeAll;
|
|
1391
|
+
}
|
|
1392
|
+
if (includeFunctions !== undefined) {
|
|
1393
|
+
localVarQueryParameter['includeFunctions'] = includeFunctions;
|
|
1394
|
+
}
|
|
1395
|
+
if (includeSubscriptions !== undefined) {
|
|
1396
|
+
localVarQueryParameter['includeSubscriptions'] = includeSubscriptions;
|
|
1397
|
+
}
|
|
1398
|
+
if (includeManages !== undefined) {
|
|
1399
|
+
localVarQueryParameter['includeManages'] = includeManages;
|
|
1400
|
+
}
|
|
1401
|
+
if (includeActionFunctions !== undefined) {
|
|
1402
|
+
localVarQueryParameter['includeActionFunctions'] = includeActionFunctions;
|
|
1403
|
+
}
|
|
1404
|
+
if (includeManagementFunctions !== undefined) {
|
|
1405
|
+
localVarQueryParameter['includeManagementFunctions'] = includeManagementFunctions;
|
|
1406
|
+
}
|
|
1407
|
+
if (includeQualificationFunctions !== undefined) {
|
|
1408
|
+
localVarQueryParameter['includeQualificationFunctions'] = includeQualificationFunctions;
|
|
1409
|
+
}
|
|
1410
|
+
if (includeResourceInfo !== undefined) {
|
|
1411
|
+
localVarQueryParameter['includeResourceInfo'] = includeResourceInfo;
|
|
1412
|
+
}
|
|
1413
|
+
if (includeDiffStatus !== undefined) {
|
|
1414
|
+
localVarQueryParameter['includeDiffStatus'] = includeDiffStatus;
|
|
1415
|
+
}
|
|
1416
|
+
if (includeExecutionHistory !== undefined) {
|
|
1417
|
+
localVarQueryParameter['includeExecutionHistory'] = includeExecutionHistory;
|
|
1418
|
+
}
|
|
1379
1419
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1380
1420
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1381
1421
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1751,11 +1791,21 @@ const ComponentsApiFp = function (configuration) {
|
|
|
1751
1791
|
* @param {string} [limit] Maximum number of results to return (default: 50, max: 300)
|
|
1752
1792
|
* @param {string} [cursor] Cursor for pagination (ComponentId of the last item from previous page)
|
|
1753
1793
|
* @param {boolean} [includeCodegen] Allow returning the codegen for the cloudformation template for the component (if it exists)
|
|
1794
|
+
* @param {boolean} [includeAll] Include all graph summary data (equivalent to enabling all include options)
|
|
1795
|
+
* @param {boolean} [includeFunctions] Include all function types (action, management, qualification)
|
|
1796
|
+
* @param {boolean} [includeSubscriptions] Include subscription relationships
|
|
1797
|
+
* @param {boolean} [includeManages] Include management relationships
|
|
1798
|
+
* @param {boolean} [includeActionFunctions] Include action function relationships
|
|
1799
|
+
* @param {boolean} [includeManagementFunctions] Include management function relationships
|
|
1800
|
+
* @param {boolean} [includeQualificationFunctions] Include qualification function relationships
|
|
1801
|
+
* @param {boolean} [includeResourceInfo] Include resource information (resource ID and status)
|
|
1802
|
+
* @param {boolean} [includeDiffStatus] Include component diff status vs HEAD (Added/Modified/None)
|
|
1803
|
+
* @param {boolean} [includeExecutionHistory] Include last 10 execution history entries for each function
|
|
1754
1804
|
* @param {*} [options] Override http request option.
|
|
1755
1805
|
* @throws {RequiredError}
|
|
1756
1806
|
*/
|
|
1757
|
-
async listComponents(workspaceId, changeSetId, limit, cursor, includeCodegen, options) {
|
|
1758
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComponents(workspaceId, changeSetId, limit, cursor, includeCodegen, options);
|
|
1807
|
+
async listComponents(workspaceId, changeSetId, limit, cursor, includeCodegen, includeAll, includeFunctions, includeSubscriptions, includeManages, includeActionFunctions, includeManagementFunctions, includeQualificationFunctions, includeResourceInfo, includeDiffStatus, includeExecutionHistory, options) {
|
|
1808
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComponents(workspaceId, changeSetId, limit, cursor, includeCodegen, includeAll, includeFunctions, includeSubscriptions, includeManages, includeActionFunctions, includeManagementFunctions, includeQualificationFunctions, includeResourceInfo, includeDiffStatus, includeExecutionHistory, options);
|
|
1759
1809
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1760
1810
|
const localVarOperationServerBasePath = base_1.operationServerMap['ComponentsApi.listComponents']?.[localVarOperationServerIndex]?.url;
|
|
1761
1811
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1955,7 +2005,7 @@ const ComponentsApiFactory = function (configuration, basePath, axios) {
|
|
|
1955
2005
|
* @throws {RequiredError}
|
|
1956
2006
|
*/
|
|
1957
2007
|
listComponents(requestParameters, options) {
|
|
1958
|
-
return localVarFp.listComponents(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.limit, requestParameters.cursor, requestParameters.includeCodegen, options).then((request) => request(axios, basePath));
|
|
2008
|
+
return localVarFp.listComponents(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.limit, requestParameters.cursor, requestParameters.includeCodegen, requestParameters.includeAll, requestParameters.includeFunctions, requestParameters.includeSubscriptions, requestParameters.includeManages, requestParameters.includeActionFunctions, requestParameters.includeManagementFunctions, requestParameters.includeQualificationFunctions, requestParameters.includeResourceInfo, requestParameters.includeDiffStatus, requestParameters.includeExecutionHistory, options).then((request) => request(axios, basePath));
|
|
1959
2009
|
},
|
|
1960
2010
|
/**
|
|
1961
2011
|
*
|
|
@@ -2136,7 +2186,7 @@ class ComponentsApi extends base_1.BaseAPI {
|
|
|
2136
2186
|
* @memberof ComponentsApi
|
|
2137
2187
|
*/
|
|
2138
2188
|
listComponents(requestParameters, options) {
|
|
2139
|
-
return (0, exports.ComponentsApiFp)(this.configuration).listComponents(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.limit, requestParameters.cursor, requestParameters.includeCodegen, options).then((request) => request(this.axios, this.basePath));
|
|
2189
|
+
return (0, exports.ComponentsApiFp)(this.configuration).listComponents(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.limit, requestParameters.cursor, requestParameters.includeCodegen, requestParameters.includeAll, requestParameters.includeFunctions, requestParameters.includeSubscriptions, requestParameters.includeManages, requestParameters.includeActionFunctions, requestParameters.includeManagementFunctions, requestParameters.includeQualificationFunctions, requestParameters.includeResourceInfo, requestParameters.includeDiffStatus, requestParameters.includeExecutionHistory, options).then((request) => request(this.axios, this.basePath));
|
|
2140
2190
|
}
|
|
2141
2191
|
/**
|
|
2142
2192
|
*
|
|
@@ -2907,6 +2957,118 @@ class ManagementFuncsApi extends base_1.BaseAPI {
|
|
|
2907
2957
|
}
|
|
2908
2958
|
}
|
|
2909
2959
|
exports.ManagementFuncsApi = ManagementFuncsApi;
|
|
2960
|
+
/**
|
|
2961
|
+
* PolicyReportsApi - axios parameter creator
|
|
2962
|
+
* @export
|
|
2963
|
+
*/
|
|
2964
|
+
const PolicyReportsApiAxiosParamCreator = function (configuration) {
|
|
2965
|
+
return {
|
|
2966
|
+
/**
|
|
2967
|
+
*
|
|
2968
|
+
* @summary Upload a policy report
|
|
2969
|
+
* @param {string} workspaceId Workspace identifier
|
|
2970
|
+
* @param {string} changeSetId Change Set identifier
|
|
2971
|
+
* @param {UploadPolicyReportV1Request} uploadPolicyReportV1Request
|
|
2972
|
+
* @param {*} [options] Override http request option.
|
|
2973
|
+
* @throws {RequiredError}
|
|
2974
|
+
*/
|
|
2975
|
+
uploadPolicyReport: async (workspaceId, changeSetId, uploadPolicyReportV1Request, options = {}) => {
|
|
2976
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
2977
|
+
(0, common_1.assertParamExists)('uploadPolicyReport', 'workspaceId', workspaceId);
|
|
2978
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
2979
|
+
(0, common_1.assertParamExists)('uploadPolicyReport', 'changeSetId', changeSetId);
|
|
2980
|
+
// verify required parameter 'uploadPolicyReportV1Request' is not null or undefined
|
|
2981
|
+
(0, common_1.assertParamExists)('uploadPolicyReport', 'uploadPolicyReportV1Request', uploadPolicyReportV1Request);
|
|
2982
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/policy-reports`
|
|
2983
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
2984
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
|
|
2985
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2986
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2987
|
+
let baseOptions;
|
|
2988
|
+
if (configuration) {
|
|
2989
|
+
baseOptions = configuration.baseOptions;
|
|
2990
|
+
}
|
|
2991
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2992
|
+
const localVarHeaderParameter = {};
|
|
2993
|
+
const localVarQueryParameter = {};
|
|
2994
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2995
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2996
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2997
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2998
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(uploadPolicyReportV1Request, localVarRequestOptions, configuration);
|
|
2999
|
+
return {
|
|
3000
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3001
|
+
options: localVarRequestOptions,
|
|
3002
|
+
};
|
|
3003
|
+
},
|
|
3004
|
+
};
|
|
3005
|
+
};
|
|
3006
|
+
exports.PolicyReportsApiAxiosParamCreator = PolicyReportsApiAxiosParamCreator;
|
|
3007
|
+
/**
|
|
3008
|
+
* PolicyReportsApi - functional programming interface
|
|
3009
|
+
* @export
|
|
3010
|
+
*/
|
|
3011
|
+
const PolicyReportsApiFp = function (configuration) {
|
|
3012
|
+
const localVarAxiosParamCreator = (0, exports.PolicyReportsApiAxiosParamCreator)(configuration);
|
|
3013
|
+
return {
|
|
3014
|
+
/**
|
|
3015
|
+
*
|
|
3016
|
+
* @summary Upload a policy report
|
|
3017
|
+
* @param {string} workspaceId Workspace identifier
|
|
3018
|
+
* @param {string} changeSetId Change Set identifier
|
|
3019
|
+
* @param {UploadPolicyReportV1Request} uploadPolicyReportV1Request
|
|
3020
|
+
* @param {*} [options] Override http request option.
|
|
3021
|
+
* @throws {RequiredError}
|
|
3022
|
+
*/
|
|
3023
|
+
async uploadPolicyReport(workspaceId, changeSetId, uploadPolicyReportV1Request, options) {
|
|
3024
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadPolicyReport(workspaceId, changeSetId, uploadPolicyReportV1Request, options);
|
|
3025
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3026
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['PolicyReportsApi.uploadPolicyReport']?.[localVarOperationServerIndex]?.url;
|
|
3027
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3028
|
+
},
|
|
3029
|
+
};
|
|
3030
|
+
};
|
|
3031
|
+
exports.PolicyReportsApiFp = PolicyReportsApiFp;
|
|
3032
|
+
/**
|
|
3033
|
+
* PolicyReportsApi - factory interface
|
|
3034
|
+
* @export
|
|
3035
|
+
*/
|
|
3036
|
+
const PolicyReportsApiFactory = function (configuration, basePath, axios) {
|
|
3037
|
+
const localVarFp = (0, exports.PolicyReportsApiFp)(configuration);
|
|
3038
|
+
return {
|
|
3039
|
+
/**
|
|
3040
|
+
*
|
|
3041
|
+
* @summary Upload a policy report
|
|
3042
|
+
* @param {PolicyReportsApiUploadPolicyReportRequest} requestParameters Request parameters.
|
|
3043
|
+
* @param {*} [options] Override http request option.
|
|
3044
|
+
* @throws {RequiredError}
|
|
3045
|
+
*/
|
|
3046
|
+
uploadPolicyReport(requestParameters, options) {
|
|
3047
|
+
return localVarFp.uploadPolicyReport(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.uploadPolicyReportV1Request, options).then((request) => request(axios, basePath));
|
|
3048
|
+
},
|
|
3049
|
+
};
|
|
3050
|
+
};
|
|
3051
|
+
exports.PolicyReportsApiFactory = PolicyReportsApiFactory;
|
|
3052
|
+
/**
|
|
3053
|
+
* PolicyReportsApi - object-oriented interface
|
|
3054
|
+
* @export
|
|
3055
|
+
* @class PolicyReportsApi
|
|
3056
|
+
* @extends {BaseAPI}
|
|
3057
|
+
*/
|
|
3058
|
+
class PolicyReportsApi extends base_1.BaseAPI {
|
|
3059
|
+
/**
|
|
3060
|
+
*
|
|
3061
|
+
* @summary Upload a policy report
|
|
3062
|
+
* @param {PolicyReportsApiUploadPolicyReportRequest} requestParameters Request parameters.
|
|
3063
|
+
* @param {*} [options] Override http request option.
|
|
3064
|
+
* @throws {RequiredError}
|
|
3065
|
+
* @memberof PolicyReportsApi
|
|
3066
|
+
*/
|
|
3067
|
+
uploadPolicyReport(requestParameters, options) {
|
|
3068
|
+
return (0, exports.PolicyReportsApiFp)(this.configuration).uploadPolicyReport(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.uploadPolicyReportV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
3069
|
+
}
|
|
3070
|
+
}
|
|
3071
|
+
exports.PolicyReportsApi = PolicyReportsApi;
|
|
2910
3072
|
/**
|
|
2911
3073
|
* RootApi - axios parameter creator
|
|
2912
3074
|
* @export
|