@odit/lfk-client-js
Advanced tools
Comparing version 0.6.3 to 0.6.4
@@ -6,3 +6,3 @@ "use strict"; | ||
BASE: '', | ||
VERSION: '0.6.3', | ||
VERSION: '0.6.4', | ||
WITH_CREDENTIALS: false, | ||
@@ -9,0 +9,0 @@ TOKEN: undefined, |
@@ -6,8 +6,8 @@ import type { ResponseUser } from '../models/ResponseUser'; | ||
/** | ||
* 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>; | ||
/** | ||
@@ -29,2 +29,9 @@ * Put | ||
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>; | ||
} |
@@ -7,8 +7,8 @@ "use strict"; | ||
/** | ||
* 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({ | ||
@@ -52,3 +52,16 @@ method: 'GET', | ||
} | ||
/** | ||
* 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; |
{ | ||
"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", | ||
@@ -6,0 +6,0 @@ "main": "./dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
206928
5355