Skip to content

Commit 033b56d

Browse files
committed
fix api
1 parent 7262cb6 commit 033b56d

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

apps/sim/tools/http/request.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { RequestParams, RequestResponse } from '@/tools/http/types'
2-
import { getDefaultHeaders, processUrl, transformTable } from '@/tools/http/utils'
2+
import { getDefaultHeaders, processUrl } from '@/tools/http/utils'
3+
import { transformTable } from '@/tools/shared/table'
34
import type { ToolConfig } from '@/tools/types'
45

56
export const requestTool: ToolConfig<RequestParams, RequestResponse> = {

apps/sim/tools/utils.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { createMockFetch, loggerMock } from '@sim/testing'
22
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
3+
import { transformTable } from '@/tools/shared/table'
34
import type { ToolConfig } from '@/tools/types'
45
import {
56
createCustomToolRequestBody,
67
createParamSchema,
78
executeRequest,
89
formatRequestParams,
910
getClientEnvVars,
10-
transformTable,
1111
validateRequiredParametersAfterMerge,
1212
} from '@/tools/utils'
1313

apps/sim/tools/utils.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import { extractErrorMessage } from '@/tools/error-extractors'
77
import { tools } from '@/tools/registry'
88
import type { ToolConfig, ToolResponse } from '@/tools/types'
99

10-
export { transformTable } from '@/tools/shared/table'
11-
1210
const logger = createLogger('ToolsUtils')
1311

1412
/**

0 commit comments

Comments
 (0)