mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 17:14:05 -08:00
26 lines
860 B
TypeScript
26 lines
860 B
TypeScript
|
import {
|
||
|
ICredentialType,
|
||
|
NodePropertyTypes,
|
||
|
} from 'n8n-workflow';
|
||
|
|
||
|
export class HarvestApi implements ICredentialType {
|
||
|
name = 'harvestApi';
|
||
|
displayName = 'Harvest API';
|
||
|
properties = [
|
||
|
{
|
||
|
displayName: 'Account ID',
|
||
|
name: 'accountId',
|
||
|
type: 'string' as NodePropertyTypes,
|
||
|
default: '',
|
||
|
description: 'Visit your account details page, and grab the Account ID. See <a href="https://help.getharvest.com/api-v2/authentication-api/authentication/authentication/">Harvest Personal Access Tokens</a>.'
|
||
|
},
|
||
|
{
|
||
|
displayName: 'Access Token',
|
||
|
name: 'accessToken',
|
||
|
type: 'string' as NodePropertyTypes,
|
||
|
default: '',
|
||
|
description: 'Visit your account details page, and grab the Access Token. See <a href="https://help.getharvest.com/api-v2/authentication-api/authentication/authentication/">Harvest Personal Access Tokens</a>.'
|
||
|
},
|
||
|
];
|
||
|
}
|