|
@ -5,8 +5,8 @@ |
|
|
import type { Message } from '../models/Message'; |
|
|
import type { Message } from '../models/Message'; |
|
|
import type { UpdatePassword } from '../models/UpdatePassword'; |
|
|
import type { UpdatePassword } from '../models/UpdatePassword'; |
|
|
import type { UserCreate } from '../models/UserCreate'; |
|
|
import type { UserCreate } from '../models/UserCreate'; |
|
|
import type { UserCreateOpen } from '../models/UserCreateOpen'; |
|
|
|
|
|
import type { UserOut } from '../models/UserOut'; |
|
|
import type { UserOut } from '../models/UserOut'; |
|
|
|
|
|
import type { UserRegister } from '../models/UserRegister'; |
|
|
import type { UsersOut } from '../models/UsersOut'; |
|
|
import type { UsersOut } from '../models/UsersOut'; |
|
|
import type { UserUpdate } from '../models/UserUpdate'; |
|
|
import type { UserUpdate } from '../models/UserUpdate'; |
|
|
import type { UserUpdateMe } from '../models/UserUpdateMe'; |
|
|
import type { UserUpdateMe } from '../models/UserUpdateMe'; |
|
@ -24,12 +24,12 @@ export class UsersService { |
|
|
* @throws ApiError |
|
|
* @throws ApiError |
|
|
*/ |
|
|
*/ |
|
|
public static readUsers({ |
|
|
public static readUsers({ |
|
|
skip, |
|
|
skip, |
|
|
limit = 100, |
|
|
limit = 100, |
|
|
}: { |
|
|
}: { |
|
|
skip?: number, |
|
|
skip?: number, |
|
|
limit?: number, |
|
|
limit?: number, |
|
|
}): CancelablePromise<UsersOut> { |
|
|
}): CancelablePromise<UsersOut> { |
|
|
return __request(OpenAPI, { |
|
|
return __request(OpenAPI, { |
|
|
method: 'GET', |
|
|
method: 'GET', |
|
|
url: '/api/v1/users/', |
|
|
url: '/api/v1/users/', |
|
@ -50,10 +50,10 @@ limit?: number, |
|
|
* @throws ApiError |
|
|
* @throws ApiError |
|
|
*/ |
|
|
*/ |
|
|
public static createUser({ |
|
|
public static createUser({ |
|
|
requestBody, |
|
|
requestBody, |
|
|
}: { |
|
|
}: { |
|
|
requestBody: UserCreate, |
|
|
requestBody: UserCreate, |
|
|
}): CancelablePromise<UserOut> { |
|
|
}): CancelablePromise<UserOut> { |
|
|
return __request(OpenAPI, { |
|
|
return __request(OpenAPI, { |
|
|
method: 'POST', |
|
|
method: 'POST', |
|
|
url: '/api/v1/users/', |
|
|
url: '/api/v1/users/', |
|
@ -85,10 +85,10 @@ requestBody: UserCreate, |
|
|
* @throws ApiError |
|
|
* @throws ApiError |
|
|
*/ |
|
|
*/ |
|
|
public static updateUserMe({ |
|
|
public static updateUserMe({ |
|
|
requestBody, |
|
|
requestBody, |
|
|
}: { |
|
|
}: { |
|
|
requestBody: UserUpdateMe, |
|
|
requestBody: UserUpdateMe, |
|
|
}): CancelablePromise<UserOut> { |
|
|
}): CancelablePromise<UserOut> { |
|
|
return __request(OpenAPI, { |
|
|
return __request(OpenAPI, { |
|
|
method: 'PATCH', |
|
|
method: 'PATCH', |
|
|
url: '/api/v1/users/me', |
|
|
url: '/api/v1/users/me', |
|
@ -107,10 +107,10 @@ requestBody: UserUpdateMe, |
|
|
* @throws ApiError |
|
|
* @throws ApiError |
|
|
*/ |
|
|
*/ |
|
|
public static updatePasswordMe({ |
|
|
public static updatePasswordMe({ |
|
|
requestBody, |
|
|
requestBody, |
|
|
}: { |
|
|
}: { |
|
|
requestBody: UpdatePassword, |
|
|
requestBody: UpdatePassword, |
|
|
}): CancelablePromise<Message> { |
|
|
}): CancelablePromise<Message> { |
|
|
return __request(OpenAPI, { |
|
|
return __request(OpenAPI, { |
|
|
method: 'PATCH', |
|
|
method: 'PATCH', |
|
|
url: '/api/v1/users/me/password', |
|
|
url: '/api/v1/users/me/password', |
|
@ -123,19 +123,19 @@ requestBody: UpdatePassword, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Create User Open |
|
|
* Register User |
|
|
* Create new user without the need to be logged in. |
|
|
* Create new user without the need to be logged in. |
|
|
* @returns UserOut Successful Response |
|
|
* @returns UserOut Successful Response |
|
|
* @throws ApiError |
|
|
* @throws ApiError |
|
|
*/ |
|
|
*/ |
|
|
public static createUserOpen({ |
|
|
public static registerUser({ |
|
|
requestBody, |
|
|
requestBody, |
|
|
}: { |
|
|
}: { |
|
|
requestBody: UserCreateOpen, |
|
|
requestBody: UserRegister, |
|
|
}): CancelablePromise<UserOut> { |
|
|
}): CancelablePromise<UserOut> { |
|
|
return __request(OpenAPI, { |
|
|
return __request(OpenAPI, { |
|
|
method: 'POST', |
|
|
method: 'POST', |
|
|
url: '/api/v1/users/open', |
|
|
url: '/api/v1/users/signup', |
|
|
body: requestBody, |
|
|
body: requestBody, |
|
|
mediaType: 'application/json', |
|
|
mediaType: 'application/json', |
|
|
errors: { |
|
|
errors: { |
|
@ -151,10 +151,10 @@ requestBody: UserCreateOpen, |
|
|
* @throws ApiError |
|
|
* @throws ApiError |
|
|
*/ |
|
|
*/ |
|
|
public static readUserById({ |
|
|
public static readUserById({ |
|
|
userId, |
|
|
userId, |
|
|
}: { |
|
|
}: { |
|
|
userId: number, |
|
|
userId: number, |
|
|
}): CancelablePromise<UserOut> { |
|
|
}): CancelablePromise<UserOut> { |
|
|
return __request(OpenAPI, { |
|
|
return __request(OpenAPI, { |
|
|
method: 'GET', |
|
|
method: 'GET', |
|
|
url: '/api/v1/users/{user_id}', |
|
|
url: '/api/v1/users/{user_id}', |
|
@ -174,12 +174,12 @@ userId: number, |
|
|
* @throws ApiError |
|
|
* @throws ApiError |
|
|
*/ |
|
|
*/ |
|
|
public static updateUser({ |
|
|
public static updateUser({ |
|
|
userId, |
|
|
userId, |
|
|
requestBody, |
|
|
requestBody, |
|
|
}: { |
|
|
}: { |
|
|
userId: number, |
|
|
userId: number, |
|
|
requestBody: UserUpdate, |
|
|
requestBody: UserUpdate, |
|
|
}): CancelablePromise<UserOut> { |
|
|
}): CancelablePromise<UserOut> { |
|
|
return __request(OpenAPI, { |
|
|
return __request(OpenAPI, { |
|
|
method: 'PATCH', |
|
|
method: 'PATCH', |
|
|
url: '/api/v1/users/{user_id}', |
|
|
url: '/api/v1/users/{user_id}', |
|
@ -201,10 +201,10 @@ requestBody: UserUpdate, |
|
|
* @throws ApiError |
|
|
* @throws ApiError |
|
|
*/ |
|
|
*/ |
|
|
public static deleteUser({ |
|
|
public static deleteUser({ |
|
|
userId, |
|
|
userId, |
|
|
}: { |
|
|
}: { |
|
|
userId: number, |
|
|
userId: number, |
|
|
}): CancelablePromise<Message> { |
|
|
}): CancelablePromise<Message> { |
|
|
return __request(OpenAPI, { |
|
|
return __request(OpenAPI, { |
|
|
method: 'DELETE', |
|
|
method: 'DELETE', |
|
|
url: '/api/v1/users/{user_id}', |
|
|
url: '/api/v1/users/{user_id}', |
|
|