Skip to content

Commit b9a7ad1

Browse files
APP-7392: Add getVersion to robot client (#444)
1 parent d51b39b commit b9a7ad1

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/robot/client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,12 @@ export class RobotClient extends EventDispatcher implements Robot {
725725
return this.robotService.getMachineStatus({});
726726
}
727727

728+
// VERSION INFO
729+
730+
async getVersion() {
731+
return this.robotService.getVersion({});
732+
}
733+
728734
// MODULES
729735

730736
async restartModule(moduleId?: string, moduleName?: string) {

src/robot/robot.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,12 @@ export interface Robot {
173173
* @alpha
174174
*/
175175
restartModule(moduleId?: string, moduleName?: string): Promise<void>;
176+
177+
/**
178+
* Get version information about the robot, such as platform, version, and api
179+
* version.
180+
*
181+
* @alpha
182+
*/
183+
getVersion(): Promise<proto.GetVersionResponse>;
176184
}

0 commit comments

Comments
 (0)