curtain-web-api 1.0.60 → 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 +1 -1
- package/build/classes/curtain-api.js +2 -1
- package/package.json +1 -1
- package/src/classes/curtain-api.ts +3 -1
|
@@ -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>>;
|
|
@@ -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) {
|
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
|
|