Skip to content

Commit 893f5ff

Browse files
authored
πŸ‘·πŸ»β€β™€οΈ Update CI for client generation (#1573)
1 parent 399bd5b commit 893f5ff

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

β€Ž.github/workflows/generate-client.yml

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ jobs:
3939
- run: uv run bash scripts/generate-client.sh
4040
env:
4141
VIRTUAL_ENV: backend/.venv
42-
ENVIRONMENT: production
4342
SECRET_KEY: just-for-generating-client
4443
POSTGRES_PASSWORD: just-for-generating-client
4544
FIRST_SUPERUSER_PASSWORD: just-for-generating-client

β€Žfrontend/src/client/sdk.gen.ts

+26
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ import type {
2323
LoginResetPasswordResponse,
2424
LoginRecoverPasswordHtmlContentData,
2525
LoginRecoverPasswordHtmlContentResponse,
26+
PrivateCreateUserData,
27+
PrivateCreateUserResponse,
2628
UsersReadUsersData,
2729
UsersReadUsersResponse,
2830
UsersCreateUserData,
@@ -272,6 +274,30 @@ export class LoginService {
272274
}
273275
}
274276

277+
export class PrivateService {
278+
/**
279+
* Create User
280+
* Create a new user.
281+
* @param data The data for the request.
282+
* @param data.requestBody
283+
* @returns UserPublic Successful Response
284+
* @throws ApiError
285+
*/
286+
public static createUser(
287+
data: PrivateCreateUserData,
288+
): CancelablePromise<PrivateCreateUserResponse> {
289+
return __request(OpenAPI, {
290+
method: "POST",
291+
url: "/api/v1/private/users/",
292+
body: data.requestBody,
293+
mediaType: "application/json",
294+
errors: {
295+
422: "Validation Error",
296+
},
297+
})
298+
}
299+
}
300+
275301
export class UsersService {
276302
/**
277303
* Read Users

β€Žfrontend/src/client/types.gen.ts

+13
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ export type NewPassword = {
4444
new_password: string
4545
}
4646

47+
export type PrivateUserCreate = {
48+
email: string
49+
password: string
50+
full_name: string
51+
is_verified?: boolean
52+
}
53+
4754
export type Token = {
4855
access_token: string
4956
token_type?: string
@@ -158,6 +165,12 @@ export type LoginRecoverPasswordHtmlContentData = {
158165

159166
export type LoginRecoverPasswordHtmlContentResponse = string
160167

168+
export type PrivateCreateUserData = {
169+
requestBody: PrivateUserCreate
170+
}
171+
172+
export type PrivateCreateUserResponse = UserPublic
173+
161174
export type UsersReadUsersData = {
162175
limit?: number
163176
skip?: number

0 commit comments

Comments
Β (0)