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

This commit is contained in:
Nicolai Ort 2021-03-19 16:46:01 +00:00
parent 971998f954
commit 8fd732356e
5 changed files with 31 additions and 11 deletions

View File

@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
exports.OpenAPI = void 0; exports.OpenAPI = void 0;
exports.OpenAPI = { exports.OpenAPI = {
BASE: '', BASE: '',
VERSION: '0.6.3', VERSION: '0.6.4',
WITH_CREDENTIALS: false, WITH_CREDENTIALS: false,
TOKEN: undefined, TOKEN: undefined,
USERNAME: undefined, USERNAME: undefined,

View File

@ -3,12 +3,12 @@ import type { ResponseUserPermissions } from '../models/ResponseUserPermissions'
import type { UpdateUser } from '../models/UpdateUser'; import type { UpdateUser } from '../models/UpdateUser';
export declare class MeService { export declare class MeService {
/** /**
* Get permissions * Get
* Lists all permissions granted to the you sorted into directly granted and inherited as permission response objects. * Lists all information about yourself.
* @returns ResponseUserPermissions * @returns ResponseUser
* @throws ApiError * @throws ApiError
*/ */
static meControllerGetPermissions(): Promise<ResponseUserPermissions>; static meControllerGet(): Promise<ResponseUser>;
/** /**
* Put * Put
* Update the yourself. <br> You can't edit your own permissions or group memberships here - Please use the /api/users/:id enpoint instead. <br> Please remember that ids can't be changed. * Update the yourself. <br> You can't edit your own permissions or group memberships here - Please use the /api/users/:id enpoint instead. <br> Please remember that ids can't be changed.
@ -25,4 +25,11 @@ export declare class MeService {
* @throws ApiError * @throws ApiError
*/ */
static meControllerRemove(force?: boolean): Promise<ResponseUser>; static meControllerRemove(force?: boolean): Promise<ResponseUser>;
/**
* Get permissions
* Lists all permissions granted to the you sorted into directly granted and inherited as permission response objects.
* @returns ResponseUserPermissions
* @throws ApiError
*/
static meControllerGetPermissions(): Promise<ResponseUserPermissions>;
} }

View File

@ -4,12 +4,12 @@ exports.MeService = void 0;
const request_1 = require("../core/request"); const request_1 = require("../core/request");
class MeService { class MeService {
/** /**
* Get permissions * Get
* Lists all permissions granted to the you sorted into directly granted and inherited as permission response objects. * Lists all information about yourself.
* @returns ResponseUserPermissions * @returns ResponseUser
* @throws ApiError * @throws ApiError
*/ */
static async meControllerGetPermissions() { static async meControllerGet() {
const result = await request_1.request({ const result = await request_1.request({
method: 'GET', method: 'GET',
path: `/api/users/me/`, path: `/api/users/me/`,
@ -48,5 +48,18 @@ class MeService {
}); });
return result.body; return result.body;
} }
/**
* Get permissions
* Lists all permissions granted to the you sorted into directly granted and inherited as permission response objects.
* @returns ResponseUserPermissions
* @throws ApiError
*/
static async meControllerGetPermissions() {
const result = await request_1.request({
method: 'GET',
path: `/api/users/me/permissions`,
});
return result.body;
}
} }
exports.MeService = MeService; exports.MeService = MeService;

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
{ {
"name": "@odit/lfk-client-node", "name": "@odit/lfk-client-node",
"description": "A lib to interact with https://git.odit.services/lfk/backend. Use this version for NodeJS applications.", "description": "A lib to interact with https://git.odit.services/lfk/backend. Use this version for NodeJS applications.",
"version": "0.6.3", "version": "0.6.4",
"license": "CC-BY-NC-SA-4.0", "license": "CC-BY-NC-SA-4.0",
"main": "./dist/index.js", "main": "./dist/index.js",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",