Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/sim/blocks/blocks/confluence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export const ConfluenceBlock: BlockConfig<ConfluenceResponse> = {
type: 'file-selector',
canonicalParamId: 'pageId',
serviceId: 'confluence',
selectorKey: 'confluence.pages',
placeholder: 'Select Confluence page',
dependsOn: ['credential', 'domain'],
mode: 'basic',
Expand Down Expand Up @@ -498,6 +499,7 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
type: 'file-selector',
canonicalParamId: 'pageId',
serviceId: 'confluence',
selectorKey: 'confluence.pages',
placeholder: 'Select Confluence page',
dependsOn: ['credential', 'domain'],
mode: 'basic',
Expand Down
4 changes: 4 additions & 0 deletions apps/sim/blocks/blocks/gmail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ Return ONLY the email body - no explanations, no extra text.`,
type: 'folder-selector',
canonicalParamId: 'folder',
serviceId: 'gmail',
selectorKey: 'gmail.labels',
requiredScopes: ['https://www.googleapis.com/auth/gmail.labels'],
placeholder: 'Select Gmail label/folder',
dependsOn: ['credential'],
Expand Down Expand Up @@ -301,6 +302,7 @@ Return ONLY the search query - no explanations, no extra text.`,
type: 'folder-selector',
canonicalParamId: 'addLabelIds',
serviceId: 'gmail',
selectorKey: 'gmail.labels',
requiredScopes: ['https://www.googleapis.com/auth/gmail.labels'],
placeholder: 'Select destination label',
dependsOn: ['credential'],
Expand All @@ -326,6 +328,7 @@ Return ONLY the search query - no explanations, no extra text.`,
type: 'folder-selector',
canonicalParamId: 'removeLabelIds',
serviceId: 'gmail',
selectorKey: 'gmail.labels',
requiredScopes: ['https://www.googleapis.com/auth/gmail.labels'],
placeholder: 'Select label to remove',
dependsOn: ['credential'],
Expand Down Expand Up @@ -378,6 +381,7 @@ Return ONLY the search query - no explanations, no extra text.`,
type: 'folder-selector',
canonicalParamId: 'manageLabelId',
serviceId: 'gmail',
selectorKey: 'gmail.labels',
requiredScopes: ['https://www.googleapis.com/auth/gmail.labels'],
placeholder: 'Select label',
dependsOn: ['credential'],
Expand Down
4 changes: 4 additions & 0 deletions apps/sim/blocks/blocks/google_calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export const GoogleCalendarBlock: BlockConfig<GoogleCalendarResponse> = {
type: 'file-selector',
canonicalParamId: 'calendarId',
serviceId: 'google-calendar',
selectorKey: 'google.calendar',
selectorAllowSearch: false,
requiredScopes: ['https://www.googleapis.com/auth/calendar'],
placeholder: 'Select calendar',
dependsOn: ['credential'],
Expand Down Expand Up @@ -326,6 +328,8 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
type: 'file-selector',
canonicalParamId: 'destinationCalendarId',
serviceId: 'google-calendar',
selectorKey: 'google.calendar',
selectorAllowSearch: false,
requiredScopes: ['https://www.googleapis.com/auth/calendar'],
placeholder: 'Select destination calendar',
dependsOn: ['credential'],
Expand Down
2 changes: 2 additions & 0 deletions apps/sim/blocks/blocks/google_docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const GoogleDocsBlock: BlockConfig<GoogleDocsResponse> = {
type: 'file-selector',
canonicalParamId: 'documentId',
serviceId: 'google-docs',
selectorKey: 'google.drive',
requiredScopes: [],
mimeType: 'application/vnd.google-apps.document',
placeholder: 'Select a document',
Expand Down Expand Up @@ -100,6 +101,7 @@ Return ONLY the document title - no explanations, no extra text.`,
type: 'file-selector',
canonicalParamId: 'folderId',
serviceId: 'google-docs',
selectorKey: 'google.drive',
requiredScopes: [],
mimeType: 'application/vnd.google-apps.folder',
placeholder: 'Select a parent folder',
Expand Down
13 changes: 13 additions & 0 deletions apps/sim/blocks/blocks/google_drive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ Return ONLY the file content - no explanations, no markdown code blocks, no extr
type: 'file-selector',
canonicalParamId: 'uploadFolderId',
serviceId: 'google-drive',
selectorKey: 'google.drive',
requiredScopes: [
'https://www.googleapis.com/auth/drive.file',
'https://www.googleapis.com/auth/drive',
Expand Down Expand Up @@ -209,6 +210,7 @@ Return ONLY the file content - no explanations, no markdown code blocks, no extr
type: 'file-selector',
canonicalParamId: 'createFolderParentId',
serviceId: 'google-drive',
selectorKey: 'google.drive',
requiredScopes: [
'https://www.googleapis.com/auth/drive.file',
'https://www.googleapis.com/auth/drive',
Expand Down Expand Up @@ -236,6 +238,7 @@ Return ONLY the file content - no explanations, no markdown code blocks, no extr
type: 'file-selector',
canonicalParamId: 'listFolderId',
serviceId: 'google-drive',
selectorKey: 'google.drive',
requiredScopes: [
'https://www.googleapis.com/auth/drive.file',
'https://www.googleapis.com/auth/drive',
Expand Down Expand Up @@ -295,6 +298,7 @@ Return ONLY the query string - no explanations, no quotes around the whole thing
type: 'file-selector',
canonicalParamId: 'downloadFileId',
serviceId: 'google-drive',
selectorKey: 'google.drive',
requiredScopes: [
'https://www.googleapis.com/auth/drive.file',
'https://www.googleapis.com/auth/drive',
Expand Down Expand Up @@ -356,6 +360,7 @@ Return ONLY the query string - no explanations, no quotes around the whole thing
type: 'file-selector',
canonicalParamId: 'getFileId',
serviceId: 'google-drive',
selectorKey: 'google.drive',
requiredScopes: [
'https://www.googleapis.com/auth/drive.file',
'https://www.googleapis.com/auth/drive',
Expand Down Expand Up @@ -383,6 +388,7 @@ Return ONLY the query string - no explanations, no quotes around the whole thing
type: 'file-selector',
canonicalParamId: 'copyFileId',
serviceId: 'google-drive',
selectorKey: 'google.drive',
requiredScopes: [
'https://www.googleapis.com/auth/drive.file',
'https://www.googleapis.com/auth/drive',
Expand Down Expand Up @@ -416,6 +422,7 @@ Return ONLY the query string - no explanations, no quotes around the whole thing
type: 'file-selector',
canonicalParamId: 'copyDestFolderId',
serviceId: 'google-drive',
selectorKey: 'google.drive',
requiredScopes: [
'https://www.googleapis.com/auth/drive.file',
'https://www.googleapis.com/auth/drive',
Expand All @@ -442,6 +449,7 @@ Return ONLY the query string - no explanations, no quotes around the whole thing
type: 'file-selector',
canonicalParamId: 'updateFileId',
serviceId: 'google-drive',
selectorKey: 'google.drive',
requiredScopes: [
'https://www.googleapis.com/auth/drive.file',
'https://www.googleapis.com/auth/drive',
Expand Down Expand Up @@ -520,6 +528,7 @@ Return ONLY the description text - no explanations, no quotes, no extra text.`,
type: 'file-selector',
canonicalParamId: 'trashFileId',
serviceId: 'google-drive',
selectorKey: 'google.drive',
requiredScopes: [
'https://www.googleapis.com/auth/drive.file',
'https://www.googleapis.com/auth/drive',
Expand Down Expand Up @@ -547,6 +556,7 @@ Return ONLY the description text - no explanations, no quotes, no extra text.`,
type: 'file-selector',
canonicalParamId: 'deleteFileId',
serviceId: 'google-drive',
selectorKey: 'google.drive',
requiredScopes: [
'https://www.googleapis.com/auth/drive.file',
'https://www.googleapis.com/auth/drive',
Expand Down Expand Up @@ -574,6 +584,7 @@ Return ONLY the description text - no explanations, no quotes, no extra text.`,
type: 'file-selector',
canonicalParamId: 'shareFileId',
serviceId: 'google-drive',
selectorKey: 'google.drive',
requiredScopes: [
'https://www.googleapis.com/auth/drive.file',
'https://www.googleapis.com/auth/drive',
Expand Down Expand Up @@ -688,6 +699,7 @@ Return ONLY the message text - no subject line, no greetings/signatures, no extr
type: 'file-selector',
canonicalParamId: 'unshareFileId',
serviceId: 'google-drive',
selectorKey: 'google.drive',
requiredScopes: [
'https://www.googleapis.com/auth/drive.file',
'https://www.googleapis.com/auth/drive',
Expand Down Expand Up @@ -723,6 +735,7 @@ Return ONLY the message text - no subject line, no greetings/signatures, no extr
type: 'file-selector',
canonicalParamId: 'listPermissionsFileId',
serviceId: 'google-drive',
selectorKey: 'google.drive',
requiredScopes: [
'https://www.googleapis.com/auth/drive.file',
'https://www.googleapis.com/auth/drive',
Expand Down
1 change: 1 addition & 0 deletions apps/sim/blocks/blocks/google_forms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export const GoogleFormsBlock: BlockConfig = {
canonicalParamId: 'formId',
required: true,
serviceId: 'google-forms',
selectorKey: 'google.drive',
requiredScopes: [],
mimeType: 'application/vnd.google-apps.form',
placeholder: 'Select a form',
Expand Down
4 changes: 4 additions & 0 deletions apps/sim/blocks/blocks/google_sheets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export const GoogleSheetsBlock: BlockConfig<GoogleSheetsResponse> = {
type: 'file-selector',
canonicalParamId: 'spreadsheetId',
serviceId: 'google-sheets',
selectorKey: 'google.drive',
requiredScopes: [
'https://www.googleapis.com/auth/drive.file',
'https://www.googleapis.com/auth/drive',
Expand Down Expand Up @@ -360,6 +361,7 @@ export const GoogleSheetsV2Block: BlockConfig<GoogleSheetsV2Response> = {
type: 'file-selector',
canonicalParamId: 'spreadsheetId',
serviceId: 'google-sheets',
selectorKey: 'google.drive',
requiredScopes: [
'https://www.googleapis.com/auth/drive.file',
'https://www.googleapis.com/auth/drive',
Expand Down Expand Up @@ -388,6 +390,8 @@ export const GoogleSheetsV2Block: BlockConfig<GoogleSheetsV2Response> = {
type: 'sheet-selector',
canonicalParamId: 'sheetName',
serviceId: 'google-sheets',
selectorKey: 'google.sheets',
selectorAllowSearch: false,
placeholder: 'Select a sheet',
required: true,
dependsOn: { all: ['credential'], any: ['spreadsheetId', 'manualSpreadsheetId'] },
Expand Down
2 changes: 2 additions & 0 deletions apps/sim/blocks/blocks/google_slides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export const GoogleSlidesBlock: BlockConfig<GoogleSlidesResponse> = {
type: 'file-selector',
canonicalParamId: 'presentationId',
serviceId: 'google-drive',
selectorKey: 'google.drive',
requiredScopes: [],
mimeType: 'application/vnd.google-apps.presentation',
placeholder: 'Select a presentation',
Expand Down Expand Up @@ -185,6 +186,7 @@ Return ONLY the title - no explanations, no quotes, no extra text.`,
type: 'file-selector',
canonicalParamId: 'folderId',
serviceId: 'google-drive',
selectorKey: 'google.drive',
requiredScopes: [],
mimeType: 'application/vnd.google-apps.folder',
placeholder: 'Select a parent folder',
Expand Down
2 changes: 2 additions & 0 deletions apps/sim/blocks/blocks/jira.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export const JiraBlock: BlockConfig<JiraResponse> = {
type: 'project-selector',
canonicalParamId: 'projectId',
serviceId: 'jira',
selectorKey: 'jira.projects',
placeholder: 'Select Jira project',
dependsOn: ['credential', 'domain'],
mode: 'basic',
Expand All @@ -137,6 +138,7 @@ export const JiraBlock: BlockConfig<JiraResponse> = {
type: 'file-selector',
canonicalParamId: 'issueKey',
serviceId: 'jira',
selectorKey: 'jira.issues',
placeholder: 'Select Jira issue',
dependsOn: ['credential', 'domain', 'projectId'],
condition: {
Expand Down
1 change: 1 addition & 0 deletions apps/sim/blocks/blocks/knowledge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export const KnowledgeBlock: BlockConfig = {
id: 'documentId',
title: 'Document',
type: 'document-selector',
selectorKey: 'knowledge.documents',
placeholder: 'Select document',
dependsOn: ['knowledgeBaseId'],
required: true,
Expand Down
2 changes: 2 additions & 0 deletions apps/sim/blocks/blocks/linear.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ export const LinearBlock: BlockConfig<LinearResponse> = {
type: 'project-selector',
canonicalParamId: 'teamId',
serviceId: 'linear',
selectorKey: 'linear.teams',
placeholder: 'Select a team',
dependsOn: ['credential'],
mode: 'basic',
Expand Down Expand Up @@ -228,6 +229,7 @@ export const LinearBlock: BlockConfig<LinearResponse> = {
type: 'project-selector',
canonicalParamId: 'projectId',
serviceId: 'linear',
selectorKey: 'linear.projects',
placeholder: 'Select a project',
dependsOn: ['credential', 'teamId'],
mode: 'basic',
Expand Down
4 changes: 4 additions & 0 deletions apps/sim/blocks/blocks/microsoft_excel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export const MicrosoftExcelBlock: BlockConfig<MicrosoftExcelResponse> = {
type: 'file-selector',
canonicalParamId: 'spreadsheetId',
serviceId: 'microsoft-excel',
selectorKey: 'microsoft.excel',
requiredScopes: [],
mimeType: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
placeholder: 'Select a spreadsheet',
Expand Down Expand Up @@ -392,6 +393,7 @@ export const MicrosoftExcelV2Block: BlockConfig<MicrosoftExcelV2Response> = {
type: 'file-selector',
canonicalParamId: 'spreadsheetId',
serviceId: 'microsoft-excel',
selectorKey: 'microsoft.excel',
requiredScopes: [],
mimeType: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
placeholder: 'Select a spreadsheet',
Expand All @@ -415,6 +417,8 @@ export const MicrosoftExcelV2Block: BlockConfig<MicrosoftExcelV2Response> = {
type: 'sheet-selector',
canonicalParamId: 'sheetName',
serviceId: 'microsoft-excel',
selectorKey: 'microsoft.excel.sheets',
selectorAllowSearch: false,
placeholder: 'Select a sheet',
required: true,
dependsOn: { all: ['credential'], any: ['spreadsheetId', 'manualSpreadsheetId'] },
Expand Down
1 change: 1 addition & 0 deletions apps/sim/blocks/blocks/microsoft_planner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export const MicrosoftPlannerBlock: BlockConfig<MicrosoftPlannerResponse> = {
type: 'file-selector',
placeholder: 'Select a task',
serviceId: 'microsoft-planner',
selectorKey: 'microsoft.planner',
condition: { field: 'operation', value: ['read_task'] },
dependsOn: ['credential', 'planId'],
mode: 'basic',
Expand Down
6 changes: 6 additions & 0 deletions apps/sim/blocks/blocks/microsoft_teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ export const MicrosoftTeamsBlock: BlockConfig<MicrosoftTeamsResponse> = {
type: 'file-selector',
canonicalParamId: 'teamId',
serviceId: 'microsoft-teams',
selectorKey: 'microsoft.teams',
selectorAllowSearch: false,
requiredScopes: [],
placeholder: 'Select a team',
dependsOn: ['credential'],
Expand Down Expand Up @@ -132,6 +134,8 @@ export const MicrosoftTeamsBlock: BlockConfig<MicrosoftTeamsResponse> = {
type: 'file-selector',
canonicalParamId: 'chatId',
serviceId: 'microsoft-teams',
selectorKey: 'microsoft.chats',
selectorAllowSearch: false,
requiredScopes: [],
placeholder: 'Select a chat',
dependsOn: ['credential'],
Expand Down Expand Up @@ -161,6 +165,8 @@ export const MicrosoftTeamsBlock: BlockConfig<MicrosoftTeamsResponse> = {
type: 'file-selector',
canonicalParamId: 'channelId',
serviceId: 'microsoft-teams',
selectorKey: 'microsoft.channels',
selectorAllowSearch: false,
requiredScopes: [],
placeholder: 'Select a channel',
dependsOn: ['credential', 'teamSelector'],
Expand Down
5 changes: 5 additions & 0 deletions apps/sim/blocks/blocks/onedrive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ export const OneDriveBlock: BlockConfig<OneDriveResponse> = {
type: 'file-selector',
canonicalParamId: 'uploadFolderId',
serviceId: 'onedrive',
selectorKey: 'onedrive.folders',
requiredScopes: [
'openid',
'profile',
Expand Down Expand Up @@ -192,6 +193,7 @@ export const OneDriveBlock: BlockConfig<OneDriveResponse> = {
type: 'file-selector',
canonicalParamId: 'createFolderParentId',
serviceId: 'onedrive',
selectorKey: 'onedrive.folders',
requiredScopes: [
'openid',
'profile',
Expand Down Expand Up @@ -224,6 +226,7 @@ export const OneDriveBlock: BlockConfig<OneDriveResponse> = {
type: 'file-selector',
canonicalParamId: 'listFolderId',
serviceId: 'onedrive',
selectorKey: 'onedrive.folders',
requiredScopes: [
'openid',
'profile',
Expand Down Expand Up @@ -270,6 +273,7 @@ export const OneDriveBlock: BlockConfig<OneDriveResponse> = {
type: 'file-selector',
canonicalParamId: 'downloadFileId',
serviceId: 'onedrive',
selectorKey: 'onedrive.files',
requiredScopes: [
'openid',
'profile',
Expand Down Expand Up @@ -310,6 +314,7 @@ export const OneDriveBlock: BlockConfig<OneDriveResponse> = {
type: 'file-selector',
canonicalParamId: 'deleteFileId',
serviceId: 'onedrive',
selectorKey: 'onedrive.files',
requiredScopes: [
'openid',
'profile',
Expand Down
3 changes: 3 additions & 0 deletions apps/sim/blocks/blocks/outlook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ export const OutlookBlock: BlockConfig<OutlookResponse> = {
type: 'folder-selector',
canonicalParamId: 'folder',
serviceId: 'outlook',
selectorKey: 'outlook.folders',
requiredScopes: ['Mail.ReadWrite', 'Mail.ReadBasic', 'Mail.Read'],
placeholder: 'Select Outlook folder',
dependsOn: ['credential'],
Expand Down Expand Up @@ -232,6 +233,7 @@ export const OutlookBlock: BlockConfig<OutlookResponse> = {
type: 'folder-selector',
canonicalParamId: 'destinationId',
serviceId: 'outlook',
selectorKey: 'outlook.folders',
requiredScopes: ['Mail.ReadWrite', 'Mail.ReadBasic', 'Mail.Read'],
placeholder: 'Select destination folder',
dependsOn: ['credential'],
Expand Down Expand Up @@ -278,6 +280,7 @@ export const OutlookBlock: BlockConfig<OutlookResponse> = {
type: 'folder-selector',
canonicalParamId: 'copyDestinationId',
serviceId: 'outlook',
selectorKey: 'outlook.folders',
requiredScopes: ['Mail.ReadWrite', 'Mail.ReadBasic', 'Mail.Read'],
placeholder: 'Select destination folder',
dependsOn: ['credential'],
Expand Down
Loading