From 0fdeba52bb171111d311f6d8bbb1b348ad08ebc9 Mon Sep 17 00:00:00 2001 From: Shireen Missi <94372015+ShireenMissi@users.noreply.github.com> Date: Wed, 28 May 2025 16:52:39 +0100 Subject: [PATCH] fix(Microsoft SharePoint Node): Add back the support for cred only node (#15806) --- ...icrosoftSharePointOAuth2Api.credentials.ts | 13 +++- .../credentials/icons/microsoftSharePoint.svg | 59 +++++++++++++++++++ 2 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 packages/nodes-base/credentials/icons/microsoftSharePoint.svg diff --git a/packages/nodes-base/credentials/MicrosoftSharePointOAuth2Api.credentials.ts b/packages/nodes-base/credentials/MicrosoftSharePointOAuth2Api.credentials.ts index 76b1d3fedc..09abbe2ecd 100644 --- a/packages/nodes-base/credentials/MicrosoftSharePointOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/MicrosoftSharePointOAuth2Api.credentials.ts @@ -1,14 +1,25 @@ -import type { ICredentialType, INodeProperties } from 'n8n-workflow'; +import type { Icon, ICredentialType, INodeProperties } from 'n8n-workflow'; export class MicrosoftSharePointOAuth2Api implements ICredentialType { name = 'microsoftSharePointOAuth2Api'; extends = ['microsoftOAuth2Api']; + icon: Icon = { + light: 'file:icons/microsoftSharePoint.svg', + dark: 'file:icons/microsoftSharePoint.svg', + }; + displayName = 'Microsoft SharePoint OAuth2 API'; documentationUrl = 'microsoft'; + httpRequestNode = { + name: 'Microsoft SharePoint', + docsUrl: 'https://learn.microsoft.com/en-us/sharepoint/dev/apis/sharepoint-rest-graph', + apiBaseUrlPlaceholder: 'https://{subdomain}.sharepoint.com/_api/v2.0/', + }; + properties: INodeProperties[] = [ { displayName: 'Scope', diff --git a/packages/nodes-base/credentials/icons/microsoftSharePoint.svg b/packages/nodes-base/credentials/icons/microsoftSharePoint.svg new file mode 100644 index 0000000000..8baca49105 --- /dev/null +++ b/packages/nodes-base/credentials/icons/microsoftSharePoint.svg @@ -0,0 +1,59 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + + +