system-initiative-api-client 1.0.3 → 1.0.4

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
@@ -3196,6 +3234,16 @@ export declare const ComponentsApiAxiosParamCreator: (configuration?: Configurat
3196
3234
  * @throws {RequiredError}
3197
3235
  */
3198
3236
  deleteComponent: (workspaceId: string, changeSetId: string, componentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3237
+ /**
3238
+ *
3239
+ * @summary Duplicate a list of components
3240
+ * @param {string} workspaceId Workspace identifier
3241
+ * @param {string} changeSetId Change Set identifier
3242
+ * @param {DuplicateComponentsV1Request} duplicateComponentsV1Request
3243
+ * @param {*} [options] Override http request option.
3244
+ * @throws {RequiredError}
3245
+ */
3246
+ duplicateComponents: (workspaceId: string, changeSetId: string, duplicateComponentsV1Request: DuplicateComponentsV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3199
3247
  /**
3200
3248
  *
3201
3249
  * @summary Execute a component\'s management function
@@ -3308,6 +3356,16 @@ export declare const ComponentsApiFp: (configuration?: Configuration) => {
3308
3356
  * @throws {RequiredError}
3309
3357
  */
3310
3358
  deleteComponent(workspaceId: string, changeSetId: string, componentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteComponentV1Response>>;
3359
+ /**
3360
+ *
3361
+ * @summary Duplicate a list of components
3362
+ * @param {string} workspaceId Workspace identifier
3363
+ * @param {string} changeSetId Change Set identifier
3364
+ * @param {DuplicateComponentsV1Request} duplicateComponentsV1Request
3365
+ * @param {*} [options] Override http request option.
3366
+ * @throws {RequiredError}
3367
+ */
3368
+ duplicateComponents(workspaceId: string, changeSetId: string, duplicateComponentsV1Request: DuplicateComponentsV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DuplicateComponentsV1Response>>;
3311
3369
  /**
3312
3370
  *
3313
3371
  * @summary Execute a component\'s management function
@@ -3413,6 +3471,14 @@ export declare const ComponentsApiFactory: (configuration?: Configuration, baseP
3413
3471
  * @throws {RequiredError}
3414
3472
  */
3415
3473
  deleteComponent(requestParameters: ComponentsApiDeleteComponentRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteComponentV1Response>;
3474
+ /**
3475
+ *
3476
+ * @summary Duplicate a list of components
3477
+ * @param {ComponentsApiDuplicateComponentsRequest} requestParameters Request parameters.
3478
+ * @param {*} [options] Override http request option.
3479
+ * @throws {RequiredError}
3480
+ */
3481
+ duplicateComponents(requestParameters: ComponentsApiDuplicateComponentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DuplicateComponentsV1Response>;
3416
3482
  /**
3417
3483
  *
3418
3484
  * @summary Execute a component\'s management function
@@ -3503,6 +3569,15 @@ export interface ComponentsApiInterface {
3503
3569
  * @memberof ComponentsApiInterface
3504
3570
  */
3505
3571
  deleteComponent(requestParameters: ComponentsApiDeleteComponentRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteComponentV1Response>;
3572
+ /**
3573
+ *
3574
+ * @summary Duplicate a list of components
3575
+ * @param {ComponentsApiDuplicateComponentsRequest} requestParameters Request parameters.
3576
+ * @param {*} [options] Override http request option.
3577
+ * @throws {RequiredError}
3578
+ * @memberof ComponentsApiInterface
3579
+ */
3580
+ duplicateComponents(requestParameters: ComponentsApiDuplicateComponentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DuplicateComponentsV1Response>;
3506
3581
  /**
3507
3582
  *
3508
3583
  * @summary Execute a component\'s management function
@@ -3648,6 +3723,31 @@ export interface ComponentsApiDeleteComponentRequest {
3648
3723
  */
3649
3724
  readonly componentId: string;
3650
3725
  }
3726
+ /**
3727
+ * Request parameters for duplicateComponents operation in ComponentsApi.
3728
+ * @export
3729
+ * @interface ComponentsApiDuplicateComponentsRequest
3730
+ */
3731
+ export interface ComponentsApiDuplicateComponentsRequest {
3732
+ /**
3733
+ * Workspace identifier
3734
+ * @type {string}
3735
+ * @memberof ComponentsApiDuplicateComponents
3736
+ */
3737
+ readonly workspaceId: string;
3738
+ /**
3739
+ * Change Set identifier
3740
+ * @type {string}
3741
+ * @memberof ComponentsApiDuplicateComponents
3742
+ */
3743
+ readonly changeSetId: string;
3744
+ /**
3745
+ *
3746
+ * @type {DuplicateComponentsV1Request}
3747
+ * @memberof ComponentsApiDuplicateComponents
3748
+ */
3749
+ readonly duplicateComponentsV1Request: DuplicateComponentsV1Request;
3750
+ }
3651
3751
  /**
3652
3752
  * Request parameters for executeManagementFunction operation in ComponentsApi.
3653
3753
  * @export
@@ -3887,6 +3987,15 @@ export declare class ComponentsApi extends BaseAPI implements ComponentsApiInter
3887
3987
  * @memberof ComponentsApi
3888
3988
  */
3889
3989
  deleteComponent(requestParameters: ComponentsApiDeleteComponentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteComponentV1Response, any>>;
3990
+ /**
3991
+ *
3992
+ * @summary Duplicate a list of components
3993
+ * @param {ComponentsApiDuplicateComponentsRequest} requestParameters Request parameters.
3994
+ * @param {*} [options] Override http request option.
3995
+ * @throws {RequiredError}
3996
+ * @memberof ComponentsApi
3997
+ */
3998
+ duplicateComponents(requestParameters: ComponentsApiDuplicateComponentsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DuplicateComponentsV1Response, any>>;
3890
3999
  /**
3891
4000
  *
3892
4001
  * @summary Execute a component\'s management function
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
@@ -1393,6 +1431,21 @@ const ComponentsApiFp = function (configuration) {
1393
1431
  const localVarOperationServerBasePath = base_1.operationServerMap['ComponentsApi.deleteComponent']?.[localVarOperationServerIndex]?.url;
1394
1432
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1395
1433
  },
1434
+ /**
1435
+ *
1436
+ * @summary Duplicate a list of components
1437
+ * @param {string} workspaceId Workspace identifier
1438
+ * @param {string} changeSetId Change Set identifier
1439
+ * @param {DuplicateComponentsV1Request} duplicateComponentsV1Request
1440
+ * @param {*} [options] Override http request option.
1441
+ * @throws {RequiredError}
1442
+ */
1443
+ async duplicateComponents(workspaceId, changeSetId, duplicateComponentsV1Request, options) {
1444
+ const localVarAxiosArgs = await localVarAxiosParamCreator.duplicateComponents(workspaceId, changeSetId, duplicateComponentsV1Request, options);
1445
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1446
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComponentsApi.duplicateComponents']?.[localVarOperationServerIndex]?.url;
1447
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1448
+ },
1396
1449
  /**
1397
1450
  *
1398
1451
  * @summary Execute a component\'s management function
@@ -1543,6 +1596,16 @@ const ComponentsApiFactory = function (configuration, basePath, axios) {
1543
1596
  deleteComponent(requestParameters, options) {
1544
1597
  return localVarFp.deleteComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(axios, basePath));
1545
1598
  },
1599
+ /**
1600
+ *
1601
+ * @summary Duplicate a list of components
1602
+ * @param {ComponentsApiDuplicateComponentsRequest} requestParameters Request parameters.
1603
+ * @param {*} [options] Override http request option.
1604
+ * @throws {RequiredError}
1605
+ */
1606
+ duplicateComponents(requestParameters, options) {
1607
+ return localVarFp.duplicateComponents(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.duplicateComponentsV1Request, options).then((request) => request(axios, basePath));
1608
+ },
1546
1609
  /**
1547
1610
  *
1548
1611
  * @summary Execute a component\'s management function
@@ -1656,6 +1719,17 @@ class ComponentsApi extends base_1.BaseAPI {
1656
1719
  deleteComponent(requestParameters, options) {
1657
1720
  return (0, exports.ComponentsApiFp)(this.configuration).deleteComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(this.axios, this.basePath));
1658
1721
  }
1722
+ /**
1723
+ *
1724
+ * @summary Duplicate a list of components
1725
+ * @param {ComponentsApiDuplicateComponentsRequest} requestParameters Request parameters.
1726
+ * @param {*} [options] Override http request option.
1727
+ * @throws {RequiredError}
1728
+ * @memberof ComponentsApi
1729
+ */
1730
+ duplicateComponents(requestParameters, options) {
1731
+ return (0, exports.ComponentsApiFp)(this.configuration).duplicateComponents(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.duplicateComponentsV1Request, options).then((request) => request(this.axios, this.basePath));
1732
+ }
1659
1733
  /**
1660
1734
  *
1661
1735
  * @summary Execute a component\'s management function
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.4",
4
4
  "description": "TypeScript/JavaScript SDK for the System Initiative Public API",
5
5
  "author": "System Initiative <support@systeminit.com>",
6
6
  "repository": {