Skip to content

Commit e534171

Browse files
author
github-actions
committed
✨ Autogenerate frontend client
1 parent 122496a commit e534171

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

frontend/src/client/models.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ export type NewPassword = {
4242
new_password: string
4343
}
4444

45+
export type PrivateCreateUser = {
46+
email: string
47+
password: string
48+
full_name: string
49+
is_verified?: boolean
50+
}
51+
4552
export type Token = {
4653
access_token: string
4754
token_type?: string

frontend/src/client/schemas.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,27 @@ export const $NewPassword = {
186186
},
187187
} as const
188188

189+
export const $PrivateCreateUser = {
190+
properties: {
191+
email: {
192+
type: "string",
193+
isRequired: true,
194+
},
195+
password: {
196+
type: "string",
197+
isRequired: true,
198+
},
199+
full_name: {
200+
type: "string",
201+
isRequired: true,
202+
},
203+
is_verified: {
204+
type: "boolean",
205+
default: false,
206+
},
207+
},
208+
} as const
209+
189210
export const $Token = {
190211
properties: {
191212
access_token: {

frontend/src/client/services.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import type {
1818
ItemPublic,
1919
ItemsPublic,
2020
ItemUpdate,
21+
PrivateCreateUser,
2122
} from "./models"
2223

2324
export type TDataLoginAccessToken = {
@@ -527,3 +528,30 @@ export class ItemsService {
527528
})
528529
}
529530
}
531+
532+
export type TDataCreateUser = {
533+
requestBody: PrivateCreateUser
534+
}
535+
536+
export class PrivateService {
537+
/**
538+
* Create User
539+
* Create a new user.
540+
* @returns UserPublic Successful Response
541+
* @throws ApiError
542+
*/
543+
public static createUser(
544+
data: TDataCreateUser,
545+
): CancelablePromise<UserPublic> {
546+
const { requestBody } = data
547+
return __request(OpenAPI, {
548+
method: "POST",
549+
url: "/api/v1/private/users/",
550+
body: requestBody,
551+
mediaType: "application/json",
552+
errors: {
553+
422: `Validation Error`,
554+
},
555+
})
556+
}
557+
}

0 commit comments

Comments
 (0)