curtain-web-api 1.0.74 → 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.
|
@@ -226,6 +226,11 @@ export declare class CurtainWebAPI {
|
|
|
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, {}>>;
|
|
@@ -902,6 +902,11 @@ export class CurtainWebAPI {
|
|
|
902
902
|
headers["Accept"] = "application/json";
|
|
903
903
|
return this.axiosInstance.get(this.baseURL + "curtain-collections/" + id + "/", { headers: headers, responseType: "json" });
|
|
904
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
|
+
}
|
|
905
910
|
createCurtainCollection(collection) {
|
|
906
911
|
let headers = new AxiosHeaders();
|
|
907
912
|
headers["Accept"] = "application/json";
|
package/package.json
CHANGED
|
@@ -1150,6 +1150,12 @@ export class CurtainWebAPI {
|
|
|
1150
1150
|
return this.axiosInstance.get<CurtainCollection>(this.baseURL + "curtain-collections/" + id + "/", {headers: headers, responseType: "json"});
|
|
1151
1151
|
}
|
|
1152
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
|
+
|
|
1153
1159
|
createCurtainCollection(collection: CreateCurtainCollection) {
|
|
1154
1160
|
let headers = new AxiosHeaders();
|
|
1155
1161
|
headers["Accept"] = "application/json";
|