39 lines
734 B
TypeScript
39 lines
734 B
TypeScript
export interface Project {
|
|
id: number;
|
|
name: string;
|
|
owner: number;
|
|
home: string;
|
|
}
|
|
export interface Navigation {
|
|
title: string;
|
|
path: string;
|
|
type: string;
|
|
order: number
|
|
children?: Navigation[];
|
|
}
|
|
export interface File {
|
|
id: number;
|
|
project: number;
|
|
path: string;
|
|
title: string;
|
|
type: 'Markdown' | 'Canvas' | 'File' | 'Folder';
|
|
content: string;
|
|
owner: number;
|
|
}
|
|
export interface Comment {
|
|
file: number;
|
|
user_id: number;
|
|
sequence: number;
|
|
position: number;
|
|
length: number;
|
|
content: string;
|
|
}
|
|
export interface User {
|
|
id: number;
|
|
username: string;
|
|
}
|
|
export interface Search {
|
|
projects: Project[];
|
|
files: File[];
|
|
users: User[];
|
|
} |