curtain-web-api 1.0.59 → 1.0.61
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/compiler.xml +6 -0
- package/.idea/copilot.data.migration.agent.xml +6 -0
- package/.idea/copilot.data.migration.ask.xml +6 -0
- package/.idea/copilot.data.migration.ask2agent.xml +6 -0
- package/.idea/copilot.data.migration.edit.xml +6 -0
- package/build/classes/curtain-api.d.ts +2 -2
- package/build/classes/curtain-api.js +6 -2
- package/package.json +1 -1
- package/src/classes/curtain-api.ts +7 -2
|
@@ -35,7 +35,7 @@ export declare class CurtainWebAPI {
|
|
|
35
35
|
getSiteProperties(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
36
36
|
saveDataFilterList(name: string, data: string, category?: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
37
37
|
getDataFilterListByID(id: number, limit?: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
38
|
-
getDataFilterList(title?: string, searchTerm?: string, category?: string, limit?: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
38
|
+
getDataFilterList(title?: string, searchTerm?: string, category?: string, limit?: number, offset?: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
39
39
|
getDataFilterListByCategory(category: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
40
40
|
deleteDataFilterList(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
41
41
|
downloadStats(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -52,7 +52,7 @@ 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
|
-
getDataCites(url?: string, title?: string, status?: string, limit?: number, offset?: number, manage?: boolean): Promise<import("axios").AxiosResponse<any, any>>;
|
|
55
|
+
getDataCites(url?: string, title?: string, status?: string, limit?: number, offset?: number, manage?: boolean, curtain_type?: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
56
56
|
getDataCiteTimeLimitedPermissionToken(suffix: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
57
57
|
getDataCiteProxyOrcidPublicRecord(orcid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
58
58
|
getDataCiteQuota(): Promise<import("axios").AxiosResponse<{
|
|
@@ -452,7 +452,7 @@ class CurtainWebAPI {
|
|
|
452
452
|
return response;
|
|
453
453
|
});
|
|
454
454
|
}
|
|
455
|
-
getDataFilterList(title = "", searchTerm = "", category = "", limit = 99999999) {
|
|
455
|
+
getDataFilterList(title = "", searchTerm = "", category = "", limit = 99999999, offset = 0) {
|
|
456
456
|
let params = new URLSearchParams();
|
|
457
457
|
if (title != "") {
|
|
458
458
|
params.append("name", title);
|
|
@@ -464,6 +464,7 @@ class CurtainWebAPI {
|
|
|
464
464
|
params.append("category", category);
|
|
465
465
|
}
|
|
466
466
|
params.append("limit", limit.toString());
|
|
467
|
+
params.append("offset", offset.toString());
|
|
467
468
|
return this.axiosInstance.get(this.baseURL + "data_filter_list/", { responseType: "json", params });
|
|
468
469
|
}
|
|
469
470
|
getDataFilterListByCategory(category) {
|
|
@@ -577,7 +578,7 @@ class CurtainWebAPI {
|
|
|
577
578
|
headers["Accept"] = "application/json";
|
|
578
579
|
return this.axiosInstance.get(this.baseURL + "datacite/" + id + "/", { headers: headers, responseType: "json" });
|
|
579
580
|
}
|
|
580
|
-
getDataCites(url, title, status, limit = 10, offset = 0, manage = false) {
|
|
581
|
+
getDataCites(url, title, status, limit = 10, offset = 0, manage = false, curtain_type = "TP") {
|
|
581
582
|
let headers = new axios_1.AxiosHeaders();
|
|
582
583
|
headers["Accept"] = "application/json";
|
|
583
584
|
let params = new URLSearchParams();
|
|
@@ -593,6 +594,9 @@ class CurtainWebAPI {
|
|
|
593
594
|
if (manage !== undefined) {
|
|
594
595
|
params.append("manage", manage.toString());
|
|
595
596
|
}
|
|
597
|
+
if (curtain_type !== undefined) {
|
|
598
|
+
params.append("curtain_type", curtain_type);
|
|
599
|
+
}
|
|
596
600
|
params.append("limit", limit.toString());
|
|
597
601
|
params.append("offset", offset.toString());
|
|
598
602
|
return this.axiosInstance.get(this.baseURL + "datacite/", { headers: headers, params: params, responseType: "json" });
|
package/package.json
CHANGED
|
@@ -449,7 +449,8 @@ export class CurtainWebAPI {
|
|
|
449
449
|
title: string = "",
|
|
450
450
|
searchTerm: string = "",
|
|
451
451
|
category: string = "",
|
|
452
|
-
limit: number = 99999999
|
|
452
|
+
limit: number = 99999999,
|
|
453
|
+
offset: number = 0
|
|
453
454
|
) {
|
|
454
455
|
let params = new URLSearchParams();
|
|
455
456
|
if (title != "") {
|
|
@@ -463,6 +464,7 @@ export class CurtainWebAPI {
|
|
|
463
464
|
}
|
|
464
465
|
|
|
465
466
|
params.append("limit", limit.toString())
|
|
467
|
+
params.append("offset", offset.toString())
|
|
466
468
|
return this.axiosInstance.get(this.baseURL + "data_filter_list/", {responseType:"json", params})
|
|
467
469
|
}
|
|
468
470
|
|
|
@@ -591,7 +593,7 @@ export class CurtainWebAPI {
|
|
|
591
593
|
return this.axiosInstance.get(this.baseURL + "datacite/" + id + "/", {headers: headers, responseType: "json"})
|
|
592
594
|
}
|
|
593
595
|
|
|
594
|
-
getDataCites(url?: string, title?: string, status?: string, limit: number = 10, offset = 0, manage: boolean = false) {
|
|
596
|
+
getDataCites(url?: string, title?: string, status?: string, limit: number = 10, offset = 0, manage: boolean = false, curtain_type: string = "TP") {
|
|
595
597
|
let headers = new AxiosHeaders()
|
|
596
598
|
headers["Accept"] = "application/json"
|
|
597
599
|
let params = new URLSearchParams()
|
|
@@ -607,6 +609,9 @@ export class CurtainWebAPI {
|
|
|
607
609
|
if (manage !== undefined) {
|
|
608
610
|
params.append("manage", manage.toString())
|
|
609
611
|
}
|
|
612
|
+
if (curtain_type !== undefined) {
|
|
613
|
+
params.append("curtain_type", curtain_type)
|
|
614
|
+
}
|
|
610
615
|
params.append("limit", limit.toString())
|
|
611
616
|
params.append("offset", offset.toString())
|
|
612
617
|
return this.axiosInstance.get(this.baseURL + "datacite/", {headers: headers, params: params, responseType: "json"})
|