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,252 @@
|
|
|
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_exports = {};
|
|
20
|
+
__export(utils_exports, {
|
|
21
|
+
downloadFilePostReceive: () => downloadFilePostReceive,
|
|
22
|
+
handleErrorPostReceive: () => handleErrorPostReceive,
|
|
23
|
+
itemColumnsPreSend: () => itemColumnsPreSend,
|
|
24
|
+
itemGetAllFieldsPreSend: () => itemGetAllFieldsPreSend,
|
|
25
|
+
simplifyItemPostReceive: () => simplifyItemPostReceive,
|
|
26
|
+
simplifyListPostReceive: () => simplifyListPostReceive,
|
|
27
|
+
uploadFilePreSend: () => uploadFilePreSend
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(utils_exports);
|
|
30
|
+
var import_n8n_workflow = require("n8n-workflow");
|
|
31
|
+
var import_transport = require("../transport");
|
|
32
|
+
async function simplifyItemPostReceive(items, _response) {
|
|
33
|
+
if (items.length === 0) {
|
|
34
|
+
return items;
|
|
35
|
+
}
|
|
36
|
+
const simplify = this.getNodeParameter("simplify");
|
|
37
|
+
if (simplify) {
|
|
38
|
+
for (const item of items) {
|
|
39
|
+
delete item.json["@odata.context"];
|
|
40
|
+
delete item.json["@odata.etag"];
|
|
41
|
+
delete item.json["fields@odata.navigationLink"];
|
|
42
|
+
delete item.json.fields?.["@odata.etag"];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return items;
|
|
46
|
+
}
|
|
47
|
+
async function simplifyListPostReceive(items, _response) {
|
|
48
|
+
if (items.length === 0) {
|
|
49
|
+
return items;
|
|
50
|
+
}
|
|
51
|
+
const simplify = this.getNodeParameter("simplify");
|
|
52
|
+
if (simplify) {
|
|
53
|
+
for (const item of items) {
|
|
54
|
+
delete item.json["@odata.context"];
|
|
55
|
+
delete item.json["@odata.etag"];
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return items;
|
|
59
|
+
}
|
|
60
|
+
async function downloadFilePostReceive(_items, response) {
|
|
61
|
+
let fileName;
|
|
62
|
+
if (response.headers["content-disposition"]) {
|
|
63
|
+
let fileNameMatch = /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(
|
|
64
|
+
response.headers["content-disposition"]
|
|
65
|
+
);
|
|
66
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : void 0;
|
|
67
|
+
if (fileName) {
|
|
68
|
+
fileName = decodeURIComponent(fileName);
|
|
69
|
+
} else {
|
|
70
|
+
fileNameMatch = /filename="?([^"]*?)"?(;|$)/g.exec(
|
|
71
|
+
response.headers["content-disposition"]
|
|
72
|
+
);
|
|
73
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : void 0;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
const newItem = {
|
|
77
|
+
json: {},
|
|
78
|
+
binary: {
|
|
79
|
+
data: await this.helpers.prepareBinaryData(
|
|
80
|
+
response.body,
|
|
81
|
+
fileName,
|
|
82
|
+
response.headers["content-type"]
|
|
83
|
+
)
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
return [newItem];
|
|
87
|
+
}
|
|
88
|
+
async function uploadFilePreSend(requestOptions) {
|
|
89
|
+
const binaryProperty = this.getNodeParameter("fileContents");
|
|
90
|
+
this.helpers.assertBinaryData(binaryProperty);
|
|
91
|
+
const binaryDataBuffer = await this.helpers.getBinaryDataBuffer(binaryProperty);
|
|
92
|
+
requestOptions.body = binaryDataBuffer;
|
|
93
|
+
return requestOptions;
|
|
94
|
+
}
|
|
95
|
+
async function itemGetAllFieldsPreSend(requestOptions) {
|
|
96
|
+
const fields = this.getNodeParameter("options.fields");
|
|
97
|
+
requestOptions.qs ??= {};
|
|
98
|
+
if (fields.some((x) => x === "fields")) {
|
|
99
|
+
requestOptions.qs.$expand = "fields";
|
|
100
|
+
}
|
|
101
|
+
requestOptions.qs.$select = fields.map((x) => x);
|
|
102
|
+
return requestOptions;
|
|
103
|
+
}
|
|
104
|
+
async function itemColumnsPreSend(requestOptions) {
|
|
105
|
+
const mapperValue = this.getNodeParameter("columns");
|
|
106
|
+
const operation = this.getNodeParameter("operation");
|
|
107
|
+
if (["upsert", "update"].includes(operation) && mapperValue.matchingColumns?.length > 0) {
|
|
108
|
+
if (!mapperValue.matchingColumns.includes("id")) {
|
|
109
|
+
const site = this.getNodeParameter("site", void 0, { extractValue: true });
|
|
110
|
+
const list = this.getNodeParameter("list", void 0, { extractValue: true });
|
|
111
|
+
const response = await import_transport.microsoftSharePointApiRequest.call(
|
|
112
|
+
this,
|
|
113
|
+
"GET",
|
|
114
|
+
`/sites/${site}/lists/${list}/items`,
|
|
115
|
+
{},
|
|
116
|
+
{
|
|
117
|
+
$filter: mapperValue.matchingColumns.map((x) => `fields/${x} eq '${mapperValue.value[x]}'`).join(" and")
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
Prefer: "HonorNonIndexedQueriesWarningMayFailRandomly"
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
if (response.value?.length === 1) {
|
|
124
|
+
mapperValue.matchingColumns.push("id");
|
|
125
|
+
mapperValue.value ??= {};
|
|
126
|
+
mapperValue.value.id = response.value[0].id;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
if (operation === "upsert") {
|
|
130
|
+
if (mapperValue.matchingColumns.includes("id")) {
|
|
131
|
+
if (!mapperValue.value?.id) {
|
|
132
|
+
throw new import_n8n_workflow.NodeOperationError(
|
|
133
|
+
this.getNode(),
|
|
134
|
+
"The column(s) don't match any existing item",
|
|
135
|
+
{
|
|
136
|
+
description: "Double-check the value(s) for the columns to match and try again"
|
|
137
|
+
}
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
requestOptions.url += "/" + mapperValue.value.id;
|
|
141
|
+
delete mapperValue.value.id;
|
|
142
|
+
requestOptions.method = "PATCH";
|
|
143
|
+
}
|
|
144
|
+
} else if (operation === "update") {
|
|
145
|
+
if (mapperValue.matchingColumns.includes("id") && mapperValue.value?.id) {
|
|
146
|
+
requestOptions.url += "/" + mapperValue.value.id;
|
|
147
|
+
delete mapperValue.value.id;
|
|
148
|
+
} else {
|
|
149
|
+
throw new import_n8n_workflow.NodeOperationError(
|
|
150
|
+
this.getNode(),
|
|
151
|
+
"The column(s) don't match any existing item",
|
|
152
|
+
{
|
|
153
|
+
description: "Double-check the value(s) for the columns to match and try again"
|
|
154
|
+
}
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
const fields = {};
|
|
160
|
+
for (const [key, value] of Object.entries(mapperValue.value ?? {})) {
|
|
161
|
+
if (mapperValue.schema.find((x) => x.id === key)?.type === "url") {
|
|
162
|
+
fields[key] = {
|
|
163
|
+
Description: value,
|
|
164
|
+
Url: value
|
|
165
|
+
};
|
|
166
|
+
} else {
|
|
167
|
+
fields[key] = value;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
requestOptions.body ??= {};
|
|
171
|
+
requestOptions.body.fields = fields;
|
|
172
|
+
return requestOptions;
|
|
173
|
+
}
|
|
174
|
+
async function handleErrorPostReceive(data, response) {
|
|
175
|
+
if (String(response.statusCode).startsWith("4") || String(response.statusCode).startsWith("5")) {
|
|
176
|
+
const resource = this.getNodeParameter("resource");
|
|
177
|
+
const operation = this.getNodeParameter("operation");
|
|
178
|
+
if (resource === "file" && operation === "download" && Buffer.isBuffer(response.body)) {
|
|
179
|
+
response.body = (0, import_n8n_workflow.jsonParse)(response.body.toString());
|
|
180
|
+
}
|
|
181
|
+
const error = response.body?.error ?? {};
|
|
182
|
+
if (resource === "file") {
|
|
183
|
+
if (operation === "download") {
|
|
184
|
+
} else if (operation === "update") {
|
|
185
|
+
} else if (operation === "upload") {
|
|
186
|
+
}
|
|
187
|
+
} else if (resource === "item") {
|
|
188
|
+
if (operation === "create") {
|
|
189
|
+
if (error.code === "invalidRequest") {
|
|
190
|
+
if (error.message === "One or more fields with unique constraints already has the provided value.") {
|
|
191
|
+
throw new import_n8n_workflow.NodeApiError(this.getNode(), response, {
|
|
192
|
+
message: "One or more fields with unique constraints already has the provided value",
|
|
193
|
+
description: "Double-check the value(s) in 'Values to Send' and try again"
|
|
194
|
+
});
|
|
195
|
+
} else {
|
|
196
|
+
throw new import_n8n_workflow.NodeApiError(this.getNode(), response, {
|
|
197
|
+
message: error.message,
|
|
198
|
+
description: "Double-check the value(s) in 'Values to Send' and try again"
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
} else if (operation === "delete") {
|
|
203
|
+
} else if (operation === "get") {
|
|
204
|
+
} else if (operation === "getAll") {
|
|
205
|
+
} else if (operation === "update") {
|
|
206
|
+
if (error.code === "invalidRequest") {
|
|
207
|
+
throw new import_n8n_workflow.NodeApiError(this.getNode(), response, {
|
|
208
|
+
message: error.message,
|
|
209
|
+
description: "Double-check the value(s) in 'Values to Update' and try again"
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
} else if (operation === "upsert") {
|
|
213
|
+
if (error.code === "invalidRequest") {
|
|
214
|
+
throw new import_n8n_workflow.NodeApiError(this.getNode(), response, {
|
|
215
|
+
message: error.message,
|
|
216
|
+
description: "Double-check the value(s) in 'Values to Send' and try again"
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
} else if (resource === "list") {
|
|
221
|
+
if (operation === "get") {
|
|
222
|
+
} else if (operation === "getAll") {
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
if (error.code === "itemNotFound") {
|
|
226
|
+
if (error.message.includes("list item")) {
|
|
227
|
+
throw new import_n8n_workflow.NodeApiError(this.getNode(), response, {
|
|
228
|
+
message: "The required item doesn't match any existing one",
|
|
229
|
+
description: "Double-check the value in the parameter 'Item' and try again"
|
|
230
|
+
});
|
|
231
|
+
} else if (error.message.includes("list")) {
|
|
232
|
+
throw new import_n8n_workflow.NodeApiError(this.getNode(), response, {
|
|
233
|
+
message: "The required list doesn't match any existing one",
|
|
234
|
+
description: "Double-check the value in the parameter 'List' and try again"
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
throw new import_n8n_workflow.NodeApiError(this.getNode(), response);
|
|
239
|
+
}
|
|
240
|
+
return data;
|
|
241
|
+
}
|
|
242
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
243
|
+
0 && (module.exports = {
|
|
244
|
+
downloadFilePostReceive,
|
|
245
|
+
handleErrorPostReceive,
|
|
246
|
+
itemColumnsPreSend,
|
|
247
|
+
itemGetAllFieldsPreSend,
|
|
248
|
+
simplifyItemPostReceive,
|
|
249
|
+
simplifyListPostReceive,
|
|
250
|
+
uploadFilePreSend
|
|
251
|
+
});
|
|
252
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../nodes/Microsoft/SharePoint/helpers/utils.ts"],"sourcesContent":["import type {\n\tIDataObject,\n\tIExecuteSingleFunctions,\n\tIHttpRequestOptions,\n\tIN8nHttpFullResponse,\n\tINodeExecutionData,\n\tJsonObject,\n\tResourceMapperValue,\n} from 'n8n-workflow';\nimport { jsonParse, NodeApiError, NodeOperationError } from 'n8n-workflow';\n\nimport type { IErrorResponse } from './interfaces';\nimport { microsoftSharePointApiRequest } from '../transport';\n\nexport async function simplifyItemPostReceive(\n\tthis: IExecuteSingleFunctions,\n\titems: INodeExecutionData[],\n\t_response: IN8nHttpFullResponse,\n): Promise<INodeExecutionData[]> {\n\tif (items.length === 0) {\n\t\treturn items;\n\t}\n\n\tconst simplify = this.getNodeParameter('simplify') as boolean;\n\tif (simplify) {\n\t\tfor (const item of items) {\n\t\t\tdelete item.json['@odata.context'];\n\t\t\tdelete item.json['@odata.etag'];\n\t\t\tdelete item.json['fields@odata.navigationLink'];\n\t\t\tdelete (item.json.fields as IDataObject)?.['@odata.etag'];\n\t\t}\n\t}\n\n\treturn items;\n}\n\nexport async function simplifyListPostReceive(\n\tthis: IExecuteSingleFunctions,\n\titems: INodeExecutionData[],\n\t_response: IN8nHttpFullResponse,\n): Promise<INodeExecutionData[]> {\n\tif (items.length === 0) {\n\t\treturn items;\n\t}\n\n\tconst simplify = this.getNodeParameter('simplify') as boolean;\n\tif (simplify) {\n\t\tfor (const item of items) {\n\t\t\tdelete item.json['@odata.context'];\n\t\t\tdelete item.json['@odata.etag'];\n\t\t}\n\t}\n\n\treturn items;\n}\n\nexport async function downloadFilePostReceive(\n\tthis: IExecuteSingleFunctions,\n\t_items: INodeExecutionData[],\n\tresponse: IN8nHttpFullResponse,\n): Promise<INodeExecutionData[]> {\n\tlet fileName: string | undefined;\n\tif (response.headers['content-disposition']) {\n\t\tlet fileNameMatch = /filename\\*=(?:(\\\\?['\"])(.*?)\\1|(?:[^\\s]+'.*?')?([^;\\n]*))/g.exec(\n\t\t\tresponse.headers['content-disposition'] as string,\n\t\t);\n\t\tfileName =\n\t\t\tfileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;\n\t\tif (fileName) {\n\t\t\tfileName = decodeURIComponent(fileName);\n\t\t} else {\n\t\t\tfileNameMatch = /filename=\"?([^\"]*?)\"?(;|$)/g.exec(\n\t\t\t\tresponse.headers['content-disposition'] as string,\n\t\t\t);\n\t\t\tfileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;\n\t\t}\n\t}\n\n\tconst newItem: INodeExecutionData = {\n\t\tjson: {},\n\t\tbinary: {\n\t\t\tdata: await this.helpers.prepareBinaryData(\n\t\t\t\tresponse.body as Buffer,\n\t\t\t\tfileName,\n\t\t\t\tresponse.headers['content-type'] as string,\n\t\t\t),\n\t\t},\n\t};\n\n\treturn [newItem];\n}\n\nexport async function uploadFilePreSend(\n\tthis: IExecuteSingleFunctions,\n\trequestOptions: IHttpRequestOptions,\n): Promise<IHttpRequestOptions> {\n\tconst binaryProperty = this.getNodeParameter('fileContents') as string;\n\tthis.helpers.assertBinaryData(binaryProperty);\n\tconst binaryDataBuffer = await this.helpers.getBinaryDataBuffer(binaryProperty);\n\trequestOptions.body = binaryDataBuffer;\n\treturn requestOptions;\n}\n\nexport async function itemGetAllFieldsPreSend(\n\tthis: IExecuteSingleFunctions,\n\trequestOptions: IHttpRequestOptions,\n): Promise<IHttpRequestOptions> {\n\tconst fields = this.getNodeParameter('options.fields') as string[];\n\trequestOptions.qs ??= {};\n\tif (fields.some((x) => x === 'fields')) {\n\t\trequestOptions.qs.$expand = 'fields';\n\t}\n\trequestOptions.qs.$select = fields.map((x) => x);\n\treturn requestOptions;\n}\n\nexport async function itemColumnsPreSend(\n\tthis: IExecuteSingleFunctions,\n\trequestOptions: IHttpRequestOptions,\n): Promise<IHttpRequestOptions> {\n\tconst mapperValue = this.getNodeParameter('columns') as ResourceMapperValue;\n\tconst operation = this.getNodeParameter('operation') as string;\n\n\tif (['upsert', 'update'].includes(operation) && mapperValue.matchingColumns?.length > 0) {\n\t\tif (!mapperValue.matchingColumns.includes('id')) {\n\t\t\tconst site = this.getNodeParameter('site', undefined, { extractValue: true }) as string;\n\t\t\tconst list = this.getNodeParameter('list', undefined, { extractValue: true }) as string;\n\n\t\t\tconst response = await microsoftSharePointApiRequest.call(\n\t\t\t\tthis,\n\t\t\t\t'GET',\n\t\t\t\t`/sites/${site}/lists/${list}/items`,\n\t\t\t\t{},\n\t\t\t\t{\n\t\t\t\t\t$filter: mapperValue.matchingColumns\n\t\t\t\t\t\t.map((x) => `fields/${x} eq '${mapperValue.value![x]}'`)\n\t\t\t\t\t\t.join(' and'),\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tPrefer: 'HonorNonIndexedQueriesWarningMayFailRandomly',\n\t\t\t\t},\n\t\t\t);\n\t\t\tif (response.value?.length === 1) {\n\t\t\t\tmapperValue.matchingColumns.push('id');\n\t\t\t\tmapperValue.value ??= {};\n\t\t\t\tmapperValue.value.id = response.value[0].id;\n\t\t\t}\n\t\t}\n\n\t\tif (operation === 'upsert') {\n\t\t\tif (mapperValue.matchingColumns.includes('id')) {\n\t\t\t\tif (!mapperValue.value?.id) {\n\t\t\t\t\tthrow new NodeOperationError(\n\t\t\t\t\t\tthis.getNode(),\n\t\t\t\t\t\t\"The column(s) don't match any existing item\",\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdescription: 'Double-check the value(s) for the columns to match and try again',\n\t\t\t\t\t\t},\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\trequestOptions.url += '/' + mapperValue.value.id;\n\t\t\t\tdelete mapperValue.value.id;\n\t\t\t\trequestOptions.method = 'PATCH';\n\t\t\t}\n\t\t} else if (operation === 'update') {\n\t\t\tif (mapperValue.matchingColumns.includes('id') && mapperValue.value?.id) {\n\t\t\t\trequestOptions.url += '/' + mapperValue.value.id;\n\t\t\t\tdelete mapperValue.value.id;\n\t\t\t} else {\n\t\t\t\tthrow new NodeOperationError(\n\t\t\t\t\tthis.getNode(),\n\t\t\t\t\t\"The column(s) don't match any existing item\",\n\t\t\t\t\t{\n\t\t\t\t\t\tdescription: 'Double-check the value(s) for the columns to match and try again',\n\t\t\t\t\t},\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\n\tconst fields = {} as IDataObject;\n\tfor (const [key, value] of Object.entries(mapperValue.value ?? {})) {\n\t\tif (mapperValue.schema.find((x) => x.id === key)?.type === 'url') {\n\t\t\tfields[key] = {\n\t\t\t\tDescription: value,\n\t\t\t\tUrl: value,\n\t\t\t};\n\t\t} else {\n\t\t\tfields[key] = value;\n\t\t}\n\t}\n\trequestOptions.body ??= {};\n\t(requestOptions.body as IDataObject).fields = fields;\n\n\treturn requestOptions;\n}\n\nexport async function handleErrorPostReceive(\n\tthis: IExecuteSingleFunctions,\n\tdata: INodeExecutionData[],\n\tresponse: IN8nHttpFullResponse,\n): Promise<INodeExecutionData[]> {\n\tif (String(response.statusCode).startsWith('4') || String(response.statusCode).startsWith('5')) {\n\t\tconst resource = this.getNodeParameter('resource') as string;\n\t\tconst operation = this.getNodeParameter('operation') as string;\n\n\t\tif (resource === 'file' && operation === 'download' && Buffer.isBuffer(response.body)) {\n\t\t\tresponse.body = jsonParse((response.body as Buffer).toString());\n\t\t}\n\t\tconst error = (response.body as IErrorResponse)?.error ?? {};\n\n\t\tif (resource === 'file') {\n\t\t\tif (operation === 'download') {\n\t\t\t} else if (operation === 'update') {\n\t\t\t} else if (operation === 'upload') {\n\t\t\t}\n\t\t} else if (resource === 'item') {\n\t\t\tif (operation === 'create') {\n\t\t\t\tif (error.code === 'invalidRequest') {\n\t\t\t\t\tif (\n\t\t\t\t\t\terror.message ===\n\t\t\t\t\t\t'One or more fields with unique constraints already has the provided value.'\n\t\t\t\t\t) {\n\t\t\t\t\t\tthrow new NodeApiError(this.getNode(), response as unknown as JsonObject, {\n\t\t\t\t\t\t\tmessage: 'One or more fields with unique constraints already has the provided value',\n\t\t\t\t\t\t\tdescription: \"Double-check the value(s) in 'Values to Send' and try again\",\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new NodeApiError(this.getNode(), response as unknown as JsonObject, {\n\t\t\t\t\t\t\tmessage: error.message,\n\t\t\t\t\t\t\tdescription: \"Double-check the value(s) in 'Values to Send' and try again\",\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (operation === 'delete') {\n\t\t\t} else if (operation === 'get') {\n\t\t\t} else if (operation === 'getAll') {\n\t\t\t} else if (operation === 'update') {\n\t\t\t\tif (error.code === 'invalidRequest') {\n\t\t\t\t\tthrow new NodeApiError(this.getNode(), response as unknown as JsonObject, {\n\t\t\t\t\t\tmessage: error.message,\n\t\t\t\t\t\tdescription: \"Double-check the value(s) in 'Values to Update' and try again\",\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t} else if (operation === 'upsert') {\n\t\t\t\tif (error.code === 'invalidRequest') {\n\t\t\t\t\tthrow new NodeApiError(this.getNode(), response as unknown as JsonObject, {\n\t\t\t\t\t\tmessage: error.message,\n\t\t\t\t\t\tdescription: \"Double-check the value(s) in 'Values to Send' and try again\",\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (resource === 'list') {\n\t\t\tif (operation === 'get') {\n\t\t\t} else if (operation === 'getAll') {\n\t\t\t}\n\t\t}\n\n\t\tif (error.code === 'itemNotFound') {\n\t\t\tif (error.message.includes('list item')) {\n\t\t\t\tthrow new NodeApiError(this.getNode(), response as unknown as JsonObject, {\n\t\t\t\t\tmessage: \"The required item doesn't match any existing one\",\n\t\t\t\t\tdescription: \"Double-check the value in the parameter 'Item' and try again\",\n\t\t\t\t});\n\t\t\t} else if (error.message.includes('list')) {\n\t\t\t\tthrow new NodeApiError(this.getNode(), response as unknown as JsonObject, {\n\t\t\t\t\tmessage: \"The required list doesn't match any existing one\",\n\t\t\t\t\tdescription: \"Double-check the value in the parameter 'List' and try again\",\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tthrow new NodeApiError(this.getNode(), response as unknown as JsonObject);\n\t}\n\n\treturn data;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,0BAA4D;AAG5D,uBAA8C;AAE9C,eAAsB,wBAErB,OACA,WACgC;AAChC,MAAI,MAAM,WAAW,GAAG;AACvB,WAAO;AAAA,EACR;AAEA,QAAM,WAAW,KAAK,iBAAiB,UAAU;AACjD,MAAI,UAAU;AACb,eAAW,QAAQ,OAAO;AACzB,aAAO,KAAK,KAAK,gBAAgB;AACjC,aAAO,KAAK,KAAK,aAAa;AAC9B,aAAO,KAAK,KAAK,6BAA6B;AAC9C,aAAQ,KAAK,KAAK,SAAyB,aAAa;AAAA,IACzD;AAAA,EACD;AAEA,SAAO;AACR;AAEA,eAAsB,wBAErB,OACA,WACgC;AAChC,MAAI,MAAM,WAAW,GAAG;AACvB,WAAO;AAAA,EACR;AAEA,QAAM,WAAW,KAAK,iBAAiB,UAAU;AACjD,MAAI,UAAU;AACb,eAAW,QAAQ,OAAO;AACzB,aAAO,KAAK,KAAK,gBAAgB;AACjC,aAAO,KAAK,KAAK,aAAa;AAAA,IAC/B;AAAA,EACD;AAEA,SAAO;AACR;AAEA,eAAsB,wBAErB,QACA,UACgC;AAChC,MAA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|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var methods_exports = {};
|
|
30
|
+
__export(methods_exports, {
|
|
31
|
+
listSearch: () => listSearch,
|
|
32
|
+
resourceMapping: () => resourceMapping
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(methods_exports);
|
|
35
|
+
var listSearch = __toESM(require("./listSearch"));
|
|
36
|
+
var resourceMapping = __toESM(require("./resourceMapping"));
|
|
37
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
+
0 && (module.exports = {
|
|
39
|
+
listSearch,
|
|
40
|
+
resourceMapping
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../nodes/Microsoft/SharePoint/methods/index.ts"],"sourcesContent":["export * as listSearch from './listSearch';\nexport * as resourceMapping from './resourceMapping';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAA4B;AAC5B,sBAAiC;","names":[]}
|
|
@@ -0,0 +1,222 @@
|
|
|
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 listSearch_exports = {};
|
|
20
|
+
__export(listSearch_exports, {
|
|
21
|
+
getFiles: () => getFiles,
|
|
22
|
+
getFolders: () => getFolders,
|
|
23
|
+
getItems: () => getItems,
|
|
24
|
+
getLists: () => getLists,
|
|
25
|
+
getSites: () => getSites
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(listSearch_exports);
|
|
28
|
+
var import_transport = require("../transport");
|
|
29
|
+
async function getFiles(filter, paginationToken) {
|
|
30
|
+
const site = this.getNodeParameter("site", void 0, { extractValue: true });
|
|
31
|
+
const folder = this.getNodeParameter("folder", void 0, { extractValue: true });
|
|
32
|
+
let response;
|
|
33
|
+
if (paginationToken) {
|
|
34
|
+
response = await import_transport.microsoftSharePointApiRequest.call(
|
|
35
|
+
this,
|
|
36
|
+
"GET",
|
|
37
|
+
`/sites/${site}/drive/items/${folder}/children`,
|
|
38
|
+
{},
|
|
39
|
+
void 0,
|
|
40
|
+
void 0,
|
|
41
|
+
paginationToken
|
|
42
|
+
);
|
|
43
|
+
} else {
|
|
44
|
+
const qs = {
|
|
45
|
+
$select: "id,name,file"
|
|
46
|
+
};
|
|
47
|
+
if (filter) {
|
|
48
|
+
qs.$filter = `name eq '${filter}'`;
|
|
49
|
+
}
|
|
50
|
+
response = await import_transport.microsoftSharePointApiRequest.call(
|
|
51
|
+
this,
|
|
52
|
+
"GET",
|
|
53
|
+
`/sites/${site}/drive/items/${folder}/children`,
|
|
54
|
+
{},
|
|
55
|
+
qs
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
const items = response.value;
|
|
59
|
+
const results = items.filter((x) => x.file).map((g) => ({
|
|
60
|
+
name: g.name,
|
|
61
|
+
value: g.id
|
|
62
|
+
})).sort(
|
|
63
|
+
(a, b) => a.name.localeCompare(b.name, void 0, { numeric: true, sensitivity: "base" })
|
|
64
|
+
);
|
|
65
|
+
return { results, paginationToken: response["@odata.nextLink"] };
|
|
66
|
+
}
|
|
67
|
+
async function getFolders(filter, paginationToken) {
|
|
68
|
+
const site = this.getNodeParameter("site", void 0, { extractValue: true });
|
|
69
|
+
let response;
|
|
70
|
+
if (paginationToken) {
|
|
71
|
+
response = await import_transport.microsoftSharePointApiRequest.call(
|
|
72
|
+
this,
|
|
73
|
+
"GET",
|
|
74
|
+
`/sites/${site}/drive/items`,
|
|
75
|
+
{},
|
|
76
|
+
void 0,
|
|
77
|
+
void 0,
|
|
78
|
+
paginationToken
|
|
79
|
+
);
|
|
80
|
+
} else {
|
|
81
|
+
const qs = {
|
|
82
|
+
$select: "id,name,folder",
|
|
83
|
+
// Folder filter not supported, but filter is still required
|
|
84
|
+
// https://learn.microsoft.com/en-us/onedrive/developer/rest-api/concepts/filtering-results?view=odsp-graph-online#filterable-properties
|
|
85
|
+
$filter: "folder ne null"
|
|
86
|
+
};
|
|
87
|
+
if (filter) {
|
|
88
|
+
qs.$filter = `name eq '${filter}'`;
|
|
89
|
+
}
|
|
90
|
+
response = await import_transport.microsoftSharePointApiRequest.call(
|
|
91
|
+
this,
|
|
92
|
+
"GET",
|
|
93
|
+
`/sites/${site}/drive/items`,
|
|
94
|
+
{},
|
|
95
|
+
qs
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
const items = response.value;
|
|
99
|
+
const results = items.filter((x) => x.folder).map((g) => ({
|
|
100
|
+
name: g.name,
|
|
101
|
+
value: g.id
|
|
102
|
+
})).sort(
|
|
103
|
+
(a, b) => a.name.localeCompare(b.name, void 0, { numeric: true, sensitivity: "base" })
|
|
104
|
+
);
|
|
105
|
+
return { results, paginationToken: response["@odata.nextLink"] };
|
|
106
|
+
}
|
|
107
|
+
async function getItems(filter, paginationToken) {
|
|
108
|
+
const site = this.getNodeParameter("site", void 0, { extractValue: true });
|
|
109
|
+
const list = this.getNodeParameter("list", void 0, { extractValue: true });
|
|
110
|
+
let response;
|
|
111
|
+
if (paginationToken) {
|
|
112
|
+
response = await import_transport.microsoftSharePointApiRequest.call(
|
|
113
|
+
this,
|
|
114
|
+
"GET",
|
|
115
|
+
`/sites/${site}/lists/${list}/items`,
|
|
116
|
+
{},
|
|
117
|
+
void 0,
|
|
118
|
+
void 0,
|
|
119
|
+
paginationToken
|
|
120
|
+
);
|
|
121
|
+
} else {
|
|
122
|
+
const qs = {
|
|
123
|
+
$expand: "fields(select=Title)",
|
|
124
|
+
$select: "id,fields"
|
|
125
|
+
};
|
|
126
|
+
if (filter) {
|
|
127
|
+
qs.$filter = `fields/Title eq '${filter}'`;
|
|
128
|
+
}
|
|
129
|
+
response = await import_transport.microsoftSharePointApiRequest.call(
|
|
130
|
+
this,
|
|
131
|
+
"GET",
|
|
132
|
+
`/sites/${site}/lists/${list}/items`,
|
|
133
|
+
{},
|
|
134
|
+
qs
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
const items = response.value;
|
|
138
|
+
const results = items.map((g) => ({
|
|
139
|
+
name: g.fields.Title ?? g.id,
|
|
140
|
+
value: g.id
|
|
141
|
+
})).sort(
|
|
142
|
+
(a, b) => a.name.localeCompare(b.name, void 0, { numeric: true, sensitivity: "base" })
|
|
143
|
+
);
|
|
144
|
+
return { results, paginationToken: response["@odata.nextLink"] };
|
|
145
|
+
}
|
|
146
|
+
async function getLists(filter, paginationToken) {
|
|
147
|
+
const site = this.getNodeParameter("site", void 0, { extractValue: true });
|
|
148
|
+
let response;
|
|
149
|
+
if (paginationToken) {
|
|
150
|
+
response = await import_transport.microsoftSharePointApiRequest.call(
|
|
151
|
+
this,
|
|
152
|
+
"GET",
|
|
153
|
+
`/sites/${site}/lists`,
|
|
154
|
+
{},
|
|
155
|
+
void 0,
|
|
156
|
+
void 0,
|
|
157
|
+
paginationToken
|
|
158
|
+
);
|
|
159
|
+
} else {
|
|
160
|
+
const qs = {
|
|
161
|
+
$select: "id,displayName"
|
|
162
|
+
};
|
|
163
|
+
if (filter) {
|
|
164
|
+
qs.$filter = `displayName eq '${filter}'`;
|
|
165
|
+
}
|
|
166
|
+
response = await import_transport.microsoftSharePointApiRequest.call(
|
|
167
|
+
this,
|
|
168
|
+
"GET",
|
|
169
|
+
`/sites/${site}/lists`,
|
|
170
|
+
{},
|
|
171
|
+
qs
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
const lists = response.value;
|
|
175
|
+
const results = lists.map((g) => ({
|
|
176
|
+
name: g.displayName,
|
|
177
|
+
value: g.id
|
|
178
|
+
})).sort(
|
|
179
|
+
(a, b) => a.name.localeCompare(b.name, void 0, { numeric: true, sensitivity: "base" })
|
|
180
|
+
);
|
|
181
|
+
return { results, paginationToken: response["@odata.nextLink"] };
|
|
182
|
+
}
|
|
183
|
+
async function getSites(filter, paginationToken) {
|
|
184
|
+
let response;
|
|
185
|
+
if (paginationToken) {
|
|
186
|
+
response = await import_transport.microsoftSharePointApiRequest.call(
|
|
187
|
+
this,
|
|
188
|
+
"GET",
|
|
189
|
+
"/sites",
|
|
190
|
+
{},
|
|
191
|
+
void 0,
|
|
192
|
+
void 0,
|
|
193
|
+
paginationToken
|
|
194
|
+
);
|
|
195
|
+
} else {
|
|
196
|
+
const qs = {
|
|
197
|
+
$select: "id,title",
|
|
198
|
+
$search: "*"
|
|
199
|
+
};
|
|
200
|
+
if (filter) {
|
|
201
|
+
qs.$search = filter;
|
|
202
|
+
}
|
|
203
|
+
response = await import_transport.microsoftSharePointApiRequest.call(this, "GET", "/sites", {}, qs);
|
|
204
|
+
}
|
|
205
|
+
const sites = response.value;
|
|
206
|
+
const results = sites.map((g) => ({
|
|
207
|
+
name: g.title,
|
|
208
|
+
value: g.id
|
|
209
|
+
})).sort(
|
|
210
|
+
(a, b) => a.name.localeCompare(b.name, void 0, { numeric: true, sensitivity: "base" })
|
|
211
|
+
);
|
|
212
|
+
return { results, paginationToken: response["@odata.nextLink"] };
|
|
213
|
+
}
|
|
214
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
215
|
+
0 && (module.exports = {
|
|
216
|
+
getFiles,
|
|
217
|
+
getFolders,
|
|
218
|
+
getItems,
|
|
219
|
+
getLists,
|
|
220
|
+
getSites
|
|
221
|
+
});
|
|
222
|
+
//# sourceMappingURL=listSearch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../nodes/Microsoft/SharePoint/methods/listSearch.ts"],"sourcesContent":["import type {\n\tIDataObject,\n\tILoadOptionsFunctions,\n\tINodeListSearchItems,\n\tINodeListSearchResult,\n} from 'n8n-workflow';\n\nimport type { IDriveItem, IList, IListItem, ISite } from '../helpers/interfaces';\nimport { microsoftSharePointApiRequest } from '../transport';\n\nexport async function getFiles(\n\tthis: ILoadOptionsFunctions,\n\tfilter?: string,\n\tpaginationToken?: string,\n): Promise<INodeListSearchResult> {\n\tconst site = this.getNodeParameter('site', undefined, { extractValue: true }) as string;\n\tconst folder = this.getNodeParameter('folder', undefined, { extractValue: true }) as string;\n\n\tlet response: any;\n\tif (paginationToken) {\n\t\tresponse = await microsoftSharePointApiRequest.call(\n\t\t\tthis,\n\t\t\t'GET',\n\t\t\t`/sites/${site}/drive/items/${folder}/children`,\n\t\t\t{},\n\t\t\tundefined,\n\t\t\tundefined,\n\t\t\tpaginationToken,\n\t\t);\n\t} else {\n\t\t// File filter not supported\n\t\t// https://learn.microsoft.com/en-us/onedrive/developer/rest-api/concepts/filtering-results?view=odsp-graph-online#filterable-properties\n\t\tconst qs: IDataObject = {\n\t\t\t$select: 'id,name,file',\n\t\t};\n\t\tif (filter) {\n\t\t\tqs.$filter = `name eq '${filter}'`;\n\t\t}\n\t\tresponse = await microsoftSharePointApiRequest.call(\n\t\t\tthis,\n\t\t\t'GET',\n\t\t\t`/sites/${site}/drive/items/${folder}/children`,\n\t\t\t{},\n\t\t\tqs,\n\t\t);\n\t}\n\n\tconst items: IDriveItem[] = response.value;\n\n\tconst results: INodeListSearchItems[] = items\n\t\t.filter((x) => x.file)\n\t\t.map((g) => ({\n\t\t\tname: g.name,\n\t\t\tvalue: g.id,\n\t\t}))\n\t\t.sort((a, b) =>\n\t\t\ta.name.localeCompare(b.name, undefined, { numeric: true, sensitivity: 'base' }),\n\t\t);\n\n\treturn { results, paginationToken: response['@odata.nextLink'] };\n}\n\nexport async function getFolders(\n\tthis: ILoadOptionsFunctions,\n\tfilter?: string,\n\tpaginationToken?: string,\n): Promise<INodeListSearchResult> {\n\tconst site = this.getNodeParameter('site', undefined, { extractValue: true }) as string;\n\n\tlet response: any;\n\tif (paginationToken) {\n\t\tresponse = await microsoftSharePointApiRequest.call(\n\t\t\tthis,\n\t\t\t'GET',\n\t\t\t`/sites/${site}/drive/items`,\n\t\t\t{},\n\t\t\tundefined,\n\t\t\tundefined,\n\t\t\tpaginationToken,\n\t\t);\n\t} else {\n\t\tconst qs: IDataObject = {\n\t\t\t$select: 'id,name,folder',\n\t\t\t// Folder filter not supported, but filter is still required\n\t\t\t// https://learn.microsoft.com/en-us/onedrive/developer/rest-api/concepts/filtering-results?view=odsp-graph-online#filterable-properties\n\t\t\t$filter: 'folder ne null',\n\t\t};\n\t\tif (filter) {\n\t\t\tqs.$filter = `name eq '${filter}'`;\n\t\t}\n\t\tresponse = await microsoftSharePointApiRequest.call(\n\t\t\tthis,\n\t\t\t'GET',\n\t\t\t`/sites/${site}/drive/items`,\n\t\t\t{},\n\t\t\tqs,\n\t\t);\n\t}\n\n\tconst items: IDriveItem[] = response.value;\n\n\tconst results: INodeListSearchItems[] = items\n\t\t.filter((x) => x.folder)\n\t\t.map((g) => ({\n\t\t\tname: g.name,\n\t\t\tvalue: g.id,\n\t\t}))\n\t\t.sort((a, b) =>\n\t\t\ta.name.localeCompare(b.name, undefined, { numeric: true, sensitivity: 'base' }),\n\t\t);\n\n\treturn { results, paginationToken: response['@odata.nextLink'] };\n}\n\nexport async function getItems(\n\tthis: ILoadOptionsFunctions,\n\tfilter?: string,\n\tpaginationToken?: string,\n): Promise<INodeListSearchResult> {\n\tconst site = this.getNodeParameter('site', undefined, { extractValue: true }) as string;\n\tconst list = this.getNodeParameter('list', undefined, { extractValue: true }) as string;\n\n\tlet response: any;\n\tif (paginationToken) {\n\t\tresponse = await microsoftSharePointApiRequest.call(\n\t\t\tthis,\n\t\t\t'GET',\n\t\t\t`/sites/${site}/lists/${list}/items`,\n\t\t\t{},\n\t\t\tundefined,\n\t\t\tundefined,\n\t\t\tpaginationToken,\n\t\t);\n\t} else {\n\t\tconst qs: IDataObject = {\n\t\t\t$expand: 'fields(select=Title)',\n\t\t\t$select: 'id,fields',\n\t\t};\n\t\tif (filter) {\n\t\t\tqs.$filter = `fields/Title eq '${filter}'`;\n\t\t}\n\t\tresponse = await microsoftSharePointApiRequest.call(\n\t\t\tthis,\n\t\t\t'GET',\n\t\t\t`/sites/${site}/lists/${list}/items`,\n\t\t\t{},\n\t\t\tqs,\n\t\t);\n\t}\n\n\tconst items: IListItem[] = response.value;\n\n\tconst results: INodeListSearchItems[] = items\n\t\t.map((g) => ({\n\t\t\tname: g.fields.Title ?? g.id,\n\t\t\tvalue: g.id,\n\t\t}))\n\t\t.sort((a, b) =>\n\t\t\ta.name.localeCompare(b.name, undefined, { numeric: true, sensitivity: 'base' }),\n\t\t);\n\n\treturn { results, paginationToken: response['@odata.nextLink'] };\n}\n\nexport async function getLists(\n\tthis: ILoadOptionsFunctions,\n\tfilter?: string,\n\tpaginationToken?: string,\n): Promise<INodeListSearchResult> {\n\tconst site = this.getNodeParameter('site', undefined, { extractValue: true }) as string;\n\n\tlet response: any;\n\tif (paginationToken) {\n\t\tresponse = await microsoftSharePointApiRequest.call(\n\t\t\tthis,\n\t\t\t'GET',\n\t\t\t`/sites/${site}/lists`,\n\t\t\t{},\n\t\t\tundefined,\n\t\t\tundefined,\n\t\t\tpaginationToken,\n\t\t);\n\t} else {\n\t\tconst qs: IDataObject = {\n\t\t\t$select: 'id,displayName',\n\t\t};\n\t\tif (filter) {\n\t\t\tqs.$filter = `displayName eq '${filter}'`;\n\t\t}\n\t\tresponse = await microsoftSharePointApiRequest.call(\n\t\t\tthis,\n\t\t\t'GET',\n\t\t\t`/sites/${site}/lists`,\n\t\t\t{},\n\t\t\tqs,\n\t\t);\n\t}\n\n\tconst lists: IList[] = response.value;\n\n\tconst results: INodeListSearchItems[] = lists\n\t\t.map((g) => ({\n\t\t\tname: g.displayName,\n\t\t\tvalue: g.id,\n\t\t}))\n\t\t.sort((a, b) =>\n\t\t\ta.name.localeCompare(b.name, undefined, { numeric: true, sensitivity: 'base' }),\n\t\t);\n\n\treturn { results, paginationToken: response['@odata.nextLink'] };\n}\n\nexport async function getSites(\n\tthis: ILoadOptionsFunctions,\n\tfilter?: string,\n\tpaginationToken?: string,\n): Promise<INodeListSearchResult> {\n\tlet response: any;\n\tif (paginationToken) {\n\t\tresponse = await microsoftSharePointApiRequest.call(\n\t\t\tthis,\n\t\t\t'GET',\n\t\t\t'/sites',\n\t\t\t{},\n\t\t\tundefined,\n\t\t\tundefined,\n\t\t\tpaginationToken,\n\t\t);\n\t} else {\n\t\tconst qs: IDataObject = {\n\t\t\t$select: 'id,title',\n\t\t\t$search: '*',\n\t\t};\n\t\tif (filter) {\n\t\t\tqs.$search = filter;\n\t\t}\n\t\tresponse = await microsoftSharePointApiRequest.call(this, 'GET', '/sites', {}, qs);\n\t}\n\n\tconst sites: ISite[] = response.value;\n\n\tconst results: INodeListSearchItems[] = sites\n\t\t.map((g) => ({\n\t\t\tname: g.title,\n\t\t\tvalue: g.id,\n\t\t}))\n\t\t.sort((a, b) =>\n\t\t\ta.name.localeCompare(b.name, undefined, { numeric: true, sensitivity: 'base' }),\n\t\t);\n\n\treturn { results, paginationToken: response['@odata.nextLink'] };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,uBAA8C;AAE9C,eAAsB,SAErB,QACA,iBACiC;AACjC,QAAM,OAAO,KAAK,iBAAiB,QAAQ,QAAW,EAAE,cAAc,KAAK,CAAC;AAC5E,QAAM,SAAS,KAAK,iBAAiB,UAAU,QAAW,EAAE,cAAc,KAAK,CAAC;AAEhF,MAAI;AACJ,MAAI,iBAAiB;AACpB,eAAW,MAAM,+CAA8B;AAAA,MAC9C;AAAA,MACA;AAAA,MACA,UAAU,IAAI,gBAAgB,MAAM;AAAA,MACpC,CAAC;AAAA,MACD;AAAA,MACA;AAAA,MACA;AAAA,IACD;AAAA,EACD,OAAO;AAGN,UAAM,KAA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