Skip to content

Commit 1151b95

Browse files
committed
refactor(api): Re-export REST APIs from /unstable-api directly, distinguishing each name.
1 parent ec34c84 commit 1151b95

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

api.ts

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,48 @@
11
export * as pages from "./api/pages.ts";
22
export * as projects from "./api/projects.ts";
33
export * as users from "./api/users.ts";
4+
5+
export {
6+
get as listPages,
7+
list as listPagesStream,
8+
type ListPagesOption,
9+
type ListPagesStreamOption,
10+
makeGetRequest as makeListPagesRequest,
11+
} from "./api/pages/project.ts";
12+
export {
13+
makePostRequest as makeReplaceLinksRequest,
14+
post as replaceLinks,
15+
} from "./api/pages/project/replace/links.ts";
16+
export {
17+
get as searchForPages,
18+
makeGetRequest as makeSearchForPagesRequest,
19+
} from "./api/pages/project/search/query.ts";
20+
export {
21+
get as getLinks,
22+
type GetLinksOptions,
23+
list as readLinks,
24+
makeGetRequest as makeGetLinksRequest,
25+
} from "./api/pages/project/search/titles.ts";
26+
export {
27+
get as getPage,
28+
type GetPageOption,
29+
makeGetRequest as makeGetPageRequest,
30+
} from "./api/pages/project/title.ts";
31+
export {
32+
get as getText,
33+
type GetTextOption,
34+
makeGetRequest as makeGetTextRequest,
35+
} from "./api/pages/project/title/text.ts";
36+
export {
37+
get as getIcon,
38+
type GetIconOption,
39+
makeGetRequest as makeGetIconRequest,
40+
} from "./api/pages/project/title/icon.ts";
41+
export {
42+
get as getProject,
43+
makeGetRequest as makeGetProjectRequest,
44+
} from "./api/projects/project.ts";
45+
export {
46+
get as getUser,
47+
makeGetRequest as makeGetUserRequest,
48+
} from "./api/users/me.ts";

0 commit comments

Comments
 (0)