Preparing search index...
The search index is not available
API
API
<internal>
DataType
Class DataType<TDataStore, TTable, TSchemaName, TDoc, TValue>
Type Parameters
TDataStore
extends
"/home/runner/work/comapeo-core/comapeo-core/src/datastore/index"
TTable
extends
MapeoDocTables
TSchemaName
extends
TTable
[
"_"
]
[
"name"
]
TDoc
extends
MapeoDocMap
[
TSchemaName
]
TValue
extends
MapeoValueMap
[
TSchemaName
]
Hierarchy
TypedEmitter
<
DataTypeEvents
<
TDoc
>
>
DataType
Index
Constructors
constructor
Accessors
[k
Data
Store]
[k
Table]
namespace
schema
Name
Methods
[k
Create
With
Doc
Id]
[k
Select]
create
delete
get
By
Doc
Id
get
By
Version
Id
get
Many
update
Constructors
constructor
new
Data
Type
<
TDataStore
,
TTable
,
TSchemaName
,
TDoc
,
TValue
>
(
__namedParameters
)
:
DataType
<
TDataStore
,
TTable
,
TSchemaName
,
TDoc
,
TValue
>
Type Parameters
TDataStore
extends
DataStore
<
"auth"
|
"config"
|
"data"
,
|
"translation"
|
"track"
|
"role"
|
"remoteDetectionAlert"
|
"projectSettings"
|
"preset"
|
"observation"
|
"icon"
|
"field"
|
"deviceInfo"
|
"coreOwnership"
>
TTable
extends
MapeoDocTables
TSchemaName
extends
|
"translation"
|
"track"
|
"role"
|
"remoteDetectionAlert"
|
"projectSettings"
|
"preset"
|
"observation"
|
"icon"
|
"field"
|
"deviceInfo"
|
"coreOwnership"
TDoc
extends
|
{
schemaName
:
TSchemaName
;
}
&
{}
|
{
schemaName
:
TSchemaName
;
}
&
{}
|
{
schemaName
:
TSchemaName
;
}
&
{}
|
{
schemaName
:
TSchemaName
;
}
&
{}
|
{
schemaName
:
TSchemaName
;
}
&
{}
|
{
schemaName
:
TSchemaName
;
}
&
{}
|
{
schemaName
:
TSchemaName
;
}
&
{}
|
{
schemaName
:
TSchemaName
;
}
&
{}
|
{
schemaName
:
TSchemaName
;
}
&
{}
|
{
schemaName
:
TSchemaName
;
}
&
{}
|
{
schemaName
:
TSchemaName
;
}
&
{}
TValue
extends
|
{
schemaName
:
TSchemaName
;
}
&
{}
|
{
schemaName
:
TSchemaName
;
}
&
{}
|
{
schemaName
:
TSchemaName
;
}
&
{}
|
{
schemaName
:
TSchemaName
;
}
&
{}
|
{
schemaName
:
TSchemaName
;
}
&
{}
|
{
schemaName
:
TSchemaName
;
}
&
{}
|
{
schemaName
:
TSchemaName
;
}
&
{}
|
{
schemaName
:
TSchemaName
;
}
&
{}
|
{
schemaName
:
TSchemaName
;
}
&
{}
|
{
schemaName
:
TSchemaName
;
}
&
{}
|
{
schemaName
:
TSchemaName
;
}
&
{}
Parameters
__namedParameters
:
{
dataStore
:
TDataStore
;
db
:
BetterSQLite3Database
<
Record
<
string
,
never
>
>
;
getTranslations
:
(
(
value
:
{}
&
{
docRef
:
{}
;
}
)
=>
Promise
<
{}
[]
>
)
;
table
:
TTable
;
}
data
Store
:
TDataStore
db
:
BetterSQLite3Database
<
Record
<
string
,
never
>
>
get
Translations
:
(
(
value
:
{}
&
{
docRef
:
{}
;
}
)
=>
Promise
<
{}
[]
>
)
(
value
)
:
Promise
<
{}
[]
>
Parameters
value
:
{}
&
{
docRef
:
{}
;
}
Returns
Promise
<
{}
[]
>
table
:
TTable
Returns
DataType
<
TDataStore
,
TTable
,
TSchemaName
,
TDoc
,
TValue
>
Accessors
[k
Data
Store]
get
[kDataStore]
(
)
:
TDataStore
Returns
TDataStore
[k
Table]
get
[kTable]
(
)
:
TTable
Returns
TTable
namespace
get
namespace
(
)
:
namespace
Returns
namespace
schema
Name
get
schemaName
(
)
:
TSchemaName
Returns
TSchemaName
Methods
[k
Create
With
Doc
Id]
[k
Create
With
Doc
Id]
(
docId
,
value
)
:
Promise
<
TDoc
&
{
forks
:
string
[]
;
}
>
Parameters
docId
:
string
value
:
Exclude
<
TValue
,
{
schemaName
:
"coreOwnership"
;
}
>
|
CoreOwnershipWithSignaturesValue
Returns
Promise
<
TDoc
&
{
forks
:
string
[]
;
}
>
[k
Select]
[k
Select]
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
create
create
<
T
>
(
value
)
:
Promise
<
TDoc
&
{
forks
:
string
[]
;
}
>
Type Parameters
T
extends
unknown
Parameters
value
:
T
Returns
Promise
<
TDoc
&
{
forks
:
string
[]
;
}
>
delete
delete
(
docId
)
:
Promise
<
TDoc
&
{
forks
:
string
[]
;
}
>
Parameters
docId
:
string
Returns
Promise
<
TDoc
&
{
forks
:
string
[]
;
}
>
get
By
Doc
Id
get
By
Doc
Id
(
docId
,
opts
?
)
:
Promise
<
TDoc
&
{
forks
:
string
[]
;
}
>
Parameters
docId
:
string
Optional
opts
:
{
lang
?:
string
;
mustBeFound
?:
true
;
}
Optional
lang
?:
string
Optional
must
Be
Found
?:
true
Returns
Promise
<
TDoc
&
{
forks
:
string
[]
;
}
>
get
By
Doc
Id
(
docId
,
opts
?
)
:
Promise
<
null
|
TDoc
&
{
forks
:
string
[]
;
}
>
Parameters
docId
:
string
Optional
opts
:
{
lang
?:
string
;
mustBeFound
?:
boolean
;
}
Optional
lang
?:
string
Optional
must
Be
Found
?:
boolean
Returns
Promise
<
null
|
TDoc
&
{
forks
:
string
[]
;
}
>
get
By
Version
Id
get
By
Version
Id
(
versionId
,
opts
?
)
:
Promise
<
TDoc
>
Parameters
versionId
:
string
Optional
opts
:
{
lang
?:
string
;
}
Optional
lang
?:
string
Returns
Promise
<
TDoc
>
get
Many
get
Many
(
opts
?
)
:
Promise
<
(
TDoc
&
{
forks
:
string
[]
;
}
)
[]
>
Parameters
Optional
opts
:
{
includeDeleted
?:
boolean
;
lang
?:
string
;
}
Optional
include
Deleted
?:
boolean
Optional
lang
?:
string
Returns
Promise
<
(
TDoc
&
{
forks
:
string
[]
;
}
)
[]
>
update
update
<
T
>
(
versionId
,
value
)
:
Promise
<
TDoc
&
{
forks
:
string
[]
;
}
>
Type Parameters
T
extends
unknown
Parameters
versionId
:
string
|
string
[]
value
:
T
Returns
Promise
<
TDoc
&
{
forks
:
string
[]
;
}
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Accessors
[k
Data
Store]
[k
Table]
namespace
schema
Name
Methods
[k
Create
With
Doc
Id]
[k
Select]
create
delete
get
By
Doc
Id
get
By
Version
Id
get
Many
update
API
Loading...