curtain-web-api 1.0.22 → 1.0.24
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.
|
@@ -40,5 +40,6 @@ export declare class CurtainWebAPI {
|
|
|
40
40
|
postInteractomeAtlasProxy(genes: string[], filterParameter: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
41
41
|
postPrimitiveStatsTest(data: any, type?: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
42
42
|
getDataAllListCategory(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
43
|
-
postCompareSession(idList: string[], matchType: string, studyList: string[]): Promise<import("axios").AxiosResponse<any, any>>;
|
|
43
|
+
postCompareSession(idList: string[], matchType: string, studyList: string[], sessionId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
44
|
+
getStatsSummary(lastNDays: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
44
45
|
}
|
|
@@ -415,11 +415,17 @@ class CurtainWebAPI {
|
|
|
415
415
|
headers["Content-Type"] = "application/json";
|
|
416
416
|
return axios_1.default.get(this.baseURL + "data_filter_list/get_all_category/", { headers: headers, responseType: "json" }).then((response) => { return response; });
|
|
417
417
|
}
|
|
418
|
-
postCompareSession(idList, matchType, studyList) {
|
|
418
|
+
postCompareSession(idList, matchType, studyList, sessionId) {
|
|
419
419
|
let headers = new axios_1.AxiosHeaders();
|
|
420
420
|
headers["Accept"] = "application/json";
|
|
421
421
|
headers["Content-Type"] = "application/json";
|
|
422
|
-
return axios_1.default.post(this.baseURL + "compare-session/", { matchType, studyList, idList }, { headers: headers, responseType: "json" }).then((response) => { return response; });
|
|
422
|
+
return axios_1.default.post(this.baseURL + "compare-session/", { matchType, studyList, idList, sessionId }, { headers: headers, responseType: "json" }).then((response) => { return response; });
|
|
423
|
+
}
|
|
424
|
+
getStatsSummary(lastNDays) {
|
|
425
|
+
let headers = new axios_1.AxiosHeaders();
|
|
426
|
+
headers["Accept"] = "application/json";
|
|
427
|
+
headers["Content-Type"] = "application/json";
|
|
428
|
+
return this.axiosInstance.get(this.baseURL + `stats/summary/${lastNDays}/`, { responseType: "json", headers });
|
|
423
429
|
}
|
|
424
430
|
}
|
|
425
431
|
exports.CurtainWebAPI = CurtainWebAPI;
|
package/package.json
CHANGED
|
@@ -431,11 +431,18 @@ export class CurtainWebAPI {
|
|
|
431
431
|
return axios.get(this.baseURL + "data_filter_list/get_all_category/", {headers: headers, responseType: "json"}).then((response) => {return response;});
|
|
432
432
|
}
|
|
433
433
|
|
|
434
|
-
postCompareSession(idList: string[], matchType: string, studyList: string[]) {
|
|
434
|
+
postCompareSession(idList: string[], matchType: string, studyList: string[], sessionId: string) {
|
|
435
435
|
let headers = new AxiosHeaders();
|
|
436
436
|
headers["Accept"] = "application/json";
|
|
437
437
|
headers["Content-Type"] = "application/json";
|
|
438
|
-
return axios.post(this.baseURL + "compare-session/", {matchType, studyList, idList}, {headers: headers, responseType: "json"}).then((response) => {return response;});
|
|
438
|
+
return axios.post(this.baseURL + "compare-session/", {matchType, studyList, idList, sessionId}, {headers: headers, responseType: "json"}).then((response) => {return response;});
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
getStatsSummary(lastNDays: number) {
|
|
442
|
+
let headers = new AxiosHeaders();
|
|
443
|
+
headers["Accept"] = "application/json";
|
|
444
|
+
headers["Content-Type"] = "application/json";
|
|
445
|
+
return this.axiosInstance.get(this.baseURL + `stats/summary/${lastNDays}/`, {responseType:"json", headers})
|
|
439
446
|
}
|
|
440
447
|
}
|
|
441
448
|
|