🚀New lib version v0.4.5 [CI SKIP]
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2021-02-09 18:28:47 +00:00
parent 28b463ca0a
commit 46be0ad3f1
8 changed files with 42 additions and 9 deletions

View File

@@ -6,7 +6,7 @@ class UserGroupService {
/**
* Get all
* Lists all groups. <br> The information provided might change while the project continues to evolve.
* @returns UserGroup
* @returns ResponseUserGroup
* @throws ApiError
*/
static async userGroupControllerGetAll() {
@@ -35,7 +35,7 @@ class UserGroupService {
* Get one
* Lists all information about the group whose id got provided. <br> The information provided might change while the project continues to evolve.
* @param id
* @returns UserGroup
* @returns ResponseUserGroup
* @throws ApiError
*/
static async userGroupControllerGetOne(id) {
@@ -80,5 +80,19 @@ class UserGroupService {
});
return result.body;
}
/**
* Get permissions
* Lists all permissions granted to the group as permission response objects.
* @param id
* @returns ResponseUserGroupPermissions
* @throws ApiError
*/
static async userGroupControllerGetPermissions(id) {
const result = await request_1.request({
method: 'GET',
path: `/api/usergroups/${id}/permissions`,
});
return result.body;
}
}
exports.UserGroupService = UserGroupService;