n8n-nodes-base 1.0.5 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build.tsbuildinfo +1 -1
- package/dist/credentials/AirtableTokenApi.credentials.js +10 -0
- package/dist/credentials/AirtableTokenApi.credentials.js.map +1 -1
- package/dist/credentials/CrowdDevApi.credentials.d.ts +9 -0
- package/dist/credentials/CrowdDevApi.credentials.js +62 -0
- package/dist/credentials/CrowdDevApi.credentials.js.map +1 -0
- package/dist/credentials/GoogleDriveOAuth2Api.credentials.js +6 -0
- package/dist/credentials/GoogleDriveOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/GoogleSheetsOAuth2Api.credentials.js +3 -0
- package/dist/credentials/GoogleSheetsOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/GoogleSheetsTriggerOAuth2Api.credentials.js +3 -0
- package/dist/credentials/GoogleSheetsTriggerOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/HttpCustomAuth.credentials.d.ts +9 -0
- package/dist/credentials/HttpCustomAuth.credentials.js +25 -0
- package/dist/credentials/HttpCustomAuth.credentials.js.map +1 -0
- package/dist/credentials/TwitterOAuth1Api.credentials.js +6 -0
- package/dist/credentials/TwitterOAuth1Api.credentials.js.map +1 -1
- package/dist/credentials/TwitterOAuth2Api.credentials.d.ts +8 -0
- package/dist/credentials/TwitterOAuth2Api.credentials.js +73 -0
- package/dist/credentials/TwitterOAuth2Api.credentials.js.map +1 -0
- package/dist/known/credentials.json +36 -6
- package/dist/known/nodes.json +8 -0
- package/dist/methods/defined.json +6 -0
- package/dist/methods/referenced.json +4 -0
- package/dist/nodes/ActionNetwork/GenericFunctions.d.ts +23 -7
- package/dist/nodes/ActionNetwork/types.d.ts +79 -0
- package/dist/nodes/ActionNetwork/types.js +3 -0
- package/dist/nodes/ActionNetwork/types.js.map +1 -0
- package/dist/nodes/Adalo/types.d.ts +9 -0
- package/dist/nodes/Adalo/types.js +3 -0
- package/dist/nodes/Adalo/types.js.map +1 -0
- package/dist/nodes/Airtable/Airtable.node.d.ts +3 -4
- package/dist/nodes/Airtable/Airtable.node.js +10 -701
- package/dist/nodes/Airtable/Airtable.node.js.map +1 -1
- package/dist/nodes/Airtable/AirtableTrigger.node.js +14 -1
- package/dist/nodes/Airtable/AirtableTrigger.node.js.map +1 -1
- package/dist/nodes/Airtable/test/v2/node/helpers.d.ts +3 -0
- package/dist/nodes/Airtable/test/v2/node/helpers.js +31 -0
- package/dist/nodes/Airtable/test/v2/node/helpers.js.map +1 -0
- package/dist/nodes/Airtable/v1/AirtableV1.node.d.ts +6 -0
- package/dist/nodes/Airtable/v1/AirtableV1.node.js +722 -0
- package/dist/nodes/Airtable/v1/AirtableV1.node.js.map +1 -0
- package/dist/nodes/Airtable/v1/GenericFunctions.js.map +1 -0
- package/dist/nodes/Airtable/v2/AirtableV2.node.d.ts +12 -0
- package/dist/nodes/Airtable/v2/AirtableV2.node.js +24 -0
- package/dist/nodes/Airtable/v2/AirtableV2.node.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/base/Base.resource.d.ts +5 -0
- package/dist/nodes/Airtable/v2/actions/base/Base.resource.js +61 -0
- package/dist/nodes/Airtable/v2/actions/base/Base.resource.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/base/getMany.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/base/getMany.operation.js +106 -0
- package/dist/nodes/Airtable/v2/actions/base/getMany.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/base/getSchema.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/base/getSchema.operation.js +42 -0
- package/dist/nodes/Airtable/v2/actions/base/getSchema.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/common.descriptions.d.ts +5 -0
- package/dist/nodes/Airtable/v2/actions/common.descriptions.js +203 -0
- package/dist/nodes/Airtable/v2/actions/common.descriptions.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/node.type.d.ts +8 -0
- package/dist/nodes/Airtable/v2/actions/node.type.js +3 -0
- package/dist/nodes/Airtable/v2/actions/node.type.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/record/Record.resource.d.ts +9 -0
- package/dist/nodes/Airtable/v2/actions/record/Record.resource.js +114 -0
- package/dist/nodes/Airtable/v2/actions/record/Record.resource.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/record/create.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/record/create.operation.js +74 -0
- package/dist/nodes/Airtable/v2/actions/record/create.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/record/deleteRecord.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/record/deleteRecord.operation.js +47 -0
- package/dist/nodes/Airtable/v2/actions/record/deleteRecord.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/record/get.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/record/get.operation.js +74 -0
- package/dist/nodes/Airtable/v2/actions/record/get.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/record/search.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/record/search.operation.js +188 -0
- package/dist/nodes/Airtable/v2/actions/record/search.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/record/update.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/record/update.operation.js +106 -0
- package/dist/nodes/Airtable/v2/actions/record/update.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/record/upsert.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/record/upsert.operation.js +129 -0
- package/dist/nodes/Airtable/v2/actions/record/upsert.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/router.d.ts +2 -0
- package/dist/nodes/Airtable/v2/actions/router.js +67 -0
- package/dist/nodes/Airtable/v2/actions/router.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/versionDescription.d.ts +2 -0
- package/dist/nodes/Airtable/v2/actions/versionDescription.js +100 -0
- package/dist/nodes/Airtable/v2/actions/versionDescription.js.map +1 -0
- package/dist/nodes/Airtable/v2/helpers/interfaces.d.ts +22 -0
- package/dist/nodes/Airtable/v2/helpers/interfaces.js +3 -0
- package/dist/nodes/Airtable/v2/helpers/interfaces.js.map +1 -0
- package/dist/nodes/Airtable/v2/helpers/utils.d.ts +8 -0
- package/dist/nodes/Airtable/v2/helpers/utils.js +76 -0
- package/dist/nodes/Airtable/v2/helpers/utils.js.map +1 -0
- package/dist/nodes/Airtable/v2/methods/index.d.ts +3 -0
- package/dist/nodes/Airtable/v2/methods/index.js +30 -0
- package/dist/nodes/Airtable/v2/methods/index.js.map +1 -0
- package/dist/nodes/Airtable/v2/methods/listSearch.d.ts +4 -0
- package/dist/nodes/Airtable/v2/methods/listSearch.js +124 -0
- package/dist/nodes/Airtable/v2/methods/listSearch.js.map +1 -0
- package/dist/nodes/Airtable/v2/methods/loadOptions.d.ts +5 -0
- package/dist/nodes/Airtable/v2/methods/loadOptions.js +78 -0
- package/dist/nodes/Airtable/v2/methods/loadOptions.js.map +1 -0
- package/dist/nodes/Airtable/v2/methods/resourceMapping.d.ts +3 -0
- package/dist/nodes/Airtable/v2/methods/resourceMapping.js +105 -0
- package/dist/nodes/Airtable/v2/methods/resourceMapping.js.map +1 -0
- package/dist/nodes/Airtable/v2/transport/index.d.ts +8 -0
- package/dist/nodes/Airtable/v2/transport/index.js +102 -0
- package/dist/nodes/Airtable/v2/transport/index.js.map +1 -0
- package/dist/nodes/Aws/DynamoDB/types.d.ts +67 -0
- package/dist/nodes/Aws/DynamoDB/types.js +17 -0
- package/dist/nodes/Aws/DynamoDB/types.js.map +1 -0
- package/dist/nodes/Aws/S3/V2/AwsS3V2.node.js +50 -32
- package/dist/nodes/Aws/S3/V2/AwsS3V2.node.js.map +1 -1
- package/dist/nodes/Baserow/types.d.ts +35 -0
- package/dist/nodes/Baserow/types.js +3 -0
- package/dist/nodes/Baserow/types.js.map +1 -0
- package/dist/nodes/Chargebee/Chargebee.node.js +0 -2
- package/dist/nodes/Chargebee/Chargebee.node.js.map +1 -1
- package/dist/nodes/Copper/utils/types.d.ts +26 -0
- package/dist/nodes/Copper/utils/types.js +3 -0
- package/dist/nodes/Copper/utils/types.js.map +1 -0
- package/dist/nodes/CrateDb/CrateDb.node.js +1 -1
- package/dist/nodes/CrateDb/CrateDb.node.js.map +1 -1
- package/dist/nodes/CrowdDev/CrowdDev.node.d.ts +4 -0
- package/dist/nodes/CrowdDev/CrowdDev.node.js +36 -0
- package/dist/nodes/CrowdDev/CrowdDev.node.js.map +1 -0
- package/dist/nodes/CrowdDev/CrowdDev.node.json +18 -0
- package/dist/nodes/CrowdDev/CrowdDevTrigger.node.d.ts +12 -0
- package/dist/nodes/CrowdDev/CrowdDevTrigger.node.js +145 -0
- package/dist/nodes/CrowdDev/CrowdDevTrigger.node.js.map +1 -0
- package/dist/nodes/CrowdDev/CrowdDevTrigger.node.json +18 -0
- package/dist/nodes/CrowdDev/GenericFunctions.d.ts +7 -0
- package/dist/nodes/CrowdDev/GenericFunctions.js +157 -0
- package/dist/nodes/CrowdDev/GenericFunctions.js.map +1 -0
- package/dist/nodes/CrowdDev/crowdDev.svg +15 -0
- package/dist/nodes/CrowdDev/descriptions/activityFields.d.ts +4 -0
- package/dist/nodes/CrowdDev/descriptions/activityFields.js +180 -0
- package/dist/nodes/CrowdDev/descriptions/activityFields.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/automationFields.d.ts +4 -0
- package/dist/nodes/CrowdDev/descriptions/automationFields.js +126 -0
- package/dist/nodes/CrowdDev/descriptions/automationFields.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/index.d.ts +2 -0
- package/dist/nodes/CrowdDev/descriptions/index.js +26 -0
- package/dist/nodes/CrowdDev/descriptions/index.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/memberFields.d.ts +4 -0
- package/dist/nodes/CrowdDev/descriptions/memberFields.js +291 -0
- package/dist/nodes/CrowdDev/descriptions/memberFields.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/noteFields.d.ts +4 -0
- package/dist/nodes/CrowdDev/descriptions/noteFields.js +90 -0
- package/dist/nodes/CrowdDev/descriptions/noteFields.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/organizationFields.d.ts +4 -0
- package/dist/nodes/CrowdDev/descriptions/organizationFields.js +146 -0
- package/dist/nodes/CrowdDev/descriptions/organizationFields.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/resources.d.ts +2 -0
- package/dist/nodes/CrowdDev/descriptions/resources.js +38 -0
- package/dist/nodes/CrowdDev/descriptions/resources.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/shared.d.ts +2 -0
- package/dist/nodes/CrowdDev/descriptions/shared.js +29 -0
- package/dist/nodes/CrowdDev/descriptions/shared.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/taskFields.d.ts +4 -0
- package/dist/nodes/CrowdDev/descriptions/taskFields.js +159 -0
- package/dist/nodes/CrowdDev/descriptions/taskFields.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/utils.d.ts +5 -0
- package/dist/nodes/CrowdDev/descriptions/utils.js +55 -0
- package/dist/nodes/CrowdDev/descriptions/utils.js.map +1 -0
- package/dist/nodes/Disqus/Disqus.node.js +0 -2
- package/dist/nodes/Disqus/Disqus.node.js.map +1 -1
- package/dist/nodes/Elastic/ElasticSecurity/types.d.ts +48 -0
- package/dist/nodes/Elastic/ElasticSecurity/types.js +3 -0
- package/dist/nodes/Elastic/ElasticSecurity/types.js.map +1 -0
- package/dist/nodes/Elastic/Elasticsearch/types.d.ts +39 -0
- package/dist/nodes/Elastic/Elasticsearch/types.js +3 -0
- package/dist/nodes/Elastic/Elasticsearch/types.js.map +1 -0
- package/dist/nodes/Freshservice/types.d.ts +27 -0
- package/dist/nodes/Freshservice/types.js +3 -0
- package/dist/nodes/Freshservice/types.js.map +1 -0
- package/dist/nodes/FreshworksCrm/types.d.ts +36 -0
- package/dist/nodes/FreshworksCrm/types.js +3 -0
- package/dist/nodes/FreshworksCrm/types.js.map +1 -0
- package/dist/nodes/Git/Git.node.js +0 -2
- package/dist/nodes/Git/Git.node.js.map +1 -1
- package/dist/nodes/Gitlab/Gitlab.node.js +0 -16
- package/dist/nodes/Gitlab/Gitlab.node.js.map +1 -1
- package/dist/nodes/Google/BigQuery/v1/GoogleBigQueryV1.node.d.ts +1 -2
- package/dist/nodes/Google/BigQuery/v1/GoogleBigQueryV1.node.js.map +1 -1
- package/dist/nodes/Google/BigQuery/v2/GoogleBigQueryV2.node.d.ts +1 -2
- package/dist/nodes/Google/BigQuery/v2/GoogleBigQueryV2.node.js.map +1 -1
- package/dist/nodes/Google/BigQuery/v2/actions/database/executeQuery.operation.d.ts +1 -2
- package/dist/nodes/Google/BigQuery/v2/actions/database/executeQuery.operation.js +2 -2
- package/dist/nodes/Google/BigQuery/v2/actions/database/executeQuery.operation.js.map +1 -1
- package/dist/nodes/Google/BigQuery/v2/actions/database/insert.operation.d.ts +1 -2
- package/dist/nodes/Google/BigQuery/v2/actions/database/insert.operation.js.map +1 -1
- package/dist/nodes/Google/BigQuery/v2/actions/router.d.ts +1 -2
- package/dist/nodes/Google/BigQuery/v2/actions/router.js.map +1 -1
- package/dist/nodes/Google/BigQuery/v2/helpers/utils.d.ts +2 -3
- package/dist/nodes/Google/BigQuery/v2/helpers/utils.js +1 -2
- package/dist/nodes/Google/BigQuery/v2/helpers/utils.js.map +1 -1
- package/dist/nodes/Google/BigQuery/v2/transport/index.d.ts +1 -2
- package/dist/nodes/Google/BigQuery/v2/transport/index.js.map +1 -1
- package/dist/nodes/Google/CloudStorage/ObjectDescription.d.ts +1 -1
- package/dist/nodes/Google/CloudStorage/ObjectDescription.js +17 -4
- package/dist/nodes/Google/CloudStorage/ObjectDescription.js.map +1 -1
- package/dist/nodes/Google/Docs/interfaces.d.ts +13 -0
- package/dist/nodes/Google/Docs/interfaces.js +3 -0
- package/dist/nodes/Google/Docs/interfaces.js.map +1 -0
- package/dist/nodes/Google/Drive/GoogleDrive.node.d.ts +3 -12
- package/dist/nodes/Google/Drive/GoogleDrive.node.js +10 -2301
- package/dist/nodes/Google/Drive/GoogleDrive.node.js.map +1 -1
- package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.d.ts +1 -1
- package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.js +2 -2
- package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.js.map +1 -1
- package/dist/nodes/Google/Drive/test/v2/node/helpers.d.ts +3 -0
- package/dist/nodes/Google/Drive/test/v2/node/helpers.js +34 -0
- package/dist/nodes/Google/Drive/test/v2/node/helpers.js.map +1 -0
- package/dist/nodes/Google/Drive/{GenericFunctions.js → v1/GenericFunctions.js} +1 -1
- package/dist/nodes/Google/Drive/v1/GenericFunctions.js.map +1 -0
- package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.d.ts +14 -0
- package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.js +2325 -0
- package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.js.map +1 -0
- package/dist/nodes/Google/Drive/v1/SearchFunctions.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/GoogleDriveV2.node.d.ts +10 -0
- package/dist/nodes/Google/Drive/v2/GoogleDriveV2.node.js +20 -0
- package/dist/nodes/Google/Drive/v2/GoogleDriveV2.node.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/common.descriptions.d.ts +19 -0
- package/dist/nodes/Google/Drive/v2/actions/common.descriptions.js +599 -0
- package/dist/nodes/Google/Drive/v2/actions/common.descriptions.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/Drive.resource.d.ts +8 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/Drive.resource.js +88 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/Drive.resource.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/create.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/create.operation.js +235 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/create.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/deleteDrive.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/deleteDrive.operation.js +31 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/deleteDrive.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/get.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/get.operation.js +50 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/get.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/list.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/list.operation.js +81 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/list.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/update.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/update.operation.js +100 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/update.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/File.resource.d.ts +11 -0
- package/dist/nodes/Google/Drive/v2/actions/file/File.resource.js +115 -0
- package/dist/nodes/Google/Drive/v2/actions/file/File.resource.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/copy.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/copy.operation.js +104 -0
- package/dist/nodes/Google/Drive/v2/actions/file/copy.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/createFromText.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/createFromText.operation.js +134 -0
- package/dist/nodes/Google/Drive/v2/actions/file/createFromText.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/deleteFile.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/deleteFile.operation.js +57 -0
- package/dist/nodes/Google/Drive/v2/actions/file/deleteFile.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/download.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/download.operation.js +218 -0
- package/dist/nodes/Google/Drive/v2/actions/file/download.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/move.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/move.operation.js +60 -0
- package/dist/nodes/Google/Drive/v2/actions/file/move.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/share.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/share.operation.js +43 -0
- package/dist/nodes/Google/Drive/v2/actions/file/share.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/update.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/update.operation.js +221 -0
- package/dist/nodes/Google/Drive/v2/actions/file/update.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/upload.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/upload.operation.js +135 -0
- package/dist/nodes/Google/Drive/v2/actions/file/upload.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/FileFolder.resource.d.ts +4 -0
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/FileFolder.resource.js +52 -0
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/FileFolder.resource.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/search.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/search.operation.js +335 -0
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/search.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/Folder.resource.d.ts +6 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/Folder.resource.js +70 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/Folder.resource.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/create.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/create.operation.js +92 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/create.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/deleteFolder.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/deleteFolder.operation.js +59 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/deleteFolder.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/share.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/share.operation.js +43 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/share.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/node.type.d.ts +9 -0
- package/dist/nodes/Google/Drive/v2/actions/node.type.js +3 -0
- package/dist/nodes/Google/Drive/v2/actions/node.type.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/router.d.ts +2 -0
- package/dist/nodes/Google/Drive/v2/actions/router.js +76 -0
- package/dist/nodes/Google/Drive/v2/actions/router.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/versionDescription.d.ts +2 -0
- package/dist/nodes/Google/Drive/v2/actions/versionDescription.js +112 -0
- package/dist/nodes/Google/Drive/v2/actions/versionDescription.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/helpers/interfaces.d.ts +34 -0
- package/dist/nodes/Google/Drive/v2/helpers/interfaces.js +26 -0
- package/dist/nodes/Google/Drive/v2/helpers/interfaces.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/helpers/utils.d.ts +15 -0
- package/dist/nodes/Google/Drive/v2/helpers/utils.js +104 -0
- package/dist/nodes/Google/Drive/v2/helpers/utils.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/methods/index.d.ts +1 -0
- package/dist/nodes/Google/Drive/v2/methods/index.js +28 -0
- package/dist/nodes/Google/Drive/v2/methods/index.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/methods/listSearch.d.ts +6 -0
- package/dist/nodes/Google/Drive/v2/methods/listSearch.js +144 -0
- package/dist/nodes/Google/Drive/v2/methods/listSearch.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/transport/index.d.ts +4 -0
- package/dist/nodes/Google/Drive/v2/transport/index.js +68 -0
- package/dist/nodes/Google/Drive/v2/transport/index.js.map +1 -0
- package/dist/nodes/Google/GenericFunctions.d.ts +1 -2
- package/dist/nodes/Google/GenericFunctions.js.map +1 -1
- package/dist/nodes/Google/Gmail/GmailTrigger.node.js +7 -2
- package/dist/nodes/Google/Gmail/GmailTrigger.node.js.map +1 -1
- package/dist/nodes/Google/Perspective/types.d.ts +22 -0
- package/dist/nodes/Google/Perspective/types.js +3 -0
- package/dist/nodes/Google/Perspective/types.js.map +1 -0
- package/dist/nodes/Google/Sheet/v1/GoogleSheet.js +2 -2
- package/dist/nodes/Google/Sheet/v1/GoogleSheet.js.map +1 -1
- package/dist/nodes/Google/Sheet/v1/GoogleSheetsV1.node.js +4 -4
- package/dist/nodes/Google/Sheet/v1/GoogleSheetsV1.node.js.map +1 -1
- package/dist/nodes/Google/Sheet/v1/versionDescription.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/methods/resourceMapping.d.ts +1 -2
- package/dist/nodes/Google/Sheet/v2/methods/resourceMapping.js.map +1 -1
- package/dist/nodes/Grafana/types.d.ts +30 -0
- package/dist/nodes/Grafana/types.js +3 -0
- package/dist/nodes/Grafana/types.js.map +1 -0
- package/dist/nodes/GraphQL/GraphQL.node.js +32 -0
- package/dist/nodes/GraphQL/GraphQL.node.js.map +1 -1
- package/dist/nodes/Grist/types.d.ts +50 -0
- package/dist/nodes/Grist/types.js +3 -0
- package/dist/nodes/Grist/types.js.map +1 -0
- package/dist/nodes/HelpScout/HelpScout.node.js +0 -2
- package/dist/nodes/HelpScout/HelpScout.node.js.map +1 -1
- package/dist/nodes/Html/Html.node.d.ts +1 -0
- package/dist/nodes/Html/Html.node.js +143 -2
- package/dist/nodes/Html/Html.node.js.map +1 -1
- package/dist/nodes/Html/Html.node.json +1 -1
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js +22 -0
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js.map +1 -1
- package/dist/nodes/Hubspot/V1/GenericFunctions.d.ts +1 -2
- package/dist/nodes/Hubspot/V1/GenericFunctions.js.map +1 -1
- package/dist/nodes/Hubspot/V1/HubspotV1.node.d.ts +1 -2
- package/dist/nodes/Hubspot/V1/HubspotV1.node.js.map +1 -1
- package/dist/nodes/Hubspot/V2/HubspotV2.node.d.ts +1 -2
- package/dist/nodes/Hubspot/V2/HubspotV2.node.js.map +1 -1
- package/dist/nodes/ItemLists/ItemLists.node.js +3 -1
- package/dist/nodes/ItemLists/ItemLists.node.js.map +1 -1
- package/dist/nodes/ItemLists/V3/ItemListsV3.node.d.ts +6 -0
- package/dist/nodes/ItemLists/V3/ItemListsV3.node.js +18 -0
- package/dist/nodes/ItemLists/V3/ItemListsV3.node.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/common.descriptions.d.ts +2 -0
- package/dist/nodes/ItemLists/V3/actions/common.descriptions.js +11 -0
- package/dist/nodes/ItemLists/V3/actions/common.descriptions.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.d.ts +22 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.js +303 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/index.d.ts +9 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/index.js +97 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/index.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.d.ts +22 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.js +57 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.d.ts +22 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.js +204 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.d.ts +22 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.js +262 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.d.ts +22 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.js +183 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.d.ts +23 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.js +491 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/node.type.d.ts +6 -0
- package/dist/nodes/ItemLists/V3/actions/node.type.js +3 -0
- package/dist/nodes/ItemLists/V3/actions/node.type.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/router.d.ts +2 -0
- package/dist/nodes/ItemLists/V3/actions/router.js +53 -0
- package/dist/nodes/ItemLists/V3/actions/router.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/versionDescription.d.ts +2 -0
- package/dist/nodes/ItemLists/V3/actions/versionDescription.js +58 -0
- package/dist/nodes/ItemLists/V3/actions/versionDescription.js.map +1 -0
- package/dist/nodes/ItemLists/V3/helpers/utils.d.ts +5 -0
- package/dist/nodes/ItemLists/V3/helpers/utils.js +57 -0
- package/dist/nodes/ItemLists/V3/helpers/utils.js.map +1 -0
- package/dist/nodes/ItemLists/test/node/workflow.update_3.json +606 -0
- package/dist/nodes/Ldap/Ldap.node.d.ts +1 -2
- package/dist/nodes/LoneScale/GenericFunctions.d.ts +1 -2
- package/dist/nodes/LoneScale/GenericFunctions.js.map +1 -1
- package/dist/nodes/LoneScale/LoneScaleTrigger.node.d.ts +1 -2
- package/dist/nodes/LoneScale/LoneScaleTrigger.node.js.map +1 -1
- package/dist/nodes/Magento/GenericFunctions.d.ts +1 -1
- package/dist/nodes/Magento/GenericFunctions.js.map +1 -1
- package/dist/nodes/Magento/types.d.ts +173 -0
- package/dist/nodes/Magento/types.js +3 -0
- package/dist/nodes/Magento/types.js.map +1 -0
- package/dist/nodes/Marketstack/types.d.ts +10 -0
- package/dist/nodes/Marketstack/types.js +3 -0
- package/dist/nodes/Marketstack/types.js.map +1 -0
- package/dist/nodes/Matrix/GenericFunctions.js +8 -2
- package/dist/nodes/Matrix/GenericFunctions.js.map +1 -1
- package/dist/nodes/Matrix/MediaDescription.js +23 -1
- package/dist/nodes/Matrix/MediaDescription.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v1/MicrosoftExcelV1.node.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v1/MicrosoftExcelV1.node.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/MicrosoftExcelV2.node.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/MicrosoftExcelV2.node.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/router.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/router.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/addTable.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/table/addTable.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/append.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/table/append.operation.js +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/append.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/convertToRange.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/table/convertToRange.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/deleteTable.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/table/deleteTable.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/getColumns.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/table/getColumns.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/getRows.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/table/getRows.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/lookup.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/table/lookup.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/workbook/addWorksheet.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/workbook/addWorksheet.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/workbook/deleteWorkbook.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/workbook/deleteWorkbook.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/workbook/getAll.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/workbook/getAll.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/append.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/append.operation.js +5 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/append.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/clear.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/clear.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/deleteWorksheet.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/deleteWorksheet.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/getAll.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/getAll.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/readRows.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/readRows.operation.js +2 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/readRows.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/update.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/update.operation.js +2 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/update.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/upsert.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/upsert.operation.js +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/upsert.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/helpers/utils.d.ts +2 -3
- package/dist/nodes/Microsoft/Excel/v2/helpers/utils.js +2 -3
- package/dist/nodes/Microsoft/Excel/v2/helpers/utils.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/transport/index.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/transport/index.js.map +1 -1
- package/dist/nodes/Microsoft/ToDo/MicrosoftToDo.node.js +7 -0
- package/dist/nodes/Microsoft/ToDo/MicrosoftToDo.node.js.map +1 -1
- package/dist/nodes/Microsoft/ToDo/TaskDescription.js +7 -0
- package/dist/nodes/Microsoft/ToDo/TaskDescription.js.map +1 -1
- package/dist/nodes/Misp/types.d.ts +31 -0
- package/dist/nodes/Misp/types.js +3 -0
- package/dist/nodes/Misp/types.js.map +1 -0
- package/dist/nodes/MonicaCrm/types.d.ts +11 -0
- package/dist/nodes/MonicaCrm/types.js +3 -0
- package/dist/nodes/MonicaCrm/types.js.map +1 -0
- package/dist/nodes/MySql/v1/MySqlV1.node.d.ts +1 -2
- package/dist/nodes/MySql/v1/MySqlV1.node.js.map +1 -1
- package/dist/nodes/MySql/v2/MySqlV2.node.d.ts +1 -2
- package/dist/nodes/MySql/v2/MySqlV2.node.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/deleteTable.operation.d.ts +1 -2
- package/dist/nodes/MySql/v2/actions/database/deleteTable.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/executeQuery.operation.d.ts +1 -2
- package/dist/nodes/MySql/v2/actions/database/executeQuery.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/insert.operation.d.ts +1 -2
- package/dist/nodes/MySql/v2/actions/database/insert.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/select.operation.d.ts +1 -2
- package/dist/nodes/MySql/v2/actions/database/select.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/update.operation.d.ts +1 -2
- package/dist/nodes/MySql/v2/actions/database/update.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/upsert.operation.d.ts +1 -2
- package/dist/nodes/MySql/v2/actions/database/upsert.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/router.d.ts +1 -2
- package/dist/nodes/MySql/v2/actions/router.js.map +1 -1
- package/dist/nodes/Notion/DatabasePageDescription.js +41 -0
- package/dist/nodes/Notion/DatabasePageDescription.js.map +1 -1
- package/dist/nodes/Notion/v2/NotionV2.node.js +9 -0
- package/dist/nodes/Notion/v2/NotionV2.node.js.map +1 -1
- package/dist/nodes/OpenAi/ChatDescription.js +2 -2
- package/dist/nodes/OpenAi/ChatDescription.js.map +1 -1
- package/dist/nodes/OpenAi/TextDescription.js +2 -2
- package/dist/nodes/OpenAi/TextDescription.js.map +1 -1
- package/dist/nodes/Postgres/v1/PostgresV1.node.d.ts +1 -2
- package/dist/nodes/Postgres/v2/PostgresV2.node.d.ts +1 -2
- package/dist/nodes/Postgres/v2/actions/database/deleteTable.operation.d.ts +1 -2
- package/dist/nodes/Postgres/v2/actions/database/deleteTable.operation.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/database/executeQuery.operation.d.ts +1 -2
- package/dist/nodes/Postgres/v2/actions/database/executeQuery.operation.js +28 -6
- package/dist/nodes/Postgres/v2/actions/database/executeQuery.operation.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/database/insert.operation.d.ts +1 -2
- package/dist/nodes/Postgres/v2/actions/database/insert.operation.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/database/select.operation.d.ts +1 -2
- package/dist/nodes/Postgres/v2/actions/database/select.operation.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/database/update.operation.d.ts +1 -2
- package/dist/nodes/Postgres/v2/actions/database/update.operation.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/database/upsert.operation.d.ts +1 -2
- package/dist/nodes/Postgres/v2/actions/database/upsert.operation.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/router.js +2 -1
- package/dist/nodes/Postgres/v2/actions/router.js.map +1 -1
- package/dist/nodes/Postgres/v2/helpers/interfaces.d.ts +1 -4
- package/dist/nodes/Postgres/v2/helpers/utils.d.ts +3 -3
- package/dist/nodes/Postgres/v2/helpers/utils.js +68 -65
- package/dist/nodes/Postgres/v2/helpers/utils.js.map +1 -1
- package/dist/nodes/QuickBooks/types.d.ts +47 -0
- package/dist/nodes/QuickBooks/types.js +3 -0
- package/dist/nodes/QuickBooks/types.js.map +1 -0
- package/dist/nodes/ReadPdf/ReadPDF.node.d.ts +1 -1
- package/dist/nodes/ReadPdf/ReadPDF.node.js +69 -11
- package/dist/nodes/ReadPdf/ReadPDF.node.js.map +1 -1
- package/dist/nodes/ReadPdf/test/ReadPDF-encrypted.workflow.json +87 -0
- package/dist/nodes/ReadPdf/test/ReadPDF.workflow.json +47 -27
- package/dist/nodes/RssFeedRead/RssFeedRead.node.js +1 -1
- package/dist/nodes/RssFeedRead/RssFeedRead.node.js.map +1 -1
- package/dist/nodes/Rundeck/Rundeck.node.js +17 -1
- package/dist/nodes/Rundeck/Rundeck.node.js.map +1 -1
- package/dist/nodes/Rundeck/RundeckApi.d.ts +1 -1
- package/dist/nodes/Rundeck/RundeckApi.js +6 -2
- package/dist/nodes/Rundeck/RundeckApi.js.map +1 -1
- package/dist/nodes/SeaTable/Schema.d.ts +4 -4
- package/dist/nodes/SeaTable/types.d.ts +33 -0
- package/dist/nodes/SeaTable/types.js +3 -0
- package/dist/nodes/SeaTable/types.js.map +1 -0
- package/dist/nodes/Sendy/Sendy.node.js.map +1 -1
- package/dist/nodes/Slack/Slack.node.js +2 -1
- package/dist/nodes/Slack/Slack.node.js.map +1 -1
- package/dist/nodes/Slack/V2/GenericFunctions.d.ts +1 -0
- package/dist/nodes/Slack/V2/GenericFunctions.js +44 -1
- package/dist/nodes/Slack/V2/GenericFunctions.js.map +1 -1
- package/dist/nodes/Slack/V2/MessageDescription.js +7 -0
- package/dist/nodes/Slack/V2/MessageDescription.js.map +1 -1
- package/dist/nodes/Slack/V2/SlackV2.node.js +2 -20
- package/dist/nodes/Slack/V2/SlackV2.node.js.map +1 -1
- package/dist/nodes/Splunk/types.d.ts +40 -0
- package/dist/nodes/Splunk/types.js +3 -0
- package/dist/nodes/Splunk/types.js.map +1 -0
- package/dist/nodes/Strava/ActivityDescription.js +7 -0
- package/dist/nodes/Strava/ActivityDescription.js.map +1 -1
- package/dist/nodes/Strava/Strava.node.js +0 -6
- package/dist/nodes/Strava/Strava.node.js.map +1 -1
- package/dist/nodes/Taiga/types.d.ts +31 -0
- package/dist/nodes/Taiga/types.js +2 -0
- package/dist/nodes/Taiga/types.js.map +1 -0
- package/dist/nodes/Telegram/TelegramTrigger.node.js +1 -1
- package/dist/nodes/Telegram/TelegramTrigger.node.js.map +1 -1
- package/dist/nodes/Twitter/Twitter.node.d.ts +3 -9
- package/dist/nodes/Twitter/Twitter.node.js +12 -224
- package/dist/nodes/Twitter/Twitter.node.js.map +1 -1
- package/dist/nodes/Twitter/Twitter.node.json +2 -1
- package/dist/nodes/Twitter/V1/DirectMessageDescription.js.map +1 -0
- package/dist/nodes/Twitter/V1/GenericFunctions.js.map +1 -0
- package/dist/nodes/Twitter/V1/TweetDescription.js.map +1 -0
- package/dist/nodes/Twitter/V1/TweetInterface.js.map +1 -0
- package/dist/nodes/Twitter/V1/TwitterV1.node.d.ts +11 -0
- package/dist/nodes/Twitter/V1/TwitterV1.node.js +235 -0
- package/dist/nodes/Twitter/V1/TwitterV1.node.js.map +1 -0
- package/dist/nodes/Twitter/V2/DirectMessageDescription.d.ts +3 -0
- package/dist/nodes/Twitter/V2/DirectMessageDescription.js +100 -0
- package/dist/nodes/Twitter/V2/DirectMessageDescription.js.map +1 -0
- package/dist/nodes/Twitter/V2/GenericFunctions.d.ts +5 -0
- package/dist/nodes/Twitter/V2/GenericFunctions.js +88 -0
- package/dist/nodes/Twitter/V2/GenericFunctions.js.map +1 -0
- package/dist/nodes/Twitter/V2/ListDescription.d.ts +3 -0
- package/dist/nodes/Twitter/V2/ListDescription.js +92 -0
- package/dist/nodes/Twitter/V2/ListDescription.js.map +1 -0
- package/dist/nodes/Twitter/V2/TweetDescription.d.ts +3 -0
- package/dist/nodes/Twitter/V2/TweetDescription.js +452 -0
- package/dist/nodes/Twitter/V2/TweetDescription.js.map +1 -0
- package/dist/nodes/Twitter/V2/TweetInterface.d.ts +23 -0
- package/dist/nodes/Twitter/V2/TweetInterface.js +3 -0
- package/dist/nodes/Twitter/V2/TweetInterface.js.map +1 -0
- package/dist/nodes/Twitter/V2/TwitterV2.node.d.ts +11 -0
- package/dist/nodes/Twitter/V2/TwitterV2.node.js +245 -0
- package/dist/nodes/Twitter/V2/TwitterV2.node.js.map +1 -0
- package/dist/nodes/Twitter/V2/UserDescription.d.ts +3 -0
- package/dist/nodes/Twitter/V2/UserDescription.js +76 -0
- package/dist/nodes/Twitter/V2/UserDescription.js.map +1 -0
- package/dist/nodes/Twitter/test/Workflow_Twitter_UnitTest.json +284 -0
- package/dist/nodes/UProc/UProc.node.js +0 -1
- package/dist/nodes/UProc/UProc.node.js.map +1 -1
- package/dist/nodes/Wait/Wait.node.d.ts +7 -4
- package/dist/nodes/Wait/Wait.node.js +77 -499
- package/dist/nodes/Wait/Wait.node.js.map +1 -1
- package/dist/nodes/Webhook/Webhook.node.d.ts +8 -3
- package/dist/nodes/Webhook/Webhook.node.js +148 -460
- package/dist/nodes/Webhook/Webhook.node.js.map +1 -1
- package/dist/nodes/Webhook/description.d.ts +10 -0
- package/dist/nodes/Webhook/description.js +325 -0
- package/dist/nodes/Webhook/description.js.map +1 -0
- package/dist/nodes/Webhook/error.d.ts +4 -0
- package/dist/nodes/Webhook/error.js +20 -0
- package/dist/nodes/Webhook/error.js.map +1 -0
- package/dist/nodes/Zammad/types.d.ts +81 -0
- package/dist/nodes/Zammad/types.js +3 -0
- package/dist/nodes/Zammad/types.js.map +1 -0
- package/dist/nodes/Zoho/types.d.ts +93 -0
- package/dist/nodes/Zoho/types.js +3 -0
- package/dist/nodes/Zoho/types.js.map +1 -0
- package/dist/types/credentials.json +8 -5
- package/dist/types/nodes.json +30 -22
- package/package.json +9 -5
- package/dist/nodes/Airtable/GenericFunctions.js.map +0 -1
- package/dist/nodes/Google/Drive/GenericFunctions.js.map +0 -1
- package/dist/nodes/Google/Drive/SearchFunctions.js.map +0 -1
- package/dist/nodes/Twitter/DirectMessageDescription.js.map +0 -1
- package/dist/nodes/Twitter/GenericFunctions.js.map +0 -1
- package/dist/nodes/Twitter/TweetDescription.js.map +0 -1
- package/dist/nodes/Twitter/TweetInterface.js.map +0 -1
- /package/dist/nodes/Airtable/{GenericFunctions.d.ts → v1/GenericFunctions.d.ts} +0 -0
- /package/dist/nodes/Airtable/{GenericFunctions.js → v1/GenericFunctions.js} +0 -0
- /package/dist/nodes/Google/Drive/{GenericFunctions.d.ts → v1/GenericFunctions.d.ts} +0 -0
- /package/dist/nodes/Google/Drive/{SearchFunctions.d.ts → v1/SearchFunctions.d.ts} +0 -0
- /package/dist/nodes/Google/Drive/{SearchFunctions.js → v1/SearchFunctions.js} +0 -0
- /package/dist/nodes/Twitter/{DirectMessageDescription.d.ts → V1/DirectMessageDescription.d.ts} +0 -0
- /package/dist/nodes/Twitter/{DirectMessageDescription.js → V1/DirectMessageDescription.js} +0 -0
- /package/dist/nodes/Twitter/{GenericFunctions.d.ts → V1/GenericFunctions.d.ts} +0 -0
- /package/dist/nodes/Twitter/{GenericFunctions.js → V1/GenericFunctions.js} +0 -0
- /package/dist/nodes/Twitter/{TweetDescription.d.ts → V1/TweetDescription.d.ts} +0 -0
- /package/dist/nodes/Twitter/{TweetDescription.js → V1/TweetDescription.js} +0 -0
- /package/dist/nodes/Twitter/{TweetInterface.d.ts → V1/TweetInterface.d.ts} +0 -0
- /package/dist/nodes/Twitter/{TweetInterface.js → V1/TweetInterface.js} +0 -0
|
@@ -0,0 +1,491 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.execute = exports.description = exports.properties = void 0;
|
|
7
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
8
|
+
const utilities_1 = require("../../../../../utils/utilities");
|
|
9
|
+
const get_1 = __importDefault(require("lodash/get"));
|
|
10
|
+
const common_descriptions_1 = require("../common.descriptions");
|
|
11
|
+
const AggregationDisplayNames = {
|
|
12
|
+
append: 'appended_',
|
|
13
|
+
average: 'average_',
|
|
14
|
+
concatenate: 'concatenated_',
|
|
15
|
+
count: 'count_',
|
|
16
|
+
countUnique: 'unique_count_',
|
|
17
|
+
max: 'max_',
|
|
18
|
+
min: 'min_',
|
|
19
|
+
sum: 'sum_',
|
|
20
|
+
};
|
|
21
|
+
const NUMERICAL_AGGREGATIONS = ['average', 'sum'];
|
|
22
|
+
exports.properties = [
|
|
23
|
+
{
|
|
24
|
+
displayName: 'Fields to Summarize',
|
|
25
|
+
name: 'fieldsToSummarize',
|
|
26
|
+
type: 'fixedCollection',
|
|
27
|
+
placeholder: 'Add Field',
|
|
28
|
+
default: { values: [{ aggregation: 'count', field: '' }] },
|
|
29
|
+
typeOptions: {
|
|
30
|
+
multipleValues: true,
|
|
31
|
+
},
|
|
32
|
+
options: [
|
|
33
|
+
{
|
|
34
|
+
displayName: '',
|
|
35
|
+
name: 'values',
|
|
36
|
+
values: [
|
|
37
|
+
{
|
|
38
|
+
displayName: 'Aggregation',
|
|
39
|
+
name: 'aggregation',
|
|
40
|
+
type: 'options',
|
|
41
|
+
options: [
|
|
42
|
+
{
|
|
43
|
+
name: 'Append',
|
|
44
|
+
value: 'append',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Average',
|
|
48
|
+
value: 'average',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: 'Concatenate',
|
|
52
|
+
value: 'concatenate',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'Count',
|
|
56
|
+
value: 'count',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'Count Unique',
|
|
60
|
+
value: 'countUnique',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: 'Max',
|
|
64
|
+
value: 'max',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: 'Min',
|
|
68
|
+
value: 'min',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'Sum',
|
|
72
|
+
value: 'sum',
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
default: 'count',
|
|
76
|
+
description: 'How to combine the values of the field you want to summarize',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
displayName: 'Field',
|
|
80
|
+
name: 'field',
|
|
81
|
+
type: 'string',
|
|
82
|
+
default: '',
|
|
83
|
+
description: 'The name of an input field that you want to summarize',
|
|
84
|
+
placeholder: 'e.g. cost',
|
|
85
|
+
hint: ' Enter the field name as text',
|
|
86
|
+
displayOptions: {
|
|
87
|
+
hide: {
|
|
88
|
+
aggregation: [...NUMERICAL_AGGREGATIONS, 'countUnique', 'count', 'max', 'min'],
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
requiresDataPath: 'single',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
displayName: 'Field',
|
|
95
|
+
name: 'field',
|
|
96
|
+
type: 'string',
|
|
97
|
+
default: '',
|
|
98
|
+
description: 'The name of an input field that you want to summarize. The field should contain numerical values; null, undefined, empty strings would be ignored.',
|
|
99
|
+
placeholder: 'e.g. cost',
|
|
100
|
+
hint: ' Enter the field name as text',
|
|
101
|
+
displayOptions: {
|
|
102
|
+
show: {
|
|
103
|
+
aggregation: NUMERICAL_AGGREGATIONS,
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
requiresDataPath: 'single',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
displayName: 'Field',
|
|
110
|
+
name: 'field',
|
|
111
|
+
type: 'string',
|
|
112
|
+
default: '',
|
|
113
|
+
description: 'The name of an input field that you want to summarize; null, undefined, empty strings would be ignored',
|
|
114
|
+
placeholder: 'e.g. cost',
|
|
115
|
+
hint: ' Enter the field name as text',
|
|
116
|
+
displayOptions: {
|
|
117
|
+
show: {
|
|
118
|
+
aggregation: ['countUnique', 'count', 'max', 'min'],
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
requiresDataPath: 'single',
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
displayName: 'Include Empty Values',
|
|
125
|
+
name: 'includeEmpty',
|
|
126
|
+
type: 'boolean',
|
|
127
|
+
default: false,
|
|
128
|
+
displayOptions: {
|
|
129
|
+
show: {
|
|
130
|
+
aggregation: ['append', 'concatenate'],
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
displayName: 'Separator',
|
|
136
|
+
name: 'separateBy',
|
|
137
|
+
type: 'options',
|
|
138
|
+
default: ',',
|
|
139
|
+
options: [
|
|
140
|
+
{
|
|
141
|
+
name: 'Comma',
|
|
142
|
+
value: ',',
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: 'Comma and Space',
|
|
146
|
+
value: ', ',
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: 'New Line',
|
|
150
|
+
value: '\n',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: 'None',
|
|
154
|
+
value: '',
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: 'Space',
|
|
158
|
+
value: ' ',
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: 'Other',
|
|
162
|
+
value: 'other',
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
hint: 'What to insert between values',
|
|
166
|
+
displayOptions: {
|
|
167
|
+
show: {
|
|
168
|
+
aggregation: ['concatenate'],
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
displayName: 'Custom Separator',
|
|
174
|
+
name: 'customSeparator',
|
|
175
|
+
type: 'string',
|
|
176
|
+
default: '',
|
|
177
|
+
displayOptions: {
|
|
178
|
+
show: {
|
|
179
|
+
aggregation: ['concatenate'],
|
|
180
|
+
separateBy: ['other'],
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
},
|
|
186
|
+
],
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
displayName: 'Fields to Split By',
|
|
190
|
+
name: 'fieldsToSplitBy',
|
|
191
|
+
type: 'string',
|
|
192
|
+
placeholder: 'e.g. country, city',
|
|
193
|
+
default: '',
|
|
194
|
+
description: 'The name of the input fields that you want to split the summary by',
|
|
195
|
+
hint: 'Enter the name of the fields as text (separated by commas)',
|
|
196
|
+
displayOptions: {
|
|
197
|
+
hide: {
|
|
198
|
+
'/options.outputFormat': ['singleItem'],
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
requiresDataPath: 'multiple',
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
displayName: 'Fields to Group By',
|
|
205
|
+
name: 'fieldsToSplitBy',
|
|
206
|
+
type: 'string',
|
|
207
|
+
placeholder: 'e.g. country, city',
|
|
208
|
+
default: '',
|
|
209
|
+
description: 'The name of the input fields that you want to split the summary by',
|
|
210
|
+
hint: 'Enter the name of the fields as text (separated by commas)',
|
|
211
|
+
displayOptions: {
|
|
212
|
+
show: {
|
|
213
|
+
'/options.outputFormat': ['singleItem'],
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
requiresDataPath: 'multiple',
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
displayName: 'Options',
|
|
220
|
+
name: 'options',
|
|
221
|
+
type: 'collection',
|
|
222
|
+
placeholder: 'Add Option',
|
|
223
|
+
default: {},
|
|
224
|
+
options: [
|
|
225
|
+
common_descriptions_1.disableDotNotationBoolean,
|
|
226
|
+
{
|
|
227
|
+
displayName: 'Output Format',
|
|
228
|
+
name: 'outputFormat',
|
|
229
|
+
type: 'options',
|
|
230
|
+
default: 'separateItems',
|
|
231
|
+
options: [
|
|
232
|
+
{
|
|
233
|
+
name: 'Each Split in a Separate Item',
|
|
234
|
+
value: 'separateItems',
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
name: 'All Splits in a Single Item',
|
|
238
|
+
value: 'singleItem',
|
|
239
|
+
},
|
|
240
|
+
],
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
displayName: 'Ignore items without valid fields to group by',
|
|
244
|
+
name: 'skipEmptySplitFields',
|
|
245
|
+
type: 'boolean',
|
|
246
|
+
default: false,
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
},
|
|
250
|
+
];
|
|
251
|
+
const displayOptions = {
|
|
252
|
+
show: {
|
|
253
|
+
resource: ['itemList'],
|
|
254
|
+
operation: ['summarize'],
|
|
255
|
+
},
|
|
256
|
+
};
|
|
257
|
+
exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, exports.properties);
|
|
258
|
+
function isEmpty(value) {
|
|
259
|
+
return value === undefined || value === null || value === '';
|
|
260
|
+
}
|
|
261
|
+
function parseReturnData(returnData) {
|
|
262
|
+
const regexBrackets = /[\]\["]/g;
|
|
263
|
+
const regexSpaces = /[ .]/g;
|
|
264
|
+
for (const key of Object.keys(returnData)) {
|
|
265
|
+
if (key.match(regexBrackets)) {
|
|
266
|
+
const newKey = key.replace(regexBrackets, '');
|
|
267
|
+
returnData[newKey] = returnData[key];
|
|
268
|
+
delete returnData[key];
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
for (const key of Object.keys(returnData)) {
|
|
272
|
+
if (key.match(regexSpaces)) {
|
|
273
|
+
const newKey = key.replace(regexSpaces, '_');
|
|
274
|
+
returnData[newKey] = returnData[key];
|
|
275
|
+
delete returnData[key];
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
function parseFieldName(fieldName) {
|
|
280
|
+
const regexBrackets = /[\]\["]/g;
|
|
281
|
+
const regexSpaces = /[ .]/g;
|
|
282
|
+
fieldName = fieldName.map((field) => {
|
|
283
|
+
field = field.replace(regexBrackets, '');
|
|
284
|
+
field = field.replace(regexSpaces, '_');
|
|
285
|
+
return field;
|
|
286
|
+
});
|
|
287
|
+
return fieldName;
|
|
288
|
+
}
|
|
289
|
+
const fieldValueGetter = (disableDotNotation) => {
|
|
290
|
+
if (disableDotNotation) {
|
|
291
|
+
return (item, field) => item[field];
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
return (item, field) => (0, get_1.default)(item, field);
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
function checkIfFieldExists(items, aggregations, getValue) {
|
|
298
|
+
for (const aggregation of aggregations) {
|
|
299
|
+
if (aggregation.field === '') {
|
|
300
|
+
continue;
|
|
301
|
+
}
|
|
302
|
+
const exist = items.some((item) => getValue(item, aggregation.field) !== undefined);
|
|
303
|
+
if (!exist) {
|
|
304
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The field '${aggregation.field}' does not exist in any items`);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
function aggregate(items, entry, getValue) {
|
|
309
|
+
const { aggregation, field } = entry;
|
|
310
|
+
let data = [...items];
|
|
311
|
+
if (NUMERICAL_AGGREGATIONS.includes(aggregation)) {
|
|
312
|
+
data = data.filter((item) => typeof getValue(item, field) === 'number' && !isEmpty(getValue(item, field)));
|
|
313
|
+
}
|
|
314
|
+
switch (aggregation) {
|
|
315
|
+
case 'append':
|
|
316
|
+
if (!entry.includeEmpty) {
|
|
317
|
+
data = data.filter((item) => !isEmpty(getValue(item, field)));
|
|
318
|
+
}
|
|
319
|
+
return data.map((item) => getValue(item, field));
|
|
320
|
+
case 'concatenate':
|
|
321
|
+
const separateBy = entry.separateBy === 'other' ? entry.customSeparator : entry.separateBy;
|
|
322
|
+
if (!entry.includeEmpty) {
|
|
323
|
+
data = data.filter((item) => !isEmpty(getValue(item, field)));
|
|
324
|
+
}
|
|
325
|
+
return data
|
|
326
|
+
.map((item) => {
|
|
327
|
+
let value = getValue(item, field);
|
|
328
|
+
if (typeof value === 'object') {
|
|
329
|
+
value = JSON.stringify(value);
|
|
330
|
+
}
|
|
331
|
+
if (typeof value === 'undefined') {
|
|
332
|
+
value = 'undefined';
|
|
333
|
+
}
|
|
334
|
+
return value;
|
|
335
|
+
})
|
|
336
|
+
.join(separateBy);
|
|
337
|
+
case 'average':
|
|
338
|
+
return (data.reduce((acc, item) => {
|
|
339
|
+
return acc + getValue(item, field);
|
|
340
|
+
}, 0) / data.length);
|
|
341
|
+
case 'sum':
|
|
342
|
+
return data.reduce((acc, item) => {
|
|
343
|
+
return acc + getValue(item, field);
|
|
344
|
+
}, 0);
|
|
345
|
+
case 'min':
|
|
346
|
+
let min;
|
|
347
|
+
for (const item of data) {
|
|
348
|
+
const value = getValue(item, field);
|
|
349
|
+
if (value !== undefined && value !== null && value !== '') {
|
|
350
|
+
if (min === undefined || value < min) {
|
|
351
|
+
min = value;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
return min !== undefined ? min : null;
|
|
356
|
+
case 'max':
|
|
357
|
+
let max;
|
|
358
|
+
for (const item of data) {
|
|
359
|
+
const value = getValue(item, field);
|
|
360
|
+
if (value !== undefined && value !== null && value !== '') {
|
|
361
|
+
if (max === undefined || value > max) {
|
|
362
|
+
max = value;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
return max !== undefined ? max : null;
|
|
367
|
+
case 'countUnique':
|
|
368
|
+
return new Set(data.map((item) => getValue(item, field)).filter((item) => !isEmpty(item)))
|
|
369
|
+
.size;
|
|
370
|
+
default:
|
|
371
|
+
return data.filter((item) => !isEmpty(getValue(item, field))).length;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
function aggregateData(data, fieldsToSummarize, options, getValue) {
|
|
375
|
+
const returnData = fieldsToSummarize.reduce((acc, aggregation) => {
|
|
376
|
+
acc[`${AggregationDisplayNames[aggregation.aggregation]}${aggregation.field}`] = aggregate(data, aggregation, getValue);
|
|
377
|
+
return acc;
|
|
378
|
+
}, {});
|
|
379
|
+
parseReturnData(returnData);
|
|
380
|
+
if (options.outputFormat === 'singleItem') {
|
|
381
|
+
parseReturnData(returnData);
|
|
382
|
+
return returnData;
|
|
383
|
+
}
|
|
384
|
+
else {
|
|
385
|
+
return { ...returnData, pairedItems: data.map((item) => item._itemIndex) };
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
function splitData(splitKeys, data, fieldsToSummarize, options, getValue) {
|
|
389
|
+
if (!splitKeys || splitKeys.length === 0) {
|
|
390
|
+
return aggregateData(data, fieldsToSummarize, options, getValue);
|
|
391
|
+
}
|
|
392
|
+
const [firstSplitKey, ...restSplitKeys] = splitKeys;
|
|
393
|
+
const groupedData = data.reduce((acc, item) => {
|
|
394
|
+
let keyValuee = getValue(item, firstSplitKey);
|
|
395
|
+
if (typeof keyValuee === 'object') {
|
|
396
|
+
keyValuee = JSON.stringify(keyValuee);
|
|
397
|
+
}
|
|
398
|
+
if (options.skipEmptySplitFields && typeof keyValuee !== 'number' && !keyValuee) {
|
|
399
|
+
return acc;
|
|
400
|
+
}
|
|
401
|
+
if (acc[keyValuee] === undefined) {
|
|
402
|
+
acc[keyValuee] = [item];
|
|
403
|
+
}
|
|
404
|
+
else {
|
|
405
|
+
acc[keyValuee].push(item);
|
|
406
|
+
}
|
|
407
|
+
return acc;
|
|
408
|
+
}, {});
|
|
409
|
+
return Object.keys(groupedData).reduce((acc, key) => {
|
|
410
|
+
const value = groupedData[key];
|
|
411
|
+
acc[key] = splitData(restSplitKeys, value, fieldsToSummarize, options, getValue);
|
|
412
|
+
return acc;
|
|
413
|
+
}, {});
|
|
414
|
+
}
|
|
415
|
+
function aggregationToArray(aggregationResult, fieldsToSplitBy, previousStage = {}) {
|
|
416
|
+
const returnData = [];
|
|
417
|
+
fieldsToSplitBy = parseFieldName(fieldsToSplitBy);
|
|
418
|
+
const splitFieldName = fieldsToSplitBy[0];
|
|
419
|
+
const isNext = fieldsToSplitBy[1];
|
|
420
|
+
if (isNext === undefined) {
|
|
421
|
+
for (const fieldName of Object.keys(aggregationResult)) {
|
|
422
|
+
returnData.push({
|
|
423
|
+
...previousStage,
|
|
424
|
+
[splitFieldName]: fieldName,
|
|
425
|
+
...aggregationResult[fieldName],
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
return returnData;
|
|
429
|
+
}
|
|
430
|
+
else {
|
|
431
|
+
for (const key of Object.keys(aggregationResult)) {
|
|
432
|
+
returnData.push(...aggregationToArray(aggregationResult[key], fieldsToSplitBy.slice(1), {
|
|
433
|
+
...previousStage,
|
|
434
|
+
[splitFieldName]: key,
|
|
435
|
+
}));
|
|
436
|
+
}
|
|
437
|
+
return returnData;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
async function execute(items) {
|
|
441
|
+
const newItems = items.map(({ json }, i) => ({ ...json, _itemIndex: i }));
|
|
442
|
+
const options = this.getNodeParameter('options', 0, {});
|
|
443
|
+
const fieldsToSplitBy = this.getNodeParameter('fieldsToSplitBy', 0, '')
|
|
444
|
+
.split(',')
|
|
445
|
+
.map((field) => field.trim())
|
|
446
|
+
.filter((field) => field);
|
|
447
|
+
const fieldsToSummarize = this.getNodeParameter('fieldsToSummarize.values', 0, []);
|
|
448
|
+
if (fieldsToSummarize.filter((aggregation) => aggregation.field !== '').length === 0) {
|
|
449
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), "You need to add at least one aggregation to 'Fields to Summarize' with non empty 'Field'");
|
|
450
|
+
}
|
|
451
|
+
const getValue = fieldValueGetter(options.disableDotNotation);
|
|
452
|
+
const nodeVersion = this.getNode().typeVersion;
|
|
453
|
+
if (nodeVersion < 2.1) {
|
|
454
|
+
checkIfFieldExists.call(this, newItems, fieldsToSummarize, getValue);
|
|
455
|
+
}
|
|
456
|
+
const aggregationResult = splitData(fieldsToSplitBy, newItems, fieldsToSummarize, options, getValue);
|
|
457
|
+
if (options.outputFormat === 'singleItem') {
|
|
458
|
+
const executionData = {
|
|
459
|
+
json: aggregationResult,
|
|
460
|
+
pairedItem: newItems.map((_v, index) => ({
|
|
461
|
+
item: index,
|
|
462
|
+
})),
|
|
463
|
+
};
|
|
464
|
+
return [executionData];
|
|
465
|
+
}
|
|
466
|
+
else {
|
|
467
|
+
if (!fieldsToSplitBy.length) {
|
|
468
|
+
const { pairedItems, ...json } = aggregationResult;
|
|
469
|
+
const executionData = {
|
|
470
|
+
json,
|
|
471
|
+
pairedItem: (pairedItems || []).map((index) => ({
|
|
472
|
+
item: index,
|
|
473
|
+
})),
|
|
474
|
+
};
|
|
475
|
+
return [executionData];
|
|
476
|
+
}
|
|
477
|
+
const returnData = aggregationToArray(aggregationResult, fieldsToSplitBy);
|
|
478
|
+
const executionData = returnData.map((item) => {
|
|
479
|
+
const { pairedItems, ...json } = item;
|
|
480
|
+
return {
|
|
481
|
+
json,
|
|
482
|
+
pairedItem: (pairedItems || []).map((index) => ({
|
|
483
|
+
item: index,
|
|
484
|
+
})),
|
|
485
|
+
};
|
|
486
|
+
});
|
|
487
|
+
return executionData;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
exports.execute = execute;
|
|
491
|
+
//# sourceMappingURL=summarize.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"summarize.operation.js","sourceRoot":"","sources":["../../../../../../nodes/ItemLists/V3/actions/itemList/summarize.operation.ts"],"names":[],"mappings":";;;;;;AAOA,+CAAkD;AAElD,gDAAwD;AAExD,qDAA6B;AAC7B,gEAAmE;AAuBnE,MAAM,uBAAuB,GAAG;IAC/B,MAAM,EAAE,WAAW;IACnB,OAAO,EAAE,UAAU;IACnB,WAAW,EAAE,eAAe;IAC5B,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,eAAe;IAC5B,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,MAAM;CACX,CAAC;AAEF,MAAM,sBAAsB,GAAG,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;AAarC,QAAA,UAAU,GAAsB;IAC5C;QACC,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,EAAE;QAC1D,WAAW,EAAE;YACZ,cAAc,EAAE,IAAI;SACpB;QACD,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,EAAE;gBACf,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACP;wBACC,WAAW,EAAE,aAAa;wBAC1B,IAAI,EAAE,aAAa;wBACnB,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACR;gCACC,IAAI,EAAE,QAAQ;gCACd,KAAK,EAAE,QAA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B,UAAU,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;gBACxC,IAAI,EAAE,KAAK;aACX,CAAC,CAAC;SACH,CAAC;QACF,OAAO,CAAC,aAAa,CAAC,CAAC;KACvB;SAAM;QACN,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE;YAC5B,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,iBAAiB,CAAC;YACnD,MAAM,aAAa,GAAuB;gBACzC,IAAI;gBACJ,UAAU,EAAE,CAAE,WAAwB,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC;oBACrE,IAAI,EAAE,KAAK;iBACX,CAAC,CAAC;aACH,CAAC;YACF,OAAO,CAAC,aAAa,CAAC,CAAC;SACvB;QACD,MAAM,UAAU,GAAG,kBAAkB,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC;QAC1E,MAAM,aAAa,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YAC7C,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;YACtC,OAAO;gBACN,IAAI;gBACJ,UAAU,EAAE,CAAE,WAAwB,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC;oBACrE,IAAI,EAAE,KAAK;iBACX,CAAC,CAAC;aACH,CAAC;QACH,CAAC,CAAC,CAAC;QACH,OAAO,aAAa,CAAC;KACrB;AACF,CAAC;AAzED,0BAyEC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.type.js","sourceRoot":"","sources":["../../../../../nodes/ItemLists/V3/actions/node.type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,53 @@
|
|
|
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.router = void 0;
|
|
27
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
28
|
+
const itemList = __importStar(require("./itemList"));
|
|
29
|
+
async function router() {
|
|
30
|
+
let returnData = [];
|
|
31
|
+
const items = this.getInputData();
|
|
32
|
+
const resource = this.getNodeParameter('resource', 0);
|
|
33
|
+
const operation = this.getNodeParameter('operation', 0);
|
|
34
|
+
const itemListsNodeData = {
|
|
35
|
+
resource,
|
|
36
|
+
operation,
|
|
37
|
+
};
|
|
38
|
+
try {
|
|
39
|
+
switch (itemListsNodeData.resource) {
|
|
40
|
+
case 'itemList':
|
|
41
|
+
returnData = await itemList[itemListsNodeData.operation].execute.call(this, items);
|
|
42
|
+
break;
|
|
43
|
+
default:
|
|
44
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The operation "${operation}" is not supported!`);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
catch (error) {
|
|
48
|
+
throw error;
|
|
49
|
+
}
|
|
50
|
+
return this.prepareOutputData(returnData);
|
|
51
|
+
}
|
|
52
|
+
exports.router = router;
|
|
53
|
+
//# sourceMappingURL=router.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router.js","sourceRoot":"","sources":["../../../../../nodes/ItemLists/V3/actions/router.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+CAAkD;AAGlD,qDAAuC;AAEhC,KAAK,UAAU,MAAM;IAC3B,IAAI,UAAU,GAAyB,EAAE,CAAC;IAE1C,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;IAClC,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAgB,UAAU,EAAE,CAAC,CAAC,CAAC;IACrE,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;IAExD,MAAM,iBAAiB,GAAG;QACzB,QAAQ;QACR,SAAS;KACQ,CAAC;IAEnB,IAAI;QACH,QAAQ,iBAAiB,CAAC,QAAQ,EAAE;YACnC,KAAK,UAAU;gBACd,UAAU,GAAG,MAAM,QAAQ,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gBACnF,MAAM;YACP;gBACC,MAAM,IAAI,iCAAkB,CAC3B,IAAI,CAAC,OAAO,EAAE,EACd,kBAAkB,SAAS,qBAAqB,CAChD,CAAC;SACH;KACD;IAAC,OAAO,KAAK,EAAE;QACf,MAAM,KAAK,CAAC;KACZ;IAED,OAAO,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;AAC3C,CAAC;AA5BD,wBA4BC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.versionDescription = void 0;
|
|
27
|
+
const itemList = __importStar(require("./itemList"));
|
|
28
|
+
exports.versionDescription = {
|
|
29
|
+
displayName: 'Item Lists',
|
|
30
|
+
name: 'itemLists',
|
|
31
|
+
icon: 'file:itemLists.svg',
|
|
32
|
+
group: ['input'],
|
|
33
|
+
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
34
|
+
description: 'Helper for working with lists of items and transforming arrays',
|
|
35
|
+
version: 3,
|
|
36
|
+
defaults: {
|
|
37
|
+
name: 'Item Lists',
|
|
38
|
+
},
|
|
39
|
+
inputs: ['main'],
|
|
40
|
+
outputs: ['main'],
|
|
41
|
+
credentials: [],
|
|
42
|
+
properties: [
|
|
43
|
+
{
|
|
44
|
+
displayName: 'Resource',
|
|
45
|
+
name: 'resource',
|
|
46
|
+
type: 'hidden',
|
|
47
|
+
options: [
|
|
48
|
+
{
|
|
49
|
+
name: 'Item List',
|
|
50
|
+
value: 'itemList',
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
default: 'itemList',
|
|
54
|
+
},
|
|
55
|
+
...itemList.description,
|
|
56
|
+
],
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=versionDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versionDescription.js","sourceRoot":"","sources":["../../../../../nodes/ItemLists/V3/actions/versionDescription.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,qDAAuC;AAE1B,QAAA,kBAAkB,GAAyB;IACvD,WAAW,EAAE,YAAY;IACzB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,oBAAoB;IAC1B,KAAK,EAAE,CAAC,OAAO,CAAC;IAChB,QAAQ,EAAE,8DAA8D;IACxE,WAAW,EAAE,gEAAgE;IAC7E,OAAO,EAAE,CAAC;IACV,QAAQ,EAAE;QACT,IAAI,EAAE,YAAY;KAClB;IACD,MAAM,EAAE,CAAC,MAAM,CAAC;IAChB,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,WAAW,EAAE,EAAE;IACf,UAAU,EAAE;QACX;YACC,WAAW,EAAE,UAAU;YACvB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACR;oBACC,IAAI,EAAE,WAAW;oBACjB,KAAK,EAAE,UAAU;iBACjB;aACD;YACD,OAAO,EAAE,UAAU;SACnB;QACD,GAAG,QAAQ,CAAC,WAAW;KACvB;CACD,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IDataObject, INode, INodeExecutionData } from 'n8n-workflow';
|
|
2
|
+
export declare const compareItems: (obj: INodeExecutionData, obj2: INodeExecutionData, keys: string[], disableDotNotation: boolean, _node: INode) => boolean;
|
|
3
|
+
export declare const flattenKeys: (obj: IDataObject, path?: string[]) => IDataObject;
|
|
4
|
+
export declare const shuffleArray: (array: any[]) => void;
|
|
5
|
+
export declare const prepareFieldsArray: (fields: string | string[], fieldName?: string) => string[];
|