@viamrobotics/sdk 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,14 +8,24 @@ export type FilterOptions = Partial<pb.Filter.AsObject> & {
8
8
  tags?: string[];
9
9
  };
10
10
  type TabularData = {
11
- data?: googleStructPb.Struct.AsObject;
12
- metadataIndex: number;
11
+ data?: {
12
+ [key: string]: googleStructPb.JavaScriptValue;
13
+ };
14
+ metadata?: pb.CaptureMetadata.AsObject;
13
15
  timeRequested?: Date;
14
16
  timeReceived?: Date;
15
17
  };
16
18
  export declare class DataClient {
17
19
  private service;
18
20
  constructor(serviceHost: string, grpcOptions: RpcOptions);
21
+ /**
22
+ * Filter and download tabular data. The returned metadata might be empty if
23
+ * the metadata index of the data is out of the bounds of the returned
24
+ * metadata list.
25
+ *
26
+ * @param filter - Optional `pb.Filter` specifying tabular data to retrieve.
27
+ * No `filter` implies all tabular data.
28
+ */
19
29
  tabularDataByFilter(filter?: pb.Filter): Promise<TabularData[]>;
20
30
  binaryDataByFilter(filter?: pb.Filter): Promise<pb.BinaryData.AsObject[]>;
21
31
  binaryDataByIds(ids: BinaryID[]): Promise<pb.BinaryData.AsObject[]>;