2019-11-06 16:58:18 -08:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
|
|
|
NodePropertyTypes,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
|
|
|
|
export class FreshdeskApi implements ICredentialType {
|
|
|
|
name = 'freshdeskApi';
|
|
|
|
displayName = 'Freshdesk API';
|
2020-08-17 05:42:09 -07:00
|
|
|
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,
|
2020-02-21 06:07:03 -08:00
|
|
|
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
|
|
|
];
|
|
|
|
}
|