🚀New lib version v0.6.4 [CI SKIP]
continuous-integration/drone Build is passing Details

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 = {
BASE: '',
VERSION: '0.6.3',
VERSION: '0.6.4',
WITH_CREDENTIALS: false,
TOKEN: undefined,
USERNAME: undefined,

View File

@ -3,12 +3,12 @@ import type { ResponseUserPermissions } from '../models/ResponseUserPermissions'
import type { UpdateUser } from '../models/UpdateUser';
export declare class MeService {
/**
* Get permissions
* Lists all permissions granted to the you sorted into directly granted and inherited as permission response objects.
* @returns ResponseUserPermissions
* Get
* Lists all information about yourself.
* @returns ResponseUser
* @throws ApiError
*/
static meControllerGetPermissions(): Promise<ResponseUserPermissions>;
static meControllerGet(): Promise<ResponseUser>;
/**
* 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.
@ -25,4 +25,11 @@ export declare class MeService {
* @throws ApiError
*/
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");
class MeService {
/**
* Get permissions
* Lists all permissions granted to the you sorted into directly granted and inherited as permission response objects.
* @returns ResponseUserPermissions
* Get
* Lists all information about yourself.
* @returns ResponseUser
* @throws ApiError
*/
static async meControllerGetPermissions() {
static async meControllerGet() {
const result = await request_1.request({
method: 'GET',
path: `/api/users/me/`,
@ -48,5 +48,18 @@ class MeService {
});
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;

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
{
"name": "@odit/lfk-client-node",
"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",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",