Skip to content

Commit d69606c

Browse files
committed
Expose fileStash in the client
1 parent 438161b commit d69606c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/sdk",
3-
"version": "2.0.6",
3+
"version": "2.0.7",
44
"private": false,
55
"repository": "github:PipedreamHQ/pipedream-sdk-typescript",
66
"type": "commonjs",

src/Client.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { Components } from "./api/resources/components/client/Client.js";
1515
import { Actions } from "./api/resources/actions/client/Client.js";
1616
import { Triggers } from "./api/resources/triggers/client/Client.js";
1717
import { DeployedTriggers } from "./api/resources/deployedTriggers/client/Client.js";
18+
import { FileStash } from "./api/resources/fileStash/client/Client.js";
1819
import { Projects } from "./api/resources/projects/client/Client.js";
1920
import { Proxy } from "./api/resources/proxy/client/Client.js";
2021
import { Tokens } from "./api/resources/tokens/client/Client.js";
@@ -62,6 +63,7 @@ export class PipedreamClient {
6263
protected _actions: Actions | undefined;
6364
protected _triggers: Triggers | undefined;
6465
protected _deployedTriggers: DeployedTriggers | undefined;
66+
protected _fileStash: FileStash | undefined;
6567
protected _projects: Projects | undefined;
6668
protected _proxy: Proxy | undefined;
6769
protected _tokens: Tokens | undefined;
@@ -168,6 +170,13 @@ export class PipedreamClient {
168170
}));
169171
}
170172

173+
public get fileStash(): FileStash {
174+
return (this._fileStash ??= new FileStash({
175+
...this._options,
176+
token: async () => await this._tokenProvider.getToken(),
177+
}));
178+
}
179+
171180
public get projects(): Projects {
172181
return (this._projects ??= new Projects({
173182
...this._options,

0 commit comments

Comments
 (0)