@flipdish/authorization 0.2.7 → 0.2.11
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/README.md +57 -4
- package/api.ts +682 -152
- package/configuration.ts +1 -1
- package/dist/api.d.ts +406 -143
- package/dist/api.js +653 -29
- package/dist/configuration.js +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -84,7 +84,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
84
84
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
85
|
};
|
|
86
86
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
|
-
exports.UserPermissionsApi = exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = exports.RoleAssignmentApi = exports.RoleAssignmentApiFactory = exports.RoleAssignmentApiFp = exports.RoleAssignmentApiAxiosParamCreator = exports.
|
|
87
|
+
exports.UserPermissionsApi = exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = exports.RoleAssignmentApi = exports.RoleAssignmentApiFactory = exports.RoleAssignmentApiFp = exports.RoleAssignmentApiAxiosParamCreator = exports.ConfigurationDataApi = exports.ConfigurationDataApiFactory = exports.ConfigurationDataApiFp = exports.ConfigurationDataApiAxiosParamCreator = exports.AuthorizedEntitiesApi = exports.AuthorizedEntitiesApiFactory = exports.AuthorizedEntitiesApiFp = exports.AuthorizedEntitiesApiAxiosParamCreator = exports.AuthorizationApi = exports.AuthorizationApiFactory = exports.AuthorizationApiFp = exports.AuthorizationApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.RevokeRoleRequestBodyRoleEnum = exports.RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = exports.Permissions = exports.ListRolesSuccessResponseRolesEnum = exports.ListOrgRolesSuccessResponseValueValueRolesEnum = exports.ListOrgRolesSuccessResponseValueValueResourceTypeEnum = exports.IsInRoleRequestCheckModeEnum = exports.IsInRoleRequestRolesEnum = exports.GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = exports.GetAuthorizedPropertiesRequestActionEnum = exports.GetAuthorizedOrgsRequestPrincipalTypeEnum = exports.GetAuthorizedOrgsRequestActionEnum = exports.GetAuthorizedBrandsRequestActionEnum = exports.AuthorizationRequestResourceOneOf3TypeEnum = exports.AuthorizationRequestResourceOneOf2TypeEnum = exports.AuthorizationRequestResourceOneOf1TypeEnum = exports.AuthorizationRequestResourceOneOfTypeEnum = exports.AuthorizationRequestPrincipalTypeEnum = exports.AuthenticateAndCheckIsInRoleRequestCheckModeEnum = exports.AuthenticateAndCheckIsInRoleRequestRolesEnum = exports.AssignRoleRequestBodyRoleEnum = void 0;
|
|
88
88
|
var axios_1 = require("axios");
|
|
89
89
|
// Some imports not used depending on template conditions
|
|
90
90
|
// @ts-ignore
|
|
@@ -165,6 +165,14 @@ exports.AssignRoleRequestBodyRoleEnum = {
|
|
|
165
165
|
FinanceManagerMisc: 'FinanceManagerMisc',
|
|
166
166
|
SupportMisc: 'SupportMisc'
|
|
167
167
|
};
|
|
168
|
+
exports.AuthenticateAndCheckIsInRoleRequestRolesEnum = {
|
|
169
|
+
Admin: 'Admin',
|
|
170
|
+
Factory: 'Factory'
|
|
171
|
+
};
|
|
172
|
+
exports.AuthenticateAndCheckIsInRoleRequestCheckModeEnum = {
|
|
173
|
+
Any: 'any',
|
|
174
|
+
All: 'all'
|
|
175
|
+
};
|
|
168
176
|
exports.AuthorizationRequestPrincipalTypeEnum = {
|
|
169
177
|
User: 'User',
|
|
170
178
|
Automation: 'Automation'
|
|
@@ -407,7 +415,9 @@ exports.GetAuthorizedBrandsRequestActionEnum = {
|
|
|
407
415
|
EditOrg: 'EditOrg',
|
|
408
416
|
ViewOrg: 'ViewOrg',
|
|
409
417
|
ViewWebhooks: 'ViewWebhooks',
|
|
410
|
-
EditWebhooks: 'EditWebhooks'
|
|
418
|
+
EditWebhooks: 'EditWebhooks',
|
|
419
|
+
RoleAdmin: 'RoleAdmin',
|
|
420
|
+
RoleFactory: 'RoleFactory'
|
|
411
421
|
};
|
|
412
422
|
exports.GetAuthorizedOrgsRequestActionEnum = {
|
|
413
423
|
AnyAuditLogs: 'AnyAuditLogs',
|
|
@@ -635,7 +645,9 @@ exports.GetAuthorizedOrgsRequestActionEnum = {
|
|
|
635
645
|
EditOrg: 'EditOrg',
|
|
636
646
|
ViewOrg: 'ViewOrg',
|
|
637
647
|
ViewWebhooks: 'ViewWebhooks',
|
|
638
|
-
EditWebhooks: 'EditWebhooks'
|
|
648
|
+
EditWebhooks: 'EditWebhooks',
|
|
649
|
+
RoleAdmin: 'RoleAdmin',
|
|
650
|
+
RoleFactory: 'RoleFactory'
|
|
639
651
|
};
|
|
640
652
|
exports.GetAuthorizedOrgsRequestPrincipalTypeEnum = {
|
|
641
653
|
User: 'User',
|
|
@@ -867,13 +879,16 @@ exports.GetAuthorizedPropertiesRequestActionEnum = {
|
|
|
867
879
|
EditOrg: 'EditOrg',
|
|
868
880
|
ViewOrg: 'ViewOrg',
|
|
869
881
|
ViewWebhooks: 'ViewWebhooks',
|
|
870
|
-
EditWebhooks: 'EditWebhooks'
|
|
882
|
+
EditWebhooks: 'EditWebhooks',
|
|
883
|
+
RoleAdmin: 'RoleAdmin',
|
|
884
|
+
RoleFactory: 'RoleFactory'
|
|
871
885
|
};
|
|
872
886
|
exports.GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = {
|
|
873
887
|
Main: 'Main',
|
|
874
888
|
BrandOverride: 'BrandOverride',
|
|
875
889
|
OrgOverride: 'OrgOverride',
|
|
876
|
-
Forbidden: 'Forbidden'
|
|
890
|
+
Forbidden: 'Forbidden',
|
|
891
|
+
NamedRole: 'NamedRole'
|
|
877
892
|
};
|
|
878
893
|
exports.GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = {
|
|
879
894
|
Property: 'Property',
|
|
@@ -1117,7 +1132,17 @@ exports.GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = {
|
|
|
1117
1132
|
EditOrg: 'EditOrg',
|
|
1118
1133
|
ViewOrg: 'ViewOrg',
|
|
1119
1134
|
ViewWebhooks: 'ViewWebhooks',
|
|
1120
|
-
EditWebhooks: 'EditWebhooks'
|
|
1135
|
+
EditWebhooks: 'EditWebhooks',
|
|
1136
|
+
RoleAdmin: 'RoleAdmin',
|
|
1137
|
+
RoleFactory: 'RoleFactory'
|
|
1138
|
+
};
|
|
1139
|
+
exports.IsInRoleRequestRolesEnum = {
|
|
1140
|
+
Admin: 'Admin',
|
|
1141
|
+
Factory: 'Factory'
|
|
1142
|
+
};
|
|
1143
|
+
exports.IsInRoleRequestCheckModeEnum = {
|
|
1144
|
+
Any: 'any',
|
|
1145
|
+
All: 'all'
|
|
1121
1146
|
};
|
|
1122
1147
|
exports.ListOrgRolesSuccessResponseValueValueResourceTypeEnum = {
|
|
1123
1148
|
Property: 'Property',
|
|
@@ -1199,6 +1224,10 @@ exports.ListOrgRolesSuccessResponseValueValueRolesEnum = {
|
|
|
1199
1224
|
FinanceManagerMisc: 'FinanceManagerMisc',
|
|
1200
1225
|
SupportMisc: 'SupportMisc'
|
|
1201
1226
|
};
|
|
1227
|
+
exports.ListRolesSuccessResponseRolesEnum = {
|
|
1228
|
+
Admin: 'Admin',
|
|
1229
|
+
Factory: 'Factory'
|
|
1230
|
+
};
|
|
1202
1231
|
/**
|
|
1203
1232
|
*
|
|
1204
1233
|
* @export
|
|
@@ -1430,7 +1459,9 @@ exports.Permissions = {
|
|
|
1430
1459
|
EditOrg: 'EditOrg',
|
|
1431
1460
|
ViewOrg: 'ViewOrg',
|
|
1432
1461
|
ViewWebhooks: 'ViewWebhooks',
|
|
1433
|
-
EditWebhooks: 'EditWebhooks'
|
|
1462
|
+
EditWebhooks: 'EditWebhooks',
|
|
1463
|
+
RoleAdmin: 'RoleAdmin',
|
|
1464
|
+
RoleFactory: 'RoleFactory'
|
|
1434
1465
|
};
|
|
1435
1466
|
exports.RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = {
|
|
1436
1467
|
OwnerCompensating: 'OwnerCompensating',
|
|
@@ -1702,6 +1733,50 @@ var AuthorizationApiAxiosParamCreator = function (configuration) {
|
|
|
1702
1733
|
});
|
|
1703
1734
|
});
|
|
1704
1735
|
},
|
|
1736
|
+
/**
|
|
1737
|
+
* Authenticate and check if a user is in any/all of the roles
|
|
1738
|
+
* @summary Authenticate and Check Is In Role
|
|
1739
|
+
* @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest]
|
|
1740
|
+
* @param {*} [options] Override http request option.
|
|
1741
|
+
* @throws {RequiredError}
|
|
1742
|
+
*/
|
|
1743
|
+
authenticateAndCheckIsInRole: function (authenticateAndCheckIsInRoleRequest_1) {
|
|
1744
|
+
var args_1 = [];
|
|
1745
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1746
|
+
args_1[_i - 1] = arguments[_i];
|
|
1747
|
+
}
|
|
1748
|
+
return __awaiter(_this, __spreadArray([authenticateAndCheckIsInRoleRequest_1], args_1, true), void 0, function (authenticateAndCheckIsInRoleRequest, options) {
|
|
1749
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1750
|
+
if (options === void 0) { options = {}; }
|
|
1751
|
+
return __generator(this, function (_a) {
|
|
1752
|
+
switch (_a.label) {
|
|
1753
|
+
case 0:
|
|
1754
|
+
localVarPath = "/authenticateAndCheckIsInRole";
|
|
1755
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1756
|
+
if (configuration) {
|
|
1757
|
+
baseOptions = configuration.baseOptions;
|
|
1758
|
+
}
|
|
1759
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1760
|
+
localVarHeaderParameter = {};
|
|
1761
|
+
localVarQueryParameter = {};
|
|
1762
|
+
// authentication ApiKeyAuth required
|
|
1763
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1764
|
+
case 1:
|
|
1765
|
+
// authentication ApiKeyAuth required
|
|
1766
|
+
_a.sent();
|
|
1767
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1768
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1769
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1770
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1771
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticateAndCheckIsInRoleRequest, localVarRequestOptions, configuration);
|
|
1772
|
+
return [2 /*return*/, {
|
|
1773
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1774
|
+
options: localVarRequestOptions,
|
|
1775
|
+
}];
|
|
1776
|
+
}
|
|
1777
|
+
});
|
|
1778
|
+
});
|
|
1779
|
+
},
|
|
1705
1780
|
/**
|
|
1706
1781
|
* Check if a user is authorized to perform an action
|
|
1707
1782
|
* @summary Authorize Request
|
|
@@ -1790,6 +1865,50 @@ var AuthorizationApiAxiosParamCreator = function (configuration) {
|
|
|
1790
1865
|
});
|
|
1791
1866
|
});
|
|
1792
1867
|
},
|
|
1868
|
+
/**
|
|
1869
|
+
* Check if a user is in any/all of the roles
|
|
1870
|
+
* @summary Check Is In Role
|
|
1871
|
+
* @param {IsInRoleRequest} [isInRoleRequest]
|
|
1872
|
+
* @param {*} [options] Override http request option.
|
|
1873
|
+
* @throws {RequiredError}
|
|
1874
|
+
*/
|
|
1875
|
+
checkIsInRole: function (isInRoleRequest_1) {
|
|
1876
|
+
var args_1 = [];
|
|
1877
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1878
|
+
args_1[_i - 1] = arguments[_i];
|
|
1879
|
+
}
|
|
1880
|
+
return __awaiter(_this, __spreadArray([isInRoleRequest_1], args_1, true), void 0, function (isInRoleRequest, options) {
|
|
1881
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1882
|
+
if (options === void 0) { options = {}; }
|
|
1883
|
+
return __generator(this, function (_a) {
|
|
1884
|
+
switch (_a.label) {
|
|
1885
|
+
case 0:
|
|
1886
|
+
localVarPath = "/checkIsInRole";
|
|
1887
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1888
|
+
if (configuration) {
|
|
1889
|
+
baseOptions = configuration.baseOptions;
|
|
1890
|
+
}
|
|
1891
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1892
|
+
localVarHeaderParameter = {};
|
|
1893
|
+
localVarQueryParameter = {};
|
|
1894
|
+
// authentication ApiKeyAuth required
|
|
1895
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1896
|
+
case 1:
|
|
1897
|
+
// authentication ApiKeyAuth required
|
|
1898
|
+
_a.sent();
|
|
1899
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1900
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1901
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1902
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1903
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(isInRoleRequest, localVarRequestOptions, configuration);
|
|
1904
|
+
return [2 /*return*/, {
|
|
1905
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1906
|
+
options: localVarRequestOptions,
|
|
1907
|
+
}];
|
|
1908
|
+
}
|
|
1909
|
+
});
|
|
1910
|
+
});
|
|
1911
|
+
},
|
|
1793
1912
|
};
|
|
1794
1913
|
};
|
|
1795
1914
|
exports.AuthorizationApiAxiosParamCreator = AuthorizationApiAxiosParamCreator;
|
|
@@ -1823,6 +1942,29 @@ var AuthorizationApiFp = function (configuration) {
|
|
|
1823
1942
|
});
|
|
1824
1943
|
});
|
|
1825
1944
|
},
|
|
1945
|
+
/**
|
|
1946
|
+
* Authenticate and check if a user is in any/all of the roles
|
|
1947
|
+
* @summary Authenticate and Check Is In Role
|
|
1948
|
+
* @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest]
|
|
1949
|
+
* @param {*} [options] Override http request option.
|
|
1950
|
+
* @throws {RequiredError}
|
|
1951
|
+
*/
|
|
1952
|
+
authenticateAndCheckIsInRole: function (authenticateAndCheckIsInRoleRequest, options) {
|
|
1953
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1954
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1955
|
+
var _a, _b, _c;
|
|
1956
|
+
return __generator(this, function (_d) {
|
|
1957
|
+
switch (_d.label) {
|
|
1958
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest, options)];
|
|
1959
|
+
case 1:
|
|
1960
|
+
localVarAxiosArgs = _d.sent();
|
|
1961
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1962
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthorizationApi.authenticateAndCheckIsInRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1963
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1964
|
+
}
|
|
1965
|
+
});
|
|
1966
|
+
});
|
|
1967
|
+
},
|
|
1826
1968
|
/**
|
|
1827
1969
|
* Check if a user is authorized to perform an action
|
|
1828
1970
|
* @summary Authorize Request
|
|
@@ -1869,6 +2011,29 @@ var AuthorizationApiFp = function (configuration) {
|
|
|
1869
2011
|
});
|
|
1870
2012
|
});
|
|
1871
2013
|
},
|
|
2014
|
+
/**
|
|
2015
|
+
* Check if a user is in any/all of the roles
|
|
2016
|
+
* @summary Check Is In Role
|
|
2017
|
+
* @param {IsInRoleRequest} [isInRoleRequest]
|
|
2018
|
+
* @param {*} [options] Override http request option.
|
|
2019
|
+
* @throws {RequiredError}
|
|
2020
|
+
*/
|
|
2021
|
+
checkIsInRole: function (isInRoleRequest, options) {
|
|
2022
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2023
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2024
|
+
var _a, _b, _c;
|
|
2025
|
+
return __generator(this, function (_d) {
|
|
2026
|
+
switch (_d.label) {
|
|
2027
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.checkIsInRole(isInRoleRequest, options)];
|
|
2028
|
+
case 1:
|
|
2029
|
+
localVarAxiosArgs = _d.sent();
|
|
2030
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2031
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthorizationApi.checkIsInRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2032
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2033
|
+
}
|
|
2034
|
+
});
|
|
2035
|
+
});
|
|
2036
|
+
},
|
|
1872
2037
|
};
|
|
1873
2038
|
};
|
|
1874
2039
|
exports.AuthorizationApiFp = AuthorizationApiFp;
|
|
@@ -1889,6 +2054,16 @@ var AuthorizationApiFactory = function (configuration, basePath, axios) {
|
|
|
1889
2054
|
authenticateAndAuthorize: function (authenticateAndAuthorizeRequest, options) {
|
|
1890
2055
|
return localVarFp.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then(function (request) { return request(axios, basePath); });
|
|
1891
2056
|
},
|
|
2057
|
+
/**
|
|
2058
|
+
* Authenticate and check if a user is in any/all of the roles
|
|
2059
|
+
* @summary Authenticate and Check Is In Role
|
|
2060
|
+
* @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest]
|
|
2061
|
+
* @param {*} [options] Override http request option.
|
|
2062
|
+
* @throws {RequiredError}
|
|
2063
|
+
*/
|
|
2064
|
+
authenticateAndCheckIsInRole: function (authenticateAndCheckIsInRoleRequest, options) {
|
|
2065
|
+
return localVarFp.authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2066
|
+
},
|
|
1892
2067
|
/**
|
|
1893
2068
|
* Check if a user is authorized to perform an action
|
|
1894
2069
|
* @summary Authorize Request
|
|
@@ -1909,6 +2084,16 @@ var AuthorizationApiFactory = function (configuration, basePath, axios) {
|
|
|
1909
2084
|
authorizeBatch: function (authorizationBatchRequest, options) {
|
|
1910
2085
|
return localVarFp.authorizeBatch(authorizationBatchRequest, options).then(function (request) { return request(axios, basePath); });
|
|
1911
2086
|
},
|
|
2087
|
+
/**
|
|
2088
|
+
* Check if a user is in any/all of the roles
|
|
2089
|
+
* @summary Check Is In Role
|
|
2090
|
+
* @param {IsInRoleRequest} [isInRoleRequest]
|
|
2091
|
+
* @param {*} [options] Override http request option.
|
|
2092
|
+
* @throws {RequiredError}
|
|
2093
|
+
*/
|
|
2094
|
+
checkIsInRole: function (isInRoleRequest, options) {
|
|
2095
|
+
return localVarFp.checkIsInRole(isInRoleRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2096
|
+
},
|
|
1912
2097
|
};
|
|
1913
2098
|
};
|
|
1914
2099
|
exports.AuthorizationApiFactory = AuthorizationApiFactory;
|
|
@@ -1935,6 +2120,18 @@ var AuthorizationApi = /** @class */ (function (_super) {
|
|
|
1935
2120
|
var _this = this;
|
|
1936
2121
|
return (0, exports.AuthorizationApiFp)(this.configuration).authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1937
2122
|
};
|
|
2123
|
+
/**
|
|
2124
|
+
* Authenticate and check if a user is in any/all of the roles
|
|
2125
|
+
* @summary Authenticate and Check Is In Role
|
|
2126
|
+
* @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest]
|
|
2127
|
+
* @param {*} [options] Override http request option.
|
|
2128
|
+
* @throws {RequiredError}
|
|
2129
|
+
* @memberof AuthorizationApi
|
|
2130
|
+
*/
|
|
2131
|
+
AuthorizationApi.prototype.authenticateAndCheckIsInRole = function (authenticateAndCheckIsInRoleRequest, options) {
|
|
2132
|
+
var _this = this;
|
|
2133
|
+
return (0, exports.AuthorizationApiFp)(this.configuration).authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2134
|
+
};
|
|
1938
2135
|
/**
|
|
1939
2136
|
* Check if a user is authorized to perform an action
|
|
1940
2137
|
* @summary Authorize Request
|
|
@@ -1959,6 +2156,18 @@ var AuthorizationApi = /** @class */ (function (_super) {
|
|
|
1959
2156
|
var _this = this;
|
|
1960
2157
|
return (0, exports.AuthorizationApiFp)(this.configuration).authorizeBatch(authorizationBatchRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1961
2158
|
};
|
|
2159
|
+
/**
|
|
2160
|
+
* Check if a user is in any/all of the roles
|
|
2161
|
+
* @summary Check Is In Role
|
|
2162
|
+
* @param {IsInRoleRequest} [isInRoleRequest]
|
|
2163
|
+
* @param {*} [options] Override http request option.
|
|
2164
|
+
* @throws {RequiredError}
|
|
2165
|
+
* @memberof AuthorizationApi
|
|
2166
|
+
*/
|
|
2167
|
+
AuthorizationApi.prototype.checkIsInRole = function (isInRoleRequest, options) {
|
|
2168
|
+
var _this = this;
|
|
2169
|
+
return (0, exports.AuthorizationApiFp)(this.configuration).checkIsInRole(isInRoleRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2170
|
+
};
|
|
1962
2171
|
return AuthorizationApi;
|
|
1963
2172
|
}(base_1.BaseAPI));
|
|
1964
2173
|
exports.AuthorizationApi = AuthorizationApi;
|
|
@@ -2288,12 +2497,176 @@ var AuthorizedEntitiesApi = /** @class */ (function (_super) {
|
|
|
2288
2497
|
}(base_1.BaseAPI));
|
|
2289
2498
|
exports.AuthorizedEntitiesApi = AuthorizedEntitiesApi;
|
|
2290
2499
|
/**
|
|
2291
|
-
*
|
|
2500
|
+
* ConfigurationDataApi - axios parameter creator
|
|
2292
2501
|
* @export
|
|
2293
2502
|
*/
|
|
2294
|
-
var
|
|
2503
|
+
var ConfigurationDataApiAxiosParamCreator = function (configuration) {
|
|
2295
2504
|
var _this = this;
|
|
2296
2505
|
return {
|
|
2506
|
+
/**
|
|
2507
|
+
* List the available feature based roles
|
|
2508
|
+
* @summary List Feature Based Roles
|
|
2509
|
+
* @param {*} [options] Override http request option.
|
|
2510
|
+
* @throws {RequiredError}
|
|
2511
|
+
*/
|
|
2512
|
+
configListFeatureBasedRoles: function () {
|
|
2513
|
+
var args_1 = [];
|
|
2514
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
2515
|
+
args_1[_i] = arguments[_i];
|
|
2516
|
+
}
|
|
2517
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
2518
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2519
|
+
if (options === void 0) { options = {}; }
|
|
2520
|
+
return __generator(this, function (_a) {
|
|
2521
|
+
switch (_a.label) {
|
|
2522
|
+
case 0:
|
|
2523
|
+
localVarPath = "/config/featureBasedRoles";
|
|
2524
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2525
|
+
if (configuration) {
|
|
2526
|
+
baseOptions = configuration.baseOptions;
|
|
2527
|
+
}
|
|
2528
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2529
|
+
localVarHeaderParameter = {};
|
|
2530
|
+
localVarQueryParameter = {};
|
|
2531
|
+
// authentication ApiKeyAuth required
|
|
2532
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
2533
|
+
case 1:
|
|
2534
|
+
// authentication ApiKeyAuth required
|
|
2535
|
+
_a.sent();
|
|
2536
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2537
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2538
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2539
|
+
return [2 /*return*/, {
|
|
2540
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2541
|
+
options: localVarRequestOptions,
|
|
2542
|
+
}];
|
|
2543
|
+
}
|
|
2544
|
+
});
|
|
2545
|
+
});
|
|
2546
|
+
},
|
|
2547
|
+
/**
|
|
2548
|
+
* List the available permissions
|
|
2549
|
+
* @summary List Permissions
|
|
2550
|
+
* @param {*} [options] Override http request option.
|
|
2551
|
+
* @throws {RequiredError}
|
|
2552
|
+
*/
|
|
2553
|
+
configListPermissions: function () {
|
|
2554
|
+
var args_1 = [];
|
|
2555
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
2556
|
+
args_1[_i] = arguments[_i];
|
|
2557
|
+
}
|
|
2558
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
2559
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2560
|
+
if (options === void 0) { options = {}; }
|
|
2561
|
+
return __generator(this, function (_a) {
|
|
2562
|
+
switch (_a.label) {
|
|
2563
|
+
case 0:
|
|
2564
|
+
localVarPath = "/config/permissions";
|
|
2565
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2566
|
+
if (configuration) {
|
|
2567
|
+
baseOptions = configuration.baseOptions;
|
|
2568
|
+
}
|
|
2569
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2570
|
+
localVarHeaderParameter = {};
|
|
2571
|
+
localVarQueryParameter = {};
|
|
2572
|
+
// authentication ApiKeyAuth required
|
|
2573
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
2574
|
+
case 1:
|
|
2575
|
+
// authentication ApiKeyAuth required
|
|
2576
|
+
_a.sent();
|
|
2577
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2578
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2579
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2580
|
+
return [2 /*return*/, {
|
|
2581
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2582
|
+
options: localVarRequestOptions,
|
|
2583
|
+
}];
|
|
2584
|
+
}
|
|
2585
|
+
});
|
|
2586
|
+
});
|
|
2587
|
+
},
|
|
2588
|
+
/**
|
|
2589
|
+
* List the available roles
|
|
2590
|
+
* @summary List Roles
|
|
2591
|
+
* @param {*} [options] Override http request option.
|
|
2592
|
+
* @throws {RequiredError}
|
|
2593
|
+
*/
|
|
2594
|
+
configListRoles: function () {
|
|
2595
|
+
var args_1 = [];
|
|
2596
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
2597
|
+
args_1[_i] = arguments[_i];
|
|
2598
|
+
}
|
|
2599
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
2600
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2601
|
+
if (options === void 0) { options = {}; }
|
|
2602
|
+
return __generator(this, function (_a) {
|
|
2603
|
+
switch (_a.label) {
|
|
2604
|
+
case 0:
|
|
2605
|
+
localVarPath = "/config/roles";
|
|
2606
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2607
|
+
if (configuration) {
|
|
2608
|
+
baseOptions = configuration.baseOptions;
|
|
2609
|
+
}
|
|
2610
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2611
|
+
localVarHeaderParameter = {};
|
|
2612
|
+
localVarQueryParameter = {};
|
|
2613
|
+
// authentication ApiKeyAuth required
|
|
2614
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
2615
|
+
case 1:
|
|
2616
|
+
// authentication ApiKeyAuth required
|
|
2617
|
+
_a.sent();
|
|
2618
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2619
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2620
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2621
|
+
return [2 /*return*/, {
|
|
2622
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2623
|
+
options: localVarRequestOptions,
|
|
2624
|
+
}];
|
|
2625
|
+
}
|
|
2626
|
+
});
|
|
2627
|
+
});
|
|
2628
|
+
},
|
|
2629
|
+
/**
|
|
2630
|
+
* List the available feature based roles
|
|
2631
|
+
* @summary List Feature Based Roles
|
|
2632
|
+
* @param {*} [options] Override http request option.
|
|
2633
|
+
* @throws {RequiredError}
|
|
2634
|
+
*/
|
|
2635
|
+
listFeatureBasedRoles: function () {
|
|
2636
|
+
var args_1 = [];
|
|
2637
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
2638
|
+
args_1[_i] = arguments[_i];
|
|
2639
|
+
}
|
|
2640
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
2641
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2642
|
+
if (options === void 0) { options = {}; }
|
|
2643
|
+
return __generator(this, function (_a) {
|
|
2644
|
+
switch (_a.label) {
|
|
2645
|
+
case 0:
|
|
2646
|
+
localVarPath = "/featureBasedRoles";
|
|
2647
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2648
|
+
if (configuration) {
|
|
2649
|
+
baseOptions = configuration.baseOptions;
|
|
2650
|
+
}
|
|
2651
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2652
|
+
localVarHeaderParameter = {};
|
|
2653
|
+
localVarQueryParameter = {};
|
|
2654
|
+
// authentication ApiKeyAuth required
|
|
2655
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
2656
|
+
case 1:
|
|
2657
|
+
// authentication ApiKeyAuth required
|
|
2658
|
+
_a.sent();
|
|
2659
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2660
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2661
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2662
|
+
return [2 /*return*/, {
|
|
2663
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2664
|
+
options: localVarRequestOptions,
|
|
2665
|
+
}];
|
|
2666
|
+
}
|
|
2667
|
+
});
|
|
2668
|
+
});
|
|
2669
|
+
},
|
|
2297
2670
|
/**
|
|
2298
2671
|
* List the available permissions
|
|
2299
2672
|
* @summary List Permissions
|
|
@@ -2335,16 +2708,145 @@ var PermissionsApiAxiosParamCreator = function (configuration) {
|
|
|
2335
2708
|
});
|
|
2336
2709
|
});
|
|
2337
2710
|
},
|
|
2711
|
+
/**
|
|
2712
|
+
* List the available roles
|
|
2713
|
+
* @summary List Roles
|
|
2714
|
+
* @param {*} [options] Override http request option.
|
|
2715
|
+
* @throws {RequiredError}
|
|
2716
|
+
*/
|
|
2717
|
+
listRoles: function () {
|
|
2718
|
+
var args_1 = [];
|
|
2719
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
2720
|
+
args_1[_i] = arguments[_i];
|
|
2721
|
+
}
|
|
2722
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
2723
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2724
|
+
if (options === void 0) { options = {}; }
|
|
2725
|
+
return __generator(this, function (_a) {
|
|
2726
|
+
switch (_a.label) {
|
|
2727
|
+
case 0:
|
|
2728
|
+
localVarPath = "/roles";
|
|
2729
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2730
|
+
if (configuration) {
|
|
2731
|
+
baseOptions = configuration.baseOptions;
|
|
2732
|
+
}
|
|
2733
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2734
|
+
localVarHeaderParameter = {};
|
|
2735
|
+
localVarQueryParameter = {};
|
|
2736
|
+
// authentication ApiKeyAuth required
|
|
2737
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
2738
|
+
case 1:
|
|
2739
|
+
// authentication ApiKeyAuth required
|
|
2740
|
+
_a.sent();
|
|
2741
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2742
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2743
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2744
|
+
return [2 /*return*/, {
|
|
2745
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2746
|
+
options: localVarRequestOptions,
|
|
2747
|
+
}];
|
|
2748
|
+
}
|
|
2749
|
+
});
|
|
2750
|
+
});
|
|
2751
|
+
},
|
|
2338
2752
|
};
|
|
2339
2753
|
};
|
|
2340
|
-
exports.
|
|
2754
|
+
exports.ConfigurationDataApiAxiosParamCreator = ConfigurationDataApiAxiosParamCreator;
|
|
2341
2755
|
/**
|
|
2342
|
-
*
|
|
2756
|
+
* ConfigurationDataApi - functional programming interface
|
|
2343
2757
|
* @export
|
|
2344
2758
|
*/
|
|
2345
|
-
var
|
|
2346
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
2759
|
+
var ConfigurationDataApiFp = function (configuration) {
|
|
2760
|
+
var localVarAxiosParamCreator = (0, exports.ConfigurationDataApiAxiosParamCreator)(configuration);
|
|
2347
2761
|
return {
|
|
2762
|
+
/**
|
|
2763
|
+
* List the available feature based roles
|
|
2764
|
+
* @summary List Feature Based Roles
|
|
2765
|
+
* @param {*} [options] Override http request option.
|
|
2766
|
+
* @throws {RequiredError}
|
|
2767
|
+
*/
|
|
2768
|
+
configListFeatureBasedRoles: function (options) {
|
|
2769
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2770
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2771
|
+
var _a, _b, _c;
|
|
2772
|
+
return __generator(this, function (_d) {
|
|
2773
|
+
switch (_d.label) {
|
|
2774
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.configListFeatureBasedRoles(options)];
|
|
2775
|
+
case 1:
|
|
2776
|
+
localVarAxiosArgs = _d.sent();
|
|
2777
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2778
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.configListFeatureBasedRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2779
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2780
|
+
}
|
|
2781
|
+
});
|
|
2782
|
+
});
|
|
2783
|
+
},
|
|
2784
|
+
/**
|
|
2785
|
+
* List the available permissions
|
|
2786
|
+
* @summary List Permissions
|
|
2787
|
+
* @param {*} [options] Override http request option.
|
|
2788
|
+
* @throws {RequiredError}
|
|
2789
|
+
*/
|
|
2790
|
+
configListPermissions: function (options) {
|
|
2791
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2792
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2793
|
+
var _a, _b, _c;
|
|
2794
|
+
return __generator(this, function (_d) {
|
|
2795
|
+
switch (_d.label) {
|
|
2796
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.configListPermissions(options)];
|
|
2797
|
+
case 1:
|
|
2798
|
+
localVarAxiosArgs = _d.sent();
|
|
2799
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2800
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.configListPermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2801
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2802
|
+
}
|
|
2803
|
+
});
|
|
2804
|
+
});
|
|
2805
|
+
},
|
|
2806
|
+
/**
|
|
2807
|
+
* List the available roles
|
|
2808
|
+
* @summary List Roles
|
|
2809
|
+
* @param {*} [options] Override http request option.
|
|
2810
|
+
* @throws {RequiredError}
|
|
2811
|
+
*/
|
|
2812
|
+
configListRoles: function (options) {
|
|
2813
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2814
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2815
|
+
var _a, _b, _c;
|
|
2816
|
+
return __generator(this, function (_d) {
|
|
2817
|
+
switch (_d.label) {
|
|
2818
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.configListRoles(options)];
|
|
2819
|
+
case 1:
|
|
2820
|
+
localVarAxiosArgs = _d.sent();
|
|
2821
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2822
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.configListRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2823
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2824
|
+
}
|
|
2825
|
+
});
|
|
2826
|
+
});
|
|
2827
|
+
},
|
|
2828
|
+
/**
|
|
2829
|
+
* List the available feature based roles
|
|
2830
|
+
* @summary List Feature Based Roles
|
|
2831
|
+
* @param {*} [options] Override http request option.
|
|
2832
|
+
* @throws {RequiredError}
|
|
2833
|
+
*/
|
|
2834
|
+
listFeatureBasedRoles: function (options) {
|
|
2835
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2836
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2837
|
+
var _a, _b, _c;
|
|
2838
|
+
return __generator(this, function (_d) {
|
|
2839
|
+
switch (_d.label) {
|
|
2840
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listFeatureBasedRoles(options)];
|
|
2841
|
+
case 1:
|
|
2842
|
+
localVarAxiosArgs = _d.sent();
|
|
2843
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2844
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.listFeatureBasedRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2845
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2846
|
+
}
|
|
2847
|
+
});
|
|
2848
|
+
});
|
|
2849
|
+
},
|
|
2348
2850
|
/**
|
|
2349
2851
|
* List the available permissions
|
|
2350
2852
|
* @summary List Permissions
|
|
@@ -2361,7 +2863,29 @@ var PermissionsApiFp = function (configuration) {
|
|
|
2361
2863
|
case 1:
|
|
2362
2864
|
localVarAxiosArgs = _d.sent();
|
|
2363
2865
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2364
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
2866
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.listPermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2867
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2868
|
+
}
|
|
2869
|
+
});
|
|
2870
|
+
});
|
|
2871
|
+
},
|
|
2872
|
+
/**
|
|
2873
|
+
* List the available roles
|
|
2874
|
+
* @summary List Roles
|
|
2875
|
+
* @param {*} [options] Override http request option.
|
|
2876
|
+
* @throws {RequiredError}
|
|
2877
|
+
*/
|
|
2878
|
+
listRoles: function (options) {
|
|
2879
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2880
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2881
|
+
var _a, _b, _c;
|
|
2882
|
+
return __generator(this, function (_d) {
|
|
2883
|
+
switch (_d.label) {
|
|
2884
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listRoles(options)];
|
|
2885
|
+
case 1:
|
|
2886
|
+
localVarAxiosArgs = _d.sent();
|
|
2887
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2888
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.listRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2365
2889
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2366
2890
|
}
|
|
2367
2891
|
});
|
|
@@ -2369,14 +2893,50 @@ var PermissionsApiFp = function (configuration) {
|
|
|
2369
2893
|
},
|
|
2370
2894
|
};
|
|
2371
2895
|
};
|
|
2372
|
-
exports.
|
|
2896
|
+
exports.ConfigurationDataApiFp = ConfigurationDataApiFp;
|
|
2373
2897
|
/**
|
|
2374
|
-
*
|
|
2898
|
+
* ConfigurationDataApi - factory interface
|
|
2375
2899
|
* @export
|
|
2376
2900
|
*/
|
|
2377
|
-
var
|
|
2378
|
-
var localVarFp = (0, exports.
|
|
2901
|
+
var ConfigurationDataApiFactory = function (configuration, basePath, axios) {
|
|
2902
|
+
var localVarFp = (0, exports.ConfigurationDataApiFp)(configuration);
|
|
2379
2903
|
return {
|
|
2904
|
+
/**
|
|
2905
|
+
* List the available feature based roles
|
|
2906
|
+
* @summary List Feature Based Roles
|
|
2907
|
+
* @param {*} [options] Override http request option.
|
|
2908
|
+
* @throws {RequiredError}
|
|
2909
|
+
*/
|
|
2910
|
+
configListFeatureBasedRoles: function (options) {
|
|
2911
|
+
return localVarFp.configListFeatureBasedRoles(options).then(function (request) { return request(axios, basePath); });
|
|
2912
|
+
},
|
|
2913
|
+
/**
|
|
2914
|
+
* List the available permissions
|
|
2915
|
+
* @summary List Permissions
|
|
2916
|
+
* @param {*} [options] Override http request option.
|
|
2917
|
+
* @throws {RequiredError}
|
|
2918
|
+
*/
|
|
2919
|
+
configListPermissions: function (options) {
|
|
2920
|
+
return localVarFp.configListPermissions(options).then(function (request) { return request(axios, basePath); });
|
|
2921
|
+
},
|
|
2922
|
+
/**
|
|
2923
|
+
* List the available roles
|
|
2924
|
+
* @summary List Roles
|
|
2925
|
+
* @param {*} [options] Override http request option.
|
|
2926
|
+
* @throws {RequiredError}
|
|
2927
|
+
*/
|
|
2928
|
+
configListRoles: function (options) {
|
|
2929
|
+
return localVarFp.configListRoles(options).then(function (request) { return request(axios, basePath); });
|
|
2930
|
+
},
|
|
2931
|
+
/**
|
|
2932
|
+
* List the available feature based roles
|
|
2933
|
+
* @summary List Feature Based Roles
|
|
2934
|
+
* @param {*} [options] Override http request option.
|
|
2935
|
+
* @throws {RequiredError}
|
|
2936
|
+
*/
|
|
2937
|
+
listFeatureBasedRoles: function (options) {
|
|
2938
|
+
return localVarFp.listFeatureBasedRoles(options).then(function (request) { return request(axios, basePath); });
|
|
2939
|
+
},
|
|
2380
2940
|
/**
|
|
2381
2941
|
* List the available permissions
|
|
2382
2942
|
* @summary List Permissions
|
|
@@ -2386,34 +2946,98 @@ var PermissionsApiFactory = function (configuration, basePath, axios) {
|
|
|
2386
2946
|
listPermissions: function (options) {
|
|
2387
2947
|
return localVarFp.listPermissions(options).then(function (request) { return request(axios, basePath); });
|
|
2388
2948
|
},
|
|
2949
|
+
/**
|
|
2950
|
+
* List the available roles
|
|
2951
|
+
* @summary List Roles
|
|
2952
|
+
* @param {*} [options] Override http request option.
|
|
2953
|
+
* @throws {RequiredError}
|
|
2954
|
+
*/
|
|
2955
|
+
listRoles: function (options) {
|
|
2956
|
+
return localVarFp.listRoles(options).then(function (request) { return request(axios, basePath); });
|
|
2957
|
+
},
|
|
2389
2958
|
};
|
|
2390
2959
|
};
|
|
2391
|
-
exports.
|
|
2960
|
+
exports.ConfigurationDataApiFactory = ConfigurationDataApiFactory;
|
|
2392
2961
|
/**
|
|
2393
|
-
*
|
|
2962
|
+
* ConfigurationDataApi - object-oriented interface
|
|
2394
2963
|
* @export
|
|
2395
|
-
* @class
|
|
2964
|
+
* @class ConfigurationDataApi
|
|
2396
2965
|
* @extends {BaseAPI}
|
|
2397
2966
|
*/
|
|
2398
|
-
var
|
|
2399
|
-
__extends(
|
|
2400
|
-
function
|
|
2967
|
+
var ConfigurationDataApi = /** @class */ (function (_super) {
|
|
2968
|
+
__extends(ConfigurationDataApi, _super);
|
|
2969
|
+
function ConfigurationDataApi() {
|
|
2401
2970
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2402
2971
|
}
|
|
2972
|
+
/**
|
|
2973
|
+
* List the available feature based roles
|
|
2974
|
+
* @summary List Feature Based Roles
|
|
2975
|
+
* @param {*} [options] Override http request option.
|
|
2976
|
+
* @throws {RequiredError}
|
|
2977
|
+
* @memberof ConfigurationDataApi
|
|
2978
|
+
*/
|
|
2979
|
+
ConfigurationDataApi.prototype.configListFeatureBasedRoles = function (options) {
|
|
2980
|
+
var _this = this;
|
|
2981
|
+
return (0, exports.ConfigurationDataApiFp)(this.configuration).configListFeatureBasedRoles(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2982
|
+
};
|
|
2403
2983
|
/**
|
|
2404
2984
|
* List the available permissions
|
|
2405
2985
|
* @summary List Permissions
|
|
2406
2986
|
* @param {*} [options] Override http request option.
|
|
2407
2987
|
* @throws {RequiredError}
|
|
2408
|
-
* @memberof
|
|
2988
|
+
* @memberof ConfigurationDataApi
|
|
2989
|
+
*/
|
|
2990
|
+
ConfigurationDataApi.prototype.configListPermissions = function (options) {
|
|
2991
|
+
var _this = this;
|
|
2992
|
+
return (0, exports.ConfigurationDataApiFp)(this.configuration).configListPermissions(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2993
|
+
};
|
|
2994
|
+
/**
|
|
2995
|
+
* List the available roles
|
|
2996
|
+
* @summary List Roles
|
|
2997
|
+
* @param {*} [options] Override http request option.
|
|
2998
|
+
* @throws {RequiredError}
|
|
2999
|
+
* @memberof ConfigurationDataApi
|
|
3000
|
+
*/
|
|
3001
|
+
ConfigurationDataApi.prototype.configListRoles = function (options) {
|
|
3002
|
+
var _this = this;
|
|
3003
|
+
return (0, exports.ConfigurationDataApiFp)(this.configuration).configListRoles(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3004
|
+
};
|
|
3005
|
+
/**
|
|
3006
|
+
* List the available feature based roles
|
|
3007
|
+
* @summary List Feature Based Roles
|
|
3008
|
+
* @param {*} [options] Override http request option.
|
|
3009
|
+
* @throws {RequiredError}
|
|
3010
|
+
* @memberof ConfigurationDataApi
|
|
3011
|
+
*/
|
|
3012
|
+
ConfigurationDataApi.prototype.listFeatureBasedRoles = function (options) {
|
|
3013
|
+
var _this = this;
|
|
3014
|
+
return (0, exports.ConfigurationDataApiFp)(this.configuration).listFeatureBasedRoles(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3015
|
+
};
|
|
3016
|
+
/**
|
|
3017
|
+
* List the available permissions
|
|
3018
|
+
* @summary List Permissions
|
|
3019
|
+
* @param {*} [options] Override http request option.
|
|
3020
|
+
* @throws {RequiredError}
|
|
3021
|
+
* @memberof ConfigurationDataApi
|
|
3022
|
+
*/
|
|
3023
|
+
ConfigurationDataApi.prototype.listPermissions = function (options) {
|
|
3024
|
+
var _this = this;
|
|
3025
|
+
return (0, exports.ConfigurationDataApiFp)(this.configuration).listPermissions(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3026
|
+
};
|
|
3027
|
+
/**
|
|
3028
|
+
* List the available roles
|
|
3029
|
+
* @summary List Roles
|
|
3030
|
+
* @param {*} [options] Override http request option.
|
|
3031
|
+
* @throws {RequiredError}
|
|
3032
|
+
* @memberof ConfigurationDataApi
|
|
2409
3033
|
*/
|
|
2410
|
-
|
|
3034
|
+
ConfigurationDataApi.prototype.listRoles = function (options) {
|
|
2411
3035
|
var _this = this;
|
|
2412
|
-
return (0, exports.
|
|
3036
|
+
return (0, exports.ConfigurationDataApiFp)(this.configuration).listRoles(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2413
3037
|
};
|
|
2414
|
-
return
|
|
3038
|
+
return ConfigurationDataApi;
|
|
2415
3039
|
}(base_1.BaseAPI));
|
|
2416
|
-
exports.
|
|
3040
|
+
exports.ConfigurationDataApi = ConfigurationDataApi;
|
|
2417
3041
|
/**
|
|
2418
3042
|
* RoleAssignmentApi - axios parameter creator
|
|
2419
3043
|
* @export
|