♻️ Migrate frontend client generation from openapi-typescript-codegen
to @hey-api/openapi-ts
(#1151)
This commit is contained in:
132
frontend/src/client/models.ts
Normal file
132
frontend/src/client/models.ts
Normal file
@@ -0,0 +1,132 @@
|
||||
export type Body_login_login_access_token = {
|
||||
grant_type?: string | null;
|
||||
username: string;
|
||||
password: string;
|
||||
scope?: string;
|
||||
client_id?: string | null;
|
||||
client_secret?: string | null;
|
||||
};
|
||||
|
||||
|
||||
|
||||
export type HTTPValidationError = {
|
||||
detail?: Array<ValidationError>;
|
||||
};
|
||||
|
||||
|
||||
|
||||
export type ItemCreate = {
|
||||
title: string;
|
||||
description?: string | null;
|
||||
};
|
||||
|
||||
|
||||
|
||||
export type ItemOut = {
|
||||
title: string;
|
||||
description?: string | null;
|
||||
id: number;
|
||||
owner_id: number;
|
||||
};
|
||||
|
||||
|
||||
|
||||
export type ItemUpdate = {
|
||||
title?: string | null;
|
||||
description?: string | null;
|
||||
};
|
||||
|
||||
|
||||
|
||||
export type ItemsOut = {
|
||||
data: Array<ItemOut>;
|
||||
count: number;
|
||||
};
|
||||
|
||||
|
||||
|
||||
export type Message = {
|
||||
message: string;
|
||||
};
|
||||
|
||||
|
||||
|
||||
export type NewPassword = {
|
||||
token: string;
|
||||
new_password: string;
|
||||
};
|
||||
|
||||
|
||||
|
||||
export type Token = {
|
||||
access_token: string;
|
||||
token_type?: string;
|
||||
};
|
||||
|
||||
|
||||
|
||||
export type UpdatePassword = {
|
||||
current_password: string;
|
||||
new_password: string;
|
||||
};
|
||||
|
||||
|
||||
|
||||
export type UserCreate = {
|
||||
email: string;
|
||||
is_active?: boolean;
|
||||
is_superuser?: boolean;
|
||||
full_name?: string | null;
|
||||
password: string;
|
||||
};
|
||||
|
||||
|
||||
|
||||
export type UserOut = {
|
||||
email: string;
|
||||
is_active?: boolean;
|
||||
is_superuser?: boolean;
|
||||
full_name?: string | null;
|
||||
id: number;
|
||||
};
|
||||
|
||||
|
||||
|
||||
export type UserRegister = {
|
||||
email: string;
|
||||
password: string;
|
||||
full_name?: string | null;
|
||||
};
|
||||
|
||||
|
||||
|
||||
export type UserUpdate = {
|
||||
email?: string | null;
|
||||
is_active?: boolean;
|
||||
is_superuser?: boolean;
|
||||
full_name?: string | null;
|
||||
password?: string | null;
|
||||
};
|
||||
|
||||
|
||||
|
||||
export type UserUpdateMe = {
|
||||
full_name?: string | null;
|
||||
email?: string | null;
|
||||
};
|
||||
|
||||
|
||||
|
||||
export type UsersOut = {
|
||||
data: Array<UserOut>;
|
||||
count: number;
|
||||
};
|
||||
|
||||
|
||||
|
||||
export type ValidationError = {
|
||||
loc: Array<string | number>;
|
||||
msg: string;
|
||||
type: string;
|
||||
};
|
||||
|
Reference in New Issue
Block a user