n8n/packages/nodes-base/credentials/MicrosoftOutlookOAuth2Api.credentials.ts
Ricardo Espinoza 4494ee81f6
Add Microsoft Outlook node (#1272)
*  Add Microsoft Outlook node

* Remove accidental import

* Style fixes

*  Microsoft Outlook (#1270)

*  Some improvements to Outlook Node

*  Some more small fixes

*  Improvements

* Add placeholder for the filter field

*  Some more improvements to Outlook Node

*  Hide unnecessary field on Outlook Node

Co-authored-by: Mika Luhta <12100880+mluhta@users.noreply.github.com>
Co-authored-by: Harshil <ghagrawal17@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2020-12-29 08:23:01 +01:00

23 lines
589 B
TypeScript

import {
ICredentialType,
NodePropertyTypes,
} from 'n8n-workflow';
export class MicrosoftOutlookOAuth2Api implements ICredentialType {
name = 'microsoftOutlookOAuth2Api';
extends = [
'microsoftOAuth2Api',
];
displayName = 'Microsoft Outlook OAuth2 API';
documentationUrl = 'microsoft';
properties = [
//https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent
{
displayName: 'Scope',
name: 'scope',
type: 'hidden' as NodePropertyTypes,
default: 'openid offline_access Mail.ReadWrite Mail.Send MailboxSettings.Read',
},
];
}