feat(google-drive): list shared drives for new files trigger

This commit is contained in:
Rıdvan Akca
2023-04-06 14:28:57 +03:00
committed by Ali BARIN
parent 5570687957
commit 9ad7de56a3
4 changed files with 59 additions and 1 deletions

View File

@@ -6,6 +6,27 @@ export default defineTrigger({
key: 'newFiles',
pollInterval: 15,
description: 'Triggers when any new file is added (inside of any folder).',
arguments: [
{
label: 'Drive',
key: 'driveId',
type: 'dropdown' as const,
required: false,
description:
'The drive to use. If nothing is selected, then your personal Google Drive will be used.',
variables: false,
source: {
type: 'query',
name: 'getDynamicData',
arguments: [
{
name: 'key',
value: 'listDrives',
},
],
},
},
],
async run($) {
await newFiles($);