curtain-web-api 1.0.35 → 1.0.36
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.
|
@@ -20,7 +20,7 @@ export declare class CurtainWebAPI {
|
|
|
20
20
|
ORCIDLogin(authorizationCode: string, redirectURI: string): Promise<User>;
|
|
21
21
|
checkIfRefreshTokenExpired(): boolean;
|
|
22
22
|
deleteCurtainLink(curtainLinkID: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
|
-
putSettings(settings: any, enable?: boolean, description?: string, sessionType?: string, encrypted?: boolean, md5?: string, onUploadProgress?: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
|
+
putSettings(settings: any, enable?: boolean, description?: string, sessionType?: string, encrypted?: boolean, md5?: string, e2e?: boolean, onUploadProgress?: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
24
24
|
postSettings(id: string, token: string, onDownloadProgress?: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
25
25
|
getPrideData(accession: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
26
26
|
generateTemporarySession(linkId: string, lifetime: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -208,7 +208,7 @@ class CurtainWebAPI {
|
|
|
208
208
|
return response;
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
|
-
putSettings(settings, enable = true, description = "", sessionType = "TP", encrypted = false, md5 = "", onUploadProgress = undefined) {
|
|
211
|
+
putSettings(settings, enable = true, description = "", sessionType = "TP", encrypted = false, md5 = "", e2e = false, onUploadProgress = undefined) {
|
|
212
212
|
let form = new FormData();
|
|
213
213
|
form.append("file", new Blob([JSON.stringify(settings, exports.replacer)], { type: 'text/json' }), "curtain-settings.json");
|
|
214
214
|
if (enable) {
|
|
@@ -224,6 +224,12 @@ class CurtainWebAPI {
|
|
|
224
224
|
form.append("encrypted", "False");
|
|
225
225
|
}
|
|
226
226
|
form.append("md5", md5);
|
|
227
|
+
if (e2e) {
|
|
228
|
+
form.append("e2e", "True");
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
form.append("e2e", "False");
|
|
232
|
+
}
|
|
227
233
|
form.append("description", description);
|
|
228
234
|
form.append("curtain_type", sessionType);
|
|
229
235
|
let headers = new axios_1.AxiosHeaders();
|
package/package.json
CHANGED
|
@@ -198,7 +198,7 @@ export class CurtainWebAPI {
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
|
|
201
|
-
putSettings(settings: any, enable: boolean = true, description: string = "", sessionType: string = "TP", encrypted: boolean = false, md5: string = "", onUploadProgress: any = undefined) {
|
|
201
|
+
putSettings(settings: any, enable: boolean = true, description: string = "", sessionType: string = "TP", encrypted: boolean = false, md5: string = "", e2e: boolean = false, onUploadProgress: any = undefined) {
|
|
202
202
|
let form: FormData = new FormData();
|
|
203
203
|
form.append("file", new Blob([JSON.stringify(settings, replacer)], {type: 'text/json'}), "curtain-settings.json")
|
|
204
204
|
if (enable) {
|
|
@@ -212,6 +212,11 @@ export class CurtainWebAPI {
|
|
|
212
212
|
form.append("encrypted", "False")
|
|
213
213
|
}
|
|
214
214
|
form.append("md5", md5)
|
|
215
|
+
if (e2e) {
|
|
216
|
+
form.append("e2e", "True")
|
|
217
|
+
} else {
|
|
218
|
+
form.append("e2e", "False")
|
|
219
|
+
}
|
|
215
220
|
|
|
216
221
|
form.append("description", description)
|
|
217
222
|
form.append("curtain_type", sessionType)
|