This repository was archived by the owner on Sep 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathiOneNoteApi.ts
More file actions
24 lines (23 loc) · 1.61 KB
/
iOneNoteApi.ts
File metadata and controls
24 lines (23 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import {ResponsePackage, XHRData} from "./oneNoteApiBase";
import {OneNotePage} from "./oneNotePage";
import {BatchRequest} from "./batchRequest";
import {Revision} from "./structuredTypes";
import { OrderBy } from "./orderBy";
export interface IOneNoteApi {
createNotebook(name: string): Promise<ResponsePackage<any>>;
createPage(page: OneNotePage, sectionId?: string): Promise<ResponsePackage<any>>;
sendBatchRequest(batchRequest: BatchRequest): Promise<ResponsePackage<any>>;
getPage(pageId: string): Promise<ResponsePackage<any>>;
getPageContent(pageId: string): Promise<ResponsePackage<any>>;
getPages(options: { top?: number, sectionId?: string }): Promise<ResponsePackage<any>>;
updatePage(pageId: string, revisions: Revision[]): Promise<ResponsePackage<any>>;
createSection(notebookId: string, name: string): Promise<ResponsePackage<any>>;
createSectionUnderSectionGroup(sectionGroupId: string, name: string): Promise<ResponsePackage<any>>;
getNotebooks(excludeReadOnlyNotebooks?: boolean): Promise<ResponsePackage<any>>;
getNotebooksWithExpandedSections(expands?: number, excludeReadOnlyNotebooks?: boolean, orderByCondition?: OrderBy): Promise<ResponsePackage<any>>;
getNotebookByName(name: string): Promise<ResponsePackage<any>>;
pagesSearch(query: string): Promise<ResponsePackage<any>>;
performApiCall(url: string, data?: XHRData, contentType?: string, httpMethod?: string, isFullUrl?: boolean, urlContainsVersion?: boolean): Promise<ResponsePackage<any>>;
getNotebooksFromWebUrls(notebookWebUrls: string[]): Promise<ResponsePackage<any>>;
getNotebookFromWebUrl(notebookWebUrl: string): Promise<ResponsePackage<any>>;
}