feat: rename interface to RobotWorkflow

This commit is contained in:
karishmas6
2024-10-09 20:43:15 +05:30
parent 28e2a89548
commit d096cf54dd

View File

@@ -11,14 +11,14 @@ interface RobotMeta {
params: any[]; params: any[];
} }
interface Robot { interface RobotWorkflow {
workflow: WhereWhatPair[]; workflow: WhereWhatPair[];
} }
interface RobotAttributes { interface RobotAttributes {
id: string; id: string;
recording_meta: RobotMeta; recording_meta: RobotMeta;
recording: Robot; recording: RobotWorkflow;
} }
interface RobotCreationAttributes extends Optional<RobotAttributes, 'id'> { } interface RobotCreationAttributes extends Optional<RobotAttributes, 'id'> { }
@@ -26,7 +26,7 @@ interface RobotCreationAttributes extends Optional<RobotAttributes, 'id'> { }
class Robot extends Model<RobotAttributes, RobotCreationAttributes> implements RobotAttributes { class Robot extends Model<RobotAttributes, RobotCreationAttributes> implements RobotAttributes {
public id!: string; public id!: string;
public recording_meta!: RobotMeta; public recording_meta!: RobotMeta;
public recording!: Robot; public recording!: RobotWorkflow;
} }
Robot.init( Robot.init(