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,218 +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 download',
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
displayName: 'Options',
|
|
14
|
-
name: 'options',
|
|
15
|
-
type: 'collection',
|
|
16
|
-
placeholder: 'Add Option',
|
|
17
|
-
default: {},
|
|
18
|
-
options: [
|
|
19
|
-
{
|
|
20
|
-
displayName: 'Binary Property',
|
|
21
|
-
name: 'binaryPropertyName',
|
|
22
|
-
type: 'string',
|
|
23
|
-
placeholder: 'e.g. data',
|
|
24
|
-
default: 'data',
|
|
25
|
-
description: 'Use this field name in the following nodes, to use the binary file data',
|
|
26
|
-
hint: 'The name of the output field to put the binary file data in',
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
displayName: 'Google File Conversion',
|
|
30
|
-
name: 'googleFileConversion',
|
|
31
|
-
type: 'fixedCollection',
|
|
32
|
-
typeOptions: {
|
|
33
|
-
multipleValues: false,
|
|
34
|
-
},
|
|
35
|
-
default: {},
|
|
36
|
-
placeholder: 'Add Conversion',
|
|
37
|
-
options: [
|
|
38
|
-
{
|
|
39
|
-
displayName: 'Conversion',
|
|
40
|
-
name: 'conversion',
|
|
41
|
-
values: [
|
|
42
|
-
{
|
|
43
|
-
displayName: 'Google Docs',
|
|
44
|
-
name: 'docsToFormat',
|
|
45
|
-
type: 'options',
|
|
46
|
-
options: [
|
|
47
|
-
{
|
|
48
|
-
name: 'HTML',
|
|
49
|
-
value: 'text/html',
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
name: 'MS Word Document',
|
|
53
|
-
value: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
name: 'Open Office Document',
|
|
57
|
-
value: 'application/vnd.oasis.opendocument.text',
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
name: 'PDF',
|
|
61
|
-
value: 'application/pdf',
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
name: 'Rich Text (rtf)',
|
|
65
|
-
value: 'application/rtf',
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
name: 'Text (txt)',
|
|
69
|
-
value: 'text/plain',
|
|
70
|
-
},
|
|
71
|
-
],
|
|
72
|
-
default: 'text/html',
|
|
73
|
-
description: 'Format used to export when downloading Google Docs files',
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
displayName: 'Google Drawings',
|
|
77
|
-
name: 'drawingsToFormat',
|
|
78
|
-
type: 'options',
|
|
79
|
-
options: [
|
|
80
|
-
{
|
|
81
|
-
name: 'JPEG',
|
|
82
|
-
value: 'image/jpeg',
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
name: 'PDF',
|
|
86
|
-
value: 'application/pdf',
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
name: 'PNG',
|
|
90
|
-
value: 'image/png',
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
name: 'SVG',
|
|
94
|
-
value: 'image/svg+xml',
|
|
95
|
-
},
|
|
96
|
-
],
|
|
97
|
-
default: 'image/jpeg',
|
|
98
|
-
description: 'Format used to export when downloading Google Drawings files',
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
displayName: 'Google Slides',
|
|
102
|
-
name: 'slidesToFormat',
|
|
103
|
-
type: 'options',
|
|
104
|
-
options: [
|
|
105
|
-
{
|
|
106
|
-
name: 'MS PowerPoint',
|
|
107
|
-
value: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
name: 'OpenOffice Presentation',
|
|
111
|
-
value: 'application/vnd.oasis.opendocument.presentation',
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
name: 'PDF',
|
|
115
|
-
value: 'application/pdf',
|
|
116
|
-
},
|
|
117
|
-
],
|
|
118
|
-
default: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
|
119
|
-
description: 'Format used to export when downloading Google Slides files',
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
displayName: 'Google Sheets',
|
|
123
|
-
name: 'sheetsToFormat',
|
|
124
|
-
type: 'options',
|
|
125
|
-
options: [
|
|
126
|
-
{
|
|
127
|
-
name: 'CSV',
|
|
128
|
-
value: 'text/csv',
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
name: 'MS Excel',
|
|
132
|
-
value: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
name: 'Open Office Sheet',
|
|
136
|
-
value: 'application/vnd.oasis.opendocument.spreadsheet',
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
name: 'PDF',
|
|
140
|
-
value: 'application/pdf',
|
|
141
|
-
},
|
|
142
|
-
],
|
|
143
|
-
default: 'text/csv',
|
|
144
|
-
description: 'Format used to export when downloading Google Sheets files',
|
|
145
|
-
},
|
|
146
|
-
],
|
|
147
|
-
},
|
|
148
|
-
],
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
displayName: 'File Name',
|
|
152
|
-
name: 'fileName',
|
|
153
|
-
type: 'string',
|
|
154
|
-
default: '',
|
|
155
|
-
description: 'File name. Ex: data.pdf.',
|
|
156
|
-
},
|
|
157
|
-
],
|
|
158
|
-
},
|
|
159
|
-
];
|
|
160
|
-
const displayOptions = {
|
|
161
|
-
show: {
|
|
162
|
-
resource: ['file'],
|
|
163
|
-
operation: ['download'],
|
|
164
|
-
},
|
|
165
|
-
};
|
|
166
|
-
exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
|
|
167
|
-
async function execute(i, item) {
|
|
168
|
-
var _a, _b, _c, _d, _e, _f;
|
|
169
|
-
const fileId = this.getNodeParameter('fileId', i, undefined, {
|
|
170
|
-
extractValue: true,
|
|
171
|
-
});
|
|
172
|
-
const downloadOptions = this.getNodeParameter('options', i);
|
|
173
|
-
const requestOptions = {
|
|
174
|
-
useStream: true,
|
|
175
|
-
resolveWithFullResponse: true,
|
|
176
|
-
encoding: null,
|
|
177
|
-
json: false,
|
|
178
|
-
};
|
|
179
|
-
const file = await transport_1.googleApiRequest.call(this, 'GET', `/drive/v3/files/${fileId}`, {}, { fields: 'mimeType,name', supportsTeamDrives: true });
|
|
180
|
-
let response;
|
|
181
|
-
if ((_a = file.mimeType) === null || _a === void 0 ? void 0 : _a.includes('vnd.google-apps')) {
|
|
182
|
-
const parameterKey = 'options.googleFileConversion.conversion';
|
|
183
|
-
const type = file.mimeType.split('.')[2];
|
|
184
|
-
let mime;
|
|
185
|
-
if (type === 'document') {
|
|
186
|
-
mime = this.getNodeParameter(`${parameterKey}.docsToFormat`, i, 'application/vnd.openxmlformats-officedocument.wordprocessingml.document');
|
|
187
|
-
}
|
|
188
|
-
else if (type === 'presentation') {
|
|
189
|
-
mime = this.getNodeParameter(`${parameterKey}.slidesToFormat`, i, 'application/vnd.openxmlformats-officedocument.presentationml.presentation');
|
|
190
|
-
}
|
|
191
|
-
else if (type === 'spreadsheet') {
|
|
192
|
-
mime = this.getNodeParameter(`${parameterKey}.sheetsToFormat`, i, 'application/x-vnd.oasis.opendocument.spreadsheet');
|
|
193
|
-
}
|
|
194
|
-
else {
|
|
195
|
-
mime = this.getNodeParameter(`${parameterKey}.drawingsToFormat`, i, 'image/jpeg');
|
|
196
|
-
}
|
|
197
|
-
response = await transport_1.googleApiRequest.call(this, 'GET', `/drive/v3/files/${fileId}/export`, {}, { mimeType: mime }, undefined, requestOptions);
|
|
198
|
-
}
|
|
199
|
-
else {
|
|
200
|
-
response = await transport_1.googleApiRequest.call(this, 'GET', `/drive/v3/files/${fileId}`, {}, { alt: 'media' }, undefined, requestOptions);
|
|
201
|
-
}
|
|
202
|
-
const mimeType = (_d = (_c = (_b = response.headers) === null || _b === void 0 ? void 0 : _b['content-type']) !== null && _c !== void 0 ? _c : file.mimeType) !== null && _d !== void 0 ? _d : undefined;
|
|
203
|
-
const fileName = (_f = (_e = downloadOptions.fileName) !== null && _e !== void 0 ? _e : file.name) !== null && _f !== void 0 ? _f : undefined;
|
|
204
|
-
const newItem = {
|
|
205
|
-
json: item.json,
|
|
206
|
-
binary: {},
|
|
207
|
-
};
|
|
208
|
-
if (item.binary !== undefined) {
|
|
209
|
-
Object.assign(newItem.binary, item.binary);
|
|
210
|
-
}
|
|
211
|
-
item = newItem;
|
|
212
|
-
const dataPropertyNameDownload = downloadOptions.binaryPropertyName || 'data';
|
|
213
|
-
item.binary[dataPropertyNameDownload] = await this.helpers.prepareBinaryData(response.body, fileName, mimeType);
|
|
214
|
-
const executionData = this.helpers.constructExecutionMetaData([item], { itemData: { item: i } });
|
|
215
|
-
return executionData;
|
|
216
|
-
}
|
|
217
|
-
exports.execute = execute;
|
|
218
|
-
//# sourceMappingURL=download.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"download.operation.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Drive/v2/actions/file/download.operation.ts"],"names":[],"mappings":";;;AAQA,iEAAyE;AACzE,+CAAmD;AACnD,gEAAiD;AAEjD,MAAM,UAAU,GAAsB;IACrC;QACC,GAAG,6BAAO;QACV,WAAW,EAAE,sBAAsB;KACnC;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,iBAAiB;gBAC9B,IAAI,EAAE,oBAAoB;gBAC1B,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,WAAW;gBACxB,OAAO,EAAE,MAAM;gBACf,WAAW,EAAE,yEAAyE;gBACtF,IAAI,EAAE,6DAA6D;aACnE;YACD;gBACC,WAAW,EAAE,wBAAwB;gBACrC,IAAI,EAAE,sBAAsB;gBAC5B,IAAI,EAAE,iBAAiB;gBACvB,WAAW,EAAE;oBACZ,cAAc,EAAE,KAAK;iBACrB;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,gBAAgB;gBAC7B,OAAO,EAAE;oBACR;wBACC,WAAW,EAAE,YAAY;wBACzB,IAAI,EAAE,YAAY;wBAClB,MAAM,EAAE;4BACP;gCACC,WAAW,EAAE,aAAa;gCAC1B,IAAI,EAAE,cAAc;gCACpB,IAAI,EAAE,SAAS;gCAEf,OAAO,EAAE;oCACR;wCACC,IAAI,EAAE,MAAM;wCACZ,KAAK,EAAE,WAAW;qCAClB;oCACD;wCACC,IAAI,EAAE,kBAAkB;wCACxB,KAAK,EACJ,yE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,CAAC;KACF;IAED,MAAM,QAAQ,GACb,MAAA,MAAA,MAAC,QAAQ,CAAC,OAAuB,0CAAG,cAAc,CAAC,mCAAI,IAAI,CAAC,QAAQ,mCAAI,SAAS,CAAC;IACnF,MAAM,QAAQ,GAAG,MAAA,MAAA,eAAe,CAAC,QAAQ,mCAAI,IAAI,CAAC,IAAI,mCAAI,SAAS,CAAC;IAEpE,MAAM,OAAO,GAAuB;QACnC,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,MAAM,EAAE,EAAE;KACV,CAAC;IAEF,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,EAAE;QAI9B,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,MAAwB,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;KAC7D;IAED,IAAI,GAAG,OAAO,CAAC;IAEf,MAAM,wBAAwB,GAAI,eAAe,CAAC,kBAA6B,IAAI,MAAM,CAAC;IAE1F,IAAI,CAAC,MAAO,CAAC,wBAAwB,CAAC,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAC5E,QAAQ,CAAC,IAAc,EACvB,QAAkB,EAClB,QAAkB,CAClB,CAAC;IAEF,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAEjG,OAAO,aAAa,CAAC;AACtB,CAAC;AAtGD,0BAsGC"}
|
|
@@ -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,60 +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
|
-
...common_descriptions_1.fileRLC,
|
|
11
|
-
description: 'The file to move',
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
...common_descriptions_1.driveRLC,
|
|
15
|
-
displayName: 'Parent Drive',
|
|
16
|
-
description: 'The drive where to move the file',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
...common_descriptions_1.folderRLC,
|
|
20
|
-
displayName: 'Parent Folder',
|
|
21
|
-
description: 'The folder where to move the file',
|
|
22
|
-
},
|
|
23
|
-
];
|
|
24
|
-
const displayOptions = {
|
|
25
|
-
show: {
|
|
26
|
-
resource: ['file'],
|
|
27
|
-
operation: ['move'],
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
|
|
31
|
-
async function execute(i) {
|
|
32
|
-
const fileId = this.getNodeParameter('fileId', i, undefined, {
|
|
33
|
-
extractValue: true,
|
|
34
|
-
});
|
|
35
|
-
const driveId = this.getNodeParameter('driveId', i, undefined, {
|
|
36
|
-
extractValue: true,
|
|
37
|
-
});
|
|
38
|
-
const folderId = this.getNodeParameter('folderId', i, undefined, {
|
|
39
|
-
extractValue: true,
|
|
40
|
-
});
|
|
41
|
-
const qs = {
|
|
42
|
-
includeItemsFromAllDrives: true,
|
|
43
|
-
supportsAllDrives: true,
|
|
44
|
-
spaces: 'appDataFolder, drive',
|
|
45
|
-
corpora: 'allDrives',
|
|
46
|
-
};
|
|
47
|
-
const { parents } = await transport_1.googleApiRequest.call(this, 'GET', `/drive/v3/files/${fileId}`, undefined, {
|
|
48
|
-
...qs,
|
|
49
|
-
fields: 'parents',
|
|
50
|
-
});
|
|
51
|
-
const response = await transport_1.googleApiRequest.call(this, 'PATCH', `/drive/v3/files/${fileId}`, undefined, {
|
|
52
|
-
...qs,
|
|
53
|
-
addParents: (0, utils_1.setParentFolder)(folderId, driveId),
|
|
54
|
-
removeParents: (parents || []).join(','),
|
|
55
|
-
});
|
|
56
|
-
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
|
|
57
|
-
return executionData;
|
|
58
|
-
}
|
|
59
|
-
exports.execute = execute;
|
|
60
|
-
//# sourceMappingURL=move.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"move.operation.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Drive/v2/actions/file/move.operation.ts"],"names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T;QACC,GAAG,EAAE;QACL,MAAM,EAAE,SAAS;KACjB,CACD,CAAC;IAEF,MAAM,QAAQ,GAAG,MAAM,4BAAgB,CAAC,IAAI,CAC3C,IAAI,EACJ,OAAO,EACP,mBAAmB,MAAM,EAAE,EAC3B,SAAS,EACT;QACC,GAAG,EAAE;QACL,UAAU,EAAE,IAAA,uBAAe,EAAC,QAAQ,EAAE,OAAO,CAAC;QAC9C,aAAa,EAAE,CAAE,OAAoB,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;KACtD,CACD,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;AAjDD,0BAiDC"}
|
|
@@ -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,43 +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 share',
|
|
11
|
-
},
|
|
12
|
-
common_descriptions_1.permissionsOptions,
|
|
13
|
-
common_descriptions_1.shareOptions,
|
|
14
|
-
];
|
|
15
|
-
const displayOptions = {
|
|
16
|
-
show: {
|
|
17
|
-
resource: ['file'],
|
|
18
|
-
operation: ['share'],
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
|
|
22
|
-
async function execute(i) {
|
|
23
|
-
const returnData = [];
|
|
24
|
-
const fileId = this.getNodeParameter('fileId', i, undefined, {
|
|
25
|
-
extractValue: true,
|
|
26
|
-
});
|
|
27
|
-
const permissions = this.getNodeParameter('permissionsUi', i);
|
|
28
|
-
const shareOption = this.getNodeParameter('options', i);
|
|
29
|
-
const body = {};
|
|
30
|
-
const qs = {
|
|
31
|
-
supportsAllDrives: true,
|
|
32
|
-
};
|
|
33
|
-
if (permissions.permissionsValues) {
|
|
34
|
-
Object.assign(body, permissions.permissionsValues);
|
|
35
|
-
}
|
|
36
|
-
Object.assign(qs, shareOption);
|
|
37
|
-
const response = await transport_1.googleApiRequest.call(this, 'POST', `/drive/v3/files/${fileId}/permissions`, body, qs);
|
|
38
|
-
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
|
|
39
|
-
returnData.push(...executionData);
|
|
40
|
-
return returnData;
|
|
41
|
-
}
|
|
42
|
-
exports.execute = execute;
|
|
43
|
-
//# sourceMappingURL=share.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"share.operation.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Drive/v2/actions/file/share.operation.ts"],"names":[],"mappings":";;;AAGA,iEAAyE;AACzE,+CAAmD;AACnD,gEAAmF;AAEnF,MAAM,UAAU,GAAsB;IACrC;QACC,GAAG,6BAAO;QACV,WAAW,EAAE,mBAAmB;KAChC;IACD,wCAAkB;IAClB,kCAAY;CACZ,CAAC;AAEF,MAAM,cAAc,GAAG;IACtB,IAAI,EAAE;QACL,QAAQ,EAAE,CAAC,MAAM,CAAC;QAClB,SAAS,EAAE,CAAC,OAAO,CAAC;KACpB;CACD,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,gCAAoB,EAAC,cAAc,EAAE,UAAU,CAAC,CAAC;AAErE,KAAK,UAAU,OAAO,CAA0B,CAAS;IAC/D,MAAM,UAAU,GAAyB,EAAE,CAAC;IAE5C,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,EAAE,SAAS,EAAE;QAC5D,YAAY,EAAE,IAAI;KAClB,CAAW,CAAC;IAEb,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,eAAe,EAAE,CAAC,CAAgB,CAAC;IAE7E,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;IAExD,MAAM,IAAI,GAAgB,EAAE,CAAC;IAE7B,MAAM,EAAE,GAAgB;QACvB,iBAAiB,EAAE,IAAI;KACvB,CAAC;IAEF,IAAI,WAAW,CAAC,iBAAiB,EAAE;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAC;KACnD;IAED,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC;IAE/B,MAAM,QAAQ,GAAG,MAAM,4BAAgB,CAAC,IAAI,CAC3C,IAAI,EACJ,MAAM,EACN,mBAAmB,MAAM,cAAc,EACvC,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;IACF,UAAU,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;IAElC,OAAO,UAAU,CAAC;AACnB,CAAC;AAtCD,0BAsCC"}
|
|
@@ -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,221 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.execute = exports.description = void 0;
|
|
4
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
-
const utilities_1 = require("../../../../../../utils/utilities");
|
|
6
|
-
const utils_1 = require("../../helpers/utils");
|
|
7
|
-
const transport_1 = require("../../transport");
|
|
8
|
-
const common_descriptions_1 = require("../common.descriptions");
|
|
9
|
-
const properties = [
|
|
10
|
-
{
|
|
11
|
-
...common_descriptions_1.fileRLC,
|
|
12
|
-
displayName: 'File to Update',
|
|
13
|
-
description: 'The file to update',
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
displayName: 'Change File Content',
|
|
17
|
-
name: 'changeFileContent',
|
|
18
|
-
type: 'boolean',
|
|
19
|
-
default: false,
|
|
20
|
-
description: 'Whether to send a new binary data to update the file',
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
displayName: 'Input Data Field Name',
|
|
24
|
-
name: 'inputDataFieldName',
|
|
25
|
-
type: 'string',
|
|
26
|
-
placeholder: 'e.g. data',
|
|
27
|
-
default: 'data',
|
|
28
|
-
hint: 'The name of the input field containing the binary file data to update the file',
|
|
29
|
-
description: 'Find the name of input field containing the binary data to update the file in the Input panel on the left, in the Binary tab',
|
|
30
|
-
displayOptions: {
|
|
31
|
-
show: {
|
|
32
|
-
changeFileContent: [true],
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
displayName: 'New Updated File Name',
|
|
38
|
-
name: 'newUpdatedFileName',
|
|
39
|
-
type: 'string',
|
|
40
|
-
default: '',
|
|
41
|
-
placeholder: 'e.g. My New File',
|
|
42
|
-
description: 'If not specified, the file name will not be changed',
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
displayName: 'Options',
|
|
46
|
-
name: 'options',
|
|
47
|
-
type: 'collection',
|
|
48
|
-
placeholder: 'Add Option',
|
|
49
|
-
default: {},
|
|
50
|
-
options: [
|
|
51
|
-
...common_descriptions_1.updateCommonOptions,
|
|
52
|
-
{
|
|
53
|
-
displayName: 'Move to Trash',
|
|
54
|
-
name: 'trashed',
|
|
55
|
-
type: 'boolean',
|
|
56
|
-
default: false,
|
|
57
|
-
description: 'Whether to move a file to the trash. Only the owner may trash a file.',
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
displayName: 'Return Fields',
|
|
61
|
-
name: 'fields',
|
|
62
|
-
type: 'multiOptions',
|
|
63
|
-
options: [
|
|
64
|
-
{
|
|
65
|
-
name: '[All]',
|
|
66
|
-
value: '*',
|
|
67
|
-
description: 'All fields',
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
name: 'explicitlyTrashed',
|
|
71
|
-
value: 'explicitlyTrashed',
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
name: 'exportLinks',
|
|
75
|
-
value: 'exportLinks',
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
name: 'hasThumbnail',
|
|
79
|
-
value: 'hasThumbnail',
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
name: 'iconLink',
|
|
83
|
-
value: 'iconLink',
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
name: 'ID',
|
|
87
|
-
value: 'id',
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
name: 'Kind',
|
|
91
|
-
value: 'kind',
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
name: 'mimeType',
|
|
95
|
-
value: 'mimeType',
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
name: 'Name',
|
|
99
|
-
value: 'name',
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
name: 'Permissions',
|
|
103
|
-
value: 'permissions',
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
name: 'Shared',
|
|
107
|
-
value: 'shared',
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
name: 'Spaces',
|
|
111
|
-
value: 'spaces',
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
name: 'Starred',
|
|
115
|
-
value: 'starred',
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
name: 'thumbnailLink',
|
|
119
|
-
value: 'thumbnailLink',
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
name: 'Trashed',
|
|
123
|
-
value: 'trashed',
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
name: 'Version',
|
|
127
|
-
value: 'version',
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
name: 'webViewLink',
|
|
131
|
-
value: 'webViewLink',
|
|
132
|
-
},
|
|
133
|
-
],
|
|
134
|
-
default: [],
|
|
135
|
-
description: 'The fields to return',
|
|
136
|
-
},
|
|
137
|
-
],
|
|
138
|
-
},
|
|
139
|
-
];
|
|
140
|
-
const displayOptions = {
|
|
141
|
-
show: {
|
|
142
|
-
resource: ['file'],
|
|
143
|
-
operation: ['update'],
|
|
144
|
-
},
|
|
145
|
-
};
|
|
146
|
-
exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
|
|
147
|
-
async function execute(i) {
|
|
148
|
-
var _a;
|
|
149
|
-
const fileId = this.getNodeParameter('fileId', i, undefined, {
|
|
150
|
-
extractValue: true,
|
|
151
|
-
});
|
|
152
|
-
const changeFileContent = this.getNodeParameter('changeFileContent', i, false);
|
|
153
|
-
let mimeType;
|
|
154
|
-
if (changeFileContent) {
|
|
155
|
-
const inputDataFieldName = this.getNodeParameter('inputDataFieldName', i);
|
|
156
|
-
const binaryData = await utils_1.getItemBinaryData.call(this, inputDataFieldName, i);
|
|
157
|
-
const { contentLength, fileContent } = binaryData;
|
|
158
|
-
mimeType = binaryData.mimeType;
|
|
159
|
-
if (Buffer.isBuffer(fileContent)) {
|
|
160
|
-
await transport_1.googleApiRequest.call(this, 'PATCH', `/upload/drive/v3/files/${fileId}`, fileContent, {
|
|
161
|
-
uploadType: 'media',
|
|
162
|
-
}, undefined, {
|
|
163
|
-
headers: {
|
|
164
|
-
'Content-Type': mimeType,
|
|
165
|
-
'Content-Length': contentLength,
|
|
166
|
-
},
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
else {
|
|
170
|
-
const resumableUpload = await transport_1.googleApiRequest.call(this, 'PATCH', `/upload/drive/v3/files/${fileId}`, undefined, { uploadType: 'resumable' }, undefined, {
|
|
171
|
-
resolveWithFullResponse: true,
|
|
172
|
-
});
|
|
173
|
-
const uploadUrl = resumableUpload.headers.location;
|
|
174
|
-
let offset = 0;
|
|
175
|
-
for await (const chunk of fileContent) {
|
|
176
|
-
const nextOffset = offset + Number(chunk.length);
|
|
177
|
-
try {
|
|
178
|
-
await this.helpers.httpRequest({
|
|
179
|
-
method: 'PUT',
|
|
180
|
-
url: uploadUrl,
|
|
181
|
-
headers: {
|
|
182
|
-
'Content-Length': chunk.length,
|
|
183
|
-
'Content-Range': `bytes ${offset}-${nextOffset - 1}/${contentLength}`,
|
|
184
|
-
},
|
|
185
|
-
body: chunk,
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
catch (error) {
|
|
189
|
-
if (((_a = error.response) === null || _a === void 0 ? void 0 : _a.status) !== 308) {
|
|
190
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, { itemIndex: i });
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
offset = nextOffset;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
const options = this.getNodeParameter('options', i, {});
|
|
198
|
-
const qs = (0, utils_1.setUpdateCommonParams)({
|
|
199
|
-
supportsAllDrives: true,
|
|
200
|
-
}, options);
|
|
201
|
-
if (options.fields) {
|
|
202
|
-
const queryFields = (0, utils_1.prepareQueryString)(options.fields);
|
|
203
|
-
qs.fields = queryFields;
|
|
204
|
-
}
|
|
205
|
-
if (options.trashed) {
|
|
206
|
-
qs.trashed = options.trashed;
|
|
207
|
-
}
|
|
208
|
-
const body = (0, utils_1.setFileProperties)({}, options);
|
|
209
|
-
const newUpdatedFileName = this.getNodeParameter('newUpdatedFileName', i, '');
|
|
210
|
-
if (newUpdatedFileName) {
|
|
211
|
-
body.name = newUpdatedFileName;
|
|
212
|
-
}
|
|
213
|
-
if (mimeType) {
|
|
214
|
-
body.mimeType = mimeType;
|
|
215
|
-
}
|
|
216
|
-
const responseData = await transport_1.googleApiRequest.call(this, 'PATCH', `/drive/v3/files/${fileId}`, body, qs);
|
|
217
|
-
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: i } });
|
|
218
|
-
return executionData;
|
|
219
|
-
}
|
|
220
|
-
exports.execute = execute;
|
|
221
|
-
//# sourceMappingURL=update.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Drive/v2/actions/file/update.operation.ts"],"names":[],"mappings":";;;AAEA,+CAAkD;AAElD,iEAAyE;AACzE,+CAK6B;AAC7B,+CAAmD;AACnD,gEAAsE;AAEtE,MAAM,UAAU,GAAsB;IACrC;QACC,GAAG,6BAAO;QACV,WAAW,EAAE,gBAAgB;QAC7B,WAAW,EAAE,oBAAoB;KACjC;IACD;QAC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