Skip to content

Commit 90580b0

Browse files
committed
feat(page-snapshot): Keep up with changes about page-snapshots
1 parent f243ccc commit 90580b0

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

response.ts

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,13 +516,33 @@ export interface CommitsResponse {
516516
}
517517

518518
/** the response type of /api/page-snapshots/:projectname/:pageid */
519-
export interface PageSnapshot {
519+
export interface PageSnapshotList {
520520
pageId: PageId;
521521

522+
/** 作成されているsnapshotsのtimestamp idのリスト */
523+
timestamps: SnapshotTimestamp[];
524+
522525
/** 作成されているsnapshots */
523526
snapshots: Snapshot[];
524527
}
525528

529+
export interface SnapshotTimestamp {
530+
id: string;
531+
created: UnixTime;
532+
}
533+
534+
/** the response type of /api/page-snapshots/:projectname/:pageid/:timestampid */
535+
export interface PageSnapshotResult {
536+
page: PageWithSnapshot;
537+
538+
snapshot: Snapshot;
539+
}
540+
541+
export interface PageWithSnapshot extends BasePage {
542+
user: Pick<User, "id">;
543+
lastupdateUser: Pick<User, "id"> | null;
544+
}
545+
526546
/** a page snapshot */
527547
export interface Snapshot {
528548
/** snapshotを撮ったときのページタイトル */

0 commit comments

Comments
 (0)