Skip to content

Commit abb671e

Browse files
committed
rename
1 parent f90c9c7 commit abb671e

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

apps/sim/tools/table/types.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,36 @@ import type {
77
TableRow,
88
TableSchema,
99
} from '@/lib/table/types'
10-
import type { ToolExecutionContext, ToolResponse } from '@/tools/types'
10+
import type { ToolResponse, WorkflowToolExecutionContext } from '@/tools/types'
1111

1212
export interface TableCreateParams {
1313
name: string
1414
description?: string
1515
schema: TableSchema
16-
_context?: ToolExecutionContext
16+
_context?: WorkflowToolExecutionContext
1717
}
1818

1919
export interface TableListParams {
20-
_context?: ToolExecutionContext
20+
_context?: WorkflowToolExecutionContext
2121
}
2222

2323
export interface TableRowInsertParams {
2424
tableId: string
2525
data: RowData
26-
_context?: ToolExecutionContext
26+
_context?: WorkflowToolExecutionContext
2727
}
2828

2929
export interface TableRowUpdateParams {
3030
tableId: string
3131
rowId: string
3232
data: RowData
33-
_context?: ToolExecutionContext
33+
_context?: WorkflowToolExecutionContext
3434
}
3535

3636
export interface TableRowDeleteParams {
3737
tableId: string
3838
rowId: string
39-
_context?: ToolExecutionContext
39+
_context?: WorkflowToolExecutionContext
4040
}
4141

4242
export interface TableRowQueryParams {
@@ -45,13 +45,13 @@ export interface TableRowQueryParams {
4545
sort?: Sort
4646
limit?: number
4747
offset?: number
48-
_context?: ToolExecutionContext
48+
_context?: WorkflowToolExecutionContext
4949
}
5050

5151
export interface TableRowGetParams {
5252
tableId: string
5353
rowId: string
54-
_context?: ToolExecutionContext
54+
_context?: WorkflowToolExecutionContext
5555
}
5656

5757
export interface TableCreateResponse extends ToolResponse {
@@ -95,7 +95,7 @@ export interface TableDeleteResponse extends ToolResponse {
9595
export interface TableBatchInsertParams {
9696
tableId: string
9797
rows: RowData[]
98-
_context?: ToolExecutionContext
98+
_context?: WorkflowToolExecutionContext
9999
}
100100

101101
export interface TableBatchInsertResponse extends ToolResponse {
@@ -111,14 +111,14 @@ export interface TableUpdateByFilterParams {
111111
filter: Filter
112112
data: RowData
113113
limit?: number
114-
_context?: ToolExecutionContext
114+
_context?: WorkflowToolExecutionContext
115115
}
116116

117117
export interface TableDeleteByFilterParams {
118118
tableId: string
119119
filter: Filter
120120
limit?: number
121-
_context?: ToolExecutionContext
121+
_context?: WorkflowToolExecutionContext
122122
}
123123

124124
export interface TableBulkOperationResponse extends ToolResponse {
@@ -133,7 +133,7 @@ export interface TableBulkOperationResponse extends ToolResponse {
133133

134134
export interface TableGetSchemaParams {
135135
tableId: string
136-
_context?: ToolExecutionContext
136+
_context?: WorkflowToolExecutionContext
137137
}
138138

139139
export interface TableGetSchemaResponse extends ToolResponse {

apps/sim/tools/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD'
66
* Minimal execution context injected into tool params at runtime.
77
* This is a subset of the full ExecutionContext from executor/types.ts.
88
*/
9-
export type ToolExecutionContext = {
9+
export type WorkflowToolExecutionContext = {
1010
workspaceId?: string
1111
workflowId?: string
1212
executionId?: string

0 commit comments

Comments
 (0)