Skip to content

Commit f666454

Browse files
committed
revert changes related to new type
1 parent 978ae7d commit f666454

File tree

3 files changed

+4
-15
lines changed

3 files changed

+4
-15
lines changed

buf.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ deps:
1414
- remote: buf.build
1515
owner: viamrobotics
1616
repository: api
17-
commit: f1167844b03449c996f6df622e3acb0f
18-
digest: shake256:79a474cd634e6fb68f5e7b20bae6fa8f58fd23877f7bcb93232321e27a7f57e76fa62ad708d61bbd592ed2009d2c764408f38bbad9fa0bccb74c63d7fd93151a
17+
commit: 16d95cebecbb47dbba2df34d040bca50
18+
digest: shake256:6a3d4750df0de604c44f44d3bbb73ad78819bdff0ec8353e365eaa8bd6f8b955b304119accbbd66d095122233a1066e3e737e13663b3a7c1d34fb6df71381a96
1919
- remote: buf.build
2020
owner: viamrobotics
2121
repository: goutils

src/robot/client.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -714,13 +714,7 @@ export class RobotClient extends EventDispatcher implements Robot {
714714
proto.GetCloudMetadataRequest,
715715
proto.GetCloudMetadataResponse
716716
>(robotService.getCloudMetadata.bind(robotService), request);
717-
const md = response.toObject();
718-
return {
719-
primaryOrgId: md.primaryOrgId,
720-
locationId: md.locationId,
721-
machineId: md.machineId,
722-
machinePartId: md.machinePartId,
723-
};
717+
return response.toObject();
724718
}
725719

726720
// RESOURCES

src/robot/robot.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@ import type proto from '../gen/robot/v1/robot_pb';
99
import type { ResponseStream } from '../gen/robot/v1/robot_pb_service';
1010

1111
export type RobotStatusStream = ResponseStream<proto.Status[]>;
12-
export interface CloudMetadata {
13-
primaryOrgId: string;
14-
locationId: string;
15-
machineId: string;
16-
machinePartId: string;
17-
}
12+
export type CloudMetadata = proto.GetCloudMetadataResponse.AsObject;
1813

1914
type Callback = (args: unknown) => void;
2015

0 commit comments

Comments
 (0)