curtain-web-api 1.0.20 → 1.0.22

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,4 +40,5 @@ 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
44
  }
@@ -233,9 +233,9 @@ class CurtainWebAPI {
233
233
  let headers = new axios_1.AxiosHeaders();
234
234
  headers["Accept"] = "application/json";
235
235
  if (onDownloadProgress !== undefined) {
236
- return this.axiosInstance.get(this.baseURL + "curtain/" + id + "/download/token=" + token + "/", { responseType: "json", onDownloadProgress: onDownloadProgress }).then((response) => {
236
+ return this.axiosInstance.get(this.baseURL + "curtain/" + id + "/download/token=" + token + "/", { responseType: "json" }).then((response) => {
237
237
  if ("url" in response.data) {
238
- return this.axiosInstance.get(response.data.url, { responseType: "json" }).then((response) => {
238
+ return this.axiosInstance.get(response.data.url, { responseType: "json", onDownloadProgress: onDownloadProgress }).then((response) => {
239
239
  return response;
240
240
  });
241
241
  }
@@ -415,5 +415,11 @@ 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) {
419
+ let headers = new axios_1.AxiosHeaders();
420
+ headers["Accept"] = "application/json";
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; });
423
+ }
418
424
  }
419
425
  exports.CurtainWebAPI = CurtainWebAPI;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "curtain-web-api",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -221,9 +221,9 @@ export class CurtainWebAPI {
221
221
  let headers = new AxiosHeaders();
222
222
  headers["Accept"] = "application/json";
223
223
  if (onDownloadProgress !== undefined) {
224
- return this.axiosInstance.get(this.baseURL + "curtain/" + id + "/download/token=" + token + "/", {responseType:"json", onDownloadProgress: onDownloadProgress}).then((response) => {
224
+ return this.axiosInstance.get(this.baseURL + "curtain/" + id + "/download/token=" + token + "/", {responseType:"json"}).then((response) => {
225
225
  if ("url" in response.data) {
226
- return this.axiosInstance.get(response.data.url, {responseType: "json"}).then((response) => {
226
+ return this.axiosInstance.get(response.data.url, {responseType: "json", onDownloadProgress: onDownloadProgress}).then((response) => {
227
227
  return response;
228
228
  })
229
229
  } else {
@@ -430,5 +430,12 @@ export class CurtainWebAPI {
430
430
  headers["Content-Type"] = "application/json";
431
431
  return axios.get(this.baseURL + "data_filter_list/get_all_category/", {headers: headers, responseType: "json"}).then((response) => {return response;});
432
432
  }
433
+
434
+ postCompareSession(idList: string[], matchType: string, studyList: string[]) {
435
+ let headers = new AxiosHeaders();
436
+ headers["Accept"] = "application/json";
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;});
439
+ }
433
440
  }
434
441
 
Binary file
@@ -1 +0,0 @@
1
- MANIFEST-000002
package/curtainuser/LOCK DELETED
File without changes
package/curtainuser/LOG DELETED
@@ -1 +0,0 @@
1
- 2023/07/26-14:29:40.802 c4f4 Delete type=3 #1
Binary file