Skip to content

Commit

Permalink
Export generic component and service (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
njooma authored Mar 8, 2024
1 parent edde0c9 commit 72f947d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 24 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@viamrobotics/sdk",
"version": "0.11.1-next.0",
"version": "0.11.1-next.1",
"description": "",
"main": "./dist/main.umd.js",
"module": "./dist/main.es.js",
Expand Down
43 changes: 22 additions & 21 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,31 +235,17 @@ export { type Stream, StreamClient } from './extra/stream';
*
* Generated with https://github.com/improbable-eng/grpc-web
*
* @example
*
* ```ts
* import { grpc } from '@improbable-eng/grpc-web';
* import { Struct } from 'google-protobuf/google/protobuf/struct_pb';
*
* const client = {}; // replace with a connected robot client
*
* const request = new commonApi.DoCommandRequest();
* request.setName('mygeneric');
* request.setCommand(Struct.fromJavaScript({ foo: 'bar' }));
*
* client.genericService.doCommand(
* request,
* new grpc.Metadata(),
* (error, response) => {
* // do something with error or response
* }
* );
* ```
*
* @deprecated Use {@link GenericComponentClient} instead.
* @deprecated Renamed to genericComponentApi
* @alpha
* @group Raw Protobufs
*/
export { default as genericApi } from './gen/component/generic/v1/generic_pb';
export { default as genericComponentApi } from './gen/component/generic/v1/generic_pb';
export {
type Generic as GenericComponent,
GenericClient as GenericComponentClient,
} from './components/generic';

/**
* Raw Protobuf interfaces for a Gripper component.
Expand Down Expand Up @@ -392,6 +378,21 @@ export {
VisionClient,
} from './services/vision';

/**
* Raw Protobuf interfaces for a Generic service.
*
* Generated with https://github.com/improbable-eng/grpc-web
*
* @deprecated Use {@link GenericServiceClient} instead.
* @alpha
* @group Raw Protobufs
*/
export { default as genericServiceApi } from './gen/service/generic/v1/generic_pb';
export {
type Generic as GenericService,
GenericClient as GenericServiceClient,
} from './services/generic';

/**
* Raw Protobuf interfaces that are shared across multiple components and
* services.
Expand Down

0 comments on commit 72f947d

Please sign in to comment.