n8n/packages/nodes-base/credentials/MispApi.credentials.ts
Iván Ovejero 45e2830555
Add MISP node (#2126)
*  Create MISP node

*  Improvements

*  Refactor tags type

*  Refactor tag into eventTag

*  Add required params to feed:create

*  Change endpoint for tag:getAll

*  Add description to role ID

*  Small improvements

*  Improvements

* 🔥 Remove empty file

*  Add sharing group ID param

* 🔥 Remove param with no effect

* 🔨 Refactor sharing group to remove duplication

* 🔥 Remove param with no effect

*  Validate URL in feed resource

* ✏️ Rename Inviter param

* ✏️ Reword dynamic list param descriptions

*  Clean up error handling

* 👕 Nodelinter pass

* 🔥 Remove unused import

* 🔨 Change param to color type

*  Improvements

*  Fix color

Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2021-09-18 22:45:57 +02:00

31 lines
550 B
TypeScript

import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class MispApi implements ICredentialType {
name = 'mispApi';
displayName = 'MISP API';
documentationUrl = 'misp';
properties: INodeProperties[] = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
default: '',
},
{
displayName: 'Base URL',
name: 'baseUrl',
type: 'string',
default: '',
},
{
displayName: 'Allow Unauthorized Certificates',
name: 'allowUnauthorizedCerts',
type: 'boolean',
default: false,
},
];
}