system-initiative-api-client 1.7.0 → 1.9.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.js CHANGED
@@ -16,7 +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.WorkspaceManagementApi = exports.WorkspaceManagementApiFactory = exports.WorkspaceManagementApiFp = exports.WorkspaceManagementApiAxiosParamCreator = exports.WhoamiApi = exports.WhoamiApiFactory = exports.WhoamiApiFp = exports.WhoamiApiAxiosParamCreator = exports.SecretsApi = exports.SecretsApiFactory = exports.SecretsApiFp = exports.SecretsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.SchemasApi = exports.SchemasApiFactory = exports.SchemasApiFp = exports.SchemasApiAxiosParamCreator = exports.RootApi = exports.RootApiFactory = exports.RootApiFp = exports.RootApiAxiosParamCreator = exports.ManagementFuncsApi = exports.ManagementFuncsApiFactory = exports.ManagementFuncsApiFp = exports.ManagementFuncsApiAxiosParamCreator = exports.FuncsApi = exports.FuncsApiFactory = exports.FuncsApiFp = exports.FuncsApiAxiosParamCreator = exports.ComponentsApi = exports.ComponentsApiFactory = exports.ComponentsApiFp = exports.ComponentsApiAxiosParamCreator = exports.ChangeSetsApi = exports.ChangeSetsApiFactory = exports.ChangeSetsApiFp = exports.ChangeSetsApiAxiosParamCreator = exports.ActionsApi = exports.ActionsApiFactory = exports.ActionsApiFp = exports.ActionsApiAxiosParamCreator = exports.SchemaVariantFuncKindOneOf2KindEnum = exports.SchemaVariantFuncKindOneOf1KindEnum = exports.SchemaVariantFuncKindOneOfKindEnum = void 0;
19
+ exports.WorkspaceManagementApiFactory = exports.WorkspaceManagementApiFp = exports.WorkspaceManagementApiAxiosParamCreator = exports.WhoamiApi = exports.WhoamiApiFactory = exports.WhoamiApiFp = exports.WhoamiApiAxiosParamCreator = exports.SecretsApi = exports.SecretsApiFactory = exports.SecretsApiFp = exports.SecretsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.SchemasApi = exports.SchemasApiFactory = exports.SchemasApiFp = exports.SchemasApiAxiosParamCreator = exports.RootApi = exports.RootApiFactory = exports.RootApiFp = exports.RootApiAxiosParamCreator = exports.ManagementFuncsApi = exports.ManagementFuncsApiFactory = exports.ManagementFuncsApiFp = exports.ManagementFuncsApiAxiosParamCreator = exports.FuncsApi = exports.FuncsApiFactory = exports.FuncsApiFp = exports.FuncsApiAxiosParamCreator = exports.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 = void 0;
20
21
  const axios_1 = __importDefault(require("axios"));
21
22
  // Some imports not used depending on template conditions
22
23
  // @ts-ignore
@@ -1339,6 +1340,43 @@ const ComponentsApiAxiosParamCreator = function (configuration) {
1339
1340
  options: localVarRequestOptions,
1340
1341
  };
1341
1342
  },
