File tree Expand file tree Collapse file tree 1 file changed +40
-37
lines changed Expand file tree Collapse file tree 1 file changed +40
-37
lines changed Original file line number Diff line number Diff line change @@ -9,31 +9,6 @@ import {
99} from "./base.ts" ;
1010import { Commit } from "./commit.ts" ;
1111
12- /** 関連ページのメタデータ */
13- export interface RelatedPage extends
14- Pick <
15- BasePage ,
16- | "id"
17- | "title"
18- | "image"
19- | "descriptions"
20- | "linked"
21- | "updated"
22- | "accessed"
23- > {
24- /** page title */
25- titleLc : StringLc ;
26-
27- /** ページ内のリンク */
28- linksLc : StringLc [ ] ;
29- }
30-
31- /** 外部プロジェクトの関連ページ */
32- export interface ProjectRelatedPage extends Omit < RelatedPage , "linksLc" > {
33- /** project name */
34- projectName : string ;
35- }
36-
3712/** user information */
3813export interface User {
3914 id : UserId ;
@@ -81,26 +56,54 @@ export interface Page extends BasePage {
8156 files : string [ ] ;
8257
8358 /** 関連ページリスト */
84- relatedPages : {
85- /** 1 hop links */
86- links1hop : RelatedPage [ ] ;
87-
88- /** 2 hop links */
89- links2hop : RelatedPage [ ] ;
59+ relatedPages : RelatedPages ;
9060
91- /** external links */
92- projectLinks1hop : ProjectRelatedPage [ ] ;
93-
94- /** このページを参照しているページorアイコンがあればtrue */
95- hasBackLinksOrIcons : boolean ;
96- } ;
9761 /** 最後にページを更新したユーザー */
9862 user : User ;
9963
10064 /** ページを編集したユーザーのうち、`user`以外の人 */
10165 collaborators : User [ ] ;
10266}
10367
68+ export interface RelatedPages {
69+ /** 1 hop links */
70+ links1hop : RelatedPage [ ] ;
71+
72+ /** 2 hop links */
73+ links2hop : RelatedPage [ ] ;
74+
75+ /** external links */
76+ projectLinks1hop : ProjectRelatedPage [ ] ;
77+
78+ /** このページを参照しているページorアイコンがあればtrue */
79+ hasBackLinksOrIcons : boolean ;
80+ }
81+
82+ /** 関連ページのメタデータ */
83+ export interface RelatedPage extends
84+ Pick <
85+ BasePage ,
86+ | "id"
87+ | "title"
88+ | "image"
89+ | "descriptions"
90+ | "linked"
91+ | "updated"
92+ | "accessed"
93+ > {
94+ /** page title */
95+ titleLc : StringLc ;
96+
97+ /** ページ内のリンク */
98+ linksLc : StringLc [ ] ;
99+ }
100+
101+ /** 外部プロジェクトの関連ページ */
102+ export interface ProjectRelatedPage extends Omit < RelatedPage , "linksLc" > {
103+ /** project name */
104+ projectName : string ;
105+ }
106+
104107/** the response type of https://scrpabox.io/api/pages/:projectname */
105108export interface PageList {
106109 /** data取得先のproject名 */
You can’t perform that action at this time.
0 commit comments