@flexbe/sdk 0.2.38 → 0.2.39
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.
|
@@ -273,39 +273,6 @@ export class Pages {
|
|
|
273
273
|
return response.data;
|
|
274
274
|
});
|
|
275
275
|
}
|
|
276
|
-
/**
|
|
277
|
-
* Get list of page history items
|
|
278
|
-
* @param pageId - ID of the page to get history for
|
|
279
|
-
* @returns List of page history items
|
|
280
|
-
* @throws {UnauthorizedException} When the API key is invalid or expired
|
|
281
|
-
* @throws {NotFoundException} When the page is not found
|
|
282
|
-
* @throws {ForbiddenException} When the page does not belong to the site
|
|
283
|
-
* @throws {ServerException} When the server encounters an error
|
|
284
|
-
* @throws {TimeoutException} When the request times out
|
|
285
|
-
*/
|
|
286
|
-
getPageHistory(pageId) {
|
|
287
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
288
|
-
const response = yield this.api.get(`/sites/${this.siteId}/pages/${pageId}/history`);
|
|
289
|
-
return response.data;
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
/**
|
|
293
|
-
* Get a specific page history item
|
|
294
|
-
* @param pageId - ID of the page
|
|
295
|
-
* @param versionId - ID of the history item to get
|
|
296
|
-
* @returns The requested page history item with data
|
|
297
|
-
* @throws {UnauthorizedException} When the API key is invalid or expired
|
|
298
|
-
* @throws {NotFoundException} When the page or history item is not found
|
|
299
|
-
* @throws {ForbiddenException} When the page does not belong to the site
|
|
300
|
-
* @throws {ServerException} When the server encounters an error
|
|
301
|
-
* @throws {TimeoutException} When the request times out
|
|
302
|
-
*/
|
|
303
|
-
getPageHistoryItem(pageId, versionId) {
|
|
304
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
305
|
-
const response = yield this.api.get(`/sites/${this.siteId}/pages/${pageId}/history/${versionId}`);
|
|
306
|
-
return response.data;
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
276
|
/**
|
|
310
277
|
* Get list of page versions
|
|
311
278
|
* @param pageId - ID of the page to get versions for
|
|
@@ -322,22 +289,6 @@ export class Pages {
|
|
|
322
289
|
return response.data;
|
|
323
290
|
});
|
|
324
291
|
}
|
|
325
|
-
/**
|
|
326
|
-
* @deprecated Use getVersions instead, remove it after frontend will be updated
|
|
327
|
-
* @param pageId - ID of the page to get versions for
|
|
328
|
-
* @returns List of page versions
|
|
329
|
-
* @throws {UnauthorizedException} When the API key is invalid or expired
|
|
330
|
-
* @throws {NotFoundException} When the page is not found
|
|
331
|
-
* @throws {ForbiddenException} When the page does not belong to the site
|
|
332
|
-
* @throws {ServerException} When the server encounters an error
|
|
333
|
-
* @throws {TimeoutException} When the request times out
|
|
334
|
-
*/
|
|
335
|
-
getPageVersions(pageId) {
|
|
336
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
337
|
-
const response = yield this.api.get(`/sites/${this.siteId}/pages/${pageId}/versions`);
|
|
338
|
-
return response.data;
|
|
339
|
-
});
|
|
340
|
-
}
|
|
341
292
|
/**
|
|
342
293
|
* Get a specific page version
|
|
343
294
|
* @param pageId - ID of the page
|
package/dist/cjs/client/pages.js
CHANGED
|
@@ -244,35 +244,6 @@ class Pages {
|
|
|
244
244
|
const response = await this.api.put(`/sites/${this.siteId}/pages/${pageId}/content`, content);
|
|
245
245
|
return response.data;
|
|
246
246
|
}
|
|
247
|
-
/**
|
|
248
|
-
* Get list of page history items
|
|
249
|
-
* @param pageId - ID of the page to get history for
|
|
250
|
-
* @returns List of page history items
|
|
251
|
-
* @throws {UnauthorizedException} When the API key is invalid or expired
|
|
252
|
-
* @throws {NotFoundException} When the page is not found
|
|
253
|
-
* @throws {ForbiddenException} When the page does not belong to the site
|
|
254
|
-
* @throws {ServerException} When the server encounters an error
|
|
255
|
-
* @throws {TimeoutException} When the request times out
|
|
256
|
-
*/
|
|
257
|
-
async getPageHistory(pageId) {
|
|
258
|
-
const response = await this.api.get(`/sites/${this.siteId}/pages/${pageId}/history`);
|
|
259
|
-
return response.data;
|
|
260
|
-
}
|
|
261
|
-
/**
|
|
262
|
-
* Get a specific page history item
|
|
263
|
-
* @param pageId - ID of the page
|
|
264
|
-
* @param versionId - ID of the history item to get
|
|
265
|
-
* @returns The requested page history item with data
|
|
266
|
-
* @throws {UnauthorizedException} When the API key is invalid or expired
|
|
267
|
-
* @throws {NotFoundException} When the page or history item is not found
|
|
268
|
-
* @throws {ForbiddenException} When the page does not belong to the site
|
|
269
|
-
* @throws {ServerException} When the server encounters an error
|
|
270
|
-
* @throws {TimeoutException} When the request times out
|
|
271
|
-
*/
|
|
272
|
-
async getPageHistoryItem(pageId, versionId) {
|
|
273
|
-
const response = await this.api.get(`/sites/${this.siteId}/pages/${pageId}/history/${versionId}`);
|
|
274
|
-
return response.data;
|
|
275
|
-
}
|
|
276
247
|
/**
|
|
277
248
|
* Get list of page versions
|
|
278
249
|
* @param pageId - ID of the page to get versions for
|
|
@@ -287,20 +258,6 @@ class Pages {
|
|
|
287
258
|
const response = await this.api.get(`/sites/${this.siteId}/pages/${pageId}/versions`);
|
|
288
259
|
return response.data;
|
|
289
260
|
}
|
|
290
|
-
/**
|
|
291
|
-
* @deprecated Use getVersions instead, remove it after frontend will be updated
|
|
292
|
-
* @param pageId - ID of the page to get versions for
|
|
293
|
-
* @returns List of page versions
|
|
294
|
-
* @throws {UnauthorizedException} When the API key is invalid or expired
|
|
295
|
-
* @throws {NotFoundException} When the page is not found
|
|
296
|
-
* @throws {ForbiddenException} When the page does not belong to the site
|
|
297
|
-
* @throws {ServerException} When the server encounters an error
|
|
298
|
-
* @throws {TimeoutException} When the request times out
|
|
299
|
-
*/
|
|
300
|
-
async getPageVersions(pageId) {
|
|
301
|
-
const response = await this.api.get(`/sites/${this.siteId}/pages/${pageId}/versions`);
|
|
302
|
-
return response.data;
|
|
303
|
-
}
|
|
304
261
|
/**
|
|
305
262
|
* Get a specific page version
|
|
306
263
|
* @param pageId - ID of the page
|
package/dist/esm/client/pages.js
CHANGED
|
@@ -241,35 +241,6 @@ export class Pages {
|
|
|
241
241
|
const response = await this.api.put(`/sites/${this.siteId}/pages/${pageId}/content`, content);
|
|
242
242
|
return response.data;
|
|
243
243
|
}
|
|
244
|
-
/**
|
|
245
|
-
* Get list of page history items
|
|
246
|
-
* @param pageId - ID of the page to get history for
|
|
247
|
-
* @returns List of page history items
|
|
248
|
-
* @throws {UnauthorizedException} When the API key is invalid or expired
|
|
249
|
-
* @throws {NotFoundException} When the page is not found
|
|
250
|
-
* @throws {ForbiddenException} When the page does not belong to the site
|
|
251
|
-
* @throws {ServerException} When the server encounters an error
|
|
252
|
-
* @throws {TimeoutException} When the request times out
|
|
253
|
-
*/
|
|
254
|
-
async getPageHistory(pageId) {
|
|
255
|
-
const response = await this.api.get(`/sites/${this.siteId}/pages/${pageId}/history`);
|
|
256
|
-
return response.data;
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* Get a specific page history item
|
|
260
|
-
* @param pageId - ID of the page
|
|
261
|
-
* @param versionId - ID of the history item to get
|
|
262
|
-
* @returns The requested page history item with data
|
|
263
|
-
* @throws {UnauthorizedException} When the API key is invalid or expired
|
|
264
|
-
* @throws {NotFoundException} When the page or history item is not found
|
|
265
|
-
* @throws {ForbiddenException} When the page does not belong to the site
|
|
266
|
-
* @throws {ServerException} When the server encounters an error
|
|
267
|
-
* @throws {TimeoutException} When the request times out
|
|
268
|
-
*/
|
|
269
|
-
async getPageHistoryItem(pageId, versionId) {
|
|
270
|
-
const response = await this.api.get(`/sites/${this.siteId}/pages/${pageId}/history/${versionId}`);
|
|
271
|
-
return response.data;
|
|
272
|
-
}
|
|
273
244
|
/**
|
|
274
245
|
* Get list of page versions
|
|
275
246
|
* @param pageId - ID of the page to get versions for
|
|
@@ -284,20 +255,6 @@ export class Pages {
|
|
|
284
255
|
const response = await this.api.get(`/sites/${this.siteId}/pages/${pageId}/versions`);
|
|
285
256
|
return response.data;
|
|
286
257
|
}
|
|
287
|
-
/**
|
|
288
|
-
* @deprecated Use getVersions instead, remove it after frontend will be updated
|
|
289
|
-
* @param pageId - ID of the page to get versions for
|
|
290
|
-
* @returns List of page versions
|
|
291
|
-
* @throws {UnauthorizedException} When the API key is invalid or expired
|
|
292
|
-
* @throws {NotFoundException} When the page is not found
|
|
293
|
-
* @throws {ForbiddenException} When the page does not belong to the site
|
|
294
|
-
* @throws {ServerException} When the server encounters an error
|
|
295
|
-
* @throws {TimeoutException} When the request times out
|
|
296
|
-
*/
|
|
297
|
-
async getPageVersions(pageId) {
|
|
298
|
-
const response = await this.api.get(`/sites/${this.siteId}/pages/${pageId}/versions`);
|
|
299
|
-
return response.data;
|
|
300
|
-
}
|
|
301
258
|
/**
|
|
302
259
|
* Get a specific page version
|
|
303
260
|
* @param pageId - ID of the page
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiClient } from './api-client';
|
|
2
|
-
import { BulkDeleteResponse, BulkUpdateFolderItem, BulkUpdateFolderResponse, BulkUpdatePageItem, BulkUpdateResponse, CreateFolderParams, CreatePageVersionParams, GetPagesParams, Page, PageContent, PageFolder, PageFolderListResponse,
|
|
2
|
+
import { BulkDeleteResponse, BulkUpdateFolderItem, BulkUpdateFolderResponse, BulkUpdatePageItem, BulkUpdateResponse, CreateFolderParams, CreatePageVersionParams, GetPagesParams, Page, PageContent, PageFolder, PageFolderListResponse, PageListResponse, PageVersionDataResponse, PageVersionListResponse, UpdateFolderParams, UpdatePageContentParams, UpdatePageParams } from '../types/pages';
|
|
3
3
|
export declare class Pages {
|
|
4
4
|
private readonly api;
|
|
5
5
|
private readonly siteId;
|
|
@@ -193,29 +193,6 @@ export declare class Pages {
|
|
|
193
193
|
* @throws {TimeoutException} When the request times out
|
|
194
194
|
*/
|
|
195
195
|
updatePageContent(pageId: number, content: Partial<UpdatePageContentParams>): Promise<PageContent>;
|
|
196
|
-
/**
|
|
197
|
-
* Get list of page history items
|
|
198
|
-
* @param pageId - ID of the page to get history for
|
|
199
|
-
* @returns List of page history items
|
|
200
|
-
* @throws {UnauthorizedException} When the API key is invalid or expired
|
|
201
|
-
* @throws {NotFoundException} When the page is not found
|
|
202
|
-
* @throws {ForbiddenException} When the page does not belong to the site
|
|
203
|
-
* @throws {ServerException} When the server encounters an error
|
|
204
|
-
* @throws {TimeoutException} When the request times out
|
|
205
|
-
*/
|
|
206
|
-
getPageHistory(pageId: number): Promise<PageHistoryListResponse>;
|
|
207
|
-
/**
|
|
208
|
-
* Get a specific page history item
|
|
209
|
-
* @param pageId - ID of the page
|
|
210
|
-
* @param versionId - ID of the history item to get
|
|
211
|
-
* @returns The requested page history item with data
|
|
212
|
-
* @throws {UnauthorizedException} When the API key is invalid or expired
|
|
213
|
-
* @throws {NotFoundException} When the page or history item is not found
|
|
214
|
-
* @throws {ForbiddenException} When the page does not belong to the site
|
|
215
|
-
* @throws {ServerException} When the server encounters an error
|
|
216
|
-
* @throws {TimeoutException} When the request times out
|
|
217
|
-
*/
|
|
218
|
-
getPageHistoryItem(pageId: number, versionId: number): Promise<PageHistoryItemData>;
|
|
219
196
|
/**
|
|
220
197
|
* Get list of page versions
|
|
221
198
|
* @param pageId - ID of the page to get versions for
|
|
@@ -227,17 +204,6 @@ export declare class Pages {
|
|
|
227
204
|
* @throws {TimeoutException} When the request times out
|
|
228
205
|
*/
|
|
229
206
|
getVersions(pageId: number): Promise<PageVersionListResponse>;
|
|
230
|
-
/**
|
|
231
|
-
* @deprecated Use getVersions instead, remove it after frontend will be updated
|
|
232
|
-
* @param pageId - ID of the page to get versions for
|
|
233
|
-
* @returns List of page versions
|
|
234
|
-
* @throws {UnauthorizedException} When the API key is invalid or expired
|
|
235
|
-
* @throws {NotFoundException} When the page is not found
|
|
236
|
-
* @throws {ForbiddenException} When the page does not belong to the site
|
|
237
|
-
* @throws {ServerException} When the server encounters an error
|
|
238
|
-
* @throws {TimeoutException} When the request times out
|
|
239
|
-
*/
|
|
240
|
-
getPageVersions(pageId: number): Promise<PageVersionListResponse>;
|
|
241
207
|
/**
|
|
242
208
|
* Get a specific page version
|
|
243
209
|
* @param pageId - ID of the page
|