Kizuki
HTTP API
GitHub
Preparing search index...
lib/extract
toRecords
Function toRecords
toRecords
(
materialId
:
string
,
extracted
:
Extracted
,
)
:
{
passages
:
{
location
:
{
cells
?:
string
;
heading
?:
string
;
notes
?:
boolean
;
page
?:
number
;
paragraph
?:
number
;
sheet
?:
string
;
slide
?:
number
;
}
;
materialId
:
string
;
ordinal
:
number
;
passageId
:
string
;
sectionId
:
string
;
text
:
string
;
}
[]
;
sections
:
{
heading
?:
boolean
;
level
:
number
;
ordinal
:
number
;
sectionId
:
string
;
title
:
string
;
}
[]
;
}
Gives the extracted sections and passages their ids. The same material always gets the same ids.
Parameters
materialId
:
string
extracted
:
Extracted
Returns
{
passages
:
{
location
:
{
cells
?:
string
;
heading
?:
string
;
notes
?:
boolean
;
page
?:
number
;
paragraph
?:
number
;
sheet
?:
string
;
slide
?:
number
;
}
;
materialId
:
string
;
ordinal
:
number
;
passageId
:
string
;
sectionId
:
string
;
text
:
string
;
}
[]
;
sections
:
{
heading
?:
boolean
;
level
:
number
;
ordinal
:
number
;
sectionId
:
string
;
title
:
string
;
}
[]
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
HTTP API
GitHub
Kizuki
Loading...
Gives the extracted sections and passages their ids. The same material always gets the same ids.