Skip to content

Commit 07e78c2

Browse files
authored
Merge pull request #66 from takker99:backup
fix(api): Adjust the response definition of /api/project-backup/:projectname/:backupId.json
2 parents 5c1e31e + 0f2f1b8 commit 07e78c2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
import type { BaseLine, StringLc, UnixTime } from "../../../base.ts";
2+
import type { UserForExport } from "../../page-data/export/project.ts";
23
import type { Page } from "../../pages/project/title.ts";
34

45
/** backupされるページデータ */
56
export 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 */
1516
export 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
}

0 commit comments

Comments
 (0)