feat(Microsoft Outlook Node): Node overhaul (#4449)
[N8N-4995](https://linear.app/n8n/issue/N8N-4995) --------- Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user