curtain-web-api 1.0.73 → 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, curtain_id?: number, link_id?: 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, curtain_id, link_id) {
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();
@@ -892,6 +892,9 @@ export class CurtainWebAPI {
892
892
  if (link_id) {
893
893
  params.append("link_id", link_id);
894
894
  }
895
+ if (owned !== undefined) {
896
+ params.append("owned", owned.toString());
897
+ }
895
898
  return this.axiosInstance.get(this.baseURL + "curtain-collections/", { headers: headers, params: params, responseType: "json" });
896
899
  }
897
900
  getCurtainCollection(id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "curtain-web-api",
3
- "version": "1.0.73",
3
+ "version": "1.0.74",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",
@@ -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, curtain_id?: number, link_id?: 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();
@@ -1138,6 +1138,9 @@ export class CurtainWebAPI {
1138
1138
  if (link_id) {
1139
1139
  params.append("link_id", link_id);
1140
1140
  }
1141
+ if (owned !== undefined) {
1142
+ params.append("owned", owned.toString());
1143
+ }
1141
1144
  return this.axiosInstance.get<{count: number, results: CurtainCollection[]}>(this.baseURL + "curtain-collections/", {headers: headers, params: params, responseType: "json"});
1142
1145
  }
1143
1146