🚀New lib version v0.4.5 [CI SKIP]
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
17
dist/services/UserGroupService.d.ts
vendored
17
dist/services/UserGroupService.d.ts
vendored
@@ -1,6 +1,7 @@
|
||||
import type { CreateUserGroup } from '../models/CreateUserGroup';
|
||||
import type { ResponseEmpty } from '../models/ResponseEmpty';
|
||||
import type { ResponseUserGroup } from '../models/ResponseUserGroup';
|
||||
import type { ResponseUserGroupPermissions } from '../models/ResponseUserGroupPermissions';
|
||||
import type { UpdateUserGroup } from '../models/UpdateUserGroup';
|
||||
import type { UserGroup } from '../models/UserGroup';
|
||||
import type { UserGroupNotFoundError } from '../models/UserGroupNotFoundError';
|
||||
@@ -8,10 +9,10 @@ export declare 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 userGroupControllerGetAll(): Promise<Array<UserGroup>>;
|
||||
static userGroupControllerGetAll(): Promise<Array<ResponseUserGroup>>;
|
||||
/**
|
||||
* Post
|
||||
* Create a new group. <br> If you want to grant permissions to the group you have to create them seperately by posting to /api/permissions after creating the group.
|
||||
@@ -24,10 +25,10 @@ export declare 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 userGroupControllerGetOne(id: number): Promise<UserGroup>;
|
||||
static userGroupControllerGetOne(id: number): Promise<ResponseUserGroup>;
|
||||
/**
|
||||
* Put
|
||||
* Update the group whose id you provided. <br> To change the permissions granted to the group please use /api/permissions instead. <br> Please remember that ids can't be changed.
|
||||
@@ -47,4 +48,12 @@ export declare class UserGroupService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
static userGroupControllerRemove(id: number, force?: boolean): Promise<ResponseUserGroup | ResponseEmpty>;
|
||||
/**
|
||||
* Get permissions
|
||||
* Lists all permissions granted to the group as permission response objects.
|
||||
* @param id
|
||||
* @returns ResponseUserGroupPermissions
|
||||
* @throws ApiError
|
||||
*/
|
||||
static userGroupControllerGetPermissions(id: number): Promise<ResponseUserGroupPermissions>;
|
||||
}
|
||||
|
||||
18
dist/services/UserGroupService.js
vendored
18
dist/services/UserGroupService.js
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user