Add automation module

This commit is contained in:
faris Aljohari
2024-07-20 18:18:32 +03:00
parent 6442bee6b8
commit 9ad51fcffc
5 changed files with 399 additions and 221 deletions

View File

@ -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
}