Skip to content

Commit ae317b7

Browse files
committed
feat: support permalink in create/update note
1 parent 2063504 commit ae317b7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

nodejs/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default class API {
8282
await this.axios.patch<AxiosResponse>(`notes/${noteId}`, { content })
8383
}
8484

85-
async updateNote (noteId: string, options: Pick<SingleNote, 'content' | 'readPermission' | 'writePermission'>): Promise<AxiosResponse> {
85+
async updateNote (noteId: string, options: Pick<SingleNote, 'content' | 'readPermission' | 'writePermission' | 'permalink'>): Promise<AxiosResponse> {
8686
return await this.axios.patch<AxiosResponse>(`notes/${noteId}`, options)
8787
}
8888

@@ -109,7 +109,7 @@ export default class API {
109109
await this.axios.patch<AxiosResponse>(`teams/${teamPath}/notes/${noteId}`, { content })
110110
}
111111

112-
async updateTeamNote (teamPath: string, noteId: string, options: Pick<SingleNote, 'content' | 'readPermission' | 'writePermission'>): Promise<AxiosResponse> {
112+
async updateTeamNote (teamPath: string, noteId: string, options: Pick<SingleNote, 'content' | 'readPermission' | 'writePermission' | 'permalink'>): Promise<AxiosResponse> {
113113
return await this.axios.patch<AxiosResponse>(`teams/${teamPath}/notes/${noteId}`, options)
114114
}
115115

nodejs/src/type.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ export type CreateNoteOptions = {
2323
content?: string
2424
readPermission?: NotePermissionRole,
2525
writePermission?: NotePermissionRole,
26-
commentPermission?: CommentPermissionType
26+
commentPermission?: CommentPermissionType,
27+
permalink?: string
2728
}
2829

2930
export type Team = {

0 commit comments

Comments
 (0)