mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Simplify property types in credentials (#1869)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import {
|
||||
ICredentialType,
|
||||
NodePropertyTypes,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export class MicrosoftOutlookOAuth2Api implements ICredentialType {
|
||||
@@ -10,25 +10,25 @@ export class MicrosoftOutlookOAuth2Api implements ICredentialType {
|
||||
];
|
||||
displayName = 'Microsoft Outlook OAuth2 API';
|
||||
documentationUrl = 'microsoft';
|
||||
properties = [
|
||||
properties: INodeProperties[] = [
|
||||
//https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent
|
||||
{
|
||||
displayName: 'Scope',
|
||||
name: 'scope',
|
||||
type: 'hidden' as NodePropertyTypes,
|
||||
type: 'hidden',
|
||||
default: 'openid offline_access Mail.ReadWrite Mail.ReadWrite.Shared Mail.Send Mail.Send.Shared MailboxSettings.Read',
|
||||
},
|
||||
{
|
||||
displayName: 'Use Shared Mailbox',
|
||||
name: 'useShared',
|
||||
type: 'boolean' as NodePropertyTypes,
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
},
|
||||
{
|
||||
displayName: 'User Principal Name',
|
||||
name: 'userPrincipalName',
|
||||
description: 'Target user\'s UPN or ID',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
type: 'string',
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
|
||||
Reference in New Issue
Block a user