n8n-nodes-base 1.91.1 → 1.93.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/credentials/Aws.credentials.js +0 -2
- package/dist/credentials/Aws.credentials.js.map +1 -1
- package/dist/credentials/JinaAiApi.credentials.js +61 -0
- package/dist/credentials/JinaAiApi.credentials.js.map +1 -0
- package/dist/credentials/MicrosoftAzureCosmosDbSharedKeyApi.credentials.js +1 -1
- package/dist/credentials/MicrosoftAzureCosmosDbSharedKeyApi.credentials.js.map +1 -1
- package/dist/credentials/MicrosoftSharePointOAuth2Api.credentials.js +0 -9
- package/dist/credentials/MicrosoftSharePointOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/MicrosoftTeamsOAuth2Api.credentials.js +13 -0
- package/dist/credentials/MicrosoftTeamsOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/Snowflake.credentials.js +46 -2
- package/dist/credentials/Snowflake.credentials.js.map +1 -1
- package/dist/known/credentials.json +18 -1
- package/dist/known/nodes.json +28 -0
- package/dist/methods/defined.json +6 -0
- package/dist/methods/referenced.json +3 -0
- package/dist/nodes/Affinity/__schema__/v1.0.0/listEntry/getAll.json +1 -4
- package/dist/nodes/Airtop/__schema__/v1.0.0/extraction/query.json +47 -0
- package/dist/nodes/Aws/Cognito/AwsCognito.node.js +102 -0
- package/dist/nodes/Aws/Cognito/AwsCognito.node.js.map +1 -0
- package/dist/nodes/Aws/Cognito/AwsCognito.node.json +18 -0
- package/dist/nodes/Aws/Cognito/cognito.svg +1 -0
- package/dist/nodes/Aws/Cognito/descriptions/common.description.js +160 -0
- package/dist/nodes/Aws/Cognito/descriptions/common.description.js.map +1 -0
- package/dist/nodes/Aws/Cognito/descriptions/group/Group.resource.js +189 -0
- package/dist/nodes/Aws/Cognito/descriptions/group/Group.resource.js.map +1 -0
- package/dist/nodes/Aws/Cognito/descriptions/group/create.operation.js +126 -0
- package/dist/nodes/Aws/Cognito/descriptions/group/create.operation.js.map +1 -0
- package/dist/nodes/Aws/Cognito/descriptions/group/delete.operation.js +47 -0
- package/dist/nodes/Aws/Cognito/descriptions/group/delete.operation.js.map +1 -0
- package/dist/nodes/Aws/Cognito/descriptions/group/get.operation.js +54 -0
- package/dist/nodes/Aws/Cognito/descriptions/group/get.operation.js.map +1 -0
- package/dist/nodes/Aws/Cognito/descriptions/group/getAll.operation.js +95 -0
- package/dist/nodes/Aws/Cognito/descriptions/group/getAll.operation.js.map +1 -0
- package/dist/nodes/Aws/Cognito/descriptions/group/update.operation.js +120 -0
- package/dist/nodes/Aws/Cognito/descriptions/group/update.operation.js.map +1 -0
- package/dist/nodes/Aws/Cognito/descriptions/index.js +45 -0
- package/dist/nodes/Aws/Cognito/descriptions/index.js.map +1 -0
- package/dist/nodes/Aws/Cognito/descriptions/user/User.resource.js +263 -0
- package/dist/nodes/Aws/Cognito/descriptions/user/User.resource.js.map +1 -0
- package/dist/nodes/Aws/Cognito/descriptions/user/addToGroup.operation.js +51 -0
- package/dist/nodes/Aws/Cognito/descriptions/user/addToGroup.operation.js.map +1 -0
- package/dist/nodes/Aws/Cognito/descriptions/user/create.operation.js +299 -0
- package/dist/nodes/Aws/Cognito/descriptions/user/create.operation.js.map +1 -0
- package/dist/nodes/Aws/Cognito/descriptions/user/delete.operation.js +47 -0
- package/dist/nodes/Aws/Cognito/descriptions/user/delete.operation.js.map +1 -0
- package/dist/nodes/Aws/Cognito/descriptions/user/get.operation.js +54 -0
- package/dist/nodes/Aws/Cognito/descriptions/user/get.operation.js.map +1 -0
- package/dist/nodes/Aws/Cognito/descriptions/user/getAll.operation.js +187 -0
- package/dist/nodes/Aws/Cognito/descriptions/user/getAll.operation.js.map +1 -0
- package/dist/nodes/Aws/Cognito/descriptions/user/removeFromGroup.operation.js +60 -0
- package/dist/nodes/Aws/Cognito/descriptions/user/removeFromGroup.operation.js.map +1 -0
- package/dist/nodes/Aws/Cognito/descriptions/user/update.operation.js +189 -0
- package/dist/nodes/Aws/Cognito/descriptions/user/update.operation.js.map +1 -0
- package/dist/nodes/Aws/Cognito/descriptions/userPool/UserPool.resource.js +81 -0
- package/dist/nodes/Aws/Cognito/descriptions/userPool/UserPool.resource.js.map +1 -0
- package/dist/nodes/Aws/Cognito/descriptions/userPool/get.operation.js +50 -0
- package/dist/nodes/Aws/Cognito/descriptions/userPool/get.operation.js.map +1 -0
- package/dist/nodes/Aws/Cognito/helpers/constants.js +91 -0
- package/dist/nodes/Aws/Cognito/helpers/constants.js.map +1 -0
- package/dist/nodes/Aws/Cognito/helpers/errorHandler.js +109 -0
- package/dist/nodes/Aws/Cognito/helpers/errorHandler.js.map +1 -0
- package/dist/nodes/Aws/Cognito/helpers/interfaces.js +17 -0
- package/dist/nodes/Aws/Cognito/helpers/interfaces.js.map +1 -0
- package/dist/nodes/Aws/Cognito/helpers/utils.js +318 -0
- package/dist/nodes/Aws/Cognito/helpers/utils.js.map +1 -0
- package/dist/nodes/Aws/Cognito/methods/index.js +39 -0
- package/dist/nodes/Aws/Cognito/methods/index.js.map +1 -0
- package/dist/nodes/Aws/Cognito/methods/listSearch.js +157 -0
- package/dist/nodes/Aws/Cognito/methods/listSearch.js.map +1 -0
- package/dist/nodes/Aws/Cognito/transport/index.js +72 -0
- package/dist/nodes/Aws/Cognito/transport/index.js.map +1 -0
- package/dist/nodes/Aws/IAM/AwsIam.node.js +95 -0
- package/dist/nodes/Aws/IAM/AwsIam.node.js.map +1 -0
- package/dist/nodes/Aws/IAM/AwsIam.node.json +18 -0
- package/dist/nodes/Aws/IAM/AwsIam.svg +18 -0
- package/dist/nodes/Aws/IAM/descriptions/common.js +188 -0
- package/dist/nodes/Aws/IAM/descriptions/common.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/group/Group.resource.js +175 -0
- package/dist/nodes/Aws/IAM/descriptions/group/Group.resource.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/group/create.operation.js +66 -0
- package/dist/nodes/Aws/IAM/descriptions/group/create.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/group/delete.operation.js +43 -0
- package/dist/nodes/Aws/IAM/descriptions/group/delete.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/group/get.operation.js +50 -0
- package/dist/nodes/Aws/IAM/descriptions/group/get.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/group/getAll.operation.js +47 -0
- package/dist/nodes/Aws/IAM/descriptions/group/getAll.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/group/update.operation.js +70 -0
- package/dist/nodes/Aws/IAM/descriptions/group/update.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/index.js +42 -0
- package/dist/nodes/Aws/IAM/descriptions/index.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/user/User.resource.js +231 -0
- package/dist/nodes/Aws/IAM/descriptions/user/User.resource.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/user/addToGroup.operation.js +47 -0
- package/dist/nodes/Aws/IAM/descriptions/user/addToGroup.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/user/create.operation.js +118 -0
- package/dist/nodes/Aws/IAM/descriptions/user/create.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/user/delete.operation.js +43 -0
- package/dist/nodes/Aws/IAM/descriptions/user/delete.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/user/get.operation.js +43 -0
- package/dist/nodes/Aws/IAM/descriptions/user/get.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/user/getAll.operation.js +66 -0
- package/dist/nodes/Aws/IAM/descriptions/user/getAll.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/user/removeFromGroup.operation.js +74 -0
- package/dist/nodes/Aws/IAM/descriptions/user/removeFromGroup.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/user/update.operation.js +68 -0
- package/dist/nodes/Aws/IAM/descriptions/user/update.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/helpers/constants.js +47 -0
- package/dist/nodes/Aws/IAM/helpers/constants.js.map +1 -0
- package/dist/nodes/Aws/IAM/helpers/errorHandler.js +90 -0
- package/dist/nodes/Aws/IAM/helpers/errorHandler.js.map +1 -0
- package/dist/nodes/Aws/IAM/helpers/types.js +17 -0
- package/dist/nodes/Aws/IAM/helpers/types.js.map +1 -0
- package/dist/nodes/Aws/IAM/helpers/utils.js +279 -0
- package/dist/nodes/Aws/IAM/helpers/utils.js.map +1 -0
- package/dist/nodes/Aws/IAM/methods/index.js +39 -0
- package/dist/nodes/Aws/IAM/methods/index.js.map +1 -0
- package/dist/nodes/Aws/IAM/methods/listSearch.js +132 -0
- package/dist/nodes/Aws/IAM/methods/listSearch.js.map +1 -0
- package/dist/nodes/Aws/IAM/transport/index.js +64 -0
- package/dist/nodes/Aws/IAM/transport/index.js.map +1 -0
- package/dist/nodes/Aws/S3/__schema__/v2.0.0/file/getAll.json +1 -7
- package/dist/nodes/BambooHr/__schema__/v1.0.0/employee/get.json +10 -1
- package/dist/nodes/Cron/Cron.node.js +1 -1
- package/dist/nodes/Cron/Cron.node.js.map +1 -1
- package/dist/nodes/Dropcontact/__schema__/v1.0.0/contact/enrich.json +7 -15
- package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js +2 -2
- package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js.map +1 -1
- package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js +2 -2
- package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js.map +1 -1
- package/dist/nodes/EmailSend/__schema__/v2.1.0/email/send.json +7 -1
- package/dist/nodes/Evaluation/Evaluation/Description.node.js +146 -0
- package/dist/nodes/Evaluation/Evaluation/Description.node.js.map +1 -0
- package/dist/nodes/Evaluation/Evaluation/Evaluation.node.ee.js +117 -0
- package/dist/nodes/Evaluation/Evaluation/Evaluation.node.ee.js.map +1 -0
- package/dist/nodes/Evaluation/EvaluationTrigger/EvaluationTrigger.node.ee.js +187 -0
- package/dist/nodes/Evaluation/EvaluationTrigger/EvaluationTrigger.node.ee.js.map +1 -0
- package/dist/nodes/Evaluation/methods/index.js +42 -0
- package/dist/nodes/Evaluation/methods/index.js.map +1 -0
- package/dist/nodes/Evaluation/methods/loadOptions.js +40 -0
- package/dist/nodes/Evaluation/methods/loadOptions.js.map +1 -0
- package/dist/nodes/Evaluation/utils/evaluationTriggerUtils.js +119 -0
- package/dist/nodes/Evaluation/utils/evaluationTriggerUtils.js.map +1 -0
- package/dist/nodes/Evaluation/utils/evaluationUtils.js +171 -0
- package/dist/nodes/Evaluation/utils/evaluationUtils.js.map +1 -0
- package/dist/nodes/ExecuteWorkflow/ExecuteWorkflowTrigger/ExecuteWorkflowTrigger.node.js +4 -3
- package/dist/nodes/ExecuteWorkflow/ExecuteWorkflowTrigger/ExecuteWorkflowTrigger.node.js.map +1 -1
- package/dist/nodes/Form/common.descriptions.js +2 -2
- package/dist/nodes/Form/common.descriptions.js.map +1 -1
- package/dist/nodes/Github/__schema__/v1.1.0/file/list.json +44 -0
- package/dist/nodes/Gitlab/__schema__/v1.0.0/file/get.json +1 -4
- package/dist/nodes/Google/BusinessProfile/__schema__/v1.0.0/review/getAll.json +1 -12
- package/dist/nodes/Google/Calendar/__schema__/v1.3.0/event/getAll.json +4 -7
- package/dist/nodes/Google/Contacts/__schema__/v1.0.0/contact/getAll.json +1 -12
- package/dist/nodes/Google/Drive/__schema__/v3.0.0/file/download.json +9 -0
- package/dist/nodes/Google/Firebase/CloudFirestore/__schema__/v1.1.0/document/query.json +7 -1
- package/dist/nodes/Google/Gmail/__schema__/v2.1.0/message/addLabels.json +1 -13
- package/dist/nodes/Google/Gmail/__schema__/v2.1.0/message/get.json +7 -1
- package/dist/nodes/Google/Gmail/__schema__/v2.1.0/message/getAll.json +29 -113
- package/dist/nodes/Google/Gmail/__schema__/v2.1.0/thread/get.json +1 -60
- package/dist/nodes/Google/Sheet/GoogleSheets.node.js +3 -2
- package/dist/nodes/Google/Sheet/GoogleSheets.node.js.map +1 -1
- package/dist/nodes/Google/Sheet/GoogleSheetsTrigger.node.js +113 -107
- package/dist/nodes/Google/Sheet/GoogleSheetsTrigger.node.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/sheet/read.operation.js +52 -105
- package/dist/nodes/Google/Sheet/v2/actions/sheet/read.operation.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/utils/readOperation.js +97 -0
- package/dist/nodes/Google/Sheet/v2/actions/utils/readOperation.js.map +1 -0
- package/dist/nodes/Google/Sheet/v2/actions/versionDescription.js +21 -18
- package/dist/nodes/Google/Sheet/v2/actions/versionDescription.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.js +4 -0
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.js.map +1 -1
- package/dist/nodes/Google/Task/__schema__/v1.0.0/task/getAll.json +1 -4
- package/dist/nodes/Google/YouTube/YouTube.node.js +4 -2
- package/dist/nodes/Google/YouTube/YouTube.node.js.map +1 -1
- package/dist/nodes/Google/YouTube/__schema__/v1.0.0/video/get.json +35 -1
- package/dist/nodes/Hubspot/__schema__/v2.1.0/company/getAll.json +4 -1
- package/dist/nodes/Hubspot/__schema__/v2.1.0/contact/search.json +1 -4
- package/dist/nodes/Hubspot/__schema__/v2.1.0/deal/getAll.json +45 -11
- package/dist/nodes/Hubspot/__schema__/v2.1.0/deal/search.json +2 -5
- package/dist/nodes/Hubspot/__schema__/v2.1.0/ticket/get.json +4 -4
- package/dist/nodes/Interval/Interval.node.js +1 -1
- package/dist/nodes/Interval/Interval.node.js.map +1 -1
- package/dist/nodes/ItemLists/__schema__/v3.0.0/itemList/limit.json +4 -1
- package/dist/nodes/JinaAI/JinaAi.node.js +486 -0
- package/dist/nodes/JinaAI/JinaAi.node.js.map +1 -0
- package/dist/nodes/JinaAI/JinaAi.node.json +18 -0
- package/dist/nodes/JinaAI/jinaAi.dark.svg +6 -0
- package/dist/nodes/JinaAI/jinaAi.svg +6 -0
- package/dist/nodes/Jira/__schema__/v1.0.0/issue/get.json +259 -1
- package/dist/nodes/Jira/__schema__/v1.0.0/issue/getAll.json +57 -37
- package/dist/nodes/Linear/__schema__/v1.0.0/issue/getAll.json +1 -12
- package/dist/nodes/LocalFileTrigger/LocalFileTrigger.node.js +2 -2
- package/dist/nodes/LocalFileTrigger/LocalFileTrigger.node.js.map +1 -1
- package/dist/nodes/MQTT/MqttTrigger.node.js +2 -2
- package/dist/nodes/MQTT/MqttTrigger.node.js.map +1 -1
- package/dist/nodes/ManualTrigger/ManualTrigger.node.js +1 -1
- package/dist/nodes/ManualTrigger/ManualTrigger.node.js.map +1 -1
- package/dist/nodes/Microsoft/AzureCosmosDb/AzureCosmosDb.node.json +2 -2
- package/dist/nodes/Microsoft/Entra/MicrosoftEntra.node.js +2 -2
- package/dist/nodes/Microsoft/Entra/MicrosoftEntra.node.js.map +1 -1
- package/dist/nodes/Microsoft/Entra/__schema__/v1.0.0/user/getAll.json +1 -7
- package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/event/getAll.json +4 -1
- package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/folderMessage/getAll.json +8 -47
- package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/message/get.json +124 -1
- package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/message/getAll.json +40 -20
- package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/message/sendAndWait.json +12 -11
- package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/messageAttachment/get.json +13 -1
- package/dist/nodes/Microsoft/SharePoint/MicrosoftSharePoint.node.js +93 -0
- package/dist/nodes/Microsoft/SharePoint/MicrosoftSharePoint.node.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/MicrosoftSharepoint.node.json +18 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/common.descriptions.js +190 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/common.descriptions.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/file/File.resource.js +108 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/file/File.resource.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/file/download.operation.js +62 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/file/download.operation.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/file/update.operation.js +129 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/file/update.operation.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/file/upload.operation.js +77 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/file/upload.operation.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/index.js +45 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/index.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/Item.resource.js +175 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/Item.resource.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/create.operation.js +100 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/create.operation.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/delete.operation.js +62 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/delete.operation.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/get.operation.js +83 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/get.operation.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/getAll.operation.js +203 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/getAll.operation.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/update.operation.js +100 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/update.operation.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/upsert.operation.js +100 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/upsert.operation.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/list/List.resource.js +99 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/list/List.resource.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/list/get.operation.js +65 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/list/get.operation.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/list/getAll.operation.js +105 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/list/getAll.operation.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/helpers/interfaces.js +17 -0
- package/dist/nodes/Microsoft/SharePoint/helpers/interfaces.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/helpers/utils.js +252 -0
- package/dist/nodes/Microsoft/SharePoint/helpers/utils.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/methods/index.js +42 -0
- package/dist/nodes/Microsoft/SharePoint/methods/index.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/methods/listSearch.js +222 -0
- package/dist/nodes/Microsoft/SharePoint/methods/listSearch.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/methods/resourceMapping.js +104 -0
- package/dist/nodes/Microsoft/SharePoint/methods/resourceMapping.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/test/credentials.js +54 -0
- package/dist/nodes/Microsoft/SharePoint/test/credentials.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/transport/index.js +46 -0
- package/dist/nodes/Microsoft/SharePoint/transport/index.js.map +1 -0
- package/dist/nodes/Microsoft/Storage/__schema__/v1.0.0/blob/getAll.json +44 -0
- package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.js +387 -0
- package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.js.map +1 -0
- package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.json +18 -0
- package/dist/nodes/Microsoft/Teams/__schema__/v2.0.0/channel/getAll.json +1 -4
- package/dist/nodes/Microsoft/Teams/v2/helpers/types.js +17 -0
- package/dist/nodes/Microsoft/Teams/v2/helpers/types.js.map +1 -0
- package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.js +147 -0
- package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.js.map +1 -0
- package/dist/nodes/Microsoft/Teams/v2/transport/index.js.map +1 -1
- package/dist/nodes/Microsoft/ToDo/__schema__/v1.0.0/task/getAll.json +21 -5
- package/dist/nodes/Notion/__schema__/v2.2.0/database/get.json +149 -2
- package/dist/nodes/Odoo/__schema__/v1.0.0/contact/getAll.json +10 -1
- package/dist/nodes/Odoo/__schema__/v1.0.0/custom/getAll.json +1 -4
- package/dist/nodes/Odoo/__schema__/v1.0.0/opportunity/getAll.json +49 -1
- package/dist/nodes/OpenAi/__schema__/v1.1.0/chat/complete.json +1 -29
- package/dist/nodes/Pipedrive/__schema__/v1.0.0/organization/search.json +20 -25
- package/dist/nodes/Pipedrive/__schema__/v1.0.0/person/search.json +1 -18
- package/dist/nodes/Plivo/__schema__/v1.0.0/call/make.json +15 -0
- package/dist/nodes/PostBin/BinDescription.js +1 -1
- package/dist/nodes/PostBin/BinDescription.js.map +1 -1
- package/dist/nodes/PostBin/GenericFunctions.js +5 -5
- package/dist/nodes/PostBin/GenericFunctions.js.map +1 -1
- package/dist/nodes/PostBin/PostBin.node.js +1 -1
- package/dist/nodes/PostBin/PostBin.node.js.map +1 -1
- package/dist/nodes/PostBin/RequestDescription.js +2 -2
- package/dist/nodes/PostBin/RequestDescription.js.map +1 -1
- package/dist/nodes/Postgres/PostgresTrigger.node.js +2 -2
- package/dist/nodes/Postgres/PostgresTrigger.node.js.map +1 -1
- package/dist/nodes/QuickBooks/__schema__/v1.0.0/transaction/getReport.json +1 -4
- package/dist/nodes/RabbitMQ/RabbitMQTrigger.node.js +2 -2
- package/dist/nodes/RabbitMQ/RabbitMQTrigger.node.js.map +1 -1
- package/dist/nodes/RespondToWebhook/RespondToWebhook.node.js +8 -3
- package/dist/nodes/RespondToWebhook/RespondToWebhook.node.js.map +1 -1
- package/dist/nodes/RespondToWebhook/utils.js +43 -0
- package/dist/nodes/RespondToWebhook/utils.js.map +1 -0
- package/dist/nodes/Salesforce/__schema__/v1.0.0/customObject/getAll.json +2 -2
- package/dist/nodes/Salesforce/__schema__/v1.0.0/opportunity/getAll.json +5 -2
- package/dist/nodes/Salesforce/__schema__/v1.0.0/task/getAll.json +4 -1
- package/dist/nodes/Schedule/ScheduleTrigger.node.js +1 -1
- package/dist/nodes/Schedule/ScheduleTrigger.node.js.map +1 -1
- package/dist/nodes/SeaTable/__schema__/v2.0.0/row/list.json +30 -0
- package/dist/nodes/ServiceNow/__schema__/v1.0.0/tableRecord/getAll.json +1 -4
- package/dist/nodes/Slack/__schema__/v2.3.0/channel/history.json +49 -3
- package/dist/nodes/Slack/__schema__/v2.3.0/message/post.json +4 -1
- package/dist/nodes/Snowflake/GenericFunctions.js +34 -2
- package/dist/nodes/Snowflake/GenericFunctions.js.map +1 -1
- package/dist/nodes/Snowflake/Snowflake.node.js +5 -7
- package/dist/nodes/Snowflake/Snowflake.node.js.map +1 -1
- package/dist/nodes/SseTrigger/SseTrigger.node.js +2 -2
- package/dist/nodes/SseTrigger/SseTrigger.node.js.map +1 -1
- package/dist/nodes/Ssh/__schema__/v1.0.0/command/execute.json +4 -1
- package/dist/nodes/Strapi/__schema__/v1.0.0/entry/get.json +32 -0
- package/dist/nodes/Strapi/__schema__/v1.0.0/entry/getAll.json +1 -4
- package/dist/nodes/Telegram/__schema__/v1.2.0/chat/get.json +27 -1
- package/dist/nodes/Telegram/__schema__/v1.2.0/chat/member.json +7 -1
- package/dist/nodes/Telegram/__schema__/v1.2.0/message/sendMessage.json +1 -4
- package/dist/nodes/Telegram/__schema__/v1.2.0/message/sendPhoto.json +4 -1
- package/dist/nodes/Trello/__schema__/v1.0.0/list/getAll.json +7 -1
- package/dist/nodes/Trello/__schema__/v1.0.0/list/getCards.json +13 -1
- package/dist/nodes/Wordpress/PageDescription.js +0 -17
- package/dist/nodes/Wordpress/PageDescription.js.map +1 -1
- package/dist/nodes/Wordpress/__schema__/v1.0.0/post/get.json +7 -1
- package/dist/nodes/Zoho/__schema__/v1.0.0/contact/getAll.json +15 -16
- package/dist/nodes/Zoho/__schema__/v1.0.0/lead/getAll.json +1 -122
- package/dist/nodes/Zoom/__schema__/v1.0.0/meeting/getAll.json +1 -4
- package/dist/types/credentials.json +8 -7
- package/dist/types/nodes.json +29 -22
- package/dist/utils/workflowInputsResourceMapping/GenericFunctions.js +12 -2
- package/dist/utils/workflowInputsResourceMapping/GenericFunctions.js.map +1 -1
- package/package.json +16 -9
- /package/dist/{credentials/icons/SharePoint.svg → nodes/Microsoft/SharePoint/microsoftSharePoint.svg} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.ts"],"sourcesContent":["import type {\n\tIExecuteFunctions,\n\tINodeType,\n\tINodeTypeDescription,\n\tIHookFunctions,\n\tIWebhookFunctions,\n\tIWebhookResponseData,\n\tIDataObject,\n\tILoadOptionsFunctions,\n\tJsonObject,\n} from 'n8n-workflow';\nimport { NodeApiError, NodeConnectionTypes } from 'n8n-workflow';\n\nimport type { WebhookNotification, SubscriptionResponse } from './v2/helpers/types';\nimport { createSubscription, getResourcePath } from './v2/helpers/utils-trigger';\nimport { listSearch } from './v2/methods';\nimport { microsoftApiRequest, microsoftApiRequestAllItems } from './v2/transport';\n\nexport class MicrosoftTeamsTrigger implements INodeType {\n\tdescription: INodeTypeDescription = {\n\t\tdisplayName: 'Microsoft Teams Trigger',\n\t\tname: 'microsoftTeamsTrigger',\n\t\ticon: 'file:teams.svg',\n\t\tgroup: ['trigger'],\n\t\tversion: 1,\n\t\tdescription:\n\t\t\t'Triggers workflows in n8n based on events from Microsoft Teams, such as new messages or team updates, using specified configurations.',\n\t\tsubtitle: 'Microsoft Teams Trigger',\n\t\tdefaults: {\n\t\t\tname: 'Microsoft Teams Trigger',\n\t\t},\n\t\tcredentials: [\n\t\t\t{\n\t\t\t\tname: 'microsoftTeamsOAuth2Api',\n\t\t\t\trequired: true,\n\t\t\t},\n\t\t],\n\t\tinputs: [],\n\t\toutputs: [NodeConnectionTypes.Main],\n\t\twebhooks: [\n\t\t\t{\n\t\t\t\tname: 'default',\n\t\t\t\thttpMethod: 'POST',\n\t\t\t\tresponseMode: 'onReceived',\n\t\t\t\tpath: 'webhook',\n\t\t\t},\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tdisplayName: 'Trigger On',\n\t\t\t\tname: 'event',\n\t\t\t\ttype: 'options',\n\t\t\t\tdefault: 'newChannelMessage',\n\t\t\t\toptions: [\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'New Channel',\n\t\t\t\t\t\tvalue: 'newChannel',\n\t\t\t\t\t\tdescription: 'A new channel is created',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'New Channel Message',\n\t\t\t\t\t\tvalue: 'newChannelMessage',\n\t\t\t\t\t\tdescription: 'A message is posted to a channel',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'New Chat',\n\t\t\t\t\t\tvalue: 'newChat',\n\t\t\t\t\t\tdescription: 'A new chat is created',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'New Chat Message',\n\t\t\t\t\t\tvalue: 'newChatMessage',\n\t\t\t\t\t\tdescription: 'A message is posted to a chat',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'New Team Member',\n\t\t\t\t\t\tvalue: 'newTeamMember',\n\t\t\t\t\t\tdescription: 'A new member is added to a team',\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tdescription: 'Select the event to trigger the workflow',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Watch All Teams',\n\t\t\t\tname: 'watchAllTeams',\n\t\t\t\ttype: 'boolean',\n\t\t\t\tdefault: false,\n\t\t\t\tdescription: 'Whether to watch for the event in all the available teams',\n\t\t\t\tdisplayOptions: {\n\t\t\t\t\tshow: {\n\t\t\t\t\t\tevent: ['newChannel', 'newChannelMessage', 'newTeamMember'],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Team',\n\t\t\t\tname: 'teamId',\n\t\t\t\ttype: 'resourceLocator',\n\t\t\t\tdefault: {\n\t\t\t\t\tmode: 'list',\n\t\t\t\t\tvalue: '',\n\t\t\t\t},\n\t\t\t\trequired: true,\n\t\t\t\tdescription: 'Select a team from the list, enter an ID or a URL',\n\t\t\t\tmodes: [\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'From List',\n\t\t\t\t\t\tname: 'list',\n\t\t\t\t\t\ttype: 'list',\n\t\t\t\t\t\tplaceholder: 'Select a team...',\n\t\t\t\t\t\ttypeOptions: {\n\t\t\t\t\t\t\tsearchListMethod: 'getTeams',\n\t\t\t\t\t\t\tsearchable: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'By ID',\n\t\t\t\t\t\tname: 'id',\n\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\tplaceholder: 'e.g., 61165b04-e4cc-4026-b43f-926b4e2a7182',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'By URL',\n\t\t\t\t\t\tname: 'url',\n\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\tplaceholder:\n\t\t\t\t\t\t\t'e.g., https://teams.microsoft.com/l/team/19%3A...groupId=your-team-id&tenantId=...',\n\t\t\t\t\t\textractValue: {\n\t\t\t\t\t\t\ttype: 'regex',\n\t\t\t\t\t\t\tregex: /groupId=([0-9a-fA-F-]{36})/,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tdisplayOptions: {\n\t\t\t\t\tshow: {\n\t\t\t\t\t\tevent: ['newChannel', 'newChannelMessage', 'newTeamMember'],\n\t\t\t\t\t\twatchAllTeams: [false],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Watch All Channels',\n\t\t\t\tname: 'watchAllChannels',\n\t\t\t\ttype: 'boolean',\n\t\t\t\tdefault: false,\n\t\t\t\tdescription: 'Whether to watch for the event in all the available channels',\n\t\t\t\tdisplayOptions: {\n\t\t\t\t\tshow: {\n\t\t\t\t\t\tevent: ['newChannelMessage'],\n\t\t\t\t\t\twatchAllTeams: [false],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Channel',\n\t\t\t\tname: 'channelId',\n\t\t\t\ttype: 'resourceLocator',\n\t\t\t\tdefault: {\n\t\t\t\t\tmode: 'list',\n\t\t\t\t\tvalue: '',\n\t\t\t\t},\n\t\t\t\trequired: true,\n\t\t\t\tdescription: 'Select a channel from the list, enter an ID or a URL',\n\t\t\t\tmodes: [\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'From List',\n\t\t\t\t\t\tname: 'list',\n\t\t\t\t\t\ttype: 'list',\n\t\t\t\t\t\tplaceholder: 'Select a channel...',\n\t\t\t\t\t\ttypeOptions: {\n\t\t\t\t\t\t\tsearchListMethod: 'getChannels',\n\t\t\t\t\t\t\tsearchable: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'By ID',\n\t\t\t\t\t\tname: 'id',\n\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\tplaceholder: 'e.g., 19:-xlxyqXNSCxpI1SDzgQ_L9ZvzSR26pgphq1BJ9y7QJE1@thread.tacv2',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'By URL',\n\t\t\t\t\t\tname: 'url',\n\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\tplaceholder: 'e.g., https://teams.microsoft.com/l/channel/19%3A...@thread.tacv2/...',\n\t\t\t\t\t\textractValue: {\n\t\t\t\t\t\t\ttype: 'regex',\n\t\t\t\t\t\t\tregex: /channel\\/([^\\/?]+)/,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tdisplayOptions: {\n\t\t\t\t\tshow: {\n\t\t\t\t\t\tevent: ['newChannelMessage'],\n\t\t\t\t\t\twatchAllTeams: [false],\n\t\t\t\t\t\twatchAllChannels: [false],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Watch All Chats',\n\t\t\t\tname: 'watchAllChats',\n\t\t\t\ttype: 'boolean',\n\t\t\t\tdefault: false,\n\t\t\t\tdescription: 'Whether to watch for the event in all the available chats',\n\t\t\t\tdisplayOptions: {\n\t\t\t\t\tshow: {\n\t\t\t\t\t\tevent: ['newChatMessage'],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Chat',\n\t\t\t\tname: 'chatId',\n\t\t\t\ttype: 'resourceLocator',\n\t\t\t\tdefault: {\n\t\t\t\t\tmode: 'list',\n\t\t\t\t\tvalue: '',\n\t\t\t\t},\n\t\t\t\trequired: true,\n\t\t\t\tdescription: 'Select a chat from the list, enter an ID or a URL',\n\t\t\t\tmodes: [\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'From List',\n\t\t\t\t\t\tname: 'list',\n\t\t\t\t\t\ttype: 'list',\n\t\t\t\t\t\tplaceholder: 'Select a chat...',\n\t\t\t\t\t\ttypeOptions: {\n\t\t\t\t\t\t\tsearchListMethod: 'getChats',\n\t\t\t\t\t\t\tsearchable: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'By ID',\n\t\t\t\t\t\tname: 'id',\n\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\tplaceholder: '19:7e2f1174-e8ee-4859-b8b1-a8d1cc63d276@unq.gbl.spaces',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'By URL',\n\t\t\t\t\t\tname: 'url',\n\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\tplaceholder: 'https://teams.microsoft.com/_#/conversations/CHAT_ID',\n\t\t\t\t\t\textractValue: {\n\t\t\t\t\t\t\ttype: 'regex',\n\t\t\t\t\t\t\tregex: /conversations\\/([^\\/?]+)/i,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tdisplayOptions: {\n\t\t\t\t\tshow: {\n\t\t\t\t\t\tevent: ['newChatMessage'],\n\t\t\t\t\t\twatchAllChats: [false],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t};\n\n\tmethods = {\n\t\tlistSearch,\n\t};\n\n\twebhookMethods = {\n\t\tdefault: {\n\t\t\tasync checkExists(this: IHookFunctions): Promise<boolean> {\n\t\t\t\tconst event = this.getNodeParameter('event', 0) as string;\n\t\t\t\tconst webhookUrl = this.getNodeWebhookUrl('default');\n\t\t\t\tconst webhookData = this.getWorkflowStaticData('node');\n\n\t\t\t\ttry {\n\t\t\t\t\tconst subscriptions = (await microsoftApiRequestAllItems.call(\n\t\t\t\t\t\tthis as unknown as ILoadOptionsFunctions,\n\t\t\t\t\t\t'value',\n\t\t\t\t\t\t'GET',\n\t\t\t\t\t\t'/v1.0/subscriptions',\n\t\t\t\t\t)) as SubscriptionResponse[];\n\n\t\t\t\t\tconst matchingSubscriptions = subscriptions.filter(\n\t\t\t\t\t\t(subscription) => subscription.notificationUrl === webhookUrl,\n\t\t\t\t\t);\n\n\t\t\t\t\tconst now = new Date();\n\t\t\t\t\tconst thresholdMs = 5 * 60 * 1000;\n\t\t\t\t\tconst validSubscriptions = matchingSubscriptions.filter((subscription) => {\n\t\t\t\t\t\tconst expiration = new Date(subscription.expirationDateTime);\n\t\t\t\t\t\treturn expiration.getTime() - now.getTime() > thresholdMs;\n\t\t\t\t\t});\n\n\t\t\t\t\tconst resourcePaths = await getResourcePath.call(this, event);\n\t\t\t\t\tconst requiredResources = Array.isArray(resourcePaths) ? resourcePaths : [resourcePaths];\n\n\t\t\t\t\tconst subscribedResources = validSubscriptions.map((sub) => sub.resource);\n\t\t\t\t\tconst allResourcesSubscribed = requiredResources.every((resource) =>\n\t\t\t\t\t\tsubscribedResources.includes(resource),\n\t\t\t\t\t);\n\n\t\t\t\t\tif (allResourcesSubscribed) {\n\t\t\t\t\t\twebhookData.subscriptionIds = validSubscriptions.map((sub) => sub.id);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn false;\n\t\t\t\t} catch (error) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tasync create(this: IHookFunctions): Promise<boolean> {\n\t\t\t\tconst event = this.getNodeParameter('event', 0) as string;\n\t\t\t\tconst webhookUrl = this.getNodeWebhookUrl('default');\n\t\t\t\tconst webhookData = this.getWorkflowStaticData('node');\n\n\t\t\t\tif (!webhookUrl || !webhookUrl.startsWith('https://')) {\n\t\t\t\t\tthrow new NodeApiError(this.getNode(), {\n\t\t\t\t\t\tmessage: 'Invalid Notification URL',\n\t\t\t\t\t\tdescription: `The webhook URL \"${webhookUrl}\" is invalid. Microsoft Graph requires an HTTPS URL.`,\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tconst resourcePaths = await getResourcePath.call(this, event);\n\t\t\t\tconst subscriptionIds: string[] = [];\n\n\t\t\t\tif (Array.isArray(resourcePaths)) {\n\t\t\t\t\tawait Promise.all(\n\t\t\t\t\t\tresourcePaths.map(async (resource) => {\n\t\t\t\t\t\t\tconst subscription = await createSubscription.call(this, webhookUrl, resource);\n\t\t\t\t\t\t\tsubscriptionIds.push(subscription.id);\n\t\t\t\t\t\t\treturn subscription;\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\n\t\t\t\t\twebhookData.subscriptionIds = subscriptionIds;\n\t\t\t\t} else {\n\t\t\t\t\tconst subscription = await createSubscription.call(this, webhookUrl, resourcePaths);\n\t\t\t\t\twebhookData.subscriptionIds = [subscription.id];\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\t\t\t},\n\n\t\t\tasync delete(this: IHookFunctions): Promise<boolean> {\n\t\t\t\tconst webhookData = this.getWorkflowStaticData('node');\n\t\t\t\tconst storedIds = webhookData.subscriptionIds as string[] | undefined;\n\n\t\t\t\tif (!Array.isArray(storedIds)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tawait Promise.all(\n\t\t\t\t\t\tstoredIds.map(async (subscriptionId) => {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tawait microsoftApiRequest.call(\n\t\t\t\t\t\t\t\t\tthis as unknown as IExecuteFunctions,\n\t\t\t\t\t\t\t\t\t'DELETE',\n\t\t\t\t\t\t\t\t\t`/v1.0/subscriptions/${subscriptionId}`,\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\t\t\tif ((error as JsonObject).httpStatusCode !== 404) {\n\t\t\t\t\t\t\t\t\tthrow error;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}),\n\t\t\t\t\t);\n\n\t\t\t\t\tdelete webhookData.subscriptionIds;\n\t\t\t\t\treturn true;\n\t\t\t\t} catch (error) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t};\n\n\tasync webhook(this: IWebhookFunctions): Promise<IWebhookResponseData> {\n\t\tconst req = this.getRequestObject();\n\t\tconst res = this.getResponseObject();\n\n\t\t// Handle Microsoft Graph validation request\n\t\tif (req.query.validationToken) {\n\t\t\tres.status(200).send(req.query.validationToken);\n\t\t\treturn { noWebhookResponse: true };\n\t\t}\n\n\t\tconst eventNotifications = req.body.value as WebhookNotification[];\n\t\tconst response: IWebhookResponseData = {\n\t\t\tworkflowData: eventNotifications.map((event) => [\n\t\t\t\t{\n\t\t\t\t\tjson: (event.resourceData as IDataObject) ?? event,\n\t\t\t\t},\n\t\t\t]),\n\t\t};\n\n\t\treturn response;\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAWA,0BAAkD;AAGlD,2BAAoD;AACpD,qBAA2B;AAC3B,uBAAiE;AAE1D,MAAM,sBAA2C;AAAA,EAAjD;AACN,uBAAoC;AAAA,MACnC,aAAa;AAAA,MACb,MAAM;AAAA,MACN,MAAM;AAAA,MACN,OAAO,CAAC,SAAS;AAAA,MACjB,SAAS;AAAA,MACT,aACC;AAAA,MACD,UAAU;AAAA,MACV,UAAU;AAAA,QACT,MAAM;AAAA,MACP;AAAA,MACA,aAAa;AAAA,QACZ;AAAA,UACC,MAAM;AAAA,UACN,UAAU;AAAA,QACX;AAAA,MACD;AAAA,MACA,QAAQ,CAAC;AAAA,MACT,SAAS,CAAC,wCAAoB,IAAI;AAAA,MAClC,UAAU;AAAA,QACT;AAAA,UACC,MAAM;AAAA,UACN,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,MAAM;AAAA,QACP;AAAA,MACD;AAAA,MACA,YAAY;AAAA,QACX;AAAA,UACC,aAAa;AAAA,UACb,MAAM;AAAA,UACN,MAAM;AAAA,UACN,SAAS;AAAA,UACT,SAAS;AAAA,YACR;AAAA,cACC,MAAM;AAAA,cACN,OAAO;AAAA,cACP,aAAa;AAAA,YACd;AAAA,YACA;AAAA,cACC,MAAM;AAAA,cACN,OAAO;AAAA,cACP,aAAa;AAAA,YACd;AAAA,YACA;AAAA,cACC,MAAM;AAAA,cACN,OAAO;AAAA,cACP,aAAa;AAAA,YACd;AAAA,YACA;AAAA,cACC,MAAM;AAAA,cACN,OAAO;AAAA,cACP,aAAa;AAAA,YACd;AAAA,YACA;AAAA,cACC,MAAM;AAAA,cACN,OAAO;AAAA,cACP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SAAS,GAAG;AAC9B,mBAAO;AAAA,UACR;AAEA,cAAI;AACH,kBAAM,QAAQ;AAAA,cACb,UAAU,IAAI,OAAO,mBAAmB;AACvC,oBAAI;AACH,wBAAM,qCAAoB;AAAA,oBACzB;AAAA,oBACA;AAAA,oBACA,uBAAuB,cAAc;AAAA,kBACtC;AAAA,gBACD,SAAS,OAAO;AACf,sBAAK,MAAqB,mBAAmB,KAAK;AACjD,0BAAM;AAAA,kBACP;AAAA,gBACD;AAAA,cACD,CAAC;AAAA,YACF;AAEA,mBAAO,YAAY;AACnB,mBAAO;AAAA,UACR,SAAS,OAAO;AACf,mBAAO;AAAA,UACR;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA;AAAA,EAEA,MAAM,UAAgE;AACrE,UAAM,MAAM,KAAK,iBAAiB;AAClC,UAAM,MAAM,KAAK,kBAAkB;AAGnC,QAAI,IAAI,MAAM,iBAAiB;AAC9B,UAAI,OAAO,GAAG,EAAE,KAAK,IAAI,MAAM,eAAe;AAC9C,aAAO,EAAE,mBAAmB,KAAK;AAAA,IAClC;AAEA,UAAM,qBAAqB,IAAI,KAAK;AACpC,UAAM,WAAiC;AAAA,MACtC,cAAc,mBAAmB,IAAI,CAAC,UAAU;AAAA,QAC/C;AAAA,UACC,MAAO,MAAM,gBAAgC;AAAA,QAC9C;AAAA,MACD,CAAC;AAAA,IACF;AAEA,WAAO;AAAA,EACR;AACD;","names":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node": "n8n-nodes-base.microsoftTeamsTrigger",
|
|
3
|
+
"nodeVersion": "1.0",
|
|
4
|
+
"codexVersion": "1.0",
|
|
5
|
+
"categories": ["Communication"],
|
|
6
|
+
"resources": {
|
|
7
|
+
"credentialDocumentation": [
|
|
8
|
+
{
|
|
9
|
+
"url": "https://docs.n8n.io/integrations/builtin/credentials/microsoft/"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"primaryDocumentation": [
|
|
13
|
+
{
|
|
14
|
+
"url": "https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.microsoftteamstrigger/"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var types_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(types_exports);
|
|
17
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../nodes/Microsoft/Teams/v2/helpers/types.ts"],"sourcesContent":["export interface TeamResponse {\n\tid: string;\n\tdisplayName: string;\n}\n\nexport interface ChannelResponse {\n\tid: string;\n\tdisplayName: string;\n}\n\nexport interface WebhookNotification {\n\tsubscriptionId: string;\n\tresource: string;\n\tresourceData: ResourceData;\n\ttenantId: string;\n\tsubscriptionExpirationDateTime: string;\n}\n\nexport interface ResourceData {\n\tid: string;\n\t[key: string]: unknown;\n}\n\nexport interface SubscriptionResponse {\n\tid: string;\n\texpirationDateTime: string;\n\tnotificationUrl: string;\n\tresource: string;\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var utils_trigger_exports = {};
|
|
20
|
+
__export(utils_trigger_exports, {
|
|
21
|
+
createSubscription: () => createSubscription,
|
|
22
|
+
fetchAllChannels: () => fetchAllChannels,
|
|
23
|
+
fetchAllTeams: () => fetchAllTeams,
|
|
24
|
+
getResourcePath: () => getResourcePath
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(utils_trigger_exports);
|
|
27
|
+
var import_n8n_workflow = require("n8n-workflow");
|
|
28
|
+
var import_transport = require("../transport");
|
|
29
|
+
async function fetchAllTeams() {
|
|
30
|
+
const { value: teams } = await import_transport.microsoftApiRequest.call(
|
|
31
|
+
this,
|
|
32
|
+
"GET",
|
|
33
|
+
"/v1.0/me/joinedTeams"
|
|
34
|
+
);
|
|
35
|
+
return teams;
|
|
36
|
+
}
|
|
37
|
+
async function fetchAllChannels(teamId) {
|
|
38
|
+
const { value: channels } = await import_transport.microsoftApiRequest.call(
|
|
39
|
+
this,
|
|
40
|
+
"GET",
|
|
41
|
+
`/v1.0/teams/${teamId}/channels`
|
|
42
|
+
);
|
|
43
|
+
return channels;
|
|
44
|
+
}
|
|
45
|
+
async function createSubscription(webhookUrl, resourcePath) {
|
|
46
|
+
const expirationTime = new Date(Date.now() + 4318 * 60 * 1e3).toISOString();
|
|
47
|
+
const body = {
|
|
48
|
+
changeType: "created",
|
|
49
|
+
notificationUrl: webhookUrl,
|
|
50
|
+
resource: resourcePath,
|
|
51
|
+
expirationDateTime: expirationTime,
|
|
52
|
+
latestSupportedTlsVersion: "v1_2",
|
|
53
|
+
lifecycleNotificationUrl: webhookUrl
|
|
54
|
+
};
|
|
55
|
+
const response = await import_transport.microsoftApiRequest.call(
|
|
56
|
+
this,
|
|
57
|
+
"POST",
|
|
58
|
+
"/v1.0/subscriptions",
|
|
59
|
+
body
|
|
60
|
+
);
|
|
61
|
+
return response;
|
|
62
|
+
}
|
|
63
|
+
async function getResourcePath(event) {
|
|
64
|
+
switch (event) {
|
|
65
|
+
case "newChat": {
|
|
66
|
+
return "/me/chats";
|
|
67
|
+
}
|
|
68
|
+
case "newChatMessage": {
|
|
69
|
+
const watchAllChats = this.getNodeParameter("watchAllChats", false, {
|
|
70
|
+
extractValue: true
|
|
71
|
+
});
|
|
72
|
+
if (watchAllChats) {
|
|
73
|
+
return "/me/chats/getAllMessages";
|
|
74
|
+
} else {
|
|
75
|
+
const chatId = this.getNodeParameter("chatId", void 0, { extractValue: true });
|
|
76
|
+
return `/chats/${decodeURIComponent(chatId)}/messages`;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
case "newChannel": {
|
|
80
|
+
const watchAllTeams = this.getNodeParameter("watchAllTeams", false, {
|
|
81
|
+
extractValue: true
|
|
82
|
+
});
|
|
83
|
+
if (watchAllTeams) {
|
|
84
|
+
const teams = await fetchAllTeams.call(this);
|
|
85
|
+
return teams.map((team) => `/teams/${team.id}/channels`);
|
|
86
|
+
} else {
|
|
87
|
+
const teamId = this.getNodeParameter("teamId", void 0, { extractValue: true });
|
|
88
|
+
return `/teams/${teamId}/channels`;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
case "newChannelMessage": {
|
|
92
|
+
const watchAllTeams = this.getNodeParameter("watchAllTeams", false, {
|
|
93
|
+
extractValue: true
|
|
94
|
+
});
|
|
95
|
+
if (watchAllTeams) {
|
|
96
|
+
const teams = await fetchAllTeams.call(this);
|
|
97
|
+
const teamChannels = await Promise.all(
|
|
98
|
+
teams.map(async (team) => {
|
|
99
|
+
const channels = await fetchAllChannels.call(this, team.id);
|
|
100
|
+
return channels.map((channel) => `/teams/${team.id}/channels/${channel.id}/messages`);
|
|
101
|
+
})
|
|
102
|
+
);
|
|
103
|
+
return teamChannels.flat();
|
|
104
|
+
} else {
|
|
105
|
+
const teamId = this.getNodeParameter("teamId", void 0, { extractValue: true });
|
|
106
|
+
const watchAllChannels = this.getNodeParameter("watchAllChannels", false, {
|
|
107
|
+
extractValue: true
|
|
108
|
+
});
|
|
109
|
+
if (watchAllChannels) {
|
|
110
|
+
const channels = await fetchAllChannels.call(this, teamId);
|
|
111
|
+
return channels.map((channel) => `/teams/${teamId}/channels/${channel.id}/messages`);
|
|
112
|
+
} else {
|
|
113
|
+
const channelId = this.getNodeParameter("channelId", void 0, {
|
|
114
|
+
extractValue: true
|
|
115
|
+
});
|
|
116
|
+
return `/teams/${teamId}/channels/${decodeURIComponent(channelId)}/messages`;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
case "newTeamMember": {
|
|
121
|
+
const watchAllTeams = this.getNodeParameter("watchAllTeams", false, {
|
|
122
|
+
extractValue: true
|
|
123
|
+
});
|
|
124
|
+
if (watchAllTeams) {
|
|
125
|
+
const teams = await fetchAllTeams.call(this);
|
|
126
|
+
return teams.map((team) => `/teams/${team.id}/members`);
|
|
127
|
+
} else {
|
|
128
|
+
const teamId = this.getNodeParameter("teamId", void 0, { extractValue: true });
|
|
129
|
+
return `/teams/${teamId}/members`;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
default: {
|
|
133
|
+
throw new import_n8n_workflow.NodeOperationError(this.getNode(), {
|
|
134
|
+
message: `Invalid event: ${event}`,
|
|
135
|
+
description: `The selected event "${event}" is not recognized.`
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
141
|
+
0 && (module.exports = {
|
|
142
|
+
createSubscription,
|
|
143
|
+
fetchAllChannels,
|
|
144
|
+
fetchAllTeams,
|
|
145
|
+
getResourcePath
|
|
146
|
+
});
|
|
147
|
+
//# sourceMappingURL=utils-trigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../nodes/Microsoft/Teams/v2/helpers/utils-trigger.ts"],"sourcesContent":["import type { IHookFunctions, IDataObject } from 'n8n-workflow';\nimport { NodeOperationError } from 'n8n-workflow';\n\nimport type { TeamResponse, ChannelResponse, SubscriptionResponse } from './types';\nimport { microsoftApiRequest } from '../transport';\n\nexport async function fetchAllTeams(this: IHookFunctions): Promise<TeamResponse[]> {\n\tconst { value: teams } = (await microsoftApiRequest.call(\n\t\tthis,\n\t\t'GET',\n\t\t'/v1.0/me/joinedTeams',\n\t)) as { value: TeamResponse[] };\n\treturn teams;\n}\n\nexport async function fetchAllChannels(\n\tthis: IHookFunctions,\n\tteamId: string,\n): Promise<ChannelResponse[]> {\n\tconst { value: channels } = (await microsoftApiRequest.call(\n\t\tthis,\n\t\t'GET',\n\t\t`/v1.0/teams/${teamId}/channels`,\n\t)) as { value: ChannelResponse[] };\n\treturn channels;\n}\n\nexport async function createSubscription(\n\tthis: IHookFunctions,\n\twebhookUrl: string,\n\tresourcePath: string,\n): Promise<SubscriptionResponse> {\n\tconst expirationTime = new Date(Date.now() + 4318 * 60 * 1000).toISOString();\n\tconst body: IDataObject = {\n\t\tchangeType: 'created',\n\t\tnotificationUrl: webhookUrl,\n\t\tresource: resourcePath,\n\t\texpirationDateTime: expirationTime,\n\t\tlatestSupportedTlsVersion: 'v1_2',\n\t\tlifecycleNotificationUrl: webhookUrl,\n\t};\n\n\tconst response = (await microsoftApiRequest.call(\n\t\tthis,\n\t\t'POST',\n\t\t'/v1.0/subscriptions',\n\t\tbody,\n\t)) as SubscriptionResponse;\n\n\treturn response;\n}\n\nexport async function getResourcePath(\n\tthis: IHookFunctions,\n\tevent: string,\n): Promise<string | string[]> {\n\tswitch (event) {\n\t\tcase 'newChat': {\n\t\t\treturn '/me/chats';\n\t\t}\n\n\t\tcase 'newChatMessage': {\n\t\t\tconst watchAllChats = this.getNodeParameter('watchAllChats', false, {\n\t\t\t\textractValue: true,\n\t\t\t}) as boolean;\n\n\t\t\tif (watchAllChats) {\n\t\t\t\treturn '/me/chats/getAllMessages';\n\t\t\t} else {\n\t\t\t\tconst chatId = this.getNodeParameter('chatId', undefined, { extractValue: true }) as string;\n\t\t\t\treturn `/chats/${decodeURIComponent(chatId)}/messages`;\n\t\t\t}\n\t\t}\n\n\t\tcase 'newChannel': {\n\t\t\tconst watchAllTeams = this.getNodeParameter('watchAllTeams', false, {\n\t\t\t\textractValue: true,\n\t\t\t}) as boolean;\n\n\t\t\tif (watchAllTeams) {\n\t\t\t\tconst teams = await fetchAllTeams.call(this);\n\t\t\t\treturn teams.map((team) => `/teams/${team.id}/channels`);\n\t\t\t} else {\n\t\t\t\tconst teamId = this.getNodeParameter('teamId', undefined, { extractValue: true }) as string;\n\t\t\t\treturn `/teams/${teamId}/channels`;\n\t\t\t}\n\t\t}\n\n\t\tcase 'newChannelMessage': {\n\t\t\tconst watchAllTeams = this.getNodeParameter('watchAllTeams', false, {\n\t\t\t\textractValue: true,\n\t\t\t}) as boolean;\n\n\t\t\tif (watchAllTeams) {\n\t\t\t\tconst teams = await fetchAllTeams.call(this);\n\t\t\t\tconst teamChannels = await Promise.all(\n\t\t\t\t\tteams.map(async (team) => {\n\t\t\t\t\t\tconst channels = await fetchAllChannels.call(this, team.id);\n\t\t\t\t\t\treturn channels.map((channel) => `/teams/${team.id}/channels/${channel.id}/messages`);\n\t\t\t\t\t}),\n\t\t\t\t);\n\t\t\t\treturn teamChannels.flat();\n\t\t\t} else {\n\t\t\t\tconst teamId = this.getNodeParameter('teamId', undefined, { extractValue: true }) as string;\n\t\t\t\tconst watchAllChannels = this.getNodeParameter('watchAllChannels', false, {\n\t\t\t\t\textractValue: true,\n\t\t\t\t}) as boolean;\n\n\t\t\t\tif (watchAllChannels) {\n\t\t\t\t\tconst channels = await fetchAllChannels.call(this, teamId);\n\t\t\t\t\treturn channels.map((channel) => `/teams/${teamId}/channels/${channel.id}/messages`);\n\t\t\t\t} else {\n\t\t\t\t\tconst channelId = this.getNodeParameter('channelId', undefined, {\n\t\t\t\t\t\textractValue: true,\n\t\t\t\t\t}) as string;\n\t\t\t\t\treturn `/teams/${teamId}/channels/${decodeURIComponent(channelId)}/messages`;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tcase 'newTeamMember': {\n\t\t\tconst watchAllTeams = this.getNodeParameter('watchAllTeams', false, {\n\t\t\t\textractValue: true,\n\t\t\t}) as boolean;\n\n\t\t\tif (watchAllTeams) {\n\t\t\t\tconst teams = await fetchAllTeams.call(this);\n\t\t\t\treturn teams.map((team) => `/teams/${team.id}/members`);\n\t\t\t} else {\n\t\t\t\tconst teamId = this.getNodeParameter('teamId', undefined, { extractValue: true }) as string;\n\t\t\t\treturn `/teams/${teamId}/members`;\n\t\t\t}\n\t\t}\n\n\t\tdefault: {\n\t\t\tthrow new NodeOperationError(this.getNode(), {\n\t\t\t\tmessage: `Invalid event: ${event}`,\n\t\t\t\tdescription: `The selected event \"${event}\" is not recognized.`,\n\t\t\t});\n\t\t}\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,0BAAmC;AA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Ae;AAClB,cAAM,QAAQ,MAAM,cAAc,KAAK,IAAI;AAC3C,eAAO,MAAM,IAAI,CAAC,SAAS,UAAU,KAAK,EAAE,UAAU;AAAA,MACvD,OAAO;AACN,cAAM,SAAS,KAAK,iBAAiB,UAAU,QAAW,EAAE,cAAc,KAAK,CAAC;AAChF,eAAO,UAAU,MAAM;AAAA,MACxB;AAAA,IACD;AAAA,IAEA,SAAS;AACR,YAAM,IAAI,uCAAmB,KAAK,QAAQ,GAAG;AAAA,QAC5C,SAAS,kBAAkB,KAAK;AAAA,QAChC,aAAa,uBAAuB,KAAK;AAAA,MAC1C,CAAC;AAAA,IACF;AAAA,EACD;AACD;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../nodes/Microsoft/Teams/v2/transport/index.ts"],"sourcesContent":["import type {\n\tIExecuteFunctions,\n\tILoadOptionsFunctions,\n\tIDataObject,\n\tJsonObject,\n\tIHttpRequestMethods,\n\tIRequestOptions,\n} from 'n8n-workflow';\nimport { NodeApiError } from 'n8n-workflow';\n\nimport { capitalize } from '../../../../../utils/utilities';\n\nexport async function microsoftApiRequest(\n\tthis: IExecuteFunctions | ILoadOptionsFunctions,\n\tmethod: IHttpRequestMethods,\n\tresource: string,\n\tbody: any = {},\n\tqs: IDataObject = {},\n\turi?: string,\n\theaders: IDataObject = {},\n): Promise<any> {\n\tconst options: IRequestOptions = {\n\t\theaders: {\n\t\t\t'Content-Type': 'application/json',\n\t\t},\n\t\tmethod,\n\t\tbody,\n\t\tqs,\n\t\turi: uri || `https://graph.microsoft.com${resource}`,\n\t\tjson: true,\n\t};\n\ttry {\n\t\tif (Object.keys(headers).length !== 0) {\n\t\t\toptions.headers = Object.assign({}, options.headers, headers);\n\t\t}\n\t\treturn await this.helpers.requestOAuth2.call(this, 'microsoftTeamsOAuth2Api', options);\n\t} catch (error) {\n\t\tconst errorOptions: IDataObject = {};\n\t\tif (error.error?.error) {\n\t\t\tconst httpCode = error.statusCode;\n\t\t\terror = error.error.error;\n\t\t\terror.statusCode = httpCode;\n\t\t\terrorOptions.message = error.message;\n\n\t\t\tif (error.code === 'NotFound' && error.message === 'Resource not found') {\n\t\t\t\tconst nodeResource = capitalize(this.getNodeParameter('resource', 0) as string);\n\t\t\t\terrorOptions.message = `${nodeResource} not found`;\n\t\t\t}\n\t\t}\n\t\tthrow new NodeApiError(this.getNode(), error as JsonObject, errorOptions);\n\t}\n}\n\nexport async function microsoftApiRequestAllItems(\n\tthis: IExecuteFunctions | ILoadOptionsFunctions,\n\tpropertyName: string,\n\tmethod: IHttpRequestMethods,\n\tendpoint: string,\n\
|
|
1
|
+
{"version":3,"sources":["../../../../../../nodes/Microsoft/Teams/v2/transport/index.ts"],"sourcesContent":["import type {\n\tIExecuteFunctions,\n\tILoadOptionsFunctions,\n\tIDataObject,\n\tJsonObject,\n\tIHttpRequestMethods,\n\tIRequestOptions,\n\tIHookFunctions,\n} from 'n8n-workflow';\nimport { NodeApiError } from 'n8n-workflow';\n\nimport { capitalize } from '../../../../../utils/utilities';\n\nexport async function microsoftApiRequest(\n\tthis: IExecuteFunctions | ILoadOptionsFunctions | IHookFunctions,\n\tmethod: IHttpRequestMethods,\n\tresource: string,\n\tbody: any = {},\n\tqs: IDataObject = {},\n\turi?: string,\n\theaders: IDataObject = {},\n): Promise<any> {\n\tconst options: IRequestOptions = {\n\t\theaders: {\n\t\t\t'Content-Type': 'application/json',\n\t\t},\n\t\tmethod,\n\t\tbody,\n\t\tqs,\n\t\turi: uri || `https://graph.microsoft.com${resource}`,\n\t\tjson: true,\n\t};\n\ttry {\n\t\tif (Object.keys(headers).length !== 0) {\n\t\t\toptions.headers = Object.assign({}, options.headers, headers);\n\t\t}\n\t\treturn await this.helpers.requestOAuth2.call(this, 'microsoftTeamsOAuth2Api', options);\n\t} catch (error) {\n\t\tconst errorOptions: IDataObject = {};\n\t\tif (error.error?.error) {\n\t\t\tconst httpCode = error.statusCode;\n\t\t\terror = error.error.error;\n\t\t\terror.statusCode = httpCode;\n\t\t\terrorOptions.message = error.message;\n\n\t\t\tif (error.code === 'NotFound' && error.message === 'Resource not found') {\n\t\t\t\tconst nodeResource = capitalize(this.getNodeParameter('resource', 0) as string);\n\t\t\t\terrorOptions.message = `${nodeResource} not found`;\n\t\t\t}\n\t\t}\n\t\tthrow new NodeApiError(this.getNode(), error as JsonObject, errorOptions);\n\t}\n}\n\nexport async function microsoftApiRequestAllItems(\n\tthis: IExecuteFunctions | ILoadOptionsFunctions,\n\tpropertyName: string,\n\tmethod: IHttpRequestMethods,\n\tendpoint: string,\n\tbody: any = {},\n\tquery: IDataObject = {},\n): Promise<any> {\n\tconst returnData: IDataObject[] = [];\n\n\tlet responseData;\n\tlet uri: string | undefined;\n\n\tdo {\n\t\tresponseData = await microsoftApiRequest.call(this, method, endpoint, body, query, uri);\n\t\turi = responseData['@odata.nextLink'];\n\t\treturnData.push.apply(returnData, responseData[propertyName] as IDataObject[]);\n\t\tconst limit = query.limit as number | undefined;\n\t\tif (limit && limit <= returnData.length) {\n\t\t\treturn returnData;\n\t\t}\n\t} while (responseData['@odata.nextLink'] !== undefined);\n\n\treturn returnData;\n}\n\nexport async function microsoftApiRequestAllItemsSkip(\n\tthis: IExecuteFunctions | ILoadOptionsFunctions,\n\tpropertyName: string,\n\tmethod: IHttpRequestMethods,\n\tendpoint: string,\n\tbody: any = {},\n\tquery: IDataObject = {},\n): Promise<any> {\n\tconst returnData: IDataObject[] = [];\n\n\tlet responseData;\n\tquery.$top = 100;\n\tquery.$skip = 0;\n\n\tdo {\n\t\tresponseData = await microsoftApiRequest.call(this, method, endpoint, body, query);\n\t\tquery.$skip += query.$top;\n\t\treturnData.push.apply(returnData, responseData[propertyName] as IDataObject[]);\n\t} while (responseData.value.length !== 0);\n\n\treturn returnData;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,0BAA6B;AAE7B,uBAA2B;AAE3B,eAAsB,oB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a,iBAAiB,MAAM;AAE7C,SAAO;AACR;AAEA,eAAsB,gCAErB,cACA,QACA,UACA,OAAY,CAAC,GACb,QAAqB,CAAC,GACP;AACf,QAAM,aAA4B,CAAC;AAEnC,MAAI;AACJ,QAAM,OAAO;AACb,QAAM,QAAQ;AAEd,KAAG;AACF,mBAAe,MAAM,oBAAoB,KAAK,MAAM,QAAQ,UAAU,MAAM,KAAK;AACjF,UAAM,SAAS,MAAM;AACrB,eAAW,KAAK,MAAM,YAAY,aAAa,YAAY,CAAkB;AAAA,EAC9E,SAAS,aAAa,MAAM,WAAW;AAEvC,SAAO;AACR;","names":[]}
|
|
@@ -15,15 +15,31 @@
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
-
"
|
|
19
|
-
"type": "
|
|
20
|
-
"
|
|
21
|
-
"
|
|
18
|
+
"completedDateTime": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"dateTime": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"timeZone": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
}
|
|
22
27
|
}
|
|
23
28
|
},
|
|
24
29
|
"createdDateTime": {
|
|
25
30
|
"type": "string"
|
|
26
31
|
},
|
|
32
|
+
"dueDateTime": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"properties": {
|
|
35
|
+
"dateTime": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"timeZone": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
27
43
|
"hasAttachments": {
|
|
28
44
|
"type": "boolean"
|
|
29
45
|
},
|
|
@@ -46,5 +62,5 @@
|
|
|
46
62
|
"type": "string"
|
|
47
63
|
}
|
|
48
64
|
},
|
|
49
|
-
"version":
|
|
65
|
+
"version": 2
|
|
50
66
|
}
|
|
@@ -1,15 +1,162 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "object",
|
|
3
3
|
"properties": {
|
|
4
|
+
"archived": {
|
|
5
|
+
"type": "boolean"
|
|
6
|
+
},
|
|
7
|
+
"created_by": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"id": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"object": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"created_time": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"description": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"properties": {
|
|
26
|
+
"annotations": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"properties": {
|
|
29
|
+
"bold": {
|
|
30
|
+
"type": "boolean"
|
|
31
|
+
},
|
|
32
|
+
"code": {
|
|
33
|
+
"type": "boolean"
|
|
34
|
+
},
|
|
35
|
+
"color": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"italic": {
|
|
39
|
+
"type": "boolean"
|
|
40
|
+
},
|
|
41
|
+
"strikethrough": {
|
|
42
|
+
"type": "boolean"
|
|
43
|
+
},
|
|
44
|
+
"underline": {
|
|
45
|
+
"type": "boolean"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"plain_text": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"text": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"properties": {
|
|
55
|
+
"content": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"type": {
|
|
61
|
+
"type": "string"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
4
66
|
"id": {
|
|
5
67
|
"type": "string"
|
|
6
68
|
},
|
|
7
|
-
"
|
|
69
|
+
"in_trash": {
|
|
70
|
+
"type": "boolean"
|
|
71
|
+
},
|
|
72
|
+
"is_inline": {
|
|
73
|
+
"type": "boolean"
|
|
74
|
+
},
|
|
75
|
+
"last_edited_by": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"properties": {
|
|
78
|
+
"id": {
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"object": {
|
|
82
|
+
"type": "string"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"last_edited_time": {
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"object": {
|
|
8
90
|
"type": "string"
|
|
9
91
|
},
|
|
92
|
+
"parent": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"properties": {
|
|
95
|
+
"type": {
|
|
96
|
+
"type": "string"
|
|
97
|
+
},
|
|
98
|
+
"workspace": {
|
|
99
|
+
"type": "boolean"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"request_id": {
|
|
104
|
+
"type": "string"
|
|
105
|
+
},
|
|
106
|
+
"title": {
|
|
107
|
+
"type": "array",
|
|
108
|
+
"items": {
|
|
109
|
+
"type": "object",
|
|
110
|
+
"properties": {
|
|
111
|
+
"annotations": {
|
|
112
|
+
"type": "object",
|
|
113
|
+
"properties": {
|
|
114
|
+
"bold": {
|
|
115
|
+
"type": "boolean"
|
|
116
|
+
},
|
|
117
|
+
"code": {
|
|
118
|
+
"type": "boolean"
|
|
119
|
+
},
|
|
120
|
+
"color": {
|
|
121
|
+
"type": "string"
|
|
122
|
+
},
|
|
123
|
+
"italic": {
|
|
124
|
+
"type": "boolean"
|
|
125
|
+
},
|
|
126
|
+
"strikethrough": {
|
|
127
|
+
"type": "boolean"
|
|
128
|
+
},
|
|
129
|
+
"underline": {
|
|
130
|
+
"type": "boolean"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"href": {
|
|
135
|
+
"type": "null"
|
|
136
|
+
},
|
|
137
|
+
"plain_text": {
|
|
138
|
+
"type": "string"
|
|
139
|
+
},
|
|
140
|
+
"text": {
|
|
141
|
+
"type": "object",
|
|
142
|
+
"properties": {
|
|
143
|
+
"content": {
|
|
144
|
+
"type": "string"
|
|
145
|
+
},
|
|
146
|
+
"link": {
|
|
147
|
+
"type": "null"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"type": {
|
|
152
|
+
"type": "string"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
},
|
|
10
157
|
"url": {
|
|
11
158
|
"type": "string"
|
|
12
159
|
}
|
|
13
160
|
},
|
|
14
|
-
"version":
|
|
161
|
+
"version": 2
|
|
15
162
|
}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "object",
|
|
3
3
|
"properties": {
|
|
4
|
+
"contact_address_complete": {
|
|
5
|
+
"type": "string"
|
|
6
|
+
},
|
|
7
|
+
"display_name": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
4
10
|
"id": {
|
|
5
11
|
"type": "integer"
|
|
12
|
+
},
|
|
13
|
+
"is_company": {
|
|
14
|
+
"type": "boolean"
|
|
6
15
|
}
|
|
7
16
|
},
|
|
8
|
-
"version":
|
|
17
|
+
"version": 2
|
|
9
18
|
}
|
|
@@ -1,9 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "object",
|
|
3
3
|
"properties": {
|
|
4
|
+
"__last_update": {
|
|
5
|
+
"type": "string"
|
|
6
|
+
},
|
|
7
|
+
"active": {
|
|
8
|
+
"type": "boolean"
|
|
9
|
+
},
|
|
10
|
+
"contact_fullname": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"contact_lastname": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"country": {
|
|
17
|
+
"type": "boolean"
|
|
18
|
+
},
|
|
19
|
+
"create_date": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"display_name": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
4
25
|
"id": {
|
|
5
26
|
"type": "integer"
|
|
27
|
+
},
|
|
28
|
+
"is_blacklisted": {
|
|
29
|
+
"type": "boolean"
|
|
30
|
+
},
|
|
31
|
+
"lost_reason": {
|
|
32
|
+
"type": "boolean"
|
|
33
|
+
},
|
|
34
|
+
"message_attachment_count": {
|
|
35
|
+
"type": "integer"
|
|
36
|
+
},
|
|
37
|
+
"message_ids": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"items": {
|
|
40
|
+
"type": "integer"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"street4": {
|
|
44
|
+
"type": "boolean"
|
|
45
|
+
},
|
|
46
|
+
"tag_ids": {
|
|
47
|
+
"type": "array",
|
|
48
|
+
"items": {
|
|
49
|
+
"type": "integer"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"type": {
|
|
53
|
+
"type": "string"
|
|
6
54
|
}
|
|
7
55
|
},
|
|
8
|
-
"version":
|
|
56
|
+
"version": 3
|
|
9
57
|
}
|
|
@@ -13,34 +13,6 @@
|
|
|
13
13
|
"message": {
|
|
14
14
|
"type": "object",
|
|
15
15
|
"properties": {
|
|
16
|
-
"annotations": {
|
|
17
|
-
"type": "array",
|
|
18
|
-
"items": {
|
|
19
|
-
"type": "object",
|
|
20
|
-
"properties": {
|
|
21
|
-
"type": {
|
|
22
|
-
"type": "string"
|
|
23
|
-
},
|
|
24
|
-
"url_citation": {
|
|
25
|
-
"type": "object",
|
|
26
|
-
"properties": {
|
|
27
|
-
"end_index": {
|
|
28
|
-
"type": "integer"
|
|
29
|
-
},
|
|
30
|
-
"start_index": {
|
|
31
|
-
"type": "integer"
|
|
32
|
-
},
|
|
33
|
-
"title": {
|
|
34
|
-
"type": "string"
|
|
35
|
-
},
|
|
36
|
-
"url": {
|
|
37
|
-
"type": "string"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
16
|
"content": {
|
|
45
17
|
"type": "string"
|
|
46
18
|
},
|
|
@@ -53,5 +25,5 @@
|
|
|
53
25
|
}
|
|
54
26
|
}
|
|
55
27
|
},
|
|
56
|
-
"version":
|
|
28
|
+
"version": 2
|
|
57
29
|
}
|