FP-Devicer - v3.0.0
Preparing search index...
next
GovernedNextObservationStore
Interface GovernedNextObservationStore<TFeatures>
interface
GovernedNextObservationStore
<
TFeatures
extends
Record
<
string
,
unknown
>
,
>
{
all
()
:
Promise
<
readonly
Observation
<
TFeatures
>
[]
>
;
get
(
id
:
string
)
:
Promise
<
Observation
<
TFeatures
>
|
undefined
>
;
purgeExpired
()
:
Promise
<
number
>
;
recordEvent
(
action
:
"verification"
|
"abstention"
,
observationId
:
string
|
undefined
,
outcome
:
"allowed"
|
"denied"
|
"completed"
,
reason
?:
string
,
)
:
Promise
<
void
>
;
remove
(
id
:
string
)
:
Promise
<
boolean
>
;
restore
(
snapshot
:
NextSnapshot
<
TFeatures
>
)
:
Promise
<
void
>
;
save
(
observation
:
Observation
<
TFeatures
>
)
:
Promise
<
void
>
;
snapshot
()
:
Promise
<
NextSnapshot
<
TFeatures
>
>
;
transaction
<
TResult
>
(
operation
:
(
store
:
NextObservationStore
<
TFeatures
>
,
)
=>
TResult
|
Promise
<
TResult
>
,
)
:
Promise
<
TResult
>
;
}
Type Parameters
TFeatures
extends
Record
<
string
,
unknown
>
Hierarchy (
View Summary
)
NextObservationStore
<
TFeatures
>
GovernedNextObservationStore
Index
Methods
all
get
purge
Expired
record
Event
remove
restore
save
snapshot
transaction
Methods
all
all
()
:
Promise
<
readonly
Observation
<
TFeatures
>
[]
>
Returns
Promise
<
readonly
Observation
<
TFeatures
>
[]
>
get
get
(
id
:
string
)
:
Promise
<
Observation
<
TFeatures
>
|
undefined
>
Parameters
id
:
string
Returns
Promise
<
Observation
<
TFeatures
>
|
undefined
>
purge
Expired
purgeExpired
()
:
Promise
<
number
>
Returns
Promise
<
number
>
record
Event
recordEvent
(
action
:
"verification"
|
"abstention"
,
observationId
:
string
|
undefined
,
outcome
:
"allowed"
|
"denied"
|
"completed"
,
reason
?:
string
,
)
:
Promise
<
void
>
Parameters
action
:
"verification"
|
"abstention"
observationId
:
string
|
undefined
outcome
:
"allowed"
|
"denied"
|
"completed"
Optional
reason
:
string
Returns
Promise
<
void
>
remove
remove
(
id
:
string
)
:
Promise
<
boolean
>
Parameters
id
:
string
Returns
Promise
<
boolean
>
restore
restore
(
snapshot
:
NextSnapshot
<
TFeatures
>
)
:
Promise
<
void
>
Parameters
snapshot
:
NextSnapshot
<
TFeatures
>
Returns
Promise
<
void
>
save
save
(
observation
:
Observation
<
TFeatures
>
)
:
Promise
<
void
>
Parameters
observation
:
Observation
<
TFeatures
>
Returns
Promise
<
void
>
snapshot
snapshot
()
:
Promise
<
NextSnapshot
<
TFeatures
>
>
Returns
Promise
<
NextSnapshot
<
TFeatures
>
>
transaction
transaction
<
TResult
>
(
operation
:
(
store
:
NextObservationStore
<
TFeatures
>
,
)
=>
TResult
|
Promise
<
TResult
>
,
)
:
Promise
<
TResult
>
Type Parameters
TResult
Parameters
operation
:
(
store
:
NextObservationStore
<
TFeatures
>
)
=>
TResult
|
Promise
<
TResult
>
Returns
Promise
<
TResult
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Methods
all
get
purge
Expired
record
Event
remove
restore
save
snapshot
transaction
FP-Devicer - v3.0.0
Loading...