Skip to content

Commit

Permalink
Add missing types
Browse files Browse the repository at this point in the history
Signed-off-by: ryjiang <jiangruiyi@gmail.com>
  • Loading branch information
shanghaikid committed Jan 29, 2024
1 parent 5270b45 commit a398d00
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
14 changes: 9 additions & 5 deletions milvus/types/Collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -167,6 +170,7 @@ export interface CollectionSchema {
name: string;
description: string;
enable_dynamic_field: boolean;
autoID: boolean;
fields: FieldSchema[];
}

Expand Down
1 change: 0 additions & 1 deletion milvus/types/HighLevel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
collectionNameReq,
CreateCollectionReq,
CreateIndexSimpleReq,
BaseCreateCollectionReq,
} from '../';

// highlevel,only collection_name and dimension are required
Expand Down
1 change: 0 additions & 1 deletion test/grpc/HighLevel.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
IndexType,
MetricType,
LoadState,
ConsistencyLevelEnum,
} from '../../milvus';
import { IP, GENERATE_NAME } from '../tools';

Expand Down

0 comments on commit a398d00

Please sign in to comment.