From 91850d387f0f876e8ba3705cc7c96c036824089a Mon Sep 17 00:00:00 2001 From: Himanshu Dixit Date: Fri, 27 Dec 2024 17:04:51 +0530 Subject: [PATCH] fix: issues --- js/src/sdk/base.toolset.spec.ts | 4 ++-- js/src/sdk/index.spec.ts | 2 +- js/src/sdk/utils/processor/file.ts | 5 +---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/js/src/sdk/base.toolset.spec.ts b/js/src/sdk/base.toolset.spec.ts index d64bb4d6b5e..d1e138bd2d5 100644 --- a/js/src/sdk/base.toolset.spec.ts +++ b/js/src/sdk/base.toolset.spec.ts @@ -39,7 +39,7 @@ describe("ComposioToolSet class tests", () => { it("should have schema processor", async () => { const addSchemaProcessor: TSchemaProcessor = ({ - actionName, + actionName: _actionName, toolSchema, }) => { return { @@ -52,7 +52,7 @@ describe("ComposioToolSet class tests", () => { }; toolset.addSchemaProcessor(addSchemaProcessor); - const tools = await toolset.getToolsSchema({ + await toolset.getToolsSchema({ actions: ["github_issues_create"], }); }); diff --git a/js/src/sdk/index.spec.ts b/js/src/sdk/index.spec.ts index f41db6b559b..c28a187b9be 100644 --- a/js/src/sdk/index.spec.ts +++ b/js/src/sdk/index.spec.ts @@ -39,7 +39,7 @@ describe("Basic SDK spec suite", () => { const client = new Composio({ apiKey: COMPOSIO_API_KEY }); try { - const apps = await client.apps.list(); + await client.apps.list(); } catch (e) { if (e instanceof ComposioError) { expect(e.errCode).toBe(COMPOSIO_SDK_ERROR_CODES.BACKEND.NOT_FOUND); diff --git a/js/src/sdk/utils/processor/file.ts b/js/src/sdk/utils/processor/file.ts index c758b418ef3..ad82d4c1dde 100644 --- a/js/src/sdk/utils/processor/file.ts +++ b/js/src/sdk/utils/processor/file.ts @@ -32,10 +32,7 @@ export const fileResponseProcessor: TPostProcessor = ({ }; }; -export const fileInputProcessor: TPreProcessor = ({ - params, - actionName, -}) => { +export const fileInputProcessor: TPreProcessor = ({ params, actionName }) => { const requestData = Object.entries(params).reduce( (acc, [key, value]) => { if (key === "file_uri_path" && typeof value === "string") {