mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
32 lines
553 B
TypeScript
32 lines
553 B
TypeScript
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
|
|
export class DeepLApi implements ICredentialType {
|
|
name = 'deepLApi';
|
|
displayName = 'DeepL API';
|
|
documentationUrl = 'deepL';
|
|
properties: INodeProperties[] = [
|
|
{
|
|
displayName: 'API Key',
|
|
name: 'apiKey',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'API Plan',
|
|
name: 'apiPlan',
|
|
type: 'options',
|
|
options: [
|
|
{
|
|
name: 'Pro Plan',
|
|
value: 'pro',
|
|
},
|
|
{
|
|
name: 'Free Plan',
|
|
value: 'free',
|
|
},
|
|
],
|
|
default: 'pro',
|
|
},
|
|
];
|
|
}
|