Skip to content

Commit 5432565

Browse files
committed
lint
1 parent ab4f44d commit 5432565

File tree

5 files changed

+81
-17
lines changed

5 files changed

+81
-17
lines changed

apps/sim/tools/google_bigquery/get_table.ts

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,25 +92,41 @@ export const googleBigQueryGetTableTool: ToolConfig<
9292
tableId: { type: 'string', description: 'Table ID' },
9393
datasetId: { type: 'string', description: 'Dataset ID' },
9494
projectId: { type: 'string', description: 'Project ID' },
95-
type: { type: 'string', description: 'Table type (TABLE, VIEW, SNAPSHOT, MATERIALIZED_VIEW, EXTERNAL)' },
95+
type: {
96+
type: 'string',
97+
description: 'Table type (TABLE, VIEW, SNAPSHOT, MATERIALIZED_VIEW, EXTERNAL)',
98+
},
9699
description: { type: 'string', description: 'Table description', optional: true },
97100
numRows: { type: 'string', description: 'Total number of rows' },
98-
numBytes: { type: 'string', description: 'Total size in bytes, excluding data in streaming buffer' },
101+
numBytes: {
102+
type: 'string',
103+
description: 'Total size in bytes, excluding data in streaming buffer',
104+
},
99105
schema: {
100106
type: 'array',
101107
description: 'Array of column definitions',
102108
items: {
103109
type: 'object',
104110
properties: {
105111
name: { type: 'string', description: 'Column name' },
106-
type: { type: 'string', description: 'Data type (STRING, INTEGER, FLOAT, BOOLEAN, TIMESTAMP, RECORD, etc.)' },
107-
mode: { type: 'string', description: 'Column mode (NULLABLE, REQUIRED, or REPEATED)', optional: true },
112+
type: {
113+
type: 'string',
114+
description: 'Data type (STRING, INTEGER, FLOAT, BOOLEAN, TIMESTAMP, RECORD, etc.)',
115+
},
116+
mode: {
117+
type: 'string',
118+
description: 'Column mode (NULLABLE, REQUIRED, or REPEATED)',
119+
optional: true,
120+
},
108121
description: { type: 'string', description: 'Column description', optional: true },
109122
},
110123
},
111124
},
112125
creationTime: { type: 'string', description: 'Table creation time (milliseconds since epoch)' },
113-
lastModifiedTime: { type: 'string', description: 'Last modification time (milliseconds since epoch)' },
126+
lastModifiedTime: {
127+
type: 'string',
128+
description: 'Last modification time (milliseconds since epoch)',
129+
},
114130
location: { type: 'string', description: 'Geographic location where the table resides' },
115131
},
116132
}

apps/sim/tools/google_bigquery/insert_rows.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,21 @@ export const googleBigQueryInsertRowsTool: ToolConfig<
149149
items: {
150150
type: 'object',
151151
properties: {
152-
reason: { type: 'string', description: 'Short error code summarizing the error', optional: true },
153-
location: { type: 'string', description: 'Where the error occurred', optional: true },
154-
message: { type: 'string', description: 'Human-readable error description', optional: true },
152+
reason: {
153+
type: 'string',
154+
description: 'Short error code summarizing the error',
155+
optional: true,
156+
},
157+
location: {
158+
type: 'string',
159+
description: 'Where the error occurred',
160+
optional: true,
161+
},
162+
message: {
163+
type: 'string',
164+
description: 'Human-readable error description',
165+
optional: true,
166+
},
155167
},
156168
},
157169
},

apps/sim/tools/google_bigquery/list_datasets.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,19 @@ export const googleBigQueryListDatasetsTool: ToolConfig<
103103
properties: {
104104
datasetId: { type: 'string', description: 'Unique dataset identifier' },
105105
projectId: { type: 'string', description: 'Project ID containing this dataset' },
106-
friendlyName: { type: 'string', description: 'Descriptive name for the dataset', optional: true },
106+
friendlyName: {
107+
type: 'string',
108+
description: 'Descriptive name for the dataset',
109+
optional: true,
110+
},
107111
location: { type: 'string', description: 'Geographic location where the data resides' },
108112
},
109113
},
110114
},
111-
nextPageToken: { type: 'string', description: 'Token for fetching next page of results', optional: true },
115+
nextPageToken: {
116+
type: 'string',
117+
description: 'Token for fetching next page of results',
118+
optional: true,
119+
},
112120
},
113121
}

apps/sim/tools/google_bigquery/list_tables.ts

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,28 @@ export const googleBigQueryListTablesTool: ToolConfig<
115115
datasetId: { type: 'string', description: 'Dataset ID containing this table' },
116116
projectId: { type: 'string', description: 'Project ID containing this table' },
117117
type: { type: 'string', description: 'Table type (TABLE, VIEW, EXTERNAL, etc.)' },
118-
friendlyName: { type: 'string', description: 'User-friendly name for the table', optional: true },
119-
creationTime: { type: 'string', description: 'Time when created, in milliseconds since epoch', optional: true },
118+
friendlyName: {
119+
type: 'string',
120+
description: 'User-friendly name for the table',
121+
optional: true,
122+
},
123+
creationTime: {
124+
type: 'string',
125+
description: 'Time when created, in milliseconds since epoch',
126+
optional: true,
127+
},
120128
},
121129
},
122130
},
123-
totalItems: { type: 'number', description: 'Total number of tables in the dataset', optional: true },
124-
nextPageToken: { type: 'string', description: 'Token for fetching next page of results', optional: true },
131+
totalItems: {
132+
type: 'number',
133+
description: 'Total number of tables in the dataset',
134+
optional: true,
135+
},
136+
nextPageToken: {
137+
type: 'string',
138+
description: 'Token for fetching next page of results',
139+
optional: true,
140+
},
125141
},
126142
}

apps/sim/tools/google_bigquery/query.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,18 @@ export const googleBigQueryQueryTool: ToolConfig<
133133
description: 'Row with column name/value pairs',
134134
},
135135
},
136-
totalRows: { type: 'string', description: 'Total number of rows in the complete result set', optional: true },
136+
totalRows: {
137+
type: 'string',
138+
description: 'Total number of rows in the complete result set',
139+
optional: true,
140+
},
137141
jobComplete: { type: 'boolean', description: 'Whether the query completed within the timeout' },
138142
totalBytesProcessed: { type: 'string', description: 'Total bytes processed by the query' },
139-
cacheHit: { type: 'boolean', description: 'Whether the query result was served from cache', optional: true },
143+
cacheHit: {
144+
type: 'boolean',
145+
description: 'Whether the query result was served from cache',
146+
optional: true,
147+
},
140148
jobReference: {
141149
type: 'object',
142150
description: 'Job reference (useful when jobComplete is false)',
@@ -147,6 +155,10 @@ export const googleBigQueryQueryTool: ToolConfig<
147155
location: { type: 'string', description: 'Geographic location of the job' },
148156
},
149157
},
150-
pageToken: { type: 'string', description: 'Token for fetching additional result pages', optional: true },
158+
pageToken: {
159+
type: 'string',
160+
description: 'Token for fetching additional result pages',
161+
optional: true,
162+
},
151163
},
152164
}

0 commit comments

Comments
 (0)