wip 16
This commit is contained in:
@@ -6,9 +6,7 @@
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
import type { Activity } from './activity';
|
||||
import type { UserData } from './userData';
|
||||
|
||||
export interface ActivityResponse {
|
||||
activities: Activity[];
|
||||
user: UserData;
|
||||
}
|
||||
|
||||
@@ -7,10 +7,8 @@
|
||||
*/
|
||||
import type { Document } from './document';
|
||||
import type { Progress } from './progress';
|
||||
import type { UserData } from './userData';
|
||||
|
||||
export interface DocumentResponse {
|
||||
document: Document;
|
||||
user: UserData;
|
||||
progress?: Progress;
|
||||
}
|
||||
|
||||
16
frontend/src/generated/model/editDocumentBody.ts
Normal file
16
frontend/src/generated/model/editDocumentBody.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Generated by orval v8.5.3 🍺
|
||||
* Do not edit manually.
|
||||
* AnthoLume API v1
|
||||
* REST API for AnthoLume document management system
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export type EditDocumentBody = {
|
||||
title?: string;
|
||||
author?: string;
|
||||
description?: string;
|
||||
isbn10?: string;
|
||||
isbn13?: string;
|
||||
cover_gbid?: string;
|
||||
};
|
||||
@@ -6,9 +6,7 @@
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
import type { GraphDataPoint } from './graphDataPoint';
|
||||
import type { UserData } from './userData';
|
||||
|
||||
export interface GraphDataResponse {
|
||||
graph_data: GraphDataPoint[];
|
||||
user: UserData;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
import type { DatabaseInfo } from './databaseInfo';
|
||||
import type { GraphDataResponse } from './graphDataResponse';
|
||||
import type { StreaksResponse } from './streaksResponse';
|
||||
import type { UserData } from './userData';
|
||||
import type { UserStatisticsResponse } from './userStatisticsResponse';
|
||||
|
||||
export interface HomeResponse {
|
||||
@@ -16,5 +15,4 @@ export interface HomeResponse {
|
||||
streaks: StreaksResponse;
|
||||
graph_data: GraphDataResponse;
|
||||
user_statistics: UserStatisticsResponse;
|
||||
user: UserData;
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ export * from './directoryListResponse';
|
||||
export * from './document';
|
||||
export * from './documentResponse';
|
||||
export * from './documentsResponse';
|
||||
export * from './editDocumentBody';
|
||||
export * from './errorResponse';
|
||||
export * from './getActivityParams';
|
||||
export * from './getAdmin200';
|
||||
@@ -55,8 +56,10 @@ export * from './searchResponse';
|
||||
export * from './setting';
|
||||
export * from './settingsResponse';
|
||||
export * from './streaksResponse';
|
||||
export * from './updateDocumentBody';
|
||||
export * from './updateSettingsRequest';
|
||||
export * from './updateUserBody';
|
||||
export * from './uploadDocumentCoverBody';
|
||||
export * from './user';
|
||||
export * from './userData';
|
||||
export * from './usersResponse';
|
||||
|
||||
@@ -6,11 +6,9 @@
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
import type { Progress } from './progress';
|
||||
import type { UserData } from './userData';
|
||||
|
||||
export interface ProgressListResponse {
|
||||
progress?: Progress[];
|
||||
user?: UserData;
|
||||
page?: number;
|
||||
limit?: number;
|
||||
next_page?: number;
|
||||
|
||||
@@ -6,9 +6,7 @@
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
import type { Progress } from './progress';
|
||||
import type { UserData } from './userData';
|
||||
|
||||
export interface ProgressResponse {
|
||||
progress?: Progress;
|
||||
user?: UserData;
|
||||
}
|
||||
|
||||
@@ -5,10 +5,8 @@
|
||||
* REST API for AnthoLume document management system
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
import type { UserData } from './userData';
|
||||
import type { UserStreak } from './userStreak';
|
||||
|
||||
export interface StreaksResponse {
|
||||
streaks: UserStreak[];
|
||||
user: UserData;
|
||||
}
|
||||
|
||||
15
frontend/src/generated/model/updateDocumentBody.ts
Normal file
15
frontend/src/generated/model/updateDocumentBody.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval v8.5.3 🍺
|
||||
* Do not edit manually.
|
||||
* AnthoLume API v1
|
||||
* REST API for AnthoLume document management system
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export type UpdateDocumentBody = {
|
||||
title?: string;
|
||||
author?: string;
|
||||
description?: string;
|
||||
isbn10?: string;
|
||||
isbn13?: string;
|
||||
};
|
||||
11
frontend/src/generated/model/uploadDocumentCoverBody.ts
Normal file
11
frontend/src/generated/model/uploadDocumentCoverBody.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Generated by orval v8.5.3 🍺
|
||||
* Do not edit manually.
|
||||
* AnthoLume API v1
|
||||
* REST API for AnthoLume document management system
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export type UploadDocumentCoverBody = {
|
||||
cover_file: Blob;
|
||||
};
|
||||
@@ -6,11 +6,9 @@
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
import type { LeaderboardData } from './leaderboardData';
|
||||
import type { UserData } from './userData';
|
||||
|
||||
export interface UserStatisticsResponse {
|
||||
wpm: LeaderboardData;
|
||||
duration: LeaderboardData;
|
||||
words: LeaderboardData;
|
||||
user: UserData;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user