1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-09-11 13:15:28 +03:00

Improvements to Zendesk-Node

This commit is contained in:
ricardo 2020-06-14 18:04:22 -04:00
parent 38c5eefb48
commit 8d778bf06e

View File

@ -3,6 +3,10 @@ import {
NodePropertyTypes,
} from 'n8n-workflow';
const scopes = [
'read',
'write',
];
export class ZendeskOAuth2Api implements ICredentialType {
name = 'zendeskOAuth2Api';
@ -15,7 +19,8 @@ export class ZendeskOAuth2Api implements ICredentialType {
displayName: 'Subdomain',
name: 'subdomain',
type: 'string' as NodePropertyTypes,
default: 'n8n',
default: '',
placeholder: 'n8n',
description: 'The subdomain of your Zendesk work environment.',
required: true,
},
@ -52,8 +57,8 @@ export class ZendeskOAuth2Api implements ICredentialType {
{
displayName: 'Scope',
name: 'scope',
type: 'string' as NodePropertyTypes,
default: 'write read',
type: 'hidden' as NodePropertyTypes,
default: scopes.join(' '),
},
{
displayName: 'Auth URI Query Parameters',