system-initiative-api-client 1.0.2 → 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 +119 -8
- package/dist/cjs/api.js +74 -0
- package/package.json +1 -1
package/dist/cjs/api.d.ts
CHANGED
|
@@ -338,6 +338,14 @@ export interface ComponentV1RequestPath {
|
|
|
338
338
|
* @interface ComponentViewV1
|
|
339
339
|
*/
|
|
340
340
|
export interface ComponentViewV1 {
|
|
341
|
+
/**
|
|
342
|
+
*
|
|
343
|
+
* @type {{ [key: string]: any; }}
|
|
344
|
+
* @memberof ComponentViewV1
|
|
345
|
+
*/
|
|
346
|
+
'attributes': {
|
|
347
|
+
[key: string]: any;
|
|
348
|
+
};
|
|
341
349
|
/**
|
|
342
350
|
*
|
|
343
351
|
* @type {boolean}
|
|
@@ -398,12 +406,6 @@ export interface ComponentViewV1 {
|
|
|
398
406
|
* @memberof ComponentViewV1
|
|
399
407
|
*/
|
|
400
408
|
'sockets': Array<SocketViewV1>;
|
|
401
|
-
/**
|
|
402
|
-
*
|
|
403
|
-
* @type {Array<Array<string>>}
|
|
404
|
-
* @memberof ComponentViewV1
|
|
405
|
-
*/
|
|
406
|
-
'sources': Array<Array<string>>;
|
|
407
409
|
/**
|
|
408
410
|
*
|
|
409
411
|
* @type {boolean}
|
|
@@ -646,7 +648,7 @@ export interface CreateComponentV1Request {
|
|
|
646
648
|
* @memberof CreateComponentV1Request
|
|
647
649
|
* @deprecated
|
|
648
650
|
*/
|
|
649
|
-
'secrets'
|
|
651
|
+
'secrets'?: {
|
|
650
652
|
[key: string]: any;
|
|
651
653
|
};
|
|
652
654
|
/**
|
|
@@ -763,6 +765,44 @@ export interface DeleteSecretV1Response {
|
|
|
763
765
|
*/
|
|
764
766
|
'success': boolean;
|
|
765
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
|
+
}
|
|
766
806
|
/**
|
|
767
807
|
*
|
|
768
808
|
* @export
|
|
@@ -2194,7 +2234,7 @@ export interface UpdateComponentV1Request {
|
|
|
2194
2234
|
* @memberof UpdateComponentV1Request
|
|
2195
2235
|
* @deprecated
|
|
2196
2236
|
*/
|
|
2197
|
-
'secrets'
|
|
2237
|
+
'secrets'?: {
|
|
2198
2238
|
[key: string]: any;
|
|
2199
2239
|
};
|
|
2200
2240
|
/**
|
|
@@ -3194,6 +3234,16 @@ export declare const ComponentsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
3194
3234
|
* @throws {RequiredError}
|
|
3195
3235
|
*/
|
|
3196
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>;
|
|
3197
3247
|
/**
|
|
3198
3248
|
*
|
|
3199
3249
|
* @summary Execute a component\'s management function
|
|
@@ -3306,6 +3356,16 @@ export declare const ComponentsApiFp: (configuration?: Configuration) => {
|
|
|
3306
3356
|
* @throws {RequiredError}
|
|
3307
3357
|
*/
|
|
3308
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>>;
|
|
3309
3369
|
/**
|
|
3310
3370
|
*
|
|
3311
3371
|
* @summary Execute a component\'s management function
|
|
@@ -3411,6 +3471,14 @@ export declare const ComponentsApiFactory: (configuration?: Configuration, baseP
|
|
|
3411
3471
|
* @throws {RequiredError}
|
|
3412
3472
|
*/
|
|
3413
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>;
|
|
3414
3482
|
/**
|
|
3415
3483
|
*
|
|
3416
3484
|
* @summary Execute a component\'s management function
|
|
@@ -3501,6 +3569,15 @@ export interface ComponentsApiInterface {
|
|
|
3501
3569
|
* @memberof ComponentsApiInterface
|
|
3502
3570
|
*/
|
|
3503
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>;
|
|
3504
3581
|
/**
|
|
3505
3582
|
*
|
|
3506
3583
|
* @summary Execute a component\'s management function
|
|
@@ -3646,6 +3723,31 @@ export interface ComponentsApiDeleteComponentRequest {
|
|
|
3646
3723
|
*/
|
|
3647
3724
|
readonly componentId: string;
|
|
3648
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
|
+
}
|
|
3649
3751
|
/**
|
|
3650
3752
|
* Request parameters for executeManagementFunction operation in ComponentsApi.
|
|
3651
3753
|
* @export
|
|
@@ -3885,6 +3987,15 @@ export declare class ComponentsApi extends BaseAPI implements ComponentsApiInter
|
|
|
3885
3987
|
* @memberof ComponentsApi
|
|
3886
3988
|
*/
|
|
3887
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>>;
|
|
3888
3999
|
/**
|
|
3889
4000
|
*
|
|
3890
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