Class: abstract
Service
Constructors
new Service()
new Service():
Service
Returns
Methods
clearStaticFiles()
abstract
clearStaticFiles(projectId
):Promise
<boolean
>
Parameters
projectId
string
Returns
Promise
<boolean
>
Defined in
packages/core/src/protocols/service.ts:88
createRawPage()
abstract
createRawPage(file
,project
?):Promise
<boolean
>
Parameters
file
project?
Returns
Promise
<boolean
>
Defined in
packages/core/src/protocols/service.ts:70
genSource()
abstract
genSource(project
):Promise
<string
>
Parameters
project
Returns
Promise
<string
>
Defined in
packages/core/src/protocols/service.ts:94
genVueContent()
abstract
genVueContent(project
,dsl
):Promise
<string
>
Parameters
project
dsl
Returns
Promise
<string
>
Defined in
packages/core/src/protocols/service.ts:65
getExtension()
abstract
getExtension():Promise
<undefined
|ExtensionConfig
>
Returns
Promise
<undefined
| ExtensionConfig
>
Defined in
packages/core/src/protocols/service.ts:14
getFile()
abstract
getFile(id
,project
?):Promise
<BlockSchema
>
Parameters
id
string
project?
Returns
Promise
<BlockSchema
>
Defined in
packages/core/src/protocols/service.ts:25
getHistory()
abstract
getHistory(id
,project
?):Promise
<HistorySchema
>
Parameters
id
string
project?
Returns
Promise
<HistorySchema
>
Defined in
packages/core/src/protocols/service.ts:41
getHistoryItem()
abstract
getHistoryItem(fId
,id
,project
?):Promise
<HistoryItem
>
Parameters
fId
string
id
string
project?
Returns
Promise
<HistoryItem
>
Defined in
packages/core/src/protocols/service.ts:45
getPluginMaterial()
abstract
getPluginMaterial(from
):Promise
<null
|MaterialDescription
>
Parameters
from
Returns
Promise
<null
| MaterialDescription
>
Defined in
packages/core/src/protocols/service.ts:90
getStaticFiles()
abstract
getStaticFiles(projectId
):Promise
<StaticFileInfo
[]>
Parameters
projectId
string
Returns
Promise
<StaticFileInfo
[]>
Defined in
packages/core/src/protocols/service.ts:83
init()
abstract
init(project
):Promise
<ProjectSchema
>
Parameters
project
Partial
<ProjectSchema
>
Returns
Promise
<ProjectSchema
>
Defined in
packages/core/src/protocols/service.ts:15
publish()
abstract
publish(project
):Promise
<boolean
>
Parameters
project
Returns
Promise
<boolean
>
Defined in
packages/core/src/protocols/service.ts:60
publishFile()
abstract
publishFile(project
,file
):Promise
<boolean
>
Parameters
project
file
Returns
Promise
<boolean
>
Defined in
packages/core/src/protocols/service.ts:61
removeFile()
abstract
removeFile(id
,project
?):Promise
<boolean
>
Parameters
id
string
project?
Returns
Promise
<boolean
>
Defined in
packages/core/src/protocols/service.ts:29
removeHistory()
abstract
removeHistory(id
,project
?):Promise
<boolean
>
Parameters
id
string
project?
Returns
Promise
<boolean
>
Defined in
packages/core/src/protocols/service.ts:37
removeHistoryItem()
abstract
removeHistoryItem(fId
,ids
,project
?):Promise
<boolean
>
Parameters
fId
string
ids
string
[]
project?
Returns
Promise
<boolean
>
Defined in
packages/core/src/protocols/service.ts:55
removeRawPage()
abstract
removeRawPage(id
,project
?):Promise
<boolean
>
Parameters
id
string
project?
Returns
Promise
<boolean
>
Defined in
packages/core/src/protocols/service.ts:74
removeStaticFile()
abstract
removeStaticFile(name
,projectId
):Promise
<boolean
>
Parameters
name
string
projectId
string
Returns
Promise
<boolean
>
Defined in
packages/core/src/protocols/service.ts:84
saveFile()
abstract
saveFile(file
,project
?):Promise
<boolean
>
Parameters
file
project?
Returns
Promise
<boolean
>
Defined in
packages/core/src/protocols/service.ts:21
saveHistory()
abstract
saveHistory(history
,project
?):Promise
<boolean
>
Parameters
history
project?
Returns
Promise
<boolean
>
Defined in
packages/core/src/protocols/service.ts:33
saveHistoryItem()
abstract
saveHistoryItem(fId
,item
,project
?):Promise
<boolean
>
Parameters
fId
string
item
project?
Returns
Promise
<boolean
>
Defined in
packages/core/src/protocols/service.ts:50
saveMaterials()
abstract
saveMaterials(project
,materials
):Promise
<boolean
>
Parameters
project
materials
Map
<string
, MaterialDescription
>
Returns
Promise
<boolean
>
Defined in
packages/core/src/protocols/service.ts:17
saveProject()
abstract
saveProject(project
):Promise
<boolean
>
Parameters
project
Returns
Promise
<boolean
>
Defined in
packages/core/src/protocols/service.ts:16
uploadStaticFile()
abstract
uploadStaticFile(file
,projectId
):Promise
<null
|StaticFileInfo
>
Parameters
file
File
projectId
string
Returns
Promise
<null
| StaticFileInfo
>
Defined in
packages/core/src/protocols/service.ts:79