curtain-web-api 1.0.54 → 1.0.55

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.
@@ -53,4 +53,5 @@ export declare class CurtainWebAPI {
53
53
  submitDataCite(data: any): Promise<import("axios").AxiosResponse<any, any>>;
54
54
  getDataCite(id: number): Promise<import("axios").AxiosResponse<any, any>>;
55
55
  getDataCiteTimeLimitedPermissionToken(suffix: string): Promise<import("axios").AxiosResponse<any, any>>;
56
+ getDataCiteProxyOrcidPublicRecord(orcid: string): Promise<import("axios").AxiosResponse<any, any>>;
56
57
  }
@@ -570,5 +570,10 @@ class CurtainWebAPI {
570
570
  headers["Accept"] = "application/json";
571
571
  return this.axiosInstance.get(this.baseURL + "datacite/get_time_limited_permission_token/?suffix=" + suffix, { headers: headers, responseType: "json" });
572
572
  }
573
+ getDataCiteProxyOrcidPublicRecord(orcid) {
574
+ let headers = new axios_1.AxiosHeaders();
575
+ headers["Accept"] = "application/json";
576
+ return this.axiosInstance.get(this.baseURL + "datacite/proxy_orcid/?orcid=" + orcid, { headers: headers, responseType: "json" });
577
+ }
573
578
  }
574
579
  exports.CurtainWebAPI = CurtainWebAPI;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "curtain-web-api",
3
- "version": "1.0.54",
3
+ "version": "1.0.55",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -585,5 +585,11 @@ export class CurtainWebAPI {
585
585
  headers["Accept"] = "application/json"
586
586
  return this.axiosInstance.get(this.baseURL + "datacite/get_time_limited_permission_token/?suffix=" + suffix, {headers: headers, responseType: "json"})
587
587
  }
588
+
589
+ getDataCiteProxyOrcidPublicRecord(orcid: string) {
590
+ let headers = new AxiosHeaders()
591
+ headers["Accept"] = "application/json"
592
+ return this.axiosInstance.get(this.baseURL + "datacite/proxy_orcid/?orcid=" + orcid, {headers: headers, responseType: "json"})
593
+ }
588
594
  }
589
595