Skip to content

Commit 171f231

Browse files
committed
fix(bigquery): use prefixed export names to avoid aliased imports
1 parent d39e63c commit 171f231

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

apps/sim/tools/google_bigquery/get_table.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type {
44
} from '@/tools/google_bigquery/types'
55
import type { ToolConfig } from '@/tools/types'
66

7-
export const getTableTool: ToolConfig<
7+
export const googleBigQueryGetTableTool: ToolConfig<
88
GoogleBigQueryGetTableParams,
99
GoogleBigQueryGetTableResponse
1010
> = {
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export { getTableTool } from '@/tools/google_bigquery/get_table'
2-
export { insertRowsTool } from '@/tools/google_bigquery/insert_rows'
3-
export { listDatasetsTool } from '@/tools/google_bigquery/list_datasets'
4-
export { listTablesTool } from '@/tools/google_bigquery/list_tables'
5-
export { queryTool } from '@/tools/google_bigquery/query'
1+
export { googleBigQueryGetTableTool } from '@/tools/google_bigquery/get_table'
2+
export { googleBigQueryInsertRowsTool } from '@/tools/google_bigquery/insert_rows'
3+
export { googleBigQueryListDatasetsTool } from '@/tools/google_bigquery/list_datasets'
4+
export { googleBigQueryListTablesTool } from '@/tools/google_bigquery/list_tables'
5+
export { googleBigQueryQueryTool } from '@/tools/google_bigquery/query'

apps/sim/tools/google_bigquery/insert_rows.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type {
44
} from '@/tools/google_bigquery/types'
55
import type { ToolConfig } from '@/tools/types'
66

7-
export const insertRowsTool: ToolConfig<
7+
export const googleBigQueryInsertRowsTool: ToolConfig<
88
GoogleBigQueryInsertRowsParams,
99
GoogleBigQueryInsertRowsResponse
1010
> = {

apps/sim/tools/google_bigquery/list_datasets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type {
44
} from '@/tools/google_bigquery/types'
55
import type { ToolConfig } from '@/tools/types'
66

7-
export const listDatasetsTool: ToolConfig<
7+
export const googleBigQueryListDatasetsTool: ToolConfig<
88
GoogleBigQueryListDatasetsParams,
99
GoogleBigQueryListDatasetsResponse
1010
> = {

apps/sim/tools/google_bigquery/list_tables.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type {
44
} from '@/tools/google_bigquery/types'
55
import type { ToolConfig } from '@/tools/types'
66

7-
export const listTablesTool: ToolConfig<
7+
export const googleBigQueryListTablesTool: ToolConfig<
88
GoogleBigQueryListTablesParams,
99
GoogleBigQueryListTablesResponse
1010
> = {

apps/sim/tools/google_bigquery/query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { GoogleBigQueryQueryParams, GoogleBigQueryQueryResponse } from '@/tools/google_bigquery/types'
22
import type { ToolConfig } from '@/tools/types'
33

4-
export const queryTool: ToolConfig<GoogleBigQueryQueryParams, GoogleBigQueryQueryResponse> = {
4+
export const googleBigQueryQueryTool: ToolConfig<GoogleBigQueryQueryParams, GoogleBigQueryQueryResponse> = {
55
id: 'google_bigquery_query',
66
name: 'BigQuery Run Query',
77
description: 'Run a SQL query against Google BigQuery and return the results',

apps/sim/tools/registry.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -748,11 +748,11 @@ import {
748748
listMattersTool,
749749
} from '@/tools/google_vault'
750750
import {
751-
getTableTool as bigqueryGetTableTool,
752-
insertRowsTool as bigqueryInsertRowsTool,
753-
listDatasetsTool as bigqueryListDatasetsTool,
754-
listTablesTool as bigqueryListTablesTool,
755-
queryTool as bigqueryQueryTool,
751+
googleBigQueryGetTableTool,
752+
googleBigQueryInsertRowsTool,
753+
googleBigQueryListDatasetsTool,
754+
googleBigQueryListTablesTool,
755+
googleBigQueryQueryTool,
756756
} from '@/tools/google_bigquery'
757757
import {
758758
grafanaCreateAlertRuleTool,
@@ -3563,11 +3563,11 @@ export const tools: Record<string, ToolConfig> = {
35633563
wordpress_list_users: wordpressListUsersTool,
35643564
wordpress_get_user: wordpressGetUserTool,
35653565
wordpress_search_content: wordpressSearchContentTool,
3566-
google_bigquery_query: bigqueryQueryTool,
3567-
google_bigquery_list_datasets: bigqueryListDatasetsTool,
3568-
google_bigquery_list_tables: bigqueryListTablesTool,
3569-
google_bigquery_get_table: bigqueryGetTableTool,
3570-
google_bigquery_insert_rows: bigqueryInsertRowsTool,
3566+
google_bigquery_query: googleBigQueryQueryTool,
3567+
google_bigquery_list_datasets: googleBigQueryListDatasetsTool,
3568+
google_bigquery_list_tables: googleBigQueryListTablesTool,
3569+
google_bigquery_get_table: googleBigQueryGetTableTool,
3570+
google_bigquery_insert_rows: googleBigQueryInsertRowsTool,
35713571
google_vault_create_matters_export: createMattersExportTool,
35723572
google_vault_list_matters_export: listMattersExportTool,
35733573
google_vault_create_matters_holds: createMattersHoldsTool,

0 commit comments

Comments
 (0)