curtain-web-api 1.0.87 → 1.0.89
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.
- package/.idea/.name +0 -0
- package/.idea/compiler.xml +0 -0
- package/.idea/copilot.data.migration.agent.xml +0 -0
- package/.idea/copilot.data.migration.ask.xml +0 -0
- package/.idea/copilot.data.migration.ask2agent.xml +0 -0
- package/.idea/copilot.data.migration.edit.xml +0 -0
- package/.idea/curtain-web-api.iml +0 -0
- package/.idea/modules.xml +0 -0
- package/.idea/vcs.xml +0 -0
- package/README.md +0 -0
- package/build/classes/curtain-api.d.ts +0 -0
- package/build/classes/curtain-api.js +5 -7
- package/build/classes/curtain-encryption.d.ts +0 -0
- package/build/classes/curtain-encryption.js +0 -0
- package/build/classes/curtain-login.d.ts +0 -0
- package/build/classes/curtain-login.js +0 -0
- package/build/classes/curtain-user.d.ts +0 -0
- package/build/classes/curtain-user.js +0 -0
- package/build/index.d.ts +0 -0
- package/build/index.js +0 -0
- package/build/utilities.d.ts +0 -0
- package/build/utilities.js +0 -0
- package/package.json +1 -1
- package/src/classes/curtain-api.ts +5 -7
- package/src/classes/curtain-encryption.ts +0 -0
- package/src/classes/curtain-user.ts +0 -0
- package/src/index.ts +0 -0
- package/src/tests/curtain-login.spec.ts +0 -0
- package/src/tests/utilities.spec.ts +0 -0
- package/src/utilities.ts +0 -0
- package/tsconfig.json +0 -0
package/.idea/.name
CHANGED
|
File without changes
|
package/.idea/compiler.xml
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/.idea/modules.xml
CHANGED
|
File without changes
|
package/.idea/vcs.xml
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -497,7 +497,7 @@ export class CurtainWebAPI {
|
|
|
497
497
|
downloadStats() {
|
|
498
498
|
let headers = new AxiosHeaders();
|
|
499
499
|
headers["Accept"] = "application/json";
|
|
500
|
-
return
|
|
500
|
+
return this.axiosInstance.get(this.baseURL + "stats/download/", { headers: headers, responseType: "json" }).then((response) => {
|
|
501
501
|
return response;
|
|
502
502
|
});
|
|
503
503
|
}
|
|
@@ -515,7 +515,7 @@ export class CurtainWebAPI {
|
|
|
515
515
|
let headers = new AxiosHeaders();
|
|
516
516
|
headers["Accept"] = "application/json";
|
|
517
517
|
headers["Content-Type"] = "application/json";
|
|
518
|
-
return
|
|
518
|
+
return this.axiosInstance.post(this.baseURL + "interactome-atlas-proxy/", { link: data }, { headers: headers, responseType: "json" }).then((response) => {
|
|
519
519
|
return response;
|
|
520
520
|
});
|
|
521
521
|
}
|
|
@@ -523,7 +523,7 @@ export class CurtainWebAPI {
|
|
|
523
523
|
let headers = new AxiosHeaders();
|
|
524
524
|
headers["Accept"] = "application/json";
|
|
525
525
|
headers["Content-Type"] = "application/json";
|
|
526
|
-
return
|
|
526
|
+
return this.axiosInstance.post(this.baseURL + "primitive-stats-test/", { data, type }).then((response) => {
|
|
527
527
|
return response;
|
|
528
528
|
});
|
|
529
529
|
}
|
|
@@ -531,13 +531,13 @@ export class CurtainWebAPI {
|
|
|
531
531
|
let headers = new AxiosHeaders();
|
|
532
532
|
headers["Accept"] = "application/json";
|
|
533
533
|
headers["Content-Type"] = "application/json";
|
|
534
|
-
return
|
|
534
|
+
return this.axiosInstance.get(this.baseURL + "data_filter_list/get_all_category/", { headers: headers, responseType: "json" }).then((response) => { return response; });
|
|
535
535
|
}
|
|
536
536
|
postCompareSession(idList, matchType, studyList, sessionId) {
|
|
537
537
|
let headers = new AxiosHeaders();
|
|
538
538
|
headers["Accept"] = "application/json";
|
|
539
539
|
headers["Content-Type"] = "application/json";
|
|
540
|
-
return
|
|
540
|
+
return this.axiosInstance.post(this.baseURL + "compare-session/", { matchType, studyList, idList, sessionId }, { headers: headers, responseType: "json" }).then((response) => { return response; });
|
|
541
541
|
}
|
|
542
542
|
getStatsSummary(lastNDays) {
|
|
543
543
|
let headers = new AxiosHeaders();
|
|
@@ -864,7 +864,6 @@ export class CurtainWebAPI {
|
|
|
864
864
|
if (uploadId) {
|
|
865
865
|
try {
|
|
866
866
|
const sha256Hash = sha256Hasher.getHash('HEX');
|
|
867
|
-
console.log(`[CHUNK UPLOAD] Complete - totalSize: ${totalSize}, final hash: ${sha256Hash}`);
|
|
868
867
|
const completionResponse = await this.completeCurtainUpload(uploadId, {
|
|
869
868
|
sha256: sha256Hash,
|
|
870
869
|
name: options?.name,
|
|
@@ -892,7 +891,6 @@ export class CurtainWebAPI {
|
|
|
892
891
|
const chunk = file.slice(offset, end);
|
|
893
892
|
try {
|
|
894
893
|
const chunkBuffer = await chunk.arrayBuffer();
|
|
895
|
-
console.log(`[CHUNK UPLOAD] Chunk offset: ${offset}, size: ${chunkBuffer.byteLength}, end: ${end}`);
|
|
896
894
|
sha256Hasher.update(chunkBuffer);
|
|
897
895
|
const response = await this.uploadCurtainChunk({
|
|
898
896
|
file: chunk,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/build/index.d.ts
CHANGED
|
File without changes
|
package/build/index.js
CHANGED
|
File without changes
|
package/build/utilities.d.ts
CHANGED
|
File without changes
|
package/build/utilities.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -720,7 +720,7 @@ export class CurtainWebAPI {
|
|
|
720
720
|
downloadStats() {
|
|
721
721
|
let headers = new AxiosHeaders();
|
|
722
722
|
headers["Accept"] = "application/json";
|
|
723
|
-
return
|
|
723
|
+
return this.axiosInstance.get(this.baseURL + "stats/download/", {headers: headers, responseType: "json"}).then((response) => {
|
|
724
724
|
return response;
|
|
725
725
|
});
|
|
726
726
|
}
|
|
@@ -739,7 +739,7 @@ export class CurtainWebAPI {
|
|
|
739
739
|
let headers = new AxiosHeaders();
|
|
740
740
|
headers["Accept"] = "application/json";
|
|
741
741
|
headers["Content-Type"] = "application/json";
|
|
742
|
-
return
|
|
742
|
+
return this.axiosInstance.post(this.baseURL + "interactome-atlas-proxy/", {link: data}, {headers: headers, responseType: "json"}).then((response) => {
|
|
743
743
|
return response;
|
|
744
744
|
});
|
|
745
745
|
}
|
|
@@ -748,7 +748,7 @@ export class CurtainWebAPI {
|
|
|
748
748
|
let headers = new AxiosHeaders();
|
|
749
749
|
headers["Accept"] = "application/json";
|
|
750
750
|
headers["Content-Type"] = "application/json";
|
|
751
|
-
return
|
|
751
|
+
return this.axiosInstance.post(this.baseURL + "primitive-stats-test/", {data,type}, ).then((response) => {
|
|
752
752
|
return response;
|
|
753
753
|
});
|
|
754
754
|
}
|
|
@@ -757,14 +757,14 @@ export class CurtainWebAPI {
|
|
|
757
757
|
let headers = new AxiosHeaders();
|
|
758
758
|
headers["Accept"] = "application/json";
|
|
759
759
|
headers["Content-Type"] = "application/json";
|
|
760
|
-
return
|
|
760
|
+
return this.axiosInstance.get(this.baseURL + "data_filter_list/get_all_category/", {headers: headers, responseType: "json"}).then((response) => {return response;});
|
|
761
761
|
}
|
|
762
762
|
|
|
763
763
|
postCompareSession(idList: string[], matchType: string, studyList: string[], sessionId: string) {
|
|
764
764
|
let headers = new AxiosHeaders();
|
|
765
765
|
headers["Accept"] = "application/json";
|
|
766
766
|
headers["Content-Type"] = "application/json";
|
|
767
|
-
return
|
|
767
|
+
return this.axiosInstance.post(this.baseURL + "compare-session/", {matchType, studyList, idList, sessionId}, {headers: headers, responseType: "json"}).then((response) => {return response;});
|
|
768
768
|
}
|
|
769
769
|
|
|
770
770
|
getStatsSummary(lastNDays: number) {
|
|
@@ -1153,7 +1153,6 @@ export class CurtainWebAPI {
|
|
|
1153
1153
|
if (uploadId) {
|
|
1154
1154
|
try {
|
|
1155
1155
|
const sha256Hash = sha256Hasher.getHash('HEX');
|
|
1156
|
-
console.log(`[CHUNK UPLOAD] Complete - totalSize: ${totalSize}, final hash: ${sha256Hash}`);
|
|
1157
1156
|
const completionResponse = await this.completeCurtainUpload(uploadId, {
|
|
1158
1157
|
sha256: sha256Hash,
|
|
1159
1158
|
name: options?.name,
|
|
@@ -1181,7 +1180,6 @@ export class CurtainWebAPI {
|
|
|
1181
1180
|
|
|
1182
1181
|
try {
|
|
1183
1182
|
const chunkBuffer = await chunk.arrayBuffer();
|
|
1184
|
-
console.log(`[CHUNK UPLOAD] Chunk offset: ${offset}, size: ${chunkBuffer.byteLength}, end: ${end}`);
|
|
1185
1183
|
sha256Hasher.update(chunkBuffer);
|
|
1186
1184
|
|
|
1187
1185
|
const response = await this.uploadCurtainChunk({
|
|
File without changes
|
|
File without changes
|
package/src/index.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/utilities.ts
CHANGED
|
File without changes
|
package/tsconfig.json
CHANGED
|
File without changes
|