new lib version [CI SKIP]
This commit is contained in:
74
dist/services/AuthService.ts
vendored
Normal file
74
dist/services/AuthService.ts
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { Auth } from '../models/Auth';
|
||||
import type { CreateAuth } from '../models/CreateAuth';
|
||||
import type { HandleLogout } from '../models/HandleLogout';
|
||||
import type { IllegalJWTError } from '../models/IllegalJWTError';
|
||||
import type { InvalidCredentialsError } from '../models/InvalidCredentialsError';
|
||||
import type { JwtNotProvidedError } from '../models/JwtNotProvidedError';
|
||||
import type { Logout } from '../models/Logout';
|
||||
import type { PasswordNeededError } from '../models/PasswordNeededError';
|
||||
import type { RefreshAuth } from '../models/RefreshAuth';
|
||||
import type { RefreshTokenCountInvalidError } from '../models/RefreshTokenCountInvalidError';
|
||||
import type { UsernameOrEmailNeededError } from '../models/UsernameOrEmailNeededError';
|
||||
import type { UserNotFoundError } from '../models/UserNotFoundError';
|
||||
import { request as __request } from '../core/request';
|
||||
|
||||
export class AuthService {
|
||||
|
||||
/**
|
||||
* Login
|
||||
* Create a new access token object
|
||||
* @param requestBody CreateAuth
|
||||
* @result any
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async authControllerLogin(
|
||||
requestBody?: CreateAuth,
|
||||
): Promise<(Auth | InvalidCredentialsError | UserNotFoundError | UsernameOrEmailNeededError | PasswordNeededError | InvalidCredentialsError)> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/auth/login`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Logout
|
||||
* Create a new access token object
|
||||
* @param requestBody HandleLogout
|
||||
* @result any
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async authControllerLogout(
|
||||
requestBody?: HandleLogout,
|
||||
): Promise<(Logout | InvalidCredentialsError | UserNotFoundError | UsernameOrEmailNeededError | PasswordNeededError | InvalidCredentialsError)> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/auth/logout`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Refresh
|
||||
* refresh a access token
|
||||
* @param requestBody RefreshAuth
|
||||
* @result any
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async authControllerRefresh(
|
||||
requestBody?: RefreshAuth,
|
||||
): Promise<(Auth | JwtNotProvidedError | IllegalJWTError | UserNotFoundError | RefreshTokenCountInvalidError)> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/auth/refresh`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
}
|
||||
104
dist/services/RunnerOrganisationService.ts
vendored
Normal file
104
dist/services/RunnerOrganisationService.ts
vendored
Normal file
@@ -0,0 +1,104 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { CreateRunnerOrganisation } from '../models/CreateRunnerOrganisation';
|
||||
import type { ResponseEmpty } from '../models/ResponseEmpty';
|
||||
import type { ResponseRunnerOrganisation } from '../models/ResponseRunnerOrganisation';
|
||||
import type { RunnerOrganisation } from '../models/RunnerOrganisation';
|
||||
import { request as __request } from '../core/request';
|
||||
|
||||
export class RunnerOrganisationService {
|
||||
|
||||
/**
|
||||
* Get all
|
||||
* Lists all runnerOrganisations.
|
||||
* @result ResponseRunnerOrganisation
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async runnerOrganisationControllerGetAll(): Promise<Array<ResponseRunnerOrganisation>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/organisations`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Post
|
||||
* Create a new runnerOrganisation object (id will be generated automagicly).
|
||||
* @param requestBody CreateRunnerOrganisation
|
||||
* @result ResponseRunnerOrganisation
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async runnerOrganisationControllerPost(
|
||||
requestBody?: CreateRunnerOrganisation,
|
||||
): Promise<ResponseRunnerOrganisation> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/organisations`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get one
|
||||
* Returns a runnerOrganisation of a specified id (if it exists)
|
||||
* @param id
|
||||
* @result ResponseRunnerOrganisation
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async runnerOrganisationControllerGetOne(
|
||||
id: number,
|
||||
): Promise<ResponseRunnerOrganisation> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/organisations/${id}`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Put
|
||||
* Update a runnerOrganisation object (id can't be changed).
|
||||
* @param id
|
||||
* @param requestBody RunnerOrganisation
|
||||
* @result ResponseRunnerOrganisation
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async runnerOrganisationControllerPut(
|
||||
id: number,
|
||||
requestBody?: RunnerOrganisation,
|
||||
): Promise<ResponseRunnerOrganisation> {
|
||||
const result = await __request({
|
||||
method: 'PUT',
|
||||
path: `/api/organisations/${id}`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove
|
||||
* Delete a specified runnerOrganisation (if it exists).
|
||||
* @param id
|
||||
* @param force
|
||||
* @result ResponseRunnerOrganisation
|
||||
* @result ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async runnerOrganisationControllerRemove(
|
||||
id: number,
|
||||
force?: boolean,
|
||||
): Promise<ResponseRunnerOrganisation | ResponseEmpty> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/organisations/${id}`,
|
||||
query: {
|
||||
'force': force,
|
||||
},
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
}
|
||||
106
dist/services/RunnerService.ts
vendored
Normal file
106
dist/services/RunnerService.ts
vendored
Normal file
@@ -0,0 +1,106 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { CreateRunner } from '../models/CreateRunner';
|
||||
import type { ResponseEmpty } from '../models/ResponseEmpty';
|
||||
import type { ResponseRunner } from '../models/ResponseRunner';
|
||||
import type { RunnerGroupNeededError } from '../models/RunnerGroupNeededError';
|
||||
import type { RunnerGroupNotFoundError } from '../models/RunnerGroupNotFoundError';
|
||||
import type { UpdateRunner } from '../models/UpdateRunner';
|
||||
import { request as __request } from '../core/request';
|
||||
|
||||
export class RunnerService {
|
||||
|
||||
/**
|
||||
* Get all
|
||||
* Lists all runners.
|
||||
* @result ResponseRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async runnerControllerGetAll(): Promise<Array<ResponseRunner>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/runners`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Post
|
||||
* Create a new runner object (id will be generated automagicly).
|
||||
* @param requestBody CreateRunner
|
||||
* @result any
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async runnerControllerPost(
|
||||
requestBody?: CreateRunner,
|
||||
): Promise<(ResponseRunner | RunnerGroupNeededError | RunnerGroupNotFoundError)> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/runners`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get one
|
||||
* Returns a runner of a specified id (if it exists)
|
||||
* @param id
|
||||
* @result ResponseRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async runnerControllerGetOne(
|
||||
id: number,
|
||||
): Promise<ResponseRunner> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/runners/${id}`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Put
|
||||
* Update a runner object (id can't be changed).
|
||||
* @param id
|
||||
* @param requestBody UpdateRunner
|
||||
* @result ResponseRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async runnerControllerPut(
|
||||
id: number,
|
||||
requestBody?: UpdateRunner,
|
||||
): Promise<ResponseRunner> {
|
||||
const result = await __request({
|
||||
method: 'PUT',
|
||||
path: `/api/runners/${id}`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove
|
||||
* Delete a specified runner (if it exists).
|
||||
* @param id
|
||||
* @param force
|
||||
* @result ResponseRunner
|
||||
* @result ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async runnerControllerRemove(
|
||||
id: number,
|
||||
force?: boolean,
|
||||
): Promise<ResponseRunner | ResponseEmpty> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/runners/${id}`,
|
||||
query: {
|
||||
'force': force,
|
||||
},
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
}
|
||||
104
dist/services/RunnerTeamService.ts
vendored
Normal file
104
dist/services/RunnerTeamService.ts
vendored
Normal file
@@ -0,0 +1,104 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { CreateRunnerTeam } from '../models/CreateRunnerTeam';
|
||||
import type { ResponseEmpty } from '../models/ResponseEmpty';
|
||||
import type { ResponseRunnerTeam } from '../models/ResponseRunnerTeam';
|
||||
import type { UpdateRunnerTeam } from '../models/UpdateRunnerTeam';
|
||||
import { request as __request } from '../core/request';
|
||||
|
||||
export class RunnerTeamService {
|
||||
|
||||
/**
|
||||
* Get all
|
||||
* Lists all runnerTeams.
|
||||
* @result ResponseRunnerTeam
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async runnerTeamControllerGetAll(): Promise<Array<ResponseRunnerTeam>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/teams`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Post
|
||||
* Create a new runnerTeam object (id will be generated automagicly).
|
||||
* @param requestBody CreateRunnerTeam
|
||||
* @result ResponseRunnerTeam
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async runnerTeamControllerPost(
|
||||
requestBody?: CreateRunnerTeam,
|
||||
): Promise<ResponseRunnerTeam> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/teams`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get one
|
||||
* Returns a runnerTeam of a specified id (if it exists)
|
||||
* @param id
|
||||
* @result ResponseRunnerTeam
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async runnerTeamControllerGetOne(
|
||||
id: number,
|
||||
): Promise<ResponseRunnerTeam> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/teams/${id}`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Put
|
||||
* Update a runnerTeam object (id can't be changed).
|
||||
* @param id
|
||||
* @param requestBody UpdateRunnerTeam
|
||||
* @result ResponseRunnerTeam
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async runnerTeamControllerPut(
|
||||
id: number,
|
||||
requestBody?: UpdateRunnerTeam,
|
||||
): Promise<ResponseRunnerTeam> {
|
||||
const result = await __request({
|
||||
method: 'PUT',
|
||||
path: `/api/teams/${id}`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove
|
||||
* Delete a specified runnerTeam (if it exists).
|
||||
* @param id
|
||||
* @param force
|
||||
* @result ResponseRunnerTeam
|
||||
* @result ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async runnerTeamControllerRemove(
|
||||
id: number,
|
||||
force?: boolean,
|
||||
): Promise<ResponseRunnerTeam | ResponseEmpty> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/teams/${id}`,
|
||||
query: {
|
||||
'force': force,
|
||||
},
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
}
|
||||
99
dist/services/TrackService.ts
vendored
Normal file
99
dist/services/TrackService.ts
vendored
Normal file
@@ -0,0 +1,99 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { CreateTrack } from '../models/CreateTrack';
|
||||
import type { ResponseEmpty } from '../models/ResponseEmpty';
|
||||
import type { ResponseTrack } from '../models/ResponseTrack';
|
||||
import type { Track } from '../models/Track';
|
||||
import { request as __request } from '../core/request';
|
||||
|
||||
export class TrackService {
|
||||
|
||||
/**
|
||||
* Get all
|
||||
* Lists all tracks.
|
||||
* @result ResponseTrack
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async trackControllerGetAll(): Promise<Array<ResponseTrack>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/tracks`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Post
|
||||
* Create a new track object (id will be generated automagicly).
|
||||
* @param requestBody CreateTrack
|
||||
* @result ResponseTrack
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async trackControllerPost(
|
||||
requestBody?: CreateTrack,
|
||||
): Promise<ResponseTrack> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/tracks`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get one
|
||||
* Returns a track of a specified id (if it exists)
|
||||
* @param id
|
||||
* @result ResponseTrack
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async trackControllerGetOne(
|
||||
id: number,
|
||||
): Promise<ResponseTrack> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/tracks/${id}`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Put
|
||||
* Update a track object (id can't be changed).
|
||||
* @param id
|
||||
* @param requestBody Track
|
||||
* @result ResponseTrack
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async trackControllerPut(
|
||||
id: number,
|
||||
requestBody?: Track,
|
||||
): Promise<ResponseTrack> {
|
||||
const result = await __request({
|
||||
method: 'PUT',
|
||||
path: `/api/tracks/${id}`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove
|
||||
* Delete a specified track (if it exists).
|
||||
* @param id
|
||||
* @result ResponseTrack
|
||||
* @result ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async trackControllerRemove(
|
||||
id: number,
|
||||
): Promise<ResponseTrack | ResponseEmpty> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/tracks/${id}`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
}
|
||||
99
dist/services/UserGroupService.ts
vendored
Normal file
99
dist/services/UserGroupService.ts
vendored
Normal file
@@ -0,0 +1,99 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { CreateUserGroup } from '../models/CreateUserGroup';
|
||||
import type { ResponseEmpty } from '../models/ResponseEmpty';
|
||||
import type { UserGroup } from '../models/UserGroup';
|
||||
import type { UserGroupNotFoundError } from '../models/UserGroupNotFoundError';
|
||||
import { request as __request } from '../core/request';
|
||||
|
||||
export class UserGroupService {
|
||||
|
||||
/**
|
||||
* Get all
|
||||
* Lists all usergroups.
|
||||
* @result UserGroup
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async userGroupControllerGetAll(): Promise<Array<UserGroup>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/usergroups`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Post
|
||||
* Create a new usergroup object (id will be generated automagicly).
|
||||
* @param requestBody CreateUserGroup
|
||||
* @result any
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async userGroupControllerPost(
|
||||
requestBody?: CreateUserGroup,
|
||||
): Promise<(UserGroup | UserGroupNotFoundError)> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/usergroups`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get one
|
||||
* Returns a usergroup of a specified id (if it exists)
|
||||
* @param id
|
||||
* @result UserGroup
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async userGroupControllerGetOne(
|
||||
id: number,
|
||||
): Promise<UserGroup> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/usergroups/${id}`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Put
|
||||
* Update a usergroup object (id can't be changed).
|
||||
* @param id
|
||||
* @param requestBody UserGroup
|
||||
* @result UserGroup
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async userGroupControllerPut(
|
||||
id: number,
|
||||
requestBody?: UserGroup,
|
||||
): Promise<UserGroup> {
|
||||
const result = await __request({
|
||||
method: 'PUT',
|
||||
path: `/api/usergroups/${id}`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove
|
||||
* Delete a specified usergroup (if it exists).
|
||||
* @param id
|
||||
* @result UserGroup
|
||||
* @result ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async userGroupControllerRemove(
|
||||
id: number,
|
||||
): Promise<UserGroup | ResponseEmpty> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/usergroups/${id}`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
}
|
||||
99
dist/services/UserService.ts
vendored
Normal file
99
dist/services/UserService.ts
vendored
Normal file
@@ -0,0 +1,99 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { CreateUser } from '../models/CreateUser';
|
||||
import type { ResponseEmpty } from '../models/ResponseEmpty';
|
||||
import type { User } from '../models/User';
|
||||
import type { UserGroupNotFoundError } from '../models/UserGroupNotFoundError';
|
||||
import { request as __request } from '../core/request';
|
||||
|
||||
export class UserService {
|
||||
|
||||
/**
|
||||
* Get all
|
||||
* Lists all users.
|
||||
* @result User
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async userControllerGetAll(): Promise<Array<User>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/users`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Post
|
||||
* Create a new user object (id will be generated automagicly).
|
||||
* @param requestBody CreateUser
|
||||
* @result any
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async userControllerPost(
|
||||
requestBody?: CreateUser,
|
||||
): Promise<(User | UserGroupNotFoundError)> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/users`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get one
|
||||
* Returns a user of a specified id (if it exists)
|
||||
* @param id
|
||||
* @result User
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async userControllerGetOne(
|
||||
id: number,
|
||||
): Promise<User> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/users/${id}`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Put
|
||||
* Update a user object (id can't be changed).
|
||||
* @param id
|
||||
* @param requestBody User
|
||||
* @result User
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async userControllerPut(
|
||||
id: number,
|
||||
requestBody?: User,
|
||||
): Promise<User> {
|
||||
const result = await __request({
|
||||
method: 'PUT',
|
||||
path: `/api/users/${id}`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove
|
||||
* Delete a specified runner (if it exists).
|
||||
* @param id
|
||||
* @result User
|
||||
* @result ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async userControllerRemove(
|
||||
id: number,
|
||||
): Promise<User | ResponseEmpty> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/users/${id}`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user