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,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.execute = exports.description = void 0;
|
|
4
|
+
const utilities_1 = require("../../../../../utils/utilities");
|
|
5
|
+
const transport_1 = require("../../transport");
|
|
6
|
+
const utils_1 = require("../../helpers/utils");
|
|
7
|
+
const common_descriptions_1 = require("../common.descriptions");
|
|
8
|
+
const properties = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Columns',
|
|
11
|
+
name: 'columns',
|
|
12
|
+
type: 'resourceMapper',
|
|
13
|
+
noDataExpression: true,
|
|
14
|
+
default: {
|
|
15
|
+
mappingMode: 'defineBelow',
|
|
16
|
+
value: null,
|
|
17
|
+
},
|
|
18
|
+
required: true,
|
|
19
|
+
typeOptions: {
|
|
20
|
+
loadOptionsDependsOn: ['table.value', 'base.value'],
|
|
21
|
+
resourceMapper: {
|
|
22
|
+
resourceMapperMethod: 'getColumnsWithRecordId',
|
|
23
|
+
mode: 'update',
|
|
24
|
+
fieldWords: {
|
|
25
|
+
singular: 'column',
|
|
26
|
+
plural: 'columns',
|
|
27
|
+
},
|
|
28
|
+
addAllFields: true,
|
|
29
|
+
multiKeyMatch: true,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
...common_descriptions_1.insertUpdateOptions,
|
|
34
|
+
];
|
|
35
|
+
const displayOptions = {
|
|
36
|
+
show: {
|
|
37
|
+
resource: ['record'],
|
|
38
|
+
operation: ['update'],
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
|
|
42
|
+
async function execute(items, base, table) {
|
|
43
|
+
const returnData = [];
|
|
44
|
+
const endpoint = `${base}/${table}`;
|
|
45
|
+
const dataMode = this.getNodeParameter('columns.mappingMode', 0);
|
|
46
|
+
const columnsToMatchOn = this.getNodeParameter('columns.matchingColumns', 0);
|
|
47
|
+
let tableData = [];
|
|
48
|
+
if (!columnsToMatchOn.includes('id')) {
|
|
49
|
+
const response = await transport_1.apiRequestAllItems.call(this, 'GET', endpoint, {}, { fields: columnsToMatchOn });
|
|
50
|
+
tableData = response.records;
|
|
51
|
+
}
|
|
52
|
+
for (let i = 0; i < items.length; i++) {
|
|
53
|
+
let recordId = '';
|
|
54
|
+
try {
|
|
55
|
+
const records = [];
|
|
56
|
+
const options = this.getNodeParameter('options', i, {});
|
|
57
|
+
if (dataMode === 'autoMapInputData') {
|
|
58
|
+
if (columnsToMatchOn.includes('id')) {
|
|
59
|
+
const { id, ...fields } = items[i].json;
|
|
60
|
+
recordId = id;
|
|
61
|
+
records.push({
|
|
62
|
+
id: recordId,
|
|
63
|
+
fields: (0, utils_1.removeIgnored)(fields, options.ignoreFields),
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
const matches = (0, utils_1.findMatches)(tableData, columnsToMatchOn, items[i].json, options.updateAllMatches);
|
|
68
|
+
for (const match of matches) {
|
|
69
|
+
const id = match.id;
|
|
70
|
+
const fields = items[i].json;
|
|
71
|
+
records.push({ id, fields: (0, utils_1.removeIgnored)(fields, options.ignoreFields) });
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
if (dataMode === 'defineBelow') {
|
|
76
|
+
if (columnsToMatchOn.includes('id')) {
|
|
77
|
+
const { id, ...fields } = this.getNodeParameter('columns.value', i, []);
|
|
78
|
+
records.push({ id: id, fields });
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
const fields = this.getNodeParameter('columns.value', i, []);
|
|
82
|
+
const matches = (0, utils_1.findMatches)(tableData, columnsToMatchOn, fields, options.updateAllMatches);
|
|
83
|
+
for (const match of matches) {
|
|
84
|
+
const id = match.id;
|
|
85
|
+
records.push({ id, fields: (0, utils_1.removeIgnored)(fields, columnsToMatchOn) });
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
const body = { typecast: options.typecast ? true : false };
|
|
90
|
+
const responseData = await transport_1.batchUpdate.call(this, endpoint, body, records);
|
|
91
|
+
const executionData = this.helpers.constructExecutionMetaData((0, utilities_1.wrapData)(responseData.records), { itemData: { item: i } });
|
|
92
|
+
returnData.push(...executionData);
|
|
93
|
+
}
|
|
94
|
+
catch (error) {
|
|
95
|
+
error = (0, utils_1.processAirtableError)(error, recordId);
|
|
96
|
+
if (this.continueOnFail()) {
|
|
97
|
+
returnData.push({ json: { message: error.message, error } });
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
throw error;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return returnData;
|
|
104
|
+
}
|
|
105
|
+
exports.execute = execute;
|
|
106
|
+
//# sourceMappingURL=update.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../../nodes/Airtable/v2/actions/record/update.operation.ts"],"names":[],"mappings":";;;AAOA,8DAAgF;AAChF,+CAAkE;AAClE,+CAAuF;AAEv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AE,EAAE,CACzB,CAAC;YAEF,UAAU,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;SAClC;QAAC,OAAO,KAAK,EAAE;YACf,KAAK,GAAG,IAAA,4BAAoB,EAAC,KAAqB,EAAE,QAAQ,CAAC,CAAC;YAC9D,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE;gBAC1B,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;gBAC7D,SAAS;aACT;YACD,MAAM,KAAK,CAAC;SACZ;KACD;IAED,OAAO,UAAU,CAAC;AACnB,CAAC;AAnGD,0BAmGC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { INodeExecutionData, INodeProperties, IExecuteFunctions } 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[], base: string, table: string): Promise<INodeExecutionData[]>;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.execute = exports.description = void 0;
|
|
4
|
+
const utilities_1 = require("../../../../../utils/utilities");
|
|
5
|
+
const transport_1 = require("../../transport");
|
|
6
|
+
const utils_1 = require("../../helpers/utils");
|
|
7
|
+
const common_descriptions_1 = require("../common.descriptions");
|
|
8
|
+
const properties = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Columns',
|
|
11
|
+
name: 'columns',
|
|
12
|
+
type: 'resourceMapper',
|
|
13
|
+
noDataExpression: true,
|
|
14
|
+
default: {
|
|
15
|
+
mappingMode: 'defineBelow',
|
|
16
|
+
value: null,
|
|
17
|
+
},
|
|
18
|
+
required: true,
|
|
19
|
+
typeOptions: {
|
|
20
|
+
loadOptionsDependsOn: ['table.value', 'base.value'],
|
|
21
|
+
resourceMapper: {
|
|
22
|
+
resourceMapperMethod: 'getColumnsWithRecordId',
|
|
23
|
+
mode: 'update',
|
|
24
|
+
fieldWords: {
|
|
25
|
+
singular: 'column',
|
|
26
|
+
plural: 'columns',
|
|
27
|
+
},
|
|
28
|
+
addAllFields: true,
|
|
29
|
+
multiKeyMatch: true,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
...common_descriptions_1.insertUpdateOptions,
|
|
34
|
+
];
|
|
35
|
+
const displayOptions = {
|
|
36
|
+
show: {
|
|
37
|
+
resource: ['record'],
|
|
38
|
+
operation: ['upsert'],
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
|
|
42
|
+
async function execute(items, base, table) {
|
|
43
|
+
var _a;
|
|
44
|
+
const returnData = [];
|
|
45
|
+
const endpoint = `${base}/${table}`;
|
|
46
|
+
const dataMode = this.getNodeParameter('columns.mappingMode', 0);
|
|
47
|
+
const columnsToMatchOn = this.getNodeParameter('columns.matchingColumns', 0);
|
|
48
|
+
for (let i = 0; i < items.length; i++) {
|
|
49
|
+
try {
|
|
50
|
+
const records = [];
|
|
51
|
+
const options = this.getNodeParameter('options', i, {});
|
|
52
|
+
if (dataMode === 'autoMapInputData') {
|
|
53
|
+
if (columnsToMatchOn.includes('id')) {
|
|
54
|
+
const { id, ...fields } = items[i].json;
|
|
55
|
+
records.push({
|
|
56
|
+
id: id,
|
|
57
|
+
fields: (0, utils_1.removeIgnored)(fields, options.ignoreFields),
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
records.push({ fields: (0, utils_1.removeIgnored)(items[i].json, options.ignoreFields) });
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
if (dataMode === 'defineBelow') {
|
|
65
|
+
const fields = this.getNodeParameter('columns.value', i, []);
|
|
66
|
+
if (columnsToMatchOn.includes('id')) {
|
|
67
|
+
const id = fields.id;
|
|
68
|
+
delete fields.id;
|
|
69
|
+
records.push({ id, fields });
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
records.push({ fields });
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
const body = {
|
|
76
|
+
typecast: options.typecast ? true : false,
|
|
77
|
+
};
|
|
78
|
+
if (!columnsToMatchOn.includes('id')) {
|
|
79
|
+
body.performUpsert = { fieldsToMergeOn: columnsToMatchOn };
|
|
80
|
+
}
|
|
81
|
+
let responseData;
|
|
82
|
+
try {
|
|
83
|
+
responseData = await transport_1.batchUpdate.call(this, endpoint, body, records);
|
|
84
|
+
}
|
|
85
|
+
catch (error) {
|
|
86
|
+
if (error.httpCode === '422' && columnsToMatchOn.includes('id')) {
|
|
87
|
+
const createBody = {
|
|
88
|
+
...body,
|
|
89
|
+
records: records.map(({ fields }) => ({ fields })),
|
|
90
|
+
};
|
|
91
|
+
responseData = await transport_1.apiRequest.call(this, 'POST', endpoint, createBody);
|
|
92
|
+
}
|
|
93
|
+
else if ((_a = error === null || error === void 0 ? void 0 : error.description) === null || _a === void 0 ? void 0 : _a.includes('Cannot update more than one record')) {
|
|
94
|
+
const conditions = columnsToMatchOn
|
|
95
|
+
.map((column) => `{${column}} = '${records[0].fields[column]}'`)
|
|
96
|
+
.join(',');
|
|
97
|
+
const response = await transport_1.apiRequestAllItems.call(this, 'GET', endpoint, {}, {
|
|
98
|
+
fields: columnsToMatchOn,
|
|
99
|
+
filterByFormula: `AND(${conditions})`,
|
|
100
|
+
});
|
|
101
|
+
const matches = response.records;
|
|
102
|
+
const updateRecords = [];
|
|
103
|
+
if (options.updateAllMatches) {
|
|
104
|
+
updateRecords.push(...matches.map(({ id }) => ({ id, fields: records[0].fields })));
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
updateRecords.push({ id: matches[0].id, fields: records[0].fields });
|
|
108
|
+
}
|
|
109
|
+
responseData = await transport_1.batchUpdate.call(this, endpoint, body, updateRecords);
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
throw error;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
const executionData = this.helpers.constructExecutionMetaData((0, utilities_1.wrapData)(responseData.records), { itemData: { item: i } });
|
|
116
|
+
returnData.push(...executionData);
|
|
117
|
+
}
|
|
118
|
+
catch (error) {
|
|
119
|
+
if (this.continueOnFail()) {
|
|
120
|
+
returnData.push({ json: { message: error.message, error } });
|
|
121
|
+
continue;
|
|
122
|
+
}
|
|
123
|
+
throw error;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return returnData;
|
|
127
|
+
}
|
|
128
|
+
exports.execute = execute;
|
|
129
|
+
//# sourceMappingURL=upsert.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upsert.oper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AACnB,CAAC;AA5GD,0BA4GC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
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 record = __importStar(require("./record/Record.resource"));
|
|
29
|
+
const base = __importStar(require("./base/Base.resource"));
|
|
30
|
+
async function router() {
|
|
31
|
+
let returnData = [];
|
|
32
|
+
const items = this.getInputData();
|
|
33
|
+
const resource = this.getNodeParameter('resource', 0);
|
|
34
|
+
const operation = this.getNodeParameter('operation', 0);
|
|
35
|
+
const airtableNodeData = {
|
|
36
|
+
resource,
|
|
37
|
+
operation,
|
|
38
|
+
};
|
|
39
|
+
try {
|
|
40
|
+
switch (airtableNodeData.resource) {
|
|
41
|
+
case 'record':
|
|
42
|
+
const baseId = this.getNodeParameter('base', 0, undefined, {
|
|
43
|
+
extractValue: true,
|
|
44
|
+
});
|
|
45
|
+
const table = encodeURI(this.getNodeParameter('table', 0, undefined, {
|
|
46
|
+
extractValue: true,
|
|
47
|
+
}));
|
|
48
|
+
returnData = await record[airtableNodeData.operation].execute.call(this, items, baseId, table);
|
|
49
|
+
break;
|
|
50
|
+
case 'base':
|
|
51
|
+
returnData = await base[airtableNodeData.operation].execute.call(this, items);
|
|
52
|
+
break;
|
|
53
|
+
default:
|
|
54
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The operation "${operation}" is not supported!`);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
catch (error) {
|
|
58
|
+
if (error.description &&
|
|
59
|
+
error.description.includes('cannot accept the provided value')) {
|
|
60
|
+
error.description = `${error.description}. Consider using 'Typecast' option`;
|
|
61
|
+
}
|
|
62
|
+
throw error;
|
|
63
|
+
}
|
|
64
|
+
return this.prepareOutputData(returnData);
|
|
65
|
+
}
|
|
66
|
+
exports.router = router;
|
|
67
|
+
//# sourceMappingURL=router.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router.js","sourceRoot":"","sources":["../../../../../nodes/Airtable/v2/actions/router.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+CAAkD;AAGlD,iEAAmD;AACnD,2DAA6C;AAEtC,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,CAAe,UAAU,EAAE,CAAC,CAAC,CAAC;IACpE,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,C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
|
+
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 record = __importStar(require("./record/Record.resource"));
|
|
28
|
+
const base = __importStar(require("./base/Base.resource"));
|
|
29
|
+
exports.versionDescription = {
|
|
30
|
+
displayName: 'Airtable',
|
|
31
|
+
name: 'airtable',
|
|
32
|
+
icon: 'file:airtable.svg',
|
|
33
|
+
group: ['input'],
|
|
34
|
+
version: 2,
|
|
35
|
+
subtitle: '={{ $parameter["operation"] + ": " + $parameter["resource"] }}',
|
|
36
|
+
description: 'Read, update, write and delete data from Airtable',
|
|
37
|
+
defaults: {
|
|
38
|
+
name: 'Airtable',
|
|
39
|
+
},
|
|
40
|
+
inputs: ['main'],
|
|
41
|
+
outputs: ['main'],
|
|
42
|
+
credentials: [
|
|
43
|
+
{
|
|
44
|
+
name: 'airtableTokenApi',
|
|
45
|
+
required: true,
|
|
46
|
+
displayOptions: {
|
|
47
|
+
show: {
|
|
48
|
+
authentication: ['airtableTokenApi'],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'airtableOAuth2Api',
|
|
54
|
+
required: true,
|
|
55
|
+
displayOptions: {
|
|
56
|
+
show: {
|
|
57
|
+
authentication: ['airtableOAuth2Api'],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
properties: [
|
|
63
|
+
{
|
|
64
|
+
displayName: 'Authentication',
|
|
65
|
+
name: 'authentication',
|
|
66
|
+
type: 'options',
|
|
67
|
+
options: [
|
|
68
|
+
{
|
|
69
|
+
name: 'Access Token',
|
|
70
|
+
value: 'airtableTokenApi',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: 'OAuth2',
|
|
74
|
+
value: 'airtableOAuth2Api',
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
default: 'airtableTokenApi',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
displayName: 'Resource',
|
|
81
|
+
name: 'resource',
|
|
82
|
+
type: 'options',
|
|
83
|
+
noDataExpression: true,
|
|
84
|
+
options: [
|
|
85
|
+
{
|
|
86
|
+
name: 'Base',
|
|
87
|
+
value: 'base',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'Record',
|
|
91
|
+
value: 'record',
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
default: 'record',
|
|
95
|
+
},
|
|
96
|
+
...record.description,
|
|
97
|
+
...base.description,
|
|
98
|
+
],
|
|
99
|
+
};
|
|
100
|
+
//# sourceMappingURL=versionDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versionDescription.js","sourceRoot":"","sources":["../../../../../nodes/Airtable/v2/actions/versionDescription.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,iEAAmD;AACnD,2DAA6C;AAEhC,QAAA,kBAAkB,GAAyB;IACvD,WAAW,EAAE,UAAU;IACvB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,mBAAmB;IACzB,KAAK,EAAE,CAAC,OAAO,CAAC;IAChB,OAAO,EAAE,CAAC;IACV,QAAQ,EAAE,gEAAgE;IAC1E,WAAW,EAAE,mDAAmD;IAChE,QAAQ,EAAE;QACT,IAAI,EAAE,UAAU;KAChB;IACD,MAAM,EAAE,CAAC,MAAM,CAAC;IAChB,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,WAAW,EAAE;QACZ;YACC,IAAI,EAAE,kBAAkB;YACxB,QAAQ,EAAE,IAAI;YACd,cAAc,EAAE;gBACf,IAAI,EAAE;oBACL,cAAc,EAAE,CAAC,kBAAkB,CAAC;iBACpC;aACD;SACD;QACD;YACC,IAAI,EAAE,mBAAmB;YACzB,QAAQ,EAAE,IAAI;YACd,cAAc,EAAE;gBACf,IAAI,EAAE;oBACL,cAAc,EAAE,CAAC,mBAAmB,CAAC;iBACrC;aACD;SACD;KACD;IACD,UAAU,EAAE;QACX;YACC,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,SAAS;YACf,OAAO,EAAE;gBACR;oBACC,IAAI,EAAE,cAAc;oBACpB,KAAK,EAAE,kBAAkB;iBACzB;gBACD;oBACC,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,mBAAmB;iBAC1B;aACD;YACD,OAAO,EAAE,kBAAkB;SAC3B;QACD;YACC,WAAW,EAAE,UAAU;YACvB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,SAAS;YACf,gBAAgB,EAAE,IAAI;YACtB,OAAO,EAAE;gBACR;oBACC,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,MAAM;iBACb;gBACD;oBACC,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,QAAQ;iBACf;aAKD;YACD,OAAO,EAAE,QAAQ;SACjB;QACD,GAAG,MAAM,CAAC,WAAW;QACrB,GAAG,IAAI,CAAC,WAAW;KACnB;CACD,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { IDataObject } from 'n8n-workflow';
|
|
2
|
+
export interface IAttachment {
|
|
3
|
+
url: string;
|
|
4
|
+
filename: string;
|
|
5
|
+
type: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IRecord {
|
|
8
|
+
fields: {
|
|
9
|
+
[key: string]: string | IAttachment[];
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export type UpdateRecord = {
|
|
13
|
+
fields: IDataObject;
|
|
14
|
+
id?: string;
|
|
15
|
+
};
|
|
16
|
+
export type UpdateBody = {
|
|
17
|
+
records: UpdateRecord[];
|
|
18
|
+
performUpsert?: {
|
|
19
|
+
fieldsToMergeOn: string[];
|
|
20
|
+
};
|
|
21
|
+
typecast?: boolean;
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../nodes/Airtable/v2/helpers/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IDataObject, NodeApiError } from 'n8n-workflow';
|
|
2
|
+
import type { UpdateRecord } from './interfaces';
|
|
3
|
+
export declare function removeIgnored(data: IDataObject, ignore: string | string[]): IDataObject;
|
|
4
|
+
export declare function findMatches(data: UpdateRecord[], keys: string[], fields: IDataObject, updateAll?: boolean): UpdateRecord[];
|
|
5
|
+
export declare function processAirtableError(error: NodeApiError, id?: string): NodeApiError;
|
|
6
|
+
export declare const flattenOutput: (record: IDataObject) => {
|
|
7
|
+
[x: string]: IDataObject | IDataObject[] | import("n8n-workflow").GenericValue | import("n8n-workflow").GenericValue[];
|
|
8
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.flattenOutput = exports.processAirtableError = exports.findMatches = exports.removeIgnored = void 0;
|
|
4
|
+
function removeIgnored(data, ignore) {
|
|
5
|
+
if (ignore) {
|
|
6
|
+
let ignoreFields = [];
|
|
7
|
+
if (typeof ignore === 'string') {
|
|
8
|
+
ignoreFields = ignore.split(',').map((field) => field.trim());
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
ignoreFields = ignore;
|
|
12
|
+
}
|
|
13
|
+
const newData = {};
|
|
14
|
+
for (const field of Object.keys(data)) {
|
|
15
|
+
if (!ignoreFields.includes(field)) {
|
|
16
|
+
newData[field] = data[field];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return newData;
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
return data;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.removeIgnored = removeIgnored;
|
|
26
|
+
function findMatches(data, keys, fields, updateAll) {
|
|
27
|
+
if (updateAll) {
|
|
28
|
+
const matches = data.filter((record) => {
|
|
29
|
+
for (const key of keys) {
|
|
30
|
+
if (record.fields[key] !== fields[key]) {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return true;
|
|
35
|
+
});
|
|
36
|
+
if (!(matches === null || matches === void 0 ? void 0 : matches.length)) {
|
|
37
|
+
throw new Error('No records match provided keys');
|
|
38
|
+
}
|
|
39
|
+
return matches;
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
const match = data.find((record) => {
|
|
43
|
+
for (const key of keys) {
|
|
44
|
+
if (record.fields[key] !== fields[key]) {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return true;
|
|
49
|
+
});
|
|
50
|
+
if (!match) {
|
|
51
|
+
throw new Error('Record matching provided keys was not found');
|
|
52
|
+
}
|
|
53
|
+
return [match];
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.findMatches = findMatches;
|
|
57
|
+
function processAirtableError(error, id) {
|
|
58
|
+
var _a;
|
|
59
|
+
if (error.description === 'NOT_FOUND' && id) {
|
|
60
|
+
error.description = `${id} is not a valid Record ID`;
|
|
61
|
+
}
|
|
62
|
+
if (((_a = error.description) === null || _a === void 0 ? void 0 : _a.includes('You must provide an array of up to 10 record objects')) && id) {
|
|
63
|
+
error.description = `${id} is not a valid Record ID`;
|
|
64
|
+
}
|
|
65
|
+
return error;
|
|
66
|
+
}
|
|
67
|
+
exports.processAirtableError = processAirtableError;
|
|
68
|
+
const flattenOutput = (record) => {
|
|
69
|
+
const { fields, ...rest } = record;
|
|
70
|
+
return {
|
|
71
|
+
...rest,
|
|
72
|
+
...fields,
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
exports.flattenOutput = flattenOutput;
|
|
76
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../nodes/Airtable/v2/helpers/utils.ts"],"names":[],"mappings":";;;AAGA,SAAgB,aAAa,CAAC,IAAiB,EAAE,MAAyB;IACzE,IAAI,MAAM,EAAE;QACX,IAAI,YAAY,GAAa,EAAE,CAAC;QAEhC,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;YAC/B,YAAY,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;SAC9D;aAAM;YACN,YAAY,GAAG,MAAM,CAAC;SACtB;QAED,MAAM,OAAO,GAAgB,EAAE,CAAC;QAEhC,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YACtC,IAAI,CAAC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AW;;IACpE,IAAI,KAAK,CAAC,WAAW,KAAK,WAAW,IAAI,EAAE,EAAE;QAC5C,KAAK,CAAC,WAAW,GAAG,GAAG,EAAE,2BAA2B,CAAC;KACrD;IACD,IAAI,CAAA,MAAA,KAAK,CAAC,WAAW,0CAAE,QAAQ,CAAC,sDAAsD,CAAC,KAAI,EAAE,EAAE;QAC9F,KAAK,CAAC,WAAW,GAAG,GAAG,EAAE,2BAA2B,CAAC;KACrD;IACD,OAAO,KAAK,CAAC;AACd,CAAC;AARD,oDAQC;AAEM,MAAM,aAAa,GAAG,CAAC,MAAmB,EAAE,EAAE;IACpD,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;IACnC,OAAO;QACN,GAAG,IAAI;QACP,GAAI,MAAsB;KAC1B,CAAC;AACH,CAAC,CAAC;AANW,QAAA,aAAa,iBAMxB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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.resourceMapping = exports.loadOptions = exports.listSearch = void 0;
|
|
27
|
+
exports.listSearch = __importStar(require("./listSearch"));
|
|
28
|
+
exports.loadOptions = __importStar(require("./loadOptions"));
|
|
29
|
+
exports.resourceMapping = __importStar(require("./resourceMapping"));
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Airtable/v2/methods/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA2C;AAC3C,6DAA6C;AAC7C,qEAAqD"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ILoadOptionsFunctions, INodeListSearchResult } from 'n8n-workflow';
|
|
2
|
+
export declare function baseSearch(this: ILoadOptionsFunctions, filter?: string, paginationToken?: string): Promise<INodeListSearchResult>;
|
|
3
|
+
export declare function tableSearch(this: ILoadOptionsFunctions, filter?: string, paginationToken?: string): Promise<INodeListSearchResult>;
|
|
4
|
+
export declare function viewSearch(this: ILoadOptionsFunctions, filter?: string): Promise<INodeListSearchResult>;
|