Skip to content

Commit

Permalink
update model export;
Browse files Browse the repository at this point in the history
  • Loading branch information
ricki-epsilla committed Jan 13, 2024
1 parent 65f408b commit 14124e5
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 90 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "epsillajs",
"version": "0.3.1",
"version": "0.3.2",
"description": "A JS library to connect Epsilla vector database",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { CloudClientConfig, EpsillaCloud, VectorDB } from './cloud';
import {
ClientConfig,
EpsillaQueryResult, EpsillaResponse, LoadDBPayload,
QueryConfig, QueryPayload, TableField
} from './models';
import EpsillaDB, { ClientConfig } from './vectordb';
import EpsillaDB from './vectordb';

export {
ClientConfig, CloudClientConfig,
Expand Down
7 changes: 7 additions & 0 deletions src/models.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
export interface ClientConfig {
protocol?: string;
host?: string;
port?: number;
headers?: { [key: string]: string };
}

export interface LoadDBPayload {
path: string;
name: string;
Expand Down
9 changes: 2 additions & 7 deletions src/vectordb.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
import axios, { AxiosError } from 'axios';

import {
ClientConfig,
DeleteRecordsConfig, EpsillaResponse, Index, LoadDBPayload,
PreviewConfig, QueryConfig, QueryPayload, TableField
} from './models';

export interface ClientConfig {
protocol?: string;
host?: string;
port?: number;
headers?: { [key: string]: string };
}

class EpsillaDB {
private protocol: string;
private host: string;
Expand Down
6 changes: 4 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
"outDir": "./dist",
"declaration": true,
"strict": true,
"esModuleInterop": true
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules"]
"exclude": ["node_modules", "dist"]
}
77 changes: 0 additions & 77 deletions yarn.lock

This file was deleted.

0 comments on commit 14124e5

Please sign in to comment.