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