35 lines
861 B
TypeScript
35 lines
861 B
TypeScript
import { INodeParams, INodeCredential } from '../src/Interface'
|
|
|
|
class AstraDBApi implements INodeCredential {
|
|
label: string
|
|
name: string
|
|
version: number
|
|
description: string
|
|
inputs: INodeParams[]
|
|
|
|
constructor() {
|
|
this.label = 'Astra DB API'
|
|
this.name = 'AstraDBApi'
|
|
this.version = 1.0
|
|
this.inputs = [
|
|
{
|
|
label: 'Collection Name',
|
|
name: 'collectionName',
|
|
type: 'string'
|
|
},
|
|
{
|
|
label: 'Astra DB Application Token',
|
|
name: 'applicationToken',
|
|
type: 'password'
|
|
},
|
|
{
|
|
label: 'Astra DB Api Endpoint',
|
|
name: 'dbEndPoint',
|
|
type: 'string'
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
module.exports = { credClass: AstraDBApi }
|