BlockSuite API Documentation / @blocksuite/store / Job
Class: Job
Constructors
new Job()
new Job(
__namedParameters
):Job
Parameters
• __namedParameters: JobConfig
Returns
Defined in
packages/framework/store/src/transformer/job.ts:358
Accessors
adapterConfigs
get
adapterConfigs():Map
<string
,string
>
Returns
Map
<string
, string
>
Defined in
packages/framework/store/src/transformer/job.ts:342
assets
get
assets():Map
<string
,Blob
>
Returns
Map
<string
, Blob
>
Defined in
packages/framework/store/src/transformer/job.ts:346
assetsManager
get
assetsManager():AssetsManager
Returns
Defined in
packages/framework/store/src/transformer/job.ts:350
collection
get
collection():DocCollection
Returns
Defined in
packages/framework/store/src/transformer/job.ts:354
Methods
blockToSnapshot()
blockToSnapshot(
model
):Promise
<undefined
|BlockSnapshot
>
Parameters
• model: DraftModel
Returns
Promise
<undefined
| BlockSnapshot
>
Defined in
packages/framework/store/src/transformer/job.ts:77
collectionInfoToSnapshot()
collectionInfoToSnapshot():
undefined
|CollectionInfoSnapshot
Returns
undefined
| CollectionInfoSnapshot
Defined in
packages/framework/store/src/transformer/job.ts:92
docToSnapshot()
docToSnapshot(
doc
):Promise
<undefined
|DocSnapshot
>
Parameters
• doc: Doc
Returns
Promise
<undefined
| DocSnapshot
>
Defined in
packages/framework/store/src/transformer/job.ts:117
reset()
reset():
void
Returns
void
Defined in
packages/framework/store/src/transformer/job.ts:661
sliceToSnapshot()
sliceToSnapshot(
slice
):Promise
<undefined
|SliceSnapshot
>
Parameters
• slice: Slice
Returns
Promise
<undefined
| SliceSnapshot
>
Defined in
packages/framework/store/src/transformer/job.ts:155
snapshotToBlock()
snapshotToBlock(
snapshot
,doc
,parent
?,index
?):Promise
<undefined
|BlockModel
<object
,SignaledProps
<object
>>>
Parameters
• snapshot: BlockSnapshot
• doc: Doc
• parent?: string
• index?: number
Returns
Promise
<undefined
| BlockModel
<object
, SignaledProps
<object
>>>
Defined in
packages/framework/store/src/transformer/job.ts:196
snapshotToDoc()
snapshotToDoc(
snapshot
):Promise
<undefined
|Doc
>
Parameters
• snapshot: DocSnapshot
Returns
Promise
<undefined
| Doc
>
Defined in
packages/framework/store/src/transformer/job.ts:214
snapshotToModelData()
snapshotToModelData(
snapshot
):Promise
<undefined
|SnapshotNode
<object
>>
Parameters
• snapshot: BlockSnapshot
Returns
Promise
<undefined
| SnapshotNode
<object
>>
Defined in
packages/framework/store/src/transformer/job.ts:239
snapshotToSlice()
snapshotToSlice(
snapshot
,doc
,parent
?,index
?):Promise
<undefined
|Slice
>
Parameters
• snapshot: SliceSnapshot
• doc: Doc
• parent?: string
• index?: number
Returns
Promise
<undefined
| Slice
>
Defined in
packages/framework/store/src/transformer/job.ts:264
walk()
walk(
snapshot
,callback
):void
Parameters
• snapshot: DocSnapshot
• callback
Returns
void
Defined in
packages/framework/store/src/transformer/job.ts:325