👷🏻♀️ Update CI for client generation (#1573)
This commit is contained in:
1
.github/workflows/generate-client.yml
vendored
1
.github/workflows/generate-client.yml
vendored
@@ -39,7 +39,6 @@ jobs:
|
|||||||
- run: uv run bash scripts/generate-client.sh
|
- run: uv run bash scripts/generate-client.sh
|
||||||
env:
|
env:
|
||||||
VIRTUAL_ENV: backend/.venv
|
VIRTUAL_ENV: backend/.venv
|
||||||
ENVIRONMENT: production
|
|
||||||
SECRET_KEY: just-for-generating-client
|
SECRET_KEY: just-for-generating-client
|
||||||
POSTGRES_PASSWORD: just-for-generating-client
|
POSTGRES_PASSWORD: just-for-generating-client
|
||||||
FIRST_SUPERUSER_PASSWORD: just-for-generating-client
|
FIRST_SUPERUSER_PASSWORD: just-for-generating-client
|
||||||
|
@@ -23,6 +23,8 @@ import type {
|
|||||||
LoginResetPasswordResponse,
|
LoginResetPasswordResponse,
|
||||||
LoginRecoverPasswordHtmlContentData,
|
LoginRecoverPasswordHtmlContentData,
|
||||||
LoginRecoverPasswordHtmlContentResponse,
|
LoginRecoverPasswordHtmlContentResponse,
|
||||||
|
PrivateCreateUserData,
|
||||||
|
PrivateCreateUserResponse,
|
||||||
UsersReadUsersData,
|
UsersReadUsersData,
|
||||||
UsersReadUsersResponse,
|
UsersReadUsersResponse,
|
||||||
UsersCreateUserData,
|
UsersCreateUserData,
|
||||||
@@ -272,6 +274,30 @@ export class LoginService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export class PrivateService {
|
||||||
|
/**
|
||||||
|
* Create User
|
||||||
|
* Create a new user.
|
||||||
|
* @param data The data for the request.
|
||||||
|
* @param data.requestBody
|
||||||
|
* @returns UserPublic Successful Response
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static createUser(
|
||||||
|
data: PrivateCreateUserData,
|
||||||
|
): CancelablePromise<PrivateCreateUserResponse> {
|
||||||
|
return __request(OpenAPI, {
|
||||||
|
method: "POST",
|
||||||
|
url: "/api/v1/private/users/",
|
||||||
|
body: data.requestBody,
|
||||||
|
mediaType: "application/json",
|
||||||
|
errors: {
|
||||||
|
422: "Validation Error",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export class UsersService {
|
export class UsersService {
|
||||||
/**
|
/**
|
||||||
* Read Users
|
* Read Users
|
||||||
|
@@ -44,6 +44,13 @@ export type NewPassword = {
|
|||||||
new_password: string
|
new_password: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type PrivateUserCreate = {
|
||||||
|
email: string
|
||||||
|
password: string
|
||||||
|
full_name: string
|
||||||
|
is_verified?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
export type Token = {
|
export type Token = {
|
||||||
access_token: string
|
access_token: string
|
||||||
token_type?: string
|
token_type?: string
|
||||||
@@ -158,6 +165,12 @@ export type LoginRecoverPasswordHtmlContentData = {
|
|||||||
|
|
||||||
export type LoginRecoverPasswordHtmlContentResponse = string
|
export type LoginRecoverPasswordHtmlContentResponse = string
|
||||||
|
|
||||||
|
export type PrivateCreateUserData = {
|
||||||
|
requestBody: PrivateUserCreate
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PrivateCreateUserResponse = UserPublic
|
||||||
|
|
||||||
export type UsersReadUsersData = {
|
export type UsersReadUsersData = {
|
||||||
limit?: number
|
limit?: number
|
||||||
skip?: number
|
skip?: number
|
||||||
|
Reference in New Issue
Block a user