n8n-nodes-base 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build.tsbuildinfo +1 -1
- package/dist/credentials/AirtableTokenApi.credentials.js +10 -0
- package/dist/credentials/AirtableTokenApi.credentials.js.map +1 -1
- package/dist/credentials/CrowdDevApi.credentials.d.ts +9 -0
- package/dist/credentials/CrowdDevApi.credentials.js +62 -0
- package/dist/credentials/CrowdDevApi.credentials.js.map +1 -0
- package/dist/credentials/GoogleDriveOAuth2Api.credentials.js +6 -0
- package/dist/credentials/GoogleDriveOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/GoogleSheetsOAuth2Api.credentials.js +3 -0
- package/dist/credentials/GoogleSheetsOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/GoogleSheetsTriggerOAuth2Api.credentials.js +3 -0
- package/dist/credentials/GoogleSheetsTriggerOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/HttpCustomAuth.credentials.d.ts +9 -0
- package/dist/credentials/HttpCustomAuth.credentials.js +25 -0
- package/dist/credentials/HttpCustomAuth.credentials.js.map +1 -0
- package/dist/credentials/TwitterOAuth1Api.credentials.js +6 -0
- package/dist/credentials/TwitterOAuth1Api.credentials.js.map +1 -1
- package/dist/credentials/TwitterOAuth2Api.credentials.d.ts +8 -0
- package/dist/credentials/TwitterOAuth2Api.credentials.js +73 -0
- package/dist/credentials/TwitterOAuth2Api.credentials.js.map +1 -0
- package/dist/known/credentials.json +36 -6
- package/dist/known/nodes.json +8 -0
- package/dist/methods/defined.json +6 -0
- package/dist/methods/referenced.json +4 -0
- package/dist/nodes/ActionNetwork/GenericFunctions.d.ts +23 -7
- package/dist/nodes/ActionNetwork/types.d.ts +79 -0
- package/dist/nodes/ActionNetwork/types.js +3 -0
- package/dist/nodes/ActionNetwork/types.js.map +1 -0
- package/dist/nodes/Adalo/types.d.ts +9 -0
- package/dist/nodes/Adalo/types.js +3 -0
- package/dist/nodes/Adalo/types.js.map +1 -0
- package/dist/nodes/Airtable/Airtable.node.d.ts +3 -4
- package/dist/nodes/Airtable/Airtable.node.js +10 -701
- package/dist/nodes/Airtable/Airtable.node.js.map +1 -1
- package/dist/nodes/Airtable/AirtableTrigger.node.js +14 -1
- package/dist/nodes/Airtable/AirtableTrigger.node.js.map +1 -1
- package/dist/nodes/Airtable/test/v2/node/helpers.d.ts +3 -0
- package/dist/nodes/Airtable/test/v2/node/helpers.js +31 -0
- package/dist/nodes/Airtable/test/v2/node/helpers.js.map +1 -0
- package/dist/nodes/Airtable/v1/AirtableV1.node.d.ts +6 -0
- package/dist/nodes/Airtable/v1/AirtableV1.node.js +722 -0
- package/dist/nodes/Airtable/v1/AirtableV1.node.js.map +1 -0
- package/dist/nodes/Airtable/v1/GenericFunctions.js.map +1 -0
- package/dist/nodes/Airtable/v2/AirtableV2.node.d.ts +12 -0
- package/dist/nodes/Airtable/v2/AirtableV2.node.js +24 -0
- package/dist/nodes/Airtable/v2/AirtableV2.node.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/base/Base.resource.d.ts +5 -0
- package/dist/nodes/Airtable/v2/actions/base/Base.resource.js +61 -0
- package/dist/nodes/Airtable/v2/actions/base/Base.resource.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/base/getMany.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/base/getMany.operation.js +106 -0
- package/dist/nodes/Airtable/v2/actions/base/getMany.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/base/getSchema.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/base/getSchema.operation.js +42 -0
- package/dist/nodes/Airtable/v2/actions/base/getSchema.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/common.descriptions.d.ts +5 -0
- package/dist/nodes/Airtable/v2/actions/common.descriptions.js +203 -0
- package/dist/nodes/Airtable/v2/actions/common.descriptions.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/node.type.d.ts +8 -0
- package/dist/nodes/Airtable/v2/actions/node.type.js +3 -0
- package/dist/nodes/Airtable/v2/actions/node.type.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/record/Record.resource.d.ts +9 -0
- package/dist/nodes/Airtable/v2/actions/record/Record.resource.js +114 -0
- package/dist/nodes/Airtable/v2/actions/record/Record.resource.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/record/create.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/record/create.operation.js +74 -0
- package/dist/nodes/Airtable/v2/actions/record/create.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/record/deleteRecord.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/record/deleteRecord.operation.js +47 -0
- package/dist/nodes/Airtable/v2/actions/record/deleteRecord.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/record/get.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/record/get.operation.js +74 -0
- package/dist/nodes/Airtable/v2/actions/record/get.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/record/search.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/record/search.operation.js +188 -0
- package/dist/nodes/Airtable/v2/actions/record/search.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/record/update.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/record/update.operation.js +106 -0
- package/dist/nodes/Airtable/v2/actions/record/update.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/record/upsert.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/record/upsert.operation.js +129 -0
- package/dist/nodes/Airtable/v2/actions/record/upsert.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/router.d.ts +2 -0
- package/dist/nodes/Airtable/v2/actions/router.js +67 -0
- package/dist/nodes/Airtable/v2/actions/router.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/versionDescription.d.ts +2 -0
- package/dist/nodes/Airtable/v2/actions/versionDescription.js +100 -0
- package/dist/nodes/Airtable/v2/actions/versionDescription.js.map +1 -0
- package/dist/nodes/Airtable/v2/helpers/interfaces.d.ts +22 -0
- package/dist/nodes/Airtable/v2/helpers/interfaces.js +3 -0
- package/dist/nodes/Airtable/v2/helpers/interfaces.js.map +1 -0
- package/dist/nodes/Airtable/v2/helpers/utils.d.ts +8 -0
- package/dist/nodes/Airtable/v2/helpers/utils.js +76 -0
- package/dist/nodes/Airtable/v2/helpers/utils.js.map +1 -0
- package/dist/nodes/Airtable/v2/methods/index.d.ts +3 -0
- package/dist/nodes/Airtable/v2/methods/index.js +30 -0
- package/dist/nodes/Airtable/v2/methods/index.js.map +1 -0
- package/dist/nodes/Airtable/v2/methods/listSearch.d.ts +4 -0
- package/dist/nodes/Airtable/v2/methods/listSearch.js +124 -0
- package/dist/nodes/Airtable/v2/methods/listSearch.js.map +1 -0
- package/dist/nodes/Airtable/v2/methods/loadOptions.d.ts +5 -0
- package/dist/nodes/Airtable/v2/methods/loadOptions.js +78 -0
- package/dist/nodes/Airtable/v2/methods/loadOptions.js.map +1 -0
- package/dist/nodes/Airtable/v2/methods/resourceMapping.d.ts +3 -0
- package/dist/nodes/Airtable/v2/methods/resourceMapping.js +105 -0
- package/dist/nodes/Airtable/v2/methods/resourceMapping.js.map +1 -0
- package/dist/nodes/Airtable/v2/transport/index.d.ts +8 -0
- package/dist/nodes/Airtable/v2/transport/index.js +102 -0
- package/dist/nodes/Airtable/v2/transport/index.js.map +1 -0
- package/dist/nodes/Aws/DynamoDB/types.d.ts +67 -0
- package/dist/nodes/Aws/DynamoDB/types.js +17 -0
- package/dist/nodes/Aws/DynamoDB/types.js.map +1 -0
- package/dist/nodes/Aws/S3/V2/AwsS3V2.node.js +50 -32
- package/dist/nodes/Aws/S3/V2/AwsS3V2.node.js.map +1 -1
- package/dist/nodes/Baserow/types.d.ts +35 -0
- package/dist/nodes/Baserow/types.js +3 -0
- package/dist/nodes/Baserow/types.js.map +1 -0
- package/dist/nodes/Chargebee/Chargebee.node.js +0 -2
- package/dist/nodes/Chargebee/Chargebee.node.js.map +1 -1
- package/dist/nodes/Copper/utils/types.d.ts +26 -0
- package/dist/nodes/Copper/utils/types.js +3 -0
- package/dist/nodes/Copper/utils/types.js.map +1 -0
- package/dist/nodes/CrateDb/CrateDb.node.js +1 -1
- package/dist/nodes/CrateDb/CrateDb.node.js.map +1 -1
- package/dist/nodes/CrowdDev/CrowdDev.node.d.ts +4 -0
- package/dist/nodes/CrowdDev/CrowdDev.node.js +36 -0
- package/dist/nodes/CrowdDev/CrowdDev.node.js.map +1 -0
- package/dist/nodes/CrowdDev/CrowdDev.node.json +18 -0
- package/dist/nodes/CrowdDev/CrowdDevTrigger.node.d.ts +12 -0
- package/dist/nodes/CrowdDev/CrowdDevTrigger.node.js +145 -0
- package/dist/nodes/CrowdDev/CrowdDevTrigger.node.js.map +1 -0
- package/dist/nodes/CrowdDev/CrowdDevTrigger.node.json +18 -0
- package/dist/nodes/CrowdDev/GenericFunctions.d.ts +7 -0
- package/dist/nodes/CrowdDev/GenericFunctions.js +157 -0
- package/dist/nodes/CrowdDev/GenericFunctions.js.map +1 -0
- package/dist/nodes/CrowdDev/crowdDev.svg +15 -0
- package/dist/nodes/CrowdDev/descriptions/activityFields.d.ts +4 -0
- package/dist/nodes/CrowdDev/descriptions/activityFields.js +180 -0
- package/dist/nodes/CrowdDev/descriptions/activityFields.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/automationFields.d.ts +4 -0
- package/dist/nodes/CrowdDev/descriptions/automationFields.js +126 -0
- package/dist/nodes/CrowdDev/descriptions/automationFields.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/index.d.ts +2 -0
- package/dist/nodes/CrowdDev/descriptions/index.js +26 -0
- package/dist/nodes/CrowdDev/descriptions/index.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/memberFields.d.ts +4 -0
- package/dist/nodes/CrowdDev/descriptions/memberFields.js +291 -0
- package/dist/nodes/CrowdDev/descriptions/memberFields.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/noteFields.d.ts +4 -0
- package/dist/nodes/CrowdDev/descriptions/noteFields.js +90 -0
- package/dist/nodes/CrowdDev/descriptions/noteFields.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/organizationFields.d.ts +4 -0
- package/dist/nodes/CrowdDev/descriptions/organizationFields.js +146 -0
- package/dist/nodes/CrowdDev/descriptions/organizationFields.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/resources.d.ts +2 -0
- package/dist/nodes/CrowdDev/descriptions/resources.js +38 -0
- package/dist/nodes/CrowdDev/descriptions/resources.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/shared.d.ts +2 -0
- package/dist/nodes/CrowdDev/descriptions/shared.js +29 -0
- package/dist/nodes/CrowdDev/descriptions/shared.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/taskFields.d.ts +4 -0
- package/dist/nodes/CrowdDev/descriptions/taskFields.js +159 -0
- package/dist/nodes/CrowdDev/descriptions/taskFields.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/utils.d.ts +5 -0
- package/dist/nodes/CrowdDev/descriptions/utils.js +55 -0
- package/dist/nodes/CrowdDev/descriptions/utils.js.map +1 -0
- package/dist/nodes/Disqus/Disqus.node.js +0 -2
- package/dist/nodes/Disqus/Disqus.node.js.map +1 -1
- package/dist/nodes/Elastic/ElasticSecurity/types.d.ts +48 -0
- package/dist/nodes/Elastic/ElasticSecurity/types.js +3 -0
- package/dist/nodes/Elastic/ElasticSecurity/types.js.map +1 -0
- package/dist/nodes/Elastic/Elasticsearch/types.d.ts +39 -0
- package/dist/nodes/Elastic/Elasticsearch/types.js +3 -0
- package/dist/nodes/Elastic/Elasticsearch/types.js.map +1 -0
- package/dist/nodes/Freshservice/types.d.ts +27 -0
- package/dist/nodes/Freshservice/types.js +3 -0
- package/dist/nodes/Freshservice/types.js.map +1 -0
- package/dist/nodes/FreshworksCrm/types.d.ts +36 -0
- package/dist/nodes/FreshworksCrm/types.js +3 -0
- package/dist/nodes/FreshworksCrm/types.js.map +1 -0
- package/dist/nodes/Ftp/Ftp.node.js +3 -0
- package/dist/nodes/Ftp/Ftp.node.js.map +1 -1
- package/dist/nodes/Git/Git.node.js +0 -2
- package/dist/nodes/Git/Git.node.js.map +1 -1
- package/dist/nodes/Gitlab/Gitlab.node.js +0 -16
- package/dist/nodes/Gitlab/Gitlab.node.js.map +1 -1
- package/dist/nodes/Gitlab/GitlabTrigger.node.js +1 -1
- package/dist/nodes/Gitlab/GitlabTrigger.node.js.map +1 -1
- package/dist/nodes/Google/BigQuery/v1/GoogleBigQueryV1.node.d.ts +1 -2
- package/dist/nodes/Google/BigQuery/v1/GoogleBigQueryV1.node.js.map +1 -1
- package/dist/nodes/Google/BigQuery/v2/GoogleBigQueryV2.node.d.ts +1 -2
- package/dist/nodes/Google/BigQuery/v2/GoogleBigQueryV2.node.js.map +1 -1
- package/dist/nodes/Google/BigQuery/v2/actions/database/executeQuery.operation.d.ts +1 -2
- package/dist/nodes/Google/BigQuery/v2/actions/database/executeQuery.operation.js +11 -7
- package/dist/nodes/Google/BigQuery/v2/actions/database/executeQuery.operation.js.map +1 -1
- package/dist/nodes/Google/BigQuery/v2/actions/database/insert.operation.d.ts +1 -2
- package/dist/nodes/Google/BigQuery/v2/actions/database/insert.operation.js.map +1 -1
- package/dist/nodes/Google/BigQuery/v2/actions/router.d.ts +1 -2
- package/dist/nodes/Google/BigQuery/v2/actions/router.js.map +1 -1
- package/dist/nodes/Google/BigQuery/v2/helpers/utils.d.ts +2 -3
- package/dist/nodes/Google/BigQuery/v2/helpers/utils.js +1 -2
- package/dist/nodes/Google/BigQuery/v2/helpers/utils.js.map +1 -1
- package/dist/nodes/Google/BigQuery/v2/transport/index.d.ts +1 -2
- package/dist/nodes/Google/BigQuery/v2/transport/index.js.map +1 -1
- package/dist/nodes/Google/CloudStorage/ObjectDescription.d.ts +1 -1
- package/dist/nodes/Google/CloudStorage/ObjectDescription.js +17 -4
- package/dist/nodes/Google/CloudStorage/ObjectDescription.js.map +1 -1
- package/dist/nodes/Google/Docs/interfaces.d.ts +13 -0
- package/dist/nodes/Google/Docs/interfaces.js +3 -0
- package/dist/nodes/Google/Docs/interfaces.js.map +1 -0
- package/dist/nodes/Google/Drive/GoogleDrive.node.d.ts +3 -12
- package/dist/nodes/Google/Drive/GoogleDrive.node.js +10 -2301
- package/dist/nodes/Google/Drive/GoogleDrive.node.js.map +1 -1
- package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.d.ts +1 -1
- package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.js +2 -2
- package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.js.map +1 -1
- package/dist/nodes/Google/Drive/test/v2/node/helpers.d.ts +3 -0
- package/dist/nodes/Google/Drive/test/v2/node/helpers.js +34 -0
- package/dist/nodes/Google/Drive/test/v2/node/helpers.js.map +1 -0
- package/dist/nodes/Google/Drive/{GenericFunctions.js → v1/GenericFunctions.js} +1 -1
- package/dist/nodes/Google/Drive/v1/GenericFunctions.js.map +1 -0
- package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.d.ts +14 -0
- package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.js +2325 -0
- package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.js.map +1 -0
- package/dist/nodes/Google/Drive/v1/SearchFunctions.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/GoogleDriveV2.node.d.ts +10 -0
- package/dist/nodes/Google/Drive/v2/GoogleDriveV2.node.js +20 -0
- package/dist/nodes/Google/Drive/v2/GoogleDriveV2.node.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/common.descriptions.d.ts +19 -0
- package/dist/nodes/Google/Drive/v2/actions/common.descriptions.js +599 -0
- package/dist/nodes/Google/Drive/v2/actions/common.descriptions.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/Drive.resource.d.ts +8 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/Drive.resource.js +88 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/Drive.resource.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/create.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/create.operation.js +235 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/create.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/deleteDrive.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/deleteDrive.operation.js +31 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/deleteDrive.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/get.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/get.operation.js +50 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/get.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/list.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/list.operation.js +81 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/list.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/update.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/update.operation.js +100 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/update.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/File.resource.d.ts +11 -0
- package/dist/nodes/Google/Drive/v2/actions/file/File.resource.js +115 -0
- package/dist/nodes/Google/Drive/v2/actions/file/File.resource.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/copy.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/copy.operation.js +104 -0
- package/dist/nodes/Google/Drive/v2/actions/file/copy.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/createFromText.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/createFromText.operation.js +134 -0
- package/dist/nodes/Google/Drive/v2/actions/file/createFromText.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/deleteFile.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/deleteFile.operation.js +57 -0
- package/dist/nodes/Google/Drive/v2/actions/file/deleteFile.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/download.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/download.operation.js +218 -0
- package/dist/nodes/Google/Drive/v2/actions/file/download.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/move.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/move.operation.js +60 -0
- package/dist/nodes/Google/Drive/v2/actions/file/move.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/share.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/share.operation.js +43 -0
- package/dist/nodes/Google/Drive/v2/actions/file/share.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/update.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/update.operation.js +221 -0
- package/dist/nodes/Google/Drive/v2/actions/file/update.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/upload.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/upload.operation.js +135 -0
- package/dist/nodes/Google/Drive/v2/actions/file/upload.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/FileFolder.resource.d.ts +4 -0
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/FileFolder.resource.js +52 -0
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/FileFolder.resource.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/search.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/search.operation.js +335 -0
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/search.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/Folder.resource.d.ts +6 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/Folder.resource.js +70 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/Folder.resource.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/create.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/create.operation.js +92 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/create.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/deleteFolder.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/deleteFolder.operation.js +59 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/deleteFolder.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/share.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/share.operation.js +43 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/share.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/node.type.d.ts +9 -0
- package/dist/nodes/Google/Drive/v2/actions/node.type.js +3 -0
- package/dist/nodes/Google/Drive/v2/actions/node.type.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/router.d.ts +2 -0
- package/dist/nodes/Google/Drive/v2/actions/router.js +76 -0
- package/dist/nodes/Google/Drive/v2/actions/router.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/versionDescription.d.ts +2 -0
- package/dist/nodes/Google/Drive/v2/actions/versionDescription.js +112 -0
- package/dist/nodes/Google/Drive/v2/actions/versionDescription.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/helpers/interfaces.d.ts +34 -0
- package/dist/nodes/Google/Drive/v2/helpers/interfaces.js +26 -0
- package/dist/nodes/Google/Drive/v2/helpers/interfaces.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/helpers/utils.d.ts +15 -0
- package/dist/nodes/Google/Drive/v2/helpers/utils.js +104 -0
- package/dist/nodes/Google/Drive/v2/helpers/utils.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/methods/index.d.ts +1 -0
- package/dist/nodes/Google/Drive/v2/methods/index.js +28 -0
- package/dist/nodes/Google/Drive/v2/methods/index.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/methods/listSearch.d.ts +6 -0
- package/dist/nodes/Google/Drive/v2/methods/listSearch.js +144 -0
- package/dist/nodes/Google/Drive/v2/methods/listSearch.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/transport/index.d.ts +4 -0
- package/dist/nodes/Google/Drive/v2/transport/index.js +68 -0
- package/dist/nodes/Google/Drive/v2/transport/index.js.map +1 -0
- package/dist/nodes/Google/GenericFunctions.d.ts +1 -2
- package/dist/nodes/Google/GenericFunctions.js.map +1 -1
- package/dist/nodes/Google/Gmail/GmailTrigger.node.js +7 -2
- package/dist/nodes/Google/Gmail/GmailTrigger.node.js.map +1 -1
- package/dist/nodes/Google/Perspective/types.d.ts +22 -0
- package/dist/nodes/Google/Perspective/types.js +3 -0
- package/dist/nodes/Google/Perspective/types.js.map +1 -0
- package/dist/nodes/Google/Sheet/v1/GoogleSheet.js +2 -2
- package/dist/nodes/Google/Sheet/v1/GoogleSheet.js.map +1 -1
- package/dist/nodes/Google/Sheet/v1/GoogleSheetsV1.node.js +4 -4
- package/dist/nodes/Google/Sheet/v1/GoogleSheetsV1.node.js.map +1 -1
- package/dist/nodes/Google/Sheet/v1/versionDescription.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/methods/resourceMapping.d.ts +1 -2
- package/dist/nodes/Google/Sheet/v2/methods/resourceMapping.js.map +1 -1
- package/dist/nodes/Grafana/types.d.ts +30 -0
- package/dist/nodes/Grafana/types.js +3 -0
- package/dist/nodes/Grafana/types.js.map +1 -0
- package/dist/nodes/GraphQL/GraphQL.node.js +32 -0
- package/dist/nodes/GraphQL/GraphQL.node.js.map +1 -1
- package/dist/nodes/Grist/types.d.ts +50 -0
- package/dist/nodes/Grist/types.js +3 -0
- package/dist/nodes/Grist/types.js.map +1 -0
- package/dist/nodes/HelpScout/HelpScout.node.js +0 -2
- package/dist/nodes/HelpScout/HelpScout.node.js.map +1 -1
- package/dist/nodes/Html/Html.node.d.ts +1 -0
- package/dist/nodes/Html/Html.node.js +143 -2
- package/dist/nodes/Html/Html.node.js.map +1 -1
- package/dist/nodes/Html/Html.node.json +1 -1
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js +22 -0
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js.map +1 -1
- package/dist/nodes/Hubspot/V1/GenericFunctions.d.ts +1 -2
- package/dist/nodes/Hubspot/V1/GenericFunctions.js.map +1 -1
- package/dist/nodes/Hubspot/V1/HubspotV1.node.d.ts +1 -2
- package/dist/nodes/Hubspot/V1/HubspotV1.node.js.map +1 -1
- package/dist/nodes/Hubspot/V2/HubspotV2.node.d.ts +1 -2
- package/dist/nodes/Hubspot/V2/HubspotV2.node.js.map +1 -1
- package/dist/nodes/ItemLists/ItemLists.node.js +3 -1
- package/dist/nodes/ItemLists/ItemLists.node.js.map +1 -1
- package/dist/nodes/ItemLists/V3/ItemListsV3.node.d.ts +6 -0
- package/dist/nodes/ItemLists/V3/ItemListsV3.node.js +18 -0
- package/dist/nodes/ItemLists/V3/ItemListsV3.node.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/common.descriptions.d.ts +2 -0
- package/dist/nodes/ItemLists/V3/actions/common.descriptions.js +11 -0
- package/dist/nodes/ItemLists/V3/actions/common.descriptions.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.d.ts +22 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.js +303 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/index.d.ts +9 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/index.js +97 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/index.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.d.ts +22 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.js +57 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.d.ts +22 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.js +204 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.d.ts +22 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.js +262 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.d.ts +22 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.js +183 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.d.ts +23 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.js +491 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/node.type.d.ts +6 -0
- package/dist/nodes/ItemLists/V3/actions/node.type.js +3 -0
- package/dist/nodes/ItemLists/V3/actions/node.type.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/router.d.ts +2 -0
- package/dist/nodes/ItemLists/V3/actions/router.js +53 -0
- package/dist/nodes/ItemLists/V3/actions/router.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/versionDescription.d.ts +2 -0
- package/dist/nodes/ItemLists/V3/actions/versionDescription.js +58 -0
- package/dist/nodes/ItemLists/V3/actions/versionDescription.js.map +1 -0
- package/dist/nodes/ItemLists/V3/helpers/utils.d.ts +5 -0
- package/dist/nodes/ItemLists/V3/helpers/utils.js +57 -0
- package/dist/nodes/ItemLists/V3/helpers/utils.js.map +1 -0
- package/dist/nodes/ItemLists/test/node/workflow.update_3.json +606 -0
- package/dist/nodes/Ldap/Ldap.node.d.ts +1 -2
- package/dist/nodes/LoneScale/GenericFunctions.d.ts +1 -2
- package/dist/nodes/LoneScale/GenericFunctions.js.map +1 -1
- package/dist/nodes/LoneScale/LoneScaleTrigger.node.d.ts +1 -2
- package/dist/nodes/LoneScale/LoneScaleTrigger.node.js.map +1 -1
- package/dist/nodes/Magento/GenericFunctions.d.ts +1 -1
- package/dist/nodes/Magento/GenericFunctions.js.map +1 -1
- package/dist/nodes/Magento/types.d.ts +173 -0
- package/dist/nodes/Magento/types.js +3 -0
- package/dist/nodes/Magento/types.js.map +1 -0
- package/dist/nodes/Marketstack/types.d.ts +10 -0
- package/dist/nodes/Marketstack/types.js +3 -0
- package/dist/nodes/Marketstack/types.js.map +1 -0
- package/dist/nodes/Matrix/GenericFunctions.js +8 -2
- package/dist/nodes/Matrix/GenericFunctions.js.map +1 -1
- package/dist/nodes/Matrix/MediaDescription.js +23 -1
- package/dist/nodes/Matrix/MediaDescription.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v1/MicrosoftExcelV1.node.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v1/MicrosoftExcelV1.node.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/MicrosoftExcelV2.node.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/MicrosoftExcelV2.node.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/router.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/router.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/addTable.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/table/addTable.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/append.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/table/append.operation.js +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/append.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/convertToRange.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/table/convertToRange.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/deleteTable.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/table/deleteTable.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/getColumns.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/table/getColumns.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/getRows.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/table/getRows.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/lookup.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/table/lookup.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/workbook/addWorksheet.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/workbook/addWorksheet.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/workbook/deleteWorkbook.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/workbook/deleteWorkbook.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/workbook/getAll.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/workbook/getAll.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/append.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/append.operation.js +5 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/append.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/clear.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/clear.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/deleteWorksheet.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/deleteWorksheet.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/getAll.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/getAll.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/readRows.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/readRows.operation.js +2 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/readRows.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/update.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/update.operation.js +2 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/update.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/upsert.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/upsert.operation.js +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/upsert.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/helpers/utils.d.ts +2 -3
- package/dist/nodes/Microsoft/Excel/v2/helpers/utils.js +2 -3
- package/dist/nodes/Microsoft/Excel/v2/helpers/utils.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/transport/index.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/transport/index.js.map +1 -1
- package/dist/nodes/Microsoft/ToDo/MicrosoftToDo.node.js +7 -0
- package/dist/nodes/Microsoft/ToDo/MicrosoftToDo.node.js.map +1 -1
- package/dist/nodes/Microsoft/ToDo/TaskDescription.js +7 -0
- package/dist/nodes/Microsoft/ToDo/TaskDescription.js.map +1 -1
- package/dist/nodes/Misp/types.d.ts +31 -0
- package/dist/nodes/Misp/types.js +3 -0
- package/dist/nodes/Misp/types.js.map +1 -0
- package/dist/nodes/MonicaCrm/types.d.ts +11 -0
- package/dist/nodes/MonicaCrm/types.js +3 -0
- package/dist/nodes/MonicaCrm/types.js.map +1 -0
- package/dist/nodes/MySql/v1/MySqlV1.node.d.ts +1 -2
- package/dist/nodes/MySql/v1/MySqlV1.node.js.map +1 -1
- package/dist/nodes/MySql/v2/MySqlV2.node.d.ts +1 -2
- package/dist/nodes/MySql/v2/MySqlV2.node.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/deleteTable.operation.d.ts +1 -2
- package/dist/nodes/MySql/v2/actions/database/deleteTable.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/executeQuery.operation.d.ts +1 -2
- package/dist/nodes/MySql/v2/actions/database/executeQuery.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/insert.operation.d.ts +1 -2
- package/dist/nodes/MySql/v2/actions/database/insert.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/select.operation.d.ts +1 -2
- package/dist/nodes/MySql/v2/actions/database/select.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/update.operation.d.ts +1 -2
- package/dist/nodes/MySql/v2/actions/database/update.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/upsert.operation.d.ts +1 -2
- package/dist/nodes/MySql/v2/actions/database/upsert.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/router.d.ts +1 -2
- package/dist/nodes/MySql/v2/actions/router.js.map +1 -1
- package/dist/nodes/Notion/DatabasePageDescription.js +41 -0
- package/dist/nodes/Notion/DatabasePageDescription.js.map +1 -1
- package/dist/nodes/Notion/v2/NotionV2.node.js +9 -0
- package/dist/nodes/Notion/v2/NotionV2.node.js.map +1 -1
- package/dist/nodes/OpenAi/ChatDescription.js +2 -2
- package/dist/nodes/OpenAi/ChatDescription.js.map +1 -1
- package/dist/nodes/OpenAi/TextDescription.js +2 -2
- package/dist/nodes/OpenAi/TextDescription.js.map +1 -1
- package/dist/nodes/Postgres/v1/PostgresV1.node.d.ts +1 -2
- package/dist/nodes/Postgres/v2/PostgresV2.node.d.ts +1 -2
- package/dist/nodes/Postgres/v2/actions/database/deleteTable.operation.d.ts +1 -2
- package/dist/nodes/Postgres/v2/actions/database/deleteTable.operation.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/database/executeQuery.operation.d.ts +1 -2
- package/dist/nodes/Postgres/v2/actions/database/executeQuery.operation.js +28 -6
- package/dist/nodes/Postgres/v2/actions/database/executeQuery.operation.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/database/insert.operation.d.ts +1 -2
- package/dist/nodes/Postgres/v2/actions/database/insert.operation.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/database/select.operation.d.ts +1 -2
- package/dist/nodes/Postgres/v2/actions/database/select.operation.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/database/update.operation.d.ts +1 -2
- package/dist/nodes/Postgres/v2/actions/database/update.operation.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/database/upsert.operation.d.ts +1 -2
- package/dist/nodes/Postgres/v2/actions/database/upsert.operation.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/router.js +2 -1
- package/dist/nodes/Postgres/v2/actions/router.js.map +1 -1
- package/dist/nodes/Postgres/v2/helpers/interfaces.d.ts +1 -4
- package/dist/nodes/Postgres/v2/helpers/utils.d.ts +3 -3
- package/dist/nodes/Postgres/v2/helpers/utils.js +68 -65
- package/dist/nodes/Postgres/v2/helpers/utils.js.map +1 -1
- package/dist/nodes/QuickBooks/types.d.ts +47 -0
- package/dist/nodes/QuickBooks/types.js +3 -0
- package/dist/nodes/QuickBooks/types.js.map +1 -0
- package/dist/nodes/ReadPdf/ReadPDF.node.d.ts +1 -1
- package/dist/nodes/ReadPdf/ReadPDF.node.js +69 -11
- package/dist/nodes/ReadPdf/ReadPDF.node.js.map +1 -1
- package/dist/nodes/ReadPdf/test/ReadPDF-encrypted.workflow.json +87 -0
- package/dist/nodes/ReadPdf/test/ReadPDF.workflow.json +47 -27
- package/dist/nodes/RssFeedRead/RssFeedRead.node.js +1 -1
- package/dist/nodes/RssFeedRead/RssFeedRead.node.js.map +1 -1
- package/dist/nodes/Rundeck/Rundeck.node.js +17 -1
- package/dist/nodes/Rundeck/Rundeck.node.js.map +1 -1
- package/dist/nodes/Rundeck/RundeckApi.d.ts +1 -1
- package/dist/nodes/Rundeck/RundeckApi.js +6 -2
- package/dist/nodes/Rundeck/RundeckApi.js.map +1 -1
- package/dist/nodes/SeaTable/Schema.d.ts +4 -4
- package/dist/nodes/SeaTable/types.d.ts +33 -0
- package/dist/nodes/SeaTable/types.js +3 -0
- package/dist/nodes/SeaTable/types.js.map +1 -0
- package/dist/nodes/Sendy/Sendy.node.js.map +1 -1
- package/dist/nodes/Slack/Slack.node.js +2 -1
- package/dist/nodes/Slack/Slack.node.js.map +1 -1
- package/dist/nodes/Slack/V2/GenericFunctions.d.ts +1 -0
- package/dist/nodes/Slack/V2/GenericFunctions.js +44 -1
- package/dist/nodes/Slack/V2/GenericFunctions.js.map +1 -1
- package/dist/nodes/Slack/V2/MessageDescription.js +7 -0
- package/dist/nodes/Slack/V2/MessageDescription.js.map +1 -1
- package/dist/nodes/Slack/V2/SlackV2.node.js +2 -20
- package/dist/nodes/Slack/V2/SlackV2.node.js.map +1 -1
- package/dist/nodes/Splunk/types.d.ts +40 -0
- package/dist/nodes/Splunk/types.js +3 -0
- package/dist/nodes/Splunk/types.js.map +1 -0
- package/dist/nodes/Strava/ActivityDescription.js +7 -0
- package/dist/nodes/Strava/ActivityDescription.js.map +1 -1
- package/dist/nodes/Strava/Strava.node.js +0 -6
- package/dist/nodes/Strava/Strava.node.js.map +1 -1
- package/dist/nodes/Taiga/types.d.ts +31 -0
- package/dist/nodes/Taiga/types.js +2 -0
- package/dist/nodes/Taiga/types.js.map +1 -0
- package/dist/nodes/Telegram/TelegramTrigger.node.js +1 -1
- package/dist/nodes/Telegram/TelegramTrigger.node.js.map +1 -1
- package/dist/nodes/Twitter/Twitter.node.d.ts +3 -9
- package/dist/nodes/Twitter/Twitter.node.js +12 -224
- package/dist/nodes/Twitter/Twitter.node.js.map +1 -1
- package/dist/nodes/Twitter/Twitter.node.json +2 -1
- package/dist/nodes/Twitter/V1/DirectMessageDescription.js.map +1 -0
- package/dist/nodes/Twitter/V1/GenericFunctions.js.map +1 -0
- package/dist/nodes/Twitter/V1/TweetDescription.js.map +1 -0
- package/dist/nodes/Twitter/V1/TweetInterface.js.map +1 -0
- package/dist/nodes/Twitter/V1/TwitterV1.node.d.ts +11 -0
- package/dist/nodes/Twitter/V1/TwitterV1.node.js +235 -0
- package/dist/nodes/Twitter/V1/TwitterV1.node.js.map +1 -0
- package/dist/nodes/Twitter/V2/DirectMessageDescription.d.ts +3 -0
- package/dist/nodes/Twitter/V2/DirectMessageDescription.js +100 -0
- package/dist/nodes/Twitter/V2/DirectMessageDescription.js.map +1 -0
- package/dist/nodes/Twitter/V2/GenericFunctions.d.ts +5 -0
- package/dist/nodes/Twitter/V2/GenericFunctions.js +88 -0
- package/dist/nodes/Twitter/V2/GenericFunctions.js.map +1 -0
- package/dist/nodes/Twitter/V2/ListDescription.d.ts +3 -0
- package/dist/nodes/Twitter/V2/ListDescription.js +92 -0
- package/dist/nodes/Twitter/V2/ListDescription.js.map +1 -0
- package/dist/nodes/Twitter/V2/TweetDescription.d.ts +3 -0
- package/dist/nodes/Twitter/V2/TweetDescription.js +452 -0
- package/dist/nodes/Twitter/V2/TweetDescription.js.map +1 -0
- package/dist/nodes/Twitter/V2/TweetInterface.d.ts +23 -0
- package/dist/nodes/Twitter/V2/TweetInterface.js +3 -0
- package/dist/nodes/Twitter/V2/TweetInterface.js.map +1 -0
- package/dist/nodes/Twitter/V2/TwitterV2.node.d.ts +11 -0
- package/dist/nodes/Twitter/V2/TwitterV2.node.js +245 -0
- package/dist/nodes/Twitter/V2/TwitterV2.node.js.map +1 -0
- package/dist/nodes/Twitter/V2/UserDescription.d.ts +3 -0
- package/dist/nodes/Twitter/V2/UserDescription.js +76 -0
- package/dist/nodes/Twitter/V2/UserDescription.js.map +1 -0
- package/dist/nodes/Twitter/test/Workflow_Twitter_UnitTest.json +284 -0
- package/dist/nodes/UProc/UProc.node.js +0 -1
- package/dist/nodes/UProc/UProc.node.js.map +1 -1
- package/dist/nodes/Wait/Wait.node.d.ts +7 -4
- package/dist/nodes/Wait/Wait.node.js +77 -499
- package/dist/nodes/Wait/Wait.node.js.map +1 -1
- package/dist/nodes/Webhook/Webhook.node.d.ts +8 -3
- package/dist/nodes/Webhook/Webhook.node.js +148 -460
- package/dist/nodes/Webhook/Webhook.node.js.map +1 -1
- package/dist/nodes/Webhook/description.d.ts +10 -0
- package/dist/nodes/Webhook/description.js +325 -0
- package/dist/nodes/Webhook/description.js.map +1 -0
- package/dist/nodes/Webhook/error.d.ts +4 -0
- package/dist/nodes/Webhook/error.js +20 -0
- package/dist/nodes/Webhook/error.js.map +1 -0
- package/dist/nodes/Zammad/types.d.ts +81 -0
- package/dist/nodes/Zammad/types.js +3 -0
- package/dist/nodes/Zammad/types.js.map +1 -0
- package/dist/nodes/Zoho/types.d.ts +93 -0
- package/dist/nodes/Zoho/types.js +3 -0
- package/dist/nodes/Zoho/types.js.map +1 -0
- package/dist/types/credentials.json +8 -5
- package/dist/types/nodes.json +31 -23
- package/package.json +9 -5
- package/dist/nodes/Airtable/GenericFunctions.js.map +0 -1
- package/dist/nodes/Google/Drive/GenericFunctions.js.map +0 -1
- package/dist/nodes/Google/Drive/SearchFunctions.js.map +0 -1
- package/dist/nodes/Twitter/DirectMessageDescription.js.map +0 -1
- package/dist/nodes/Twitter/GenericFunctions.js.map +0 -1
- package/dist/nodes/Twitter/TweetDescription.js.map +0 -1
- package/dist/nodes/Twitter/TweetInterface.js.map +0 -1
- /package/dist/nodes/Airtable/{GenericFunctions.d.ts → v1/GenericFunctions.d.ts} +0 -0
- /package/dist/nodes/Airtable/{GenericFunctions.js → v1/GenericFunctions.js} +0 -0
- /package/dist/nodes/Google/Drive/{GenericFunctions.d.ts → v1/GenericFunctions.d.ts} +0 -0
- /package/dist/nodes/Google/Drive/{SearchFunctions.d.ts → v1/SearchFunctions.d.ts} +0 -0
- /package/dist/nodes/Google/Drive/{SearchFunctions.js → v1/SearchFunctions.js} +0 -0
- /package/dist/nodes/Twitter/{DirectMessageDescription.d.ts → V1/DirectMessageDescription.d.ts} +0 -0
- /package/dist/nodes/Twitter/{DirectMessageDescription.js → V1/DirectMessageDescription.js} +0 -0
- /package/dist/nodes/Twitter/{GenericFunctions.d.ts → V1/GenericFunctions.d.ts} +0 -0
- /package/dist/nodes/Twitter/{GenericFunctions.js → V1/GenericFunctions.js} +0 -0
- /package/dist/nodes/Twitter/{TweetDescription.d.ts → V1/TweetDescription.d.ts} +0 -0
- /package/dist/nodes/Twitter/{TweetDescription.js → V1/TweetDescription.js} +0 -0
- /package/dist/nodes/Twitter/{TweetInterface.d.ts → V1/TweetInterface.d.ts} +0 -0
- /package/dist/nodes/Twitter/{TweetInterface.js → V1/TweetInterface.js} +0 -0
|
@@ -0,0 +1,2325 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GoogleDriveV1 = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const GenericFunctions_1 = require("./GenericFunctions");
|
|
6
|
+
const uuid_1 = require("uuid");
|
|
7
|
+
const SearchFunctions_1 = require("./SearchFunctions");
|
|
8
|
+
const descriptions_1 = require("../../../../utils/descriptions");
|
|
9
|
+
const constants_1 = require("../../constants");
|
|
10
|
+
const UPLOAD_CHUNK_SIZE = 256 * 1024;
|
|
11
|
+
const versionDescription = {
|
|
12
|
+
displayName: 'Google Drive',
|
|
13
|
+
name: 'googleDrive',
|
|
14
|
+
icon: 'file:googleDrive.svg',
|
|
15
|
+
group: ['input'],
|
|
16
|
+
version: [1, 2],
|
|
17
|
+
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
18
|
+
description: 'Access data on Google Drive',
|
|
19
|
+
defaults: {
|
|
20
|
+
name: 'Google Drive',
|
|
21
|
+
},
|
|
22
|
+
inputs: ['main'],
|
|
23
|
+
outputs: ['main'],
|
|
24
|
+
credentials: [
|
|
25
|
+
{
|
|
26
|
+
name: 'googleApi',
|
|
27
|
+
required: true,
|
|
28
|
+
displayOptions: {
|
|
29
|
+
show: {
|
|
30
|
+
authentication: ['serviceAccount'],
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'googleDriveOAuth2Api',
|
|
36
|
+
required: true,
|
|
37
|
+
displayOptions: {
|
|
38
|
+
show: {
|
|
39
|
+
authentication: ['oAuth2'],
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
properties: [
|
|
45
|
+
descriptions_1.oldVersionNotice,
|
|
46
|
+
{
|
|
47
|
+
displayName: 'Authentication',
|
|
48
|
+
name: 'authentication',
|
|
49
|
+
type: 'options',
|
|
50
|
+
options: [
|
|
51
|
+
{
|
|
52
|
+
name: 'Service Account',
|
|
53
|
+
value: 'serviceAccount',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'OAuth2',
|
|
57
|
+
value: 'oAuth2',
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
default: 'serviceAccount',
|
|
61
|
+
displayOptions: {
|
|
62
|
+
show: {
|
|
63
|
+
'@version': [1],
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
displayName: 'Authentication',
|
|
69
|
+
name: 'authentication',
|
|
70
|
+
type: 'options',
|
|
71
|
+
options: [
|
|
72
|
+
{
|
|
73
|
+
name: 'OAuth2 (recommended)',
|
|
74
|
+
value: 'oAuth2',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'Service Account',
|
|
78
|
+
value: 'serviceAccount',
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
default: 'oAuth2',
|
|
82
|
+
displayOptions: {
|
|
83
|
+
show: {
|
|
84
|
+
'@version': [2],
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
displayName: 'Resource',
|
|
90
|
+
name: 'resource',
|
|
91
|
+
type: 'options',
|
|
92
|
+
noDataExpression: true,
|
|
93
|
+
options: [
|
|
94
|
+
{
|
|
95
|
+
name: 'Drive',
|
|
96
|
+
value: 'drive',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: 'File',
|
|
100
|
+
value: 'file',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: 'Folder',
|
|
104
|
+
value: 'folder',
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
default: 'file',
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
displayName: 'Operation',
|
|
111
|
+
name: 'operation',
|
|
112
|
+
type: 'options',
|
|
113
|
+
noDataExpression: true,
|
|
114
|
+
displayOptions: {
|
|
115
|
+
show: {
|
|
116
|
+
resource: ['file'],
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
options: [
|
|
120
|
+
{
|
|
121
|
+
name: 'Copy',
|
|
122
|
+
value: 'copy',
|
|
123
|
+
description: 'Copy a file',
|
|
124
|
+
action: 'Copy a file',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
name: 'Delete',
|
|
128
|
+
value: 'delete',
|
|
129
|
+
description: 'Delete a file',
|
|
130
|
+
action: 'Delete a file',
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: 'Download',
|
|
134
|
+
value: 'download',
|
|
135
|
+
description: 'Download a file',
|
|
136
|
+
action: 'Download a file',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: 'List',
|
|
140
|
+
value: 'list',
|
|
141
|
+
description: 'List files and folders',
|
|
142
|
+
action: 'List a file',
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: 'Share',
|
|
146
|
+
value: 'share',
|
|
147
|
+
description: 'Share a file',
|
|
148
|
+
action: 'Share a file',
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
name: 'Update',
|
|
152
|
+
value: 'update',
|
|
153
|
+
description: 'Update a file',
|
|
154
|
+
action: 'Update a file',
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: 'Upload',
|
|
158
|
+
value: 'upload',
|
|
159
|
+
description: 'Upload a file',
|
|
160
|
+
action: 'Upload a file',
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
default: 'upload',
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
displayName: 'Operation',
|
|
167
|
+
name: 'operation',
|
|
168
|
+
type: 'options',
|
|
169
|
+
noDataExpression: true,
|
|
170
|
+
displayOptions: {
|
|
171
|
+
show: {
|
|
172
|
+
resource: ['folder'],
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
options: [
|
|
176
|
+
{
|
|
177
|
+
name: 'Create',
|
|
178
|
+
value: 'create',
|
|
179
|
+
description: 'Create a folder',
|
|
180
|
+
action: 'Create a folder',
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
name: 'Delete',
|
|
184
|
+
value: 'delete',
|
|
185
|
+
description: 'Delete a folder',
|
|
186
|
+
action: 'Delete a folder',
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
name: 'Share',
|
|
190
|
+
value: 'share',
|
|
191
|
+
description: 'Share a folder',
|
|
192
|
+
action: 'Share a folder',
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
default: 'create',
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
displayName: 'File',
|
|
199
|
+
name: 'fileId',
|
|
200
|
+
type: 'resourceLocator',
|
|
201
|
+
default: { mode: 'list', value: '' },
|
|
202
|
+
required: true,
|
|
203
|
+
modes: [
|
|
204
|
+
{
|
|
205
|
+
displayName: 'File',
|
|
206
|
+
name: 'list',
|
|
207
|
+
type: 'list',
|
|
208
|
+
placeholder: 'Select a file...',
|
|
209
|
+
typeOptions: {
|
|
210
|
+
searchListMethod: 'fileSearch',
|
|
211
|
+
searchable: true,
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
displayName: 'Link',
|
|
216
|
+
name: 'url',
|
|
217
|
+
type: 'string',
|
|
218
|
+
placeholder: 'https://drive.google.com/file/d/1anGBg0b5re2VtF2bKu201_a-Vnz5BHq9Y4r-yBDAj5A/edit',
|
|
219
|
+
extractValue: {
|
|
220
|
+
type: 'regex',
|
|
221
|
+
regex: constants_1.GOOGLE_DRIVE_FILE_URL_REGEX,
|
|
222
|
+
},
|
|
223
|
+
validation: [
|
|
224
|
+
{
|
|
225
|
+
type: 'regex',
|
|
226
|
+
properties: {
|
|
227
|
+
regex: constants_1.GOOGLE_DRIVE_FILE_URL_REGEX,
|
|
228
|
+
errorMessage: 'Not a valid Google Drive File URL',
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
],
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
displayName: 'ID',
|
|
235
|
+
name: 'id',
|
|
236
|
+
type: 'string',
|
|
237
|
+
placeholder: '1anGBg0b5re2VtF2bKu201_a-Vnz5BHq9Y4r-yBDAj5A',
|
|
238
|
+
validation: [
|
|
239
|
+
{
|
|
240
|
+
type: 'regex',
|
|
241
|
+
properties: {
|
|
242
|
+
regex: '[a-zA-Z0-9\\-_]{2,}',
|
|
243
|
+
errorMessage: 'Not a valid Google Drive File ID',
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
],
|
|
247
|
+
url: '=https://drive.google.com/file/d/{{$value}}/view',
|
|
248
|
+
},
|
|
249
|
+
],
|
|
250
|
+
displayOptions: {
|
|
251
|
+
show: {
|
|
252
|
+
operation: ['download', 'copy', 'update', 'delete', 'share'],
|
|
253
|
+
resource: ['file'],
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
description: 'The ID of the file',
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
displayName: 'Folder',
|
|
260
|
+
name: 'fileId',
|
|
261
|
+
type: 'resourceLocator',
|
|
262
|
+
default: { mode: 'list', value: '' },
|
|
263
|
+
required: true,
|
|
264
|
+
modes: [
|
|
265
|
+
{
|
|
266
|
+
displayName: 'Folder',
|
|
267
|
+
name: 'list',
|
|
268
|
+
type: 'list',
|
|
269
|
+
placeholder: 'Select a folder...',
|
|
270
|
+
typeOptions: {
|
|
271
|
+
searchListMethod: 'folderSearch',
|
|
272
|
+
searchable: true,
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
displayName: 'Link',
|
|
277
|
+
name: 'url',
|
|
278
|
+
type: 'string',
|
|
279
|
+
placeholder: 'https://drive.google.com/drive/folders/1Tx9WHbA3wBpPB4C_HcoZDH9WZFWYxAMU',
|
|
280
|
+
extractValue: {
|
|
281
|
+
type: 'regex',
|
|
282
|
+
regex: constants_1.GOOGLE_DRIVE_FOLDER_URL_REGEX,
|
|
283
|
+
},
|
|
284
|
+
validation: [
|
|
285
|
+
{
|
|
286
|
+
type: 'regex',
|
|
287
|
+
properties: {
|
|
288
|
+
regex: constants_1.GOOGLE_DRIVE_FOLDER_URL_REGEX,
|
|
289
|
+
errorMessage: 'Not a valid Google Drive Folder URL',
|
|
290
|
+
},
|
|
291
|
+
},
|
|
292
|
+
],
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
displayName: 'ID',
|
|
296
|
+
name: 'id',
|
|
297
|
+
type: 'string',
|
|
298
|
+
placeholder: '1anGBg0b5re2VtF2bKu201_a-Vnz5BHq9Y4r-yBDAj5A',
|
|
299
|
+
validation: [
|
|
300
|
+
{
|
|
301
|
+
type: 'regex',
|
|
302
|
+
properties: {
|
|
303
|
+
regex: '[a-zA-Z0-9\\-_]{2,}',
|
|
304
|
+
errorMessage: 'Not a valid Google Drive Folder ID',
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
],
|
|
308
|
+
url: '=https://drive.google.com/drive/folders/{{$value}}',
|
|
309
|
+
},
|
|
310
|
+
],
|
|
311
|
+
displayOptions: {
|
|
312
|
+
show: {
|
|
313
|
+
operation: ['delete', 'share'],
|
|
314
|
+
resource: ['folder'],
|
|
315
|
+
},
|
|
316
|
+
},
|
|
317
|
+
description: 'The ID of the folder',
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
displayName: 'Binary Property',
|
|
321
|
+
name: 'binaryPropertyName',
|
|
322
|
+
type: 'string',
|
|
323
|
+
required: true,
|
|
324
|
+
default: 'data',
|
|
325
|
+
displayOptions: {
|
|
326
|
+
show: {
|
|
327
|
+
operation: ['download'],
|
|
328
|
+
resource: ['file'],
|
|
329
|
+
},
|
|
330
|
+
},
|
|
331
|
+
description: 'Name of the binary property to which to write the data of the read file',
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
displayName: 'Options',
|
|
335
|
+
name: 'options',
|
|
336
|
+
type: 'collection',
|
|
337
|
+
placeholder: 'Add Option',
|
|
338
|
+
default: {},
|
|
339
|
+
displayOptions: {
|
|
340
|
+
show: {
|
|
341
|
+
operation: ['download'],
|
|
342
|
+
resource: ['file'],
|
|
343
|
+
},
|
|
344
|
+
},
|
|
345
|
+
options: [
|
|
346
|
+
{
|
|
347
|
+
displayName: 'Google File Conversion',
|
|
348
|
+
name: 'googleFileConversion',
|
|
349
|
+
type: 'fixedCollection',
|
|
350
|
+
typeOptions: {
|
|
351
|
+
multipleValues: false,
|
|
352
|
+
},
|
|
353
|
+
default: {},
|
|
354
|
+
placeholder: 'Add Conversion',
|
|
355
|
+
options: [
|
|
356
|
+
{
|
|
357
|
+
displayName: 'Conversion',
|
|
358
|
+
name: 'conversion',
|
|
359
|
+
values: [
|
|
360
|
+
{
|
|
361
|
+
displayName: 'Google Docs',
|
|
362
|
+
name: 'docsToFormat',
|
|
363
|
+
type: 'options',
|
|
364
|
+
options: [
|
|
365
|
+
{
|
|
366
|
+
name: 'To HTML',
|
|
367
|
+
value: 'text/html',
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
name: 'To MS Word',
|
|
371
|
+
value: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
name: 'To OpenOffice Doc',
|
|
375
|
+
value: 'application/vnd.oasis.opendocument.text',
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
name: 'To PDF',
|
|
379
|
+
value: 'application/pdf',
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
name: 'To Rich Text',
|
|
383
|
+
value: 'application/rtf',
|
|
384
|
+
},
|
|
385
|
+
],
|
|
386
|
+
default: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
387
|
+
description: 'Format used to export when downloading Google Docs files',
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
displayName: 'Google Drawings',
|
|
391
|
+
name: 'drawingsToFormat',
|
|
392
|
+
type: 'options',
|
|
393
|
+
options: [
|
|
394
|
+
{
|
|
395
|
+
name: 'To JPEG',
|
|
396
|
+
value: 'image/jpeg',
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
name: 'To PNG',
|
|
400
|
+
value: 'image/png',
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
name: 'To SVG',
|
|
404
|
+
value: 'image/svg+xml',
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
name: 'To PDF',
|
|
408
|
+
value: 'application/pdf',
|
|
409
|
+
},
|
|
410
|
+
],
|
|
411
|
+
default: 'image/jpeg',
|
|
412
|
+
description: 'Format used to export when downloading Google Drawings files',
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
displayName: 'Google Slides',
|
|
416
|
+
name: 'slidesToFormat',
|
|
417
|
+
type: 'options',
|
|
418
|
+
options: [
|
|
419
|
+
{
|
|
420
|
+
name: 'To MS PowerPoint',
|
|
421
|
+
value: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
name: 'To PDF',
|
|
425
|
+
value: 'application/pdf',
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
name: 'To OpenOffice Presentation',
|
|
429
|
+
value: 'application/vnd.oasis.opendocument.presentation',
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
name: 'To Plain Text',
|
|
433
|
+
value: 'text/plain',
|
|
434
|
+
},
|
|
435
|
+
],
|
|
436
|
+
default: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
|
437
|
+
description: 'Format used to export when downloading Google Slides files',
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
displayName: 'Google Sheets',
|
|
441
|
+
name: 'sheetsToFormat',
|
|
442
|
+
type: 'options',
|
|
443
|
+
options: [
|
|
444
|
+
{
|
|
445
|
+
name: 'To MS Excel',
|
|
446
|
+
value: 'application/x-vnd.oasis.opendocument.spreadsheet',
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
name: 'To PDF',
|
|
450
|
+
value: 'application/pdf',
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
name: 'To CSV',
|
|
454
|
+
value: 'text/csv',
|
|
455
|
+
},
|
|
456
|
+
],
|
|
457
|
+
default: 'application/x-vnd.oasis.opendocument.spreadsheet',
|
|
458
|
+
description: 'Format used to export when downloading Google Spreadsheets files',
|
|
459
|
+
},
|
|
460
|
+
],
|
|
461
|
+
},
|
|
462
|
+
],
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
displayName: 'File Name',
|
|
466
|
+
name: 'fileName',
|
|
467
|
+
type: 'string',
|
|
468
|
+
default: '',
|
|
469
|
+
description: 'File name. Ex: data.pdf.',
|
|
470
|
+
},
|
|
471
|
+
],
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
displayName: 'Use Query String',
|
|
475
|
+
name: 'useQueryString',
|
|
476
|
+
type: 'boolean',
|
|
477
|
+
default: false,
|
|
478
|
+
displayOptions: {
|
|
479
|
+
show: {
|
|
480
|
+
operation: ['list'],
|
|
481
|
+
resource: ['file'],
|
|
482
|
+
},
|
|
483
|
+
},
|
|
484
|
+
description: 'Whether a query string should be used to filter results',
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
displayName: 'Query String',
|
|
488
|
+
name: 'queryString',
|
|
489
|
+
type: 'string',
|
|
490
|
+
default: '',
|
|
491
|
+
displayOptions: {
|
|
492
|
+
show: {
|
|
493
|
+
operation: ['list'],
|
|
494
|
+
useQueryString: [true],
|
|
495
|
+
resource: ['file'],
|
|
496
|
+
},
|
|
497
|
+
},
|
|
498
|
+
placeholder: "name contains 'invoice'",
|
|
499
|
+
description: 'Query to use to return only specific files',
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
displayName: 'Limit',
|
|
503
|
+
name: 'limit',
|
|
504
|
+
type: 'number',
|
|
505
|
+
displayOptions: {
|
|
506
|
+
show: {
|
|
507
|
+
operation: ['list'],
|
|
508
|
+
resource: ['file'],
|
|
509
|
+
},
|
|
510
|
+
},
|
|
511
|
+
typeOptions: {
|
|
512
|
+
minValue: 1,
|
|
513
|
+
maxValue: 1000,
|
|
514
|
+
},
|
|
515
|
+
default: 50,
|
|
516
|
+
description: 'Max number of results to return',
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
displayName: 'Filters',
|
|
520
|
+
name: 'queryFilters',
|
|
521
|
+
placeholder: 'Add Filter',
|
|
522
|
+
description: 'Filters to use to return only specific files',
|
|
523
|
+
type: 'fixedCollection',
|
|
524
|
+
typeOptions: {
|
|
525
|
+
multipleValues: true,
|
|
526
|
+
},
|
|
527
|
+
default: {},
|
|
528
|
+
displayOptions: {
|
|
529
|
+
show: {
|
|
530
|
+
operation: ['list'],
|
|
531
|
+
useQueryString: [false],
|
|
532
|
+
resource: ['file'],
|
|
533
|
+
},
|
|
534
|
+
},
|
|
535
|
+
options: [
|
|
536
|
+
{
|
|
537
|
+
name: 'name',
|
|
538
|
+
displayName: 'Name',
|
|
539
|
+
values: [
|
|
540
|
+
{
|
|
541
|
+
displayName: 'Operation',
|
|
542
|
+
name: 'operation',
|
|
543
|
+
type: 'options',
|
|
544
|
+
noDataExpression: true,
|
|
545
|
+
options: [
|
|
546
|
+
{
|
|
547
|
+
name: 'Contains',
|
|
548
|
+
value: 'contains',
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
name: 'Is',
|
|
552
|
+
value: 'is',
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
name: 'Is Not',
|
|
556
|
+
value: 'isNot',
|
|
557
|
+
},
|
|
558
|
+
],
|
|
559
|
+
default: 'contains',
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
displayName: 'Value',
|
|
563
|
+
name: 'value',
|
|
564
|
+
type: 'string',
|
|
565
|
+
default: '',
|
|
566
|
+
description: 'The value for operation',
|
|
567
|
+
},
|
|
568
|
+
],
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
name: 'mimeType',
|
|
572
|
+
displayName: 'Mime Type',
|
|
573
|
+
values: [
|
|
574
|
+
{
|
|
575
|
+
displayName: 'Mime Type',
|
|
576
|
+
name: 'mimeType',
|
|
577
|
+
type: 'options',
|
|
578
|
+
options: [
|
|
579
|
+
{
|
|
580
|
+
name: '3rd Party Shortcut',
|
|
581
|
+
value: 'application/vnd.google-apps.drive-sdk',
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
name: 'Audio',
|
|
585
|
+
value: 'application/vnd.google-apps.audio',
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
name: 'Custom Mime Type',
|
|
589
|
+
value: 'custom',
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
name: 'Google Apps Scripts',
|
|
593
|
+
value: 'application/vnd.google-apps.script',
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
name: 'Google Docs',
|
|
597
|
+
value: 'application/vnd.google-apps.document',
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
name: 'Google Drawing',
|
|
601
|
+
value: 'application/vnd.google-apps.drawing',
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
name: 'Google Drive File',
|
|
605
|
+
value: 'application/vnd.google-apps.file',
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
name: 'Google Drive Folder',
|
|
609
|
+
value: 'application/vnd.google-apps.folder',
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
name: 'Google Forms',
|
|
613
|
+
value: 'application/vnd.google-apps.form',
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
name: 'Google Fusion Tables',
|
|
617
|
+
value: 'application/vnd.google-apps.fusiontable',
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
name: 'Google My Maps',
|
|
621
|
+
value: 'application/vnd.google-apps.map',
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
name: 'Google Sheets',
|
|
625
|
+
value: 'application/vnd.google-apps.spreadsheet',
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
name: 'Google Sites',
|
|
629
|
+
value: 'application/vnd.google-apps.site',
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
name: 'Google Slides',
|
|
633
|
+
value: 'application/vnd.google-apps.presentation',
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
name: 'Photo',
|
|
637
|
+
value: 'application/vnd.google-apps.photo',
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
name: 'Unknown',
|
|
641
|
+
value: 'application/vnd.google-apps.unknown',
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
name: 'Video',
|
|
645
|
+
value: 'application/vnd.google-apps.video',
|
|
646
|
+
},
|
|
647
|
+
],
|
|
648
|
+
default: 'application/vnd.google-apps.file',
|
|
649
|
+
description: 'The Mime-Type of the files to return',
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
displayName: 'Custom Mime Type',
|
|
653
|
+
name: 'customMimeType',
|
|
654
|
+
type: 'string',
|
|
655
|
+
default: '',
|
|
656
|
+
displayOptions: {
|
|
657
|
+
show: {
|
|
658
|
+
mimeType: ['custom'],
|
|
659
|
+
},
|
|
660
|
+
},
|
|
661
|
+
},
|
|
662
|
+
],
|
|
663
|
+
},
|
|
664
|
+
],
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
displayName: 'Permissions',
|
|
668
|
+
name: 'permissionsUi',
|
|
669
|
+
placeholder: 'Add Permission',
|
|
670
|
+
type: 'fixedCollection',
|
|
671
|
+
default: {},
|
|
672
|
+
typeOptions: {
|
|
673
|
+
multipleValues: false,
|
|
674
|
+
},
|
|
675
|
+
displayOptions: {
|
|
676
|
+
show: {
|
|
677
|
+
resource: ['file', 'folder'],
|
|
678
|
+
operation: ['share'],
|
|
679
|
+
},
|
|
680
|
+
},
|
|
681
|
+
options: [
|
|
682
|
+
{
|
|
683
|
+
displayName: 'Permission',
|
|
684
|
+
name: 'permissionsValues',
|
|
685
|
+
values: [
|
|
686
|
+
{
|
|
687
|
+
displayName: 'Role',
|
|
688
|
+
name: 'role',
|
|
689
|
+
type: 'options',
|
|
690
|
+
options: [
|
|
691
|
+
{
|
|
692
|
+
name: 'Commenter',
|
|
693
|
+
value: 'commenter',
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
name: 'File Organizer',
|
|
697
|
+
value: 'fileOrganizer',
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
name: 'Organizer',
|
|
701
|
+
value: 'organizer',
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
name: 'Owner',
|
|
705
|
+
value: 'owner',
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
name: 'Reader',
|
|
709
|
+
value: 'reader',
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
name: 'Writer',
|
|
713
|
+
value: 'writer',
|
|
714
|
+
},
|
|
715
|
+
],
|
|
716
|
+
default: '',
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
displayName: 'Type',
|
|
720
|
+
name: 'type',
|
|
721
|
+
type: 'options',
|
|
722
|
+
options: [
|
|
723
|
+
{
|
|
724
|
+
name: 'User',
|
|
725
|
+
value: 'user',
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
name: 'Group',
|
|
729
|
+
value: 'group',
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
name: 'Domain',
|
|
733
|
+
value: 'domain',
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
name: 'Anyone',
|
|
737
|
+
value: 'anyone',
|
|
738
|
+
},
|
|
739
|
+
],
|
|
740
|
+
default: '',
|
|
741
|
+
description: 'Information about the different types can be found <a href="https://developers.google.com/drive/api/v3/ref-roles">here</a>',
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
displayName: 'Email Address',
|
|
745
|
+
name: 'emailAddress',
|
|
746
|
+
type: 'string',
|
|
747
|
+
displayOptions: {
|
|
748
|
+
show: {
|
|
749
|
+
type: ['user', 'group'],
|
|
750
|
+
},
|
|
751
|
+
},
|
|
752
|
+
default: '',
|
|
753
|
+
description: 'The email address of the user or group to which this permission refers',
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
displayName: 'Domain',
|
|
757
|
+
name: 'domain',
|
|
758
|
+
type: 'string',
|
|
759
|
+
displayOptions: {
|
|
760
|
+
show: {
|
|
761
|
+
type: ['domain'],
|
|
762
|
+
},
|
|
763
|
+
},
|
|
764
|
+
default: '',
|
|
765
|
+
description: 'The domain to which this permission refers',
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
displayName: 'Allow File Discovery',
|
|
769
|
+
name: 'allowFileDiscovery',
|
|
770
|
+
type: 'boolean',
|
|
771
|
+
displayOptions: {
|
|
772
|
+
show: {
|
|
773
|
+
type: ['domain', 'anyone'],
|
|
774
|
+
},
|
|
775
|
+
},
|
|
776
|
+
default: false,
|
|
777
|
+
description: 'Whether the permission allows the file to be discovered through search',
|
|
778
|
+
},
|
|
779
|
+
],
|
|
780
|
+
},
|
|
781
|
+
],
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
displayName: 'Binary Data',
|
|
785
|
+
name: 'binaryData',
|
|
786
|
+
type: 'boolean',
|
|
787
|
+
default: false,
|
|
788
|
+
displayOptions: {
|
|
789
|
+
show: {
|
|
790
|
+
operation: ['upload'],
|
|
791
|
+
resource: ['file'],
|
|
792
|
+
},
|
|
793
|
+
},
|
|
794
|
+
description: 'Whether the data to upload should be taken from binary field',
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
displayName: 'File Content',
|
|
798
|
+
name: 'fileContent',
|
|
799
|
+
type: 'string',
|
|
800
|
+
default: '',
|
|
801
|
+
displayOptions: {
|
|
802
|
+
show: {
|
|
803
|
+
operation: ['upload'],
|
|
804
|
+
resource: ['file'],
|
|
805
|
+
binaryData: [false],
|
|
806
|
+
},
|
|
807
|
+
},
|
|
808
|
+
placeholder: '',
|
|
809
|
+
description: 'The text content of the file to upload',
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
displayName: 'Binary Property',
|
|
813
|
+
name: 'binaryPropertyName',
|
|
814
|
+
type: 'string',
|
|
815
|
+
default: 'data',
|
|
816
|
+
required: true,
|
|
817
|
+
displayOptions: {
|
|
818
|
+
show: {
|
|
819
|
+
operation: ['upload'],
|
|
820
|
+
resource: ['file'],
|
|
821
|
+
binaryData: [true],
|
|
822
|
+
},
|
|
823
|
+
},
|
|
824
|
+
placeholder: '',
|
|
825
|
+
description: 'Name of the binary property which contains the data for the file to be uploaded',
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
displayName: 'Update Fields',
|
|
829
|
+
name: 'updateFields',
|
|
830
|
+
type: 'collection',
|
|
831
|
+
placeholder: 'Add Option',
|
|
832
|
+
default: {},
|
|
833
|
+
displayOptions: {
|
|
834
|
+
show: {
|
|
835
|
+
operation: ['update'],
|
|
836
|
+
resource: ['file'],
|
|
837
|
+
},
|
|
838
|
+
},
|
|
839
|
+
options: [
|
|
840
|
+
{
|
|
841
|
+
displayName: 'File Name',
|
|
842
|
+
name: 'fileName',
|
|
843
|
+
type: 'string',
|
|
844
|
+
default: '',
|
|
845
|
+
description: 'The name of the file',
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
displayName: 'Keep Revision Forever',
|
|
849
|
+
name: 'keepRevisionForever',
|
|
850
|
+
type: 'boolean',
|
|
851
|
+
default: false,
|
|
852
|
+
description: "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.",
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
displayName: 'Move to Trash',
|
|
856
|
+
name: 'trashed',
|
|
857
|
+
type: 'boolean',
|
|
858
|
+
default: false,
|
|
859
|
+
description: 'Whether to move a file to the trash. Only the owner may trash a file.',
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
displayName: 'OCR Language',
|
|
863
|
+
name: 'ocrLanguage',
|
|
864
|
+
type: 'string',
|
|
865
|
+
default: '',
|
|
866
|
+
description: 'A language hint for OCR processing during image import (ISO 639-1 code)',
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
displayName: 'Parent ID',
|
|
870
|
+
name: 'parentId',
|
|
871
|
+
type: 'string',
|
|
872
|
+
default: '',
|
|
873
|
+
description: 'The ID of the parent to set',
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
displayName: 'Use Content As Indexable Text',
|
|
877
|
+
name: 'useContentAsIndexableText',
|
|
878
|
+
type: 'boolean',
|
|
879
|
+
default: false,
|
|
880
|
+
description: 'Whether to use the uploaded content as indexable text',
|
|
881
|
+
},
|
|
882
|
+
],
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
displayName: 'Options',
|
|
886
|
+
name: 'options',
|
|
887
|
+
type: 'collection',
|
|
888
|
+
placeholder: 'Add Option',
|
|
889
|
+
default: {},
|
|
890
|
+
displayOptions: {
|
|
891
|
+
show: {
|
|
892
|
+
operation: ['update'],
|
|
893
|
+
resource: ['file'],
|
|
894
|
+
},
|
|
895
|
+
},
|
|
896
|
+
options: [
|
|
897
|
+
{
|
|
898
|
+
displayName: 'Fields',
|
|
899
|
+
name: 'fields',
|
|
900
|
+
type: 'multiOptions',
|
|
901
|
+
options: [
|
|
902
|
+
{
|
|
903
|
+
name: '[All]',
|
|
904
|
+
value: '*',
|
|
905
|
+
description: 'All fields',
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
name: 'explicitlyTrashed',
|
|
909
|
+
value: 'explicitlyTrashed',
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
name: 'exportLinks',
|
|
913
|
+
value: 'exportLinks',
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
name: 'hasThumbnail',
|
|
917
|
+
value: 'hasThumbnail',
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
name: 'iconLink',
|
|
921
|
+
value: 'iconLink',
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
name: 'ID',
|
|
925
|
+
value: 'id',
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
name: 'Kind',
|
|
929
|
+
value: 'kind',
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
name: 'mimeType',
|
|
933
|
+
value: 'mimeType',
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
name: 'Name',
|
|
937
|
+
value: 'name',
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
name: 'Permissions',
|
|
941
|
+
value: 'permissions',
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
name: 'Shared',
|
|
945
|
+
value: 'shared',
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
name: 'Spaces',
|
|
949
|
+
value: 'spaces',
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
name: 'Starred',
|
|
953
|
+
value: 'starred',
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
name: 'thumbnailLink',
|
|
957
|
+
value: 'thumbnailLink',
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
name: 'Trashed',
|
|
961
|
+
value: 'trashed',
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
name: 'Version',
|
|
965
|
+
value: 'version',
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
name: 'webViewLink',
|
|
969
|
+
value: 'webViewLink',
|
|
970
|
+
},
|
|
971
|
+
],
|
|
972
|
+
default: [],
|
|
973
|
+
description: 'The fields to return',
|
|
974
|
+
},
|
|
975
|
+
],
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
displayName: 'File Name',
|
|
979
|
+
name: 'name',
|
|
980
|
+
type: 'string',
|
|
981
|
+
default: '',
|
|
982
|
+
required: true,
|
|
983
|
+
displayOptions: {
|
|
984
|
+
show: {
|
|
985
|
+
operation: ['upload'],
|
|
986
|
+
resource: ['file'],
|
|
987
|
+
},
|
|
988
|
+
},
|
|
989
|
+
placeholder: 'invoice_1.pdf',
|
|
990
|
+
description: 'The name the file should be saved as',
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
displayName: 'Resolve Data',
|
|
994
|
+
name: 'resolveData',
|
|
995
|
+
type: 'boolean',
|
|
996
|
+
default: false,
|
|
997
|
+
displayOptions: {
|
|
998
|
+
show: {
|
|
999
|
+
operation: ['upload'],
|
|
1000
|
+
resource: ['file'],
|
|
1001
|
+
},
|
|
1002
|
+
},
|
|
1003
|
+
description: 'By default the response only contain the ID of the file. If this option gets activated, it will resolve the data automatically.',
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
displayName: 'Parents',
|
|
1007
|
+
name: 'parents',
|
|
1008
|
+
type: 'string',
|
|
1009
|
+
typeOptions: {
|
|
1010
|
+
multipleValues: true,
|
|
1011
|
+
},
|
|
1012
|
+
default: [],
|
|
1013
|
+
displayOptions: {
|
|
1014
|
+
show: {
|
|
1015
|
+
operation: ['upload'],
|
|
1016
|
+
resource: ['file'],
|
|
1017
|
+
},
|
|
1018
|
+
},
|
|
1019
|
+
description: 'The IDs of the parent folders which contain the file',
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
displayName: 'Folder',
|
|
1023
|
+
name: 'name',
|
|
1024
|
+
type: 'string',
|
|
1025
|
+
default: '',
|
|
1026
|
+
required: true,
|
|
1027
|
+
displayOptions: {
|
|
1028
|
+
show: {
|
|
1029
|
+
operation: ['create'],
|
|
1030
|
+
resource: ['folder'],
|
|
1031
|
+
},
|
|
1032
|
+
},
|
|
1033
|
+
placeholder: 'invoices',
|
|
1034
|
+
description: 'The name of folder to create',
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
displayName: 'Options',
|
|
1038
|
+
name: 'options',
|
|
1039
|
+
type: 'collection',
|
|
1040
|
+
placeholder: 'Add Option',
|
|
1041
|
+
default: {},
|
|
1042
|
+
displayOptions: {
|
|
1043
|
+
show: {
|
|
1044
|
+
'/operation': ['copy', 'list', 'share', 'create'],
|
|
1045
|
+
'/resource': ['file', 'folder'],
|
|
1046
|
+
},
|
|
1047
|
+
},
|
|
1048
|
+
options: [
|
|
1049
|
+
{
|
|
1050
|
+
displayName: 'Email Message',
|
|
1051
|
+
name: 'emailMessage',
|
|
1052
|
+
type: 'string',
|
|
1053
|
+
displayOptions: {
|
|
1054
|
+
show: {
|
|
1055
|
+
'/operation': ['share'],
|
|
1056
|
+
'/resource': ['file', 'folder'],
|
|
1057
|
+
},
|
|
1058
|
+
},
|
|
1059
|
+
default: '',
|
|
1060
|
+
description: 'A plain text custom message to include in the notification email',
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
displayName: 'Enforce Single Parent',
|
|
1064
|
+
name: 'enforceSingleParent',
|
|
1065
|
+
type: 'boolean',
|
|
1066
|
+
displayOptions: {
|
|
1067
|
+
show: {
|
|
1068
|
+
'/operation': ['share'],
|
|
1069
|
+
'/resource': ['file', 'folder'],
|
|
1070
|
+
},
|
|
1071
|
+
},
|
|
1072
|
+
default: false,
|
|
1073
|
+
description: 'Whether to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive.',
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
displayName: 'Fields',
|
|
1077
|
+
name: 'fields',
|
|
1078
|
+
type: 'multiOptions',
|
|
1079
|
+
displayOptions: {
|
|
1080
|
+
show: {
|
|
1081
|
+
'/operation': ['list', 'copy'],
|
|
1082
|
+
},
|
|
1083
|
+
},
|
|
1084
|
+
options: [
|
|
1085
|
+
{
|
|
1086
|
+
name: '*',
|
|
1087
|
+
value: '*',
|
|
1088
|
+
description: 'All fields',
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
name: 'explicitlyTrashed',
|
|
1092
|
+
value: 'explicitlyTrashed',
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
name: 'exportLinks',
|
|
1096
|
+
value: 'exportLinks',
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
name: 'hasThumbnail',
|
|
1100
|
+
value: 'hasThumbnail',
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
name: 'iconLink',
|
|
1104
|
+
value: 'iconLink',
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
name: 'ID',
|
|
1108
|
+
value: 'id',
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
name: 'Kind',
|
|
1112
|
+
value: 'kind',
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
name: 'mimeType',
|
|
1116
|
+
value: 'mimeType',
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
name: 'Name',
|
|
1120
|
+
value: 'name',
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
name: 'Permissions',
|
|
1124
|
+
value: 'permissions',
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
name: 'Shared',
|
|
1128
|
+
value: 'shared',
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
name: 'Spaces',
|
|
1132
|
+
value: 'spaces',
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
name: 'Starred',
|
|
1136
|
+
value: 'starred',
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
name: 'thumbnailLink',
|
|
1140
|
+
value: 'thumbnailLink',
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
name: 'Trashed',
|
|
1144
|
+
value: 'trashed',
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
name: 'Version',
|
|
1148
|
+
value: 'version',
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
name: 'webViewLink',
|
|
1152
|
+
value: 'webViewLink',
|
|
1153
|
+
},
|
|
1154
|
+
],
|
|
1155
|
+
default: [],
|
|
1156
|
+
description: 'The fields to return',
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
displayName: 'Move To New Owners Root',
|
|
1160
|
+
name: 'moveToNewOwnersRoot',
|
|
1161
|
+
type: 'boolean',
|
|
1162
|
+
displayOptions: {
|
|
1163
|
+
show: {
|
|
1164
|
+
'/operation': ['share'],
|
|
1165
|
+
'/resource': ['file', 'folder'],
|
|
1166
|
+
},
|
|
1167
|
+
},
|
|
1168
|
+
default: false,
|
|
1169
|
+
description: "<p>This parameter only takes effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item.</p><p>When set to true, the item is moved to the new owner's My Drive root folder and all prior parents removed.</p>",
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
displayName: 'Send Notification Email',
|
|
1173
|
+
name: 'sendNotificationEmail',
|
|
1174
|
+
type: 'boolean',
|
|
1175
|
+
displayOptions: {
|
|
1176
|
+
show: {
|
|
1177
|
+
'/operation': ['share'],
|
|
1178
|
+
'/resource': ['file', 'folder'],
|
|
1179
|
+
},
|
|
1180
|
+
},
|
|
1181
|
+
default: false,
|
|
1182
|
+
description: 'Whether to send a notification email when sharing to users or groups',
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
displayName: 'Supports All Drives',
|
|
1186
|
+
name: 'supportsAllDrives',
|
|
1187
|
+
type: 'boolean',
|
|
1188
|
+
displayOptions: {
|
|
1189
|
+
show: {
|
|
1190
|
+
'/operation': ['share'],
|
|
1191
|
+
'/resource': ['file', 'folder'],
|
|
1192
|
+
},
|
|
1193
|
+
},
|
|
1194
|
+
default: false,
|
|
1195
|
+
description: 'Whether the requesting application supports both My Drives and shared drives',
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
displayName: 'Transfer Ownership',
|
|
1199
|
+
name: 'transferOwnership',
|
|
1200
|
+
type: 'boolean',
|
|
1201
|
+
displayOptions: {
|
|
1202
|
+
show: {
|
|
1203
|
+
'/operation': ['share'],
|
|
1204
|
+
'/resource': ['file', 'folder'],
|
|
1205
|
+
},
|
|
1206
|
+
},
|
|
1207
|
+
default: false,
|
|
1208
|
+
description: 'Whether to transfer ownership to the specified user and downgrade the current owner to a writer',
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
displayName: 'Use Domain Admin Access',
|
|
1212
|
+
name: 'useDomainAdminAccess',
|
|
1213
|
+
type: 'boolean',
|
|
1214
|
+
displayOptions: {
|
|
1215
|
+
show: {
|
|
1216
|
+
'/operation': ['share'],
|
|
1217
|
+
'/resource': ['file', 'folder'],
|
|
1218
|
+
},
|
|
1219
|
+
},
|
|
1220
|
+
default: false,
|
|
1221
|
+
description: 'Whether to perform the operation as domain administrator, i.e. if you are an administrator of the domain to which the shared drive belongs, you will be granted access automatically.',
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
displayName: 'File Name',
|
|
1225
|
+
name: 'name',
|
|
1226
|
+
type: 'string',
|
|
1227
|
+
displayOptions: {
|
|
1228
|
+
show: {
|
|
1229
|
+
'/operation': ['copy'],
|
|
1230
|
+
'/resource': ['file'],
|
|
1231
|
+
},
|
|
1232
|
+
},
|
|
1233
|
+
default: '',
|
|
1234
|
+
placeholder: 'invoice_1.pdf',
|
|
1235
|
+
description: 'The name the file should be saved as',
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
displayName: 'Parents',
|
|
1239
|
+
name: 'parents',
|
|
1240
|
+
type: 'string',
|
|
1241
|
+
displayOptions: {
|
|
1242
|
+
show: {
|
|
1243
|
+
'/operation': ['copy', 'create'],
|
|
1244
|
+
'/resource': ['file', 'folder'],
|
|
1245
|
+
},
|
|
1246
|
+
},
|
|
1247
|
+
typeOptions: {
|
|
1248
|
+
multipleValues: true,
|
|
1249
|
+
},
|
|
1250
|
+
default: [],
|
|
1251
|
+
description: 'The IDs of the parent folders the file/folder should be saved in',
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
displayName: 'Spaces',
|
|
1255
|
+
name: 'spaces',
|
|
1256
|
+
type: 'multiOptions',
|
|
1257
|
+
displayOptions: {
|
|
1258
|
+
show: {
|
|
1259
|
+
'/operation': ['list'],
|
|
1260
|
+
'/resource': ['file'],
|
|
1261
|
+
},
|
|
1262
|
+
},
|
|
1263
|
+
options: [
|
|
1264
|
+
{
|
|
1265
|
+
name: '[All]',
|
|
1266
|
+
value: '*',
|
|
1267
|
+
description: 'All spaces',
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
name: 'appDataFolder',
|
|
1271
|
+
value: 'appDataFolder',
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
name: 'Drive',
|
|
1275
|
+
value: 'drive',
|
|
1276
|
+
},
|
|
1277
|
+
{
|
|
1278
|
+
name: 'Photos',
|
|
1279
|
+
value: 'photos',
|
|
1280
|
+
},
|
|
1281
|
+
],
|
|
1282
|
+
default: [],
|
|
1283
|
+
description: 'The spaces to operate on',
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
displayName: 'Corpora',
|
|
1287
|
+
name: 'corpora',
|
|
1288
|
+
type: 'options',
|
|
1289
|
+
displayOptions: {
|
|
1290
|
+
show: {
|
|
1291
|
+
'/operation': ['list'],
|
|
1292
|
+
'/resource': ['file'],
|
|
1293
|
+
},
|
|
1294
|
+
},
|
|
1295
|
+
options: [
|
|
1296
|
+
{
|
|
1297
|
+
name: 'User',
|
|
1298
|
+
value: 'user',
|
|
1299
|
+
description: 'All files in "My Drive" and "Shared with me"',
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
name: 'Domain',
|
|
1303
|
+
value: 'domain',
|
|
1304
|
+
description: "All files shared to the user's domain that are searchable",
|
|
1305
|
+
},
|
|
1306
|
+
{
|
|
1307
|
+
name: 'Drive',
|
|
1308
|
+
value: 'drive',
|
|
1309
|
+
description: 'All files contained in a single shared drive',
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
name: 'allDrives',
|
|
1313
|
+
value: 'allDrives',
|
|
1314
|
+
description: 'All drives',
|
|
1315
|
+
},
|
|
1316
|
+
],
|
|
1317
|
+
default: '',
|
|
1318
|
+
description: 'The corpora to operate on',
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
displayName: 'Drive ID',
|
|
1322
|
+
name: 'driveId',
|
|
1323
|
+
type: 'string',
|
|
1324
|
+
default: '',
|
|
1325
|
+
displayOptions: {
|
|
1326
|
+
show: {
|
|
1327
|
+
'/operation': ['list'],
|
|
1328
|
+
'/resource': ['file'],
|
|
1329
|
+
corpora: ['drive'],
|
|
1330
|
+
},
|
|
1331
|
+
},
|
|
1332
|
+
description: 'ID of the shared drive to search. The driveId parameter must be specified if and only if corpora is set to drive.',
|
|
1333
|
+
},
|
|
1334
|
+
],
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
displayName: 'Operation',
|
|
1338
|
+
name: 'operation',
|
|
1339
|
+
type: 'options',
|
|
1340
|
+
noDataExpression: true,
|
|
1341
|
+
displayOptions: {
|
|
1342
|
+
show: {
|
|
1343
|
+
resource: ['drive'],
|
|
1344
|
+
},
|
|
1345
|
+
},
|
|
1346
|
+
options: [
|
|
1347
|
+
{
|
|
1348
|
+
name: 'Create',
|
|
1349
|
+
value: 'create',
|
|
1350
|
+
description: 'Create a drive',
|
|
1351
|
+
action: 'Create a drive',
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
name: 'Delete',
|
|
1355
|
+
value: 'delete',
|
|
1356
|
+
description: 'Delete a drive',
|
|
1357
|
+
action: 'Delete a drive',
|
|
1358
|
+
},
|
|
1359
|
+
{
|
|
1360
|
+
name: 'Get',
|
|
1361
|
+
value: 'get',
|
|
1362
|
+
description: 'Get a drive',
|
|
1363
|
+
action: 'Get a drive',
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
name: 'List',
|
|
1367
|
+
value: 'list',
|
|
1368
|
+
description: 'List all drives',
|
|
1369
|
+
action: 'List all drives',
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
name: 'Update',
|
|
1373
|
+
value: 'update',
|
|
1374
|
+
description: 'Update a drive',
|
|
1375
|
+
action: 'Update a drive',
|
|
1376
|
+
},
|
|
1377
|
+
],
|
|
1378
|
+
default: 'create',
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
displayName: 'Drive',
|
|
1382
|
+
name: 'driveId',
|
|
1383
|
+
type: 'resourceLocator',
|
|
1384
|
+
default: { mode: 'list', value: '' },
|
|
1385
|
+
required: true,
|
|
1386
|
+
hint: 'The Google Drive drive to operate on',
|
|
1387
|
+
modes: [
|
|
1388
|
+
{
|
|
1389
|
+
displayName: 'Drive',
|
|
1390
|
+
name: 'list',
|
|
1391
|
+
type: 'list',
|
|
1392
|
+
placeholder: 'Drive',
|
|
1393
|
+
typeOptions: {
|
|
1394
|
+
searchListMethod: 'driveSearch',
|
|
1395
|
+
searchable: true,
|
|
1396
|
+
},
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
displayName: 'Link',
|
|
1400
|
+
name: 'url',
|
|
1401
|
+
type: 'string',
|
|
1402
|
+
placeholder: 'https://drive.google.com/drive/folders/0AaaaaAAAAAAAaa',
|
|
1403
|
+
extractValue: {
|
|
1404
|
+
type: 'regex',
|
|
1405
|
+
regex: constants_1.GOOGLE_DRIVE_FOLDER_URL_REGEX,
|
|
1406
|
+
},
|
|
1407
|
+
validation: [
|
|
1408
|
+
{
|
|
1409
|
+
type: 'regex',
|
|
1410
|
+
properties: {
|
|
1411
|
+
regex: constants_1.GOOGLE_DRIVE_FOLDER_URL_REGEX,
|
|
1412
|
+
errorMessage: 'Not a valid Google Drive Drive URL',
|
|
1413
|
+
},
|
|
1414
|
+
},
|
|
1415
|
+
],
|
|
1416
|
+
},
|
|
1417
|
+
{
|
|
1418
|
+
displayName: 'ID',
|
|
1419
|
+
name: 'id',
|
|
1420
|
+
type: 'string',
|
|
1421
|
+
hint: 'The ID of the shared drive',
|
|
1422
|
+
validation: [
|
|
1423
|
+
{
|
|
1424
|
+
type: 'regex',
|
|
1425
|
+
properties: {
|
|
1426
|
+
regex: '[a-zA-Z0-9\\-_]{2,}',
|
|
1427
|
+
errorMessage: 'Not a valid Google Drive Drive ID',
|
|
1428
|
+
},
|
|
1429
|
+
},
|
|
1430
|
+
],
|
|
1431
|
+
url: '=https://drive.google.com/drive/folders/{{$value}}',
|
|
1432
|
+
},
|
|
1433
|
+
],
|
|
1434
|
+
displayOptions: {
|
|
1435
|
+
show: {
|
|
1436
|
+
operation: ['delete', 'get', 'update'],
|
|
1437
|
+
resource: ['drive'],
|
|
1438
|
+
},
|
|
1439
|
+
},
|
|
1440
|
+
description: 'The ID of the drive',
|
|
1441
|
+
},
|
|
1442
|
+
{
|
|
1443
|
+
displayName: 'Name',
|
|
1444
|
+
name: 'name',
|
|
1445
|
+
type: 'string',
|
|
1446
|
+
default: '',
|
|
1447
|
+
displayOptions: {
|
|
1448
|
+
show: {
|
|
1449
|
+
operation: ['create'],
|
|
1450
|
+
resource: ['drive'],
|
|
1451
|
+
},
|
|
1452
|
+
},
|
|
1453
|
+
description: 'The name of this shared drive',
|
|
1454
|
+
},
|
|
1455
|
+
{
|
|
1456
|
+
displayName: 'Options',
|
|
1457
|
+
name: 'options',
|
|
1458
|
+
type: 'collection',
|
|
1459
|
+
placeholder: 'Add Option',
|
|
1460
|
+
default: {},
|
|
1461
|
+
displayOptions: {
|
|
1462
|
+
show: {
|
|
1463
|
+
operation: ['create'],
|
|
1464
|
+
resource: ['drive'],
|
|
1465
|
+
},
|
|
1466
|
+
},
|
|
1467
|
+
options: [
|
|
1468
|
+
{
|
|
1469
|
+
displayName: 'Capabilities',
|
|
1470
|
+
name: 'capabilities',
|
|
1471
|
+
type: 'collection',
|
|
1472
|
+
placeholder: 'Add Field',
|
|
1473
|
+
default: {},
|
|
1474
|
+
options: [
|
|
1475
|
+
{
|
|
1476
|
+
displayName: 'Can Add Children',
|
|
1477
|
+
name: 'canAddChildren',
|
|
1478
|
+
type: 'boolean',
|
|
1479
|
+
default: false,
|
|
1480
|
+
description: 'Whether the current user can add children to folders in this shared drive',
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
displayName: 'Can Change Copy Requires Writer Permission Restriction',
|
|
1484
|
+
name: 'canChangeCopyRequiresWriterPermissionRestriction',
|
|
1485
|
+
type: 'boolean',
|
|
1486
|
+
default: false,
|
|
1487
|
+
description: 'Whether the current user can change the copyRequiresWriterPermission restriction of this shared drive',
|
|
1488
|
+
},
|
|
1489
|
+
{
|
|
1490
|
+
displayName: 'Can Change Domain Users Only Restriction',
|
|
1491
|
+
name: 'canChangeDomainUsersOnlyRestriction',
|
|
1492
|
+
type: 'boolean',
|
|
1493
|
+
default: false,
|
|
1494
|
+
description: 'Whether the current user can change the domainUsersOnly restriction of this shared drive',
|
|
1495
|
+
},
|
|
1496
|
+
{
|
|
1497
|
+
displayName: 'Can Change Drive Background',
|
|
1498
|
+
name: 'canChangeDriveBackground',
|
|
1499
|
+
type: 'boolean',
|
|
1500
|
+
default: false,
|
|
1501
|
+
description: 'Whether the current user can change the background of this shared drive',
|
|
1502
|
+
},
|
|
1503
|
+
{
|
|
1504
|
+
displayName: 'Can Change Drive Members Only Restriction',
|
|
1505
|
+
name: 'canChangeDriveMembersOnlyRestriction',
|
|
1506
|
+
type: 'boolean',
|
|
1507
|
+
default: false,
|
|
1508
|
+
description: 'Whether the current user can change the driveMembersOnly restriction of this shared drive',
|
|
1509
|
+
},
|
|
1510
|
+
{
|
|
1511
|
+
displayName: 'Can Comment',
|
|
1512
|
+
name: 'canComment',
|
|
1513
|
+
type: 'boolean',
|
|
1514
|
+
default: false,
|
|
1515
|
+
description: 'Whether the current user can comment on files in this shared drive',
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
displayName: 'Can Copy',
|
|
1519
|
+
name: 'canCopy',
|
|
1520
|
+
type: 'boolean',
|
|
1521
|
+
default: false,
|
|
1522
|
+
description: 'Whether the current user can copy files in this shared drive',
|
|
1523
|
+
},
|
|
1524
|
+
{
|
|
1525
|
+
displayName: 'Can Delete Children',
|
|
1526
|
+
name: 'canDeleteChildren',
|
|
1527
|
+
type: 'boolean',
|
|
1528
|
+
default: false,
|
|
1529
|
+
description: 'Whether the current user can delete children from folders in this shared drive',
|
|
1530
|
+
},
|
|
1531
|
+
{
|
|
1532
|
+
displayName: 'Can Delete Drive',
|
|
1533
|
+
name: 'canDeleteDrive',
|
|
1534
|
+
type: 'boolean',
|
|
1535
|
+
default: false,
|
|
1536
|
+
description: 'Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive.',
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
displayName: 'Can Download',
|
|
1540
|
+
name: 'canDownload',
|
|
1541
|
+
type: 'boolean',
|
|
1542
|
+
default: false,
|
|
1543
|
+
description: 'Whether the current user can download files in this shared drive',
|
|
1544
|
+
},
|
|
1545
|
+
{
|
|
1546
|
+
displayName: 'Can Edit',
|
|
1547
|
+
name: 'canEdit',
|
|
1548
|
+
type: 'boolean',
|
|
1549
|
+
default: false,
|
|
1550
|
+
description: 'Whether the current user can edit files in this shared drive',
|
|
1551
|
+
},
|
|
1552
|
+
{
|
|
1553
|
+
displayName: 'Can List Children',
|
|
1554
|
+
name: 'canListChildren',
|
|
1555
|
+
type: 'boolean',
|
|
1556
|
+
default: false,
|
|
1557
|
+
description: 'Whether the current user can list the children of folders in this shared drive',
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
displayName: 'Can Manage Members',
|
|
1561
|
+
name: 'canManageMembers',
|
|
1562
|
+
type: 'boolean',
|
|
1563
|
+
default: false,
|
|
1564
|
+
description: 'Whether the current user can add members to this shared drive or remove them or change their role',
|
|
1565
|
+
},
|
|
1566
|
+
{
|
|
1567
|
+
displayName: 'Can Read Revisions',
|
|
1568
|
+
name: 'canReadRevisions',
|
|
1569
|
+
type: 'boolean',
|
|
1570
|
+
default: false,
|
|
1571
|
+
description: 'Whether the current user can read the revisions resource of files in this shared drive',
|
|
1572
|
+
},
|
|
1573
|
+
{
|
|
1574
|
+
displayName: 'Can Rename',
|
|
1575
|
+
name: 'canRename',
|
|
1576
|
+
type: 'boolean',
|
|
1577
|
+
default: false,
|
|
1578
|
+
description: 'Whether the current user can rename files or folders in this shared drive',
|
|
1579
|
+
},
|
|
1580
|
+
{
|
|
1581
|
+
displayName: 'Can Rename Drive',
|
|
1582
|
+
name: 'canRenameDrive',
|
|
1583
|
+
type: 'boolean',
|
|
1584
|
+
default: false,
|
|
1585
|
+
description: 'Whether the current user can rename this shared drive',
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
displayName: 'Can Share',
|
|
1589
|
+
name: 'canShare',
|
|
1590
|
+
type: 'boolean',
|
|
1591
|
+
default: false,
|
|
1592
|
+
description: 'Whether the current user can rename this shared drive',
|
|
1593
|
+
},
|
|
1594
|
+
{
|
|
1595
|
+
displayName: 'Can Trash Children',
|
|
1596
|
+
name: 'canTrashChildren',
|
|
1597
|
+
type: 'boolean',
|
|
1598
|
+
default: false,
|
|
1599
|
+
description: 'Whether the current user can trash children from folders in this shared drive',
|
|
1600
|
+
},
|
|
1601
|
+
],
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
displayName: 'Color RGB',
|
|
1605
|
+
name: 'colorRgb',
|
|
1606
|
+
type: 'color',
|
|
1607
|
+
default: '',
|
|
1608
|
+
description: 'The color of this shared drive as an RGB hex string',
|
|
1609
|
+
},
|
|
1610
|
+
{
|
|
1611
|
+
displayName: 'Created Time',
|
|
1612
|
+
name: 'createdTime',
|
|
1613
|
+
type: 'dateTime',
|
|
1614
|
+
default: '',
|
|
1615
|
+
description: 'The time at which the shared drive was created (RFC 3339 date-time)',
|
|
1616
|
+
},
|
|
1617
|
+
{
|
|
1618
|
+
displayName: 'Hidden',
|
|
1619
|
+
name: 'hidden',
|
|
1620
|
+
type: 'boolean',
|
|
1621
|
+
default: false,
|
|
1622
|
+
description: 'Whether the shared drive is hidden from default view',
|
|
1623
|
+
},
|
|
1624
|
+
{
|
|
1625
|
+
displayName: 'Restrictions',
|
|
1626
|
+
name: 'restrictions',
|
|
1627
|
+
type: 'collection',
|
|
1628
|
+
placeholder: 'Add Field',
|
|
1629
|
+
default: {},
|
|
1630
|
+
options: [
|
|
1631
|
+
{
|
|
1632
|
+
displayName: 'Admin Managed Restrictions',
|
|
1633
|
+
name: 'adminManagedRestrictions',
|
|
1634
|
+
type: 'boolean',
|
|
1635
|
+
default: false,
|
|
1636
|
+
description: 'Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive.',
|
|
1637
|
+
},
|
|
1638
|
+
{
|
|
1639
|
+
displayName: 'Copy Requires Writer Permission',
|
|
1640
|
+
name: 'copyRequiresWriterPermission',
|
|
1641
|
+
type: 'boolean',
|
|
1642
|
+
default: false,
|
|
1643
|
+
description: 'Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive.',
|
|
1644
|
+
},
|
|
1645
|
+
{
|
|
1646
|
+
displayName: 'Domain Users Only',
|
|
1647
|
+
name: 'domainUsersOnly',
|
|
1648
|
+
type: 'boolean',
|
|
1649
|
+
default: false,
|
|
1650
|
+
description: 'Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.',
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
displayName: 'Drive Members Only',
|
|
1654
|
+
name: 'driveMembersOnly',
|
|
1655
|
+
type: 'boolean',
|
|
1656
|
+
default: false,
|
|
1657
|
+
description: 'Whether access to items inside this shared drive is restricted to its members',
|
|
1658
|
+
},
|
|
1659
|
+
],
|
|
1660
|
+
},
|
|
1661
|
+
],
|
|
1662
|
+
},
|
|
1663
|
+
{
|
|
1664
|
+
displayName: 'Options',
|
|
1665
|
+
name: 'options',
|
|
1666
|
+
type: 'collection',
|
|
1667
|
+
placeholder: 'Add Option',
|
|
1668
|
+
default: {},
|
|
1669
|
+
displayOptions: {
|
|
1670
|
+
show: {
|
|
1671
|
+
operation: ['get'],
|
|
1672
|
+
resource: ['drive'],
|
|
1673
|
+
},
|
|
1674
|
+
},
|
|
1675
|
+
options: [
|
|
1676
|
+
{
|
|
1677
|
+
displayName: 'Use Domain Admin Access',
|
|
1678
|
+
name: 'useDomainAdminAccess',
|
|
1679
|
+
type: 'boolean',
|
|
1680
|
+
default: false,
|
|
1681
|
+
description: 'Whether to issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs. (Default: false).',
|
|
1682
|
+
},
|
|
1683
|
+
],
|
|
1684
|
+
},
|
|
1685
|
+
{
|
|
1686
|
+
displayName: 'Return All',
|
|
1687
|
+
name: 'returnAll',
|
|
1688
|
+
type: 'boolean',
|
|
1689
|
+
displayOptions: {
|
|
1690
|
+
show: {
|
|
1691
|
+
operation: ['list'],
|
|
1692
|
+
resource: ['drive'],
|
|
1693
|
+
},
|
|
1694
|
+
},
|
|
1695
|
+
default: false,
|
|
1696
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
displayName: 'Limit',
|
|
1700
|
+
name: 'limit',
|
|
1701
|
+
type: 'number',
|
|
1702
|
+
displayOptions: {
|
|
1703
|
+
show: {
|
|
1704
|
+
operation: ['list'],
|
|
1705
|
+
resource: ['drive'],
|
|
1706
|
+
returnAll: [false],
|
|
1707
|
+
},
|
|
1708
|
+
},
|
|
1709
|
+
typeOptions: {
|
|
1710
|
+
minValue: 1,
|
|
1711
|
+
maxValue: 200,
|
|
1712
|
+
},
|
|
1713
|
+
default: 100,
|
|
1714
|
+
description: 'Max number of results to return',
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
displayName: 'Options',
|
|
1718
|
+
name: 'options',
|
|
1719
|
+
type: 'collection',
|
|
1720
|
+
placeholder: 'Add Option',
|
|
1721
|
+
default: {},
|
|
1722
|
+
displayOptions: {
|
|
1723
|
+
show: {
|
|
1724
|
+
operation: ['list'],
|
|
1725
|
+
resource: ['drive'],
|
|
1726
|
+
},
|
|
1727
|
+
},
|
|
1728
|
+
options: [
|
|
1729
|
+
{
|
|
1730
|
+
displayName: 'Query',
|
|
1731
|
+
name: 'q',
|
|
1732
|
+
type: 'string',
|
|
1733
|
+
default: '',
|
|
1734
|
+
description: 'Query string for searching shared drives. See the <a href="https://developers.google.com/drive/api/v3/search-shareddrives">"Search for shared drives"</a> guide for supported syntax.',
|
|
1735
|
+
},
|
|
1736
|
+
{
|
|
1737
|
+
displayName: 'Use Domain Admin Access',
|
|
1738
|
+
name: 'useDomainAdminAccess',
|
|
1739
|
+
type: 'boolean',
|
|
1740
|
+
default: false,
|
|
1741
|
+
description: 'Whether to issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs. (Default: false).',
|
|
1742
|
+
},
|
|
1743
|
+
],
|
|
1744
|
+
},
|
|
1745
|
+
{
|
|
1746
|
+
displayName: 'Update Fields',
|
|
1747
|
+
name: 'options',
|
|
1748
|
+
type: 'collection',
|
|
1749
|
+
placeholder: 'Add Option',
|
|
1750
|
+
default: {},
|
|
1751
|
+
displayOptions: {
|
|
1752
|
+
show: {
|
|
1753
|
+
operation: ['update'],
|
|
1754
|
+
resource: ['drive'],
|
|
1755
|
+
},
|
|
1756
|
+
},
|
|
1757
|
+
options: [
|
|
1758
|
+
{
|
|
1759
|
+
displayName: 'Color RGB',
|
|
1760
|
+
name: 'colorRgb',
|
|
1761
|
+
type: 'color',
|
|
1762
|
+
default: '',
|
|
1763
|
+
description: 'The color of this shared drive as an RGB hex string',
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
displayName: 'Name',
|
|
1767
|
+
name: 'name',
|
|
1768
|
+
type: 'string',
|
|
1769
|
+
default: '',
|
|
1770
|
+
description: 'The name of this shared drive',
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
displayName: 'Restrictions',
|
|
1774
|
+
name: 'restrictions',
|
|
1775
|
+
type: 'collection',
|
|
1776
|
+
placeholder: 'Add Field',
|
|
1777
|
+
default: {},
|
|
1778
|
+
options: [
|
|
1779
|
+
{
|
|
1780
|
+
displayName: 'Admin Managed Restrictions',
|
|
1781
|
+
name: 'adminManagedRestrictions',
|
|
1782
|
+
type: 'boolean',
|
|
1783
|
+
default: false,
|
|
1784
|
+
description: 'Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive.',
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
displayName: 'Copy Requires Writer Permission',
|
|
1788
|
+
name: 'copyRequiresWriterPermission',
|
|
1789
|
+
type: 'boolean',
|
|
1790
|
+
default: false,
|
|
1791
|
+
description: 'Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive.',
|
|
1792
|
+
},
|
|
1793
|
+
{
|
|
1794
|
+
displayName: 'Domain Users Only',
|
|
1795
|
+
name: 'domainUsersOnly',
|
|
1796
|
+
type: 'boolean',
|
|
1797
|
+
default: false,
|
|
1798
|
+
description: 'Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.',
|
|
1799
|
+
},
|
|
1800
|
+
{
|
|
1801
|
+
displayName: 'Drive Members Only',
|
|
1802
|
+
name: 'driveMembersOnly',
|
|
1803
|
+
type: 'boolean',
|
|
1804
|
+
default: false,
|
|
1805
|
+
description: 'Whether access to items inside this shared drive is restricted to its members',
|
|
1806
|
+
},
|
|
1807
|
+
],
|
|
1808
|
+
},
|
|
1809
|
+
],
|
|
1810
|
+
},
|
|
1811
|
+
{
|
|
1812
|
+
displayName: 'Options',
|
|
1813
|
+
name: 'options',
|
|
1814
|
+
type: 'collection',
|
|
1815
|
+
placeholder: 'Add Option',
|
|
1816
|
+
default: {},
|
|
1817
|
+
displayOptions: {
|
|
1818
|
+
show: {
|
|
1819
|
+
operation: ['upload'],
|
|
1820
|
+
resource: ['file'],
|
|
1821
|
+
},
|
|
1822
|
+
},
|
|
1823
|
+
options: [
|
|
1824
|
+
{
|
|
1825
|
+
displayName: 'APP Properties',
|
|
1826
|
+
name: 'appPropertiesUi',
|
|
1827
|
+
placeholder: 'Add Property',
|
|
1828
|
+
type: 'fixedCollection',
|
|
1829
|
+
default: {},
|
|
1830
|
+
typeOptions: {
|
|
1831
|
+
multipleValues: true,
|
|
1832
|
+
},
|
|
1833
|
+
description: 'A collection of arbitrary key-value pairs which are private to the requesting app',
|
|
1834
|
+
options: [
|
|
1835
|
+
{
|
|
1836
|
+
name: 'appPropertyValues',
|
|
1837
|
+
displayName: 'APP Property',
|
|
1838
|
+
values: [
|
|
1839
|
+
{
|
|
1840
|
+
displayName: 'Key',
|
|
1841
|
+
name: 'key',
|
|
1842
|
+
type: 'string',
|
|
1843
|
+
default: '',
|
|
1844
|
+
description: 'Name of the key to add',
|
|
1845
|
+
},
|
|
1846
|
+
{
|
|
1847
|
+
displayName: 'Value',
|
|
1848
|
+
name: 'value',
|
|
1849
|
+
type: 'string',
|
|
1850
|
+
default: '',
|
|
1851
|
+
description: 'Value to set for the key',
|
|
1852
|
+
},
|
|
1853
|
+
],
|
|
1854
|
+
},
|
|
1855
|
+
],
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
displayName: 'Properties',
|
|
1859
|
+
name: 'propertiesUi',
|
|
1860
|
+
placeholder: 'Add Property',
|
|
1861
|
+
type: 'fixedCollection',
|
|
1862
|
+
default: {},
|
|
1863
|
+
typeOptions: {
|
|
1864
|
+
multipleValues: true,
|
|
1865
|
+
},
|
|
1866
|
+
description: 'A collection of arbitrary key-value pairs which are visible to all apps',
|
|
1867
|
+
options: [
|
|
1868
|
+
{
|
|
1869
|
+
name: 'propertyValues',
|
|
1870
|
+
displayName: 'Property',
|
|
1871
|
+
values: [
|
|
1872
|
+
{
|
|
1873
|
+
displayName: 'Key',
|
|
1874
|
+
name: 'key',
|
|
1875
|
+
type: 'string',
|
|
1876
|
+
default: '',
|
|
1877
|
+
description: 'Name of the key to add',
|
|
1878
|
+
},
|
|
1879
|
+
{
|
|
1880
|
+
displayName: 'Value',
|
|
1881
|
+
name: 'value',
|
|
1882
|
+
type: 'string',
|
|
1883
|
+
default: '',
|
|
1884
|
+
description: 'Value to set for the key',
|
|
1885
|
+
},
|
|
1886
|
+
],
|
|
1887
|
+
},
|
|
1888
|
+
],
|
|
1889
|
+
},
|
|
1890
|
+
],
|
|
1891
|
+
},
|
|
1892
|
+
],
|
|
1893
|
+
};
|
|
1894
|
+
class GoogleDriveV1 {
|
|
1895
|
+
constructor(baseDescription) {
|
|
1896
|
+
this.methods = {
|
|
1897
|
+
listSearch: {
|
|
1898
|
+
fileSearch: SearchFunctions_1.fileSearch,
|
|
1899
|
+
folderSearch: SearchFunctions_1.folderSearch,
|
|
1900
|
+
driveSearch: SearchFunctions_1.driveSearch,
|
|
1901
|
+
},
|
|
1902
|
+
};
|
|
1903
|
+
this.description = {
|
|
1904
|
+
...baseDescription,
|
|
1905
|
+
...versionDescription,
|
|
1906
|
+
};
|
|
1907
|
+
}
|
|
1908
|
+
async execute() {
|
|
1909
|
+
var _a, _b, _c, _d, _e;
|
|
1910
|
+
const items = this.getInputData();
|
|
1911
|
+
const returnData = [];
|
|
1912
|
+
const resource = this.getNodeParameter('resource', 0);
|
|
1913
|
+
const operation = this.getNodeParameter('operation', 0);
|
|
1914
|
+
for (let i = 0; i < items.length; i++) {
|
|
1915
|
+
try {
|
|
1916
|
+
const options = this.getNodeParameter('options', i, {});
|
|
1917
|
+
let queryFields = 'id, name';
|
|
1918
|
+
if (options === null || options === void 0 ? void 0 : options.fields) {
|
|
1919
|
+
const fields = options.fields;
|
|
1920
|
+
if (fields.includes('*')) {
|
|
1921
|
+
queryFields = '*';
|
|
1922
|
+
}
|
|
1923
|
+
else {
|
|
1924
|
+
queryFields = fields.join(', ');
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
if (resource === 'drive') {
|
|
1928
|
+
if (operation === 'create') {
|
|
1929
|
+
const name = this.getNodeParameter('name', i);
|
|
1930
|
+
const body = {
|
|
1931
|
+
name,
|
|
1932
|
+
};
|
|
1933
|
+
Object.assign(body, options);
|
|
1934
|
+
const response = await GenericFunctions_1.googleApiRequest.call(this, 'POST', '/drive/v3/drives', body, {
|
|
1935
|
+
requestId: (0, uuid_1.v4)(),
|
|
1936
|
+
});
|
|
1937
|
+
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
|
|
1938
|
+
returnData.push(...executionData);
|
|
1939
|
+
}
|
|
1940
|
+
if (operation === 'delete') {
|
|
1941
|
+
const driveId = this.getNodeParameter('driveId', i, undefined, {
|
|
1942
|
+
extractValue: true,
|
|
1943
|
+
});
|
|
1944
|
+
await GenericFunctions_1.googleApiRequest.call(this, 'DELETE', `/drive/v3/drives/${driveId}`);
|
|
1945
|
+
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray({ success: true }), { itemData: { item: i } });
|
|
1946
|
+
returnData.push(...executionData);
|
|
1947
|
+
}
|
|
1948
|
+
if (operation === 'get') {
|
|
1949
|
+
const driveId = this.getNodeParameter('driveId', i, undefined, {
|
|
1950
|
+
extractValue: true,
|
|
1951
|
+
});
|
|
1952
|
+
const qs = {};
|
|
1953
|
+
Object.assign(qs, options);
|
|
1954
|
+
const response = await GenericFunctions_1.googleApiRequest.call(this, 'GET', `/drive/v3/drives/${driveId}`, {}, qs);
|
|
1955
|
+
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
|
|
1956
|
+
returnData.push(...executionData);
|
|
1957
|
+
}
|
|
1958
|
+
if (operation === 'list') {
|
|
1959
|
+
const returnAll = this.getNodeParameter('returnAll', i);
|
|
1960
|
+
const qs = {};
|
|
1961
|
+
let response = [];
|
|
1962
|
+
Object.assign(qs, options);
|
|
1963
|
+
if (returnAll) {
|
|
1964
|
+
response = await GenericFunctions_1.googleApiRequestAllItems.call(this, 'drives', 'GET', '/drive/v3/drives', {}, qs);
|
|
1965
|
+
}
|
|
1966
|
+
else {
|
|
1967
|
+
qs.pageSize = this.getNodeParameter('limit', i);
|
|
1968
|
+
const data = await GenericFunctions_1.googleApiRequest.call(this, 'GET', '/drive/v3/drives', {}, qs);
|
|
1969
|
+
response = data.drives;
|
|
1970
|
+
}
|
|
1971
|
+
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
|
|
1972
|
+
returnData.push(...executionData);
|
|
1973
|
+
}
|
|
1974
|
+
if (operation === 'update') {
|
|
1975
|
+
const driveId = this.getNodeParameter('driveId', i, undefined, {
|
|
1976
|
+
extractValue: true,
|
|
1977
|
+
});
|
|
1978
|
+
const body = {};
|
|
1979
|
+
Object.assign(body, options);
|
|
1980
|
+
const response = await GenericFunctions_1.googleApiRequest.call(this, 'PATCH', `/drive/v3/drives/${driveId}`, body);
|
|
1981
|
+
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
|
|
1982
|
+
returnData.push(...executionData);
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
if (resource === 'file') {
|
|
1986
|
+
if (operation === 'copy') {
|
|
1987
|
+
const fileId = this.getNodeParameter('fileId', i, undefined, {
|
|
1988
|
+
extractValue: true,
|
|
1989
|
+
});
|
|
1990
|
+
const body = {
|
|
1991
|
+
fields: queryFields,
|
|
1992
|
+
};
|
|
1993
|
+
const optionProperties = ['name', 'parents'];
|
|
1994
|
+
for (const propertyName of optionProperties) {
|
|
1995
|
+
if (options[propertyName] !== undefined) {
|
|
1996
|
+
body[propertyName] = options[propertyName];
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1999
|
+
const qs = {
|
|
2000
|
+
supportsAllDrives: true,
|
|
2001
|
+
};
|
|
2002
|
+
const response = await GenericFunctions_1.googleApiRequest.call(this, 'POST', `/drive/v3/files/${fileId}/copy`, body, qs);
|
|
2003
|
+
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
|
|
2004
|
+
returnData.push(...executionData);
|
|
2005
|
+
}
|
|
2006
|
+
else if (operation === 'download') {
|
|
2007
|
+
const fileId = this.getNodeParameter('fileId', i, undefined, {
|
|
2008
|
+
extractValue: true,
|
|
2009
|
+
});
|
|
2010
|
+
const downloadOptions = this.getNodeParameter('options', i);
|
|
2011
|
+
const requestOptions = {
|
|
2012
|
+
useStream: true,
|
|
2013
|
+
resolveWithFullResponse: true,
|
|
2014
|
+
encoding: null,
|
|
2015
|
+
json: false,
|
|
2016
|
+
};
|
|
2017
|
+
const file = await GenericFunctions_1.googleApiRequest.call(this, 'GET', `/drive/v3/files/${fileId}`, {}, { fields: 'mimeType,name', supportsTeamDrives: true });
|
|
2018
|
+
let response;
|
|
2019
|
+
if (file.mimeType.includes('vnd.google-apps')) {
|
|
2020
|
+
const parameterKey = 'options.googleFileConversion.conversion';
|
|
2021
|
+
const type = file.mimeType.split('.')[2];
|
|
2022
|
+
let mime;
|
|
2023
|
+
if (type === 'document') {
|
|
2024
|
+
mime = this.getNodeParameter(`${parameterKey}.docsToFormat`, i, 'application/vnd.openxmlformats-officedocument.wordprocessingml.document');
|
|
2025
|
+
}
|
|
2026
|
+
else if (type === 'presentation') {
|
|
2027
|
+
mime = this.getNodeParameter(`${parameterKey}.slidesToFormat`, i, 'application/vnd.openxmlformats-officedocument.presentationml.presentation');
|
|
2028
|
+
}
|
|
2029
|
+
else if (type === 'spreadsheet') {
|
|
2030
|
+
mime = this.getNodeParameter(`${parameterKey}.sheetsToFormat`, i, 'application/x-vnd.oasis.opendocument.spreadsheet');
|
|
2031
|
+
}
|
|
2032
|
+
else {
|
|
2033
|
+
mime = this.getNodeParameter(`${parameterKey}.drawingsToFormat`, i, 'image/jpeg');
|
|
2034
|
+
}
|
|
2035
|
+
response = await GenericFunctions_1.googleApiRequest.call(this, 'GET', `/drive/v3/files/${fileId}/export`, {}, { mimeType: mime }, undefined, requestOptions);
|
|
2036
|
+
}
|
|
2037
|
+
else {
|
|
2038
|
+
response = await GenericFunctions_1.googleApiRequest.call(this, 'GET', `/drive/v3/files/${fileId}`, {}, { alt: 'media' }, undefined, requestOptions);
|
|
2039
|
+
}
|
|
2040
|
+
const mimeType = (_b = (_a = response.headers['content-type']) !== null && _a !== void 0 ? _a : file.mimeType) !== null && _b !== void 0 ? _b : undefined;
|
|
2041
|
+
const fileName = (_d = (_c = downloadOptions.fileName) !== null && _c !== void 0 ? _c : file.name) !== null && _d !== void 0 ? _d : undefined;
|
|
2042
|
+
const newItem = {
|
|
2043
|
+
json: items[i].json,
|
|
2044
|
+
binary: {},
|
|
2045
|
+
};
|
|
2046
|
+
if (items[i].binary !== undefined) {
|
|
2047
|
+
Object.assign(newItem.binary, items[i].binary);
|
|
2048
|
+
}
|
|
2049
|
+
items[i] = newItem;
|
|
2050
|
+
const dataPropertyNameDownload = this.getNodeParameter('binaryPropertyName', i);
|
|
2051
|
+
items[i].binary[dataPropertyNameDownload] = await this.helpers.prepareBinaryData(response.body, fileName, mimeType);
|
|
2052
|
+
}
|
|
2053
|
+
else if (operation === 'list') {
|
|
2054
|
+
let querySpaces = '';
|
|
2055
|
+
if (options.spaces) {
|
|
2056
|
+
const spaces = options.spaces;
|
|
2057
|
+
if (spaces.includes('*')) {
|
|
2058
|
+
querySpaces = 'appDataFolder, drive, photos';
|
|
2059
|
+
}
|
|
2060
|
+
else {
|
|
2061
|
+
querySpaces = spaces.join(', ');
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
let queryCorpora = '';
|
|
2065
|
+
if (options.corpora) {
|
|
2066
|
+
queryCorpora = options.corpora;
|
|
2067
|
+
}
|
|
2068
|
+
let driveId;
|
|
2069
|
+
driveId = options.driveId;
|
|
2070
|
+
if (driveId === '') {
|
|
2071
|
+
driveId = undefined;
|
|
2072
|
+
}
|
|
2073
|
+
let queryString = '';
|
|
2074
|
+
const useQueryString = this.getNodeParameter('useQueryString', i);
|
|
2075
|
+
if (useQueryString) {
|
|
2076
|
+
queryString = this.getNodeParameter('queryString', i);
|
|
2077
|
+
}
|
|
2078
|
+
else {
|
|
2079
|
+
const queryFilters = this.getNodeParameter('queryFilters', i);
|
|
2080
|
+
const queryFilterFields = [];
|
|
2081
|
+
if (queryFilters.name) {
|
|
2082
|
+
queryFilters.name.forEach((nameFilter) => {
|
|
2083
|
+
let filterOperation = nameFilter.operation;
|
|
2084
|
+
if (filterOperation === 'is') {
|
|
2085
|
+
filterOperation = '=';
|
|
2086
|
+
}
|
|
2087
|
+
else if (filterOperation === 'isNot') {
|
|
2088
|
+
filterOperation = '!=';
|
|
2089
|
+
}
|
|
2090
|
+
queryFilterFields.push(`name ${filterOperation} '${nameFilter.value}'`);
|
|
2091
|
+
});
|
|
2092
|
+
queryString += queryFilterFields.join(' or ');
|
|
2093
|
+
}
|
|
2094
|
+
queryFilterFields.length = 0;
|
|
2095
|
+
if (queryFilters.mimeType) {
|
|
2096
|
+
queryFilters.mimeType.forEach((mimeTypeFilter) => {
|
|
2097
|
+
let mimeType = mimeTypeFilter.mimeType;
|
|
2098
|
+
if (mimeTypeFilter.mimeType === 'custom') {
|
|
2099
|
+
mimeType = mimeTypeFilter.customMimeType;
|
|
2100
|
+
}
|
|
2101
|
+
queryFilterFields.push(`mimeType = '${mimeType}'`);
|
|
2102
|
+
});
|
|
2103
|
+
if (queryFilterFields.length) {
|
|
2104
|
+
if (queryString !== '') {
|
|
2105
|
+
queryString += ' and ';
|
|
2106
|
+
}
|
|
2107
|
+
queryString += queryFilterFields.join(' or ');
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2111
|
+
const pageSize = this.getNodeParameter('limit', i);
|
|
2112
|
+
const qs = {
|
|
2113
|
+
pageSize,
|
|
2114
|
+
orderBy: 'modifiedTime',
|
|
2115
|
+
fields: `nextPageToken, files(${queryFields})`,
|
|
2116
|
+
spaces: querySpaces,
|
|
2117
|
+
q: queryString,
|
|
2118
|
+
includeItemsFromAllDrives: queryCorpora !== '' || driveId !== '',
|
|
2119
|
+
supportsAllDrives: queryCorpora !== '' || driveId !== '',
|
|
2120
|
+
};
|
|
2121
|
+
const response = await GenericFunctions_1.googleApiRequest.call(this, 'GET', '/drive/v3/files', {}, qs);
|
|
2122
|
+
const files = response.files;
|
|
2123
|
+
const version = this.getNode().typeVersion;
|
|
2124
|
+
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(files), { itemData: { item: i } });
|
|
2125
|
+
if (version === 1) {
|
|
2126
|
+
return [executionData];
|
|
2127
|
+
}
|
|
2128
|
+
returnData.push(...executionData);
|
|
2129
|
+
}
|
|
2130
|
+
else if (operation === 'upload') {
|
|
2131
|
+
const resolveData = this.getNodeParameter('resolveData', 0);
|
|
2132
|
+
let contentLength;
|
|
2133
|
+
let fileContent;
|
|
2134
|
+
let originalFilename;
|
|
2135
|
+
let mimeType = 'text/plain';
|
|
2136
|
+
if (this.getNodeParameter('binaryData', i)) {
|
|
2137
|
+
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', i);
|
|
2138
|
+
const binaryData = this.helpers.assertBinaryData(i, binaryPropertyName);
|
|
2139
|
+
if (binaryData.id) {
|
|
2140
|
+
fileContent = this.helpers.getBinaryStream(binaryData.id, UPLOAD_CHUNK_SIZE);
|
|
2141
|
+
const metadata = await this.helpers.getBinaryMetadata(binaryData.id);
|
|
2142
|
+
contentLength = metadata.fileSize;
|
|
2143
|
+
originalFilename = metadata.fileName;
|
|
2144
|
+
if (metadata.mimeType)
|
|
2145
|
+
mimeType = binaryData.mimeType;
|
|
2146
|
+
}
|
|
2147
|
+
else {
|
|
2148
|
+
fileContent = Buffer.from(binaryData.data, n8n_workflow_1.BINARY_ENCODING);
|
|
2149
|
+
contentLength = fileContent.length;
|
|
2150
|
+
originalFilename = binaryData.fileName;
|
|
2151
|
+
mimeType = binaryData.mimeType;
|
|
2152
|
+
}
|
|
2153
|
+
}
|
|
2154
|
+
else {
|
|
2155
|
+
fileContent = Buffer.from(this.getNodeParameter('fileContent', i), 'utf8');
|
|
2156
|
+
contentLength = fileContent.byteLength;
|
|
2157
|
+
}
|
|
2158
|
+
const name = this.getNodeParameter('name', i);
|
|
2159
|
+
const parents = this.getNodeParameter('parents', i);
|
|
2160
|
+
let uploadId;
|
|
2161
|
+
if (Buffer.isBuffer(fileContent)) {
|
|
2162
|
+
const response = await GenericFunctions_1.googleApiRequest.call(this, 'POST', '/upload/drive/v3/files', fileContent, {
|
|
2163
|
+
fields: queryFields,
|
|
2164
|
+
uploadType: 'media',
|
|
2165
|
+
}, undefined, {
|
|
2166
|
+
headers: {
|
|
2167
|
+
'Content-Type': mimeType,
|
|
2168
|
+
'Content-Length': contentLength,
|
|
2169
|
+
},
|
|
2170
|
+
encoding: null,
|
|
2171
|
+
json: false,
|
|
2172
|
+
});
|
|
2173
|
+
uploadId = JSON.parse(response).id;
|
|
2174
|
+
}
|
|
2175
|
+
else {
|
|
2176
|
+
const resumableUpload = await GenericFunctions_1.googleApiRequest.call(this, 'POST', '/upload/drive/v3/files', undefined, { uploadType: 'resumable' }, undefined, {
|
|
2177
|
+
resolveWithFullResponse: true,
|
|
2178
|
+
});
|
|
2179
|
+
const uploadUrl = resumableUpload.headers.location;
|
|
2180
|
+
let offset = 0;
|
|
2181
|
+
for await (const chunk of fileContent) {
|
|
2182
|
+
const nextOffset = offset + Number(chunk.length);
|
|
2183
|
+
try {
|
|
2184
|
+
const response = await this.helpers.httpRequest({
|
|
2185
|
+
method: 'PUT',
|
|
2186
|
+
url: uploadUrl,
|
|
2187
|
+
headers: {
|
|
2188
|
+
'Content-Length': chunk.length,
|
|
2189
|
+
'Content-Range': `bytes ${offset}-${nextOffset - 1}/${contentLength}`,
|
|
2190
|
+
},
|
|
2191
|
+
body: chunk,
|
|
2192
|
+
});
|
|
2193
|
+
uploadId = response.id;
|
|
2194
|
+
}
|
|
2195
|
+
catch (error) {
|
|
2196
|
+
if (((_e = error.response) === null || _e === void 0 ? void 0 : _e.status) !== 308)
|
|
2197
|
+
throw error;
|
|
2198
|
+
}
|
|
2199
|
+
offset = nextOffset;
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
const requestBody = {
|
|
2203
|
+
mimeType,
|
|
2204
|
+
name,
|
|
2205
|
+
originalFilename,
|
|
2206
|
+
};
|
|
2207
|
+
const properties = this.getNodeParameter('options.propertiesUi.propertyValues', i, []);
|
|
2208
|
+
if (properties.length) {
|
|
2209
|
+
Object.assign(requestBody, {
|
|
2210
|
+
properties: properties.reduce((obj, value) => Object.assign(obj, { [`${value.key}`]: value.value }), {}),
|
|
2211
|
+
});
|
|
2212
|
+
}
|
|
2213
|
+
const appProperties = this.getNodeParameter('options.appPropertiesUi.appPropertyValues', i, []);
|
|
2214
|
+
if (properties.length) {
|
|
2215
|
+
Object.assign(requestBody, {
|
|
2216
|
+
appProperties: appProperties.reduce((obj, value) => Object.assign(obj, { [`${value.key}`]: value.value }), {}),
|
|
2217
|
+
});
|
|
2218
|
+
}
|
|
2219
|
+
let response = await GenericFunctions_1.googleApiRequest.call(this, 'PATCH', `/drive/v3/files/${uploadId}`, requestBody, {
|
|
2220
|
+
addParents: parents.join(','),
|
|
2221
|
+
supportsAllDrives: true,
|
|
2222
|
+
});
|
|
2223
|
+
if (resolveData) {
|
|
2224
|
+
response = await GenericFunctions_1.googleApiRequest.call(this, 'GET', `/drive/v3/files/${response.id}`, {}, { fields: '*' });
|
|
2225
|
+
}
|
|
2226
|
+
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
|
|
2227
|
+
returnData.push(...executionData);
|
|
2228
|
+
}
|
|
2229
|
+
else if (operation === 'update') {
|
|
2230
|
+
const id = this.getNodeParameter('fileId', i, undefined, {
|
|
2231
|
+
extractValue: true,
|
|
2232
|
+
});
|
|
2233
|
+
const updateFields = this.getNodeParameter('updateFields', i, {});
|
|
2234
|
+
const qs = {
|
|
2235
|
+
supportsAllDrives: true,
|
|
2236
|
+
};
|
|
2237
|
+
Object.assign(qs, options);
|
|
2238
|
+
qs.fields = queryFields;
|
|
2239
|
+
const body = {};
|
|
2240
|
+
if (updateFields.fileName) {
|
|
2241
|
+
body.name = updateFields.fileName;
|
|
2242
|
+
}
|
|
2243
|
+
if (updateFields.hasOwnProperty('trashed')) {
|
|
2244
|
+
body.trashed = updateFields.trashed;
|
|
2245
|
+
}
|
|
2246
|
+
if (updateFields.parentId && updateFields.parentId !== '') {
|
|
2247
|
+
qs.addParents = updateFields.parentId;
|
|
2248
|
+
}
|
|
2249
|
+
const responseData = await GenericFunctions_1.googleApiRequest.call(this, 'PATCH', `/drive/v3/files/${id}`, body, qs);
|
|
2250
|
+
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: i } });
|
|
2251
|
+
returnData.push(...executionData);
|
|
2252
|
+
}
|
|
2253
|
+
}
|
|
2254
|
+
if (resource === 'folder') {
|
|
2255
|
+
if (operation === 'create') {
|
|
2256
|
+
const name = this.getNodeParameter('name', i);
|
|
2257
|
+
const body = {
|
|
2258
|
+
name,
|
|
2259
|
+
mimeType: 'application/vnd.google-apps.folder',
|
|
2260
|
+
parents: options.parents || [],
|
|
2261
|
+
};
|
|
2262
|
+
const qs = {
|
|
2263
|
+
fields: queryFields,
|
|
2264
|
+
supportsAllDrives: true,
|
|
2265
|
+
};
|
|
2266
|
+
const response = await GenericFunctions_1.googleApiRequest.call(this, 'POST', '/drive/v3/files', body, qs);
|
|
2267
|
+
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
|
|
2268
|
+
returnData.push(...executionData);
|
|
2269
|
+
}
|
|
2270
|
+
}
|
|
2271
|
+
if (['file', 'folder'].includes(resource)) {
|
|
2272
|
+
if (operation === 'delete') {
|
|
2273
|
+
const fileId = this.getNodeParameter('fileId', i, undefined, {
|
|
2274
|
+
extractValue: true,
|
|
2275
|
+
});
|
|
2276
|
+
await GenericFunctions_1.googleApiRequest.call(this, 'DELETE', `/drive/v3/files/${fileId}`, {}, { supportsTeamDrives: true });
|
|
2277
|
+
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray({
|
|
2278
|
+
fileId,
|
|
2279
|
+
success: true,
|
|
2280
|
+
}), { itemData: { item: i } });
|
|
2281
|
+
returnData.push(...executionData);
|
|
2282
|
+
}
|
|
2283
|
+
if (operation === 'share') {
|
|
2284
|
+
const fileId = this.getNodeParameter('fileId', i, undefined, {
|
|
2285
|
+
extractValue: true,
|
|
2286
|
+
});
|
|
2287
|
+
const permissions = this.getNodeParameter('permissionsUi', i);
|
|
2288
|
+
const shareOption = this.getNodeParameter('options', i);
|
|
2289
|
+
const body = {};
|
|
2290
|
+
const qs = {
|
|
2291
|
+
supportsTeamDrives: true,
|
|
2292
|
+
};
|
|
2293
|
+
if (permissions.permissionsValues) {
|
|
2294
|
+
Object.assign(body, permissions.permissionsValues);
|
|
2295
|
+
}
|
|
2296
|
+
Object.assign(qs, shareOption);
|
|
2297
|
+
const response = await GenericFunctions_1.googleApiRequest.call(this, 'POST', `/drive/v3/files/${fileId}/permissions`, body, qs);
|
|
2298
|
+
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
|
|
2299
|
+
returnData.push(...executionData);
|
|
2300
|
+
}
|
|
2301
|
+
}
|
|
2302
|
+
}
|
|
2303
|
+
catch (error) {
|
|
2304
|
+
if (this.continueOnFail()) {
|
|
2305
|
+
if (resource === 'file' && operation === 'download') {
|
|
2306
|
+
items[i].json = { error: error.message };
|
|
2307
|
+
}
|
|
2308
|
+
else {
|
|
2309
|
+
returnData.push({ json: { error: error.message } });
|
|
2310
|
+
}
|
|
2311
|
+
continue;
|
|
2312
|
+
}
|
|
2313
|
+
throw error;
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
if (resource === 'file' && operation === 'download') {
|
|
2317
|
+
return this.prepareOutputData(items);
|
|
2318
|
+
}
|
|
2319
|
+
else {
|
|
2320
|
+
return this.prepareOutputData(returnData);
|
|
2321
|
+
}
|
|
2322
|
+
}
|
|
2323
|
+
}
|
|
2324
|
+
exports.GoogleDriveV1 = GoogleDriveV1;
|
|
2325
|
+
//# sourceMappingURL=GoogleDriveV1.node.js.map
|