File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
api/project-backup/project Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 11import type { BaseLine , StringLc , UnixTime } from "../../../base.ts" ;
2+ import type { UserForExport } from "../../page-data/export/project.ts" ;
23import type { Page } from "../../pages/project/title.ts" ;
34
45/** backupされるページデータ */
56export interface BackupedPage
6- extends Pick < Page , "title" | "updated" | "created" | "id" > {
7+ extends Pick < Page , "title" | "updated" | "created" | "id" | "views" > {
78 /** ページ本文 */
8- lines : Pick < BaseLine , "text" | "created" | "updated" > [ ] ;
9+ lines : Pick < BaseLine , "text" | "created" | "updated" | "userId" > [ ] ;
910
1011 /** ページに含まれているリンク*/
1112 linksLc : StringLc [ ] ;
1213}
1314
14- /** project backup data */
15+ /** project backup data got from /api/project-backup/:projectname/:backupId.json */
1516export interface BackupData {
1617 /** project's name */
1718 name : string ;
@@ -22,6 +23,9 @@ export interface BackupData {
2223 /** このデータを生成した日時 (UNIX時刻) */
2324 exported : UnixTime ;
2425
26+ /** project members */
27+ users : UserForExport [ ] ;
28+
2529 /** backuped pages */
2630 pages : BackupedPage [ ] ;
2731}
You can’t perform that action at this time.
0 commit comments