@cosmotech/api-ts 2.0.4 → 2.0.13-dev
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/.github/workflows/publish.yaml +5 -2
- package/README.md +2 -2
- package/api.ts +641 -92
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +434 -73
- package/dist/api.js +505 -92
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Cosmo Tech Plaform API
|
|
6
6
|
* Cosmo Tech Platform API
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.0.
|
|
8
|
+
* The version of the OpenAPI document: 2.0.13-dev
|
|
9
9
|
* Contact: platform@cosmotech.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1432,7 +1432,7 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
|
|
|
1432
1432
|
return {
|
|
1433
1433
|
/**
|
|
1434
1434
|
*
|
|
1435
|
-
* @summary
|
|
1435
|
+
* @summary Add a control access to the Organization
|
|
1436
1436
|
* @param {string} organizationId the Organization identifier
|
|
1437
1437
|
* @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
|
|
1438
1438
|
* @param {*} [options] Override http request option.
|
|
@@ -1601,7 +1601,7 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
|
|
|
1601
1601
|
},
|
|
1602
1602
|
/**
|
|
1603
1603
|
*
|
|
1604
|
-
* @summary
|
|
1604
|
+
* @summary Get a control access for the Organization
|
|
1605
1605
|
* @param {string} organizationId the Organization identifier
|
|
1606
1606
|
* @param {string} identityId the User identifier
|
|
1607
1607
|
* @param {*} [options] Override http request option.
|
|
@@ -1739,7 +1739,7 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
|
|
|
1739
1739
|
/**
|
|
1740
1740
|
*
|
|
1741
1741
|
* @summary Get the Organization security users list
|
|
1742
|
-
* @param {string} organizationId
|
|
1742
|
+
* @param {string} organizationId The Organization identifier
|
|
1743
1743
|
* @param {*} [options] Override http request option.
|
|
1744
1744
|
* @throws {RequiredError}
|
|
1745
1745
|
*/
|
|
@@ -1872,13 +1872,13 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
|
|
|
1872
1872
|
},
|
|
1873
1873
|
/**
|
|
1874
1874
|
*
|
|
1875
|
-
* @summary
|
|
1875
|
+
* @summary Set the Organization default security
|
|
1876
1876
|
* @param {string} organizationId the Organization identifier
|
|
1877
|
-
* @param {
|
|
1877
|
+
* @param {OrganizationRole} organizationRole the new Organization default security.
|
|
1878
1878
|
* @param {*} [options] Override http request option.
|
|
1879
1879
|
* @throws {RequiredError}
|
|
1880
1880
|
*/
|
|
1881
|
-
setOrganizationDefaultSecurity: function (organizationId,
|
|
1881
|
+
setOrganizationDefaultSecurity: function (organizationId, organizationRole, options) {
|
|
1882
1882
|
if (options === void 0) { options = {}; }
|
|
1883
1883
|
return __awaiter(_this, void 0, void 0, function () {
|
|
1884
1884
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -1887,8 +1887,8 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
|
|
|
1887
1887
|
case 0:
|
|
1888
1888
|
// verify required parameter 'organizationId' is not null or undefined
|
|
1889
1889
|
common_1.assertParamExists('setOrganizationDefaultSecurity', 'organizationId', organizationId);
|
|
1890
|
-
// verify required parameter '
|
|
1891
|
-
common_1.assertParamExists('setOrganizationDefaultSecurity', '
|
|
1890
|
+
// verify required parameter 'organizationRole' is not null or undefined
|
|
1891
|
+
common_1.assertParamExists('setOrganizationDefaultSecurity', 'organizationRole', organizationRole);
|
|
1892
1892
|
localVarPath = "/organizations/{organization_id}/security/default"
|
|
1893
1893
|
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
|
|
1894
1894
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1909,7 +1909,7 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
|
|
|
1909
1909
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1910
1910
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1911
1911
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1912
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
1912
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(organizationRole, localVarRequestOptions, configuration);
|
|
1913
1913
|
return [2 /*return*/, {
|
|
1914
1914
|
url: common_1.toPathString(localVarUrlObj),
|
|
1915
1915
|
options: localVarRequestOptions,
|
|
@@ -2009,6 +2009,58 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
|
|
|
2009
2009
|
});
|
|
2010
2010
|
});
|
|
2011
2011
|
},
|
|
2012
|
+
/**
|
|
2013
|
+
*
|
|
2014
|
+
* @summary Update the specified access to User for an Organization
|
|
2015
|
+
* @param {string} organizationId the Organization identifier
|
|
2016
|
+
* @param {string} identityId the User identifier
|
|
2017
|
+
* @param {OrganizationRole} organizationRole The new Organization Access Control
|
|
2018
|
+
* @param {*} [options] Override http request option.
|
|
2019
|
+
* @throws {RequiredError}
|
|
2020
|
+
*/
|
|
2021
|
+
updateOrganizationAccessControl: function (organizationId, identityId, organizationRole, options) {
|
|
2022
|
+
if (options === void 0) { options = {}; }
|
|
2023
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
2024
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2025
|
+
return __generator(this, function (_a) {
|
|
2026
|
+
switch (_a.label) {
|
|
2027
|
+
case 0:
|
|
2028
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
2029
|
+
common_1.assertParamExists('updateOrganizationAccessControl', 'organizationId', organizationId);
|
|
2030
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
2031
|
+
common_1.assertParamExists('updateOrganizationAccessControl', 'identityId', identityId);
|
|
2032
|
+
// verify required parameter 'organizationRole' is not null or undefined
|
|
2033
|
+
common_1.assertParamExists('updateOrganizationAccessControl', 'organizationRole', organizationRole);
|
|
2034
|
+
localVarPath = "/organizations/{organization_id}/security/access/{identity_id}"
|
|
2035
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
2036
|
+
.replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
|
|
2037
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2038
|
+
if (configuration) {
|
|
2039
|
+
baseOptions = configuration.baseOptions;
|
|
2040
|
+
}
|
|
2041
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
2042
|
+
localVarHeaderParameter = {};
|
|
2043
|
+
localVarQueryParameter = {};
|
|
2044
|
+
// authentication oAuth2AuthCode required
|
|
2045
|
+
// oauth required
|
|
2046
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
2047
|
+
case 1:
|
|
2048
|
+
// authentication oAuth2AuthCode required
|
|
2049
|
+
// oauth required
|
|
2050
|
+
_a.sent();
|
|
2051
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2052
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2053
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2054
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2055
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(organizationRole, localVarRequestOptions, configuration);
|
|
2056
|
+
return [2 /*return*/, {
|
|
2057
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
2058
|
+
options: localVarRequestOptions,
|
|
2059
|
+
}];
|
|
2060
|
+
}
|
|
2061
|
+
});
|
|
2062
|
+
});
|
|
2063
|
+
},
|
|
2012
2064
|
/**
|
|
2013
2065
|
*
|
|
2014
2066
|
* @summary Update the solutions container registry configuration for the Organization specified
|
|
@@ -2164,7 +2216,7 @@ exports.OrganizationApiFp = function (configuration) {
|
|
|
2164
2216
|
return {
|
|
2165
2217
|
/**
|
|
2166
2218
|
*
|
|
2167
|
-
* @summary
|
|
2219
|
+
* @summary Add a control access to the Organization
|
|
2168
2220
|
* @param {string} organizationId the Organization identifier
|
|
2169
2221
|
* @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
|
|
2170
2222
|
* @param {*} [options] Override http request option.
|
|
@@ -2243,7 +2295,7 @@ exports.OrganizationApiFp = function (configuration) {
|
|
|
2243
2295
|
},
|
|
2244
2296
|
/**
|
|
2245
2297
|
*
|
|
2246
|
-
* @summary
|
|
2298
|
+
* @summary Get a control access for the Organization
|
|
2247
2299
|
* @param {string} organizationId the Organization identifier
|
|
2248
2300
|
* @param {string} identityId the User identifier
|
|
2249
2301
|
* @param {*} [options] Override http request option.
|
|
@@ -2306,7 +2358,7 @@ exports.OrganizationApiFp = function (configuration) {
|
|
|
2306
2358
|
/**
|
|
2307
2359
|
*
|
|
2308
2360
|
* @summary Get the Organization security users list
|
|
2309
|
-
* @param {string} organizationId
|
|
2361
|
+
* @param {string} organizationId The Organization identifier
|
|
2310
2362
|
* @param {*} [options] Override http request option.
|
|
2311
2363
|
* @throws {RequiredError}
|
|
2312
2364
|
*/
|
|
@@ -2366,18 +2418,18 @@ exports.OrganizationApiFp = function (configuration) {
|
|
|
2366
2418
|
},
|
|
2367
2419
|
/**
|
|
2368
2420
|
*
|
|
2369
|
-
* @summary
|
|
2421
|
+
* @summary Set the Organization default security
|
|
2370
2422
|
* @param {string} organizationId the Organization identifier
|
|
2371
|
-
* @param {
|
|
2423
|
+
* @param {OrganizationRole} organizationRole the new Organization default security.
|
|
2372
2424
|
* @param {*} [options] Override http request option.
|
|
2373
2425
|
* @throws {RequiredError}
|
|
2374
2426
|
*/
|
|
2375
|
-
setOrganizationDefaultSecurity: function (organizationId,
|
|
2427
|
+
setOrganizationDefaultSecurity: function (organizationId, organizationRole, options) {
|
|
2376
2428
|
return __awaiter(this, void 0, void 0, function () {
|
|
2377
2429
|
var localVarAxiosArgs;
|
|
2378
2430
|
return __generator(this, function (_a) {
|
|
2379
2431
|
switch (_a.label) {
|
|
2380
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.setOrganizationDefaultSecurity(organizationId,
|
|
2432
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.setOrganizationDefaultSecurity(organizationId, organizationRole, options)];
|
|
2381
2433
|
case 1:
|
|
2382
2434
|
localVarAxiosArgs = _a.sent();
|
|
2383
2435
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2426,6 +2478,28 @@ exports.OrganizationApiFp = function (configuration) {
|
|
|
2426
2478
|
});
|
|
2427
2479
|
});
|
|
2428
2480
|
},
|
|
2481
|
+
/**
|
|
2482
|
+
*
|
|
2483
|
+
* @summary Update the specified access to User for an Organization
|
|
2484
|
+
* @param {string} organizationId the Organization identifier
|
|
2485
|
+
* @param {string} identityId the User identifier
|
|
2486
|
+
* @param {OrganizationRole} organizationRole The new Organization Access Control
|
|
2487
|
+
* @param {*} [options] Override http request option.
|
|
2488
|
+
* @throws {RequiredError}
|
|
2489
|
+
*/
|
|
2490
|
+
updateOrganizationAccessControl: function (organizationId, identityId, organizationRole, options) {
|
|
2491
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2492
|
+
var localVarAxiosArgs;
|
|
2493
|
+
return __generator(this, function (_a) {
|
|
2494
|
+
switch (_a.label) {
|
|
2495
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateOrganizationAccessControl(organizationId, identityId, organizationRole, options)];
|
|
2496
|
+
case 1:
|
|
2497
|
+
localVarAxiosArgs = _a.sent();
|
|
2498
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2499
|
+
}
|
|
2500
|
+
});
|
|
2501
|
+
});
|
|
2502
|
+
},
|
|
2429
2503
|
/**
|
|
2430
2504
|
*
|
|
2431
2505
|
* @summary Update the solutions container registry configuration for the Organization specified
|
|
@@ -2500,7 +2574,7 @@ exports.OrganizationApiFactory = function (configuration, basePath, axios) {
|
|
|
2500
2574
|
return {
|
|
2501
2575
|
/**
|
|
2502
2576
|
*
|
|
2503
|
-
* @summary
|
|
2577
|
+
* @summary Add a control access to the Organization
|
|
2504
2578
|
* @param {string} organizationId the Organization identifier
|
|
2505
2579
|
* @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
|
|
2506
2580
|
* @param {*} [options] Override http request option.
|
|
@@ -2539,7 +2613,7 @@ exports.OrganizationApiFactory = function (configuration, basePath, axios) {
|
|
|
2539
2613
|
},
|
|
2540
2614
|
/**
|
|
2541
2615
|
*
|
|
2542
|
-
* @summary
|
|
2616
|
+
* @summary Get a control access for the Organization
|
|
2543
2617
|
* @param {string} organizationId the Organization identifier
|
|
2544
2618
|
* @param {string} identityId the User identifier
|
|
2545
2619
|
* @param {*} [options] Override http request option.
|
|
@@ -2572,7 +2646,7 @@ exports.OrganizationApiFactory = function (configuration, basePath, axios) {
|
|
|
2572
2646
|
/**
|
|
2573
2647
|
*
|
|
2574
2648
|
* @summary Get the Organization security users list
|
|
2575
|
-
* @param {string} organizationId
|
|
2649
|
+
* @param {string} organizationId The Organization identifier
|
|
2576
2650
|
* @param {*} [options] Override http request option.
|
|
2577
2651
|
* @throws {RequiredError}
|
|
2578
2652
|
*/
|
|
@@ -2602,14 +2676,14 @@ exports.OrganizationApiFactory = function (configuration, basePath, axios) {
|
|
|
2602
2676
|
},
|
|
2603
2677
|
/**
|
|
2604
2678
|
*
|
|
2605
|
-
* @summary
|
|
2679
|
+
* @summary Set the Organization default security
|
|
2606
2680
|
* @param {string} organizationId the Organization identifier
|
|
2607
|
-
* @param {
|
|
2681
|
+
* @param {OrganizationRole} organizationRole the new Organization default security.
|
|
2608
2682
|
* @param {*} [options] Override http request option.
|
|
2609
2683
|
* @throws {RequiredError}
|
|
2610
2684
|
*/
|
|
2611
|
-
setOrganizationDefaultSecurity: function (organizationId,
|
|
2612
|
-
return localVarFp.setOrganizationDefaultSecurity(organizationId,
|
|
2685
|
+
setOrganizationDefaultSecurity: function (organizationId, organizationRole, options) {
|
|
2686
|
+
return localVarFp.setOrganizationDefaultSecurity(organizationId, organizationRole, options).then(function (request) { return request(axios, basePath); });
|
|
2613
2687
|
},
|
|
2614
2688
|
/**
|
|
2615
2689
|
*
|
|
@@ -2632,6 +2706,18 @@ exports.OrganizationApiFactory = function (configuration, basePath, axios) {
|
|
|
2632
2706
|
updateOrganization: function (organizationId, organization, options) {
|
|
2633
2707
|
return localVarFp.updateOrganization(organizationId, organization, options).then(function (request) { return request(axios, basePath); });
|
|
2634
2708
|
},
|
|
2709
|
+
/**
|
|
2710
|
+
*
|
|
2711
|
+
* @summary Update the specified access to User for an Organization
|
|
2712
|
+
* @param {string} organizationId the Organization identifier
|
|
2713
|
+
* @param {string} identityId the User identifier
|
|
2714
|
+
* @param {OrganizationRole} organizationRole The new Organization Access Control
|
|
2715
|
+
* @param {*} [options] Override http request option.
|
|
2716
|
+
* @throws {RequiredError}
|
|
2717
|
+
*/
|
|
2718
|
+
updateOrganizationAccessControl: function (organizationId, identityId, organizationRole, options) {
|
|
2719
|
+
return localVarFp.updateOrganizationAccessControl(organizationId, identityId, organizationRole, options).then(function (request) { return request(axios, basePath); });
|
|
2720
|
+
},
|
|
2635
2721
|
/**
|
|
2636
2722
|
*
|
|
2637
2723
|
* @summary Update the solutions container registry configuration for the Organization specified
|
|
@@ -2680,7 +2766,7 @@ var OrganizationApi = /** @class */ (function (_super) {
|
|
|
2680
2766
|
}
|
|
2681
2767
|
/**
|
|
2682
2768
|
*
|
|
2683
|
-
* @summary
|
|
2769
|
+
* @summary Add a control access to the Organization
|
|
2684
2770
|
* @param {string} organizationId the Organization identifier
|
|
2685
2771
|
* @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
|
|
2686
2772
|
* @param {*} [options] Override http request option.
|
|
@@ -2727,7 +2813,7 @@ var OrganizationApi = /** @class */ (function (_super) {
|
|
|
2727
2813
|
};
|
|
2728
2814
|
/**
|
|
2729
2815
|
*
|
|
2730
|
-
* @summary
|
|
2816
|
+
* @summary Get a control access for the Organization
|
|
2731
2817
|
* @param {string} organizationId the Organization identifier
|
|
2732
2818
|
* @param {string} identityId the User identifier
|
|
2733
2819
|
* @param {*} [options] Override http request option.
|
|
@@ -2766,7 +2852,7 @@ var OrganizationApi = /** @class */ (function (_super) {
|
|
|
2766
2852
|
/**
|
|
2767
2853
|
*
|
|
2768
2854
|
* @summary Get the Organization security users list
|
|
2769
|
-
* @param {string} organizationId
|
|
2855
|
+
* @param {string} organizationId The Organization identifier
|
|
2770
2856
|
* @param {*} [options] Override http request option.
|
|
2771
2857
|
* @throws {RequiredError}
|
|
2772
2858
|
* @memberof OrganizationApi
|
|
@@ -2802,16 +2888,16 @@ var OrganizationApi = /** @class */ (function (_super) {
|
|
|
2802
2888
|
};
|
|
2803
2889
|
/**
|
|
2804
2890
|
*
|
|
2805
|
-
* @summary
|
|
2891
|
+
* @summary Set the Organization default security
|
|
2806
2892
|
* @param {string} organizationId the Organization identifier
|
|
2807
|
-
* @param {
|
|
2893
|
+
* @param {OrganizationRole} organizationRole the new Organization default security.
|
|
2808
2894
|
* @param {*} [options] Override http request option.
|
|
2809
2895
|
* @throws {RequiredError}
|
|
2810
2896
|
* @memberof OrganizationApi
|
|
2811
2897
|
*/
|
|
2812
|
-
OrganizationApi.prototype.setOrganizationDefaultSecurity = function (organizationId,
|
|
2898
|
+
OrganizationApi.prototype.setOrganizationDefaultSecurity = function (organizationId, organizationRole, options) {
|
|
2813
2899
|
var _this = this;
|
|
2814
|
-
return exports.OrganizationApiFp(this.configuration).setOrganizationDefaultSecurity(organizationId,
|
|
2900
|
+
return exports.OrganizationApiFp(this.configuration).setOrganizationDefaultSecurity(organizationId, organizationRole, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2815
2901
|
};
|
|
2816
2902
|
/**
|
|
2817
2903
|
*
|
|
@@ -2838,6 +2924,20 @@ var OrganizationApi = /** @class */ (function (_super) {
|
|
|
2838
2924
|
var _this = this;
|
|
2839
2925
|
return exports.OrganizationApiFp(this.configuration).updateOrganization(organizationId, organization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2840
2926
|
};
|
|
2927
|
+
/**
|
|
2928
|
+
*
|
|
2929
|
+
* @summary Update the specified access to User for an Organization
|
|
2930
|
+
* @param {string} organizationId the Organization identifier
|
|
2931
|
+
* @param {string} identityId the User identifier
|
|
2932
|
+
* @param {OrganizationRole} organizationRole The new Organization Access Control
|
|
2933
|
+
* @param {*} [options] Override http request option.
|
|
2934
|
+
* @throws {RequiredError}
|
|
2935
|
+
* @memberof OrganizationApi
|
|
2936
|
+
*/
|
|
2937
|
+
OrganizationApi.prototype.updateOrganizationAccessControl = function (organizationId, identityId, organizationRole, options) {
|
|
2938
|
+
var _this = this;
|
|
2939
|
+
return exports.OrganizationApiFp(this.configuration).updateOrganizationAccessControl(organizationId, identityId, organizationRole, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2940
|
+
};
|
|
2841
2941
|
/**
|
|
2842
2942
|
*
|
|
2843
2943
|
* @summary Update the solutions container registry configuration for the Organization specified
|
|
@@ -2945,7 +3045,7 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
|
|
|
2945
3045
|
},
|
|
2946
3046
|
/**
|
|
2947
3047
|
*
|
|
2948
|
-
* @summary
|
|
3048
|
+
* @summary Add a control access to the Scenario
|
|
2949
3049
|
* @param {string} organizationId the Organization identifier
|
|
2950
3050
|
* @param {string} workspaceId the Workspace identifier
|
|
2951
3051
|
* @param {string} scenarioId the Scenario identifier
|
|
@@ -3410,7 +3510,7 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
|
|
|
3410
3510
|
},
|
|
3411
3511
|
/**
|
|
3412
3512
|
*
|
|
3413
|
-
* @summary
|
|
3513
|
+
* @summary Get a control access for the Scenario
|
|
3414
3514
|
* @param {string} organizationId the Organization identifier
|
|
3415
3515
|
* @param {string} workspaceId the Workspace identifier
|
|
3416
3516
|
* @param {string} scenarioId the Scenario identifier
|
|
@@ -3877,15 +3977,15 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
|
|
|
3877
3977
|
},
|
|
3878
3978
|
/**
|
|
3879
3979
|
*
|
|
3880
|
-
* @summary
|
|
3980
|
+
* @summary Set the Scenario default security
|
|
3881
3981
|
* @param {string} organizationId the Organization identifier
|
|
3882
3982
|
* @param {string} workspaceId the Workspace identifier
|
|
3883
3983
|
* @param {string} scenarioId the Scenario identifier
|
|
3884
|
-
* @param {
|
|
3984
|
+
* @param {ScenarioRole} scenarioRole the new Scenario default security.
|
|
3885
3985
|
* @param {*} [options] Override http request option.
|
|
3886
3986
|
* @throws {RequiredError}
|
|
3887
3987
|
*/
|
|
3888
|
-
setScenarioDefaultSecurity: function (organizationId, workspaceId, scenarioId,
|
|
3988
|
+
setScenarioDefaultSecurity: function (organizationId, workspaceId, scenarioId, scenarioRole, options) {
|
|
3889
3989
|
if (options === void 0) { options = {}; }
|
|
3890
3990
|
return __awaiter(_this, void 0, void 0, function () {
|
|
3891
3991
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -3898,8 +3998,8 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
|
|
|
3898
3998
|
common_1.assertParamExists('setScenarioDefaultSecurity', 'workspaceId', workspaceId);
|
|
3899
3999
|
// verify required parameter 'scenarioId' is not null or undefined
|
|
3900
4000
|
common_1.assertParamExists('setScenarioDefaultSecurity', 'scenarioId', scenarioId);
|
|
3901
|
-
// verify required parameter '
|
|
3902
|
-
common_1.assertParamExists('setScenarioDefaultSecurity', '
|
|
4001
|
+
// verify required parameter 'scenarioRole' is not null or undefined
|
|
4002
|
+
common_1.assertParamExists('setScenarioDefaultSecurity', 'scenarioRole', scenarioRole);
|
|
3903
4003
|
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/default"
|
|
3904
4004
|
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
3905
4005
|
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
|
|
@@ -3922,7 +4022,7 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
|
|
|
3922
4022
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3923
4023
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3924
4024
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3925
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
4025
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(scenarioRole, localVarRequestOptions, configuration);
|
|
3926
4026
|
return [2 /*return*/, {
|
|
3927
4027
|
url: common_1.toPathString(localVarUrlObj),
|
|
3928
4028
|
options: localVarRequestOptions,
|
|
@@ -3987,6 +4087,66 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
|
|
|
3987
4087
|
});
|
|
3988
4088
|
});
|
|
3989
4089
|
},
|
|
4090
|
+
/**
|
|
4091
|
+
*
|
|
4092
|
+
* @summary Update the specified access to User for a Scenario
|
|
4093
|
+
* @param {string} organizationId the Organization identifier
|
|
4094
|
+
* @param {string} workspaceId the Workspace identifier
|
|
4095
|
+
* @param {string} scenarioId the Scenario identifier
|
|
4096
|
+
* @param {string} identityId the User identifier
|
|
4097
|
+
* @param {ScenarioRole} scenarioRole The new Scenario Access Control
|
|
4098
|
+
* @param {*} [options] Override http request option.
|
|
4099
|
+
* @throws {RequiredError}
|
|
4100
|
+
*/
|
|
4101
|
+
updateScenarioAccessControl: function (organizationId, workspaceId, scenarioId, identityId, scenarioRole, options) {
|
|
4102
|
+
if (options === void 0) { options = {}; }
|
|
4103
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
4104
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
4105
|
+
return __generator(this, function (_a) {
|
|
4106
|
+
switch (_a.label) {
|
|
4107
|
+
case 0:
|
|
4108
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
4109
|
+
common_1.assertParamExists('updateScenarioAccessControl', 'organizationId', organizationId);
|
|
4110
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
4111
|
+
common_1.assertParamExists('updateScenarioAccessControl', 'workspaceId', workspaceId);
|
|
4112
|
+
// verify required parameter 'scenarioId' is not null or undefined
|
|
4113
|
+
common_1.assertParamExists('updateScenarioAccessControl', 'scenarioId', scenarioId);
|
|
4114
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
4115
|
+
common_1.assertParamExists('updateScenarioAccessControl', 'identityId', identityId);
|
|
4116
|
+
// verify required parameter 'scenarioRole' is not null or undefined
|
|
4117
|
+
common_1.assertParamExists('updateScenarioAccessControl', 'scenarioRole', scenarioRole);
|
|
4118
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/access/{identity_id}"
|
|
4119
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
4120
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
|
|
4121
|
+
.replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)))
|
|
4122
|
+
.replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
|
|
4123
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4124
|
+
if (configuration) {
|
|
4125
|
+
baseOptions = configuration.baseOptions;
|
|
4126
|
+
}
|
|
4127
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
4128
|
+
localVarHeaderParameter = {};
|
|
4129
|
+
localVarQueryParameter = {};
|
|
4130
|
+
// authentication oAuth2AuthCode required
|
|
4131
|
+
// oauth required
|
|
4132
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
4133
|
+
case 1:
|
|
4134
|
+
// authentication oAuth2AuthCode required
|
|
4135
|
+
// oauth required
|
|
4136
|
+
_a.sent();
|
|
4137
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4138
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4139
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4140
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4141
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(scenarioRole, localVarRequestOptions, configuration);
|
|
4142
|
+
return [2 /*return*/, {
|
|
4143
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
4144
|
+
options: localVarRequestOptions,
|
|
4145
|
+
}];
|
|
4146
|
+
}
|
|
4147
|
+
});
|
|
4148
|
+
});
|
|
4149
|
+
},
|
|
3990
4150
|
};
|
|
3991
4151
|
};
|
|
3992
4152
|
/**
|
|
@@ -4021,7 +4181,7 @@ exports.ScenarioApiFp = function (configuration) {
|
|
|
4021
4181
|
},
|
|
4022
4182
|
/**
|
|
4023
4183
|
*
|
|
4024
|
-
* @summary
|
|
4184
|
+
* @summary Add a control access to the Scenario
|
|
4025
4185
|
* @param {string} organizationId the Organization identifier
|
|
4026
4186
|
* @param {string} workspaceId the Workspace identifier
|
|
4027
4187
|
* @param {string} scenarioId the Scenario identifier
|
|
@@ -4220,7 +4380,7 @@ exports.ScenarioApiFp = function (configuration) {
|
|
|
4220
4380
|
},
|
|
4221
4381
|
/**
|
|
4222
4382
|
*
|
|
4223
|
-
* @summary
|
|
4383
|
+
* @summary Get a control access for the Scenario
|
|
4224
4384
|
* @param {string} organizationId the Organization identifier
|
|
4225
4385
|
* @param {string} workspaceId the Workspace identifier
|
|
4226
4386
|
* @param {string} scenarioId the Scenario identifier
|
|
@@ -4420,20 +4580,20 @@ exports.ScenarioApiFp = function (configuration) {
|
|
|
4420
4580
|
},
|
|
4421
4581
|
/**
|
|
4422
4582
|
*
|
|
4423
|
-
* @summary
|
|
4583
|
+
* @summary Set the Scenario default security
|
|
4424
4584
|
* @param {string} organizationId the Organization identifier
|
|
4425
4585
|
* @param {string} workspaceId the Workspace identifier
|
|
4426
4586
|
* @param {string} scenarioId the Scenario identifier
|
|
4427
|
-
* @param {
|
|
4587
|
+
* @param {ScenarioRole} scenarioRole the new Scenario default security.
|
|
4428
4588
|
* @param {*} [options] Override http request option.
|
|
4429
4589
|
* @throws {RequiredError}
|
|
4430
4590
|
*/
|
|
4431
|
-
setScenarioDefaultSecurity: function (organizationId, workspaceId, scenarioId,
|
|
4591
|
+
setScenarioDefaultSecurity: function (organizationId, workspaceId, scenarioId, scenarioRole, options) {
|
|
4432
4592
|
return __awaiter(this, void 0, void 0, function () {
|
|
4433
4593
|
var localVarAxiosArgs;
|
|
4434
4594
|
return __generator(this, function (_a) {
|
|
4435
4595
|
switch (_a.label) {
|
|
4436
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId,
|
|
4596
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, scenarioRole, options)];
|
|
4437
4597
|
case 1:
|
|
4438
4598
|
localVarAxiosArgs = _a.sent();
|
|
4439
4599
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -4464,6 +4624,30 @@ exports.ScenarioApiFp = function (configuration) {
|
|
|
4464
4624
|
});
|
|
4465
4625
|
});
|
|
4466
4626
|
},
|
|
4627
|
+
/**
|
|
4628
|
+
*
|
|
4629
|
+
* @summary Update the specified access to User for a Scenario
|
|
4630
|
+
* @param {string} organizationId the Organization identifier
|
|
4631
|
+
* @param {string} workspaceId the Workspace identifier
|
|
4632
|
+
* @param {string} scenarioId the Scenario identifier
|
|
4633
|
+
* @param {string} identityId the User identifier
|
|
4634
|
+
* @param {ScenarioRole} scenarioRole The new Scenario Access Control
|
|
4635
|
+
* @param {*} [options] Override http request option.
|
|
4636
|
+
* @throws {RequiredError}
|
|
4637
|
+
*/
|
|
4638
|
+
updateScenarioAccessControl: function (organizationId, workspaceId, scenarioId, identityId, scenarioRole, options) {
|
|
4639
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4640
|
+
var localVarAxiosArgs;
|
|
4641
|
+
return __generator(this, function (_a) {
|
|
4642
|
+
switch (_a.label) {
|
|
4643
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, scenarioRole, options)];
|
|
4644
|
+
case 1:
|
|
4645
|
+
localVarAxiosArgs = _a.sent();
|
|
4646
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
4647
|
+
}
|
|
4648
|
+
});
|
|
4649
|
+
});
|
|
4650
|
+
},
|
|
4467
4651
|
};
|
|
4468
4652
|
};
|
|
4469
4653
|
/**
|
|
@@ -4488,7 +4672,7 @@ exports.ScenarioApiFactory = function (configuration, basePath, axios) {
|
|
|
4488
4672
|
},
|
|
4489
4673
|
/**
|
|
4490
4674
|
*
|
|
4491
|
-
* @summary
|
|
4675
|
+
* @summary Add a control access to the Scenario
|
|
4492
4676
|
* @param {string} organizationId the Organization identifier
|
|
4493
4677
|
* @param {string} workspaceId the Workspace identifier
|
|
4494
4678
|
* @param {string} scenarioId the Scenario identifier
|
|
@@ -4597,7 +4781,7 @@ exports.ScenarioApiFactory = function (configuration, basePath, axios) {
|
|
|
4597
4781
|
},
|
|
4598
4782
|
/**
|
|
4599
4783
|
*
|
|
4600
|
-
* @summary
|
|
4784
|
+
* @summary Get a control access for the Scenario
|
|
4601
4785
|
* @param {string} organizationId the Organization identifier
|
|
4602
4786
|
* @param {string} workspaceId the Workspace identifier
|
|
4603
4787
|
* @param {string} scenarioId the Scenario identifier
|
|
@@ -4707,16 +4891,16 @@ exports.ScenarioApiFactory = function (configuration, basePath, axios) {
|
|
|
4707
4891
|
},
|
|
4708
4892
|
/**
|
|
4709
4893
|
*
|
|
4710
|
-
* @summary
|
|
4894
|
+
* @summary Set the Scenario default security
|
|
4711
4895
|
* @param {string} organizationId the Organization identifier
|
|
4712
4896
|
* @param {string} workspaceId the Workspace identifier
|
|
4713
4897
|
* @param {string} scenarioId the Scenario identifier
|
|
4714
|
-
* @param {
|
|
4898
|
+
* @param {ScenarioRole} scenarioRole the new Scenario default security.
|
|
4715
4899
|
* @param {*} [options] Override http request option.
|
|
4716
4900
|
* @throws {RequiredError}
|
|
4717
4901
|
*/
|
|
4718
|
-
setScenarioDefaultSecurity: function (organizationId, workspaceId, scenarioId,
|
|
4719
|
-
return localVarFp.setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId,
|
|
4902
|
+
setScenarioDefaultSecurity: function (organizationId, workspaceId, scenarioId, scenarioRole, options) {
|
|
4903
|
+
return localVarFp.setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, scenarioRole, options).then(function (request) { return request(axios, basePath); });
|
|
4720
4904
|
},
|
|
4721
4905
|
/**
|
|
4722
4906
|
*
|
|
@@ -4731,6 +4915,20 @@ exports.ScenarioApiFactory = function (configuration, basePath, axios) {
|
|
|
4731
4915
|
updateScenario: function (organizationId, workspaceId, scenarioId, scenario, options) {
|
|
4732
4916
|
return localVarFp.updateScenario(organizationId, workspaceId, scenarioId, scenario, options).then(function (request) { return request(axios, basePath); });
|
|
4733
4917
|
},
|
|
4918
|
+
/**
|
|
4919
|
+
*
|
|
4920
|
+
* @summary Update the specified access to User for a Scenario
|
|
4921
|
+
* @param {string} organizationId the Organization identifier
|
|
4922
|
+
* @param {string} workspaceId the Workspace identifier
|
|
4923
|
+
* @param {string} scenarioId the Scenario identifier
|
|
4924
|
+
* @param {string} identityId the User identifier
|
|
4925
|
+
* @param {ScenarioRole} scenarioRole The new Scenario Access Control
|
|
4926
|
+
* @param {*} [options] Override http request option.
|
|
4927
|
+
* @throws {RequiredError}
|
|
4928
|
+
*/
|
|
4929
|
+
updateScenarioAccessControl: function (organizationId, workspaceId, scenarioId, identityId, scenarioRole, options) {
|
|
4930
|
+
return localVarFp.updateScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, scenarioRole, options).then(function (request) { return request(axios, basePath); });
|
|
4931
|
+
},
|
|
4734
4932
|
};
|
|
4735
4933
|
};
|
|
4736
4934
|
/**
|
|
@@ -4761,7 +4959,7 @@ var ScenarioApi = /** @class */ (function (_super) {
|
|
|
4761
4959
|
};
|
|
4762
4960
|
/**
|
|
4763
4961
|
*
|
|
4764
|
-
* @summary
|
|
4962
|
+
* @summary Add a control access to the Scenario
|
|
4765
4963
|
* @param {string} organizationId the Organization identifier
|
|
4766
4964
|
* @param {string} workspaceId the Workspace identifier
|
|
4767
4965
|
* @param {string} scenarioId the Scenario identifier
|
|
@@ -4888,7 +5086,7 @@ var ScenarioApi = /** @class */ (function (_super) {
|
|
|
4888
5086
|
};
|
|
4889
5087
|
/**
|
|
4890
5088
|
*
|
|
4891
|
-
* @summary
|
|
5089
|
+
* @summary Get a control access for the Scenario
|
|
4892
5090
|
* @param {string} organizationId the Organization identifier
|
|
4893
5091
|
* @param {string} workspaceId the Workspace identifier
|
|
4894
5092
|
* @param {string} scenarioId the Scenario identifier
|
|
@@ -5016,18 +5214,18 @@ var ScenarioApi = /** @class */ (function (_super) {
|
|
|
5016
5214
|
};
|
|
5017
5215
|
/**
|
|
5018
5216
|
*
|
|
5019
|
-
* @summary
|
|
5217
|
+
* @summary Set the Scenario default security
|
|
5020
5218
|
* @param {string} organizationId the Organization identifier
|
|
5021
5219
|
* @param {string} workspaceId the Workspace identifier
|
|
5022
5220
|
* @param {string} scenarioId the Scenario identifier
|
|
5023
|
-
* @param {
|
|
5221
|
+
* @param {ScenarioRole} scenarioRole the new Scenario default security.
|
|
5024
5222
|
* @param {*} [options] Override http request option.
|
|
5025
5223
|
* @throws {RequiredError}
|
|
5026
5224
|
* @memberof ScenarioApi
|
|
5027
5225
|
*/
|
|
5028
|
-
ScenarioApi.prototype.setScenarioDefaultSecurity = function (organizationId, workspaceId, scenarioId,
|
|
5226
|
+
ScenarioApi.prototype.setScenarioDefaultSecurity = function (organizationId, workspaceId, scenarioId, scenarioRole, options) {
|
|
5029
5227
|
var _this = this;
|
|
5030
|
-
return exports.ScenarioApiFp(this.configuration).setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId,
|
|
5228
|
+
return exports.ScenarioApiFp(this.configuration).setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, scenarioRole, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5031
5229
|
};
|
|
5032
5230
|
/**
|
|
5033
5231
|
*
|
|
@@ -5044,6 +5242,22 @@ var ScenarioApi = /** @class */ (function (_super) {
|
|
|
5044
5242
|
var _this = this;
|
|
5045
5243
|
return exports.ScenarioApiFp(this.configuration).updateScenario(organizationId, workspaceId, scenarioId, scenario, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5046
5244
|
};
|
|
5245
|
+
/**
|
|
5246
|
+
*
|
|
5247
|
+
* @summary Update the specified access to User for a Scenario
|
|
5248
|
+
* @param {string} organizationId the Organization identifier
|
|
5249
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5250
|
+
* @param {string} scenarioId the Scenario identifier
|
|
5251
|
+
* @param {string} identityId the User identifier
|
|
5252
|
+
* @param {ScenarioRole} scenarioRole The new Scenario Access Control
|
|
5253
|
+
* @param {*} [options] Override http request option.
|
|
5254
|
+
* @throws {RequiredError}
|
|
5255
|
+
* @memberof ScenarioApi
|
|
5256
|
+
*/
|
|
5257
|
+
ScenarioApi.prototype.updateScenarioAccessControl = function (organizationId, workspaceId, scenarioId, identityId, scenarioRole, options) {
|
|
5258
|
+
var _this = this;
|
|
5259
|
+
return exports.ScenarioApiFp(this.configuration).updateScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, scenarioRole, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5260
|
+
};
|
|
5047
5261
|
return ScenarioApi;
|
|
5048
5262
|
}(base_1.BaseAPI));
|
|
5049
5263
|
exports.ScenarioApi = ScenarioApi;
|
|
@@ -5056,7 +5270,7 @@ exports.ScenariorunApiAxiosParamCreator = function (configuration) {
|
|
|
5056
5270
|
return {
|
|
5057
5271
|
/**
|
|
5058
5272
|
*
|
|
5059
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
5273
|
+
* @summary Delete all historical ScenarioRuns in the Organization
|
|
5060
5274
|
* @param {string} organizationId the Organization identifier
|
|
5061
5275
|
* @param {*} [options] Override http request option.
|
|
5062
5276
|
* @throws {RequiredError}
|
|
@@ -5070,7 +5284,7 @@ exports.ScenariorunApiAxiosParamCreator = function (configuration) {
|
|
|
5070
5284
|
case 0:
|
|
5071
5285
|
// verify required parameter 'organizationId' is not null or undefined
|
|
5072
5286
|
common_1.assertParamExists('deleteHistoricalDataOrganization', 'organizationId', organizationId);
|
|
5073
|
-
localVarPath = "/organizations/{organization_id}/scenarioruns/
|
|
5287
|
+
localVarPath = "/organizations/{organization_id}/scenarioruns/historicaldata"
|
|
5074
5288
|
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
|
|
5075
5289
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5076
5290
|
if (configuration) {
|
|
@@ -5097,6 +5311,53 @@ exports.ScenariorunApiAxiosParamCreator = function (configuration) {
|
|
|
5097
5311
|
});
|
|
5098
5312
|
});
|
|
5099
5313
|
},
|
|
5314
|
+
/**
|
|
5315
|
+
*
|
|
5316
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
5317
|
+
* @param {string} organizationId the Organization identifier
|
|
5318
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5319
|
+
* @param {*} [options] Override http request option.
|
|
5320
|
+
* @throws {RequiredError}
|
|
5321
|
+
*/
|
|
5322
|
+
deleteHistoricalDataWorkspace: function (organizationId, workspaceId, options) {
|
|
5323
|
+
if (options === void 0) { options = {}; }
|
|
5324
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
5325
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5326
|
+
return __generator(this, function (_a) {
|
|
5327
|
+
switch (_a.label) {
|
|
5328
|
+
case 0:
|
|
5329
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
5330
|
+
common_1.assertParamExists('deleteHistoricalDataWorkspace', 'organizationId', organizationId);
|
|
5331
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
5332
|
+
common_1.assertParamExists('deleteHistoricalDataWorkspace', 'workspaceId', workspaceId);
|
|
5333
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarioruns/historicaldata"
|
|
5334
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
5335
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
|
|
5336
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5337
|
+
if (configuration) {
|
|
5338
|
+
baseOptions = configuration.baseOptions;
|
|
5339
|
+
}
|
|
5340
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
5341
|
+
localVarHeaderParameter = {};
|
|
5342
|
+
localVarQueryParameter = {};
|
|
5343
|
+
// authentication oAuth2AuthCode required
|
|
5344
|
+
// oauth required
|
|
5345
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
5346
|
+
case 1:
|
|
5347
|
+
// authentication oAuth2AuthCode required
|
|
5348
|
+
// oauth required
|
|
5349
|
+
_a.sent();
|
|
5350
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5351
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5352
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5353
|
+
return [2 /*return*/, {
|
|
5354
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
5355
|
+
options: localVarRequestOptions,
|
|
5356
|
+
}];
|
|
5357
|
+
}
|
|
5358
|
+
});
|
|
5359
|
+
});
|
|
5360
|
+
},
|
|
5100
5361
|
/**
|
|
5101
5362
|
*
|
|
5102
5363
|
* @summary Delete all historical ScenarioRuns for the Scenario
|
|
@@ -5686,7 +5947,7 @@ exports.ScenariorunApiFp = function (configuration) {
|
|
|
5686
5947
|
return {
|
|
5687
5948
|
/**
|
|
5688
5949
|
*
|
|
5689
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
5950
|
+
* @summary Delete all historical ScenarioRuns in the Organization
|
|
5690
5951
|
* @param {string} organizationId the Organization identifier
|
|
5691
5952
|
* @param {*} [options] Override http request option.
|
|
5692
5953
|
* @throws {RequiredError}
|
|
@@ -5704,6 +5965,27 @@ exports.ScenariorunApiFp = function (configuration) {
|
|
|
5704
5965
|
});
|
|
5705
5966
|
});
|
|
5706
5967
|
},
|
|
5968
|
+
/**
|
|
5969
|
+
*
|
|
5970
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
5971
|
+
* @param {string} organizationId the Organization identifier
|
|
5972
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5973
|
+
* @param {*} [options] Override http request option.
|
|
5974
|
+
* @throws {RequiredError}
|
|
5975
|
+
*/
|
|
5976
|
+
deleteHistoricalDataWorkspace: function (organizationId, workspaceId, options) {
|
|
5977
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5978
|
+
var localVarAxiosArgs;
|
|
5979
|
+
return __generator(this, function (_a) {
|
|
5980
|
+
switch (_a.label) {
|
|
5981
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteHistoricalDataWorkspace(organizationId, workspaceId, options)];
|
|
5982
|
+
case 1:
|
|
5983
|
+
localVarAxiosArgs = _a.sent();
|
|
5984
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
5985
|
+
}
|
|
5986
|
+
});
|
|
5987
|
+
});
|
|
5988
|
+
},
|
|
5707
5989
|
/**
|
|
5708
5990
|
*
|
|
5709
5991
|
* @summary Delete all historical ScenarioRuns for the Scenario
|
|
@@ -5970,7 +6252,7 @@ exports.ScenariorunApiFactory = function (configuration, basePath, axios) {
|
|
|
5970
6252
|
return {
|
|
5971
6253
|
/**
|
|
5972
6254
|
*
|
|
5973
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
6255
|
+
* @summary Delete all historical ScenarioRuns in the Organization
|
|
5974
6256
|
* @param {string} organizationId the Organization identifier
|
|
5975
6257
|
* @param {*} [options] Override http request option.
|
|
5976
6258
|
* @throws {RequiredError}
|
|
@@ -5978,6 +6260,17 @@ exports.ScenariorunApiFactory = function (configuration, basePath, axios) {
|
|
|
5978
6260
|
deleteHistoricalDataOrganization: function (organizationId, options) {
|
|
5979
6261
|
return localVarFp.deleteHistoricalDataOrganization(organizationId, options).then(function (request) { return request(axios, basePath); });
|
|
5980
6262
|
},
|
|
6263
|
+
/**
|
|
6264
|
+
*
|
|
6265
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
6266
|
+
* @param {string} organizationId the Organization identifier
|
|
6267
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6268
|
+
* @param {*} [options] Override http request option.
|
|
6269
|
+
* @throws {RequiredError}
|
|
6270
|
+
*/
|
|
6271
|
+
deleteHistoricalDataWorkspace: function (organizationId, workspaceId, options) {
|
|
6272
|
+
return localVarFp.deleteHistoricalDataWorkspace(organizationId, workspaceId, options).then(function (request) { return request(axios, basePath); });
|
|
6273
|
+
},
|
|
5981
6274
|
/**
|
|
5982
6275
|
*
|
|
5983
6276
|
* @summary Delete all historical ScenarioRuns for the Scenario
|
|
@@ -6128,7 +6421,7 @@ var ScenariorunApi = /** @class */ (function (_super) {
|
|
|
6128
6421
|
}
|
|
6129
6422
|
/**
|
|
6130
6423
|
*
|
|
6131
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
6424
|
+
* @summary Delete all historical ScenarioRuns in the Organization
|
|
6132
6425
|
* @param {string} organizationId the Organization identifier
|
|
6133
6426
|
* @param {*} [options] Override http request option.
|
|
6134
6427
|
* @throws {RequiredError}
|
|
@@ -6138,6 +6431,19 @@ var ScenariorunApi = /** @class */ (function (_super) {
|
|
|
6138
6431
|
var _this = this;
|
|
6139
6432
|
return exports.ScenariorunApiFp(this.configuration).deleteHistoricalDataOrganization(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6140
6433
|
};
|
|
6434
|
+
/**
|
|
6435
|
+
*
|
|
6436
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
6437
|
+
* @param {string} organizationId the Organization identifier
|
|
6438
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6439
|
+
* @param {*} [options] Override http request option.
|
|
6440
|
+
* @throws {RequiredError}
|
|
6441
|
+
* @memberof ScenariorunApi
|
|
6442
|
+
*/
|
|
6443
|
+
ScenariorunApi.prototype.deleteHistoricalDataWorkspace = function (organizationId, workspaceId, options) {
|
|
6444
|
+
var _this = this;
|
|
6445
|
+
return exports.ScenariorunApiFp(this.configuration).deleteHistoricalDataWorkspace(organizationId, workspaceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6446
|
+
};
|
|
6141
6447
|
/**
|
|
6142
6448
|
*
|
|
6143
6449
|
* @summary Delete all historical ScenarioRuns for the Scenario
|
|
@@ -9593,7 +9899,7 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
9593
9899
|
return {
|
|
9594
9900
|
/**
|
|
9595
9901
|
*
|
|
9596
|
-
* @summary
|
|
9902
|
+
* @summary Add a control access to the Workspace
|
|
9597
9903
|
* @param {string} organizationId the Organization identifier
|
|
9598
9904
|
* @param {string} workspaceId the Workspace identifier
|
|
9599
9905
|
* @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
|
|
@@ -10030,7 +10336,7 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
10030
10336
|
},
|
|
10031
10337
|
/**
|
|
10032
10338
|
*
|
|
10033
|
-
* @summary
|
|
10339
|
+
* @summary Get a control access for the Workspace
|
|
10034
10340
|
* @param {string} organizationId the Organization identifier
|
|
10035
10341
|
* @param {string} workspaceId the Workspace identifier
|
|
10036
10342
|
* @param {string} identityId the User identifier
|
|
@@ -10277,14 +10583,14 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
10277
10583
|
},
|
|
10278
10584
|
/**
|
|
10279
10585
|
*
|
|
10280
|
-
* @summary
|
|
10586
|
+
* @summary Set the Workspace default security
|
|
10281
10587
|
* @param {string} organizationId the Organization identifier
|
|
10282
10588
|
* @param {string} workspaceId the Workspace identifier
|
|
10283
|
-
* @param {
|
|
10589
|
+
* @param {WorkspaceRole} workspaceRole the new Workspace default security.
|
|
10284
10590
|
* @param {*} [options] Override http request option.
|
|
10285
10591
|
* @throws {RequiredError}
|
|
10286
10592
|
*/
|
|
10287
|
-
setWorkspaceDefaultSecurity: function (organizationId, workspaceId,
|
|
10593
|
+
setWorkspaceDefaultSecurity: function (organizationId, workspaceId, workspaceRole, options) {
|
|
10288
10594
|
if (options === void 0) { options = {}; }
|
|
10289
10595
|
return __awaiter(_this, void 0, void 0, function () {
|
|
10290
10596
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -10295,8 +10601,8 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
10295
10601
|
common_1.assertParamExists('setWorkspaceDefaultSecurity', 'organizationId', organizationId);
|
|
10296
10602
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
10297
10603
|
common_1.assertParamExists('setWorkspaceDefaultSecurity', 'workspaceId', workspaceId);
|
|
10298
|
-
// verify required parameter '
|
|
10299
|
-
common_1.assertParamExists('setWorkspaceDefaultSecurity', '
|
|
10604
|
+
// verify required parameter 'workspaceRole' is not null or undefined
|
|
10605
|
+
common_1.assertParamExists('setWorkspaceDefaultSecurity', 'workspaceRole', workspaceRole);
|
|
10300
10606
|
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/security/default"
|
|
10301
10607
|
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
10302
10608
|
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
|
|
@@ -10318,7 +10624,7 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
10318
10624
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10319
10625
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10320
10626
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10321
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
10627
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(workspaceRole, localVarRequestOptions, configuration);
|
|
10322
10628
|
return [2 /*return*/, {
|
|
10323
10629
|
url: common_1.toPathString(localVarUrlObj),
|
|
10324
10630
|
options: localVarRequestOptions,
|
|
@@ -10332,7 +10638,7 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
10332
10638
|
* @summary Update a workspace
|
|
10333
10639
|
* @param {string} organizationId the Organization identifier
|
|
10334
10640
|
* @param {string} workspaceId the Workspace identifier
|
|
10335
|
-
* @param {Workspace} workspace
|
|
10641
|
+
* @param {Workspace} workspace The new Workspace details.
|
|
10336
10642
|
* @param {*} [options] Override http request option.
|
|
10337
10643
|
* @throws {RequiredError}
|
|
10338
10644
|
*/
|
|
@@ -10379,6 +10685,62 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
10379
10685
|
});
|
|
10380
10686
|
});
|
|
10381
10687
|
},
|
|
10688
|
+
/**
|
|
10689
|
+
*
|
|
10690
|
+
* @summary Update the specified access to User for a Workspace
|
|
10691
|
+
* @param {string} organizationId the Organization identifier
|
|
10692
|
+
* @param {string} workspaceId the Workspace identifier
|
|
10693
|
+
* @param {string} identityId the User identifier
|
|
10694
|
+
* @param {WorkspaceRole} workspaceRole The new Workspace Access Control
|
|
10695
|
+
* @param {*} [options] Override http request option.
|
|
10696
|
+
* @throws {RequiredError}
|
|
10697
|
+
*/
|
|
10698
|
+
updateWorkspaceAccessControl: function (organizationId, workspaceId, identityId, workspaceRole, options) {
|
|
10699
|
+
if (options === void 0) { options = {}; }
|
|
10700
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
10701
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10702
|
+
return __generator(this, function (_a) {
|
|
10703
|
+
switch (_a.label) {
|
|
10704
|
+
case 0:
|
|
10705
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
10706
|
+
common_1.assertParamExists('updateWorkspaceAccessControl', 'organizationId', organizationId);
|
|
10707
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
10708
|
+
common_1.assertParamExists('updateWorkspaceAccessControl', 'workspaceId', workspaceId);
|
|
10709
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
10710
|
+
common_1.assertParamExists('updateWorkspaceAccessControl', 'identityId', identityId);
|
|
10711
|
+
// verify required parameter 'workspaceRole' is not null or undefined
|
|
10712
|
+
common_1.assertParamExists('updateWorkspaceAccessControl', 'workspaceRole', workspaceRole);
|
|
10713
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id}"
|
|
10714
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
10715
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
|
|
10716
|
+
.replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
|
|
10717
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10718
|
+
if (configuration) {
|
|
10719
|
+
baseOptions = configuration.baseOptions;
|
|
10720
|
+
}
|
|
10721
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
10722
|
+
localVarHeaderParameter = {};
|
|
10723
|
+
localVarQueryParameter = {};
|
|
10724
|
+
// authentication oAuth2AuthCode required
|
|
10725
|
+
// oauth required
|
|
10726
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
10727
|
+
case 1:
|
|
10728
|
+
// authentication oAuth2AuthCode required
|
|
10729
|
+
// oauth required
|
|
10730
|
+
_a.sent();
|
|
10731
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10732
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10733
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10734
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10735
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(workspaceRole, localVarRequestOptions, configuration);
|
|
10736
|
+
return [2 /*return*/, {
|
|
10737
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
10738
|
+
options: localVarRequestOptions,
|
|
10739
|
+
}];
|
|
10740
|
+
}
|
|
10741
|
+
});
|
|
10742
|
+
});
|
|
10743
|
+
},
|
|
10382
10744
|
/**
|
|
10383
10745
|
*
|
|
10384
10746
|
* @summary Upload a file for the Workspace
|
|
@@ -10454,7 +10816,7 @@ exports.WorkspaceApiFp = function (configuration) {
|
|
|
10454
10816
|
return {
|
|
10455
10817
|
/**
|
|
10456
10818
|
*
|
|
10457
|
-
* @summary
|
|
10819
|
+
* @summary Add a control access to the Workspace
|
|
10458
10820
|
* @param {string} organizationId the Organization identifier
|
|
10459
10821
|
* @param {string} workspaceId the Workspace identifier
|
|
10460
10822
|
* @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
|
|
@@ -10645,7 +11007,7 @@ exports.WorkspaceApiFp = function (configuration) {
|
|
|
10645
11007
|
},
|
|
10646
11008
|
/**
|
|
10647
11009
|
*
|
|
10648
|
-
* @summary
|
|
11010
|
+
* @summary Get a control access for the Workspace
|
|
10649
11011
|
* @param {string} organizationId the Organization identifier
|
|
10650
11012
|
* @param {string} workspaceId the Workspace identifier
|
|
10651
11013
|
* @param {string} identityId the User identifier
|
|
@@ -10753,19 +11115,19 @@ exports.WorkspaceApiFp = function (configuration) {
|
|
|
10753
11115
|
},
|
|
10754
11116
|
/**
|
|
10755
11117
|
*
|
|
10756
|
-
* @summary
|
|
11118
|
+
* @summary Set the Workspace default security
|
|
10757
11119
|
* @param {string} organizationId the Organization identifier
|
|
10758
11120
|
* @param {string} workspaceId the Workspace identifier
|
|
10759
|
-
* @param {
|
|
11121
|
+
* @param {WorkspaceRole} workspaceRole the new Workspace default security.
|
|
10760
11122
|
* @param {*} [options] Override http request option.
|
|
10761
11123
|
* @throws {RequiredError}
|
|
10762
11124
|
*/
|
|
10763
|
-
setWorkspaceDefaultSecurity: function (organizationId, workspaceId,
|
|
11125
|
+
setWorkspaceDefaultSecurity: function (organizationId, workspaceId, workspaceRole, options) {
|
|
10764
11126
|
return __awaiter(this, void 0, void 0, function () {
|
|
10765
11127
|
var localVarAxiosArgs;
|
|
10766
11128
|
return __generator(this, function (_a) {
|
|
10767
11129
|
switch (_a.label) {
|
|
10768
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.setWorkspaceDefaultSecurity(organizationId, workspaceId,
|
|
11130
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.setWorkspaceDefaultSecurity(organizationId, workspaceId, workspaceRole, options)];
|
|
10769
11131
|
case 1:
|
|
10770
11132
|
localVarAxiosArgs = _a.sent();
|
|
10771
11133
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -10778,7 +11140,7 @@ exports.WorkspaceApiFp = function (configuration) {
|
|
|
10778
11140
|
* @summary Update a workspace
|
|
10779
11141
|
* @param {string} organizationId the Organization identifier
|
|
10780
11142
|
* @param {string} workspaceId the Workspace identifier
|
|
10781
|
-
* @param {Workspace} workspace
|
|
11143
|
+
* @param {Workspace} workspace The new Workspace details.
|
|
10782
11144
|
* @param {*} [options] Override http request option.
|
|
10783
11145
|
* @throws {RequiredError}
|
|
10784
11146
|
*/
|
|
@@ -10795,6 +11157,29 @@ exports.WorkspaceApiFp = function (configuration) {
|
|
|
10795
11157
|
});
|
|
10796
11158
|
});
|
|
10797
11159
|
},
|
|
11160
|
+
/**
|
|
11161
|
+
*
|
|
11162
|
+
* @summary Update the specified access to User for a Workspace
|
|
11163
|
+
* @param {string} organizationId the Organization identifier
|
|
11164
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11165
|
+
* @param {string} identityId the User identifier
|
|
11166
|
+
* @param {WorkspaceRole} workspaceRole The new Workspace Access Control
|
|
11167
|
+
* @param {*} [options] Override http request option.
|
|
11168
|
+
* @throws {RequiredError}
|
|
11169
|
+
*/
|
|
11170
|
+
updateWorkspaceAccessControl: function (organizationId, workspaceId, identityId, workspaceRole, options) {
|
|
11171
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11172
|
+
var localVarAxiosArgs;
|
|
11173
|
+
return __generator(this, function (_a) {
|
|
11174
|
+
switch (_a.label) {
|
|
11175
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateWorkspaceAccessControl(organizationId, workspaceId, identityId, workspaceRole, options)];
|
|
11176
|
+
case 1:
|
|
11177
|
+
localVarAxiosArgs = _a.sent();
|
|
11178
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
11179
|
+
}
|
|
11180
|
+
});
|
|
11181
|
+
});
|
|
11182
|
+
},
|
|
10798
11183
|
/**
|
|
10799
11184
|
*
|
|
10800
11185
|
* @summary Upload a file for the Workspace
|
|
@@ -10830,7 +11215,7 @@ exports.WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
10830
11215
|
return {
|
|
10831
11216
|
/**
|
|
10832
11217
|
*
|
|
10833
|
-
* @summary
|
|
11218
|
+
* @summary Add a control access to the Workspace
|
|
10834
11219
|
* @param {string} organizationId the Organization identifier
|
|
10835
11220
|
* @param {string} workspaceId the Workspace identifier
|
|
10836
11221
|
* @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
|
|
@@ -10931,7 +11316,7 @@ exports.WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
10931
11316
|
},
|
|
10932
11317
|
/**
|
|
10933
11318
|
*
|
|
10934
|
-
* @summary
|
|
11319
|
+
* @summary Get a control access for the Workspace
|
|
10935
11320
|
* @param {string} organizationId the Organization identifier
|
|
10936
11321
|
* @param {string} workspaceId the Workspace identifier
|
|
10937
11322
|
* @param {string} identityId the User identifier
|
|
@@ -10989,28 +11374,41 @@ exports.WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
10989
11374
|
},
|
|
10990
11375
|
/**
|
|
10991
11376
|
*
|
|
10992
|
-
* @summary
|
|
11377
|
+
* @summary Set the Workspace default security
|
|
10993
11378
|
* @param {string} organizationId the Organization identifier
|
|
10994
11379
|
* @param {string} workspaceId the Workspace identifier
|
|
10995
|
-
* @param {
|
|
11380
|
+
* @param {WorkspaceRole} workspaceRole the new Workspace default security.
|
|
10996
11381
|
* @param {*} [options] Override http request option.
|
|
10997
11382
|
* @throws {RequiredError}
|
|
10998
11383
|
*/
|
|
10999
|
-
setWorkspaceDefaultSecurity: function (organizationId, workspaceId,
|
|
11000
|
-
return localVarFp.setWorkspaceDefaultSecurity(organizationId, workspaceId,
|
|
11384
|
+
setWorkspaceDefaultSecurity: function (organizationId, workspaceId, workspaceRole, options) {
|
|
11385
|
+
return localVarFp.setWorkspaceDefaultSecurity(organizationId, workspaceId, workspaceRole, options).then(function (request) { return request(axios, basePath); });
|
|
11001
11386
|
},
|
|
11002
11387
|
/**
|
|
11003
11388
|
*
|
|
11004
11389
|
* @summary Update a workspace
|
|
11005
11390
|
* @param {string} organizationId the Organization identifier
|
|
11006
11391
|
* @param {string} workspaceId the Workspace identifier
|
|
11007
|
-
* @param {Workspace} workspace
|
|
11392
|
+
* @param {Workspace} workspace The new Workspace details.
|
|
11008
11393
|
* @param {*} [options] Override http request option.
|
|
11009
11394
|
* @throws {RequiredError}
|
|
11010
11395
|
*/
|
|
11011
11396
|
updateWorkspace: function (organizationId, workspaceId, workspace, options) {
|
|
11012
11397
|
return localVarFp.updateWorkspace(organizationId, workspaceId, workspace, options).then(function (request) { return request(axios, basePath); });
|
|
11013
11398
|
},
|
|
11399
|
+
/**
|
|
11400
|
+
*
|
|
11401
|
+
* @summary Update the specified access to User for a Workspace
|
|
11402
|
+
* @param {string} organizationId the Organization identifier
|
|
11403
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11404
|
+
* @param {string} identityId the User identifier
|
|
11405
|
+
* @param {WorkspaceRole} workspaceRole The new Workspace Access Control
|
|
11406
|
+
* @param {*} [options] Override http request option.
|
|
11407
|
+
* @throws {RequiredError}
|
|
11408
|
+
*/
|
|
11409
|
+
updateWorkspaceAccessControl: function (organizationId, workspaceId, identityId, workspaceRole, options) {
|
|
11410
|
+
return localVarFp.updateWorkspaceAccessControl(organizationId, workspaceId, identityId, workspaceRole, options).then(function (request) { return request(axios, basePath); });
|
|
11411
|
+
},
|
|
11014
11412
|
/**
|
|
11015
11413
|
*
|
|
11016
11414
|
* @summary Upload a file for the Workspace
|
|
@@ -11040,7 +11438,7 @@ var WorkspaceApi = /** @class */ (function (_super) {
|
|
|
11040
11438
|
}
|
|
11041
11439
|
/**
|
|
11042
11440
|
*
|
|
11043
|
-
* @summary
|
|
11441
|
+
* @summary Add a control access to the Workspace
|
|
11044
11442
|
* @param {string} organizationId the Organization identifier
|
|
11045
11443
|
* @param {string} workspaceId the Workspace identifier
|
|
11046
11444
|
* @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
|
|
@@ -11159,7 +11557,7 @@ var WorkspaceApi = /** @class */ (function (_super) {
|
|
|
11159
11557
|
};
|
|
11160
11558
|
/**
|
|
11161
11559
|
*
|
|
11162
|
-
* @summary
|
|
11560
|
+
* @summary Get a control access for the Workspace
|
|
11163
11561
|
* @param {string} organizationId the Organization identifier
|
|
11164
11562
|
* @param {string} workspaceId the Workspace identifier
|
|
11165
11563
|
* @param {string} identityId the User identifier
|
|
@@ -11227,24 +11625,24 @@ var WorkspaceApi = /** @class */ (function (_super) {
|
|
|
11227
11625
|
};
|
|
11228
11626
|
/**
|
|
11229
11627
|
*
|
|
11230
|
-
* @summary
|
|
11628
|
+
* @summary Set the Workspace default security
|
|
11231
11629
|
* @param {string} organizationId the Organization identifier
|
|
11232
11630
|
* @param {string} workspaceId the Workspace identifier
|
|
11233
|
-
* @param {
|
|
11631
|
+
* @param {WorkspaceRole} workspaceRole the new Workspace default security.
|
|
11234
11632
|
* @param {*} [options] Override http request option.
|
|
11235
11633
|
* @throws {RequiredError}
|
|
11236
11634
|
* @memberof WorkspaceApi
|
|
11237
11635
|
*/
|
|
11238
|
-
WorkspaceApi.prototype.setWorkspaceDefaultSecurity = function (organizationId, workspaceId,
|
|
11636
|
+
WorkspaceApi.prototype.setWorkspaceDefaultSecurity = function (organizationId, workspaceId, workspaceRole, options) {
|
|
11239
11637
|
var _this = this;
|
|
11240
|
-
return exports.WorkspaceApiFp(this.configuration).setWorkspaceDefaultSecurity(organizationId, workspaceId,
|
|
11638
|
+
return exports.WorkspaceApiFp(this.configuration).setWorkspaceDefaultSecurity(organizationId, workspaceId, workspaceRole, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11241
11639
|
};
|
|
11242
11640
|
/**
|
|
11243
11641
|
*
|
|
11244
11642
|
* @summary Update a workspace
|
|
11245
11643
|
* @param {string} organizationId the Organization identifier
|
|
11246
11644
|
* @param {string} workspaceId the Workspace identifier
|
|
11247
|
-
* @param {Workspace} workspace
|
|
11645
|
+
* @param {Workspace} workspace The new Workspace details.
|
|
11248
11646
|
* @param {*} [options] Override http request option.
|
|
11249
11647
|
* @throws {RequiredError}
|
|
11250
11648
|
* @memberof WorkspaceApi
|
|
@@ -11253,6 +11651,21 @@ var WorkspaceApi = /** @class */ (function (_super) {
|
|
|
11253
11651
|
var _this = this;
|
|
11254
11652
|
return exports.WorkspaceApiFp(this.configuration).updateWorkspace(organizationId, workspaceId, workspace, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11255
11653
|
};
|
|
11654
|
+
/**
|
|
11655
|
+
*
|
|
11656
|
+
* @summary Update the specified access to User for a Workspace
|
|
11657
|
+
* @param {string} organizationId the Organization identifier
|
|
11658
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11659
|
+
* @param {string} identityId the User identifier
|
|
11660
|
+
* @param {WorkspaceRole} workspaceRole The new Workspace Access Control
|
|
11661
|
+
* @param {*} [options] Override http request option.
|
|
11662
|
+
* @throws {RequiredError}
|
|
11663
|
+
* @memberof WorkspaceApi
|
|
11664
|
+
*/
|
|
11665
|
+
WorkspaceApi.prototype.updateWorkspaceAccessControl = function (organizationId, workspaceId, identityId, workspaceRole, options) {
|
|
11666
|
+
var _this = this;
|
|
11667
|
+
return exports.WorkspaceApiFp(this.configuration).updateWorkspaceAccessControl(organizationId, workspaceId, identityId, workspaceRole, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11668
|
+
};
|
|
11256
11669
|
/**
|
|
11257
11670
|
*
|
|
11258
11671
|
* @summary Upload a file for the Workspace
|