From 90580b09e04cec9c2cfd7897b2d93c06560db4c6 Mon Sep 17 00:00:00 2001 From: takker99 <37929109+takker99@users.noreply.github.com> Date: Sun, 14 Jul 2024 10:36:15 +0900 Subject: [PATCH] feat(page-snapshot): Keep up with changes about page-snapshots --- response.ts | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/response.ts b/response.ts index 06564a3..bc800ae 100644 --- a/response.ts +++ b/response.ts @@ -516,13 +516,33 @@ export interface CommitsResponse { } /** the response type of /api/page-snapshots/:projectname/:pageid */ -export interface PageSnapshot { +export interface PageSnapshotList { pageId: PageId; + /** 作成されているsnapshotsのtimestamp idのリスト */ + timestamps: SnapshotTimestamp[]; + /** 作成されているsnapshots */ snapshots: Snapshot[]; } +export interface SnapshotTimestamp { + id: string; + created: UnixTime; +} + +/** the response type of /api/page-snapshots/:projectname/:pageid/:timestampid */ +export interface PageSnapshotResult { + page: PageWithSnapshot; + + snapshot: Snapshot; +} + +export interface PageWithSnapshot extends BasePage { + user: Pick; + lastupdateUser: Pick | null; +} + /** a page snapshot */ export interface Snapshot { /** snapshotを撮ったときのページタイトル */