Skip to content

Commit c22443e

Browse files
committed
fix(google-drive): remove dead transformResponse from move tool
1 parent a4af7a5 commit c22443e

File tree

5 files changed

+19
-33
lines changed

5 files changed

+19
-33
lines changed

apps/docs/components/ui/icon-mapping.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ import {
3838
EyeIcon,
3939
FirecrawlIcon,
4040
FirefliesIcon,
41-
GitLabIcon,
4241
GithubIcon,
42+
GitLabIcon,
4343
GmailIcon,
4444
GongIcon,
4545
GoogleBooksIcon,
@@ -72,9 +72,9 @@ import {
7272
LinearIcon,
7373
LinkedInIcon,
7474
LinkupIcon,
75-
MailServerIcon,
7675
MailchimpIcon,
7776
MailgunIcon,
77+
MailServerIcon,
7878
Mem0Icon,
7979
MicrosoftDataverseIcon,
8080
MicrosoftExcelIcon,
@@ -107,8 +107,6 @@ import {
107107
ResendIcon,
108108
RevenueCatIcon,
109109
S3Icon,
110-
SQSIcon,
111-
STTIcon,
112110
SalesforceIcon,
113111
SearchIcon,
114112
SendgridIcon,
@@ -120,17 +118,19 @@ import {
120118
SimilarwebIcon,
121119
SlackIcon,
122120
SmtpIcon,
121+
SQSIcon,
123122
SshIcon,
123+
STTIcon,
124124
StagehandIcon,
125125
StripeIcon,
126126
SupabaseIcon,
127-
TTSIcon,
128127
TavilyIcon,
129128
TelegramIcon,
130129
TextractIcon,
131130
TinybirdIcon,
132131
TranslateIcon,
133132
TrelloIcon,
133+
TTSIcon,
134134
TwilioIcon,
135135
TypeformIcon,
136136
UpstashIcon,
@@ -141,11 +141,11 @@ import {
141141
WhatsAppIcon,
142142
WikipediaIcon,
143143
WordpressIcon,
144+
xIcon,
144145
YouTubeIcon,
145146
ZendeskIcon,
146147
ZepIcon,
147148
ZoomIcon,
148-
xIcon,
149149
} from '@/components/icons'
150150

151151
type IconComponent = ComponentType<SVGProps<SVGSVGElement>>

apps/docs/content/docs/en/tools/meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,4 @@
146146
"zep",
147147
"zoom"
148148
]
149-
}
149+
}

apps/sim/tools/gmail/get_draft.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ export const gmailGetDraftV2Tool: ToolConfig<GmailGetDraftParams, GmailGetDraftR
8888
success: true,
8989
output: {
9090
id: data.id,
91-
messageId: message.id ?? null,
92-
threadId: message.threadId ?? null,
93-
to: getHeader('To') ?? null,
94-
from: getHeader('From') ?? null,
95-
subject: getHeader('Subject') ?? null,
96-
body: body || null,
97-
labelIds: message.labelIds ?? null,
91+
messageId: message.id ?? undefined,
92+
threadId: message.threadId ?? undefined,
93+
to: getHeader('To'),
94+
from: getHeader('From'),
95+
subject: getHeader('Subject'),
96+
body: body || undefined,
97+
labelIds: message.labelIds ?? undefined,
9898
},
9999
}
100100
},

apps/sim/tools/google_drive/move.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -124,21 +124,6 @@ export const moveTool: ToolConfig<GoogleDriveMoveParams, GoogleDriveMoveResponse
124124
}
125125
},
126126

127-
transformResponse: async (response: Response) => {
128-
const data = await response.json()
129-
130-
if (!response.ok) {
131-
throw new Error(data.error?.message || 'Failed to move Google Drive file')
132-
}
133-
134-
return {
135-
success: true,
136-
output: {
137-
file: data,
138-
},
139-
}
140-
},
141-
142127
outputs: {
143128
file: {
144129
type: 'json',

biome.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
"!**/public/workbox-*.js",
2525
"!**/public/worker-*.js",
2626
"!**/public/fallback-*.js",
27-
"!**/apps/docs/.source",
28-
"!**/venv",
29-
"!**/.venv"
27+
"!**/apps/docs/.source/**",
28+
"!**/venv/**",
29+
"!**/.venv/**"
3030
]
3131
},
3232
"formatter": {
@@ -65,7 +65,8 @@
6565
"rules": {
6666
"recommended": true,
6767
"nursery": {
68-
"useSortedClasses": "warn"
68+
"useSortedClasses": "warn",
69+
"noNestedComponentDefinitions": "off"
6970
},
7071
"a11y": {
7172
"noSvgWithoutTitle": "off",

0 commit comments

Comments
 (0)