curtain-web-api 1.0.56 → 1.0.57

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.
@@ -54,4 +54,8 @@ export declare class CurtainWebAPI {
54
54
  getDataCite(id: number): Promise<import("axios").AxiosResponse<any, any>>;
55
55
  getDataCiteTimeLimitedPermissionToken(suffix: string): Promise<import("axios").AxiosResponse<any, any>>;
56
56
  getDataCiteProxyOrcidPublicRecord(orcid: string): Promise<import("axios").AxiosResponse<any, any>>;
57
+ getDataCiteQuota(): Promise<import("axios").AxiosResponse<{
58
+ quota: number;
59
+ max_quota: number;
60
+ }, any>>;
57
61
  }
@@ -587,5 +587,10 @@ class CurtainWebAPI {
587
587
  headers["Accept"] = "application/json";
588
588
  return this.axiosInstance.get(this.baseURL + "datacite/proxy_orcid/?orcid=" + orcid, { headers: headers, responseType: "json" });
589
589
  }
590
+ getDataCiteQuota() {
591
+ let headers = new axios_1.AxiosHeaders();
592
+ headers["Accept"] = "application/json";
593
+ return this.axiosInstance.get(this.baseURL + "datacite/get_quota/", { headers: headers, responseType: "json" });
594
+ }
590
595
  }
591
596
  exports.CurtainWebAPI = CurtainWebAPI;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "curtain-web-api",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -602,5 +602,11 @@ export class CurtainWebAPI {
602
602
  headers["Accept"] = "application/json"
603
603
  return this.axiosInstance.get(this.baseURL + "datacite/proxy_orcid/?orcid=" + orcid, {headers: headers, responseType: "json"})
604
604
  }
605
+
606
+ getDataCiteQuota() {
607
+ let headers = new AxiosHeaders()
608
+ headers["Accept"] = "application/json"
609
+ return this.axiosInstance.get<{quota: number, max_quota: number}>(this.baseURL + "datacite/get_quota/", {headers: headers, responseType: "json"})
610
+ }
605
611
  }
606
612