You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
696 B
20 lines
696 B
import type Assignment from "./assignment";
|
|
import type Device from "./device";
|
|
import type { ScriptLine } from "./script";
|
|
import type Script from "./script";
|
|
|
|
export default interface UIState {
|
|
devices: {[id: string]: Device}
|
|
assignments: {[id: string]: Assignment}
|
|
scripts: {[id: string]: ScriptLine[]}
|
|
}
|
|
|
|
export interface UIStatePatch {
|
|
device: Partial<Device> & { id: string, delete?: boolean, addAlias?: string, removeAlias?: string }
|
|
assignment: Partial<Assignment> & { id: string, delete?: boolean, addDeviceId?: string, removeDeviceId?: string }
|
|
script: Partial<Script> & { id: string, delete?: boolean }
|
|
}
|
|
|
|
export interface UIStatePatch2 extends UIState {
|
|
full?: UIState
|
|
}
|