n8n-nodes-base 0.234.0 → 1.0.1
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/GoogleDriveOAuth2Api.credentials.js +0 -6
- package/dist/credentials/GoogleDriveOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/{BrevoApi.credentials.d.ts → SendInBlueApi.credentials.d.ts} +1 -1
- package/dist/credentials/{BrevoApi.credentials.js → SendInBlueApi.credentials.js} +7 -7
- package/dist/credentials/SendInBlueApi.credentials.js.map +1 -0
- package/dist/credentials/TwitterOAuth1Api.credentials.js +0 -6
- package/dist/credentials/TwitterOAuth1Api.credentials.js.map +1 -1
- package/dist/known/credentials.json +11 -35
- package/dist/known/nodes.json +8 -16
- package/dist/nodes/Code/Code.node.js +1 -2
- package/dist/nodes/Code/Code.node.js.map +1 -1
- package/dist/nodes/CompareDatasets/CompareDatasets.node.js +2 -1
- package/dist/nodes/CompareDatasets/CompareDatasets.node.js.map +1 -1
- package/dist/nodes/CompareDatasets/test/node/workflow.compareDatasets.forceInputNodeExecution.json +211 -0
- package/dist/nodes/Google/Drive/{v1/GenericFunctions.js → GenericFunctions.js} +1 -1
- package/dist/nodes/Google/Drive/GenericFunctions.js.map +1 -0
- package/dist/nodes/Google/Drive/GoogleDrive.node.d.ts +12 -3
- package/dist/nodes/Google/Drive/GoogleDrive.node.js +2301 -10
- 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/SearchFunctions.js.map +1 -0
- package/dist/nodes/GraphQL/GraphQL.node.js +0 -32
- package/dist/nodes/GraphQL/GraphQL.node.js.map +1 -1
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js +0 -22
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js.map +1 -1
- package/dist/nodes/ItemLists/ItemLists.node.js +1 -3
- package/dist/nodes/ItemLists/ItemLists.node.js.map +1 -1
- package/dist/nodes/Matrix/GenericFunctions.js +2 -8
- package/dist/nodes/Matrix/GenericFunctions.js.map +1 -1
- package/dist/nodes/Matrix/MediaDescription.js +1 -23
- package/dist/nodes/Matrix/MediaDescription.js.map +1 -1
- package/dist/nodes/Merge/Merge.node.js +1 -0
- package/dist/nodes/Merge/Merge.node.js.map +1 -1
- package/dist/nodes/Merge/test/node/workflow.mixed.forceInputNodeExecution.json +2440 -0
- package/dist/nodes/Merge/test/node/workflow.mixed.not.forceInputNodeExecution.json +2378 -0
- package/dist/nodes/Merge/v2/MergeV2.node.js +21 -1
- package/dist/nodes/Merge/v2/MergeV2.node.js.map +1 -1
- package/dist/nodes/Microsoft/ToDo/MicrosoftToDo.node.js +0 -7
- package/dist/nodes/Microsoft/ToDo/MicrosoftToDo.node.js.map +1 -1
- package/dist/nodes/Microsoft/ToDo/TaskDescription.js +0 -7
- package/dist/nodes/Microsoft/ToDo/TaskDescription.js.map +1 -1
- package/dist/nodes/Notion/DatabasePageDescription.js +0 -41
- package/dist/nodes/Notion/DatabasePageDescription.js.map +1 -1
- package/dist/nodes/Notion/v2/NotionV2.node.js +0 -9
- package/dist/nodes/Notion/v2/NotionV2.node.js.map +1 -1
- package/dist/nodes/Salesforce/ContactDescription.js +3 -3
- package/dist/nodes/Salesforce/ContactDescription.js.map +1 -1
- package/dist/nodes/{Brevo → SendInBlue}/AttributeDescription.js +1 -1
- package/dist/nodes/SendInBlue/AttributeDescription.js.map +1 -0
- package/dist/nodes/SendInBlue/ContactDescription.js.map +1 -0
- package/dist/nodes/{Brevo → SendInBlue}/EmailDescription.js +10 -10
- package/dist/nodes/SendInBlue/EmailDescription.js.map +1 -0
- package/dist/nodes/{Brevo → SendInBlue}/GenericFunctions.d.ts +2 -2
- package/dist/nodes/{Brevo → SendInBlue}/GenericFunctions.js +14 -14
- package/dist/nodes/SendInBlue/GenericFunctions.js.map +1 -0
- package/dist/nodes/{Brevo/Brevo.node.d.ts → SendInBlue/SendInBlue.node.d.ts} +1 -1
- package/dist/nodes/{Brevo/Brevo.node.js → SendInBlue/SendInBlue.node.js} +9 -9
- package/dist/nodes/SendInBlue/SendInBlue.node.js.map +1 -0
- package/dist/nodes/{Brevo/Brevo.node.json → SendInBlue/SendInBlue.node.json} +4 -5
- package/dist/nodes/{Brevo/BrevoTrigger.node.d.ts → SendInBlue/SendInBlueTrigger.node.d.ts} +1 -1
- package/dist/nodes/{Brevo/BrevoTrigger.node.js → SendInBlue/SendInBlueTrigger.node.js} +11 -11
- package/dist/nodes/SendInBlue/SendInBlueTrigger.node.js.map +1 -0
- package/dist/nodes/{Brevo/BrevoTrigger.node.json → SendInBlue/SendInBlueTrigger.node.json} +4 -5
- package/dist/nodes/SendInBlue/SenderDescrition.js.map +1 -0
- package/dist/nodes/SendInBlue/sendinblue.svg +20 -0
- package/dist/nodes/Strava/ActivityDescription.js +0 -7
- package/dist/nodes/Strava/ActivityDescription.js.map +1 -1
- package/dist/nodes/Strava/Strava.node.js +6 -0
- package/dist/nodes/Strava/Strava.node.js.map +1 -1
- package/dist/nodes/Twitter/DirectMessageDescription.js.map +1 -0
- package/dist/nodes/Twitter/GenericFunctions.js.map +1 -0
- package/dist/nodes/Twitter/TweetDescription.js.map +1 -0
- package/dist/nodes/Twitter/TweetInterface.js.map +1 -0
- package/dist/nodes/Twitter/Twitter.node.d.ts +9 -3
- package/dist/nodes/Twitter/Twitter.node.js +224 -12
- package/dist/nodes/Twitter/Twitter.node.js.map +1 -1
- package/dist/nodes/Twitter/Twitter.node.json +1 -2
- package/dist/nodes/Wait/Wait.node.d.ts +4 -7
- package/dist/nodes/Wait/Wait.node.js +499 -77
- package/dist/nodes/Wait/Wait.node.js.map +1 -1
- package/dist/nodes/Webhook/Webhook.node.d.ts +3 -8
- package/dist/nodes/Webhook/Webhook.node.js +460 -148
- package/dist/nodes/Webhook/Webhook.node.js.map +1 -1
- package/dist/types/credentials.json +3 -6
- package/dist/types/nodes.json +21 -26
- package/package.json +6 -12
- package/dist/credentials/BrevoApi.credentials.js.map +0 -1
- package/dist/credentials/CrowdDevApi.credentials.d.ts +0 -9
- package/dist/credentials/CrowdDevApi.credentials.js +0 -62
- package/dist/credentials/CrowdDevApi.credentials.js.map +0 -1
- package/dist/credentials/HttpCustomAuth.credentials.d.ts +0 -9
- package/dist/credentials/HttpCustomAuth.credentials.js +0 -25
- package/dist/credentials/HttpCustomAuth.credentials.js.map +0 -1
- package/dist/credentials/TwitterOAuth2Api.credentials.d.ts +0 -8
- package/dist/credentials/TwitterOAuth2Api.credentials.js +0 -73
- package/dist/credentials/TwitterOAuth2Api.credentials.js.map +0 -1
- package/dist/nodes/Brevo/AttributeDescription.js.map +0 -1
- package/dist/nodes/Brevo/Brevo.node.js.map +0 -1
- package/dist/nodes/Brevo/BrevoTrigger.node.js.map +0 -1
- package/dist/nodes/Brevo/ContactDescription.js.map +0 -1
- package/dist/nodes/Brevo/EmailDescription.js.map +0 -1
- package/dist/nodes/Brevo/GenericFunctions.js.map +0 -1
- package/dist/nodes/Brevo/SenderDescrition.js.map +0 -1
- package/dist/nodes/Brevo/brevo.svg +0 -4
- package/dist/nodes/CrowdDev/CrowdDev.node.d.ts +0 -4
- package/dist/nodes/CrowdDev/CrowdDev.node.js +0 -36
- package/dist/nodes/CrowdDev/CrowdDev.node.js.map +0 -1
- package/dist/nodes/CrowdDev/CrowdDev.node.json +0 -18
- package/dist/nodes/CrowdDev/CrowdDevTrigger.node.d.ts +0 -12
- package/dist/nodes/CrowdDev/CrowdDevTrigger.node.js +0 -145
- package/dist/nodes/CrowdDev/CrowdDevTrigger.node.js.map +0 -1
- package/dist/nodes/CrowdDev/CrowdDevTrigger.node.json +0 -18
- package/dist/nodes/CrowdDev/GenericFunctions.d.ts +0 -7
- package/dist/nodes/CrowdDev/GenericFunctions.js +0 -157
- package/dist/nodes/CrowdDev/GenericFunctions.js.map +0 -1
- package/dist/nodes/CrowdDev/crowdDev.svg +0 -15
- package/dist/nodes/CrowdDev/descriptions/activityFields.d.ts +0 -4
- package/dist/nodes/CrowdDev/descriptions/activityFields.js +0 -180
- package/dist/nodes/CrowdDev/descriptions/activityFields.js.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/automationFields.d.ts +0 -4
- package/dist/nodes/CrowdDev/descriptions/automationFields.js +0 -126
- package/dist/nodes/CrowdDev/descriptions/automationFields.js.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/index.d.ts +0 -2
- package/dist/nodes/CrowdDev/descriptions/index.js +0 -26
- package/dist/nodes/CrowdDev/descriptions/index.js.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/memberFields.d.ts +0 -4
- package/dist/nodes/CrowdDev/descriptions/memberFields.js +0 -291
- package/dist/nodes/CrowdDev/descriptions/memberFields.js.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/noteFields.d.ts +0 -4
- package/dist/nodes/CrowdDev/descriptions/noteFields.js +0 -90
- package/dist/nodes/CrowdDev/descriptions/noteFields.js.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/organizationFields.d.ts +0 -4
- package/dist/nodes/CrowdDev/descriptions/organizationFields.js +0 -146
- package/dist/nodes/CrowdDev/descriptions/organizationFields.js.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/resources.d.ts +0 -2
- package/dist/nodes/CrowdDev/descriptions/resources.js +0 -38
- package/dist/nodes/CrowdDev/descriptions/resources.js.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/shared.d.ts +0 -2
- package/dist/nodes/CrowdDev/descriptions/shared.js +0 -29
- package/dist/nodes/CrowdDev/descriptions/shared.js.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/taskFields.d.ts +0 -4
- package/dist/nodes/CrowdDev/descriptions/taskFields.js +0 -159
- package/dist/nodes/CrowdDev/descriptions/taskFields.js.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/utils.d.ts +0 -5
- package/dist/nodes/CrowdDev/descriptions/utils.js +0 -55
- package/dist/nodes/CrowdDev/descriptions/utils.js.map +0 -1
- package/dist/nodes/Google/Drive/test/v2/node/helpers.d.ts +0 -3
- package/dist/nodes/Google/Drive/test/v2/node/helpers.js +0 -34
- package/dist/nodes/Google/Drive/test/v2/node/helpers.js.map +0 -1
- package/dist/nodes/Google/Drive/v1/GenericFunctions.js.map +0 -1
- package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.d.ts +0 -14
- package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.js +0 -2324
- package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.js.map +0 -1
- package/dist/nodes/Google/Drive/v1/SearchFunctions.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/GoogleDriveV2.node.d.ts +0 -10
- package/dist/nodes/Google/Drive/v2/GoogleDriveV2.node.js +0 -20
- package/dist/nodes/Google/Drive/v2/GoogleDriveV2.node.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/common.descriptions.d.ts +0 -19
- package/dist/nodes/Google/Drive/v2/actions/common.descriptions.js +0 -598
- package/dist/nodes/Google/Drive/v2/actions/common.descriptions.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/drive/Drive.resource.d.ts +0 -8
- package/dist/nodes/Google/Drive/v2/actions/drive/Drive.resource.js +0 -88
- package/dist/nodes/Google/Drive/v2/actions/drive/Drive.resource.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/drive/create.operation.d.ts +0 -23
- package/dist/nodes/Google/Drive/v2/actions/drive/create.operation.js +0 -235
- package/dist/nodes/Google/Drive/v2/actions/drive/create.operation.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/drive/deleteDrive.operation.d.ts +0 -23
- package/dist/nodes/Google/Drive/v2/actions/drive/deleteDrive.operation.js +0 -31
- package/dist/nodes/Google/Drive/v2/actions/drive/deleteDrive.operation.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/drive/get.operation.d.ts +0 -23
- package/dist/nodes/Google/Drive/v2/actions/drive/get.operation.js +0 -50
- package/dist/nodes/Google/Drive/v2/actions/drive/get.operation.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/drive/list.operation.d.ts +0 -23
- package/dist/nodes/Google/Drive/v2/actions/drive/list.operation.js +0 -81
- package/dist/nodes/Google/Drive/v2/actions/drive/list.operation.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/drive/update.operation.d.ts +0 -23
- package/dist/nodes/Google/Drive/v2/actions/drive/update.operation.js +0 -100
- package/dist/nodes/Google/Drive/v2/actions/drive/update.operation.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/file/File.resource.d.ts +0 -11
- package/dist/nodes/Google/Drive/v2/actions/file/File.resource.js +0 -115
- package/dist/nodes/Google/Drive/v2/actions/file/File.resource.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/file/copy.operation.d.ts +0 -23
- package/dist/nodes/Google/Drive/v2/actions/file/copy.operation.js +0 -104
- package/dist/nodes/Google/Drive/v2/actions/file/copy.operation.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/file/createFromText.operation.d.ts +0 -23
- package/dist/nodes/Google/Drive/v2/actions/file/createFromText.operation.js +0 -134
- package/dist/nodes/Google/Drive/v2/actions/file/createFromText.operation.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/file/deleteFile.operation.d.ts +0 -23
- package/dist/nodes/Google/Drive/v2/actions/file/deleteFile.operation.js +0 -57
- package/dist/nodes/Google/Drive/v2/actions/file/deleteFile.operation.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/file/download.operation.d.ts +0 -23
- package/dist/nodes/Google/Drive/v2/actions/file/download.operation.js +0 -218
- package/dist/nodes/Google/Drive/v2/actions/file/download.operation.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/file/move.operation.d.ts +0 -23
- package/dist/nodes/Google/Drive/v2/actions/file/move.operation.js +0 -60
- package/dist/nodes/Google/Drive/v2/actions/file/move.operation.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/file/share.operation.d.ts +0 -23
- package/dist/nodes/Google/Drive/v2/actions/file/share.operation.js +0 -43
- package/dist/nodes/Google/Drive/v2/actions/file/share.operation.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/file/update.operation.d.ts +0 -23
- package/dist/nodes/Google/Drive/v2/actions/file/update.operation.js +0 -221
- package/dist/nodes/Google/Drive/v2/actions/file/update.operation.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/file/upload.operation.d.ts +0 -23
- package/dist/nodes/Google/Drive/v2/actions/file/upload.operation.js +0 -135
- package/dist/nodes/Google/Drive/v2/actions/file/upload.operation.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/FileFolder.resource.d.ts +0 -4
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/FileFolder.resource.js +0 -52
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/FileFolder.resource.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/search.operation.d.ts +0 -23
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/search.operation.js +0 -335
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/search.operation.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/folder/Folder.resource.d.ts +0 -6
- package/dist/nodes/Google/Drive/v2/actions/folder/Folder.resource.js +0 -70
- package/dist/nodes/Google/Drive/v2/actions/folder/Folder.resource.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/folder/create.operation.d.ts +0 -23
- package/dist/nodes/Google/Drive/v2/actions/folder/create.operation.js +0 -92
- package/dist/nodes/Google/Drive/v2/actions/folder/create.operation.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/folder/deleteFolder.operation.d.ts +0 -23
- package/dist/nodes/Google/Drive/v2/actions/folder/deleteFolder.operation.js +0 -59
- package/dist/nodes/Google/Drive/v2/actions/folder/deleteFolder.operation.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/folder/share.operation.d.ts +0 -23
- package/dist/nodes/Google/Drive/v2/actions/folder/share.operation.js +0 -43
- package/dist/nodes/Google/Drive/v2/actions/folder/share.operation.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/node.type.d.ts +0 -9
- package/dist/nodes/Google/Drive/v2/actions/node.type.js +0 -3
- package/dist/nodes/Google/Drive/v2/actions/node.type.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/router.d.ts +0 -2
- package/dist/nodes/Google/Drive/v2/actions/router.js +0 -76
- package/dist/nodes/Google/Drive/v2/actions/router.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/actions/versionDescription.d.ts +0 -2
- package/dist/nodes/Google/Drive/v2/actions/versionDescription.js +0 -112
- package/dist/nodes/Google/Drive/v2/actions/versionDescription.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/helpers/interfaces.d.ts +0 -34
- package/dist/nodes/Google/Drive/v2/helpers/interfaces.js +0 -26
- package/dist/nodes/Google/Drive/v2/helpers/interfaces.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/helpers/utils.d.ts +0 -15
- package/dist/nodes/Google/Drive/v2/helpers/utils.js +0 -104
- package/dist/nodes/Google/Drive/v2/helpers/utils.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/methods/index.d.ts +0 -1
- package/dist/nodes/Google/Drive/v2/methods/index.js +0 -28
- package/dist/nodes/Google/Drive/v2/methods/index.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/methods/listSearch.d.ts +0 -6
- package/dist/nodes/Google/Drive/v2/methods/listSearch.js +0 -144
- package/dist/nodes/Google/Drive/v2/methods/listSearch.js.map +0 -1
- package/dist/nodes/Google/Drive/v2/transport/index.d.ts +0 -4
- package/dist/nodes/Google/Drive/v2/transport/index.js +0 -68
- package/dist/nodes/Google/Drive/v2/transport/index.js.map +0 -1
- package/dist/nodes/ItemLists/V3/ItemListsV3.node.d.ts +0 -6
- package/dist/nodes/ItemLists/V3/ItemListsV3.node.js +0 -18
- package/dist/nodes/ItemLists/V3/ItemListsV3.node.js.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/common.descriptions.d.ts +0 -2
- package/dist/nodes/ItemLists/V3/actions/common.descriptions.js +0 -11
- package/dist/nodes/ItemLists/V3/actions/common.descriptions.js.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.d.ts +0 -23
- package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.js +0 -303
- package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.js.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/itemList/index.d.ts +0 -9
- package/dist/nodes/ItemLists/V3/actions/itemList/index.js +0 -97
- package/dist/nodes/ItemLists/V3/actions/itemList/index.js.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.d.ts +0 -23
- package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.js +0 -57
- package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.js.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.d.ts +0 -23
- package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.js +0 -204
- package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.js.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.d.ts +0 -23
- package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.js +0 -262
- package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.js.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.d.ts +0 -23
- package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.js +0 -183
- package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.js.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.d.ts +0 -23
- package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.js +0 -491
- package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.js.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/node.type.d.ts +0 -6
- package/dist/nodes/ItemLists/V3/actions/node.type.js +0 -3
- package/dist/nodes/ItemLists/V3/actions/node.type.js.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/router.d.ts +0 -2
- package/dist/nodes/ItemLists/V3/actions/router.js +0 -53
- package/dist/nodes/ItemLists/V3/actions/router.js.map +0 -1
- package/dist/nodes/ItemLists/V3/actions/versionDescription.d.ts +0 -2
- package/dist/nodes/ItemLists/V3/actions/versionDescription.js +0 -58
- package/dist/nodes/ItemLists/V3/actions/versionDescription.js.map +0 -1
- package/dist/nodes/ItemLists/V3/helpers/utils.d.ts +0 -5
- package/dist/nodes/ItemLists/V3/helpers/utils.js +0 -57
- package/dist/nodes/ItemLists/V3/helpers/utils.js.map +0 -1
- package/dist/nodes/ItemLists/test/node/workflow.update_3.json +0 -606
- package/dist/nodes/Twitter/V1/DirectMessageDescription.js.map +0 -1
- package/dist/nodes/Twitter/V1/GenericFunctions.js.map +0 -1
- package/dist/nodes/Twitter/V1/TweetDescription.js.map +0 -1
- package/dist/nodes/Twitter/V1/TweetInterface.js.map +0 -1
- package/dist/nodes/Twitter/V1/TwitterV1.node.d.ts +0 -11
- package/dist/nodes/Twitter/V1/TwitterV1.node.js +0 -235
- package/dist/nodes/Twitter/V1/TwitterV1.node.js.map +0 -1
- package/dist/nodes/Twitter/V2/DirectMessageDescription.d.ts +0 -3
- package/dist/nodes/Twitter/V2/DirectMessageDescription.js +0 -100
- package/dist/nodes/Twitter/V2/DirectMessageDescription.js.map +0 -1
- package/dist/nodes/Twitter/V2/GenericFunctions.d.ts +0 -5
- package/dist/nodes/Twitter/V2/GenericFunctions.js +0 -88
- package/dist/nodes/Twitter/V2/GenericFunctions.js.map +0 -1
- package/dist/nodes/Twitter/V2/ListDescription.d.ts +0 -3
- package/dist/nodes/Twitter/V2/ListDescription.js +0 -92
- package/dist/nodes/Twitter/V2/ListDescription.js.map +0 -1
- package/dist/nodes/Twitter/V2/TweetDescription.d.ts +0 -3
- package/dist/nodes/Twitter/V2/TweetDescription.js +0 -452
- package/dist/nodes/Twitter/V2/TweetDescription.js.map +0 -1
- package/dist/nodes/Twitter/V2/TweetInterface.d.ts +0 -23
- package/dist/nodes/Twitter/V2/TweetInterface.js +0 -3
- package/dist/nodes/Twitter/V2/TweetInterface.js.map +0 -1
- package/dist/nodes/Twitter/V2/TwitterV2.node.d.ts +0 -11
- package/dist/nodes/Twitter/V2/TwitterV2.node.js +0 -245
- package/dist/nodes/Twitter/V2/TwitterV2.node.js.map +0 -1
- package/dist/nodes/Twitter/V2/UserDescription.d.ts +0 -3
- package/dist/nodes/Twitter/V2/UserDescription.js +0 -76
- package/dist/nodes/Twitter/V2/UserDescription.js.map +0 -1
- package/dist/nodes/Twitter/test/Workflow_Twitter_UnitTest.json +0 -284
- package/dist/nodes/Webhook/description.d.ts +0 -10
- package/dist/nodes/Webhook/description.js +0 -325
- package/dist/nodes/Webhook/description.js.map +0 -1
- package/dist/nodes/Webhook/error.d.ts +0 -4
- package/dist/nodes/Webhook/error.js +0 -20
- package/dist/nodes/Webhook/error.js.map +0 -1
- package/dist/package.json +0 -850
- package/dist/utils/constants.d.ts +0 -1
- package/dist/utils/constants.js +0 -7
- package/dist/utils/constants.js.map +0 -1
- /package/dist/nodes/Google/Drive/{v1/GenericFunctions.d.ts → GenericFunctions.d.ts} +0 -0
- /package/dist/nodes/Google/Drive/{v1/SearchFunctions.d.ts → SearchFunctions.d.ts} +0 -0
- /package/dist/nodes/Google/Drive/{v1/SearchFunctions.js → SearchFunctions.js} +0 -0
- /package/dist/nodes/{Brevo → SendInBlue}/AttributeDescription.d.ts +0 -0
- /package/dist/nodes/{Brevo → SendInBlue}/ContactDescription.d.ts +0 -0
- /package/dist/nodes/{Brevo → SendInBlue}/ContactDescription.js +0 -0
- /package/dist/nodes/{Brevo → SendInBlue}/EmailDescription.d.ts +0 -0
- /package/dist/nodes/{Brevo → SendInBlue}/SenderDescrition.d.ts +0 -0
- /package/dist/nodes/{Brevo → SendInBlue}/SenderDescrition.js +0 -0
- /package/dist/nodes/Twitter/{V1/DirectMessageDescription.d.ts → DirectMessageDescription.d.ts} +0 -0
- /package/dist/nodes/Twitter/{V1/DirectMessageDescription.js → DirectMessageDescription.js} +0 -0
- /package/dist/nodes/Twitter/{V1/GenericFunctions.d.ts → GenericFunctions.d.ts} +0 -0
- /package/dist/nodes/Twitter/{V1/GenericFunctions.js → GenericFunctions.js} +0 -0
- /package/dist/nodes/Twitter/{V1/TweetDescription.d.ts → TweetDescription.d.ts} +0 -0
- /package/dist/nodes/Twitter/{V1/TweetDescription.js → TweetDescription.js} +0 -0
- /package/dist/nodes/Twitter/{V1/TweetInterface.d.ts → TweetInterface.d.ts} +0 -0
- /package/dist/nodes/Twitter/{V1/TweetInterface.js → TweetInterface.js} +0 -0
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.execute = exports.description = void 0;
|
|
4
|
-
const utilities_1 = require("../../../../../../utils/utilities");
|
|
5
|
-
const transport_1 = require("../../transport");
|
|
6
|
-
const common_descriptions_1 = require("../common.descriptions");
|
|
7
|
-
const properties = [
|
|
8
|
-
{
|
|
9
|
-
...common_descriptions_1.sharedDriveRLC,
|
|
10
|
-
description: 'The shared drive to update',
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
displayName: 'Update Fields',
|
|
14
|
-
name: 'options',
|
|
15
|
-
type: 'collection',
|
|
16
|
-
placeholder: 'Add Option',
|
|
17
|
-
default: {},
|
|
18
|
-
displayOptions: {
|
|
19
|
-
show: {
|
|
20
|
-
operation: ['update'],
|
|
21
|
-
resource: ['drive'],
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
options: [
|
|
25
|
-
{
|
|
26
|
-
displayName: 'Color RGB',
|
|
27
|
-
name: 'colorRgb',
|
|
28
|
-
type: 'color',
|
|
29
|
-
default: '',
|
|
30
|
-
description: 'The color of this shared drive as an RGB hex string',
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
displayName: 'Name',
|
|
34
|
-
name: 'name',
|
|
35
|
-
type: 'string',
|
|
36
|
-
default: '',
|
|
37
|
-
description: 'The updated name of the shared drive',
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
displayName: 'Restrictions',
|
|
41
|
-
name: 'restrictions',
|
|
42
|
-
type: 'collection',
|
|
43
|
-
placeholder: 'Add Field',
|
|
44
|
-
default: {},
|
|
45
|
-
options: [
|
|
46
|
-
{
|
|
47
|
-
displayName: 'Admin Managed Restrictions',
|
|
48
|
-
name: 'adminManagedRestrictions',
|
|
49
|
-
type: 'boolean',
|
|
50
|
-
default: false,
|
|
51
|
-
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.',
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
displayName: 'Copy Requires Writer Permission',
|
|
55
|
-
name: 'copyRequiresWriterPermission',
|
|
56
|
-
type: 'boolean',
|
|
57
|
-
default: false,
|
|
58
|
-
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.',
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
displayName: 'Domain Users Only',
|
|
62
|
-
name: 'domainUsersOnly',
|
|
63
|
-
type: 'boolean',
|
|
64
|
-
default: false,
|
|
65
|
-
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.',
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
displayName: 'Drive Members Only',
|
|
69
|
-
name: 'driveMembersOnly',
|
|
70
|
-
type: 'boolean',
|
|
71
|
-
default: false,
|
|
72
|
-
description: 'Whether access to items inside this shared drive is restricted to its members',
|
|
73
|
-
},
|
|
74
|
-
],
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
},
|
|
78
|
-
];
|
|
79
|
-
const displayOptions = {
|
|
80
|
-
show: {
|
|
81
|
-
resource: ['drive'],
|
|
82
|
-
operation: ['update'],
|
|
83
|
-
},
|
|
84
|
-
};
|
|
85
|
-
exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
|
|
86
|
-
async function execute(i) {
|
|
87
|
-
const returnData = [];
|
|
88
|
-
const options = this.getNodeParameter('options', i, {});
|
|
89
|
-
const driveId = this.getNodeParameter('driveId', i, undefined, {
|
|
90
|
-
extractValue: true,
|
|
91
|
-
});
|
|
92
|
-
const body = {};
|
|
93
|
-
Object.assign(body, options);
|
|
94
|
-
const response = await transport_1.googleApiRequest.call(this, 'PATCH', `/drive/v3/drives/${driveId}`, body);
|
|
95
|
-
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
|
|
96
|
-
returnData.push(...executionData);
|
|
97
|
-
return returnData;
|
|
98
|
-
}
|
|
99
|
-
exports.execute = execute;
|
|
100
|
-
//# sourceMappingURL=update.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Drive/v2/actions/drive/update.operation.ts"],"names":[],"mappings":";;;AAGA,iEAAyE;AACzE,+CAAmD;AACnD,gEAAwD;AAExD,MAAM,UAAU,GAAsB;IACrC;QACC,GAAG,oCAAc;QACjB,WAAW,EAAE,4BAA4B;KACzC;IACD;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,QAAQ,CAAC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,QAAA,WAAW,GAAG,IAAA,gCAAoB,EAAC,cAAc,EAAE,UAAU,CAAC,CAAC;AAErE,KAAK,UAAU,OAAO,CAA0B,CAAS;IAC/D,MAAM,UAAU,GAAyB,EAAE,CAAC;IAC5C,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAExD,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE;QAC9D,YAAY,EAAE,IAAI;KAClB,CAAW,CAAC;IAEb,MAAM,IAAI,GAAgB,EAAE,CAAC;IAE7B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAE7B,MAAM,QAAQ,GAAG,MAAM,4BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,oBAAoB,OAAO,EAAE,EAAE,IAAI,CAAC,CAAC;IAEjG,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAC5D,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,QAAyB,CAAC,EACvD,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CACzB,CAAC;IAEF,UAAU,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;IAElC,OAAO,UAAU,CAAC;AACnB,CAAC;AAtBD,0BAsBC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { INodeProperties } from 'n8n-workflow';
|
|
2
|
-
import * as copy from './copy.operation';
|
|
3
|
-
import * as createFromText from './createFromText.operation';
|
|
4
|
-
import * as deleteFile from './deleteFile.operation';
|
|
5
|
-
import * as download from './download.operation';
|
|
6
|
-
import * as move from './move.operation';
|
|
7
|
-
import * as share from './share.operation';
|
|
8
|
-
import * as update from './update.operation';
|
|
9
|
-
import * as upload from './upload.operation';
|
|
10
|
-
export { copy, createFromText, deleteFile, download, move, share, update, upload };
|
|
11
|
-
export declare const description: INodeProperties[];
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.description = exports.upload = exports.update = exports.share = exports.move = exports.download = exports.deleteFile = exports.createFromText = exports.copy = void 0;
|
|
27
|
-
const copy = __importStar(require("./copy.operation"));
|
|
28
|
-
exports.copy = copy;
|
|
29
|
-
const createFromText = __importStar(require("./createFromText.operation"));
|
|
30
|
-
exports.createFromText = createFromText;
|
|
31
|
-
const deleteFile = __importStar(require("./deleteFile.operation"));
|
|
32
|
-
exports.deleteFile = deleteFile;
|
|
33
|
-
const download = __importStar(require("./download.operation"));
|
|
34
|
-
exports.download = download;
|
|
35
|
-
const move = __importStar(require("./move.operation"));
|
|
36
|
-
exports.move = move;
|
|
37
|
-
const share = __importStar(require("./share.operation"));
|
|
38
|
-
exports.share = share;
|
|
39
|
-
const update = __importStar(require("./update.operation"));
|
|
40
|
-
exports.update = update;
|
|
41
|
-
const upload = __importStar(require("./upload.operation"));
|
|
42
|
-
exports.upload = upload;
|
|
43
|
-
exports.description = [
|
|
44
|
-
{
|
|
45
|
-
displayName: 'Operation',
|
|
46
|
-
name: 'operation',
|
|
47
|
-
type: 'options',
|
|
48
|
-
noDataExpression: true,
|
|
49
|
-
displayOptions: {
|
|
50
|
-
show: {
|
|
51
|
-
resource: ['file'],
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
options: [
|
|
55
|
-
{
|
|
56
|
-
name: 'Copy',
|
|
57
|
-
value: 'copy',
|
|
58
|
-
description: 'Create a copy of an existing file',
|
|
59
|
-
action: 'Copy file',
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
name: 'Create From Text',
|
|
63
|
-
value: 'createFromText',
|
|
64
|
-
description: 'Create a file from a provided text',
|
|
65
|
-
action: 'Create file from text',
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
name: 'Delete',
|
|
69
|
-
value: 'deleteFile',
|
|
70
|
-
description: 'Permanently delete a file',
|
|
71
|
-
action: 'Delete a file',
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
name: 'Download',
|
|
75
|
-
value: 'download',
|
|
76
|
-
description: 'Download a file',
|
|
77
|
-
action: 'Download file',
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
name: 'Move',
|
|
81
|
-
value: 'move',
|
|
82
|
-
description: 'Move a file to another folder',
|
|
83
|
-
action: 'Move file',
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
name: 'Share',
|
|
87
|
-
value: 'share',
|
|
88
|
-
description: 'Add sharing permissions to a file',
|
|
89
|
-
action: 'Share file',
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
name: 'Update',
|
|
93
|
-
value: 'update',
|
|
94
|
-
description: 'Update a file',
|
|
95
|
-
action: 'Update file',
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
name: 'Upload',
|
|
99
|
-
value: 'upload',
|
|
100
|
-
description: 'Upload an existing file to Google Drive',
|
|
101
|
-
action: 'Upload file',
|
|
102
|
-
},
|
|
103
|
-
],
|
|
104
|
-
default: 'upload',
|
|
105
|
-
},
|
|
106
|
-
...copy.description,
|
|
107
|
-
...deleteFile.description,
|
|
108
|
-
...createFromText.description,
|
|
109
|
-
...download.description,
|
|
110
|
-
...move.description,
|
|
111
|
-
...share.description,
|
|
112
|
-
...update.description,
|
|
113
|
-
...upload.description,
|
|
114
|
-
];
|
|
115
|
-
//# sourceMappingURL=File.resource.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"File.resource.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Drive/v2/actions/file/File.resource.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uDAAyC;AAShC,oBAAI;AARb,2EAA6D;AAQ9C,wCAAc;AAP7B,mEAAqD;AAOtB,gCAAU;AANzC,+DAAiD;AAMN,4BAAQ;AALnD,uDAAyC;AAKY,oBAAI;AAJzD,yDAA2C;AAIgB,sBAAK;AAHhE,2DAA6C;AAGqB,wBAAM;AAFxE,2DAA6C;AAE6B,wBAAM;AAEnE,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;aAClB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;gBACb,WAAW,EAAE,mCAAmC;gBAChD,MAAM,EAAE,WAAW;aACnB;YACD;gBACC,IAAI,EAAE,kBAAkB;gBACxB,KAAK,EAAE,gBAAgB;gBACvB,WAAW,EAAE,oCAAoC;gBACjD,MAAM,EAAE,uBAAuB;aAC/B;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,2BAA2B;gBACxC,MAAM,EAAE,eAAe;aACvB;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,iBAAiB;gBAC9B,MAAM,EAAE,eAAe;aACvB;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;gBACb,WAAW,EAAE,+BAA+B;gBAC5C,MAAM,EAAE,WAAW;aACnB;YACD;gBACC,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,mCAAmC;gBAChD,MAAM,EAAE,YAAY;aACpB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,eAAe;gBAC5B,MAAM,EAAE,aAAa;aACrB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,yCAAyC;gBACtD,MAAM,EAAE,aAAa;aACrB;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD,GAAG,IAAI,CAAC,WAAW;IACnB,GAAG,UAAU,CAAC,WAAW;IACzB,GAAG,cAAc,CAAC,WAAW;IAC7B,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,IAAI,CAAC,WAAW;IACnB,GAAG,KAAK,CAAC,WAAW;IACpB,GAAG,MAAM,CAAC,WAAW;IACrB,GAAG,MAAM,CAAC,WAAW;CACrB,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { IExecuteFunctions } from 'n8n-core';
|
|
2
|
-
import type { INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
|
3
|
-
export declare const description: {
|
|
4
|
-
displayOptions: import("n8n-workflow").IDisplayOptions;
|
|
5
|
-
displayName: string;
|
|
6
|
-
name: string;
|
|
7
|
-
type: import("n8n-workflow").NodePropertyTypes;
|
|
8
|
-
typeOptions?: import("n8n-workflow").INodePropertyTypeOptions | undefined;
|
|
9
|
-
default: import("n8n-workflow").NodeParameterValueType;
|
|
10
|
-
description?: string | undefined;
|
|
11
|
-
hint?: string | undefined;
|
|
12
|
-
options?: (INodeProperties | import("n8n-workflow").INodePropertyOptions | import("n8n-workflow").INodePropertyCollection)[] | undefined;
|
|
13
|
-
placeholder?: string | undefined;
|
|
14
|
-
isNodeSetting?: boolean | undefined;
|
|
15
|
-
noDataExpression?: boolean | undefined;
|
|
16
|
-
required?: boolean | undefined;
|
|
17
|
-
routing?: import("n8n-workflow").INodePropertyRouting | undefined;
|
|
18
|
-
credentialTypes?: ("extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth")[] | undefined;
|
|
19
|
-
extractValue?: import("n8n-workflow").INodePropertyValueExtractorRegex | undefined;
|
|
20
|
-
modes?: import("n8n-workflow").INodePropertyMode[] | undefined;
|
|
21
|
-
requiresDataPath?: "single" | "multiple" | undefined;
|
|
22
|
-
}[];
|
|
23
|
-
export declare function execute(this: IExecuteFunctions, i: number): Promise<INodeExecutionData[]>;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.execute = exports.description = void 0;
|
|
4
|
-
const utilities_1 = require("../../../../../../utils/utilities");
|
|
5
|
-
const transport_1 = require("../../transport");
|
|
6
|
-
const common_descriptions_1 = require("../common.descriptions");
|
|
7
|
-
const utils_1 = require("../../helpers/utils");
|
|
8
|
-
const properties = [
|
|
9
|
-
{
|
|
10
|
-
...common_descriptions_1.fileRLC,
|
|
11
|
-
description: 'The file to copy',
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
displayName: 'File Name',
|
|
15
|
-
name: 'name',
|
|
16
|
-
type: 'string',
|
|
17
|
-
default: '',
|
|
18
|
-
placeholder: 'e.g. My File',
|
|
19
|
-
description: 'The name of the new file. If not set, “Copy of {original file name}” will be used.',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
displayName: 'Copy In The Same Folder',
|
|
23
|
-
name: 'sameFolder',
|
|
24
|
-
type: 'boolean',
|
|
25
|
-
default: true,
|
|
26
|
-
description: 'Whether to copy the file in the same folder as the original file',
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
...common_descriptions_1.driveRLC,
|
|
30
|
-
displayName: 'Parent Drive',
|
|
31
|
-
description: 'The drive where to save the copied file',
|
|
32
|
-
displayOptions: { show: { sameFolder: [false] } },
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
...common_descriptions_1.folderRLC,
|
|
36
|
-
displayName: 'Parent Folder',
|
|
37
|
-
description: 'The folder where to save the copied file',
|
|
38
|
-
displayOptions: { show: { sameFolder: [false] } },
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
displayName: 'Options',
|
|
42
|
-
name: 'options',
|
|
43
|
-
type: 'collection',
|
|
44
|
-
placeholder: 'Add Option',
|
|
45
|
-
default: {},
|
|
46
|
-
options: [
|
|
47
|
-
{
|
|
48
|
-
displayName: 'Copy Requires Writer Permission',
|
|
49
|
-
name: 'copyRequiresWriterPermission',
|
|
50
|
-
type: 'boolean',
|
|
51
|
-
default: false,
|
|
52
|
-
description: 'Whether the options to copy, print, or download this file, should be disabled for readers and commenters',
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
displayName: 'Description',
|
|
56
|
-
name: 'description',
|
|
57
|
-
type: 'string',
|
|
58
|
-
default: '',
|
|
59
|
-
description: 'A short description of the file',
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
},
|
|
63
|
-
];
|
|
64
|
-
const displayOptions = {
|
|
65
|
-
show: {
|
|
66
|
-
resource: ['file'],
|
|
67
|
-
operation: ['copy'],
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
|
|
71
|
-
async function execute(i) {
|
|
72
|
-
const file = this.getNodeParameter('fileId', i);
|
|
73
|
-
const fileId = file.value;
|
|
74
|
-
const options = this.getNodeParameter('options', i, {});
|
|
75
|
-
let name = this.getNodeParameter('name', i);
|
|
76
|
-
name = name ? name : `Copy of ${file.cachedResultName}`;
|
|
77
|
-
const copyRequiresWriterPermission = options.copyRequiresWriterPermission || false;
|
|
78
|
-
const qs = {
|
|
79
|
-
includeItemsFromAllDrives: true,
|
|
80
|
-
supportsAllDrives: true,
|
|
81
|
-
spaces: 'appDataFolder, drive',
|
|
82
|
-
corpora: 'allDrives',
|
|
83
|
-
};
|
|
84
|
-
const parents = [];
|
|
85
|
-
const sameFolder = this.getNodeParameter('sameFolder', i);
|
|
86
|
-
if (!sameFolder) {
|
|
87
|
-
const driveId = this.getNodeParameter('driveId', i, undefined, {
|
|
88
|
-
extractValue: true,
|
|
89
|
-
});
|
|
90
|
-
const folderId = this.getNodeParameter('folderId', i, undefined, {
|
|
91
|
-
extractValue: true,
|
|
92
|
-
});
|
|
93
|
-
parents.push((0, utils_1.setParentFolder)(folderId, driveId));
|
|
94
|
-
}
|
|
95
|
-
const body = { copyRequiresWriterPermission, parents, name };
|
|
96
|
-
if (options.description) {
|
|
97
|
-
body.description = options.description;
|
|
98
|
-
}
|
|
99
|
-
const response = await transport_1.googleApiRequest.call(this, 'POST', `/drive/v3/files/${fileId}/copy`, body, qs);
|
|
100
|
-
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
|
|
101
|
-
return executionData;
|
|
102
|
-
}
|
|
103
|
-
exports.execute = execute;
|
|
104
|
-
//# sourceMappingURL=copy.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"copy.operation.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Drive/v2/actions/file/copy.operation.ts"],"names":[],"mappings":";;;AAQA,iEAAyE;AACzE,+CAAmD;AACnD,gEAAsE;AACtE,+CAAsD;AAEtD,MAAM,UAAU,GAAsB;IACrC;QACC,GAAG,6BAAO;QACV,WAAW,EAAE,kBAAkB;KAC/B;IACD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,cAAc;QAC3B,WAAW,EACV,oFAAoF;KACrF;IACD;QACC,WAAW,EAAE,yBAAyB;QACtC,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,kEAAkE;KAC/E;IACD;QACC,GAAG,8BAAQ;QACX,WAAW,EAAE,cAAc;QAC3B,WAAW,EAAE,yCAAyC;QACtD,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE;KACjD;IACD;QACC,GAAG,+BAAS;QACZ,WAAW,EAAE,eAAe;QAC5B,WAAW,EAAE,0CAA0C;QACvD,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE;KACjD;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,iCAAiC;gBAC9C,IAAI,EAAE,8BAA8B;gBACpC,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EACV,0GAA0G;aAC3G;YACD;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WA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CAAC,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;YAChE,YAAY,EAAE,IAAI;SAClB,CAAW,CAAC;QAEb,OAAO,CAAC,IAAI,CAAC,IAAA,uBAAe,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;KACjD;IAED,MAAM,IAAI,GAAgB,EAAE,4BAA4B,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAE1E,IAAI,OAAO,CAAC,WAAW,EAAE;QACxB,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;KACvC;IAED,MAAM,QAAQ,GAAG,MAAM,4BAAgB,CAAC,IAAI,CAC3C,IAAI,EACJ,MAAM,EACN,mBAAmB,MAAM,OAAO,EAChC,IAAI,EACJ,EAAE,CACF,CAAC;IAEF,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAC5D,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,QAAyB,CAAC,EACvD,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CACzB,CAAC;IAEF,OAAO,aAAa,CAAC;AACtB,CAAC;AAtDD,0BAsDC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { IExecuteFunctions } from 'n8n-core';
|
|
2
|
-
import type { INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
|
3
|
-
export declare const description: {
|
|
4
|
-
displayOptions: import("n8n-workflow").IDisplayOptions;
|
|
5
|
-
displayName: string;
|
|
6
|
-
name: string;
|
|
7
|
-
type: import("n8n-workflow").NodePropertyTypes;
|
|
8
|
-
typeOptions?: import("n8n-workflow").INodePropertyTypeOptions | undefined;
|
|
9
|
-
default: import("n8n-workflow").NodeParameterValueType;
|
|
10
|
-
description?: string | undefined;
|
|
11
|
-
hint?: string | undefined;
|
|
12
|
-
options?: (INodeProperties | import("n8n-workflow").INodePropertyOptions | import("n8n-workflow").INodePropertyCollection)[] | undefined;
|
|
13
|
-
placeholder?: string | undefined;
|
|
14
|
-
isNodeSetting?: boolean | undefined;
|
|
15
|
-
noDataExpression?: boolean | undefined;
|
|
16
|
-
required?: boolean | undefined;
|
|
17
|
-
routing?: import("n8n-workflow").INodePropertyRouting | undefined;
|
|
18
|
-
credentialTypes?: ("extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth")[] | undefined;
|
|
19
|
-
extractValue?: import("n8n-workflow").INodePropertyValueExtractorRegex | undefined;
|
|
20
|
-
modes?: import("n8n-workflow").INodePropertyMode[] | undefined;
|
|
21
|
-
requiresDataPath?: "single" | "multiple" | undefined;
|
|
22
|
-
}[];
|
|
23
|
-
export declare function execute(this: IExecuteFunctions, i: number): Promise<INodeExecutionData[]>;
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.execute = exports.description = void 0;
|
|
4
|
-
const utilities_1 = require("../../../../../../utils/utilities");
|
|
5
|
-
const common_descriptions_1 = require("../common.descriptions");
|
|
6
|
-
const transport_1 = require("../../transport");
|
|
7
|
-
const utils_1 = require("../../helpers/utils");
|
|
8
|
-
const properties = [
|
|
9
|
-
{
|
|
10
|
-
displayName: 'File Content',
|
|
11
|
-
name: 'content',
|
|
12
|
-
type: 'string',
|
|
13
|
-
default: '',
|
|
14
|
-
typeOptions: {
|
|
15
|
-
rows: 2,
|
|
16
|
-
},
|
|
17
|
-
description: 'The text to create the file with',
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
displayName: 'File Name',
|
|
21
|
-
name: 'name',
|
|
22
|
-
type: 'string',
|
|
23
|
-
default: '',
|
|
24
|
-
placeholder: 'e.g. My New File',
|
|
25
|
-
description: "The name of the file you want to create. If not specified, 'Untitled' will be used.",
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
...common_descriptions_1.driveRLC,
|
|
29
|
-
displayName: 'Parent Drive',
|
|
30
|
-
required: false,
|
|
31
|
-
description: 'The drive where to create the new file',
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
...common_descriptions_1.folderRLC,
|
|
35
|
-
displayName: 'Parent Folder',
|
|
36
|
-
required: false,
|
|
37
|
-
description: 'The folder where to create the new file',
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
displayName: 'Options',
|
|
41
|
-
name: 'options',
|
|
42
|
-
type: 'collection',
|
|
43
|
-
placeholder: 'Add Option',
|
|
44
|
-
default: {},
|
|
45
|
-
options: [
|
|
46
|
-
...common_descriptions_1.updateCommonOptions,
|
|
47
|
-
{
|
|
48
|
-
displayName: 'Convert to Google Document',
|
|
49
|
-
name: 'convertToGoogleDocument',
|
|
50
|
-
type: 'boolean',
|
|
51
|
-
default: false,
|
|
52
|
-
description: 'Whether to create a Google Document (instead of the .txt default format)',
|
|
53
|
-
hint: 'Google Docs API has to be enabled in the <a href="https://console.developers.google.com/apis/library/docs.googleapis.com" target="_blank">Google API Console</a>.',
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
},
|
|
57
|
-
];
|
|
58
|
-
const displayOptions = {
|
|
59
|
-
show: {
|
|
60
|
-
resource: ['file'],
|
|
61
|
-
operation: ['createFromText'],
|
|
62
|
-
},
|
|
63
|
-
};
|
|
64
|
-
exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
|
|
65
|
-
async function execute(i) {
|
|
66
|
-
const name = this.getNodeParameter('name', i) || 'Untitled';
|
|
67
|
-
const options = this.getNodeParameter('options', i, {});
|
|
68
|
-
const convertToGoogleDocument = options.convertToGoogleDocument || false;
|
|
69
|
-
const mimeType = convertToGoogleDocument ? "application/vnd.google-apps.document" : 'text/plain';
|
|
70
|
-
const driveId = this.getNodeParameter('driveId', i, undefined, {
|
|
71
|
-
extractValue: true,
|
|
72
|
-
});
|
|
73
|
-
const folderId = this.getNodeParameter('folderId', i, undefined, {
|
|
74
|
-
extractValue: true,
|
|
75
|
-
});
|
|
76
|
-
const bodyParameters = (0, utils_1.setFileProperties)({
|
|
77
|
-
name,
|
|
78
|
-
parents: [(0, utils_1.setParentFolder)(folderId, driveId)],
|
|
79
|
-
mimeType,
|
|
80
|
-
}, options);
|
|
81
|
-
const boundary = 'XXXXXX';
|
|
82
|
-
const qs = (0, utils_1.setUpdateCommonParams)({
|
|
83
|
-
includeItemsFromAllDrives: true,
|
|
84
|
-
supportsAllDrives: true,
|
|
85
|
-
spaces: 'appDataFolder, drive',
|
|
86
|
-
corpora: 'allDrives',
|
|
87
|
-
}, options);
|
|
88
|
-
let response;
|
|
89
|
-
if (convertToGoogleDocument) {
|
|
90
|
-
const document = await transport_1.googleApiRequest.call(this, 'POST', '/drive/v3/files', bodyParameters, qs);
|
|
91
|
-
const text = this.getNodeParameter('content', i, '');
|
|
92
|
-
const body = {
|
|
93
|
-
requests: [
|
|
94
|
-
{
|
|
95
|
-
insertText: {
|
|
96
|
-
text,
|
|
97
|
-
endOfSegmentLocation: {
|
|
98
|
-
segmentId: '',
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
],
|
|
103
|
-
};
|
|
104
|
-
const updateResponse = await transport_1.googleApiRequest.call(this, 'POST', '', body, undefined, `https://docs.googleapis.com/v1/documents/${document.id}:batchUpdate`);
|
|
105
|
-
response = { id: updateResponse.documentId };
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
const content = Buffer.from(this.getNodeParameter('content', i, ''), 'utf8');
|
|
109
|
-
const contentLength = content.byteLength;
|
|
110
|
-
const body = `
|
|
111
|
-
\n--${boundary}\
|
|
112
|
-
\nContent-Type: application/json; charset=UTF-8\
|
|
113
|
-
\n\n${JSON.stringify(bodyParameters)}\
|
|
114
|
-
\n--${boundary}\
|
|
115
|
-
\nContent-Type: text/plain\
|
|
116
|
-
\nContent-Transfer-Encoding: base64\
|
|
117
|
-
\n\n${content}\
|
|
118
|
-
\n--${boundary}--`;
|
|
119
|
-
const responseData = await transport_1.googleApiRequest.call(this, 'POST', '/upload/drive/v3/files', body, {
|
|
120
|
-
uploadType: 'multipart',
|
|
121
|
-
...qs,
|
|
122
|
-
}, undefined, {
|
|
123
|
-
headers: {
|
|
124
|
-
'Content-Type': `multipart/related; boundary=${boundary}`,
|
|
125
|
-
'Content-Length': contentLength,
|
|
126
|
-
},
|
|
127
|
-
});
|
|
128
|
-
response = { id: responseData.id };
|
|
129
|
-
}
|
|
130
|
-
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
|
|
131
|
-
return executionData;
|
|
132
|
-
}
|
|
133
|
-
exports.execute = execute;
|
|
134
|
-
//# sourceMappingURL=createFromText.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createFromText.operation.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Drive/v2/actions/file/createFromText.operation.ts"],"names":[],"mappings":";;;AAGA,iEAAyE;AACzE,gEAAkF;AAClF,+CAAmD;AAEnD,+CAAgG;AAEhG,MAAM,UAAU,GAAsB;IACrC;QACC,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE;YACZ,IAAI,EAAE,CAAC;SACP;QACD,WAAW,EAAE,kCAAkC;KAC/C;IACD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,kBAAkB;QAC/B,WAAW,EACV,qFAAqF;KACtF;IACD;QACC,GAAG,8BAAQ;QACX,WAAW,EAAE,cAAc;QAC3B,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,wCAAwC;KACrD;IACD;QACC,GAAG,+BAAS;QACZ,WAAW,EAAE,eAAe;QAC5B,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,yCAAyC;KACtD;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QAC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;;;QAGR,OAAO;QACP,QAAQ,IAAI,CAAC;QAEnB,MAAM,YAAY,GAAG,MAAM,4BAAgB,CAAC,IAAI,CAC/C,IAAI,EACJ,MAAM,EACN,wBAAwB,EACxB,IAAI,EACJ;YACC,UAAU,EAAE,WAAW;YACvB,GAAG,EAAE;SACL,EACD,SAAS,EACT;YACC,OAAO,EAAE;gBACR,cAAc,EAAE,+BAA+B,QAAQ,EAAE;gBACzD,gBAAgB,EAAE,aAAa;aAC/B;SACD,CACD,CAAC;QAEF,QAAQ,GAAG,EAAE,EAAE,EAAE,YAAY,CAAC,EAAE,EAAE,CAAC;KACnC;IAED,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAC5D,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,QAAuB,CAAC,EACrD,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CACzB,CAAC;IAEF,OAAO,aAAa,CAAC;AACtB,CAAC;AAhHD,0BAgHC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { IExecuteFunctions } from 'n8n-core';
|
|
2
|
-
import type { INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
|
3
|
-
export declare const description: {
|
|
4
|
-
displayOptions: import("n8n-workflow").IDisplayOptions;
|
|
5
|
-
displayName: string;
|
|
6
|
-
name: string;
|
|
7
|
-
type: import("n8n-workflow").NodePropertyTypes;
|
|
8
|
-
typeOptions?: import("n8n-workflow").INodePropertyTypeOptions | undefined;
|
|
9
|
-
default: import("n8n-workflow").NodeParameterValueType;
|
|
10
|
-
description?: string | undefined;
|
|
11
|
-
hint?: string | undefined;
|
|
12
|
-
options?: (INodeProperties | import("n8n-workflow").INodePropertyOptions | import("n8n-workflow").INodePropertyCollection)[] | undefined;
|
|
13
|
-
placeholder?: string | undefined;
|
|
14
|
-
isNodeSetting?: boolean | undefined;
|
|
15
|
-
noDataExpression?: boolean | undefined;
|
|
16
|
-
required?: boolean | undefined;
|
|
17
|
-
routing?: import("n8n-workflow").INodePropertyRouting | undefined;
|
|
18
|
-
credentialTypes?: ("extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth")[] | undefined;
|
|
19
|
-
extractValue?: import("n8n-workflow").INodePropertyValueExtractorRegex | undefined;
|
|
20
|
-
modes?: import("n8n-workflow").INodePropertyMode[] | undefined;
|
|
21
|
-
requiresDataPath?: "single" | "multiple" | undefined;
|
|
22
|
-
}[];
|
|
23
|
-
export declare function execute(this: IExecuteFunctions, i: number): Promise<INodeExecutionData[]>;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.execute = exports.description = void 0;
|
|
4
|
-
const utilities_1 = require("../../../../../../utils/utilities");
|
|
5
|
-
const transport_1 = require("../../transport");
|
|
6
|
-
const common_descriptions_1 = require("../common.descriptions");
|
|
7
|
-
const properties = [
|
|
8
|
-
{
|
|
9
|
-
...common_descriptions_1.fileRLC,
|
|
10
|
-
description: 'The file to delete',
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
displayName: 'Options',
|
|
14
|
-
name: 'options',
|
|
15
|
-
type: 'collection',
|
|
16
|
-
placeholder: 'Add Option',
|
|
17
|
-
default: {},
|
|
18
|
-
options: [
|
|
19
|
-
{
|
|
20
|
-
displayName: 'Delete Permanently',
|
|
21
|
-
name: 'deletePermanently',
|
|
22
|
-
type: 'boolean',
|
|
23
|
-
default: false,
|
|
24
|
-
description: 'Whether to delete the file immediately. If false, the file will be moved to the trash.',
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
},
|
|
28
|
-
];
|
|
29
|
-
const displayOptions = {
|
|
30
|
-
show: {
|
|
31
|
-
resource: ['file'],
|
|
32
|
-
operation: ['deleteFile'],
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
|
|
36
|
-
async function execute(i) {
|
|
37
|
-
const fileId = this.getNodeParameter('fileId', i, undefined, {
|
|
38
|
-
extractValue: true,
|
|
39
|
-
});
|
|
40
|
-
const deletePermanently = this.getNodeParameter('options.deletePermanently', i, false);
|
|
41
|
-
const qs = {
|
|
42
|
-
supportsAllDrives: true,
|
|
43
|
-
};
|
|
44
|
-
if (deletePermanently) {
|
|
45
|
-
await transport_1.googleApiRequest.call(this, 'DELETE', `/drive/v3/files/${fileId}`, undefined, qs);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
await transport_1.googleApiRequest.call(this, 'PATCH', `/drive/v3/files/${fileId}`, { trashed: true }, qs);
|
|
49
|
-
}
|
|
50
|
-
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray({
|
|
51
|
-
id: fileId,
|
|
52
|
-
success: true,
|
|
53
|
-
}), { itemData: { item: i } });
|
|
54
|
-
return executionData;
|
|
55
|
-
}
|
|
56
|
-
exports.execute = execute;
|
|
57
|
-
//# sourceMappingURL=deleteFile.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deleteFile.operation.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Drive/v2/actions/file/deleteFile.operation.ts"],"names":[],"mappings":";;;AAGA,iEAAyE;AACzE,+CAAmD;AACnD,gEAAiD;AAEjD,MAAM,UAAU,GAAsB;IACrC;QACC,GAAG,6BAAO;QACV,WAAW,EAAE,oBAAoB;KACjC;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,oBAAoB;gBACjC,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EACV,wFAAwF;aACzF;SACD;KACD;CACD,CAAC;AAEF,MAAM,cAA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
|
-
export declare const description: {
|
|
4
|
-
displayOptions: import("n8n-workflow").IDisplayOptions;
|
|
5
|
-
displayName: string;
|
|
6
|
-
name: string;
|
|
7
|
-
type: import("n8n-workflow").NodePropertyTypes;
|
|
8
|
-
typeOptions?: import("n8n-workflow").INodePropertyTypeOptions | undefined;
|
|
9
|
-
default: import("n8n-workflow").NodeParameterValueType;
|
|
10
|
-
description?: string | undefined;
|
|
11
|
-
hint?: string | undefined;
|
|
12
|
-
options?: (INodeProperties | import("n8n-workflow").INodePropertyOptions | import("n8n-workflow").INodePropertyCollection)[] | undefined;
|
|
13
|
-
placeholder?: string | undefined;
|
|
14
|
-
isNodeSetting?: boolean | undefined;
|
|
15
|
-
noDataExpression?: boolean | undefined;
|
|
16
|
-
required?: boolean | undefined;
|
|
17
|
-
routing?: import("n8n-workflow").INodePropertyRouting | undefined;
|
|
18
|
-
credentialTypes?: ("extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth")[] | undefined;
|
|
19
|
-
extractValue?: import("n8n-workflow").INodePropertyValueExtractorRegex | undefined;
|
|
20
|
-
modes?: import("n8n-workflow").INodePropertyMode[] | undefined;
|
|
21
|
-
requiresDataPath?: "single" | "multiple" | undefined;
|
|
22
|
-
}[];
|
|
23
|
-
export declare function execute(this: IExecuteFunctions, i: number, item: INodeExecutionData): Promise<INodeExecutionData[]>;
|