Skip to content

Commit c96fcef

Browse files
committed
Add findData()
Signed-off-by: Andrew Richardson <[email protected]>
1 parent 192ac54 commit c96fcef

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

lib/firefly.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ import {
6060
FireFlyIdentityFilter,
6161
FireFlyIdentityResponse,
6262
FireFlyIdentitiesResponse,
63+
FireFlyDataFilter,
6364
} from './interfaces';
6465
import { FireFlyWebSocket, FireFlyWebSocketCallback } from './websocket';
6566
import HttpBase, { mapConfig } from './http';
@@ -154,6 +155,13 @@ export default class FireFly extends HttpBase {
154155
return this.getOne<FireFlyDataResponse>(`/data/${id}`, options);
155156
}
156157

158+
async findData(
159+
filter?: FireFlyDataFilter,
160+
options?: FireFlyGetOptions,
161+
): Promise<FireFlyDataResponse[]> {
162+
return this.getMany<FireFlyDataResponse[]>(`/data`, filter, options);
163+
}
164+
157165
async getDataBlob(id: string, options?: FireFlyGetOptions): Promise<Stream> {
158166
const response = await this.wrapError(
159167
this.http.get<Stream>(`/data/${id}/blob`, {

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hyperledger/firefly-sdk",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"description": "Client SDK for Hyperledger FireFly",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)