Skip to content

Commit af6b5e1

Browse files
committed
lint
1 parent 7569ee1 commit af6b5e1

File tree

10 files changed

+219
-203
lines changed

10 files changed

+219
-203
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,
@@ -73,9 +73,9 @@ import {
7373
LinearIcon,
7474
LinkedInIcon,
7575
LinkupIcon,
76-
MailServerIcon,
7776
MailchimpIcon,
7877
MailgunIcon,
78+
MailServerIcon,
7979
Mem0Icon,
8080
MicrosoftDataverseIcon,
8181
MicrosoftExcelIcon,
@@ -108,8 +108,6 @@ import {
108108
ResendIcon,
109109
RevenueCatIcon,
110110
S3Icon,
111-
SQSIcon,
112-
STTIcon,
113111
SalesforceIcon,
114112
SearchIcon,
115113
SendgridIcon,
@@ -121,17 +119,19 @@ import {
121119
SimilarwebIcon,
122120
SlackIcon,
123121
SmtpIcon,
122+
SQSIcon,
124123
SshIcon,
124+
STTIcon,
125125
StagehandIcon,
126126
StripeIcon,
127127
SupabaseIcon,
128-
TTSIcon,
129128
TavilyIcon,
130129
TelegramIcon,
131130
TextractIcon,
132131
TinybirdIcon,
133132
TranslateIcon,
134133
TrelloIcon,
134+
TTSIcon,
135135
TwilioIcon,
136136
TypeformIcon,
137137
UpstashIcon,
@@ -142,11 +142,11 @@ import {
142142
WhatsAppIcon,
143143
WikipediaIcon,
144144
WordpressIcon,
145+
xIcon,
145146
YouTubeIcon,
146147
ZendeskIcon,
147148
ZepIcon,
148149
ZoomIcon,
149-
xIcon,
150150
} from '@/components/icons'
151151

152152
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
@@ -147,4 +147,4 @@
147147
"zep",
148148
"zoom"
149149
]
150-
}
150+
}

apps/sim/app/api/tools/confluence/blogposts/route.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,7 @@ export async function PUT(request: NextRequest) {
360360
statusText: response.statusText,
361361
error: JSON.stringify(errorData, null, 2),
362362
})
363-
const errorMessage =
364-
errorData?.message || `Failed to update blog post (${response.status})`
363+
const errorMessage = errorData?.message || `Failed to update blog post (${response.status})`
365364
return NextResponse.json({ error: errorMessage }, { status: response.status })
366365
}
367366

@@ -425,8 +424,7 @@ export async function DELETE(request: NextRequest) {
425424
statusText: response.statusText,
426425
error: JSON.stringify(errorData, null, 2),
427426
})
428-
const errorMessage =
429-
errorData?.message || `Failed to delete blog post (${response.status})`
427+
const errorMessage = errorData?.message || `Failed to delete blog post (${response.status})`
430428
return NextResponse.json({ error: errorMessage }, { status: response.status })
431429
}
432430

apps/sim/app/api/tools/confluence/space/route.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ export async function POST(request: NextRequest) {
142142
statusText: response.statusText,
143143
error: JSON.stringify(errorData, null, 2),
144144
})
145-
const errorMessage =
146-
errorData?.message || `Failed to create space (${response.status})`
145+
const errorMessage = errorData?.message || `Failed to create space (${response.status})`
147146
return NextResponse.json({ error: errorMessage }, { status: response.status })
148147
}
149148

@@ -223,8 +222,7 @@ export async function PUT(request: NextRequest) {
223222
statusText: response.statusText,
224223
error: JSON.stringify(errorData, null, 2),
225224
})
226-
const errorMessage =
227-
errorData?.message || `Failed to update space (${response.status})`
225+
const errorMessage = errorData?.message || `Failed to update space (${response.status})`
228226
return NextResponse.json({ error: errorMessage }, { status: response.status })
229227
}
230228

@@ -296,8 +294,7 @@ export async function DELETE(request: NextRequest) {
296294
statusText: response.statusText,
297295
error: JSON.stringify(errorData, null, 2),
298296
})
299-
const errorMessage =
300-
errorData?.message || `Failed to delete space (${response.status})`
297+
const errorMessage = errorData?.message || `Failed to delete space (${response.status})`
301298
return NextResponse.json({ error: errorMessage }, { status: response.status })
302299
}
303300

