curtain-web-api 1.0.53 → 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
  }
@@ -568,7 +568,12 @@ class CurtainWebAPI {
568
568
  getDataCiteTimeLimitedPermissionToken(suffix) {
569
569
  let headers = new axios_1.AxiosHeaders();
570
570
  headers["Accept"] = "application/json";
571
- return this.axiosInstance.get(this.baseURL + "datacite/get_time_limited_permission_token/?" + suffix, { headers: headers, responseType: "json" });
571
+ return this.axiosInstance.get(this.baseURL + "datacite/get_time_limited_permission_token/?suffix=" + suffix, { headers: headers, responseType: "json" });
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" });
572
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.53",
3
+ "version": "1.0.55",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -583,7 +583,13 @@ export class CurtainWebAPI {
583
583
  getDataCiteTimeLimitedPermissionToken(suffix: string) {
584
584
  let headers = new AxiosHeaders()
585
585
  headers["Accept"] = "application/json"
586
- return this.axiosInstance.get(this.baseURL + "datacite/get_time_limited_permission_token/?" + suffix, {headers: headers, responseType: "json"})
586
+ return this.axiosInstance.get(this.baseURL + "datacite/get_time_limited_permission_token/?suffix=" + suffix, {headers: headers, responseType: "json"})
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"})
587
593
  }
588
594
  }
589
595