aboutsummaryrefslogtreecommitdiff
path: root/karlcommon/protocol.d.ts
diff options
context:
space:
mode:
authormetamuffin <yvchraiqi@protonmail.com>2022-06-11 18:55:54 +0200
committermetamuffin <yvchraiqi@protonmail.com>2022-06-11 18:55:54 +0200
commit163052cd25d927c9437a2234befd22c9d143c4d4 (patch)
tree5181ce8ee7755024cba77d3172c637ff0e7c59df /karlcommon/protocol.d.ts
parentea37afe9ae9a1607fa3b6f365b9307c579c45b8d (diff)
downloadkarlender-163052cd25d927c9437a2234befd22c9d143c4d4.tar
karlender-163052cd25d927c9437a2234befd22c9d143c4d4.tar.bz2
karlender-163052cd25d927c9437a2234befd22c9d143c4d4.tar.zst
redundant Instance
Diffstat (limited to 'karlcommon/protocol.d.ts')
-rw-r--r--karlcommon/protocol.d.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/karlcommon/protocol.d.ts b/karlcommon/protocol.d.ts
index f48b283..0d93cea 100644
--- a/karlcommon/protocol.d.ts
+++ b/karlcommon/protocol.d.ts
@@ -8,12 +8,10 @@ export interface Handshake { type: "handshake", data: { version: string } }
export interface ListTasks { type: "list_tasks", data: null }
export interface TaskList { type: "task_list", data: Task[] }
export interface ListInstances { type: "list_instances", data: { task: number, range: Range } }
-export interface InstanceList { type: "instance_list", data: Instance[] }
+export interface InstanceList { type: "instance_list", data: Range[] }
export interface UpdateTask { type: "update_task", data: Task }
export interface RemoveTask { type: "remove_task", data: number }
-export interface Instance { of: number, at: Range }
-
export interface Range { start?: number, end?: number }
export interface Task {
@@ -27,7 +25,7 @@ export interface Task {
export type Schedule = { type: "never" }
| { type: "static", options: Range }
| { type: "condition", options: Condition }
- | { type: "dynamic", options: { priority: number, scheduled?: number, deadline?: Condition } }
+ | { type: "dynamic", options: { priority: number, scheduled?: number, deadline?: number } }
export type Condition = { from?: Condition }
| { or?: Condition[] }