🚀New lib version v0.6.4 [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:
parent
d638d202ef
commit
045f76f3bd
2
dist/core/OpenAPI.js
vendored
2
dist/core/OpenAPI.js
vendored
@ -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,
|
||||
|
15
dist/services/MeService.d.ts
vendored
15
dist/services/MeService.d.ts
vendored
@ -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>;
|
||||
}
|
||||
|
21
dist/services/MeService.js
vendored
21
dist/services/MeService.js
vendored
@ -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
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@odit/lfk-client-js",
|
||||
"description": "A lib to interact with https://git.odit.services/lfk/backend. Use this version for native JS 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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user