apps/sim/blocks/blocks/confluence.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,10 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
675675
type: 'short-input',
676676
placeholder: 'Enter blog post ID',
677677
required: true,
678-
condition: { field: 'operation', value: ['get_blogpost', 'update_blogpost', 'delete_blogpost'] },
678+
condition: {
679+
field: 'operation',
680+
value: ['get_blogpost', 'update_blogpost', 'delete_blogpost'],
681+
},
679682
},
680683
{
681684
id: 'versionNumber',
@@ -794,14 +797,20 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
794797
title: 'Title',
795798
type: 'short-input',
796799
placeholder: 'Enter title',
797-
condition: { field: 'operation', value: ['create', 'update', 'create_blogpost', 'update_blogpost', 'update_space'] },
800+
condition: {
801+
field: 'operation',
802+
value: ['create', 'update', 'create_blogpost', 'update_blogpost', 'update_space'],
803+
},
798804
},
799805
{
800806
id: 'content',
801807
title: 'Content',
802808
type: 'long-input',
803809
placeholder: 'Enter content',
804-
condition: { field: 'operation', value: ['create', 'update', 'create_blogpost', 'update_blogpost'] },
810+
condition: {
811+
field: 'operation',
812+
value: ['create', 'update', 'create_blogpost', 'update_blogpost'],
813+
},
805814
},
806815
{
807816
id: 'parentId',

apps/sim/tools/confluence/get_task.ts

Lines changed: 90 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -28,102 +28,100 @@ export interface ConfluenceGetTaskResponse {
2828
}
2929
}
3030

