new lib version [CI SKIP]

This commit is contained in:
2020-12-13 08:11:57 +00:00
parent 20f716d134
commit f5489e1b1e
88 changed files with 1750 additions and 0 deletions

99
dist/services/UserService.ts vendored Normal file
View 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;
}
}