n8n-nodes-base 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build.tsbuildinfo +1 -1
- package/dist/credentials/AirtableTokenApi.credentials.js +10 -0
- package/dist/credentials/AirtableTokenApi.credentials.js.map +1 -1
- package/dist/credentials/CrowdDevApi.credentials.d.ts +9 -0
- package/dist/credentials/CrowdDevApi.credentials.js +62 -0
- package/dist/credentials/CrowdDevApi.credentials.js.map +1 -0
- package/dist/credentials/GoogleDriveOAuth2Api.credentials.js +6 -0
- package/dist/credentials/GoogleDriveOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/GoogleSheetsOAuth2Api.credentials.js +3 -0
- package/dist/credentials/GoogleSheetsOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/GoogleSheetsTriggerOAuth2Api.credentials.js +3 -0
- package/dist/credentials/GoogleSheetsTriggerOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/HttpCustomAuth.credentials.d.ts +9 -0
- package/dist/credentials/HttpCustomAuth.credentials.js +25 -0
- package/dist/credentials/HttpCustomAuth.credentials.js.map +1 -0
- package/dist/credentials/TwitterOAuth1Api.credentials.js +6 -0
- package/dist/credentials/TwitterOAuth1Api.credentials.js.map +1 -1
- package/dist/credentials/TwitterOAuth2Api.credentials.d.ts +8 -0
- package/dist/credentials/TwitterOAuth2Api.credentials.js +73 -0
- package/dist/credentials/TwitterOAuth2Api.credentials.js.map +1 -0
- package/dist/known/credentials.json +36 -6
- package/dist/known/nodes.json +8 -0
- package/dist/methods/defined.json +6 -0
- package/dist/methods/referenced.json +4 -0
- package/dist/nodes/ActionNetwork/GenericFunctions.d.ts +23 -7
- package/dist/nodes/ActionNetwork/types.d.ts +79 -0
- package/dist/nodes/ActionNetwork/types.js +3 -0
- package/dist/nodes/ActionNetwork/types.js.map +1 -0
- package/dist/nodes/Adalo/types.d.ts +9 -0
- package/dist/nodes/Adalo/types.js +3 -0
- package/dist/nodes/Adalo/types.js.map +1 -0
- package/dist/nodes/Airtable/Airtable.node.d.ts +3 -4
- package/dist/nodes/Airtable/Airtable.node.js +10 -701
- package/dist/nodes/Airtable/Airtable.node.js.map +1 -1
- package/dist/nodes/Airtable/AirtableTrigger.node.js +14 -1
- package/dist/nodes/Airtable/AirtableTrigger.node.js.map +1 -1
- package/dist/nodes/Airtable/test/v2/node/helpers.d.ts +3 -0
- package/dist/nodes/Airtable/test/v2/node/helpers.js +31 -0
- package/dist/nodes/Airtable/test/v2/node/helpers.js.map +1 -0
- package/dist/nodes/Airtable/v1/AirtableV1.node.d.ts +6 -0
- package/dist/nodes/Airtable/v1/AirtableV1.node.js +722 -0
- package/dist/nodes/Airtable/v1/AirtableV1.node.js.map +1 -0
- package/dist/nodes/Airtable/v1/GenericFunctions.js.map +1 -0
- package/dist/nodes/Airtable/v2/AirtableV2.node.d.ts +12 -0
- package/dist/nodes/Airtable/v2/AirtableV2.node.js +24 -0
- package/dist/nodes/Airtable/v2/AirtableV2.node.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/base/Base.resource.d.ts +5 -0
- package/dist/nodes/Airtable/v2/actions/base/Base.resource.js +61 -0
- package/dist/nodes/Airtable/v2/actions/base/Base.resource.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/base/getMany.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/base/getMany.operation.js +106 -0
- package/dist/nodes/Airtable/v2/actions/base/getMany.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/base/getSchema.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/base/getSchema.operation.js +42 -0
- package/dist/nodes/Airtable/v2/actions/base/getSchema.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/common.descriptions.d.ts +5 -0
- package/dist/nodes/Airtable/v2/actions/common.descriptions.js +203 -0
- package/dist/nodes/Airtable/v2/actions/common.descriptions.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/node.type.d.ts +8 -0
- package/dist/nodes/Airtable/v2/actions/node.type.js +3 -0
- package/dist/nodes/Airtable/v2/actions/node.type.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/record/Record.resource.d.ts +9 -0
- package/dist/nodes/Airtable/v2/actions/record/Record.resource.js +114 -0
- package/dist/nodes/Airtable/v2/actions/record/Record.resource.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/record/create.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/record/create.operation.js +74 -0
- package/dist/nodes/Airtable/v2/actions/record/create.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/record/deleteRecord.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/record/deleteRecord.operation.js +47 -0
- package/dist/nodes/Airtable/v2/actions/record/deleteRecord.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/record/get.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/record/get.operation.js +74 -0
- package/dist/nodes/Airtable/v2/actions/record/get.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/record/search.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/record/search.operation.js +188 -0
- package/dist/nodes/Airtable/v2/actions/record/search.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/record/update.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/record/update.operation.js +106 -0
- package/dist/nodes/Airtable/v2/actions/record/update.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/record/upsert.operation.d.ts +22 -0
- package/dist/nodes/Airtable/v2/actions/record/upsert.operation.js +129 -0
- package/dist/nodes/Airtable/v2/actions/record/upsert.operation.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/router.d.ts +2 -0
- package/dist/nodes/Airtable/v2/actions/router.js +67 -0
- package/dist/nodes/Airtable/v2/actions/router.js.map +1 -0
- package/dist/nodes/Airtable/v2/actions/versionDescription.d.ts +2 -0
- package/dist/nodes/Airtable/v2/actions/versionDescription.js +100 -0
- package/dist/nodes/Airtable/v2/actions/versionDescription.js.map +1 -0
- package/dist/nodes/Airtable/v2/helpers/interfaces.d.ts +22 -0
- package/dist/nodes/Airtable/v2/helpers/interfaces.js +3 -0
- package/dist/nodes/Airtable/v2/helpers/interfaces.js.map +1 -0
- package/dist/nodes/Airtable/v2/helpers/utils.d.ts +8 -0
- package/dist/nodes/Airtable/v2/helpers/utils.js +76 -0
- package/dist/nodes/Airtable/v2/helpers/utils.js.map +1 -0
- package/dist/nodes/Airtable/v2/methods/index.d.ts +3 -0
- package/dist/nodes/Airtable/v2/methods/index.js +30 -0
- package/dist/nodes/Airtable/v2/methods/index.js.map +1 -0
- package/dist/nodes/Airtable/v2/methods/listSearch.d.ts +4 -0
- package/dist/nodes/Airtable/v2/methods/listSearch.js +124 -0
- package/dist/nodes/Airtable/v2/methods/listSearch.js.map +1 -0
- package/dist/nodes/Airtable/v2/methods/loadOptions.d.ts +5 -0
- package/dist/nodes/Airtable/v2/methods/loadOptions.js +78 -0
- package/dist/nodes/Airtable/v2/methods/loadOptions.js.map +1 -0
- package/dist/nodes/Airtable/v2/methods/resourceMapping.d.ts +3 -0
- package/dist/nodes/Airtable/v2/methods/resourceMapping.js +105 -0
- package/dist/nodes/Airtable/v2/methods/resourceMapping.js.map +1 -0
- package/dist/nodes/Airtable/v2/transport/index.d.ts +8 -0
- package/dist/nodes/Airtable/v2/transport/index.js +102 -0
- package/dist/nodes/Airtable/v2/transport/index.js.map +1 -0
- package/dist/nodes/Aws/DynamoDB/types.d.ts +67 -0
- package/dist/nodes/Aws/DynamoDB/types.js +17 -0
- package/dist/nodes/Aws/DynamoDB/types.js.map +1 -0
- package/dist/nodes/Aws/S3/V2/AwsS3V2.node.js +50 -32
- package/dist/nodes/Aws/S3/V2/AwsS3V2.node.js.map +1 -1
- package/dist/nodes/Baserow/types.d.ts +35 -0
- package/dist/nodes/Baserow/types.js +3 -0
- package/dist/nodes/Baserow/types.js.map +1 -0
- package/dist/nodes/Chargebee/Chargebee.node.js +0 -2
- package/dist/nodes/Chargebee/Chargebee.node.js.map +1 -1
- package/dist/nodes/Copper/utils/types.d.ts +26 -0
- package/dist/nodes/Copper/utils/types.js +3 -0
- package/dist/nodes/Copper/utils/types.js.map +1 -0
- package/dist/nodes/CrateDb/CrateDb.node.js +1 -1
- package/dist/nodes/CrateDb/CrateDb.node.js.map +1 -1
- package/dist/nodes/CrowdDev/CrowdDev.node.d.ts +4 -0
- package/dist/nodes/CrowdDev/CrowdDev.node.js +36 -0
- package/dist/nodes/CrowdDev/CrowdDev.node.js.map +1 -0
- package/dist/nodes/CrowdDev/CrowdDev.node.json +18 -0
- package/dist/nodes/CrowdDev/CrowdDevTrigger.node.d.ts +12 -0
- package/dist/nodes/CrowdDev/CrowdDevTrigger.node.js +145 -0
- package/dist/nodes/CrowdDev/CrowdDevTrigger.node.js.map +1 -0
- package/dist/nodes/CrowdDev/CrowdDevTrigger.node.json +18 -0
- package/dist/nodes/CrowdDev/GenericFunctions.d.ts +7 -0
- package/dist/nodes/CrowdDev/GenericFunctions.js +157 -0
- package/dist/nodes/CrowdDev/GenericFunctions.js.map +1 -0
- package/dist/nodes/CrowdDev/crowdDev.svg +15 -0
- package/dist/nodes/CrowdDev/descriptions/activityFields.d.ts +4 -0
- package/dist/nodes/CrowdDev/descriptions/activityFields.js +180 -0
- package/dist/nodes/CrowdDev/descriptions/activityFields.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/automationFields.d.ts +4 -0
- package/dist/nodes/CrowdDev/descriptions/automationFields.js +126 -0
- package/dist/nodes/CrowdDev/descriptions/automationFields.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/index.d.ts +2 -0
- package/dist/nodes/CrowdDev/descriptions/index.js +26 -0
- package/dist/nodes/CrowdDev/descriptions/index.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/memberFields.d.ts +4 -0
- package/dist/nodes/CrowdDev/descriptions/memberFields.js +291 -0
- package/dist/nodes/CrowdDev/descriptions/memberFields.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/noteFields.d.ts +4 -0
- package/dist/nodes/CrowdDev/descriptions/noteFields.js +90 -0
- package/dist/nodes/CrowdDev/descriptions/noteFields.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/organizationFields.d.ts +4 -0
- package/dist/nodes/CrowdDev/descriptions/organizationFields.js +146 -0
- package/dist/nodes/CrowdDev/descriptions/organizationFields.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/resources.d.ts +2 -0
- package/dist/nodes/CrowdDev/descriptions/resources.js +38 -0
- package/dist/nodes/CrowdDev/descriptions/resources.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/shared.d.ts +2 -0
- package/dist/nodes/CrowdDev/descriptions/shared.js +29 -0
- package/dist/nodes/CrowdDev/descriptions/shared.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/taskFields.d.ts +4 -0
- package/dist/nodes/CrowdDev/descriptions/taskFields.js +159 -0
- package/dist/nodes/CrowdDev/descriptions/taskFields.js.map +1 -0
- package/dist/nodes/CrowdDev/descriptions/utils.d.ts +5 -0
- package/dist/nodes/CrowdDev/descriptions/utils.js +55 -0
- package/dist/nodes/CrowdDev/descriptions/utils.js.map +1 -0
- package/dist/nodes/Disqus/Disqus.node.js +0 -2
- package/dist/nodes/Disqus/Disqus.node.js.map +1 -1
- package/dist/nodes/Elastic/ElasticSecurity/types.d.ts +48 -0
- package/dist/nodes/Elastic/ElasticSecurity/types.js +3 -0
- package/dist/nodes/Elastic/ElasticSecurity/types.js.map +1 -0
- package/dist/nodes/Elastic/Elasticsearch/types.d.ts +39 -0
- package/dist/nodes/Elastic/Elasticsearch/types.js +3 -0
- package/dist/nodes/Elastic/Elasticsearch/types.js.map +1 -0
- package/dist/nodes/Freshservice/types.d.ts +27 -0
- package/dist/nodes/Freshservice/types.js +3 -0
- package/dist/nodes/Freshservice/types.js.map +1 -0
- package/dist/nodes/FreshworksCrm/types.d.ts +36 -0
- package/dist/nodes/FreshworksCrm/types.js +3 -0
- package/dist/nodes/FreshworksCrm/types.js.map +1 -0
- package/dist/nodes/Ftp/Ftp.node.js +3 -0
- package/dist/nodes/Ftp/Ftp.node.js.map +1 -1
- package/dist/nodes/Git/Git.node.js +0 -2
- package/dist/nodes/Git/Git.node.js.map +1 -1
- package/dist/nodes/Gitlab/Gitlab.node.js +0 -16
- package/dist/nodes/Gitlab/Gitlab.node.js.map +1 -1
- package/dist/nodes/Gitlab/GitlabTrigger.node.js +1 -1
- package/dist/nodes/Gitlab/GitlabTrigger.node.js.map +1 -1
- package/dist/nodes/Google/BigQuery/v1/GoogleBigQueryV1.node.d.ts +1 -2
- package/dist/nodes/Google/BigQuery/v1/GoogleBigQueryV1.node.js.map +1 -1
- package/dist/nodes/Google/BigQuery/v2/GoogleBigQueryV2.node.d.ts +1 -2
- package/dist/nodes/Google/BigQuery/v2/GoogleBigQueryV2.node.js.map +1 -1
- package/dist/nodes/Google/BigQuery/v2/actions/database/executeQuery.operation.d.ts +1 -2
- package/dist/nodes/Google/BigQuery/v2/actions/database/executeQuery.operation.js +11 -7
- package/dist/nodes/Google/BigQuery/v2/actions/database/executeQuery.operation.js.map +1 -1
- package/dist/nodes/Google/BigQuery/v2/actions/database/insert.operation.d.ts +1 -2
- package/dist/nodes/Google/BigQuery/v2/actions/database/insert.operation.js.map +1 -1
- package/dist/nodes/Google/BigQuery/v2/actions/router.d.ts +1 -2
- package/dist/nodes/Google/BigQuery/v2/actions/router.js.map +1 -1
- package/dist/nodes/Google/BigQuery/v2/helpers/utils.d.ts +2 -3
- package/dist/nodes/Google/BigQuery/v2/helpers/utils.js +1 -2
- package/dist/nodes/Google/BigQuery/v2/helpers/utils.js.map +1 -1
- package/dist/nodes/Google/BigQuery/v2/transport/index.d.ts +1 -2
- package/dist/nodes/Google/BigQuery/v2/transport/index.js.map +1 -1
- package/dist/nodes/Google/CloudStorage/ObjectDescription.d.ts +1 -1
- package/dist/nodes/Google/CloudStorage/ObjectDescription.js +17 -4
- package/dist/nodes/Google/CloudStorage/ObjectDescription.js.map +1 -1
- package/dist/nodes/Google/Docs/interfaces.d.ts +13 -0
- package/dist/nodes/Google/Docs/interfaces.js +3 -0
- package/dist/nodes/Google/Docs/interfaces.js.map +1 -0
- package/dist/nodes/Google/Drive/GoogleDrive.node.d.ts +3 -12
- package/dist/nodes/Google/Drive/GoogleDrive.node.js +10 -2301
- package/dist/nodes/Google/Drive/GoogleDrive.node.js.map +1 -1
- package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.d.ts +1 -1
- package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.js +2 -2
- package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.js.map +1 -1
- package/dist/nodes/Google/Drive/test/v2/node/helpers.d.ts +3 -0
- package/dist/nodes/Google/Drive/test/v2/node/helpers.js +34 -0
- package/dist/nodes/Google/Drive/test/v2/node/helpers.js.map +1 -0
- package/dist/nodes/Google/Drive/{GenericFunctions.js → v1/GenericFunctions.js} +1 -1
- package/dist/nodes/Google/Drive/v1/GenericFunctions.js.map +1 -0
- package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.d.ts +14 -0
- package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.js +2325 -0
- package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.js.map +1 -0
- package/dist/nodes/Google/Drive/v1/SearchFunctions.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/GoogleDriveV2.node.d.ts +10 -0
- package/dist/nodes/Google/Drive/v2/GoogleDriveV2.node.js +20 -0
- package/dist/nodes/Google/Drive/v2/GoogleDriveV2.node.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/common.descriptions.d.ts +19 -0
- package/dist/nodes/Google/Drive/v2/actions/common.descriptions.js +599 -0
- package/dist/nodes/Google/Drive/v2/actions/common.descriptions.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/Drive.resource.d.ts +8 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/Drive.resource.js +88 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/Drive.resource.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/create.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/create.operation.js +235 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/create.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/deleteDrive.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/deleteDrive.operation.js +31 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/deleteDrive.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/get.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/get.operation.js +50 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/get.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/list.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/list.operation.js +81 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/list.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/update.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/update.operation.js +100 -0
- package/dist/nodes/Google/Drive/v2/actions/drive/update.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/File.resource.d.ts +11 -0
- package/dist/nodes/Google/Drive/v2/actions/file/File.resource.js +115 -0
- package/dist/nodes/Google/Drive/v2/actions/file/File.resource.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/copy.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/copy.operation.js +104 -0
- package/dist/nodes/Google/Drive/v2/actions/file/copy.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/createFromText.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/createFromText.operation.js +134 -0
- package/dist/nodes/Google/Drive/v2/actions/file/createFromText.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/deleteFile.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/deleteFile.operation.js +57 -0
- package/dist/nodes/Google/Drive/v2/actions/file/deleteFile.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/download.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/download.operation.js +218 -0
- package/dist/nodes/Google/Drive/v2/actions/file/download.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/move.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/move.operation.js +60 -0
- package/dist/nodes/Google/Drive/v2/actions/file/move.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/share.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/share.operation.js +43 -0
- package/dist/nodes/Google/Drive/v2/actions/file/share.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/update.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/update.operation.js +221 -0
- package/dist/nodes/Google/Drive/v2/actions/file/update.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/file/upload.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/file/upload.operation.js +135 -0
- package/dist/nodes/Google/Drive/v2/actions/file/upload.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/FileFolder.resource.d.ts +4 -0
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/FileFolder.resource.js +52 -0
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/FileFolder.resource.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/search.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/search.operation.js +335 -0
- package/dist/nodes/Google/Drive/v2/actions/fileFolder/search.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/Folder.resource.d.ts +6 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/Folder.resource.js +70 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/Folder.resource.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/create.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/create.operation.js +92 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/create.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/deleteFolder.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/deleteFolder.operation.js +59 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/deleteFolder.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/share.operation.d.ts +22 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/share.operation.js +43 -0
- package/dist/nodes/Google/Drive/v2/actions/folder/share.operation.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/node.type.d.ts +9 -0
- package/dist/nodes/Google/Drive/v2/actions/node.type.js +3 -0
- package/dist/nodes/Google/Drive/v2/actions/node.type.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/router.d.ts +2 -0
- package/dist/nodes/Google/Drive/v2/actions/router.js +76 -0
- package/dist/nodes/Google/Drive/v2/actions/router.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/actions/versionDescription.d.ts +2 -0
- package/dist/nodes/Google/Drive/v2/actions/versionDescription.js +112 -0
- package/dist/nodes/Google/Drive/v2/actions/versionDescription.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/helpers/interfaces.d.ts +34 -0
- package/dist/nodes/Google/Drive/v2/helpers/interfaces.js +26 -0
- package/dist/nodes/Google/Drive/v2/helpers/interfaces.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/helpers/utils.d.ts +15 -0
- package/dist/nodes/Google/Drive/v2/helpers/utils.js +104 -0
- package/dist/nodes/Google/Drive/v2/helpers/utils.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/methods/index.d.ts +1 -0
- package/dist/nodes/Google/Drive/v2/methods/index.js +28 -0
- package/dist/nodes/Google/Drive/v2/methods/index.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/methods/listSearch.d.ts +6 -0
- package/dist/nodes/Google/Drive/v2/methods/listSearch.js +144 -0
- package/dist/nodes/Google/Drive/v2/methods/listSearch.js.map +1 -0
- package/dist/nodes/Google/Drive/v2/transport/index.d.ts +4 -0
- package/dist/nodes/Google/Drive/v2/transport/index.js +68 -0
- package/dist/nodes/Google/Drive/v2/transport/index.js.map +1 -0
- package/dist/nodes/Google/GenericFunctions.d.ts +1 -2
- package/dist/nodes/Google/GenericFunctions.js.map +1 -1
- package/dist/nodes/Google/Gmail/GmailTrigger.node.js +7 -2
- package/dist/nodes/Google/Gmail/GmailTrigger.node.js.map +1 -1
- package/dist/nodes/Google/Perspective/types.d.ts +22 -0
- package/dist/nodes/Google/Perspective/types.js +3 -0
- package/dist/nodes/Google/Perspective/types.js.map +1 -0
- package/dist/nodes/Google/Sheet/v1/GoogleSheet.js +2 -2
- package/dist/nodes/Google/Sheet/v1/GoogleSheet.js.map +1 -1
- package/dist/nodes/Google/Sheet/v1/GoogleSheetsV1.node.js +4 -4
- package/dist/nodes/Google/Sheet/v1/GoogleSheetsV1.node.js.map +1 -1
- package/dist/nodes/Google/Sheet/v1/versionDescription.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/methods/resourceMapping.d.ts +1 -2
- package/dist/nodes/Google/Sheet/v2/methods/resourceMapping.js.map +1 -1
- package/dist/nodes/Grafana/types.d.ts +30 -0
- package/dist/nodes/Grafana/types.js +3 -0
- package/dist/nodes/Grafana/types.js.map +1 -0
- package/dist/nodes/GraphQL/GraphQL.node.js +32 -0
- package/dist/nodes/GraphQL/GraphQL.node.js.map +1 -1
- package/dist/nodes/Grist/types.d.ts +50 -0
- package/dist/nodes/Grist/types.js +3 -0
- package/dist/nodes/Grist/types.js.map +1 -0
- package/dist/nodes/HelpScout/HelpScout.node.js +0 -2
- package/dist/nodes/HelpScout/HelpScout.node.js.map +1 -1
- package/dist/nodes/Html/Html.node.d.ts +1 -0
- package/dist/nodes/Html/Html.node.js +143 -2
- package/dist/nodes/Html/Html.node.js.map +1 -1
- package/dist/nodes/Html/Html.node.json +1 -1
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js +22 -0
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js.map +1 -1
- package/dist/nodes/Hubspot/V1/GenericFunctions.d.ts +1 -2
- package/dist/nodes/Hubspot/V1/GenericFunctions.js.map +1 -1
- package/dist/nodes/Hubspot/V1/HubspotV1.node.d.ts +1 -2
- package/dist/nodes/Hubspot/V1/HubspotV1.node.js.map +1 -1
- package/dist/nodes/Hubspot/V2/HubspotV2.node.d.ts +1 -2
- package/dist/nodes/Hubspot/V2/HubspotV2.node.js.map +1 -1
- package/dist/nodes/ItemLists/ItemLists.node.js +3 -1
- package/dist/nodes/ItemLists/ItemLists.node.js.map +1 -1
- package/dist/nodes/ItemLists/V3/ItemListsV3.node.d.ts +6 -0
- package/dist/nodes/ItemLists/V3/ItemListsV3.node.js +18 -0
- package/dist/nodes/ItemLists/V3/ItemListsV3.node.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/common.descriptions.d.ts +2 -0
- package/dist/nodes/ItemLists/V3/actions/common.descriptions.js +11 -0
- package/dist/nodes/ItemLists/V3/actions/common.descriptions.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.d.ts +22 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.js +303 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/index.d.ts +9 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/index.js +97 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/index.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.d.ts +22 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.js +57 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.d.ts +22 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.js +204 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.d.ts +22 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.js +262 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.d.ts +22 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.js +183 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.d.ts +23 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.js +491 -0
- package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/node.type.d.ts +6 -0
- package/dist/nodes/ItemLists/V3/actions/node.type.js +3 -0
- package/dist/nodes/ItemLists/V3/actions/node.type.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/router.d.ts +2 -0
- package/dist/nodes/ItemLists/V3/actions/router.js +53 -0
- package/dist/nodes/ItemLists/V3/actions/router.js.map +1 -0
- package/dist/nodes/ItemLists/V3/actions/versionDescription.d.ts +2 -0
- package/dist/nodes/ItemLists/V3/actions/versionDescription.js +58 -0
- package/dist/nodes/ItemLists/V3/actions/versionDescription.js.map +1 -0
- package/dist/nodes/ItemLists/V3/helpers/utils.d.ts +5 -0
- package/dist/nodes/ItemLists/V3/helpers/utils.js +57 -0
- package/dist/nodes/ItemLists/V3/helpers/utils.js.map +1 -0
- package/dist/nodes/ItemLists/test/node/workflow.update_3.json +606 -0
- package/dist/nodes/Ldap/Ldap.node.d.ts +1 -2
- package/dist/nodes/LoneScale/GenericFunctions.d.ts +1 -2
- package/dist/nodes/LoneScale/GenericFunctions.js.map +1 -1
- package/dist/nodes/LoneScale/LoneScaleTrigger.node.d.ts +1 -2
- package/dist/nodes/LoneScale/LoneScaleTrigger.node.js.map +1 -1
- package/dist/nodes/Magento/GenericFunctions.d.ts +1 -1
- package/dist/nodes/Magento/GenericFunctions.js.map +1 -1
- package/dist/nodes/Magento/types.d.ts +173 -0
- package/dist/nodes/Magento/types.js +3 -0
- package/dist/nodes/Magento/types.js.map +1 -0
- package/dist/nodes/Marketstack/types.d.ts +10 -0
- package/dist/nodes/Marketstack/types.js +3 -0
- package/dist/nodes/Marketstack/types.js.map +1 -0
- package/dist/nodes/Matrix/GenericFunctions.js +8 -2
- package/dist/nodes/Matrix/GenericFunctions.js.map +1 -1
- package/dist/nodes/Matrix/MediaDescription.js +23 -1
- package/dist/nodes/Matrix/MediaDescription.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v1/MicrosoftExcelV1.node.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v1/MicrosoftExcelV1.node.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/MicrosoftExcelV2.node.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/MicrosoftExcelV2.node.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/router.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/router.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/addTable.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/table/addTable.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/append.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/table/append.operation.js +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/append.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/convertToRange.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/table/convertToRange.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/deleteTable.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/table/deleteTable.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/getColumns.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/table/getColumns.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/getRows.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/table/getRows.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/table/lookup.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/table/lookup.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/workbook/addWorksheet.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/workbook/addWorksheet.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/workbook/deleteWorkbook.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/workbook/deleteWorkbook.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/workbook/getAll.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/workbook/getAll.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/append.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/append.operation.js +5 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/append.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/clear.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/clear.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/deleteWorksheet.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/deleteWorksheet.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/getAll.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/getAll.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/readRows.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/readRows.operation.js +2 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/readRows.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/update.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/update.operation.js +2 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/update.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/upsert.operation.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/upsert.operation.js +1 -1
- package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/upsert.operation.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/helpers/utils.d.ts +2 -3
- package/dist/nodes/Microsoft/Excel/v2/helpers/utils.js +2 -3
- package/dist/nodes/Microsoft/Excel/v2/helpers/utils.js.map +1 -1
- package/dist/nodes/Microsoft/Excel/v2/transport/index.d.ts +1 -2
- package/dist/nodes/Microsoft/Excel/v2/transport/index.js.map +1 -1
- package/dist/nodes/Microsoft/ToDo/MicrosoftToDo.node.js +7 -0
- package/dist/nodes/Microsoft/ToDo/MicrosoftToDo.node.js.map +1 -1
- package/dist/nodes/Microsoft/ToDo/TaskDescription.js +7 -0
- package/dist/nodes/Microsoft/ToDo/TaskDescription.js.map +1 -1
- package/dist/nodes/Misp/types.d.ts +31 -0
- package/dist/nodes/Misp/types.js +3 -0
- package/dist/nodes/Misp/types.js.map +1 -0
- package/dist/nodes/MonicaCrm/types.d.ts +11 -0
- package/dist/nodes/MonicaCrm/types.js +3 -0
- package/dist/nodes/MonicaCrm/types.js.map +1 -0
- package/dist/nodes/MySql/v1/MySqlV1.node.d.ts +1 -2
- package/dist/nodes/MySql/v1/MySqlV1.node.js.map +1 -1
- package/dist/nodes/MySql/v2/MySqlV2.node.d.ts +1 -2
- package/dist/nodes/MySql/v2/MySqlV2.node.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/deleteTable.operation.d.ts +1 -2
- package/dist/nodes/MySql/v2/actions/database/deleteTable.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/executeQuery.operation.d.ts +1 -2
- package/dist/nodes/MySql/v2/actions/database/executeQuery.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/insert.operation.d.ts +1 -2
- package/dist/nodes/MySql/v2/actions/database/insert.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/select.operation.d.ts +1 -2
- package/dist/nodes/MySql/v2/actions/database/select.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/update.operation.d.ts +1 -2
- package/dist/nodes/MySql/v2/actions/database/update.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/upsert.operation.d.ts +1 -2
- package/dist/nodes/MySql/v2/actions/database/upsert.operation.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/router.d.ts +1 -2
- package/dist/nodes/MySql/v2/actions/router.js.map +1 -1
- package/dist/nodes/Notion/DatabasePageDescription.js +41 -0
- package/dist/nodes/Notion/DatabasePageDescription.js.map +1 -1
- package/dist/nodes/Notion/v2/NotionV2.node.js +9 -0
- package/dist/nodes/Notion/v2/NotionV2.node.js.map +1 -1
- package/dist/nodes/OpenAi/ChatDescription.js +2 -2
- package/dist/nodes/OpenAi/ChatDescription.js.map +1 -1
- package/dist/nodes/OpenAi/TextDescription.js +2 -2
- package/dist/nodes/OpenAi/TextDescription.js.map +1 -1
- package/dist/nodes/Postgres/v1/PostgresV1.node.d.ts +1 -2
- package/dist/nodes/Postgres/v2/PostgresV2.node.d.ts +1 -2
- package/dist/nodes/Postgres/v2/actions/database/deleteTable.operation.d.ts +1 -2
- package/dist/nodes/Postgres/v2/actions/database/deleteTable.operation.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/database/executeQuery.operation.d.ts +1 -2
- package/dist/nodes/Postgres/v2/actions/database/executeQuery.operation.js +28 -6
- package/dist/nodes/Postgres/v2/actions/database/executeQuery.operation.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/database/insert.operation.d.ts +1 -2
- package/dist/nodes/Postgres/v2/actions/database/insert.operation.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/database/select.operation.d.ts +1 -2
- package/dist/nodes/Postgres/v2/actions/database/select.operation.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/database/update.operation.d.ts +1 -2
- package/dist/nodes/Postgres/v2/actions/database/update.operation.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/database/upsert.operation.d.ts +1 -2
- package/dist/nodes/Postgres/v2/actions/database/upsert.operation.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/router.js +2 -1
- package/dist/nodes/Postgres/v2/actions/router.js.map +1 -1
- package/dist/nodes/Postgres/v2/helpers/interfaces.d.ts +1 -4
- package/dist/nodes/Postgres/v2/helpers/utils.d.ts +3 -3
- package/dist/nodes/Postgres/v2/helpers/utils.js +68 -65
- package/dist/nodes/Postgres/v2/helpers/utils.js.map +1 -1
- package/dist/nodes/QuickBooks/types.d.ts +47 -0
- package/dist/nodes/QuickBooks/types.js +3 -0
- package/dist/nodes/QuickBooks/types.js.map +1 -0
- package/dist/nodes/ReadPdf/ReadPDF.node.d.ts +1 -1
- package/dist/nodes/ReadPdf/ReadPDF.node.js +69 -11
- package/dist/nodes/ReadPdf/ReadPDF.node.js.map +1 -1
- package/dist/nodes/ReadPdf/test/ReadPDF-encrypted.workflow.json +87 -0
- package/dist/nodes/ReadPdf/test/ReadPDF.workflow.json +47 -27
- package/dist/nodes/RssFeedRead/RssFeedRead.node.js +1 -1
- package/dist/nodes/RssFeedRead/RssFeedRead.node.js.map +1 -1
- package/dist/nodes/Rundeck/Rundeck.node.js +17 -1
- package/dist/nodes/Rundeck/Rundeck.node.js.map +1 -1
- package/dist/nodes/Rundeck/RundeckApi.d.ts +1 -1
- package/dist/nodes/Rundeck/RundeckApi.js +6 -2
- package/dist/nodes/Rundeck/RundeckApi.js.map +1 -1
- package/dist/nodes/SeaTable/Schema.d.ts +4 -4
- package/dist/nodes/SeaTable/types.d.ts +33 -0
- package/dist/nodes/SeaTable/types.js +3 -0
- package/dist/nodes/SeaTable/types.js.map +1 -0
- package/dist/nodes/Sendy/Sendy.node.js.map +1 -1
- package/dist/nodes/Slack/Slack.node.js +2 -1
- package/dist/nodes/Slack/Slack.node.js.map +1 -1
- package/dist/nodes/Slack/V2/GenericFunctions.d.ts +1 -0
- package/dist/nodes/Slack/V2/GenericFunctions.js +44 -1
- package/dist/nodes/Slack/V2/GenericFunctions.js.map +1 -1
- package/dist/nodes/Slack/V2/MessageDescription.js +7 -0
- package/dist/nodes/Slack/V2/MessageDescription.js.map +1 -1
- package/dist/nodes/Slack/V2/SlackV2.node.js +2 -20
- package/dist/nodes/Slack/V2/SlackV2.node.js.map +1 -1
- package/dist/nodes/Splunk/types.d.ts +40 -0
- package/dist/nodes/Splunk/types.js +3 -0
- package/dist/nodes/Splunk/types.js.map +1 -0
- package/dist/nodes/Strava/ActivityDescription.js +7 -0
- package/dist/nodes/Strava/ActivityDescription.js.map +1 -1
- package/dist/nodes/Strava/Strava.node.js +0 -6
- package/dist/nodes/Strava/Strava.node.js.map +1 -1
- package/dist/nodes/Taiga/types.d.ts +31 -0
- package/dist/nodes/Taiga/types.js +2 -0
- package/dist/nodes/Taiga/types.js.map +1 -0
- package/dist/nodes/Telegram/TelegramTrigger.node.js +1 -1
- package/dist/nodes/Telegram/TelegramTrigger.node.js.map +1 -1
- package/dist/nodes/Twitter/Twitter.node.d.ts +3 -9
- package/dist/nodes/Twitter/Twitter.node.js +12 -224
- package/dist/nodes/Twitter/Twitter.node.js.map +1 -1
- package/dist/nodes/Twitter/Twitter.node.json +2 -1
- package/dist/nodes/Twitter/V1/DirectMessageDescription.js.map +1 -0
- package/dist/nodes/Twitter/V1/GenericFunctions.js.map +1 -0
- package/dist/nodes/Twitter/V1/TweetDescription.js.map +1 -0
- package/dist/nodes/Twitter/V1/TweetInterface.js.map +1 -0
- package/dist/nodes/Twitter/V1/TwitterV1.node.d.ts +11 -0
- package/dist/nodes/Twitter/V1/TwitterV1.node.js +235 -0
- package/dist/nodes/Twitter/V1/TwitterV1.node.js.map +1 -0
- package/dist/nodes/Twitter/V2/DirectMessageDescription.d.ts +3 -0
- package/dist/nodes/Twitter/V2/DirectMessageDescription.js +100 -0
- package/dist/nodes/Twitter/V2/DirectMessageDescription.js.map +1 -0
- package/dist/nodes/Twitter/V2/GenericFunctions.d.ts +5 -0
- package/dist/nodes/Twitter/V2/GenericFunctions.js +88 -0
- package/dist/nodes/Twitter/V2/GenericFunctions.js.map +1 -0
- package/dist/nodes/Twitter/V2/ListDescription.d.ts +3 -0
- package/dist/nodes/Twitter/V2/ListDescription.js +92 -0
- package/dist/nodes/Twitter/V2/ListDescription.js.map +1 -0
- package/dist/nodes/Twitter/V2/TweetDescription.d.ts +3 -0
- package/dist/nodes/Twitter/V2/TweetDescription.js +452 -0
- package/dist/nodes/Twitter/V2/TweetDescription.js.map +1 -0
- package/dist/nodes/Twitter/V2/TweetInterface.d.ts +23 -0
- package/dist/nodes/Twitter/V2/TweetInterface.js +3 -0
- package/dist/nodes/Twitter/V2/TweetInterface.js.map +1 -0
- package/dist/nodes/Twitter/V2/TwitterV2.node.d.ts +11 -0
- package/dist/nodes/Twitter/V2/TwitterV2.node.js +245 -0
- package/dist/nodes/Twitter/V2/TwitterV2.node.js.map +1 -0
- package/dist/nodes/Twitter/V2/UserDescription.d.ts +3 -0
- package/dist/nodes/Twitter/V2/UserDescription.js +76 -0
- package/dist/nodes/Twitter/V2/UserDescription.js.map +1 -0
- package/dist/nodes/Twitter/test/Workflow_Twitter_UnitTest.json +284 -0
- package/dist/nodes/UProc/UProc.node.js +0 -1
- package/dist/nodes/UProc/UProc.node.js.map +1 -1
- package/dist/nodes/Wait/Wait.node.d.ts +7 -4
- package/dist/nodes/Wait/Wait.node.js +77 -499
- package/dist/nodes/Wait/Wait.node.js.map +1 -1
- package/dist/nodes/Webhook/Webhook.node.d.ts +8 -3
- package/dist/nodes/Webhook/Webhook.node.js +148 -460
- package/dist/nodes/Webhook/Webhook.node.js.map +1 -1
- package/dist/nodes/Webhook/description.d.ts +10 -0
- package/dist/nodes/Webhook/description.js +325 -0
- package/dist/nodes/Webhook/description.js.map +1 -0
- package/dist/nodes/Webhook/error.d.ts +4 -0
- package/dist/nodes/Webhook/error.js +20 -0
- package/dist/nodes/Webhook/error.js.map +1 -0
- package/dist/nodes/Zammad/types.d.ts +81 -0
- package/dist/nodes/Zammad/types.js +3 -0
- package/dist/nodes/Zammad/types.js.map +1 -0
- package/dist/nodes/Zoho/types.d.ts +93 -0
- package/dist/nodes/Zoho/types.js +3 -0
- package/dist/nodes/Zoho/types.js.map +1 -0
- package/dist/types/credentials.json +8 -5
- package/dist/types/nodes.json +31 -23
- package/package.json +9 -5
- package/dist/nodes/Airtable/GenericFunctions.js.map +0 -1
- package/dist/nodes/Google/Drive/GenericFunctions.js.map +0 -1
- package/dist/nodes/Google/Drive/SearchFunctions.js.map +0 -1
- package/dist/nodes/Twitter/DirectMessageDescription.js.map +0 -1
- package/dist/nodes/Twitter/GenericFunctions.js.map +0 -1
- package/dist/nodes/Twitter/TweetDescription.js.map +0 -1
- package/dist/nodes/Twitter/TweetInterface.js.map +0 -1
- /package/dist/nodes/Airtable/{GenericFunctions.d.ts → v1/GenericFunctions.d.ts} +0 -0
- /package/dist/nodes/Airtable/{GenericFunctions.js → v1/GenericFunctions.js} +0 -0
- /package/dist/nodes/Google/Drive/{GenericFunctions.d.ts → v1/GenericFunctions.d.ts} +0 -0
- /package/dist/nodes/Google/Drive/{SearchFunctions.d.ts → v1/SearchFunctions.d.ts} +0 -0
- /package/dist/nodes/Google/Drive/{SearchFunctions.js → v1/SearchFunctions.js} +0 -0
- /package/dist/nodes/Twitter/{DirectMessageDescription.d.ts → V1/DirectMessageDescription.d.ts} +0 -0
- /package/dist/nodes/Twitter/{DirectMessageDescription.js → V1/DirectMessageDescription.js} +0 -0
- /package/dist/nodes/Twitter/{GenericFunctions.d.ts → V1/GenericFunctions.d.ts} +0 -0
- /package/dist/nodes/Twitter/{GenericFunctions.js → V1/GenericFunctions.js} +0 -0
- /package/dist/nodes/Twitter/{TweetDescription.d.ts → V1/TweetDescription.d.ts} +0 -0
- /package/dist/nodes/Twitter/{TweetDescription.js → V1/TweetDescription.js} +0 -0
- /package/dist/nodes/Twitter/{TweetInterface.d.ts → V1/TweetInterface.d.ts} +0 -0
- /package/dist/nodes/Twitter/{TweetInterface.js → V1/TweetInterface.js} +0 -0
|
@@ -0,0 +1,204 @@
|
|
|
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 = 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 isEqual_1 = __importDefault(require("lodash/isEqual"));
|
|
11
|
+
const lt_1 = __importDefault(require("lodash/lt"));
|
|
12
|
+
const pick_1 = __importDefault(require("lodash/pick"));
|
|
13
|
+
const utils_1 = require("../../helpers/utils");
|
|
14
|
+
const common_descriptions_1 = require("../common.descriptions");
|
|
15
|
+
const properties = [
|
|
16
|
+
{
|
|
17
|
+
displayName: 'Compare',
|
|
18
|
+
name: 'compare',
|
|
19
|
+
type: 'options',
|
|
20
|
+
options: [
|
|
21
|
+
{
|
|
22
|
+
name: 'All Fields',
|
|
23
|
+
value: 'allFields',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'All Fields Except',
|
|
27
|
+
value: 'allFieldsExcept',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'Selected Fields',
|
|
31
|
+
value: 'selectedFields',
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
default: 'allFields',
|
|
35
|
+
description: 'The fields of the input items to compare to see if they are the same',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
displayName: 'Fields To Exclude',
|
|
39
|
+
name: 'fieldsToExclude',
|
|
40
|
+
type: 'string',
|
|
41
|
+
placeholder: 'e.g. email, name',
|
|
42
|
+
requiresDataPath: 'multiple',
|
|
43
|
+
description: 'Fields in the input to exclude from the comparison',
|
|
44
|
+
default: '',
|
|
45
|
+
displayOptions: {
|
|
46
|
+
show: {
|
|
47
|
+
compare: ['allFieldsExcept'],
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
displayName: 'Fields To Compare',
|
|
53
|
+
name: 'fieldsToCompare',
|
|
54
|
+
type: 'string',
|
|
55
|
+
placeholder: 'e.g. email, name',
|
|
56
|
+
requiresDataPath: 'multiple',
|
|
57
|
+
description: 'Fields in the input to add to the comparison',
|
|
58
|
+
default: '',
|
|
59
|
+
displayOptions: {
|
|
60
|
+
show: {
|
|
61
|
+
compare: ['selectedFields'],
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
displayName: 'Options',
|
|
67
|
+
name: 'options',
|
|
68
|
+
type: 'collection',
|
|
69
|
+
placeholder: 'Add Field',
|
|
70
|
+
default: {},
|
|
71
|
+
displayOptions: {
|
|
72
|
+
show: {
|
|
73
|
+
compare: ['allFieldsExcept', 'selectedFields'],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
options: [
|
|
77
|
+
common_descriptions_1.disableDotNotationBoolean,
|
|
78
|
+
{
|
|
79
|
+
displayName: 'Remove Other Fields',
|
|
80
|
+
name: 'removeOtherFields',
|
|
81
|
+
type: 'boolean',
|
|
82
|
+
default: false,
|
|
83
|
+
description: 'Whether to remove any fields that are not being compared. If disabled, will keep the values from the first of the duplicates.',
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
];
|
|
88
|
+
const displayOptions = {
|
|
89
|
+
show: {
|
|
90
|
+
resource: ['itemList'],
|
|
91
|
+
operation: ['removeDuplicates'],
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
|
|
95
|
+
async function execute(items) {
|
|
96
|
+
const compare = this.getNodeParameter('compare', 0);
|
|
97
|
+
const disableDotNotation = this.getNodeParameter('options.disableDotNotation', 0, false);
|
|
98
|
+
const removeOtherFields = this.getNodeParameter('options.removeOtherFields', 0, false);
|
|
99
|
+
let keys = disableDotNotation
|
|
100
|
+
? Object.keys(items[0].json)
|
|
101
|
+
: Object.keys((0, utils_1.flattenKeys)(items[0].json));
|
|
102
|
+
for (const item of items) {
|
|
103
|
+
for (const key of disableDotNotation
|
|
104
|
+
? Object.keys(item.json)
|
|
105
|
+
: Object.keys((0, utils_1.flattenKeys)(item.json))) {
|
|
106
|
+
if (!keys.includes(key)) {
|
|
107
|
+
keys.push(key);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
if (compare === 'allFieldsExcept') {
|
|
112
|
+
const fieldsToExclude = (0, utils_1.prepareFieldsArray)(this.getNodeParameter('fieldsToExclude', 0, ''), 'Fields To Exclude');
|
|
113
|
+
if (!fieldsToExclude.length) {
|
|
114
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'No fields specified. Please add a field to exclude from comparison');
|
|
115
|
+
}
|
|
116
|
+
if (!disableDotNotation) {
|
|
117
|
+
keys = Object.keys((0, utils_1.flattenKeys)(items[0].json));
|
|
118
|
+
}
|
|
119
|
+
keys = keys.filter((key) => !fieldsToExclude.includes(key));
|
|
120
|
+
}
|
|
121
|
+
if (compare === 'selectedFields') {
|
|
122
|
+
const fieldsToCompare = (0, utils_1.prepareFieldsArray)(this.getNodeParameter('fieldsToCompare', 0, ''), 'Fields To Compare');
|
|
123
|
+
if (!fieldsToCompare.length) {
|
|
124
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'No fields specified. Please add a field to compare on');
|
|
125
|
+
}
|
|
126
|
+
if (!disableDotNotation) {
|
|
127
|
+
keys = Object.keys((0, utils_1.flattenKeys)(items[0].json));
|
|
128
|
+
}
|
|
129
|
+
keys = fieldsToCompare.map((key) => key.trim());
|
|
130
|
+
}
|
|
131
|
+
const newItems = items.map((item, index) => ({
|
|
132
|
+
json: { ...item.json, __INDEX: index },
|
|
133
|
+
pairedItem: { item: index },
|
|
134
|
+
}));
|
|
135
|
+
newItems.sort((a, b) => {
|
|
136
|
+
let result = 0;
|
|
137
|
+
for (const key of keys) {
|
|
138
|
+
let equal;
|
|
139
|
+
if (!disableDotNotation) {
|
|
140
|
+
equal = (0, isEqual_1.default)((0, get_1.default)(a.json, key), (0, get_1.default)(b.json, key));
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
equal = (0, isEqual_1.default)(a.json[key], b.json[key]);
|
|
144
|
+
}
|
|
145
|
+
if (!equal) {
|
|
146
|
+
let lessThan;
|
|
147
|
+
if (!disableDotNotation) {
|
|
148
|
+
lessThan = (0, lt_1.default)((0, get_1.default)(a.json, key), (0, get_1.default)(b.json, key));
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
lessThan = (0, lt_1.default)(a.json[key], b.json[key]);
|
|
152
|
+
}
|
|
153
|
+
result = lessThan ? -1 : 1;
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return result;
|
|
158
|
+
});
|
|
159
|
+
for (const key of keys) {
|
|
160
|
+
let type = undefined;
|
|
161
|
+
for (const item of newItems) {
|
|
162
|
+
if (key === '') {
|
|
163
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Name of field to compare is blank');
|
|
164
|
+
}
|
|
165
|
+
const value = !disableDotNotation ? (0, get_1.default)(item.json, key) : item.json[key];
|
|
166
|
+
if (value === undefined && disableDotNotation && key.includes('.')) {
|
|
167
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `'${key}' field is missing from some input items`, {
|
|
168
|
+
description: "If you're trying to use a nested field, make sure you turn off 'disable dot notation' in the node options",
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
else if (value === undefined) {
|
|
172
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `'${key}' field is missing from some input items`);
|
|
173
|
+
}
|
|
174
|
+
if (type !== undefined && value !== undefined && type !== typeof value) {
|
|
175
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `'${key}' isn't always the same type`, {
|
|
176
|
+
description: 'The type of this field varies between items',
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
else {
|
|
180
|
+
type = typeof value;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
const removedIndexes = [];
|
|
185
|
+
let temp = newItems[0];
|
|
186
|
+
for (let index = 1; index < newItems.length; index++) {
|
|
187
|
+
if ((0, utils_1.compareItems)(newItems[index], temp, keys, disableDotNotation, this.getNode())) {
|
|
188
|
+
removedIndexes.push(newItems[index].json.__INDEX);
|
|
189
|
+
}
|
|
190
|
+
else {
|
|
191
|
+
temp = newItems[index];
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
let returnData = items.filter((_, index) => !removedIndexes.includes(index));
|
|
195
|
+
if (removeOtherFields) {
|
|
196
|
+
returnData = returnData.map((item, index) => ({
|
|
197
|
+
json: (0, pick_1.default)(item.json, ...keys),
|
|
198
|
+
pairedItem: { item: index },
|
|
199
|
+
}));
|
|
200
|
+
}
|
|
201
|
+
return returnData;
|
|
202
|
+
}
|
|
203
|
+
exports.execute = execute;
|
|
204
|
+
//# sourceMappingURL=removeDuplicates.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removeDuplicates.operation.js","sourceRoot":"","sources":["../../../../../../nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.ts"],"names":[],"mappings":";;;;;;AACA,+CAAkD;AAElD,gDAAwD;AAExD,qDAA6B;AAC7B,6DAAqC;AACrC,mDAA2B;AAC3B,uDAA+B;AAE/B,+CAAoF;AACpF,gEAAmE;AAEnE,MAAM,UAAU,GAAsB;IACrC;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,WAAW;aAClB;YACD;gBACC,IAAI,EAAE,mBAAmB;gBACzB,KAAK,EAAE,iBAAiB;aACxB;YACD;gBACC,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,gBAAgB;aACvB;SACD;QACD,OAAO,EAAE,WAAW;QACpB,WAAW,EAAE,sEAAsE;KACnF;IACD;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,kBAAkB;QAC/B,gBAAgB,EAAE,UAAU;QAC5B,WAAW,EAAE,oDAAoD;QACjE,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,OAAO,EAAE,CAAC,iBAAiB,CAAC;aAC5B;SACD;KACD;IACD;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,kBAAkB;QAC/B,gBAAgB,EAAE,UAAU;QAC5B,WAAW,EAAE,8CAA8C;QAC3D,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,O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ecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare const description: {
|
|
3
|
+
displayOptions: import("n8n-workflow").IDisplayOptions;
|
|
4
|
+
displayName: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: import("n8n-workflow").NodePropertyTypes;
|
|
7
|
+
typeOptions?: import("n8n-workflow").INodePropertyTypeOptions | undefined;
|
|
8
|
+
default: import("n8n-workflow").NodeParameterValueType;
|
|
9
|
+
description?: string | undefined;
|
|
10
|
+
hint?: string | undefined;
|
|
11
|
+
options?: (INodeProperties | import("n8n-workflow").INodePropertyOptions | import("n8n-workflow").INodePropertyCollection)[] | undefined;
|
|
12
|
+
placeholder?: string | undefined;
|
|
13
|
+
isNodeSetting?: boolean | undefined;
|
|
14
|
+
noDataExpression?: boolean | undefined;
|
|
15
|
+
required?: boolean | undefined;
|
|
16
|
+
routing?: import("n8n-workflow").INodePropertyRouting | undefined;
|
|
17
|
+
credentialTypes?: ("extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth")[] | undefined;
|
|
18
|
+
extractValue?: import("n8n-workflow").INodePropertyValueExtractorRegex | undefined;
|
|
19
|
+
modes?: import("n8n-workflow").INodePropertyMode[] | undefined;
|
|
20
|
+
requiresDataPath?: "single" | "multiple" | undefined;
|
|
21
|
+
}[];
|
|
22
|
+
export declare function execute(this: IExecuteFunctions, items: INodeExecutionData[]): Promise<INodeExecutionData[]>;
|
|
@@ -0,0 +1,262 @@
|
|
|
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 = void 0;
|
|
7
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
8
|
+
const utilities_1 = require("../../../../../utils/utilities");
|
|
9
|
+
const vm2_1 = require("vm2");
|
|
10
|
+
const get_1 = __importDefault(require("lodash/get"));
|
|
11
|
+
const isEqual_1 = __importDefault(require("lodash/isEqual"));
|
|
12
|
+
const lt_1 = __importDefault(require("lodash/lt"));
|
|
13
|
+
const utils_1 = require("../../helpers/utils");
|
|
14
|
+
const common_descriptions_1 = require("../common.descriptions");
|
|
15
|
+
const properties = [
|
|
16
|
+
{
|
|
17
|
+
displayName: 'Type',
|
|
18
|
+
name: 'type',
|
|
19
|
+
type: 'options',
|
|
20
|
+
options: [
|
|
21
|
+
{
|
|
22
|
+
name: 'Simple',
|
|
23
|
+
value: 'simple',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'Random',
|
|
27
|
+
value: 'random',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'Code',
|
|
31
|
+
value: 'code',
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
default: 'simple',
|
|
35
|
+
description: 'The fields of the input items to compare to see if they are the same',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
displayName: 'Fields To Sort By',
|
|
39
|
+
name: 'sortFieldsUi',
|
|
40
|
+
type: 'fixedCollection',
|
|
41
|
+
typeOptions: {
|
|
42
|
+
multipleValues: true,
|
|
43
|
+
},
|
|
44
|
+
placeholder: 'Add Field To Sort By',
|
|
45
|
+
options: [
|
|
46
|
+
{
|
|
47
|
+
displayName: '',
|
|
48
|
+
name: 'sortField',
|
|
49
|
+
values: [
|
|
50
|
+
{
|
|
51
|
+
displayName: 'Field Name',
|
|
52
|
+
name: 'fieldName',
|
|
53
|
+
type: 'string',
|
|
54
|
+
required: true,
|
|
55
|
+
default: '',
|
|
56
|
+
description: 'The field to sort by',
|
|
57
|
+
placeholder: 'e.g. id',
|
|
58
|
+
hint: ' Enter the field name as text',
|
|
59
|
+
requiresDataPath: 'single',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
displayName: 'Order',
|
|
63
|
+
name: 'order',
|
|
64
|
+
type: 'options',
|
|
65
|
+
options: [
|
|
66
|
+
{
|
|
67
|
+
name: 'Ascending',
|
|
68
|
+
value: 'ascending',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'Descending',
|
|
72
|
+
value: 'descending',
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
default: 'ascending',
|
|
76
|
+
description: 'The order to sort by',
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
default: {},
|
|
82
|
+
description: 'The fields of the input items to compare to see if they are the same',
|
|
83
|
+
displayOptions: {
|
|
84
|
+
show: {
|
|
85
|
+
type: ['simple'],
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
displayName: 'Code',
|
|
91
|
+
name: 'code',
|
|
92
|
+
type: 'string',
|
|
93
|
+
typeOptions: {
|
|
94
|
+
alwaysOpenEditWindow: true,
|
|
95
|
+
editor: 'code',
|
|
96
|
+
rows: 10,
|
|
97
|
+
},
|
|
98
|
+
default: `// The two items to compare are in the variables a and b
|
|
99
|
+
// Access the fields in a.json and b.json
|
|
100
|
+
// Return -1 if a should go before b
|
|
101
|
+
// Return 1 if b should go before a
|
|
102
|
+
// Return 0 if there's no difference
|
|
103
|
+
|
|
104
|
+
fieldName = 'myField';
|
|
105
|
+
|
|
106
|
+
if (a.json[fieldName] < b.json[fieldName]) {
|
|
107
|
+
return -1;
|
|
108
|
+
}
|
|
109
|
+
if (a.json[fieldName] > b.json[fieldName]) {
|
|
110
|
+
return 1;
|
|
111
|
+
}
|
|
112
|
+
return 0;`,
|
|
113
|
+
description: 'Javascript code to determine the order of any two items',
|
|
114
|
+
displayOptions: {
|
|
115
|
+
show: {
|
|
116
|
+
type: ['code'],
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
displayName: 'Options',
|
|
122
|
+
name: 'options',
|
|
123
|
+
type: 'collection',
|
|
124
|
+
placeholder: 'Add Field',
|
|
125
|
+
default: {},
|
|
126
|
+
displayOptions: {
|
|
127
|
+
show: {
|
|
128
|
+
type: ['simple'],
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
options: [common_descriptions_1.disableDotNotationBoolean],
|
|
132
|
+
},
|
|
133
|
+
];
|
|
134
|
+
const displayOptions = {
|
|
135
|
+
show: {
|
|
136
|
+
resource: ['itemList'],
|
|
137
|
+
operation: ['sort'],
|
|
138
|
+
},
|
|
139
|
+
};
|
|
140
|
+
exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
|
|
141
|
+
async function execute(items) {
|
|
142
|
+
let returnData = [...items];
|
|
143
|
+
const type = this.getNodeParameter('type', 0);
|
|
144
|
+
const disableDotNotation = this.getNodeParameter('options.disableDotNotation', 0, false);
|
|
145
|
+
if (type === 'random') {
|
|
146
|
+
(0, utils_1.shuffleArray)(returnData);
|
|
147
|
+
return returnData;
|
|
148
|
+
}
|
|
149
|
+
if (type === 'simple') {
|
|
150
|
+
const sortFieldsUi = this.getNodeParameter('sortFieldsUi', 0);
|
|
151
|
+
const sortFields = sortFieldsUi.sortField;
|
|
152
|
+
if (!(sortFields === null || sortFields === void 0 ? void 0 : sortFields.length)) {
|
|
153
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'No sorting specified. Please add a field to sort by');
|
|
154
|
+
}
|
|
155
|
+
for (const { fieldName } of sortFields) {
|
|
156
|
+
let found = false;
|
|
157
|
+
for (const item of items) {
|
|
158
|
+
if (!disableDotNotation) {
|
|
159
|
+
if ((0, get_1.default)(item.json, fieldName) !== undefined) {
|
|
160
|
+
found = true;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
else if (item.json.hasOwnProperty(fieldName)) {
|
|
164
|
+
found = true;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
if (!found && disableDotNotation && fieldName.includes('.')) {
|
|
168
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Couldn't find the field '${fieldName}' in the input data`, {
|
|
169
|
+
description: "If you're trying to use a nested field, make sure you turn off 'disable dot notation' in the node options",
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
else if (!found) {
|
|
173
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Couldn't find the field '${fieldName}' in the input data`);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
const sortFieldsWithDirection = sortFields.map((field) => ({
|
|
177
|
+
name: field.fieldName,
|
|
178
|
+
dir: field.order === 'ascending' ? 1 : -1,
|
|
179
|
+
}));
|
|
180
|
+
returnData.sort((a, b) => {
|
|
181
|
+
let result = 0;
|
|
182
|
+
for (const field of sortFieldsWithDirection) {
|
|
183
|
+
let equal;
|
|
184
|
+
if (!disableDotNotation) {
|
|
185
|
+
const _a = typeof (0, get_1.default)(a.json, field.name) === 'string'
|
|
186
|
+
? (0, get_1.default)(a.json, field.name).toLowerCase()
|
|
187
|
+
: (0, get_1.default)(a.json, field.name);
|
|
188
|
+
const _b = typeof (0, get_1.default)(b.json, field.name) === 'string'
|
|
189
|
+
? (0, get_1.default)(b.json, field.name).toLowerCase()
|
|
190
|
+
: (0, get_1.default)(b.json, field.name);
|
|
191
|
+
equal = (0, isEqual_1.default)(_a, _b);
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
const _a = typeof a.json[field.name] === 'string'
|
|
195
|
+
? a.json[field.name].toLowerCase()
|
|
196
|
+
: a.json[field.name];
|
|
197
|
+
const _b = typeof b.json[field.name] === 'string'
|
|
198
|
+
? b.json[field.name].toLowerCase()
|
|
199
|
+
: b.json[field.name];
|
|
200
|
+
equal = (0, isEqual_1.default)(_a, _b);
|
|
201
|
+
}
|
|
202
|
+
if (!equal) {
|
|
203
|
+
let lessThan;
|
|
204
|
+
if (!disableDotNotation) {
|
|
205
|
+
const _a = typeof (0, get_1.default)(a.json, field.name) === 'string'
|
|
206
|
+
? (0, get_1.default)(a.json, field.name).toLowerCase()
|
|
207
|
+
: (0, get_1.default)(a.json, field.name);
|
|
208
|
+
const _b = typeof (0, get_1.default)(b.json, field.name) === 'string'
|
|
209
|
+
? (0, get_1.default)(b.json, field.name).toLowerCase()
|
|
210
|
+
: (0, get_1.default)(b.json, field.name);
|
|
211
|
+
lessThan = (0, lt_1.default)(_a, _b);
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
const _a = typeof a.json[field.name] === 'string'
|
|
215
|
+
? a.json[field.name].toLowerCase()
|
|
216
|
+
: a.json[field.name];
|
|
217
|
+
const _b = typeof b.json[field.name] === 'string'
|
|
218
|
+
? b.json[field.name].toLowerCase()
|
|
219
|
+
: b.json[field.name];
|
|
220
|
+
lessThan = (0, lt_1.default)(_a, _b);
|
|
221
|
+
}
|
|
222
|
+
if (lessThan) {
|
|
223
|
+
result = -1 * field.dir;
|
|
224
|
+
}
|
|
225
|
+
else {
|
|
226
|
+
result = 1 * field.dir;
|
|
227
|
+
}
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
return result;
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
else {
|
|
235
|
+
const code = this.getNodeParameter('code', 0);
|
|
236
|
+
const regexCheck = /\breturn\b/g.exec(code);
|
|
237
|
+
if (regexCheck === null || regexCheck === void 0 ? void 0 : regexCheck.length) {
|
|
238
|
+
const sandbox = {
|
|
239
|
+
newItems: returnData,
|
|
240
|
+
};
|
|
241
|
+
const mode = this.getMode();
|
|
242
|
+
const options = {
|
|
243
|
+
console: mode === 'manual' ? 'redirect' : 'inherit',
|
|
244
|
+
sandbox,
|
|
245
|
+
};
|
|
246
|
+
const vm = new vm2_1.NodeVM(options);
|
|
247
|
+
returnData = await vm.run(`
|
|
248
|
+
module.exports = async function() {
|
|
249
|
+
newItems.sort( (a,b) => {
|
|
250
|
+
${code}
|
|
251
|
+
})
|
|
252
|
+
return newItems;
|
|
253
|
+
}()`, __dirname);
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), "Sort code doesn't return. Please add a 'return' statement to your code");
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
return returnData;
|
|
260
|
+
}
|
|
261
|
+
exports.execute = execute;
|
|
262
|
+
//# sourceMappingURL=sort.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort.operation.js","sourceRoot":"","sources":["../../../../../../nodes/ItemLists/V3/actions/itemList/sort.operation.ts"],"names":[],"mappings":";;;;;;AAMA,+CAAkD;AAClD,gDAAwD;AAGxD,6BAA6B;AAE7B,qDAA6B;AAE7B,6DAAqC;AACrC,mDAA2B;AAE3B,+CAAmD;AACnD,gEAAmE;AAEnE,MAAM,UAAU,GAAsB;IACrC;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;aACf;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;aACf;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;aACb;SACD;QACD,OAAO,EAAE,QAAQ;QACjB,WAAW,EAAE,sEAAsE;KACnF;IACD;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE;YACZ,cAAc,EAAE,IAAI;SACpB;QACD,WAAW,EAAE,sBAAsB;QACnC,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,EAAE;gBACf,IAAI,EAAE,WAAW;gBACjB,MAAM,EAAE;oBACP;wBACC,WAAW,EAAE,YAAY;wBACzB,IAAI,EAAE,WAAW;wBACjB,IAAI,EAAE,QAAQ;wBACd,QAAQ,EAAE,IAAI;wBACd,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,sBAAsB;wBAEnC,WAAW,EAAE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,gBAAgB,CAAC,MAAM,EAAE,CAAC,CAAW,CAAC;QACxD,MAAM,UAAU,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE5C,IAAI,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM,EAAE;YACvB,MAAM,OAAO,GAAG;gBACf,QAAQ,EAAE,UAAU;aACpB,CAAC;YACF,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAC5B,MAAM,OAAO,GAAG;gBACf,OAAO,EAAE,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS;gBACnD,OAAO;aACP,CAAC;YACF,MAAM,EAAE,GAAG,IAAI,YAAM,CAAC,OAAmC,CAAC,CAAC;YAE3D,UAAU,GAAG,MAAM,EAAE,CAAC,GAAG,CACxB;;;OAGG,IAAI;;;OAGJ,EACH,SAAS,CACT,CAAC;SACF;aAAM;YACN,MAAM,IAAI,iCAAkB,CAC3B,IAAI,CAAC,OAAO,EAAE,EACd,wEAAwE,CACxE,CAAC;SACF;KACD;IACD,OAAO,UAAU,CAAC;AACnB,CAAC;AA5JD,0BA4JC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare const description: {
|
|
3
|
+
displayOptions: import("n8n-workflow").IDisplayOptions;
|
|
4
|
+
displayName: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: import("n8n-workflow").NodePropertyTypes;
|
|
7
|
+
typeOptions?: import("n8n-workflow").INodePropertyTypeOptions | undefined;
|
|
8
|
+
default: import("n8n-workflow").NodeParameterValueType;
|
|
9
|
+
description?: string | undefined;
|
|
10
|
+
hint?: string | undefined;
|
|
11
|
+
options?: (INodeProperties | import("n8n-workflow").INodePropertyOptions | import("n8n-workflow").INodePropertyCollection)[] | undefined;
|
|
12
|
+
placeholder?: string | undefined;
|
|
13
|
+
isNodeSetting?: boolean | undefined;
|
|
14
|
+
noDataExpression?: boolean | undefined;
|
|
15
|
+
required?: boolean | undefined;
|
|
16
|
+
routing?: import("n8n-workflow").INodePropertyRouting | undefined;
|
|
17
|
+
credentialTypes?: ("extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth")[] | undefined;
|
|
18
|
+
extractValue?: import("n8n-workflow").INodePropertyValueExtractorRegex | undefined;
|
|
19
|
+
modes?: import("n8n-workflow").INodePropertyMode[] | undefined;
|
|
20
|
+
requiresDataPath?: "single" | "multiple" | undefined;
|
|
21
|
+
}[];
|
|
22
|
+
export declare function execute(this: IExecuteFunctions, items: INodeExecutionData[]): Promise<INodeExecutionData[]>;
|