Skip to content

Commit

Permalink
feat(Microsoft Outlook Node): Node overhaul (#4449)
Browse files Browse the repository at this point in the history
[N8N-4995](https://linear.app/n8n/issue/N8N-4995)

---------

Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
  • Loading branch information
michael-radency and gandreini authored Sep 15, 2023
1 parent bb215bd commit 556a613
Show file tree
Hide file tree
Showing 98 changed files with 11,215 additions and 1,202 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
import type { ICredentialType, INodeProperties } from 'n8n-workflow';

const scopes = [
'openid',
'offline_access',
'Contacts.Read',
'Contacts.ReadWrite',
'Calendars.Read',
'Calendars.Read.Shared',
'Calendars.ReadWrite',
'Mail.ReadWrite',
'Mail.ReadWrite.Shared',
'Mail.Send',
'Mail.Send.Shared',
'MailboxSettings.Read',
];

export class MicrosoftOutlookOAuth2Api implements ICredentialType {
name = 'microsoftOutlookOAuth2Api';

Expand All @@ -15,8 +30,7 @@ export class MicrosoftOutlookOAuth2Api implements ICredentialType {
displayName: 'Scope',
name: 'scope',
type: 'hidden',
default:
'openid offline_access Mail.ReadWrite Mail.ReadWrite.Shared Mail.Send Mail.Send.Shared MailboxSettings.Read',
default: scopes.join(' '),
},
{
displayName: 'Use Shared Mailbox',
Expand Down
Loading

0 comments on commit 556a613

Please sign in to comment.