curtain-web-api 1.0.17 → 1.0.19
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,6 +33,7 @@ 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>>;
|
|
@@ -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";
|
|
@@ -399,7 +404,7 @@ class CurtainWebAPI {
|
|
|
399
404
|
let headers = new axios_1.AxiosHeaders();
|
|
400
405
|
headers["Accept"] = "application/json";
|
|
401
406
|
headers["Content-Type"] = "application/json";
|
|
402
|
-
return axios_1.default.get(this.baseURL + "
|
|
407
|
+
return axios_1.default.get(this.baseURL + "data_filter_list/get_all_category/", { headers: headers, responseType: "json" }).then((response) => { return response; });
|
|
403
408
|
}
|
|
404
409
|
}
|
|
405
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";
|
|
@@ -409,7 +420,7 @@ export class CurtainWebAPI {
|
|
|
409
420
|
let headers = new AxiosHeaders();
|
|
410
421
|
headers["Accept"] = "application/json";
|
|
411
422
|
headers["Content-Type"] = "application/json";
|
|
412
|
-
return axios.get(this.baseURL + "
|
|
423
|
+
return axios.get(this.baseURL + "data_filter_list/get_all_category/", {headers: headers, responseType: "json"}).then((response) => {return response;});
|
|
413
424
|
}
|
|
414
425
|
}
|
|
415
426
|
|