system-initiative-api-client 1.0.3 → 1.0.5

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
@@ -765,6 +765,44 @@ export interface DeleteSecretV1Response {
765
765
  */
766
766
  'success': boolean;
767
767
  }
768
+ /**
769
+ *
770
+ * @export
771
+ * @interface DuplicateComponentsV1Request
772
+ */
773
+ export interface DuplicateComponentsV1Request {
774
+ /**
775
+ *
776
+ * @type {Array<Array<string>>}
777
+ * @memberof DuplicateComponentsV1Request
778
+ */
779
+ 'components': Array<Array<string>>;
780
+ /**
781
+ *
782
+ * @type {string}
783
+ * @memberof DuplicateComponentsV1Request
784
+ */
785
+ 'prefix'?: string | null;
786
+ /**
787
+ *
788
+ * @type {string}
789
+ * @memberof DuplicateComponentsV1Request
790
+ */
791
+ 'viewName'?: string | null;
792
+ }
793
+ /**
794
+ *
795
+ * @export
796
+ * @interface DuplicateComponentsV1Response
797
+ */
798
+ export interface DuplicateComponentsV1Response {
799
+ /**
800
+ *
801
+ * @type {Array<Array<string>>}
802
+ * @memberof DuplicateComponentsV1Response
803
+ */
804
+ 'components': Array<Array<string>>;
805
+ }
768
806
  /**
769
807
  *
770
808
  * @export
@@ -2274,6 +2312,19 @@ export interface UpdateSecretV1Response {
2274
2312
  */
2275
2313
  'secret': SecretV1;
2276
2314
  }
2315
+ /**
2316
+ *
2317
+ * @export
2318
+ * @interface UpgradeComponentV1Response
2319
+ */
2320
+ export interface UpgradeComponentV1Response {
2321
+ /**
2322
+ *
2323
+ * @type {ComponentViewV1}
2324
+ * @memberof UpgradeComponentV1Response
2325
+ */
2326
+ 'component': ComponentViewV1;
2327
+ }
2277
2328
  /**
2278
2329
  *
2279
2330
  * @export
@@ -3196,6 +3247,16 @@ export declare const ComponentsApiAxiosParamCreator: (configuration?: Configurat
3196
3247
  * @throws {RequiredError}
3197
3248
  */
