fix: API types in the frontent
This commit is contained in:
parent
13911331a3
commit
43df46f26b
3 changed files with 11 additions and 46 deletions
|
|
@ -1,2 +1,3 @@
|
|||
# Makes a request to localhost:8000/openapi.json and saves the result in ./src/lib/openapi.json
|
||||
curl -o ./src/lib/openapi.json http://localhost:8000/openapi.json
|
||||
pnpm openapi-ts:gen
|
||||
|
|
@ -28,6 +28,12 @@ export type ArticleDetail = {
|
|||
* Source Body
|
||||
*/
|
||||
source_body: string;
|
||||
/**
|
||||
* Source Body Pos
|
||||
*/
|
||||
source_body_pos: {
|
||||
[key: string]: unknown;
|
||||
};
|
||||
/**
|
||||
* Target Language
|
||||
*/
|
||||
|
|
@ -53,7 +59,7 @@ export type ArticleDetail = {
|
|||
*/
|
||||
target_body_pos: {
|
||||
[key: string]: unknown;
|
||||
} | null;
|
||||
};
|
||||
/**
|
||||
* Target Body Transcript
|
||||
*/
|
||||
|
|
@ -171,17 +177,9 @@ export type JobResponse = {
|
|||
*/
|
||||
status: string;
|
||||
/**
|
||||
* Source Language
|
||||
* Translated Article Id
|
||||
*/
|
||||
source_language: string;
|
||||
/**
|
||||
* Target Language
|
||||
*/
|
||||
target_language: string;
|
||||
/**
|
||||
* Complexity Level
|
||||
*/
|
||||
complexity_level: string;
|
||||
translated_article_id?: string | null;
|
||||
/**
|
||||
* Created At
|
||||
*/
|
||||
|
|
@ -194,40 +192,6 @@ export type JobResponse = {
|
|||
* Completed At
|
||||
*/
|
||||
completed_at?: string | null;
|
||||
/**
|
||||
* Generated Text
|
||||
*/
|
||||
generated_text?: string | null;
|
||||
/**
|
||||
* Generated Text Pos
|
||||
*/
|
||||
generated_text_pos?: {
|
||||
[key: string]: unknown;
|
||||
} | null;
|
||||
/**
|
||||
* Translated Text
|
||||
*/
|
||||
translated_text?: string | null;
|
||||
/**
|
||||
* Translated Text Pos
|
||||
*/
|
||||
translated_text_pos?: {
|
||||
[key: string]: unknown;
|
||||
} | null;
|
||||
/**
|
||||
* Input Summary
|
||||
*/
|
||||
input_summary?: string | null;
|
||||
/**
|
||||
* Audio Url
|
||||
*/
|
||||
audio_url?: string | null;
|
||||
/**
|
||||
* Audio Transcript
|
||||
*/
|
||||
audio_transcript?: {
|
||||
[key: string]: unknown;
|
||||
} | null;
|
||||
/**
|
||||
* Error Message
|
||||
*/
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue