From a398d00b9aec6e27e87bb0f26ef0a2b35a4a580b Mon Sep 17 00:00:00 2001 From: ryjiang Date: Mon, 29 Jan 2024 11:35:10 +0800 Subject: [PATCH] Add missing types Signed-off-by: ryjiang --- milvus/types/Collection.ts | 14 +++++++++----- milvus/types/HighLevel.ts | 1 - test/grpc/HighLevel.spec.ts | 1 - 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/milvus/types/Collection.ts b/milvus/types/Collection.ts index bddae64d..c2a90d77 100644 --- a/milvus/types/Collection.ts +++ b/milvus/types/Collection.ts @@ -17,18 +17,21 @@ import { // returned from milvus export interface FieldSchema { + type_params: KeyValuePair[]; + index_params: KeyValuePair[]; + fieldID: string | number; name: string; + is_primary_key?: boolean; description: string; data_type: keyof typeof DataType; + autoID: boolean; + state: string; element_type?: keyof typeof DataType; + default_value?: number | string; dataType?: DataType; - is_primary_key?: boolean; is_partition_key?: boolean; is_dynamic?: boolean; - type_params: KeyValuePair[]; - index_params: KeyValuePair[]; - autoID: boolean; - default_value?: number | string; + is_clustering_key?: boolean; } export interface CollectionData { @@ -167,6 +170,7 @@ export interface CollectionSchema { name: string; description: string; enable_dynamic_field: boolean; + autoID: boolean; fields: FieldSchema[]; } diff --git a/milvus/types/HighLevel.ts b/milvus/types/HighLevel.ts index bf1b79b7..efe1814b 100644 --- a/milvus/types/HighLevel.ts +++ b/milvus/types/HighLevel.ts @@ -5,7 +5,6 @@ import { collectionNameReq, CreateCollectionReq, CreateIndexSimpleReq, - BaseCreateCollectionReq, } from '../'; // highlevel,only collection_name and dimension are required diff --git a/test/grpc/HighLevel.spec.ts b/test/grpc/HighLevel.spec.ts index cd68a4d1..98cf62c4 100644 --- a/test/grpc/HighLevel.spec.ts +++ b/test/grpc/HighLevel.spec.ts @@ -6,7 +6,6 @@ import { IndexType, MetricType, LoadState, - ConsistencyLevelEnum, } from '../../milvus'; import { IP, GENERATE_NAME } from '../tools';