From 2c61af04729156b024655d0364d4d9c60210d715 Mon Sep 17 00:00:00 2001 From: User Date: Sun, 27 Apr 2025 12:47:24 +0200 Subject: [PATCH 1/5] trigger ci From da54b31c10d6b31a1d091f4a33339b065fa2543d Mon Sep 17 00:00:00 2001 From: User Date: Sun, 27 Apr 2025 12:54:57 +0200 Subject: [PATCH 2/5] Update --- backend/app/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/app/main.py b/backend/app/main.py index 9a95801e74..b571d788d0 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -31,3 +31,5 @@ def custom_generate_unique_id(route: APIRoute) -> str: ) app.include_router(api_router, prefix=settings.API_V1_STR) + +print("bu") \ No newline at end of file From 4ad1b8136d24b632c0f73cba2d276420329c9e0c Mon Sep 17 00:00:00 2001 From: User Date: Sun, 27 Apr 2025 13:13:16 +0200 Subject: [PATCH 3/5] Update --- .github/workflows/generate-client.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/generate-client.yml b/.github/workflows/generate-client.yml index 370017d5d3..4341df0b70 100644 --- a/.github/workflows/generate-client.yml +++ b/.github/workflows/generate-client.yml @@ -39,7 +39,6 @@ jobs: - run: uv run bash scripts/generate-client.sh env: VIRTUAL_ENV: backend/.venv - ENVIRONMENT: production SECRET_KEY: just-for-generating-client POSTGRES_PASSWORD: just-for-generating-client FIRST_SUPERUSER_PASSWORD: just-for-generating-client From 25b81805889d2e08418516ab13587fb8013f22fe Mon Sep 17 00:00:00 2001 From: github-actions Date: Sun, 27 Apr 2025 11:13:57 +0000 Subject: [PATCH 4/5] =?UTF-8?q?=E2=9C=A8=20Autogenerate=20frontend=20clien?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/client/sdk.gen.ts | 26 ++++++++++++++++++++++++++ frontend/src/client/types.gen.ts | 13 +++++++++++++ 2 files changed, 39 insertions(+) diff --git a/frontend/src/client/sdk.gen.ts b/frontend/src/client/sdk.gen.ts index 92ded2bde8..156003aec9 100644 --- a/frontend/src/client/sdk.gen.ts +++ b/frontend/src/client/sdk.gen.ts @@ -23,6 +23,8 @@ import type { LoginResetPasswordResponse, LoginRecoverPasswordHtmlContentData, LoginRecoverPasswordHtmlContentResponse, + PrivateCreateUserData, + PrivateCreateUserResponse, UsersReadUsersData, UsersReadUsersResponse, 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 { + return __request(OpenAPI, { + method: "POST", + url: "/api/v1/private/users/", + body: data.requestBody, + mediaType: "application/json", + errors: { + 422: "Validation Error", + }, + }) + } +} + export class UsersService { /** * Read Users diff --git a/frontend/src/client/types.gen.ts b/frontend/src/client/types.gen.ts index c2a58d06cb..67d4abd286 100644 --- a/frontend/src/client/types.gen.ts +++ b/frontend/src/client/types.gen.ts @@ -44,6 +44,13 @@ export type NewPassword = { new_password: string } +export type PrivateUserCreate = { + email: string + password: string + full_name: string + is_verified?: boolean +} + export type Token = { access_token: string token_type?: string @@ -158,6 +165,12 @@ export type LoginRecoverPasswordHtmlContentData = { export type LoginRecoverPasswordHtmlContentResponse = string +export type PrivateCreateUserData = { + requestBody: PrivateUserCreate +} + +export type PrivateCreateUserResponse = UserPublic + export type UsersReadUsersData = { limit?: number skip?: number From c340db0db604caa3b89736e03e36feaeb2fb7960 Mon Sep 17 00:00:00 2001 From: Alejandra <90076947+alejsdev@users.noreply.github.com> Date: Sun, 27 Apr 2025 13:14:52 +0200 Subject: [PATCH 5/5] Update main.py --- backend/app/main.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/app/main.py b/backend/app/main.py index b571d788d0..9a95801e74 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -31,5 +31,3 @@ def custom_generate_unique_id(route: APIRoute) -> str: ) app.include_router(api_router, prefix=settings.API_V1_STR) - -print("bu") \ No newline at end of file