mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-13 16:14:07 -08:00
1c229a7b52
* ⬆️ Upgrade linter * 📦 Update `package-lock.json` * 👕 Enable rule * 👕 Apply rule * 📦 Re-update `package-lock.json`
24 lines
509 B
TypeScript
24 lines
509 B
TypeScript
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
|
|
export class CockpitApi implements ICredentialType {
|
|
name = 'cockpitApi';
|
|
displayName = 'Cockpit API';
|
|
documentationUrl = 'cockpit';
|
|
properties: INodeProperties[] = [
|
|
{
|
|
displayName: 'Cockpit URL',
|
|
name: 'url',
|
|
type: 'string',
|
|
default: '',
|
|
placeholder: 'https://example.com',
|
|
},
|
|
{
|
|
displayName: 'Access Token',
|
|
name: 'accessToken',
|
|
type: 'string',
|
|
typeOptions: { password: true },
|
|
default: '',
|
|
},
|
|
];
|
|
}
|