1343
+ /**
1344
+ *
1345
+ * @summary Get a component resource by component Id
1346
+ * @param {string} workspaceId Workspace identifier
1347
+ * @param {string} changeSetId Change Set identifier
1348
+ * @param {string} componentId Component identifier
1349
+ * @param {*} [options] Override http request option.
1350
+ * @throws {RequiredError}
1351
+ */
1352
+ getComponentResource: async (workspaceId, changeSetId, componentId, options = {}) => {
1353
+ // verify required parameter 'workspaceId' is not null or undefined
1354
+ (0, common_1.assertParamExists)('getComponentResource', 'workspaceId', workspaceId);
1355
+ // verify required parameter 'changeSetId' is not null or undefined
1356
+ (0, common_1.assertParamExists)('getComponentResource', 'changeSetId', changeSetId);
1357
+ // verify required parameter 'componentId' is not null or undefined
1358
+ (0, common_1.assertParamExists)('getComponentResource', 'componentId', componentId);
1359
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/{component_id}/resource`
1360
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1361
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
1362
+ .replace(`{${"component_id"}}`, encodeURIComponent(String(componentId)));
1363
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1364
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1365
+ let baseOptions;
1366
+ if (configuration) {
1367
+ baseOptions = configuration.baseOptions;
1368
+ }
1369
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1370
+ const localVarHeaderParameter = {};
1371
+ const localVarQueryParameter = {};
1372
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1373
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1374
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1375
+ return {
1376
+ url: (0, common_1.toPathString)(localVarUrlObj),
1377
+ options: localVarRequestOptions,
1378
+ };
1379
+ },
1342
1380
  /**
1343
1381
  *
1344
1382
  * @summary List all components
@@ -1743,6 +1781,21 @@ const ComponentsApiFp = function (configuration) {
1743
1781
  const localVarOperationServerBasePath = base_1.operationServerMap['ComponentsApi.getComponent']?.[localVarOperationServerIndex]?.url;
1744
1782
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1745
1783
  },
1784
+ /**
1785
+ *
1786
+ * @summary Get a component resource by component Id
1787
+ * @param {string} workspaceId Workspace identifier
1788
+ * @param {string} changeSetId Change Set identifier
1789
+ * @param {string} componentId Component identifier
1790
+ * @param {*} [options] Override http request option.
1791
+ * @throws {RequiredError}
1792
+ */
1793
+ async getComponentResource(workspaceId, changeSetId, componentId, options) {
1794
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getComponentResource(workspaceId, changeSetId, componentId, options);
1795
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1796
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComponentsApi.getComponentResource']?.[localVarOperationServerIndex]?.url;
1797
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1798
+ },
1746
1799
  /**
1747
1800
  *
1748
1801
  * @summary List all components
@@ -1947,6 +2000,16 @@ const ComponentsApiFactory = function (configuration, basePath, axios) {
1947
2000
  getComponent(requestParameters, options) {
1948
2001
  return localVarFp.getComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(axios, basePath));
1949
2002
  },
2003
+ /**
2004
+ *
2005
+ * @summary Get a component resource by component Id
2006
+ * @param {ComponentsApiGetComponentResourceRequest} requestParameters Request parameters.
2007
+ * @param {*} [options] Override http request option.
2008
+ * @throws {RequiredError}
2009
+ */
2010
+ getComponentResource(requestParameters, options) {
2011
+ return localVarFp.getComponentResource(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(axios, basePath));
2012
+ },
1950
2013
  /**
1951
2014
  *
1952
2015
  * @summary List all components
@@ -2127,6 +2190,17 @@ class ComponentsApi extends base_1.BaseAPI {
2127
2190
  getComponent(requestParameters, options) {
2128
2191
  return (0, exports.ComponentsApiFp)(this.configuration).getComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(this.axios, this.basePath));
2129
2192
  }
2193
+ /**
2194
+ *
2195
+ * @summary Get a component resource by component Id
2196
+ * @param {ComponentsApiGetComponentResourceRequest} requestParameters Request parameters.
2197
+ * @param {*} [options] Override http request option.
2198
+ * @throws {RequiredError}
2199
+ * @memberof ComponentsApi
2200
+ */
2201
+ getComponentResource(requestParameters, options) {
2202
+ return (0, exports.ComponentsApiFp)(this.configuration).getComponentResource(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(this.axios, this.basePath));
2203
+ }
2130
2204
  /**
2131
2205
  *
2132
2206
  * @summary List all components
@@ -2195,6 +2269,191 @@ class ComponentsApi extends base_1.BaseAPI {
2195
2269
  }
2196
2270
  }
2197
2271
  exports.ComponentsApi = ComponentsApi;
2272
+ /**
2273
+ * DebugFuncsApi - axios parameter creator
2274
+ * @export
2275
+ */
2276
+ const DebugFuncsApiAxiosParamCreator = function (configuration) {
2277
+ return {
2278
+ /**
2279
+ *
2280
+ * @summary Execute a debug function in the context of a component
2281
+ * @param {string} workspaceId Workspace identifier
2282
+ * @param {string} changeSetId Change Set identifier
2283
+ * @param {ExecDebugFuncV1Request} execDebugFuncV1Request
2284
+ * @param {*} [options] Override http request option.
2285
+ * @throws {RequiredError}
2286
+ */
2287
+ execDebugFunc: async (workspaceId, changeSetId, execDebugFuncV1Request, options = {}) => {
2288
+ // verify required parameter 'workspaceId' is not null or undefined
2289
+ (0, common_1.assertParamExists)('execDebugFunc', 'workspaceId', workspaceId);
2290
+ // verify required parameter 'changeSetId' is not null or undefined
2291
+ (0, common_1.assertParamExists)('execDebugFunc', 'changeSetId', changeSetId);
2292
+ // verify required parameter 'execDebugFuncV1Request' is not null or undefined
2293
+ (0, common_1.assertParamExists)('execDebugFunc', 'execDebugFuncV1Request', execDebugFuncV1Request);
2294
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/debug-funcs`
2295
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
2296
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
2297
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2298
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2299
+ let baseOptions;
2300
+ if (configuration) {
2301
+ baseOptions = configuration.baseOptions;
2302
+ }
2303
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2304
+ const localVarHeaderParameter = {};
2305
+ const localVarQueryParameter = {};
2306
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2307
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2308
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2309
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2310
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(execDebugFuncV1Request, localVarRequestOptions, configuration);
2311
+ return {
2312
+ url: (0, common_1.toPathString)(localVarUrlObj),
2313
+ options: localVarRequestOptions,
2314
+ };
2315
+ },
2316
+ /**
2317
+ *
2318
+ * @summary Get debug funcs job state details
2319
+ * @param {string} workspaceId Workspace identifier
2320
+ * @param {string} changeSetId Change Set identifier
2321
+ * @param {string} debugFuncJobStateId Debug Func Job identifier
2322
+ * @param {*} [options] Override http request option.
2323
+ * @throws {RequiredError}
2324
+ */
2325
+ getDebugFuncState: async (workspaceId, changeSetId, debugFuncJobStateId, options = {}) => {
2326
+ // verify required parameter 'workspaceId' is not null or undefined
2327
+ (0, common_1.assertParamExists)('getDebugFuncState', 'workspaceId', workspaceId);
2328
+ // verify required parameter 'changeSetId' is not null or undefined
2329
+ (0, common_1.assertParamExists)('getDebugFuncState', 'changeSetId', changeSetId);
2330
+ // verify required parameter 'debugFuncJobStateId' is not null or undefined
2331
+ (0, common_1.assertParamExists)('getDebugFuncState', 'debugFuncJobStateId', debugFuncJobStateId);
2332
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/debug-funcs/{debug_func_job_state_id}`
2333
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
2334
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
2335
+ .replace(`{${"debug_func_job_state_id"}}`, encodeURIComponent(String(debugFuncJobStateId)));
2336
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2337
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2338
+ let baseOptions;
2339
+ if (configuration) {
2340
+ baseOptions = configuration.baseOptions;
2341
+ }
2342
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2343
+ const localVarHeaderParameter = {};
2344
+ const localVarQueryParameter = {};
2345
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2346
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2347
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2348
+ return {
2349
+ url: (0, common_1.toPathString)(localVarUrlObj),
2350
+ options: localVarRequestOptions,
2351
+ };
2352
+ },
2353
+ };
2354
+ };
2355
+ exports.DebugFuncsApiAxiosParamCreator = DebugFuncsApiAxiosParamCreator;
2356
+ /**
2357
+ * DebugFuncsApi - functional programming interface
2358
+ * @export
2359
+ */
2360
+ const DebugFuncsApiFp = function (configuration) {
2361
+ const localVarAxiosParamCreator = (0, exports.DebugFuncsApiAxiosParamCreator)(configuration);
2362
+ return {
2363
+ /**
2364
+ *
2365
+ * @summary Execute a debug function in the context of a component
2366
+ * @param {string} workspaceId Workspace identifier
2367
+ * @param {string} changeSetId Change Set identifier
2368
+ * @param {ExecDebugFuncV1Request} execDebugFuncV1Request
2369
+ * @param {*} [options] Override http request option.
2370
+ * @throws {RequiredError}
2371
+ */
2372
+ async execDebugFunc(workspaceId, changeSetId, execDebugFuncV1Request, options) {
2373
+ const localVarAxiosArgs = await localVarAxiosParamCreator.execDebugFunc(workspaceId, changeSetId, execDebugFuncV1Request, options);
2374
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2375
+ const localVarOperationServerBasePath = base_1.operationServerMap['DebugFuncsApi.execDebugFunc']?.[localVarOperationServerIndex]?.url;
2376
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2377
+ },
2378
+ /**
2379
+ *
2380
+ * @summary Get debug funcs job state details
2381
+ * @param {string} workspaceId Workspace identifier
2382
+ * @param {string} changeSetId Change Set identifier
2383
+ * @param {string} debugFuncJobStateId Debug Func Job identifier
2384
+ * @param {*} [options] Override http request option.
2385
+ * @throws {RequiredError}
2386
+ */
2387
+ async getDebugFuncState(workspaceId, changeSetId, debugFuncJobStateId, options) {
2388
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDebugFuncState(workspaceId, changeSetId, debugFuncJobStateId, options);
2389
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2390
+ const localVarOperationServerBasePath = base_1.operationServerMap['DebugFuncsApi.getDebugFuncState']?.[localVarOperationServerIndex]?.url;
2391
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2392
+ },
2393
+ };
2394
+ };
2395
+ exports.DebugFuncsApiFp = DebugFuncsApiFp;
2396
+ /**
2397
+ * DebugFuncsApi - factory interface
2398
+ * @export
2399
+ */
2400
+ const DebugFuncsApiFactory = function (configuration, basePath, axios) {
2401
+ const localVarFp = (0, exports.DebugFuncsApiFp)(configuration);
2402
+ return {
2403
+ /**
2404
+ *
2405
+ * @summary Execute a debug function in the context of a component
2406
+ * @param {DebugFuncsApiExecDebugFuncRequest} requestParameters Request parameters.
2407
+ * @param {*} [options] Override http request option.
2408
+ * @throws {RequiredError}
2409
+ */
2410
+ execDebugFunc(requestParameters, options) {
2411
+ return localVarFp.execDebugFunc(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.execDebugFuncV1Request, options).then((request) => request(axios, basePath));
2412
+ },
2413
+ /**
2414
+ *
2415
+ * @summary Get debug funcs job state details
2416
+ * @param {DebugFuncsApiGetDebugFuncStateRequest} requestParameters Request parameters.
2417
+ * @param {*} [options] Override http request option.
2418
+ * @throws {RequiredError}
2419
+ */
2420
+ getDebugFuncState(requestParameters, options) {
2421
+ return localVarFp.getDebugFuncState(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.debugFuncJobStateId, options).then((request) => request(axios, basePath));
2422
+ },
2423
+ };
2424
+ };
2425
+ exports.DebugFuncsApiFactory = DebugFuncsApiFactory;
2426
+ /**
2427
+ * DebugFuncsApi - object-oriented interface
2428
+ * @export
2429
+ * @class DebugFuncsApi
2430
+ * @extends {BaseAPI}
2431
+ */
2432
+ class DebugFuncsApi extends base_1.BaseAPI {
2433
+ /**
2434
+ *
2435
+ * @summary Execute a debug function in the context of a component
2436
+ * @param {DebugFuncsApiExecDebugFuncRequest} requestParameters Request parameters.
2437
+ * @param {*} [options] Override http request option.
2438
+ * @throws {RequiredError}
2439
+ * @memberof DebugFuncsApi
2440
+ */
2441
+ execDebugFunc(requestParameters, options) {
2442
+ return (0, exports.DebugFuncsApiFp)(this.configuration).execDebugFunc(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.execDebugFuncV1Request, options).then((request) => request(this.axios, this.basePath));
2443
+ }
2444
+ /**
2445
+ *
2446
+ * @summary Get debug funcs job state details
2447
+ * @param {DebugFuncsApiGetDebugFuncStateRequest} requestParameters Request parameters.
2448
+ * @param {*} [options] Override http request option.
2449
+ * @throws {RequiredError}
2450
+ * @memberof DebugFuncsApi
2451
+ */
2452
+ getDebugFuncState(requestParameters, options) {
2453
+ return (0, exports.DebugFuncsApiFp)(this.configuration).getDebugFuncState(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.debugFuncJobStateId, options).then((request) => request(this.axios, this.basePath));
2454
+ }
2455
+ }
2456
+ exports.DebugFuncsApi = DebugFuncsApi;
2198
2457
  /**
2199
2458
  * FuncsApi - axios parameter creator
2200
2459
  * @export
@@ -3473,7 +3732,7 @@ const SchemasApiAxiosParamCreator = function (configuration) {
3473
3732
  },
3474
3733
  /**
3475
3734
  *
3476
- * @summary Complex search for shemas
3735
+ * @summary Complex search for schemas
3477
3736
  * @param {string} workspaceId Workspace identifier
3478
3737
  * @param {string} changeSetId Change Set identifier
3479
3738
  * @param {SearchSchemasV1Request} searchSchemasV1Request
@@ -3882,7 +4141,7 @@ const SchemasApiFp = function (configuration) {
3882
4141
  },
3883
4142
  /**
3884
4143
  *
3885
- * @summary Complex search for shemas
4144
+ * @summary Complex search for schemas
3886
4145
  * @param {string} workspaceId Workspace identifier
3887
4146
  * @param {string} changeSetId Change Set identifier
3888
4147
  * @param {SearchSchemasV1Request} searchSchemasV1Request
@@ -4109,7 +4368,7 @@ const SchemasApiFactory = function (configuration, basePath, axios) {
4109
4368
  },
4110
4369
  /**
4111
4370
  *
4112
- * @summary Complex search for shemas
4371
+ * @summary Complex search for schemas
4113
4372
  * @param {SchemasApiSearchSchemasRequest} requestParameters Request parameters.
4114
4373
  * @param {*} [options] Override http request option.
4115
4374
  * @throws {RequiredError}
@@ -4336,7 +4595,7 @@ class SchemasApi extends base_1.BaseAPI {
4336
4595
  }
4337
4596
  /**
4338
4597
  *
4339
- * @summary Complex search for shemas
4598
+ * @summary Complex search for schemas
4340
4599
  * @param {SchemasApiSearchSchemasRequest} requestParameters Request parameters.
4341
4600
  * @param {*} [options] Override http request option.
4342
4601
  * @throws {RequiredError}