import { ESPCDFAPIResponse } from "../../types"; /** * Operation types that can trigger callbacks for scenes */ export type ESPCDFSceneOperationType = "add" | "edit" | "remove" | "activate"; export interface ESPCDFSceneOperation { add(): Promise; edit(data: ESPCDFSceneEditInput): Promise; remove(): Promise; activate(): Promise; } export interface ESPCDFSceneAction { [key: string]: { [key: string]: any; }; } export interface ESPCDFSceneInterface { id: string; name: string; info?: string; nodes: string[]; actions: ESPCDFSceneAction; devicesCount?: number; operations: ESPCDFSceneOperation; adaptorIdentifier?: string; _raw: any; } export type ESPCDFSceneCreateInput = Omit; export type ESPCDFSceneEditInput = Omit;