Interface: NodeAutomations
Defined in: packages/core/src/node/types.ts:686
"Let me know when…": the account's own automations, noticed by its carriers. Needs the account key.
Methods
add()
add(own): Promise<OwnAutomationView>;Defined in: packages/core/src/node/types.ts:689
Starts one: when.query is a collection and a where over each new record, $me the account
Parameters
| Parameter | Type |
|---|---|
own | Omit<Automation, "since"> & object |
Returns
Promise<OwnAutomationView>
list()
list(): Promise<readonly OwnAutomationView[]>;Defined in: packages/core/src/node/types.ts:687
Returns
Promise<readonly OwnAutomationView[]>
remove()
remove(id): Promise<void>;Defined in: packages/core/src/node/types.ts:695
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
Promise<void>
take()
take(versions): Promise<number>;Defined in: packages/core/src/node/types.ts:699
Takes in automations handed over outside sync, checked as a peer's. How many were new
Parameters
| Parameter | Type |
|---|---|
versions | readonly Version<unknown>[] |
Returns
Promise<number>
update()
update(id, changes): Promise<OwnAutomationView>;Defined in: packages/core/src/node/types.ts:691
Renames it, pauses or resumes it
Parameters
| Parameter | Type |
|---|---|
id | string |
changes | { name?: string; paused?: boolean; } |
changes.name? | string |
changes.paused? | boolean |
Returns
Promise<OwnAutomationView>
versions()
versions(ids): Promise<readonly Version<unknown>[]>;Defined in: packages/core/src/node/types.ts:697
Every version of these, signed, for another device of the account to take
Parameters
| Parameter | Type |
|---|---|
ids | readonly string[] |
Returns
Promise<readonly Version<unknown>[]>