Preparing search index...
The search index is not available
joplin-api
joplin-api
NoteApi
Class NoteApi
TODO 可以考虑使用 fields() 方法设置然后产生一个新的 Api 实例
Hierarchy
NoteApi
Index
Constructors
constructor
Properties
ajax
Methods
create
get
list
remove
resources
By
Id
tags
By
Id
update
Constructors
constructor
new
Note
Api
(
ajax
:
Ajax
)
:
NoteApi
Parameters
ajax:
Ajax
Returns
NoteApi
Properties
Private
ajax
ajax
:
Ajax
Methods
create
create
(
param
:
RequiredField
<
Partial
<
NoteProperties
>
,
"title"
>
)
:
Promise
<
NoteCreateRes
>
Parameters
param:
RequiredField
<
Partial
<
NoteProperties
>
,
"title"
>
Returns
Promise
<
NoteCreateRes
>
get
get
(
id
:
string
)
:
Promise
<
NoteGetRes
&
CommonType
>
Parameters
id:
string
Returns
Promise
<
NoteGetRes
&
CommonType
>
get
<
K
>
(
id
:
string
, fields
?:
K
[]
)
:
Promise
<
Pick
<
NoteProperties
,
K
>
&
CommonType
>
Type Parameters
K
extends
keyof
NoteProperties
=
"id"
|
"title"
|
"parent_id"
Parameters
id:
string
Optional
fields:
K
[]
Returns
Promise
<
Pick
<
NoteProperties
,
K
>
&
CommonType
>
list
list
(
)
:
Promise
<
PageRes
<
NoteGetRes
>
>
Returns
Promise
<
PageRes
<
NoteGetRes
>
>
list
<
K
>
(
pageParam
:
PageParam
<
NoteProperties
>
&
FieldsParam
<
K
>
)
:
Promise
<
PageRes
<
Pick
<
NoteProperties
,
K
>
>
>
Type Parameters
K
extends
keyof
NoteProperties
=
"id"
|
"title"
|
"parent_id"
Parameters
pageParam:
PageParam
<
NoteProperties
>
&
FieldsParam
<
K
>
Returns
Promise
<
PageRes
<
Pick
<
NoteProperties
,
K
>
>
>
remove
remove
(
id
:
string
)
:
Promise
<
void
>
Parameters
id:
string
Returns
Promise
<
void
>
resources
By
Id
resources
By
Id
(
id
:
string
)
:
Promise
<
ResourceGetRes
[]
>
Parameters
id:
string
Returns
Promise
<
ResourceGetRes
[]
>
resources
By
Id
<
K
>
(
id
:
string
, fields
:
K
[]
)
:
Promise
<
(
Pick
<
ResourceProperties
,
K
>
&
CommonType
)
[]
>
Type Parameters
K
extends
keyof
ResourceProperties
=
"id"
|
"title"
Parameters
id:
string
fields:
K
[]
Returns
Promise
<
(
Pick
<
ResourceProperties
,
K
>
&
CommonType
)
[]
>
tags
By
Id
tags
By
Id
(
id
:
string
)
:
Promise
<
TagGetRes
[]
>
Parameters
id:
string
Returns
Promise
<
TagGetRes
[]
>
update
update
(
param
:
RequiredField
<
Partial
<
NoteProperties
>
,
"id"
>
)
:
Promise
<
NoteUpdateRes
>
Parameters
param:
RequiredField
<
Partial
<
NoteProperties
>
,
"id"
>
Returns
Promise
<
NoteUpdateRes
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
joplin-
api
Note
Api
constructor
ajax
create
get
list
remove
resources
By
Id
tags
By
Id
update
Generated using
TypeDoc
TODO 可以考虑使用 fields() 方法设置然后产生一个新的 Api 实例