curtain-web-api 1.0.78 → 1.0.79
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.
|
@@ -98,16 +98,25 @@ export interface CreatePermanentLinkRequest {
|
|
|
98
98
|
requested_expiry_months?: number;
|
|
99
99
|
reason?: string;
|
|
100
100
|
}
|
|
101
|
+
export interface AccessibleCurtain {
|
|
102
|
+
id: number;
|
|
103
|
+
link_id: string;
|
|
104
|
+
description: string;
|
|
105
|
+
created: string;
|
|
106
|
+
curtain_type: string;
|
|
107
|
+
}
|
|
101
108
|
export interface CurtainCollection {
|
|
102
109
|
id: number;
|
|
103
110
|
created: string;
|
|
104
111
|
updated: string;
|
|
105
112
|
name: string;
|
|
106
113
|
description: string;
|
|
114
|
+
enable: boolean;
|
|
107
115
|
owner: number;
|
|
108
116
|
owner_username: string;
|
|
109
117
|
curtains: number[];
|
|
110
118
|
curtain_count: number;
|
|
119
|
+
accessible_curtains: AccessibleCurtain[];
|
|
111
120
|
}
|
|
112
121
|
export interface CreateCurtainCollection {
|
|
113
122
|
name: string;
|
|
@@ -117,6 +126,7 @@ export interface CreateCurtainCollection {
|
|
|
117
126
|
export interface UpdateCurtainCollection {
|
|
118
127
|
name?: string;
|
|
119
128
|
description?: string;
|
|
129
|
+
enable?: boolean;
|
|
120
130
|
curtains?: number[];
|
|
121
131
|
}
|
|
122
132
|
export interface AddCurtainToCollection {
|
|
@@ -257,7 +267,7 @@ export declare class CurtainWebAPI {
|
|
|
257
267
|
count: number;
|
|
258
268
|
results: CurtainCollection[];
|
|
259
269
|
}, any, {}>>;
|
|
260
|
-
getCurtainCollection(id: number): Promise<import("axios").AxiosResponse<CurtainCollection, any, {}>>;
|
|
270
|
+
getCurtainCollection(id: number, curtainType?: string): Promise<import("axios").AxiosResponse<CurtainCollection, any, {}>>;
|
|
261
271
|
getCurtainCollectionSessions(id: number): Promise<import("axios").AxiosResponse<{
|
|
262
272
|
collection_id: number;
|
|
263
273
|
collection_name: string;
|
|
@@ -963,10 +963,14 @@ export class CurtainWebAPI {
|
|
|
963
963
|
}
|
|
964
964
|
return this.axiosInstance.get(this.baseURL + "curtain-collections/", { headers: headers, params: params, responseType: "json" });
|
|
965
965
|
}
|
|
966
|
-
getCurtainCollection(id) {
|
|
966
|
+
getCurtainCollection(id, curtainType) {
|
|
967
967
|
let headers = new AxiosHeaders();
|
|
968
968
|
headers["Accept"] = "application/json";
|
|
969
|
-
|
|
969
|
+
let params = new URLSearchParams();
|
|
970
|
+
if (curtainType) {
|
|
971
|
+
params.append("curtain_type", curtainType);
|
|
972
|
+
}
|
|
973
|
+
return this.axiosInstance.get(this.baseURL + "curtain-collections/" + id + "/", { headers: headers, params: params, responseType: "json" });
|
|
970
974
|
}
|
|
971
975
|
getCurtainCollectionSessions(id) {
|
|
972
976
|
let headers = new AxiosHeaders();
|
package/package.json
CHANGED
|
@@ -136,16 +136,26 @@ export interface CreatePermanentLinkRequest {
|
|
|
136
136
|
reason?: string;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
+
export interface AccessibleCurtain {
|
|
140
|
+
id: number;
|
|
141
|
+
link_id: string;
|
|
142
|
+
description: string;
|
|
143
|
+
created: string;
|
|
144
|
+
curtain_type: string;
|
|
145
|
+
}
|
|
146
|
+
|
|
139
147
|
export interface CurtainCollection {
|
|
140
148
|
id: number;
|
|
141
149
|
created: string;
|
|
142
150
|
updated: string;
|
|
143
151
|
name: string;
|
|
144
152
|
description: string;
|
|
153
|
+
enable: boolean;
|
|
145
154
|
owner: number;
|
|
146
155
|
owner_username: string;
|
|
147
156
|
curtains: number[];
|
|
148
157
|
curtain_count: number;
|
|
158
|
+
accessible_curtains: AccessibleCurtain[];
|
|
149
159
|
}
|
|
150
160
|
|
|
151
161
|
export interface CreateCurtainCollection {
|
|
@@ -157,6 +167,7 @@ export interface CreateCurtainCollection {
|
|
|
157
167
|
export interface UpdateCurtainCollection {
|
|
158
168
|
name?: string;
|
|
159
169
|
description?: string;
|
|
170
|
+
enable?: boolean;
|
|
160
171
|
curtains?: number[];
|
|
161
172
|
}
|
|
162
173
|
|
|
@@ -1246,10 +1257,14 @@ export class CurtainWebAPI {
|
|
|
1246
1257
|
return this.axiosInstance.get<{count: number, results: CurtainCollection[]}>(this.baseURL + "curtain-collections/", {headers: headers, params: params, responseType: "json"});
|
|
1247
1258
|
}
|
|
1248
1259
|
|
|
1249
|
-
getCurtainCollection(id: number) {
|
|
1260
|
+
getCurtainCollection(id: number, curtainType?: string) {
|
|
1250
1261
|
let headers = new AxiosHeaders();
|
|
1251
1262
|
headers["Accept"] = "application/json";
|
|
1252
|
-
|
|
1263
|
+
let params = new URLSearchParams();
|
|
1264
|
+
if (curtainType) {
|
|
1265
|
+
params.append("curtain_type", curtainType);
|
|
1266
|
+
}
|
|
1267
|
+
return this.axiosInstance.get<CurtainCollection>(this.baseURL + "curtain-collections/" + id + "/", {headers: headers, params: params, responseType: "json"});
|
|
1253
1268
|
}
|
|
1254
1269
|
|
|
1255
1270
|
getCurtainCollectionSessions(id: number) {
|