n8n/packages/nodes-base/credentials/FreshdeskApi.credentials.ts

28 lines
602 B
TypeScript
Raw Normal View History

2019-11-06 16:58:18 -08:00
import {
ICredentialType,
NodePropertyTypes,
} from 'n8n-workflow';
export class FreshdeskApi implements ICredentialType {
name = 'freshdeskApi';
displayName = 'Freshdesk API';
documentationUrl = 'freshdesk';
2019-11-06 16:58:18 -08:00
properties = [
{
2019-11-07 10:07:29 -08:00
displayName: 'API Key',
name: 'apiKey',
2019-11-06 16:58:18 -08:00
type: 'string' as NodePropertyTypes,
default: '',
2019-11-07 10:07:29 -08:00
},
{
2019-11-06 22:06:19 -08:00
displayName: 'Domain',
name: 'domain',
type: 'string' as NodePropertyTypes,
placeholder: 'company',
description: 'If the URL you get displayed on Freshdesk is "https://company.freshdesk.com" enter "company"',
2019-11-07 10:07:29 -08:00
default: ''
}
2019-11-06 16:58:18 -08:00
];
}