curtain-web-api 1.0.76 → 1.0.77
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.
|
@@ -178,7 +178,7 @@ export declare class CurtainWebAPI {
|
|
|
178
178
|
addOwner(linkId: string, owner: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
179
179
|
removeOwner(linkId: string, owner: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
180
180
|
getCurtainLinks(username: string, sessionDescription?: string, offset?: number, sessionType?: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
181
|
-
getSiteProperties(): Promise<import("axios").AxiosResponse<SiteProperties, any, {}>>;
|
|
181
|
+
getSiteProperties(appType?: string): Promise<import("axios").AxiosResponse<SiteProperties, any, {}>>;
|
|
182
182
|
saveDataFilterList(name: string, data: string, category?: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
183
183
|
getDataFilterListByID(id: number, limit?: number): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
184
184
|
getDataFilterList(title?: string, searchTerm?: string, category?: string, limit?: number, offset?: number): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
@@ -414,10 +414,14 @@ export class CurtainWebAPI {
|
|
|
414
414
|
return response;
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
|
-
getSiteProperties() {
|
|
417
|
+
getSiteProperties(appType) {
|
|
418
418
|
let headers = new AxiosHeaders();
|
|
419
419
|
headers["Accept"] = "application/json";
|
|
420
|
-
|
|
420
|
+
let params = new URLSearchParams();
|
|
421
|
+
if (appType) {
|
|
422
|
+
params.append("app", appType);
|
|
423
|
+
}
|
|
424
|
+
return this.axiosInstance.get(this.baseURL + "site-properties/", { headers: headers, params: params, responseType: "json" });
|
|
421
425
|
}
|
|
422
426
|
saveDataFilterList(name, data, category = "") {
|
|
423
427
|
let headers = new AxiosHeaders();
|
package/package.json
CHANGED
|
@@ -610,10 +610,14 @@ export class CurtainWebAPI {
|
|
|
610
610
|
});
|
|
611
611
|
}
|
|
612
612
|
|
|
613
|
-
getSiteProperties() {
|
|
613
|
+
getSiteProperties(appType?: string) {
|
|
614
614
|
let headers = new AxiosHeaders();
|
|
615
615
|
headers["Accept"] = "application/json";
|
|
616
|
-
|
|
616
|
+
let params = new URLSearchParams();
|
|
617
|
+
if (appType) {
|
|
618
|
+
params.append("app", appType);
|
|
619
|
+
}
|
|
620
|
+
return this.axiosInstance.get<SiteProperties>(this.baseURL + "site-properties/", {headers: headers, params: params, responseType:"json"});
|
|
617
621
|
}
|
|
618
622
|
|
|
619
623
|
saveDataFilterList(name: string, data: string, category: string = "") {
|