wip 6
This commit is contained in:
@@ -7,9 +7,13 @@
|
||||
*/
|
||||
|
||||
export interface Activity {
|
||||
id: string;
|
||||
user_id: string;
|
||||
document_id: string;
|
||||
activity_type: string;
|
||||
timestamp: string;
|
||||
device_id: string;
|
||||
start_time: string;
|
||||
title?: string;
|
||||
author?: string;
|
||||
duration: number;
|
||||
start_percentage: number;
|
||||
end_percentage: number;
|
||||
read_percentage: number;
|
||||
}
|
||||
|
||||
16
frontend/src/generated/model/backupType.ts
Normal file
16
frontend/src/generated/model/backupType.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* AnthoLume API v1
|
||||
* REST API for AnthoLume document management system
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export type BackupType = typeof BackupType[keyof typeof BackupType];
|
||||
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const BackupType = {
|
||||
COVERS: 'COVERS',
|
||||
DOCUMENTS: 'DOCUMENTS',
|
||||
} as const;
|
||||
12
frontend/src/generated/model/directoryItem.ts
Normal file
12
frontend/src/generated/model/directoryItem.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* AnthoLume API v1
|
||||
* REST API for AnthoLume document management system
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export interface DirectoryItem {
|
||||
name?: string;
|
||||
path?: string;
|
||||
}
|
||||
13
frontend/src/generated/model/directoryListResponse.ts
Normal file
13
frontend/src/generated/model/directoryListResponse.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* AnthoLume API v1
|
||||
* REST API for AnthoLume document management system
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
import type { DirectoryItem } from './directoryItem';
|
||||
|
||||
export interface DirectoryListResponse {
|
||||
current_path?: string;
|
||||
items?: DirectoryItem[];
|
||||
}
|
||||
12
frontend/src/generated/model/getAdmin200.ts
Normal file
12
frontend/src/generated/model/getAdmin200.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* AnthoLume API v1
|
||||
* REST API for AnthoLume document management system
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
import type { DatabaseInfo } from './databaseInfo';
|
||||
|
||||
export type GetAdmin200 = {
|
||||
database_info?: DatabaseInfo;
|
||||
};
|
||||
12
frontend/src/generated/model/getImportDirectoryParams.ts
Normal file
12
frontend/src/generated/model/getImportDirectoryParams.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* AnthoLume API v1
|
||||
* REST API for AnthoLume document management system
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export type GetImportDirectoryParams = {
|
||||
directory?: string;
|
||||
select?: string;
|
||||
};
|
||||
11
frontend/src/generated/model/getLogsParams.ts
Normal file
11
frontend/src/generated/model/getLogsParams.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* AnthoLume API v1
|
||||
* REST API for AnthoLume document management system
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export type GetLogsParams = {
|
||||
filter?: string;
|
||||
};
|
||||
16
frontend/src/generated/model/importResult.ts
Normal file
16
frontend/src/generated/model/importResult.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* AnthoLume API v1
|
||||
* REST API for AnthoLume document management system
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
import type { ImportResultStatus } from './importResultStatus';
|
||||
|
||||
export interface ImportResult {
|
||||
id?: string;
|
||||
name?: string;
|
||||
path?: string;
|
||||
status?: ImportResultStatus;
|
||||
error?: string;
|
||||
}
|
||||
17
frontend/src/generated/model/importResultStatus.ts
Normal file
17
frontend/src/generated/model/importResultStatus.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* AnthoLume API v1
|
||||
* REST API for AnthoLume document management system
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export type ImportResultStatus = typeof ImportResultStatus[keyof typeof ImportResultStatus];
|
||||
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ImportResultStatus = {
|
||||
FAILED: 'FAILED',
|
||||
SUCCESS: 'SUCCESS',
|
||||
EXISTS: 'EXISTS',
|
||||
} as const;
|
||||
12
frontend/src/generated/model/importResultsResponse.ts
Normal file
12
frontend/src/generated/model/importResultsResponse.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* AnthoLume API v1
|
||||
* REST API for AnthoLume document management system
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
import type { ImportResult } from './importResult';
|
||||
|
||||
export interface ImportResultsResponse {
|
||||
results?: ImportResult[];
|
||||
}
|
||||
16
frontend/src/generated/model/importType.ts
Normal file
16
frontend/src/generated/model/importType.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* AnthoLume API v1
|
||||
* REST API for AnthoLume document management system
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export type ImportType = typeof ImportType[keyof typeof ImportType];
|
||||
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ImportType = {
|
||||
DIRECT: 'DIRECT',
|
||||
COPY: 'COPY',
|
||||
} as const;
|
||||
@@ -8,25 +8,41 @@
|
||||
|
||||
export * from './activity';
|
||||
export * from './activityResponse';
|
||||
export * from './backupType';
|
||||
export * from './createDocumentBody';
|
||||
export * from './databaseInfo';
|
||||
export * from './device';
|
||||
export * from './directoryItem';
|
||||
export * from './directoryListResponse';
|
||||
export * from './document';
|
||||
export * from './documentResponse';
|
||||
export * from './documentsResponse';
|
||||
export * from './errorResponse';
|
||||
export * from './getActivityParams';
|
||||
export * from './getAdmin200';
|
||||
export * from './getDocumentsParams';
|
||||
export * from './getImportDirectoryParams';
|
||||
export * from './getLogsParams';
|
||||
export * from './getProgressListParams';
|
||||
export * from './getSearchParams';
|
||||
export * from './getSearchSource';
|
||||
export * from './graphDataPoint';
|
||||
export * from './graphDataResponse';
|
||||
export * from './homeResponse';
|
||||
export * from './importResult';
|
||||
export * from './importResultStatus';
|
||||
export * from './importResultsResponse';
|
||||
export * from './importType';
|
||||
export * from './leaderboardData';
|
||||
export * from './leaderboardEntry';
|
||||
export * from './logEntry';
|
||||
export * from './loginRequest';
|
||||
export * from './loginResponse';
|
||||
export * from './logsResponse';
|
||||
export * from './operationType';
|
||||
export * from './postAdminActionBody';
|
||||
export * from './postAdminActionBodyAction';
|
||||
export * from './postImportBody';
|
||||
export * from './postSearchBody';
|
||||
export * from './progress';
|
||||
export * from './progressListResponse';
|
||||
@@ -36,7 +52,10 @@ export * from './searchResponse';
|
||||
export * from './setting';
|
||||
export * from './settingsResponse';
|
||||
export * from './streaksResponse';
|
||||
export * from './updateUserBody';
|
||||
export * from './user';
|
||||
export * from './userData';
|
||||
export * from './userStatisticsResponse';
|
||||
export * from './userStreak';
|
||||
export * from './usersResponse';
|
||||
export * from './wordCount';
|
||||
9
frontend/src/generated/model/logEntry.ts
Normal file
9
frontend/src/generated/model/logEntry.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* AnthoLume API v1
|
||||
* REST API for AnthoLume document management system
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export type LogEntry = string;
|
||||
13
frontend/src/generated/model/logsResponse.ts
Normal file
13
frontend/src/generated/model/logsResponse.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* AnthoLume API v1
|
||||
* REST API for AnthoLume document management system
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
import type { LogEntry } from './logEntry';
|
||||
|
||||
export interface LogsResponse {
|
||||
logs?: LogEntry[];
|
||||
filter?: string;
|
||||
}
|
||||
17
frontend/src/generated/model/operationType.ts
Normal file
17
frontend/src/generated/model/operationType.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* AnthoLume API v1
|
||||
* REST API for AnthoLume document management system
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export type OperationType = typeof OperationType[keyof typeof OperationType];
|
||||
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const OperationType = {
|
||||
CREATE: 'CREATE',
|
||||
UPDATE: 'UPDATE',
|
||||
DELETE: 'DELETE',
|
||||
} as const;
|
||||
15
frontend/src/generated/model/postAdminActionBody.ts
Normal file
15
frontend/src/generated/model/postAdminActionBody.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* AnthoLume API v1
|
||||
* REST API for AnthoLume document management system
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
import type { PostAdminActionBodyAction } from './postAdminActionBodyAction';
|
||||
import type { BackupType } from './backupType';
|
||||
|
||||
export type PostAdminActionBody = {
|
||||
action: PostAdminActionBodyAction;
|
||||
backup_types?: BackupType[];
|
||||
restore_file?: Blob;
|
||||
};
|
||||
18
frontend/src/generated/model/postAdminActionBodyAction.ts
Normal file
18
frontend/src/generated/model/postAdminActionBodyAction.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* AnthoLume API v1
|
||||
* REST API for AnthoLume document management system
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export type PostAdminActionBodyAction = typeof PostAdminActionBodyAction[keyof typeof PostAdminActionBodyAction];
|
||||
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const PostAdminActionBodyAction = {
|
||||
BACKUP: 'BACKUP',
|
||||
RESTORE: 'RESTORE',
|
||||
METADATA_MATCH: 'METADATA_MATCH',
|
||||
CACHE_TABLES: 'CACHE_TABLES',
|
||||
} as const;
|
||||
13
frontend/src/generated/model/postImportBody.ts
Normal file
13
frontend/src/generated/model/postImportBody.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* AnthoLume API v1
|
||||
* REST API for AnthoLume document management system
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
import type { ImportType } from './importType';
|
||||
|
||||
export type PostImportBody = {
|
||||
directory: string;
|
||||
type: ImportType;
|
||||
};
|
||||
15
frontend/src/generated/model/updateUserBody.ts
Normal file
15
frontend/src/generated/model/updateUserBody.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* AnthoLume API v1
|
||||
* REST API for AnthoLume document management system
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
import type { OperationType } from './operationType';
|
||||
|
||||
export type UpdateUserBody = {
|
||||
operation: OperationType;
|
||||
user: string;
|
||||
password?: string;
|
||||
is_admin?: boolean;
|
||||
};
|
||||
13
frontend/src/generated/model/user.ts
Normal file
13
frontend/src/generated/model/user.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* AnthoLume API v1
|
||||
* REST API for AnthoLume document management system
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export interface User {
|
||||
id: string;
|
||||
admin: boolean;
|
||||
created_at: string;
|
||||
}
|
||||
12
frontend/src/generated/model/usersResponse.ts
Normal file
12
frontend/src/generated/model/usersResponse.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* AnthoLume API v1
|
||||
* REST API for AnthoLume document management system
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
import type { User } from './user';
|
||||
|
||||
export interface UsersResponse {
|
||||
users?: User[];
|
||||
}
|
||||
Reference in New Issue
Block a user