File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 9
9
- remote: buf.build
10
10
owner: googleapis
11
11
repository: googleapis
12
- commit: 7a6bc1e3207144b38e9066861e1de0ff
13
- digest: shake256:d646836485c34192401253703c4e7ce899c826fceec060bf4b2a62c4749bd9976dc960833e134a1f814725e1ffd60b1bb3cf0335a7e99ef0e8cec34b070ffb66
12
+ commit: 4ed3bc159a8b4ac68fe253218760d035
13
+ digest: shake256:7149cf5e9955c692d381e557830555d4e93f205a0f1b8e2dfdae46d029369aa3fc1980e35df0d310f7cc3b622f93e19ad276769a283a967dd3065ddfd3a40e13
14
14
- remote: buf.build
15
15
owner: viamrobotics
16
16
repository: api
Original file line number Diff line number Diff line change @@ -714,7 +714,13 @@ export class RobotClient extends EventDispatcher implements Robot {
714
714
proto . GetCloudMetadataRequest ,
715
715
proto . GetCloudMetadataResponse
716
716
> ( robotService . getCloudMetadata . bind ( robotService ) , request ) ;
717
- return response . toObject ( ) ;
717
+ const md = response . toObject ( ) ;
718
+ return {
719
+ primaryOrgId : md . primaryOrgId ,
720
+ locationId : md . locationId ,
721
+ machineId : md . machineId ,
722
+ machinePartId : md . machinePartId ,
723
+ } ;
718
724
}
719
725
720
726
// RESOURCES
Original file line number Diff line number Diff line change @@ -9,7 +9,12 @@ import type proto from '../gen/robot/v1/robot_pb';
9
9
import type { ResponseStream } from '../gen/robot/v1/robot_pb_service' ;
10
10
11
11
export type RobotStatusStream = ResponseStream < proto . Status [ ] > ;
12
- export type CloudMetadata = proto . GetCloudMetadataResponse . AsObject ;
12
+ export interface CloudMetadata {
13
+ primaryOrgId : string ;
14
+ locationId : string ;
15
+ machineId : string ;
16
+ machinePartId : string ;
17
+ }
13
18
14
19
type Callback = ( args : unknown ) => void ;
15
20
You can’t perform that action at this time.
0 commit comments