3198
3249
  deleteComponent: (workspaceId: string, changeSetId: string, componentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3250
+ /**
3251
+ *
3252
+ * @summary Duplicate a list of components
3253
+ * @param {string} workspaceId Workspace identifier
3254
+ * @param {string} changeSetId Change Set identifier
3255
+ * @param {DuplicateComponentsV1Request} duplicateComponentsV1Request
3256
+ * @param {*} [options] Override http request option.
3257
+ * @throws {RequiredError}
3258
+ */
3259
+ duplicateComponents: (workspaceId: string, changeSetId: string, duplicateComponentsV1Request: DuplicateComponentsV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3199
3260
  /**
3200
3261
  *
3201
3262
  * @summary Execute a component\'s management function
@@ -3271,6 +3332,16 @@ export declare const ComponentsApiAxiosParamCreator: (configuration?: Configurat
3271
3332
  * @throws {RequiredError}
3272
3333
  */
3273
3334
  updateComponent: (workspaceId: string, changeSetId: string, componentId: string, updateComponentV1Request: UpdateComponentV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3335
+ /**
3336
+ *
3337
+ * @summary Upgrade a component to the latest schema variant
3338
+ * @param {string} workspaceId Workspace identifier
3339
+ * @param {string} changeSetId Change Set identifier
3340
+ * @param {string} componentId Component identifier
3341
+ * @param {*} [options] Override http request option.
3342
+ * @throws {RequiredError}
3343
+ */
3344
+ upgradeComponent: (workspaceId: string, changeSetId: string, componentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3274
3345
  };
3275
3346
  /**
3276
3347
  * ComponentsApi - functional programming interface
@@ -3308,6 +3379,16 @@ export declare const ComponentsApiFp: (configuration?: Configuration) => {
3308
3379
  * @throws {RequiredError}
3309
3380
  */
3310
3381
  deleteComponent(workspaceId: string, changeSetId: string, componentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteComponentV1Response>>;
3382
+ /**
3383
+ *
3384
+ * @summary Duplicate a list of components
3385
+ * @param {string} workspaceId Workspace identifier
3386
+ * @param {string} changeSetId Change Set identifier
3387
+ * @param {DuplicateComponentsV1Request} duplicateComponentsV1Request
3388
+ * @param {*} [options] Override http request option.
3389
+ * @throws {RequiredError}
3390
+ */
3391
+ duplicateComponents(workspaceId: string, changeSetId: string, duplicateComponentsV1Request: DuplicateComponentsV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DuplicateComponentsV1Response>>;
3311
3392
  /**
3312
3393
  *
3313
3394
  * @summary Execute a component\'s management function
@@ -3383,6 +3464,16 @@ export declare const ComponentsApiFp: (configuration?: Configuration) => {
3383
3464
  * @throws {RequiredError}
3384
3465
  */
3385
3466
  updateComponent(workspaceId: string, changeSetId: string, componentId: string, updateComponentV1Request: UpdateComponentV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateComponentV1Response>>;
3467
+ /**
3468
+ *
3469
+ * @summary Upgrade a component to the latest schema variant
3470
+ * @param {string} workspaceId Workspace identifier
3471
+ * @param {string} changeSetId Change Set identifier
3472
+ * @param {string} componentId Component identifier
3473
+ * @param {*} [options] Override http request option.
3474
+ * @throws {RequiredError}
3475
+ */
3476
+ upgradeComponent(workspaceId: string, changeSetId: string, componentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpgradeComponentV1Response>>;
3386
3477
  };
3387
3478
  /**
3388
3479
  * ComponentsApi - factory interface
@@ -3413,6 +3504,14 @@ export declare const ComponentsApiFactory: (configuration?: Configuration, baseP
3413
3504
  * @throws {RequiredError}
3414
3505
  */
3415
3506
  deleteComponent(requestParameters: ComponentsApiDeleteComponentRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteComponentV1Response>;
3507
+ /**
3508
+ *
3509
+ * @summary Duplicate a list of components
3510
+ * @param {ComponentsApiDuplicateComponentsRequest} requestParameters Request parameters.
3511
+ * @param {*} [options] Override http request option.
3512
+ * @throws {RequiredError}
3513
+ */
3514
+ duplicateComponents(requestParameters: ComponentsApiDuplicateComponentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DuplicateComponentsV1Response>;
3416
3515
  /**
3417
3516
  *
3418
3517
  * @summary Execute a component\'s management function
@@ -3469,6 +3568,14 @@ export declare const ComponentsApiFactory: (configuration?: Configuration, baseP
3469
3568
  * @throws {RequiredError}
3470
3569
  */
3471
3570
  updateComponent(requestParameters: ComponentsApiUpdateComponentRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateComponentV1Response>;
3571
+ /**
3572
+ *
3573
+ * @summary Upgrade a component to the latest schema variant
3574
+ * @param {ComponentsApiUpgradeComponentRequest} requestParameters Request parameters.
3575
+ * @param {*} [options] Override http request option.
3576
+ * @throws {RequiredError}
3577
+ */
3578
+ upgradeComponent(requestParameters: ComponentsApiUpgradeComponentRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpgradeComponentV1Response>;
3472
3579
  };
3473
3580
  /**
3474
3581
  * ComponentsApi - interface
@@ -3503,6 +3610,15 @@ export interface ComponentsApiInterface {
3503
3610
  * @memberof ComponentsApiInterface
3504
3611
  */
3505
3612
  deleteComponent(requestParameters: ComponentsApiDeleteComponentRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteComponentV1Response>;
3613
+ /**
3614
+ *
3615
+ * @summary Duplicate a list of components
3616
+ * @param {ComponentsApiDuplicateComponentsRequest} requestParameters Request parameters.
3617
+ * @param {*} [options] Override http request option.
3618
+ * @throws {RequiredError}
3619
+ * @memberof ComponentsApiInterface
3620
+ */
3621
+ duplicateComponents(requestParameters: ComponentsApiDuplicateComponentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DuplicateComponentsV1Response>;
3506
3622
  /**
3507
3623
  *
3508
3624
  * @summary Execute a component\'s management function
@@ -3566,6 +3682,15 @@ export interface ComponentsApiInterface {
3566
3682
  * @memberof ComponentsApiInterface
3567
3683
  */
3568
3684
  updateComponent(requestParameters: ComponentsApiUpdateComponentRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateComponentV1Response>;
3685
+ /**
3686
+ *
3687
+ * @summary Upgrade a component to the latest schema variant
3688
+ * @param {ComponentsApiUpgradeComponentRequest} requestParameters Request parameters.
3689
+ * @param {*} [options] Override http request option.
3690
+ * @throws {RequiredError}
3691
+ * @memberof ComponentsApiInterface
3692
+ */
3693
+ upgradeComponent(requestParameters: ComponentsApiUpgradeComponentRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpgradeComponentV1Response>;
3569
3694
  }
3570
3695
  /**
3571
3696
  * Request parameters for addAction operation in ComponentsApi.
@@ -3648,6 +3773,31 @@ export interface ComponentsApiDeleteComponentRequest {
3648
3773
  */
3649
3774
  readonly componentId: string;
3650
3775
  }
3776
+ /**
3777
+ * Request parameters for duplicateComponents operation in ComponentsApi.
3778
+ * @export
3779
+ * @interface ComponentsApiDuplicateComponentsRequest
3780
+ */
3781
+ export interface ComponentsApiDuplicateComponentsRequest {
3782
+ /**
3783
+ * Workspace identifier
3784
+ * @type {string}
3785
+ * @memberof ComponentsApiDuplicateComponents
3786
+ */
3787
+ readonly workspaceId: string;
3788
+ /**
3789
+ * Change Set identifier
3790
+ * @type {string}
3791
+ * @memberof ComponentsApiDuplicateComponents
3792
+ */
3793
+ readonly changeSetId: string;
3794
+ /**
3795
+ *
3796
+ * @type {DuplicateComponentsV1Request}
3797
+ * @memberof ComponentsApiDuplicateComponents
3798
+ */
3799
+ readonly duplicateComponentsV1Request: DuplicateComponentsV1Request;
3800
+ }
3651
3801
  /**
3652
3802
  * Request parameters for executeManagementFunction operation in ComponentsApi.
3653
3803
  * @export
@@ -3853,6 +4003,31 @@ export interface ComponentsApiUpdateComponentRequest {
3853
4003
  */
3854
4004
  readonly updateComponentV1Request: UpdateComponentV1Request;
3855
4005
  }
4006
+ /**
4007
+ * Request parameters for upgradeComponent operation in ComponentsApi.
4008
+ * @export
4009
+ * @interface ComponentsApiUpgradeComponentRequest
4010
+ */
4011
+ export interface ComponentsApiUpgradeComponentRequest {
4012
+ /**
4013
+ * Workspace identifier
4014
+ * @type {string}
4015
+ * @memberof ComponentsApiUpgradeComponent
4016
+ */
4017
+ readonly workspaceId: string;
4018
+ /**
4019
+ * Change Set identifier
4020
+ * @type {string}
4021
+ * @memberof ComponentsApiUpgradeComponent
4022
+ */
4023
+ readonly changeSetId: string;
4024
+ /**
4025
+ * Component identifier
4026
+ * @type {string}
4027
+ * @memberof ComponentsApiUpgradeComponent
4028
+ */
4029
+ readonly componentId: string;
4030
+ }
3856
4031
  /**
3857
4032
  * ComponentsApi - object-oriented interface
3858
4033
  * @export
@@ -3887,6 +4062,15 @@ export declare class ComponentsApi extends BaseAPI implements ComponentsApiInter
3887
4062
  * @memberof ComponentsApi
3888
4063
  */
3889
4064
  deleteComponent(requestParameters: ComponentsApiDeleteComponentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteComponentV1Response, any>>;
4065
+ /**
4066
+ *
4067
+ * @summary Duplicate a list of components
4068
+ * @param {ComponentsApiDuplicateComponentsRequest} requestParameters Request parameters.
4069
+ * @param {*} [options] Override http request option.
4070
+ * @throws {RequiredError}
4071
+ * @memberof ComponentsApi
4072
+ */
4073
+ duplicateComponents(requestParameters: ComponentsApiDuplicateComponentsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DuplicateComponentsV1Response, any>>;
3890
4074
  /**
3891
4075
  *
3892
4076
  * @summary Execute a component\'s management function
@@ -3950,6 +4134,15 @@ export declare class ComponentsApi extends BaseAPI implements ComponentsApiInter
3950
4134
  * @memberof ComponentsApi
3951
4135
  */
3952
4136
  updateComponent(requestParameters: ComponentsApiUpdateComponentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateComponentV1Response, any>>;
4137
+ /**
4138
+ *
4139
+ * @summary Upgrade a component to the latest schema variant
4140
+ * @param {ComponentsApiUpgradeComponentRequest} requestParameters Request parameters.
4141
+ * @param {*} [options] Override http request option.
4142
+ * @throws {RequiredError}
4143
+ * @memberof ComponentsApi
4144
+ */
4145
+ upgradeComponent(requestParameters: ComponentsApiUpgradeComponentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UpgradeComponentV1Response, any>>;
3953
4146
  }
3954
4147
  /**
3955
4148
  * FuncsApi - axios parameter creator
package/dist/cjs/api.js CHANGED
@@ -1054,6 +1054,44 @@ const ComponentsApiAxiosParamCreator = function (configuration) {
1054
1054
  options: localVarRequestOptions,
1055
1055
  };
1056
1056
  },
1057
+ /**
1058
+ *
1059
+ * @summary Duplicate a list of components
1060
+ * @param {string} workspaceId Workspace identifier
1061
+ * @param {string} changeSetId Change Set identifier
1062
+ * @param {DuplicateComponentsV1Request} duplicateComponentsV1Request
1063
+ * @param {*} [options] Override http request option.
1064
+ * @throws {RequiredError}
1065
+ */
1066
+ duplicateComponents: async (workspaceId, changeSetId, duplicateComponentsV1Request, options = {}) => {
1067
+ // verify required parameter 'workspaceId' is not null or undefined
1068
+ (0, common_1.assertParamExists)('duplicateComponents', 'workspaceId', workspaceId);
1069
+ // verify required parameter 'changeSetId' is not null or undefined
1070
+ (0, common_1.assertParamExists)('duplicateComponents', 'changeSetId', changeSetId);
1071
+ // verify required parameter 'duplicateComponentsV1Request' is not null or undefined
1072
+ (0, common_1.assertParamExists)('duplicateComponents', 'duplicateComponentsV1Request', duplicateComponentsV1Request);
1073
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/duplicate`
1074
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1075
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
1076
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1077
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1078
+ let baseOptions;
1079
+ if (configuration) {
1080
+ baseOptions = configuration.baseOptions;
1081
+ }
1082
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1083
+ const localVarHeaderParameter = {};
1084
+ const localVarQueryParameter = {};
1085
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1086
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1087
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1088
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1089
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(duplicateComponentsV1Request, localVarRequestOptions, configuration);
1090
+ return {
1091
+ url: (0, common_1.toPathString)(localVarUrlObj),
1092
+ options: localVarRequestOptions,
1093
+ };
1094
+ },
1057
1095
  /**
1058
1096
  *
1059
1097
  * @summary Execute a component\'s management function
@@ -1337,6 +1375,43 @@ const ComponentsApiAxiosParamCreator = function (configuration) {
1337
1375
  options: localVarRequestOptions,
1338
1376
  };
1339
1377
  },
1378
+ /**
1379
+ *
1380
+ * @summary Upgrade a component to the latest schema variant
1381
+ * @param {string} workspaceId Workspace identifier
1382
+ * @param {string} changeSetId Change Set identifier
1383
+ * @param {string} componentId Component identifier
1384
+ * @param {*} [options] Override http request option.
1385
+ * @throws {RequiredError}
1386
+ */
1387
+ upgradeComponent: async (workspaceId, changeSetId, componentId, options = {}) => {
1388
+ // verify required parameter 'workspaceId' is not null or undefined
1389
+ (0, common_1.assertParamExists)('upgradeComponent', 'workspaceId', workspaceId);
1390
+ // verify required parameter 'changeSetId' is not null or undefined
1391
+ (0, common_1.assertParamExists)('upgradeComponent', 'changeSetId', changeSetId);
1392
+ // verify required parameter 'componentId' is not null or undefined
1393
+ (0, common_1.assertParamExists)('upgradeComponent', 'componentId', componentId);
1394
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/{component_id}/upgrade`
1395
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1396
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
1397
+ .replace(`{${"component_id"}}`, encodeURIComponent(String(componentId)));
1398
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1399
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1400
+ let baseOptions;
1401
+ if (configuration) {
1402
+ baseOptions = configuration.baseOptions;
1403
+ }
1404
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1405
+ const localVarHeaderParameter = {};
1406
+ const localVarQueryParameter = {};
1407
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1408
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1409
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1410
+ return {
1411
+ url: (0, common_1.toPathString)(localVarUrlObj),
1412
+ options: localVarRequestOptions,
1413
+ };
1414
+ },
1340
1415
  };
1341
1416
  };
1342
1417
  exports.ComponentsApiAxiosParamCreator = ComponentsApiAxiosParamCreator;
@@ -1393,6 +1468,21 @@ const ComponentsApiFp = function (configuration) {
1393
1468
  const localVarOperationServerBasePath = base_1.operationServerMap['ComponentsApi.deleteComponent']?.[localVarOperationServerIndex]?.url;
1394
1469
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1395
1470
  },
1471
+ /**
1472
+ *
1473
+ * @summary Duplicate a list of components
1474
+ * @param {string} workspaceId Workspace identifier
1475
+ * @param {string} changeSetId Change Set identifier
1476
+ * @param {DuplicateComponentsV1Request} duplicateComponentsV1Request
1477
+ * @param {*} [options] Override http request option.
1478
+ * @throws {RequiredError}
1479
+ */
1480
+ async duplicateComponents(workspaceId, changeSetId, duplicateComponentsV1Request, options) {
1481
+ const localVarAxiosArgs = await localVarAxiosParamCreator.duplicateComponents(workspaceId, changeSetId, duplicateComponentsV1Request, options);
1482
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1483
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComponentsApi.duplicateComponents']?.[localVarOperationServerIndex]?.url;
1484
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1485
+ },
1396
1486
  /**
1397
1487
  *
1398
1488
  * @summary Execute a component\'s management function
@@ -1503,6 +1593,21 @@ const ComponentsApiFp = function (configuration) {
1503
1593
  const localVarOperationServerBasePath = base_1.operationServerMap['ComponentsApi.updateComponent']?.[localVarOperationServerIndex]?.url;
1504
1594
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1505
1595
  },
1596
+ /**
1597
+ *
1598
+ * @summary Upgrade a component to the latest schema variant
1599
+ * @param {string} workspaceId Workspace identifier
1600
+ * @param {string} changeSetId Change Set identifier
1601
+ * @param {string} componentId Component identifier
1602
+ * @param {*} [options] Override http request option.
1603
+ * @throws {RequiredError}
1604
+ */
1605
+ async upgradeComponent(workspaceId, changeSetId, componentId, options) {
1606
+ const localVarAxiosArgs = await localVarAxiosParamCreator.upgradeComponent(workspaceId, changeSetId, componentId, options);
1607
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1608
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComponentsApi.upgradeComponent']?.[localVarOperationServerIndex]?.url;
1609
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1610
+ },
1506
1611
  };
1507
1612
  };
1508
1613
  exports.ComponentsApiFp = ComponentsApiFp;
@@ -1543,6 +1648,16 @@ const ComponentsApiFactory = function (configuration, basePath, axios) {
1543
1648
  deleteComponent(requestParameters, options) {
1544
1649
  return localVarFp.deleteComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(axios, basePath));
1545
1650
  },
1651
+ /**
1652
+ *
1653
+ * @summary Duplicate a list of components
1654
+ * @param {ComponentsApiDuplicateComponentsRequest} requestParameters Request parameters.
1655
+ * @param {*} [options] Override http request option.
1656
+ * @throws {RequiredError}
1657
+ */
1658
+ duplicateComponents(requestParameters, options) {
1659
+ return localVarFp.duplicateComponents(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.duplicateComponentsV1Request, options).then((request) => request(axios, basePath));
1660
+ },
1546
1661
  /**
1547
1662
  *
1548
1663
  * @summary Execute a component\'s management function
@@ -1613,6 +1728,16 @@ const ComponentsApiFactory = function (configuration, basePath, axios) {
1613
1728
  updateComponent(requestParameters, options) {
1614
1729
  return localVarFp.updateComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, requestParameters.updateComponentV1Request, options).then((request) => request(axios, basePath));
1615
1730
  },
1731
+ /**
1732
+ *
1733
+ * @summary Upgrade a component to the latest schema variant
1734
+ * @param {ComponentsApiUpgradeComponentRequest} requestParameters Request parameters.
1735
+ * @param {*} [options] Override http request option.
1736
+ * @throws {RequiredError}
1737
+ */
1738
+ upgradeComponent(requestParameters, options) {
1739
+ return localVarFp.upgradeComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(axios, basePath));
1740
+ },
1616
1741
  };
1617
1742
  };
1618
1743
  exports.ComponentsApiFactory = ComponentsApiFactory;
@@ -1656,6 +1781,17 @@ class ComponentsApi extends base_1.BaseAPI {
1656
1781
  deleteComponent(requestParameters, options) {
1657
1782
  return (0, exports.ComponentsApiFp)(this.configuration).deleteComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(this.axios, this.basePath));
1658
1783
  }
1784
+ /**
1785
+ *
1786
+ * @summary Duplicate a list of components
1787
+ * @param {ComponentsApiDuplicateComponentsRequest} requestParameters Request parameters.
1788
+ * @param {*} [options] Override http request option.
1789
+ * @throws {RequiredError}
1790
+ * @memberof ComponentsApi
1791
+ */
1792
+ duplicateComponents(requestParameters, options) {
1793
+ return (0, exports.ComponentsApiFp)(this.configuration).duplicateComponents(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.duplicateComponentsV1Request, options).then((request) => request(this.axios, this.basePath));
1794
+ }
1659
1795
  /**
1660
1796
  *
1661
1797
  * @summary Execute a component\'s management function
@@ -1733,6 +1869,17 @@ class ComponentsApi extends base_1.BaseAPI {
1733
1869
  updateComponent(requestParameters, options) {
1734
1870
  return (0, exports.ComponentsApiFp)(this.configuration).updateComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, requestParameters.updateComponentV1Request, options).then((request) => request(this.axios, this.basePath));
1735
1871
  }
1872
+ /**
1873
+ *
1874
+ * @summary Upgrade a component to the latest schema variant
1875
+ * @param {ComponentsApiUpgradeComponentRequest} requestParameters Request parameters.
1876
+ * @param {*} [options] Override http request option.
1877
+ * @throws {RequiredError}
1878
+ * @memberof ComponentsApi
1879
+ */
1880
+ upgradeComponent(requestParameters, options) {
1881
+ return (0, exports.ComponentsApiFp)(this.configuration).upgradeComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(this.axios, this.basePath));
1882
+ }
1736
1883
  }
1737
1884
  exports.ComponentsApi = ComponentsApi;
1738
1885
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-initiative-api-client",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "TypeScript/JavaScript SDK for the System Initiative Public API",
5
5
  "author": "System Initiative <support@systeminit.com>",
6
6
  "repository": {