curtain-web-api 1.0.14 → 1.0.15

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.
@@ -30,10 +30,11 @@ export declare class CurtainWebAPI {
30
30
  addOwner(linkId: string, owner: string): Promise<import("axios").AxiosResponse<any, any>>;
31
31
  getCurtainLinks(username: string, sessionDescription?: string, offset?: number, sessionType?: string): Promise<import("axios").AxiosResponse<any, any>>;
32
32
  getSiteProperties(): Promise<import("axios").AxiosResponse<any, any>>;
33
- saveDataFilterList(name: string, data: string): Promise<import("axios").AxiosResponse<any, any>>;
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
- getDataFilterList(categoryName?: string, searchTerm?: string, limit?: number): Promise<import("axios").AxiosResponse<any, any>>;
35
+ getDataFilterList(title?: string, searchTerm?: string, category?: string, limit?: number): Promise<import("axios").AxiosResponse<any, any>>;
36
36
  deleteDataFilterList(id: number): Promise<import("axios").AxiosResponse<any, any>>;
37
37
  downloadStats(): Promise<import("axios").AxiosResponse<any, any>>;
38
38
  postInteractomeAtlasProxy(data: any): Promise<import("axios").AxiosResponse<any, any>>;
39
+ postPrimitiveStatsTest(data: any, type?: string): Promise<import("axios").AxiosResponse<any, any>>;
39
40
  }
@@ -316,11 +316,11 @@ class CurtainWebAPI {
316
316
  return response;
317
317
  });
318
318
  }
319
- saveDataFilterList(name, data) {
319
+ saveDataFilterList(name, data, category = "") {
320
320
  let headers = new axios_1.AxiosHeaders();
321
321
  headers["Accept"] = "application/json";
322
322
  headers["Content-Type"] = "application/json";
323
- return this.axiosInstance.post(this.baseURL + "data_filter_list/", { name: name, data: data }, { headers: headers, responseType: "json" }).then((response) => {
323
+ return this.axiosInstance.post(this.baseURL + "data_filter_list/", { name: name, data: data, category: category }, { headers: headers, responseType: "json" }).then((response) => {
324
324
  return response;
325
325
  });
326
326
  }
@@ -331,14 +331,17 @@ class CurtainWebAPI {
331
331
  return response;
332
332
  });
333
333
  }
334
- getDataFilterList(categoryName = "", searchTerm = "", limit = 99999999) {
334
+ getDataFilterList(title = "", searchTerm = "", category = "", limit = 99999999) {
335
335
  let params = new URLSearchParams();
336
- if (categoryName != "") {
337
- params.append("name", categoryName);
336
+ if (title != "") {
337
+ params.append("name", title);
338
338
  }
339
339
  if (searchTerm != "" && searchTerm != undefined) {
340
340
  params.append("data", searchTerm);
341
341
  }
342
+ if (category != "" && category != undefined) {
343
+ params.append("category", category);
344
+ }
342
345
  params.append("limit", limit.toString());
343
346
  return this.axiosInstance.get(this.baseURL + "data_filter_list/", { responseType: "json", params });
344
347
  }
@@ -364,5 +367,13 @@ class CurtainWebAPI {
364
367
  return response;
365
368
  });
366
369
  }
370
+ postPrimitiveStatsTest(data, type = "t-test") {
371
+ let headers = new axios_1.AxiosHeaders();
372
+ headers["Accept"] = "application/json";
373
+ headers["Content-Type"] = "application/json";
374
+ return axios_1.default.post(this.baseURL + "primitive-stats-test/", { data, type }, { headers: headers, responseType: "json" }).then((response) => {
375
+ return response;
376
+ });
377
+ }
367
378
  }
368
379
  exports.CurtainWebAPI = CurtainWebAPI;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "curtain-web-api",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -318,11 +318,11 @@ export class CurtainWebAPI {
318
318
  });
319
319
  }
320
320
 
321
- saveDataFilterList(name: string, data: string) {
321
+ saveDataFilterList(name: string, data: string, category: string = "") {
322
322
  let headers = new AxiosHeaders();
323
323
  headers["Accept"] = "application/json";
324
324
  headers["Content-Type"] = "application/json";
325
- return this.axiosInstance.post(this.baseURL + "data_filter_list/", {name: name, data: data}, {headers: headers, responseType:"json"}).then((response) => {
325
+ return this.axiosInstance.post(this.baseURL + "data_filter_list/", {name: name, data: data, category: category}, {headers: headers, responseType:"json"}).then((response) => {
326
326
  return response;
327
327
  });
328
328
  }
@@ -335,14 +335,17 @@ export class CurtainWebAPI {
335
335
  });
336
336
  }
337
337
 
338
- getDataFilterList(categoryName: string = "", searchTerm: string = "", limit: number = 99999999) {
338
+ getDataFilterList(title: string = "", searchTerm: string = "", category: string = "", limit: number = 99999999) {
339
339
  let params = new URLSearchParams();
340
- if (categoryName != "") {
341
- params.append("name", categoryName)
340
+ if (title != "") {
341
+ params.append("name", title)
342
342
  }
343
343
  if (searchTerm != "" && searchTerm != undefined) {
344
344
  params.append("data", searchTerm)
345
345
  }
346
+ if (category != "" && category != undefined) {
347
+ params.append("category", category)
348
+ }
346
349
 
347
350
  params.append("limit", limit.toString())
348
351
  return this.axiosInstance.get(this.baseURL + "data_filter_list/", {responseType:"json", params})
@@ -372,5 +375,14 @@ export class CurtainWebAPI {
372
375
  return response;
373
376
  });
374
377
  }
378
+
379
+ postPrimitiveStatsTest(data: any, type: string = "t-test") {
380
+ let headers = new AxiosHeaders();
381
+ headers["Accept"] = "application/json";
382
+ headers["Content-Type"] = "application/json";
383
+ return axios.post(this.baseURL + "primitive-stats-test/", {data,type}, {headers: headers, responseType: "json"}).then((response) => {
384
+ return response;
385
+ });
386
+ }
375
387
  }
376
388