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 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + + +