mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 10:46:17 +00:00
Add automation module
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
export interface AddTapToRunSceneInterface {
|
||||
export interface AddAutomationInterface {
|
||||
success: boolean;
|
||||
msg?: string;
|
||||
result: {
|
||||
id: string;
|
||||
};
|
||||
}
|
||||
export interface GetTapToRunSceneByUnitInterface {
|
||||
export interface GetAutomationByUnitInterface {
|
||||
success: boolean;
|
||||
msg?: string;
|
||||
result: {
|
||||
@ -16,8 +16,30 @@ export interface GetTapToRunSceneByUnitInterface {
|
||||
}>;
|
||||
};
|
||||
}
|
||||
export interface DeleteTapToRunSceneInterface {
|
||||
export interface DeleteAutomationInterface {
|
||||
success: boolean;
|
||||
msg?: string;
|
||||
result: boolean;
|
||||
}
|
||||
export interface Action {
|
||||
actionExecutor: string;
|
||||
entityId: string;
|
||||
[key: string]: any; // Allow additional properties
|
||||
}
|
||||
|
||||
export interface Condition {
|
||||
entityType: string;
|
||||
entityId: string;
|
||||
[key: string]: any; // Allow additional properties
|
||||
}
|
||||
|
||||
export interface AutomationResponseData {
|
||||
id: string;
|
||||
name: string;
|
||||
status: string;
|
||||
spaceId?: string;
|
||||
runningMode?: string;
|
||||
actions: Action[];
|
||||
conditions: Condition[];
|
||||
[key: string]: any; // Allow additional properties
|
||||
}
|
||||
|
Reference in New Issue
Block a user