new lib version [CI SKIP]

This commit is contained in:
2020-12-22 14:30:44 +00:00
parent 284f3303c3
commit 52ac2efc67
66 changed files with 799 additions and 122 deletions

View File

@@ -6,7 +6,7 @@ class UserService {
/**
* Get all
* Lists all users.
* @result User
* @returns User
* @throws ApiError
*/
static async userControllerGetAll() {
@@ -20,7 +20,7 @@ class UserService {
* Post
* Create a new user object (id will be generated automagicly).
* @param requestBody CreateUser
* @result any
* @returns any
* @throws ApiError
*/
static async userControllerPost(requestBody) {
@@ -35,7 +35,7 @@ class UserService {
* Get one
* Returns a user of a specified id (if it exists)
* @param id
* @result User
* @returns User
* @throws ApiError
*/
static async userControllerGetOne(id) {
@@ -49,8 +49,8 @@ class UserService {
* Put
* Update a user object (id can't be changed).
* @param id
* @param requestBody User
* @result User
* @param requestBody UpdateUser
* @returns User
* @throws ApiError
*/
static async userControllerPut(id, requestBody) {
@@ -63,16 +63,20 @@ class UserService {
}
/**
* Remove
* Delete a specified runner (if it exists).
* Delete a user runner (if it exists).
* @param id
* @result User
* @result ResponseEmpty
* @param force
* @returns User
* @returns ResponseEmpty
* @throws ApiError
*/
static async userControllerRemove(id) {
static async userControllerRemove(id, force) {
const result = await request_1.request({
method: 'DELETE',
path: `/api/users/${id}`,
query: {
'force': force,
},
});
return result.body;
}