system-initiative-api-client 1.0.7 → 1.0.8

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 CHANGED
@@ -1959,6 +1959,19 @@ export interface RequestApprovalChangeSetV1Response {
1959
1959
  */
1960
1960
  'success': boolean;
1961
1961
  }
1962
+ /**
1963
+ *
1964
+ * @export
1965
+ * @interface RestoreComponentV1Response
1966
+ */
1967
+ export interface RestoreComponentV1Response {
1968
+ /**
1969
+ *
1970
+ * @type {boolean}
1971
+ * @memberof RestoreComponentV1Response
1972
+ */
1973
+ 'status': boolean;
1974
+ }
1962
1975
  /**
1963
1976
  *
1964
1977
  * @export
@@ -3388,6 +3401,16 @@ export declare const ComponentsApiAxiosParamCreator: (configuration?: Configurat
3388
3401
  * @throws {RequiredError}
3389
3402
  */
3390
3403
  manageComponent: (workspaceId: string, changeSetId: string, componentId: string, manageComponentV1Request: ManageComponentV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3404
+ /**
3405
+ *
3406
+ * @summary Restore a component that is marked for deletion
3407
+ * @param {string} workspaceId Workspace identifier
3408
+ * @param {string} changeSetId Change Set identifier
3409
+ * @param {string} componentId Component identifier
3410
+ * @param {*} [options] Override http request option.
3411
+ * @throws {RequiredError}
3412
+ */
3413
+ restoreComponent: (workspaceId: string, changeSetId: string, componentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3391
3414
  /**
3392
3415
  *
3393
3416
  * @summary Complex search for components
@@ -3540,6 +3563,16 @@ export declare const ComponentsApiFp: (configuration?: Configuration) => {
3540
3563
  * @throws {RequiredError}
3541
3564
  */
3542
3565
  manageComponent(workspaceId: string, changeSetId: string, componentId: string, manageComponentV1Request: ManageComponentV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManageComponentV1Response>>;
3566
+ /**
3567
+ *
3568
+ * @summary Restore a component that is marked for deletion
3569
+ * @param {string} workspaceId Workspace identifier
3570
+ * @param {string} changeSetId Change Set identifier
3571
+ * @param {string} componentId Component identifier
3572
+ * @param {*} [options] Override http request option.
3573
+ * @throws {RequiredError}
3574
+ */
3575
+ restoreComponent(workspaceId: string, changeSetId: string, componentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RestoreComponentV1Response>>;
3543
3576
  /**
3544
3577
  *
3545
3578
  * @summary Complex search for components
@@ -3665,6 +3698,14 @@ export declare const ComponentsApiFactory: (configuration?: Configuration, baseP
3665
3698
  * @throws {RequiredError}
3666
3699
  */
3667
3700
  manageComponent(requestParameters: ComponentsApiManageComponentRequest, options?: RawAxiosRequestConfig): AxiosPromise<ManageComponentV1Response>;
3701
+ /**
3702
+ *
3703
+ * @summary Restore a component that is marked for deletion
3704
+ * @param {ComponentsApiRestoreComponentRequest} requestParameters Request parameters.
3705
+ * @param {*} [options] Override http request option.
3706
+ * @throws {RequiredError}
3707
+ */
3708
+ restoreComponent(requestParameters: ComponentsApiRestoreComponentRequest, options?: RawAxiosRequestConfig): AxiosPromise<RestoreComponentV1Response>;
3668
3709
  /**
3669
3710
  *
3670
3711
  * @summary Complex search for components
@@ -3795,6 +3836,15 @@ export interface ComponentsApiInterface {
3795
3836
  * @memberof ComponentsApiInterface
3796
3837
  */
3797
3838
  manageComponent(requestParameters: ComponentsApiManageComponentRequest, options?: RawAxiosRequestConfig): AxiosPromise<ManageComponentV1Response>;
3839
+ /**
3840
+ *
3841
+ * @summary Restore a component that is marked for deletion
3842
+ * @param {ComponentsApiRestoreComponentRequest} requestParameters Request parameters.
3843
+ * @param {*} [options] Override http request option.
3844
+ * @throws {RequiredError}
3845
+ * @memberof ComponentsApiInterface
3846
+ */
3847
+ restoreComponent(requestParameters: ComponentsApiRestoreComponentRequest, options?: RawAxiosRequestConfig): AxiosPromise<RestoreComponentV1Response>;
3798
3848
  /**
3799
3849
  *
3800
3850
  * @summary Complex search for components
@@ -4128,6 +4178,31 @@ export interface ComponentsApiManageComponentRequest {
4128
4178
  */
4129
4179
  readonly manageComponentV1Request: ManageComponentV1Request;
4130
4180
  }
4181
+ /**
4182
+ * Request parameters for restoreComponent operation in ComponentsApi.
4183
+ * @export
4184
+ * @interface ComponentsApiRestoreComponentRequest
4185
+ */
4186
+ export interface ComponentsApiRestoreComponentRequest {
4187
+ /**
4188
+ * Workspace identifier
4189
+ * @type {string}
4190
+ * @memberof ComponentsApiRestoreComponent
4191
+ */
4192
+ readonly workspaceId: string;
4193
+ /**
4194
+ * Change Set identifier
4195
+ * @type {string}
4196
+ * @memberof ComponentsApiRestoreComponent
4197
+ */
4198
+ readonly changeSetId: string;
4199
+ /**
4200
+ * Component identifier
4201
+ * @type {string}
4202
+ * @memberof ComponentsApiRestoreComponent
4203
+ */
4204
+ readonly componentId: string;
4205
+ }
4131
4206
  /**
4132
4207
  * Request parameters for searchComponents operation in ComponentsApi.
4133
4208
  * @export
@@ -4315,6 +4390,15 @@ export declare class ComponentsApi extends BaseAPI implements ComponentsApiInter
4315
4390
  * @memberof ComponentsApi
4316
4391
  */
4317
4392
  manageComponent(requestParameters: ComponentsApiManageComponentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ManageComponentV1Response, any>>;
4393
+ /**
4394
+ *
4395
+ * @summary Restore a component that is marked for deletion
4396
+ * @param {ComponentsApiRestoreComponentRequest} requestParameters Request parameters.
4397
+ * @param {*} [options] Override http request option.
4398
+ * @throws {RequiredError}
4399
+ * @memberof ComponentsApi
4400
+ */
4401
+ restoreComponent(requestParameters: ComponentsApiRestoreComponentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RestoreComponentV1Response, any>>;
4318
4402
  /**
4319
4403
  *
4320
4404
  * @summary Complex search for components
package/dist/cjs/api.js CHANGED
@@ -1370,6 +1370,43 @@ const ComponentsApiAxiosParamCreator = function (configuration) {
1370
1370
  options: localVarRequestOptions,
1371
1371
  };
1372
1372
  },
1373
+ /**
1374
+ *
1375
+ * @summary Restore a component that is marked for deletion
1376
+ * @param {string} workspaceId Workspace identifier
1377
+ * @param {string} changeSetId Change Set identifier
1378
+ * @param {string} componentId Component identifier
1379
+ * @param {*} [options] Override http request option.
1380
+ * @throws {RequiredError}
1381
+ */
1382
+ restoreComponent: async (workspaceId, changeSetId, componentId, options = {}) => {
1383
+ // verify required parameter 'workspaceId' is not null or undefined
1384
+ (0, common_1.assertParamExists)('restoreComponent', 'workspaceId', workspaceId);
1385
+ // verify required parameter 'changeSetId' is not null or undefined
1386
+ (0, common_1.assertParamExists)('restoreComponent', 'changeSetId', changeSetId);
1387
+ // verify required parameter 'componentId' is not null or undefined
1388
+ (0, common_1.assertParamExists)('restoreComponent', 'componentId', componentId);
1389
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/{component_id}/restore`
1390
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1391
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
1392
+ .replace(`{${"component_id"}}`, encodeURIComponent(String(componentId)));
1393
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1394
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1395
+ let baseOptions;
1396
+ if (configuration) {
1397
+ baseOptions = configuration.baseOptions;
1398
+ }
1399
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1400
+ const localVarHeaderParameter = {};
1401
+ const localVarQueryParameter = {};
1402
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1403
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1404
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1405
+ return {
1406
+ url: (0, common_1.toPathString)(localVarUrlObj),
1407
+ options: localVarRequestOptions,
1408
+ };
1409
+ },
1373
1410
  /**
1374
1411
  *
1375
1412
  * @summary Complex search for components
@@ -1667,6 +1704,21 @@ const ComponentsApiFp = function (configuration) {
1667
1704
  const localVarOperationServerBasePath = base_1.operationServerMap['ComponentsApi.manageComponent']?.[localVarOperationServerIndex]?.url;
1668
1705
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1669
1706
  },
1707
+ /**
1708
+ *
1709
+ * @summary Restore a component that is marked for deletion
1710
+ * @param {string} workspaceId Workspace identifier
1711
+ * @param {string} changeSetId Change Set identifier
1712
+ * @param {string} componentId Component identifier
1713
+ * @param {*} [options] Override http request option.
1714
+ * @throws {RequiredError}
1715
+ */
1716
+ async restoreComponent(workspaceId, changeSetId, componentId, options) {
1717
+ const localVarAxiosArgs = await localVarAxiosParamCreator.restoreComponent(workspaceId, changeSetId, componentId, options);
1718
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1719
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComponentsApi.restoreComponent']?.[localVarOperationServerIndex]?.url;
1720
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1721
+ },
1670
1722
  /**
1671
1723
  *
1672
1724
  * @summary Complex search for components
@@ -1833,6 +1885,16 @@ const ComponentsApiFactory = function (configuration, basePath, axios) {
1833
1885
  manageComponent(requestParameters, options) {
1834
1886
  return localVarFp.manageComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, requestParameters.manageComponentV1Request, options).then((request) => request(axios, basePath));
1835
1887
  },
1888
+ /**
1889
+ *
1890
+ * @summary Restore a component that is marked for deletion
1891
+ * @param {ComponentsApiRestoreComponentRequest} requestParameters Request parameters.
1892
+ * @param {*} [options] Override http request option.
1893
+ * @throws {RequiredError}
1894
+ */
1895
+ restoreComponent(requestParameters, options) {
1896
+ return localVarFp.restoreComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(axios, basePath));
1897
+ },
1836
1898
  /**
1837
1899
  *
1838
1900
  * @summary Complex search for components
@@ -1994,6 +2056,17 @@ class ComponentsApi extends base_1.BaseAPI {
1994
2056
  manageComponent(requestParameters, options) {
1995
2057
  return (0, exports.ComponentsApiFp)(this.configuration).manageComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, requestParameters.manageComponentV1Request, options).then((request) => request(this.axios, this.basePath));
1996
2058
  }
2059
+ /**
2060
+ *
2061
+ * @summary Restore a component that is marked for deletion
2062
+ * @param {ComponentsApiRestoreComponentRequest} requestParameters Request parameters.
2063
+ * @param {*} [options] Override http request option.
2064
+ * @throws {RequiredError}
2065
+ * @memberof ComponentsApi
2066
+ */
2067
+ restoreComponent(requestParameters, options) {
2068
+ return (0, exports.ComponentsApiFp)(this.configuration).restoreComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(this.axios, this.basePath));
2069
+ }
1997
2070
  /**
1998
2071
  *
1999
2072
  * @summary Complex search for components
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-initiative-api-client",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "TypeScript/JavaScript SDK for the System Initiative Public API",
5
5
  "author": "System Initiative <support@systeminit.com>",
6
6
  "repository": {