Preparing search index...
The search index is not available
@arsonar/client
@arsonar/client
Record
Class Record
Hierarchy
SchemaMember
Record
Index
Constructors
constructor
Properties
[SC]
Accessors
address
deleted
feed
has
Conflict
id
key
latest
length
links
lseq
path
schema
seq
short
Address
timestamp
type
value
Methods
_latest
add
Version
all
Versions
current
Versions
fields
get
get
Field
get
Many
get
One
get
Type
has
Field
has
Type
has
Version
inspect
subscribe
toJSON
update
Constructors
constructor
new
Record
(
schema
:
Schema
, initialVersion
:
RecordVersion
)
:
Record
Parameters
schema:
Schema
initialVersion:
RecordVersion
Returns
Record
Properties
[SC]
[SC]
:
Schema
Accessors
address
get
address
(
)
:
string
Returns
string
deleted
get
deleted
(
)
:
undefined
|
boolean
Returns
undefined
|
boolean
feed
get
feed
(
)
:
undefined
|
string
Returns
undefined
|
string
has
Conflict
get
hasConflict
(
)
:
boolean
Returns
boolean
id
get
id
(
)
:
string
Returns
string
key
get
key
(
)
:
undefined
|
string
Returns
undefined
|
string
latest
get
latest
(
)
:
RecordVersion
Returns
RecordVersion
length
get
length
(
)
:
number
Returns
number
links
get
links
(
)
:
string
[]
Returns
string
[]
lseq
get
lseq
(
)
:
undefined
|
number
Returns
undefined
|
number
path
get
path
(
)
:
string
Returns
string
schema
get
schema
(
)
:
Schema
Returns
Schema
seq
get
seq
(
)
:
undefined
|
number
Returns
undefined
|
number
short
Address
get
shortAddress
(
)
:
string
Returns
string
timestamp
get
timestamp
(
)
:
string
|
0
Returns
string
|
0
type
get
type
(
)
:
string
Returns
string
value
get
value
(
)
:
RecordValue
Returns
RecordValue
Methods
_latest
_latest
(
)
:
RecordVersion
Returns
RecordVersion
add
Version
add
Version
(
version
:
RecordVersion
|
WireRecordVersion
)
:
void
Parameters
version:
RecordVersion
|
WireRecordVersion
Returns
void
all
Versions
all
Versions
(
)
:
RecordVersion
[]
Returns
RecordVersion
[]
current
Versions
current
Versions
(
)
:
RecordVersion
[]
Returns
RecordVersion
[]
fields
fields
(
)
:
FieldValue
[]
Returns
FieldValue
[]
get
get
(
fieldName
:
string
)
:
any
Parameters
fieldName:
string
Returns
any
get
Field
get
Field
(
fieldName
:
string
)
:
undefined
|
Field
Parameters
fieldName:
string
Returns
undefined
|
Field
get
Many
get
Many
(
fieldName
:
string
)
:
any
[]
Parameters
fieldName:
string
Returns
any
[]
get
One
get
One
(
fieldName
:
string
)
:
any
Parameters
fieldName:
string
Returns
any
get
Type
get
Type
(
)
:
undefined
|
Type
Returns
undefined
|
Type
has
Field
has
Field
(
fieldName
:
string
)
:
boolean
Parameters
fieldName:
string
Returns
boolean
has
Type
has
Type
(
typeAddress
:
string
)
:
boolean
Parameters
typeAddress:
string
Returns
boolean
has
Version
has
Version
(
version
:
string
|
RecordVersion
)
:
boolean
Parameters
version:
string
|
RecordVersion
Returns
boolean
inspect
inspect
(
_depth
:
number
, opts
?:
InspectOptions
)
:
string
Parameters
_depth:
number
opts:
InspectOptions
= {}
Returns
string
subscribe
subscribe
(
fn
:
EmitCb
<
Record
>
, triggerNow
?:
boolean
)
:
(
(
)
=>
void
)
Subscribe to changes to this record.
Parameters
fn:
EmitCb
<
Record
>
triggerNow:
boolean
= false
Returns
(
(
)
=>
void
)
(
)
:
void
Subscribe to changes to this record.
Returns
void
toJSON
toJSON
(
)
:
{
deleted
:
undefined
|
boolean
;
id
:
string
;
key
:
undefined
|
string
;
links
:
string
[]
;
lseq
:
undefined
|
number
;
seq
:
undefined
|
number
;
timestamp
:
string
|
number
;
type
:
string
;
value
:
RecordValue
}
Returns
{
deleted
:
undefined
|
boolean
;
id
:
string
;
key
:
undefined
|
string
;
links
:
string
[]
;
lseq
:
undefined
|
number
;
seq
:
undefined
|
number
;
timestamp
:
string
|
number
;
type
:
string
;
value
:
RecordValue
}
deleted
:
undefined
|
boolean
id
:
string
key
:
undefined
|
string
links
:
string
[]
lseq
:
undefined
|
number
seq
:
undefined
|
number
timestamp
:
string
|
number
type
:
string
value
:
RecordValue
update
update
(
nextValue
:
RecordValue
)
:
RecordVersion
Parameters
nextValue:
RecordValue
Returns
RecordVersion
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Modules
@arsonar/client
Record
constructor
[SC]
address
deleted
feed
has
Conflict
id
key
latest
length
links
lseq
path
schema
seq
short
Address
timestamp
type
value
_latest
add
Version
all
Versions
current
Versions
fields
get
get
Field
get
Many
get
One
get
Type
has
Field
has
Type
has
Version
inspect
subscribe
toJSON
update
Generated using
TypeDoc
Subscribe to changes to this record.