mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
⚡ Improvements to Zendesk-Node
This commit is contained in:
parent
38c5eefb48
commit
8d778bf06e
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue