curtain-web-api 1.0.16 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -33,8 +33,10 @@ export declare class CurtainWebAPI {
|
|
|
33
33
|
saveDataFilterList(name: string, data: string, category?: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
34
34
|
getDataFilterListByID(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
35
35
|
getDataFilterList(title?: string, searchTerm?: string, category?: string, limit?: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
36
|
+
getDataFilterListByCategory(category: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
36
37
|
deleteDataFilterList(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
37
38
|
downloadStats(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
38
39
|
postInteractomeAtlasProxy(genes: string[], filterParameter: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
39
40
|
postPrimitiveStatsTest(data: any, type?: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
41
|
+
getDataAllListCategory(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
40
42
|
}
|
|
@@ -355,6 +355,11 @@ class CurtainWebAPI {
|
|
|
355
355
|
params.append("limit", limit.toString());
|
|
356
356
|
return this.axiosInstance.get(this.baseURL + "data_filter_list/", { responseType: "json", params });
|
|
357
357
|
}
|
|
358
|
+
getDataFilterListByCategory(category) {
|
|
359
|
+
let params = new URLSearchParams();
|
|
360
|
+
params.append("category_exact", category);
|
|
361
|
+
return this.axiosInstance.get(this.baseURL + "data_filter_list/", { responseType: "json", params });
|
|
362
|
+
}
|
|
358
363
|
deleteDataFilterList(id) {
|
|
359
364
|
let headers = new axios_1.AxiosHeaders();
|
|
360
365
|
headers["Accept"] = "application/json";
|
|
@@ -395,5 +400,11 @@ class CurtainWebAPI {
|
|
|
395
400
|
return response;
|
|
396
401
|
});
|
|
397
402
|
}
|
|
403
|
+
getDataAllListCategory() {
|
|
404
|
+
let headers = new axios_1.AxiosHeaders();
|
|
405
|
+
headers["Accept"] = "application/json";
|
|
406
|
+
headers["Content-Type"] = "application/json";
|
|
407
|
+
return axios_1.default.get(this.baseURL + "/data_filter_list/get_all_category/", { headers: headers, responseType: "json" }).then((response) => { return response; });
|
|
408
|
+
}
|
|
398
409
|
}
|
|
399
410
|
exports.CurtainWebAPI = CurtainWebAPI;
|
package/package.json
CHANGED
|
@@ -345,7 +345,12 @@ export class CurtainWebAPI {
|
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
getDataFilterList(
|
|
348
|
+
getDataFilterList(
|
|
349
|
+
title: string = "",
|
|
350
|
+
searchTerm: string = "",
|
|
351
|
+
category: string = "",
|
|
352
|
+
limit: number = 99999999
|
|
353
|
+
) {
|
|
349
354
|
let params = new URLSearchParams();
|
|
350
355
|
if (title != "") {
|
|
351
356
|
params.append("name", title)
|
|
@@ -361,6 +366,12 @@ export class CurtainWebAPI {
|
|
|
361
366
|
return this.axiosInstance.get(this.baseURL + "data_filter_list/", {responseType:"json", params})
|
|
362
367
|
}
|
|
363
368
|
|
|
369
|
+
getDataFilterListByCategory(category: string) {
|
|
370
|
+
let params = new URLSearchParams();
|
|
371
|
+
params.append("category_exact", category)
|
|
372
|
+
return this.axiosInstance.get(this.baseURL + "data_filter_list/", {responseType:"json", params})
|
|
373
|
+
}
|
|
374
|
+
|
|
364
375
|
deleteDataFilterList(id: number) {
|
|
365
376
|
let headers = new AxiosHeaders();
|
|
366
377
|
headers["Accept"] = "application/json";
|
|
@@ -404,5 +415,12 @@ export class CurtainWebAPI {
|
|
|
404
415
|
return response;
|
|
405
416
|
});
|
|
406
417
|
}
|
|
418
|
+
|
|
419
|
+
getDataAllListCategory() {
|
|
420
|
+
let headers = new AxiosHeaders();
|
|
421
|
+
headers["Accept"] = "application/json";
|
|
422
|
+
headers["Content-Type"] = "application/json";
|
|
423
|
+
return axios.get(this.baseURL + "/data_filter_list/get_all_category/", {headers: headers, responseType: "json"}).then((response) => {return response;});
|
|
424
|
+
}
|
|
407
425
|
}
|
|
408
426
|
|