mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-22 11:01:22 +03:00
05dd23b01d
- add version to nodes and credentials - hover over node actions
32 lines
901 B
TypeScript
32 lines
901 B
TypeScript
import { INodeParams, INodeCredential } from '../src/Interface'
|
|
|
|
class MotorheadMemoryApi implements INodeCredential {
|
|
label: string
|
|
name: string
|
|
version: number
|
|
description: string
|
|
inputs: INodeParams[]
|
|
|
|
constructor() {
|
|
this.label = 'Motorhead Memory API'
|
|
this.name = 'motorheadMemoryApi'
|
|
this.version = 1.0
|
|
this.description =
|
|
'Refer to <a target="_blank" href="https://docs.getmetal.io/misc-get-keys">official guide</a> on how to create API key and Client ID on Motorhead Memory'
|
|
this.inputs = [
|
|
{
|
|
label: 'Client ID',
|
|
name: 'clientId',
|
|
type: 'string'
|
|
},
|
|
{
|
|
label: 'API Key',
|
|
name: 'apiKey',
|
|
type: 'password'
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
module.exports = { credClass: MotorheadMemoryApi }
|