|
@@ -28,7 +28,6 @@ export class CollectionHttp extends BaseModel implements CollectionView {
|
|
private id!: string;
|
|
private id!: string;
|
|
private loadedPercentage!: string;
|
|
private loadedPercentage!: string;
|
|
private createdTime!: string;
|
|
private createdTime!: string;
|
|
- private sampleFile!: string;
|
|
|
|
private schema!: {
|
|
private schema!: {
|
|
fields: Field[];
|
|
fields: Field[];
|
|
autoID: boolean;
|
|
autoID: boolean;
|
|
@@ -105,7 +104,9 @@ export class CollectionHttp extends BaseModel implements CollectionView {
|
|
return super.search({
|
|
return super.search({
|
|
path: `${this.COLLECTIONS_URL}/${collectionName}/psegments`,
|
|
path: `${this.COLLECTIONS_URL}/${collectionName}/psegments`,
|
|
params: {},
|
|
params: {},
|
|
- });
|
|
|
|
|
|
+ }) as Promise<{
|
|
|
|
+ infos: any;
|
|
|
|
+ }>;
|
|
}
|
|
}
|
|
|
|
|
|
static count(collectionName: string) {
|
|
static count(collectionName: string) {
|
|
@@ -119,7 +120,9 @@ export class CollectionHttp extends BaseModel implements CollectionView {
|
|
return super.search({
|
|
return super.search({
|
|
path: `${this.COLLECTIONS_URL}/${collectionName}/qsegments`,
|
|
path: `${this.COLLECTIONS_URL}/${collectionName}/qsegments`,
|
|
params: {},
|
|
params: {},
|
|
- });
|
|
|
|
|
|
+ }) as Promise<{
|
|
|
|
+ infos: any;
|
|
|
|
+ }>;
|
|
}
|
|
}
|
|
|
|
|
|
static insertData(collectionName: string, param: InsertDataParam) {
|
|
static insertData(collectionName: string, param: InsertDataParam) {
|
|
@@ -133,7 +136,7 @@ export class CollectionHttp extends BaseModel implements CollectionView {
|
|
return super.create({
|
|
return super.create({
|
|
path: `${this.COLLECTIONS_URL}/${collectionName}/importSample`,
|
|
path: `${this.COLLECTIONS_URL}/${collectionName}/importSample`,
|
|
data: param,
|
|
data: param,
|
|
- });
|
|
|
|
|
|
+ }) as Promise<{ sampleFile: string }>;
|
|
}
|
|
}
|
|
|
|
|
|
static deleteEntities(collectionName: string, param: DeleteEntitiesReq) {
|
|
static deleteEntities(collectionName: string, param: DeleteEntitiesReq) {
|
|
@@ -252,8 +255,4 @@ export class CollectionHttp extends BaseModel implements CollectionView {
|
|
get _schema() {
|
|
get _schema() {
|
|
return this.schema;
|
|
return this.schema;
|
|
}
|
|
}
|
|
-
|
|
|
|
- get _sampleFile() {
|
|
|
|
- return this.sampleFile;
|
|
|
|
- }
|
|
|
|
}
|
|
}
|