curtain-web-api 1.0.59 → 1.0.60

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.
@@ -52,7 +52,7 @@ export declare class CurtainWebAPI {
52
52
  getRandomDataCiteSuffix(): Promise<import("axios").AxiosResponse<any, any>>;
53
53
  submitDataCite(data: any): Promise<import("axios").AxiosResponse<any, any>>;
54
54
  getDataCite(id: number): Promise<import("axios").AxiosResponse<any, any>>;
55
- getDataCites(url?: string, title?: string, status?: string, limit?: number, offset?: number, manage?: boolean): Promise<import("axios").AxiosResponse<any, any>>;
55
+ getDataCites(url?: string, title?: string, status?: string, limit?: number, offset?: number, manage?: boolean, curtain_type?: string): Promise<import("axios").AxiosResponse<any, any>>;
56
56
  getDataCiteTimeLimitedPermissionToken(suffix: string): Promise<import("axios").AxiosResponse<any, any>>;
57
57
  getDataCiteProxyOrcidPublicRecord(orcid: string): Promise<import("axios").AxiosResponse<any, any>>;
58
58
  getDataCiteQuota(): Promise<import("axios").AxiosResponse<{
@@ -577,7 +577,7 @@ class CurtainWebAPI {
577
577
  headers["Accept"] = "application/json";
578
578
  return this.axiosInstance.get(this.baseURL + "datacite/" + id + "/", { headers: headers, responseType: "json" });
579
579
  }
580
- getDataCites(url, title, status, limit = 10, offset = 0, manage = false) {
580
+ getDataCites(url, title, status, limit = 10, offset = 0, manage = false, curtain_type = "TP") {
581
581
  let headers = new axios_1.AxiosHeaders();
582
582
  headers["Accept"] = "application/json";
583
583
  let params = new URLSearchParams();
@@ -593,6 +593,9 @@ class CurtainWebAPI {
593
593
  if (manage !== undefined) {
594
594
  params.append("manage", manage.toString());
595
595
  }
596
+ if (curtain_type !== undefined) {
597
+ params.append("curtain_type", curtain_type);
598
+ }
596
599
  params.append("limit", limit.toString());
597
600
  params.append("offset", offset.toString());
598
601
  return this.axiosInstance.get(this.baseURL + "datacite/", { headers: headers, params: params, responseType: "json" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "curtain-web-api",
3
- "version": "1.0.59",
3
+ "version": "1.0.60",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -591,7 +591,7 @@ export class CurtainWebAPI {
591
591
  return this.axiosInstance.get(this.baseURL + "datacite/" + id + "/", {headers: headers, responseType: "json"})
592
592
  }
593
593
 
594
- getDataCites(url?: string, title?: string, status?: string, limit: number = 10, offset = 0, manage: boolean = false) {
594
+ getDataCites(url?: string, title?: string, status?: string, limit: number = 10, offset = 0, manage: boolean = false, curtain_type: string = "TP") {
595
595
  let headers = new AxiosHeaders()
596
596
  headers["Accept"] = "application/json"
597
597
  let params = new URLSearchParams()
@@ -607,6 +607,9 @@ export class CurtainWebAPI {
607
607
  if (manage !== undefined) {
608
608
  params.append("manage", manage.toString())
609
609
  }
610
+ if (curtain_type !== undefined) {
611
+ params.append("curtain_type", curtain_type)
612
+ }
610
613
  params.append("limit", limit.toString())
611
614
  params.append("offset", offset.toString())
612
615
  return this.axiosInstance.get(this.baseURL + "datacite/", {headers: headers, params: params, responseType: "json"})