AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
feat(google-drive): ui improvement (#16367)
Talal Jaberd5cee6cbb5de
diff --git a/bun.lock b/bun.lockindex 23c8b215693..e3c9eeb389c 100644--- a/bun.lock+++ b/bun.lock@@ -3884,7 +3884,7 @@},"packages/pieces/community/google-drive": {"name": "@activepieces/piece-google-drive",- "version": "0.11.3",+ "version": "0.12.0","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",diff --git a/packages/pieces/community/google-drive/package.json b/packages/pieces/community/google-drive/package.jsonindex ec33b387ace..4f30aab3e00 100644--- a/packages/pieces/community/google-drive/package.json+++ b/packages/pieces/community/google-drive/package.json@@ -1,6 +1,6 @@{"name": "@activepieces/piece-google-drive",- "version": "0.11.3",+ "version": "0.12.0","main": "./dist/src/index.js","types": "./dist/src/index.d.ts","dependencies": {diff --git a/packages/pieces/community/google-drive/src/lib/action/add-permission.action.ts b/packages/pieces/community/google-drive/src/lib/action/add-permission.action.tsindex ce4c9980931..f1aea4faf6e 100644--- a/packages/pieces/community/google-drive/src/lib/action/add-permission.action.ts+++ b/packages/pieces/community/google-drive/src/lib/action/add-permission.action.ts@@ -12,6 +12,22 @@ export const addPermission = createAction({audience: 'human',aiMetadata: { description: 'Grants a specified role (reader, commenter, writer, fileOrganizer, or organizer) on a Drive file or folder to a user identified by email, optionally sending a notification email. Use to share a resource with a person. Requires the file/folder ID and target email. Not idempotent: each call creates a new permission grant.', idempotent: false },displayName: 'Share File or Folder',+ propertyGroups: [+ {+ key: 'item',+ display: 'section',+ label: 'What to share',+ icon: 'file',+ props: ['fileId', 'include_team_drives'],+ },+ {+ key: 'access',+ display: 'section',+ label: 'Who gets access',+ icon: 'user',+ props: ['user_email', 'permission_name', 'send_invitation_email'],+ },+ ],props: {fileId: Property.ShortText({displayName: 'File or Folder ID',diff --git a/packages/pieces/community/google-drive/src/lib/action/create-new-text-file.ts b/packages/pieces/community/google-drive/src/lib/action/create-new-text-file.tsindex e1ef9d2d76c..d927f378939 100644--- a/packages/pieces/community/google-drive/src/lib/action/create-new-text-file.ts+++ b/packages/pieces/community/google-drive/src/lib/action/create-new-text-file.ts@@ -12,6 +12,22 @@ export const googleDriveCreateNewTextFile = createAction({audience: 'human',aiMetadata: { description: 'Creates a new file in Google Drive from inline text content as plain text, CSV, or XML, optionally inside a parent folder. Use when an agent has generated text it needs to persist as a Drive file. Not idempotent: each call creates a new file.', idempotent: false },displayName: 'Create File from Text',+ propertyGroups: [+ {+ key: 'file',+ display: 'section',+ label: 'New file',+ icon: 'file',+ props: ['fileName', 'text', 'fileType'],+ },+ {+ key: 'destination',+ display: 'section',+ label: 'Save to',+ icon: 'location',+ props: ['parentFolder', 'include_team_drives'],+ },+ ],props: {fileName: Property.ShortText({displayName: 'File Name',diff --git a/packages/pieces/community/google-drive/src/lib/action/drive-export-folder-as-zip.ts b/packages/pieces/community/google-drive/src/lib/action/drive-export-folder-as-zip.tsindex c609964365f..135cf77bc5f 100644--- a/packages/pieces/community/google-drive/src/lib/action/drive-export-folder-as-zip.ts+++ b/packages/pieces/community/google-drive/src/lib/action/drive-export-folder-as-zip.ts@@ -459,6 +459,29 @@ export const driveExportFolderAsZip = createAction({'Recursively downloads every file in a Drive folder (including subfolders) and packages them into a single zip whose internal paths mirror the folder hierarchy. Native Google Docs/Sheets/Slides are converted per user-chosen format (PDF/Office format) or skipped. Fails the whole action if any single file cannot be downloaded/exported. Optionally password-protects the zip.',idempotent: true,},+ propertyGroups: [+ {+ key: 'source',+ display: 'section',+ label: 'Folder to export',+ icon: 'location',+ props: ['folderId', 'includeTeamDrives'],+ },+ {+ key: 'conversion',+ display: 'section',+ label: 'Convert Google files',+ icon: 'file',+ props: ['googleDocsFormat', 'googleSheetsFormat', 'googleSlidesFormat'],+ },+ {+ key: 'output',+ display: 'section',+ label: 'Output',+ icon: 'paperclip',+ props: ['duplicatePathWarning', 'outputFileName'],+ },+ ],props: {folderId: Property.Dropdown({displayName: 'Folder',diff --git a/packages/pieces/community/google-drive/src/lib/action/list-files.action.ts b/packages/pieces/community/google-drive/src/lib/action/list-files.action.tsindex ca5008e0aff..6da228c83b6 100644--- a/packages/pieces/community/google-drive/src/lib/action/list-files.action.ts+++ b/packages/pieces/community/google-drive/src/lib/action/list-files.action.ts@@ -33,7 +33,11 @@ export const googleDriveListFiles = createAction({displayName: 'Folder Depth',description: '1 lists only this folder; 2 adds its subfolders, and so on.',required: false,- defaultValue: 1+ defaultValue: 1,+ display: 'stepper',+ min: 1,+ max: 100,+ step: 1,}),downloadFiles: Property.Checkbox({diff --git a/packages/pieces/community/google-drive/src/lib/action/search-folder-or-file.action.ts b/packages/pieces/community/google-drive/src/lib/action/search-folder-or-file.action.tsindex a6c41990906..73625017b3e 100644--- a/packages/pieces/community/google-drive/src/lib/action/search-folder-or-file.action.ts+++ b/packages/pieces/community/google-drive/src/lib/action/search-folder-or-file.action.ts@@ -13,6 +13,22 @@ export const googleDriveSearchFolder = createAction({description: 'Find files or folders by name, content or type.',audience: 'human',aiMetadata: { description: 'Searches Google Drive for files or folders matching a name, full-text, or MIME-type query, optionally scoped to a parent folder and filtered to files or folders only. Use to resolve a file/folder ID from a human-readable name before acting on it. Read-only and idempotent.', idempotent: true },+ propertyGroups: [+ {+ key: 'search',+ display: 'section',+ label: 'Search for',+ icon: 'type',+ props: ['queryTerm', 'operator', 'query'],+ },+ {+ key: 'scope',+ display: 'section',+ label: 'Limit results',+ icon: 'sliders',+ props: ['type', 'parentFolder', 'include_team_drives'],+ },+ ],props: {queryTerm: Property.StaticDropdown({displayName: 'Search By',@@ -31,10 +47,11 @@ export const googleDriveSearchFolder = createAction({displayName: 'Match',description: 'Contains finds partial matches; Equals needs the exact value.',required: true,+ display: 'cards',options: {options: [- { label: 'Contains', value: 'contains' },- { label: 'Equals', value: '=' },+ { label: 'Contains', value: 'contains', description: 'Partial match', icon: 'filter' },+ { label: 'Equals', value: '=', description: 'Exact match', icon: 'tag' },],},defaultValue: 'contains',diff --git a/packages/pieces/community/google-drive/src/lib/action/set-public-access.ts b/packages/pieces/community/google-drive/src/lib/action/set-public-access.tsindex 818b8d5977d..428d8882dd5 100644--- a/packages/pieces/community/google-drive/src/lib/action/set-public-access.ts+++ b/packages/pieces/community/google-drive/src/lib/action/set-public-access.ts@@ -22,11 +22,12 @@ export const setPublicAccess = createAction({role: Property.StaticDropdown({displayName: 'Role',description: 'What anyone with the link can do.',+ display: 'cards',options: {options: [- { label: 'Viewer', value: 'reader' },- { label: 'Commenter', value: 'commenter' },- { label: 'Editor', value: 'writer' },+ { label: 'Viewer', value: 'reader', description: 'Read only', icon: 'file' },+ { label: 'Commenter', value: 'commenter', description: 'Read and comment', icon: 'reply' },+ { label: 'Editor', value: 'writer', description: 'Read and edit', icon: 'type' },],},defaultValue: 'reader',