@odit/lfk-client-js
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -9,2 +9,3 @@ export { ApiError } from './core/ApiError'; | ||
export type { CreateParticipant } from './models/CreateParticipant'; | ||
export { CreatePermission } from './models/CreatePermission'; | ||
export type { CreateRunner } from './models/CreateRunner'; | ||
@@ -19,3 +20,5 @@ export type { CreateRunnerGroup } from './models/CreateRunnerGroup'; | ||
export type { Donation } from './models/Donation'; | ||
export type { Donor } from './models/Donor'; | ||
export type { ExpiredJWTError } from './models/ExpiredJWTError'; | ||
export type { FixedDonation } from './models/FixedDonation'; | ||
export type { GroupContact } from './models/GroupContact'; | ||
@@ -27,4 +30,6 @@ export type { GroupContactNotFoundError } from './models/GroupContactNotFoundError'; | ||
export type { IllegalJWTError } from './models/IllegalJWTError'; | ||
export type { ImportRunner } from './models/ImportRunner'; | ||
export type { InvalidCredentialsError } from './models/InvalidCredentialsError'; | ||
export type { JwtNotProvidedError } from './models/JwtNotProvidedError'; | ||
export type { JwtUser } from './models/JwtUser'; | ||
export type { Logout } from './models/Logout'; | ||
@@ -34,3 +39,9 @@ export type { NoPermissionError } from './models/NoPermissionError'; | ||
export type { PasswordNeededError } from './models/PasswordNeededError'; | ||
export type { Permission } from './models/Permission'; | ||
export { Permission } from './models/Permission'; | ||
export type { PermissionIdsNotMatchingError } from './models/PermissionIdsNotMatchingError'; | ||
export type { PermissionNeedsPrincipalError } from './models/PermissionNeedsPrincipalError'; | ||
export type { PermissionNotFoundError } from './models/PermissionNotFoundError'; | ||
export type { Principal } from './models/Principal'; | ||
export type { PrincipalNotFoundError } from './models/PrincipalNotFoundError'; | ||
export type { PrincipalWrongTypeError } from './models/PrincipalWrongTypeError'; | ||
export type { RefreshAuth } from './models/RefreshAuth'; | ||
@@ -40,2 +51,4 @@ export type { RefreshTokenCountInvalidError } from './models/RefreshTokenCountInvalidError'; | ||
export type { ResponseParticipant } from './models/ResponseParticipant'; | ||
export { ResponsePermission } from './models/ResponsePermission'; | ||
export type { ResponsePrincipal } from './models/ResponsePrincipal'; | ||
export type { ResponseRunner } from './models/ResponseRunner'; | ||
@@ -46,2 +59,4 @@ export type { ResponseRunnerGroup } from './models/ResponseRunnerGroup'; | ||
export type { ResponseTrack } from './models/ResponseTrack'; | ||
export type { ResponseUser } from './models/ResponseUser'; | ||
export type { ResponseUserGroup } from './models/ResponseUserGroup'; | ||
export type { Runner } from './models/Runner'; | ||
@@ -71,2 +86,3 @@ export type { RunnerCard } from './models/RunnerCard'; | ||
export type { TrackScan } from './models/TrackScan'; | ||
export type { UpdatePermission } from './models/UpdatePermission'; | ||
export type { UpdateRunner } from './models/UpdateRunner'; | ||
@@ -85,2 +101,4 @@ export type { UpdateRunnerTeam } from './models/UpdateRunnerTeam'; | ||
export { AuthService } from './services/AuthService'; | ||
export { ImportService } from './services/ImportService'; | ||
export { PermissionService } from './services/PermissionService'; | ||
export { RunnerOrganisationService } from './services/RunnerOrganisationService'; | ||
@@ -87,0 +105,0 @@ export { RunnerService } from './services/RunnerService'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UserService = exports.UserGroupService = exports.TrackService = exports.RunnerTeamService = exports.RunnerService = exports.RunnerOrganisationService = exports.AuthService = exports.OpenAPI = exports.ApiError = void 0; | ||
exports.UserService = exports.UserGroupService = exports.TrackService = exports.RunnerTeamService = exports.RunnerService = exports.RunnerOrganisationService = exports.PermissionService = exports.ImportService = exports.AuthService = exports.ResponsePermission = exports.Permission = exports.CreatePermission = exports.OpenAPI = exports.ApiError = void 0; | ||
/* istanbul ignore file */ | ||
@@ -11,4 +11,14 @@ /* tslint:disable */ | ||
Object.defineProperty(exports, "OpenAPI", { enumerable: true, get: function () { return OpenAPI_1.OpenAPI; } }); | ||
var CreatePermission_1 = require("./models/CreatePermission"); | ||
Object.defineProperty(exports, "CreatePermission", { enumerable: true, get: function () { return CreatePermission_1.CreatePermission; } }); | ||
var Permission_1 = require("./models/Permission"); | ||
Object.defineProperty(exports, "Permission", { enumerable: true, get: function () { return Permission_1.Permission; } }); | ||
var ResponsePermission_1 = require("./models/ResponsePermission"); | ||
Object.defineProperty(exports, "ResponsePermission", { enumerable: true, get: function () { return ResponsePermission_1.ResponsePermission; } }); | ||
var AuthService_1 = require("./services/AuthService"); | ||
Object.defineProperty(exports, "AuthService", { enumerable: true, get: function () { return AuthService_1.AuthService; } }); | ||
var ImportService_1 = require("./services/ImportService"); | ||
Object.defineProperty(exports, "ImportService", { enumerable: true, get: function () { return ImportService_1.ImportService; } }); | ||
var PermissionService_1 = require("./services/PermissionService"); | ||
Object.defineProperty(exports, "PermissionService", { enumerable: true, get: function () { return PermissionService_1.PermissionService; } }); | ||
var RunnerOrganisationService_1 = require("./services/RunnerOrganisationService"); | ||
@@ -15,0 +25,0 @@ Object.defineProperty(exports, "RunnerOrganisationService", { enumerable: true, get: function () { return RunnerOrganisationService_1.RunnerOrganisationService; } }); |
@@ -9,3 +9,3 @@ export declare type CreateUser = { | ||
password: string; | ||
groupId?: any; | ||
group?: any; | ||
}; |
export declare type Permission = { | ||
id: number; | ||
target: string; | ||
action: string; | ||
target: Permission.target; | ||
action: Permission.action; | ||
}; | ||
export declare namespace Permission { | ||
enum target { | ||
RUNNER = "RUNNER", | ||
ORGANISATION = "ORGANISATION", | ||
TEAM = "TEAM", | ||
TRACK = "TRACK", | ||
USER = "USER", | ||
USERGROUP = "USERGROUP", | ||
PERMISSION = "PERMISSION" | ||
} | ||
enum action { | ||
GET = "GET", | ||
CREATE = "CREATE", | ||
UPDATE = "UPDATE", | ||
DELETE = "DELETE", | ||
IMPORT = "IMPORT" | ||
} | ||
} |
@@ -6,1 +6,23 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Permission = void 0; | ||
var Permission; | ||
(function (Permission) { | ||
let target; | ||
(function (target) { | ||
target["RUNNER"] = "RUNNER"; | ||
target["ORGANISATION"] = "ORGANISATION"; | ||
target["TEAM"] = "TEAM"; | ||
target["TRACK"] = "TRACK"; | ||
target["USER"] = "USER"; | ||
target["USERGROUP"] = "USERGROUP"; | ||
target["PERMISSION"] = "PERMISSION"; | ||
})(target = Permission.target || (Permission.target = {})); | ||
let action; | ||
(function (action) { | ||
action["GET"] = "GET"; | ||
action["CREATE"] = "CREATE"; | ||
action["UPDATE"] = "UPDATE"; | ||
action["DELETE"] = "DELETE"; | ||
action["IMPORT"] = "IMPORT"; | ||
})(action = Permission.action || (Permission.action = {})); | ||
})(Permission = exports.Permission || (exports.Permission = {})); |
export declare type User = { | ||
id: number; | ||
uuid: string; | ||
@@ -11,3 +10,2 @@ email: string; | ||
password: string; | ||
permissions?: any; | ||
groups?: any; | ||
@@ -18,2 +16,3 @@ enabled: boolean; | ||
actions?: any; | ||
id: number; | ||
}; |
export declare type UserGroup = { | ||
id: number; | ||
name: string; | ||
description?: string; | ||
id: number; | ||
}; |
@@ -8,3 +8,2 @@ import type { CreateTrack } from '../models/CreateTrack'; | ||
* Get all | ||
* Lists all tracks. | ||
* @returns ResponseTrack | ||
@@ -11,0 +10,0 @@ * @throws ApiError |
@@ -8,3 +8,2 @@ "use strict"; | ||
* Get all | ||
* Lists all tracks. | ||
* @returns ResponseTrack | ||
@@ -11,0 +10,0 @@ * @throws ApiError |
import type { CreateUserGroup } from '../models/CreateUserGroup'; | ||
import type { ResponseEmpty } from '../models/ResponseEmpty'; | ||
import type { ResponseUserGroup } from '../models/ResponseUserGroup'; | ||
import type { UserGroup } from '../models/UserGroup'; | ||
@@ -42,7 +43,8 @@ import type { UserGroupNotFoundError } from '../models/UserGroupNotFoundError'; | ||
* @param id | ||
* @returns UserGroup | ||
* @param force | ||
* @returns ResponseUserGroup | ||
* @returns ResponseEmpty | ||
* @throws ApiError | ||
*/ | ||
static userGroupControllerRemove(id: number): Promise<UserGroup | ResponseEmpty>; | ||
static userGroupControllerRemove(id: number, force?: boolean): Promise<ResponseUserGroup | ResponseEmpty>; | ||
} |
@@ -68,10 +68,14 @@ "use strict"; | ||
* @param id | ||
* @returns UserGroup | ||
* @param force | ||
* @returns ResponseUserGroup | ||
* @returns ResponseEmpty | ||
* @throws ApiError | ||
*/ | ||
static async userGroupControllerRemove(id) { | ||
static async userGroupControllerRemove(id, force) { | ||
const result = await request_1.request({ | ||
method: 'DELETE', | ||
path: `/api/usergroups/${id}`, | ||
query: { | ||
'force': force, | ||
}, | ||
}); | ||
@@ -78,0 +82,0 @@ return result.body; |
@@ -42,2 +42,3 @@ import type { CreateUser } from '../models/CreateUser'; | ||
* @param id | ||
* @param force | ||
* @returns User | ||
@@ -47,3 +48,3 @@ * @returns ResponseEmpty | ||
*/ | ||
static userControllerRemove(id: number): Promise<User | ResponseEmpty>; | ||
static userControllerRemove(id: number, force?: boolean): Promise<User | ResponseEmpty>; | ||
} |
@@ -68,2 +68,3 @@ "use strict"; | ||
* @param id | ||
* @param force | ||
* @returns User | ||
@@ -73,6 +74,9 @@ * @returns ResponseEmpty | ||
*/ | ||
static async userControllerRemove(id) { | ||
static async userControllerRemove(id, force) { | ||
const result = await request_1.request({ | ||
method: 'DELETE', | ||
path: `/api/users/${id}`, | ||
query: { | ||
'force': force, | ||
}, | ||
}); | ||
@@ -79,0 +83,0 @@ return result.body; |
{ | ||
"name": "@odit/lfk-client-js", | ||
"description": "A lib to interact with https://git.odit.services/lfk/backend", | ||
"version": "0.0.3", | ||
"version": "0.0.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
105749
213
2636