curtain-web-api 1.0.72 → 1.0.74
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.
|
@@ -221,7 +221,7 @@ export declare class CurtainWebAPI {
|
|
|
221
221
|
message: string;
|
|
222
222
|
request: PermanentLinkRequest;
|
|
223
223
|
}, any, {}>>;
|
|
224
|
-
getCurtainCollections(limit?: number, offset?: number, search?: string, ordering?: string): Promise<import("axios").AxiosResponse<{
|
|
224
|
+
getCurtainCollections(limit?: number, offset?: number, search?: string, ordering?: string, curtain_id?: number, link_id?: string, owned?: boolean): Promise<import("axios").AxiosResponse<{
|
|
225
225
|
count: number;
|
|
226
226
|
results: CurtainCollection[];
|
|
227
227
|
}, any, {}>>;
|
|
@@ -874,7 +874,7 @@ export class CurtainWebAPI {
|
|
|
874
874
|
const data = admin_notes ? { admin_notes } : {};
|
|
875
875
|
return this.axiosInstance.post(this.baseURL + "permanent-link-requests/" + id + "/reject/", data, { headers: headers, responseType: "json" });
|
|
876
876
|
}
|
|
877
|
-
getCurtainCollections(limit = 10, offset = 0, search, ordering) {
|
|
877
|
+
getCurtainCollections(limit = 10, offset = 0, search, ordering, curtain_id, link_id, owned) {
|
|
878
878
|
let headers = new AxiosHeaders();
|
|
879
879
|
headers["Accept"] = "application/json";
|
|
880
880
|
let params = new URLSearchParams();
|
|
@@ -886,6 +886,15 @@ export class CurtainWebAPI {
|
|
|
886
886
|
if (ordering) {
|
|
887
887
|
params.append("ordering", ordering);
|
|
888
888
|
}
|
|
889
|
+
if (curtain_id) {
|
|
890
|
+
params.append("curtain_id", curtain_id.toString());
|
|
891
|
+
}
|
|
892
|
+
if (link_id) {
|
|
893
|
+
params.append("link_id", link_id);
|
|
894
|
+
}
|
|
895
|
+
if (owned !== undefined) {
|
|
896
|
+
params.append("owned", owned.toString());
|
|
897
|
+
}
|
|
889
898
|
return this.axiosInstance.get(this.baseURL + "curtain-collections/", { headers: headers, params: params, responseType: "json" });
|
|
890
899
|
}
|
|
891
900
|
getCurtainCollection(id) {
|
package/package.json
CHANGED
|
@@ -1120,7 +1120,7 @@ export class CurtainWebAPI {
|
|
|
1120
1120
|
return this.axiosInstance.post<{message: string, request: PermanentLinkRequest}>(this.baseURL + "permanent-link-requests/" + id + "/reject/", data, {headers: headers, responseType: "json"});
|
|
1121
1121
|
}
|
|
1122
1122
|
|
|
1123
|
-
getCurtainCollections(limit: number = 10, offset: number = 0, search?: string, ordering?: string) {
|
|
1123
|
+
getCurtainCollections(limit: number = 10, offset: number = 0, search?: string, ordering?: string, curtain_id?: number, link_id?: string, owned?: boolean) {
|
|
1124
1124
|
let headers = new AxiosHeaders();
|
|
1125
1125
|
headers["Accept"] = "application/json";
|
|
1126
1126
|
let params = new URLSearchParams();
|
|
@@ -1132,6 +1132,15 @@ export class CurtainWebAPI {
|
|
|
1132
1132
|
if (ordering) {
|
|
1133
1133
|
params.append("ordering", ordering);
|
|
1134
1134
|
}
|
|
1135
|
+
if (curtain_id) {
|
|
1136
|
+
params.append("curtain_id", curtain_id.toString());
|
|
1137
|
+
}
|
|
1138
|
+
if (link_id) {
|
|
1139
|
+
params.append("link_id", link_id);
|
|
1140
|
+
}
|
|
1141
|
+
if (owned !== undefined) {
|
|
1142
|
+
params.append("owned", owned.toString());
|
|
1143
|
+
}
|
|
1135
1144
|
return this.axiosInstance.get<{count: number, results: CurtainCollection[]}>(this.baseURL + "curtain-collections/", {headers: headers, params: params, responseType: "json"});
|
|
1136
1145
|
}
|
|
1137
1146
|
|