curtain-web-api 1.0.52 → 1.0.53
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,4 +52,5 @@ 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
|
+
getDataCiteTimeLimitedPermissionToken(suffix: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
55
56
|
}
|
|
@@ -565,5 +565,10 @@ class CurtainWebAPI {
|
|
|
565
565
|
headers["Accept"] = "application/json";
|
|
566
566
|
return this.axiosInstance.get(this.baseURL + "datacite/" + id + "/", { headers: headers, responseType: "json" });
|
|
567
567
|
}
|
|
568
|
+
getDataCiteTimeLimitedPermissionToken(suffix) {
|
|
569
|
+
let headers = new axios_1.AxiosHeaders();
|
|
570
|
+
headers["Accept"] = "application/json";
|
|
571
|
+
return this.axiosInstance.get(this.baseURL + "datacite/get_time_limited_permission_token/?" + suffix, { headers: headers, responseType: "json" });
|
|
572
|
+
}
|
|
568
573
|
}
|
|
569
574
|
exports.CurtainWebAPI = CurtainWebAPI;
|
package/package.json
CHANGED
|
@@ -579,5 +579,11 @@ export class CurtainWebAPI {
|
|
|
579
579
|
headers["Accept"] = "application/json"
|
|
580
580
|
return this.axiosInstance.get(this.baseURL + "datacite/" + id + "/", {headers: headers, responseType: "json"})
|
|
581
581
|
}
|
|
582
|
+
|
|
583
|
+
getDataCiteTimeLimitedPermissionToken(suffix: string) {
|
|
584
|
+
let headers = new AxiosHeaders()
|
|
585
|
+
headers["Accept"] = "application/json"
|
|
586
|
+
return this.axiosInstance.get(this.baseURL + "datacite/get_time_limited_permission_token/?" + suffix, {headers: headers, responseType: "json"})
|
|
587
|
+
}
|
|
582
588
|
}
|
|
583
589
|
|