mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 21:19:43 -08:00
35 lines
581 B
TypeScript
35 lines
581 B
TypeScript
|
import {
|
||
|
ICredentialType,
|
||
|
NodePropertyTypes,
|
||
|
} from 'n8n-workflow';
|
||
|
|
||
|
export class WiseApi implements ICredentialType {
|
||
|
name = 'wiseApi';
|
||
|
displayName = 'Wise API';
|
||
|
documentationUrl = 'wise';
|
||
|
properties = [
|
||
|
{
|
||
|
displayName: 'API Token',
|
||
|
name: 'apiToken',
|
||
|
type: 'string' as NodePropertyTypes,
|
||
|
default: '',
|
||
|
},
|
||
|
{
|
||
|
displayName: 'Environment',
|
||
|
name: 'environment',
|
||
|
type: 'options' as NodePropertyTypes,
|
||
|
default: 'live',
|
||
|
options: [
|
||
|
{
|
||
|
name: 'Live',
|
||
|
value: 'live',
|
||
|
},
|
||
|
{
|
||
|
name: 'Test',
|
||
|
value: 'test',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
];
|
||
|
}
|