feat: rename interface to RobotWorkflow
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user