curtain-web-api 1.0.73 → 1.0.75
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,11 +221,16 @@ 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, {}>>;
|
|
228
228
|
getCurtainCollection(id: number): Promise<import("axios").AxiosResponse<CurtainCollection, any, {}>>;
|
|
229
|
+
getCurtainCollectionSessions(id: number): Promise<import("axios").AxiosResponse<{
|
|
230
|
+
collection_id: number;
|
|
231
|
+
collection_name: string;
|
|
232
|
+
curtains: any[];
|
|
233
|
+
}, any, {}>>;
|
|
229
234
|
createCurtainCollection(collection: CreateCurtainCollection): Promise<import("axios").AxiosResponse<CurtainCollection, any, {}>>;
|
|
230
235
|
updateCurtainCollection(id: number, collection: UpdateCurtainCollection): Promise<import("axios").AxiosResponse<CurtainCollection, any, {}>>;
|
|
231
236
|
deleteCurtainCollection(id: number): Promise<import("axios").AxiosResponse<any, 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) {
|
|
@@ -899,6 +902,11 @@ export class CurtainWebAPI {
|
|
|
899
902
|
headers["Accept"] = "application/json";
|
|
900
903
|
return this.axiosInstance.get(this.baseURL + "curtain-collections/" + id + "/", { headers: headers, responseType: "json" });
|
|
901
904
|
}
|
|
905
|
+
getCurtainCollectionSessions(id) {
|
|
906
|
+
let headers = new AxiosHeaders();
|
|
907
|
+
headers["Accept"] = "application/json";
|
|
908
|
+
return this.axiosInstance.get(this.baseURL + "curtain-collections/" + id + "/curtains/", { headers: headers, responseType: "json" });
|
|
909
|
+
}
|
|
902
910
|
createCurtainCollection(collection) {
|
|
903
911
|
let headers = new AxiosHeaders();
|
|
904
912
|
headers["Accept"] = "application/json";
|
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, 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
|
|
|
@@ -1147,6 +1150,12 @@ export class CurtainWebAPI {
|
|
|
1147
1150
|
return this.axiosInstance.get<CurtainCollection>(this.baseURL + "curtain-collections/" + id + "/", {headers: headers, responseType: "json"});
|
|
1148
1151
|
}
|
|
1149
1152
|
|
|
1153
|
+
getCurtainCollectionSessions(id: number) {
|
|
1154
|
+
let headers = new AxiosHeaders();
|
|
1155
|
+
headers["Accept"] = "application/json";
|
|
1156
|
+
return this.axiosInstance.get<{collection_id: number, collection_name: string, curtains: any[]}>(this.baseURL + "curtain-collections/" + id + "/curtains/", {headers: headers, responseType: "json"});
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1150
1159
|
createCurtainCollection(collection: CreateCurtainCollection) {
|
|
1151
1160
|
let headers = new AxiosHeaders();
|
|
1152
1161
|
headers["Accept"] = "application/json";
|