Flowise/packages/components/credentials/PostgresApi.credential.ts

32 lines
777 B
TypeScript

import { INodeParams, INodeCredential } from '../src/Interface'
class PostgresApi implements INodeCredential {
label: string
name: string
version: number
description: string
inputs: INodeParams[]
constructor() {
this.label = 'Postgres API'
this.name = 'PostgresApi'
this.version = 1.0
this.inputs = [
{
label: 'User',
name: 'user',
type: 'string',
placeholder: '<POSTGRES_USERNAME>'
},
{
label: 'Password',
name: 'password',
type: 'password',
placeholder: '<POSTGRES_PASSWORD>'
}
]
}
}
module.exports = { credClass: PostgresApi }