Skip to content

Commit

Permalink
feat(page-snapshot): Keep up with changes about page-snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
takker99 committed Jul 14, 2024
1 parent f243ccc commit 90580b0
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<User, "id">;
lastupdateUser: Pick<User, "id"> | null;
}

/** a page snapshot */
export interface Snapshot {
/** snapshotを撮ったときのページタイトル */
Expand Down

0 comments on commit 90580b0

Please sign in to comment.