Anchorage API reference
Documentation
GitHub
Preparing search index...
@proofoftech/flowsafe
schedules
ScheduleFacadeStore
Interface ScheduleFacadeStore
The storage subset the facade reads/writes (a subset of D1SchedulesStorage).
interface
ScheduleFacadeStore
{
"[FENCED_SCHEDULE_STORAGE]"
?:
FencedScheduleMutationCapability
;
createOwnedSchedule
(
schedule
:
AuthorizedSchedule
,
owner
:
ResourceOwner
,
maxSchedules
:
number
,
context
?:
MutationEpochContext
,
)
:
Promise
<
Schedule
|
null
>
;
deleteOwnedSchedule
(
id
:
string
,
context
?:
MutationEpochContext
,
)
:
Promise
<
"pending"
|
"deleted"
>
;
getSchedule
(
id
:
string
)
:
Promise
<
Schedule
|
null
>
;
listSchedules
(
filter
?:
ScheduleFilter
)
:
Promise
<
Schedule
[]
>
;
listTriggers
(
scheduleId
:
string
,
opts
?:
ScheduleTriggerListOptions
,
)
:
Promise
<
ScheduleTrigger
[]
>
;
updateSchedule
(
id
:
string
,
patch
:
ScheduleUpdate
,
context
?:
MutationEpochContext
,
)
:
Promise
<
Schedule
>
;
}
Index
Properties
[
FENCED_
SCHEDULE_
STORAGE]?
Methods
create
Owned
Schedule
delete
Owned
Schedule
get
Schedule
list
Schedules
list
Triggers
update
Schedule
Properties
Optional
Readonly
[
FENCED_
SCHEDULE_
STORAGE]
"[FENCED_SCHEDULE_STORAGE]"
?:
FencedScheduleMutationCapability
Methods
create
Owned
Schedule
createOwnedSchedule
(
schedule
:
AuthorizedSchedule
,
owner
:
ResourceOwner
,
maxSchedules
:
number
,
context
?:
MutationEpochContext
,
)
:
Promise
<
Schedule
|
null
>
Parameters
schedule
:
AuthorizedSchedule
owner
:
ResourceOwner
maxSchedules
:
number
Optional
context
:
MutationEpochContext
Returns
Promise
<
Schedule
|
null
>
delete
Owned
Schedule
deleteOwnedSchedule
(
id
:
string
,
context
?:
MutationEpochContext
,
)
:
Promise
<
"pending"
|
"deleted"
>
Parameters
id
:
string
Optional
context
:
MutationEpochContext
Returns
Promise
<
"pending"
|
"deleted"
>
get
Schedule
getSchedule
(
id
:
string
)
:
Promise
<
Schedule
|
null
>
Parameters
id
:
string
Returns
Promise
<
Schedule
|
null
>
list
Schedules
listSchedules
(
filter
?:
ScheduleFilter
)
:
Promise
<
Schedule
[]
>
Parameters
Optional
filter
:
ScheduleFilter
Returns
Promise
<
Schedule
[]
>
list
Triggers
listTriggers
(
scheduleId
:
string
,
opts
?:
ScheduleTriggerListOptions
,
)
:
Promise
<
ScheduleTrigger
[]
>
Parameters
scheduleId
:
string
Optional
opts
:
ScheduleTriggerListOptions
Returns
Promise
<
ScheduleTrigger
[]
>
update
Schedule
updateSchedule
(
id
:
string
,
patch
:
ScheduleUpdate
,
context
?:
MutationEpochContext
,
)
:
Promise
<
Schedule
>
Parameters
id
:
string
patch
:
ScheduleUpdate
Optional
context
:
MutationEpochContext
Returns
Promise
<
Schedule
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
[
FENCED_
SCHEDULE_
STORAGE]
Methods
create
Owned
Schedule
delete
Owned
Schedule
get
Schedule
list
Schedules
list
Triggers
update
Schedule
Documentation
GitHub
Anchorage API reference
Loading...
The storage subset the facade reads/writes (a subset of D1SchedulesStorage).