@zilliz/milvus2-sdk-node
Version:
Official Node.js SDK for [Milvus](https://github.com/milvus-io/milvus) vector database. Provides gRPC and HTTP clients for vector similarity search, metadata filtering, and full collection/index/user management.
35 lines (34 loc) • 1.87 kB
TypeScript
import { HttpBaseClient } from '../HttpClient';
import { Constructor, FetchOptions, HttpImportListResponse, HttpImportListReq, HttpImportCreateReq, HttpImportCreateResponse, HttpImportProgressReq, HttpImportProgressResponse } from '../types';
/**
*
* @param {Constructor<HttpBaseClient>} Base - The base class to be extended.
* @returns {class} - The extended class with additional methods for collection management.
*
* @method listImportJobs - Lists all import jobs.
* @method createImportJobs - Creates new import jobs.
* @method getImportJobProgress - Retrieves the progress of an import job.
*/
export declare function Import<T extends Constructor<HttpBaseClient>>(Base: T): {
new (...args: any[]): {
readonly importPrefix: string;
listImportJobs(params: HttpImportListReq, options?: FetchOptions): Promise<HttpImportListResponse>;
createImportJobs(params: HttpImportCreateReq, options?: FetchOptions): Promise<HttpImportCreateResponse>;
getImportJobProgress(params: HttpImportProgressReq, options?: FetchOptions): Promise<HttpImportProgressResponse>;
config: import("../types").HttpClientConfig;
readonly baseURL: string;
readonly authorization: string;
readonly database: string;
readonly timeout: number;
readonly headers: {
Authorization: string;
Accept: string;
ContentType: string;
'Accept-Type-Allow-Int64': string;
};
readonly fetch: typeof fetch | ((input: any, init?: any) => Promise<any>);
_handleResponse<T>(response: Response, url: string): Promise<T>;
POST<T_1>(url: string, data?: Record<string, any>, options?: FetchOptions | undefined): Promise<T_1>;
GET<T_2>(url: string, params?: Record<string, any>, options?: FetchOptions | undefined): Promise<T_2>;
};
} & T;