chore: refactoring (naming convention)

This commit is contained in:
hakeemsyd 2024-01-12 01:36:57 +05:00 committed by Ilango
parent 4b9b30bf7a
commit 4b39b4115b
2 changed files with 6 additions and 6 deletions

View File

@ -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 }

View File

@ -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 = [
{ {