chore: refactoring (naming convention)
This commit is contained in:
parent
4b9b30bf7a
commit
4b39b4115b
|
|
@ -1,6 +1,6 @@
|
|||
import { INodeParams, INodeCredential } from '../src/Interface'
|
||||
|
||||
class AstraApi implements INodeCredential {
|
||||
class AstraDBApi implements INodeCredential {
|
||||
label: string
|
||||
name: string
|
||||
version: number
|
||||
|
|
@ -8,12 +8,12 @@ class AstraApi implements INodeCredential {
|
|||
inputs: INodeParams[]
|
||||
|
||||
constructor() {
|
||||
this.label = 'Astra API'
|
||||
this.name = 'AstraApi'
|
||||
this.label = 'Astra DB API'
|
||||
this.name = 'AstraDBApi'
|
||||
this.version = 1.0
|
||||
this.inputs = [
|
||||
{
|
||||
label: 'Colection Name',
|
||||
label: 'Collection Name',
|
||||
name: 'collectionName',
|
||||
type: 'string'
|
||||
},
|
||||
|
|
@ -31,4 +31,4 @@ class AstraApi implements INodeCredential {
|
|||
}
|
||||
}
|
||||
|
||||
module.exports = { credClass: AstraApi }
|
||||
module.exports = { credClass: AstraDBApi }
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class Astra_VectorStores implements INode {
|
|||
label: 'Connect Credential',
|
||||
name: 'credential',
|
||||
type: 'credential',
|
||||
credentialNames: ['AstraApi']
|
||||
credentialNames: ['AstraDBApi']
|
||||
}
|
||||
this.inputs = [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue