♻️ Migrate frontend client generation from openapi-typescript-codegen to @hey-api/openapi-ts (#1151)

This commit is contained in:
Alejandra
2024-04-03 16:40:33 -05:00
committed by GitHub
parent 7d7b31823f
commit 529a475c8d
63 changed files with 1576 additions and 1755 deletions

View 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;
};