Skip to content

Commit 5c1e31e

Browse files
authored
Merge pull request #65 from takker99:backup
feat(api): Add types for /api/project-backup/:projectname/list
2 parents a5e21dc + 76e6aae commit 5c1e31e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

api/project-backup/project/list.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import type { UnixTime } from "../../../base.ts";
2+
3+
/** The response type of /api/project-backup/:projectname/list */
4+
export interface BackupList {
5+
/** backup list */
6+
backups: BackupSummary[];
7+
}
8+
9+
/** Backup summary */
10+
export interface BackupSummary {
11+
/** backuped date */
12+
backuped: UnixTime;
13+
/** backup Id */
14+
id: string;
15+
/** total links in the backup */
16+
totalLinks: number;
17+
/** total pages in the backup */
18+
totalPages: number;
19+
}

0 commit comments

Comments
 (0)