mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 13:14:07 -08:00
fa05d7557b
* ⚡ Simplify more property types * 👕 Fix lint
26 lines
573 B
TypeScript
26 lines
573 B
TypeScript
import { ICredentialType, NodePropertyTypes, INodeProperties } from 'n8n-workflow';
|
|
|
|
export class ClassNameReplace implements ICredentialType {
|
|
name = 'N8nNameReplace';
|
|
|
|
displayName = 'DisplayNameReplace';
|
|
|
|
properties: INodeProperties[] = [
|
|
// The credentials to get from user and save encrypted.
|
|
// Properties can be defined exactly in the same way
|
|
// as node properties.
|
|
{
|
|
displayName: 'User',
|
|
name: 'user',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Access Token',
|
|
name: 'accessToken',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
];
|
|
}
|