31-
export const confluenceGetTaskTool: ToolConfig<
32-
ConfluenceGetTaskParams,
33-
ConfluenceGetTaskResponse
34-
> = {
35-
id: 'confluence_get_task',
36-
name: 'Confluence Get Task',
37-
description: 'Get a specific Confluence inline task by ID.',
38-
version: '1.0.0',
31+
export const confluenceGetTaskTool: ToolConfig<ConfluenceGetTaskParams, ConfluenceGetTaskResponse> =
32+
{
33+
id: 'confluence_get_task',
34+
name: 'Confluence Get Task',
35+
description: 'Get a specific Confluence inline task by ID.',
36+
version: '1.0.0',
3937

40-
oauth: {
41-
required: true,
42-
provider: 'confluence',
43-
},
44-
45-
params: {
46-
accessToken: {
47-
type: 'string',
48-
required: true,
49-
visibility: 'hidden',
50-
description: 'OAuth access token for Confluence',
51-
},
52-
domain: {
53-
type: 'string',
54-
required: true,
55-
visibility: 'user-only',
56-
description: 'Your Confluence domain (e.g., yourcompany.atlassian.net)',
57-
},
58-
taskId: {
59-
type: 'string',
38+
oauth: {
6039
required: true,
61-
visibility: 'user-or-llm',
62-
description: 'The ID of the task to retrieve',
40+
provider: 'confluence',
6341
},
64-
cloudId: {
65-
type: 'string',
66-
required: false,
67-
visibility: 'user-only',
68-
description:
69-
'Confluence Cloud ID for the instance. If not provided, it will be fetched using the domain.',
42+
43+
params: {
44+
accessToken: {
45+
type: 'string',
46+
required: true,
47+
visibility: 'hidden',
48+
description: 'OAuth access token for Confluence',
49+
},
50+
domain: {
51+
type: 'string',
52+
required: true,
53+
visibility: 'user-only',
54+
description: 'Your Confluence domain (e.g., yourcompany.atlassian.net)',
55+
},
56+
taskId: {
57+
type: 'string',
58+
required: true,
59+
visibility: 'user-or-llm',
60+
description: 'The ID of the task to retrieve',
61+
},
62+
cloudId: {
63+
type: 'string',
64+
required: false,
65+
visibility: 'user-only',
66+
description:
67+
'Confluence Cloud ID for the instance. If not provided, it will be fetched using the domain.',
68+
},
7069
},
71-
},
7270

73-
request: {
74-
url: () => '/api/tools/confluence/tasks',
75-
method: 'POST',
76-
headers: (params: ConfluenceGetTaskParams) => ({
77-
Accept: 'application/json',
78-
'Content-Type': 'application/json',
79-
Authorization: `Bearer ${params.accessToken}`,
80-
}),
81-
body: (params: ConfluenceGetTaskParams) => ({
82-
domain: params.domain,
83-
accessToken: params.accessToken,
84-
cloudId: params.cloudId,
85-
taskId: params.taskId,
86-
}),
87-
},
71+
request: {
72+
url: () => '/api/tools/confluence/tasks',
73+
method: 'POST',
74+
headers: (params: ConfluenceGetTaskParams) => ({
75+
Accept: 'application/json',
76+
'Content-Type': 'application/json',
77+
Authorization: `Bearer ${params.accessToken}`,
78+
}),
79+
body: (params: ConfluenceGetTaskParams) => ({
80+
domain: params.domain,
81+
accessToken: params.accessToken,
82+
cloudId: params.cloudId,
83+
taskId: params.taskId,
84+
}),
85+
},
8886

89-
transformResponse: async (response: Response) => {
90-
const data = await response.json()
91-
const task = data.task || data
92-
return {
93-
success: true,
94-
output: {
95-
ts: new Date().toISOString(),
96-
id: task.id ?? '',
97-
localId: task.localId ?? null,
98-
spaceId: task.spaceId ?? null,
99-
pageId: task.pageId ?? null,
100-
blogPostId: task.blogPostId ?? null,
101-
status: task.status ?? '',
102-
createdBy: task.createdBy ?? null,
103-
assignedTo: task.assignedTo ?? null,
104-
completedBy: task.completedBy ?? null,
105-
createdAt: task.createdAt ?? null,
106-
updatedAt: task.updatedAt ?? null,
107-
dueAt: task.dueAt ?? null,
108-
completedAt: task.completedAt ?? null,
109-
},
110-
}
111-
},
87+
transformResponse: async (response: Response) => {
88+
const data = await response.json()
89+
const task = data.task || data
90+
return {
91+
success: true,
92+
output: {
93+
ts: new Date().toISOString(),
94+
id: task.id ?? '',
95+
localId: task.localId ?? null,
96+
spaceId: task.spaceId ?? null,
97+
pageId: task.pageId ?? null,
98+
blogPostId: task.blogPostId ?? null,
99+
status: task.status ?? '',
100+
createdBy: task.createdBy ?? null,
101+
assignedTo: task.assignedTo ?? null,
102+
completedBy: task.completedBy ?? null,
103+
createdAt: task.createdAt ?? null,
104+
updatedAt: task.updatedAt ?? null,
105+
dueAt: task.dueAt ?? null,
106+
completedAt: task.completedAt ?? null,
107+
},
108+
}
109+
},
112110

113-
outputs: {
114-
ts: TIMESTAMP_OUTPUT,
115-
id: { type: 'string', description: 'Task ID' },
116-
localId: { type: 'string', description: 'Local task ID', optional: true },
117-
spaceId: { type: 'string', description: 'Space ID', optional: true },
118-
pageId: { type: 'string', description: 'Page ID', optional: true },
119-
blogPostId: { type: 'string', description: 'Blog post ID', optional: true },
120-
status: { type: 'string', description: 'Task status (complete or incomplete)' },
121-
createdBy: { type: 'string', description: 'Creator account ID', optional: true },
122-
assignedTo: { type: 'string', description: 'Assignee account ID', optional: true },
123-
completedBy: { type: 'string', description: 'Completer account ID', optional: true },
124-
createdAt: { type: 'string', description: 'Creation timestamp', optional: true },
125-
updatedAt: { type: 'string', description: 'Last update timestamp', optional: true },
126-
dueAt: { type: 'string', description: 'Due date', optional: true },
127-
completedAt: { type: 'string', description: 'Completion timestamp', optional: true },
128-
},
129-
}
111+
outputs: {
112+
ts: TIMESTAMP_OUTPUT,
113+
id: { type: 'string', description: 'Task ID' },
114+
localId: { type: 'string', description: 'Local task ID', optional: true },
115+
spaceId: { type: 'string', description: 'Space ID', optional: true },
116+
pageId: { type: 'string', description: 'Page ID', optional: true },
117+
blogPostId: { type: 'string', description: 'Blog post ID', optional: true },
118+
status: { type: 'string', description: 'Task status (complete or incomplete)' },
119+
createdBy: { type: 'string', description: 'Creator account ID', optional: true },
120+
assignedTo: { type: 'string', description: 'Assignee account ID', optional: true },
121+
completedBy: { type: 'string', description: 'Completer account ID', optional: true },
122+
createdAt: { type: 'string', description: 'Creation timestamp', optional: true },
123+
updatedAt: { type: 'string', description: 'Last update timestamp', optional: true },
124+
dueAt: { type: 'string', description: 'Due date', optional: true },
125+
completedAt: { type: 'string', description: 'Completion timestamp', optional: true },
126+
},
127+
}

0 commit comments

Comments
 (0)