Search
Preparing search index...
The search index is not available
@halo-dev/js-sdk
Options
All
Public
Public/Protected
All
Inherited
Menu
@halo-dev/js-sdk
admin-api/src
Module admin-api/src
Index
Namespaces
<internal>
Classes
Actuator
Client
Admin
Api
Client
Attachment
Client
Authorized
Client
Backup
Client
Category
Client
Comment
Client
Default
Http
Client
Halo
Request
Config
Builder
Halo
Response
Handler
Halo
RestAPIClient
Installation
Client
Journal
Client
Journal
Comment
Client
Link
Client
Log
Client
Mail
Client
Menu
Client
Migration
Client
Option
Client
Photo
Client
Post
Client
Post
Comment
Client
Sheet
Client
Sheet
Comment
Client
Static
Storage
Client
Statistic
Client
Tag
Client
Theme
Client
User
Client
Interfaces
Attachment
Attachment
Query
Base
Comment
Base
Comment
With
Parent
Base
Post
Detail
Base
Post
Minimal
Base
Post
Simple
Category
Category
Tree
Comment
Query
Credentials
Http
Client
Install
Param
Journal
Comment
Query
Journal
Comment
With
Journal
Journal
Query
Journal
With
Cmt
Count
Option
Query
Page
Page
Query
Photo
Query
Post
Comment
With
Post
Post
Detail
Post
Query
Response
Handler
Sheet
Sheet
Comment
With
Sheet
Sheet
Detail
Statistic
With
User
User
User
Param
Type aliases
Access
Token
Author
Backup
Base
Comment
Param
Base
Meta
Base
Meta
Param
Basic
Auth
Category
Param
Comment
Status
Customize
Auth
Data
Type
Discriminated
Auth
Environment
Group
Independent
Sheet
Input
Type
Item
Journal
Journal
Type
Link
Log
Log
Type
Login
Pre
Check
Menu
Multi
Factor
Auth
Param
Option
Type
Photo
Post
Post
Editor
Type
Post
Meta
Param
Post
Param
Post
Status
Response
Sheet
Param
Static
Content
Param
Static
File
Statistic
Tag
Tag
Param
Theme
File
Theme
Property
Token
Type
Update
Strategy
Upload
Options
Type aliases
Access
Token
Access
Token
:
{
access_token
:
string
;
expired_in
:
number
;
refresh_token
:
string
}
Type declaration
access_
token
:
string
expired_
in
:
number
refresh_
token
:
string
Author
Author
:
{
avatar
:
string
;
name
:
string
;
website
:
string
}
Type declaration
avatar
:
string
name
:
string
website
:
string
Backup
Backup
:
{
downloadLink
:
string
;
fileSize
:
number
;
filename
:
string
;
updateTime
:
number
}
Type declaration
download
Link
:
string
file
Size
:
number
filename
:
string
update
Time
:
number
Base
Comment
Param
Base
Comment
Param
:
{
allowNotification
?:
boolean
;
author
:
string
;
authorUrl
?:
string
;
content
:
string
;
email
:
string
;
id
?:
number
;
parentId
?:
number
;
postId
?:
number
}
Type declaration
Optional
allow
Notification
?:
boolean
author
:
string
Optional
author
Url
?:
string
content
:
string
email
:
string
Optional
id
?:
number
Optional
parent
Id
?:
number
Optional
post
Id
?:
number
Base
Meta
Base
Meta
:
{
createTime
:
number
;
id
:
number
;
key
:
string
;
postId
:
number
;
value
:
string
}
Type declaration
create
Time
:
number
id
:
number
key
:
string
post
Id
:
number
value
:
string
Base
Meta
Param
Base
Meta
Param
:
{
key
:
string
;
postId
:
number
;
value
:
string
}
Type declaration
key
:
string
post
Id
:
number
value
:
string
Basic
Auth
Basic
Auth
:
{
password
:
string
;
username
:
string
}
Type declaration
password
:
string
username
:
string
Category
Param
Category
Param
:
{
description
?:
string
;
name
:
string
;
parentId
?:
number
;
password
?:
string
;
slug
?:
string
;
thumbnail
?:
string
}
Type declaration
Optional
description
?:
string
name
:
string
Optional
parent
Id
?:
number
Optional
password
?:
string
Optional
slug
?:
string
Optional
thumbnail
?:
string
Comment
Status
Comment
Status
:
"PUBLISHED"
|
"AUDITING"
|
"RECYCLE"
Customize
Auth
Customize
Auth
:
{
authHeader
:
string
;
type
:
"customizeAuth"
;
getToken
:
any
}
Type declaration
auth
Header
:
string
type
:
"customizeAuth"
get
Token
:
function
get
Token
(
)
:
string
Returns
string
Data
Type
Data
Type
:
"STRING"
|
"LONG"
|
"DOUBLE"
|
"BOOL"
Discriminated
Auth
Discriminated
Auth
:
<internal>
.
AdminTokenAuth
|
<internal>
.
ApiTokenAuth
|
<internal>
.
PasswordAuth
|
<internal>
.
SessionAuth
|
<internal>
.
OAuthTokenAuth
|
CustomizeAuth
Environment
Environment
:
{
database
:
string
;
mode
:
ModeType
;
startTime
:
number
;
version
:
string
}
Type declaration
database
:
string
mode
:
ModeType
start
Time
:
number
version
:
string
Group
Group
:
{
items
:
Item
[]
;
label
:
string
;
name
:
string
}
Type declaration
items
:
Item
[]
label
:
string
name
:
string
Independent
Sheet
Independent
Sheet
:
{
available
:
boolean
;
fullPath
:
string
;
id
:
number
;
routeName
:
string
;
title
:
string
}
Type declaration
available
:
boolean
full
Path
:
string
id
:
number
route
Name
:
string
title
:
string
Input
Type
Input
Type
:
"TEXT"
|
"NUMBER"
|
"RADIO"
|
"SELECT"
|
"TEXTAREA"
|
"COLOR"
|
"ATTACHMENT"
|
"SWITCH"
Item
Item
:
{
dataType
:
DataType
;
defaultValue
:
any
;
description
:
string
;
label
:
string
;
name
:
string
;
options
:
<internal>
.
Option
[]
;
placeholder
:
string
;
type
:
InputType
}
Type declaration
data
Type
:
DataType
default
Value
:
any
description
:
string
label
:
string
name
:
string
options
:
<internal>
.
Option
[]
placeholder
:
string
type
:
InputType
Journal
Journal
:
{
content
:
string
;
createTime
:
number
;
id
?:
number
;
likes
:
number
;
sourceContent
:
string
;
type
:
JournalType
}
Type declaration
content
:
string
create
Time
:
number
Optional
id
?:
number
likes
:
number
source
Content
:
string
type
:
JournalType
Journal
Type
Journal
Type
:
"PUBLIC"
|
"INTIMATE"
Link
Link
:
{
description
?:
string
;
id
?:
number
;
logo
?:
string
;
name
:
string
;
priority
?:
number
;
team
?:
string
;
url
?:
string
}
Type declaration
Optional
description
?:
string
Optional
id
?:
number
Optional
logo
?:
string
name
:
string
Optional
priority
?:
number
Optional
team
?:
string
Optional
url
?:
string
Log
Log
:
{
content
:
string
;
createTime
:
number
;
id
:
number
;
ipAddress
:
string
;
logKey
:
string
;
type
:
LogType
}
Type declaration
content
:
string
create
Time
:
number
id
:
number
ip
Address
:
string
log
Key
:
string
type
:
LogType
Log
Type
Log
Type
:
"BLOG_INITIALIZED"
|
"POST_PUBLISHED"
|
"POST_EDITED"
|
"POST_DELETED"
|
"LOGGED_IN"
|
"LOGGED_OUT"
|
"LOGIN_FAILED"
|
"PASSWORD_UPDATED"
|
"PROFILE_UPDATED"
|
"SHEET_PUBLISHED"
|
"SHEET_EDITED"
|
"SHEET_DELETED"
|
"MFA_UPDATED"
|
"LOGGED_PRE_CHECK"
Login
Pre
Check
Login
Pre
Check
:
{
needMFACode
:
boolean
}
Type declaration
needMFACode
:
boolean
Menu
Menu
:
{
children
?:
Menu
[]
;
icon
?:
string
;
id
?:
number
;
name
:
string
;
parentId
?:
number
;
priority
?:
number
;
target
?:
string
;
team
?:
string
;
url
:
string
}
Type declaration
Optional
children
?:
Menu
[]
Optional
icon
?:
string
Optional
id
?:
number
name
:
string
Optional
parent
Id
?:
number
Optional
priority
?:
number
Optional
target
?:
string
Optional
team
?:
string
url
:
string
Multi
Factor
Auth
Param
Multi
Factor
Auth
Param
:
{
authcode
:
string
;
mfaKey
:
string
;
mfaType
:
"NONE"
|
"TFA_TOTP"
}
Type declaration
authcode
:
string
mfa
Key
:
string
mfa
Type
:
"NONE"
|
"TFA_TOTP"
Option
Type
Option
Type
:
"INTERNAL"
|
"CUSTOM"
Photo
Photo
:
{
description
?:
string
;
id
?:
number
;
location
?:
string
;
name
:
string
;
takeTime
?:
number
;
team
?:
string
;
thumbnail
:
string
;
url
:
string
}
Type declaration
Optional
description
?:
string
Optional
id
?:
number
Optional
location
?:
string
name
:
string
Optional
take
Time
?:
number
Optional
team
?:
string
thumbnail
:
string
url
:
string
Post
Post
:
{
disallowComment
:
boolean
;
editTime
:
number
;
editorType
:
PostEditorType
;
formatContent
:
string
;
id
:
number
;
likes
:
number
;
metaDescription
:
string
;
metaKeywords
:
string
;
originalContent
:
string
;
password
:
string
;
slug
:
string
;
status
:
PostStatus
;
summary
:
string
;
template
:
string
;
thumbnail
:
string
;
title
:
string
;
topPriority
:
number
;
url
:
string
;
visits
:
number
;
wordCount
:
number
}
Type declaration
disallow
Comment
:
boolean
edit
Time
:
number
editor
Type
:
PostEditorType
format
Content
:
string
id
:
number
likes
:
number
meta
Description
:
string
meta
Keywords
:
string
original
Content
:
string
password
:
string
slug
:
string
status
:
PostStatus
summary
:
string
template
:
string
thumbnail
:
string
title
:
string
top
Priority
:
number
url
:
string
visits
:
number
word
Count
:
number
Post
Editor
Type
Post
Editor
Type
:
"MARKDOWN"
|
"RICHTEXT"
Post
Meta
Param
Post
Meta
Param
:
BaseMetaParam
Post
Param
Post
Param
:
{
categoryIds
?:
number
[]
;
createTime
?:
number
;
disallowComment
?:
boolean
;
editorType
?:
PostEditorType
;
keepRaw
?:
boolean
;
metaDescription
?:
string
;
metaKeywords
?:
string
;
metas
?:
PostMetaParam
[]
;
originalContent
?:
string
;
password
?:
string
;
slug
?:
string
;
status
?:
PostStatus
;
summary
?:
string
;
tagIds
?:
number
[]
;
template
?:
string
;
thumbnail
?:
string
;
title
:
string
;
topPriority
?:
number
}
Type declaration
Optional
category
Ids
?:
number
[]
Optional
create
Time
?:
number
Optional
disallow
Comment
?:
boolean
Optional
editor
Type
?:
PostEditorType
Optional
keep
Raw
?:
boolean
Optional
meta
Description
?:
string
Optional
meta
Keywords
?:
string
Optional
metas
?:
PostMetaParam
[]
Optional
original
Content
?:
string
Optional
password
?:
string
Optional
slug
?:
string
Optional
status
?:
PostStatus
Optional
summary
?:
string
Optional
tag
Ids
?:
number
[]
Optional
template
?:
string
Optional
thumbnail
?:
string
title
:
string
Optional
top
Priority
?:
number
Post
Status
Post
Status
:
"PUBLISHED"
|
"DRAFT"
|
"RECYCLE"
|
"INTIMATE"
Response
Response
<
T
>
:
{
data
:
T
;
devMessage
?:
any
;
message
?:
string
;
status
:
number
|
string
}
Type parameters
T =
any
Type declaration
data
:
T
Optional
dev
Message
?:
any
Optional
message
?:
string
status
:
number
|
string
Sheet
Param
Sheet
Param
:
{
createTime
?:
number
;
disallowComment
?:
boolean
;
editorType
?:
PostEditorType
;
metaDescription
?:
string
;
metaKeywords
?:
string
;
metas
?:
BaseMetaParam
[]
;
originalContent
?:
string
;
password
?:
string
;
slug
?:
string
;
status
?:
PostStatus
;
summary
?:
string
;
template
?:
string
;
thumbnail
?:
string
;
title
:
string
;
topPriority
?:
number
}
Type declaration
Optional
create
Time
?:
number
Optional
disallow
Comment
?:
boolean
Optional
editor
Type
?:
PostEditorType
Optional
meta
Description
?:
string
Optional
meta
Keywords
?:
string
Optional
metas
?:
BaseMetaParam
[]
Optional
original
Content
?:
string
Optional
password
?:
string
Optional
slug
?:
string
Optional
status
?:
PostStatus
Optional
summary
?:
string
Optional
template
?:
string
Optional
thumbnail
?:
string
title
:
string
Optional
top
Priority
?:
number
Static
Content
Param
Static
Content
Param
:
{
content
:
string
;
path
:
string
}
Type declaration
content
:
string
path
:
string
Static
File
Static
File
:
{
children
:
StaticFile
[]
;
createTime
:
number
;
id
:
number
;
isFile
:
boolean
;
mimeType
:
string
;
name
:
string
;
path
:
string
;
relativePath
:
string
}
Type declaration
children
:
StaticFile
[]
create
Time
:
number
id
:
number
is
File
:
boolean
mime
Type
:
string
name
:
string
path
:
string
relative
Path
:
string
Statistic
Statistic
:
{
attachmentCount
:
number
;
birthday
:
number
;
categoryCount
:
number
;
commentCount
:
number
;
establishDays
:
number
;
journalCount
:
number
;
likeCount
:
number
;
linkCount
:
number
;
postCount
:
number
;
tagCount
:
number
;
visitCount
:
number
}
Type declaration
attachment
Count
:
number
birthday
:
number
category
Count
:
number
comment
Count
:
number
establish
Days
:
number
journal
Count
:
number
like
Count
:
number
link
Count
:
number
post
Count
:
number
tag
Count
:
number
visit
Count
:
number
Tag
Tag
:
{
color
:
string
;
createTime
:
string
;
fullPath
:
string
;
id
:
number
;
name
:
string
;
slug
:
string
;
thumbnail
:
string
}
Type declaration
color
:
string
create
Time
:
string
full
Path
:
string
id
:
number
name
:
string
slug
:
string
thumbnail
:
string
Tag
Param
Tag
Param
:
{
color
?:
string
;
name
:
string
;
slug
?:
string
;
thumbnail
?:
string
}
Type declaration
Optional
color
?:
string
name
:
string
Optional
slug
?:
string
Optional
thumbnail
?:
string
Theme
File
Theme
File
:
{
editable
:
boolean
;
isFile
:
boolean
;
name
:
string
;
node
:
ThemeFile
[]
;
path
:
string
}
Type declaration
editable
:
boolean
is
File
:
boolean
name
:
string
node
:
ThemeFile
[]
path
:
string
Theme
Property
Theme
Property
:
{
activated
:
boolean
;
author
:
Author
;
branch
:
string
;
description
:
string
;
folderName
:
string
;
hasOptions
:
boolean
;
id
:
string
;
logo
:
string
;
name
:
string
;
postMetaField
:
string
[]
;
repo
:
string
;
require
:
string
;
screenshots
:
string
;
sheetMetaField
:
string
[]
;
themePath
:
string
;
updateStrategy
:
UpdateStrategy
;
version
:
string
;
website
:
string
}
Type declaration
activated
:
boolean
author
:
Author
branch
:
string
description
:
string
folder
Name
:
string
has
Options
:
boolean
id
:
string
logo
:
string
name
:
string
post
Meta
Field
:
string
[]
repo
:
string
require
:
string
screenshots
:
string
sheet
Meta
Field
:
string
[]
theme
Path
:
string
update
Strategy
:
UpdateStrategy
version
:
string
website
:
string
Token
Type
Token
Type
:
"admin"
|
"api"
Update
Strategy
Update
Strategy
:
"BRANCH"
|
"RELEASE"
Upload
Options
Upload
Options
:
{
cancelToken
?:
CancelToken
;
timeout
?:
number
;
onUploadProgress
?:
any
;
paramsSerializer
?:
any
;
validateStatus
?:
any
}
Type declaration
Optional
cancel
Token
?:
CancelToken
Optional
timeout
?:
number
on
Upload
Progress
?:
function
on
Upload
Progress
(
e
:
ProgressEvent
<
EventTarget
>
)
:
void
Parameters
e:
ProgressEvent
<
EventTarget
>
Returns
void
params
Serializer
?:
function
params
Serializer
(
params
:
any
)
:
string
Parameters
params:
any
Returns
string
validate
Status
?:
function
validate
Status
(
status
:
number
)
:
boolean
Parameters
status:
number
Returns
boolean
Modules
admin-
api/src
<internal>
content-
api/src
logger/src
rest-
api-
client/src
Actuator
Client
Admin
Api
Client
Attachment
Client
Authorized
Client
Backup
Client
Category
Client
Comment
Client
Default
Http
Client
Halo
Request
Config
Builder
Halo
Response
Handler
Halo
RestAPIClient
Installation
Client
Journal
Client
Journal
Comment
Client
Link
Client
Log
Client
Mail
Client
Menu
Client
Migration
Client
Option
Client
Photo
Client
Post
Client
Post
Comment
Client
Sheet
Client
Sheet
Comment
Client
Static
Storage
Client
Statistic
Client
Tag
Client
Theme
Client
User
Client
Attachment
Attachment
Query
Base
Comment
Base
Comment
With
Parent
Base
Post
Detail
Base
Post
Minimal
Base
Post
Simple
Category
Category
Tree
Comment
Query
Credentials
Http
Client
Install
Param
Journal
Comment
Query
Journal
Comment
With
Journal
Journal
Query
Journal
With
Cmt
Count
Option
Query
Page
Page
Query
Photo
Query
Post
Comment
With
Post
Post
Detail
Post
Query
Response
Handler
Sheet
Sheet
Comment
With
Sheet
Sheet
Detail
Statistic
With
User
User
User
Param
Access
Token
Author
Backup
Base
Comment
Param
Base
Meta
Base
Meta
Param
Basic
Auth
Category
Param
Comment
Status
Customize
Auth
Data
Type
Discriminated
Auth
Environment
Group
Independent
Sheet
Input
Type
Item
Journal
Journal
Type
Link
Log
Log
Type
Login
Pre
Check
Menu
Multi
Factor
Auth
Param
Option
Type
Photo
Post
Post
Editor
Type
Post
Meta
Param
Post
Param
Post
Status
Response
Sheet
Param
Static
Content
Param
Static
File
Statistic
Tag
Tag
Param
Theme
File
Theme
Property
Token
Type
Update
Strategy
Upload
Options
Generated using
TypeDoc