@flexbe/sdk 0.2.19 → 0.2.21
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.
|
@@ -257,7 +257,7 @@ export class Pages {
|
|
|
257
257
|
/**
|
|
258
258
|
* Update page content
|
|
259
259
|
* @param pageId - ID of the page to update content for
|
|
260
|
-
* @param content - The new page content
|
|
260
|
+
* @param content - The new page content (excluding versionId and versionTime)
|
|
261
261
|
* @returns The updated page content
|
|
262
262
|
* @throws {UnauthorizedException} When the API key is invalid or expired
|
|
263
263
|
* @throws {NotFoundException} When the page is not found
|
package/dist/cjs/client/pages.js
CHANGED
|
@@ -229,7 +229,7 @@ class Pages {
|
|
|
229
229
|
/**
|
|
230
230
|
* Update page content
|
|
231
231
|
* @param pageId - ID of the page to update content for
|
|
232
|
-
* @param content - The new page content
|
|
232
|
+
* @param content - The new page content (excluding versionId and versionTime)
|
|
233
233
|
* @returns The updated page content
|
|
234
234
|
* @throws {UnauthorizedException} When the API key is invalid or expired
|
|
235
235
|
* @throws {NotFoundException} When the page is not found
|
package/dist/esm/client/pages.js
CHANGED
|
@@ -226,7 +226,7 @@ export class Pages {
|
|
|
226
226
|
/**
|
|
227
227
|
* Update page content
|
|
228
228
|
* @param pageId - ID of the page to update content for
|
|
229
|
-
* @param content - The new page content
|
|
229
|
+
* @param content - The new page content (excluding versionId and versionTime)
|
|
230
230
|
* @returns The updated page content
|
|
231
231
|
* @throws {UnauthorizedException} When the API key is invalid or expired
|
|
232
232
|
* @throws {NotFoundException} When the page is not found
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Page, GetPagesParams, PageListResponse, PageFolder, PageFolderListResponse, UpdateFolderParams, CreateFolderParams, UpdatePageParams, BulkUpdatePageItem, BulkUpdateResponse, BulkUpdateFolderItem, BulkUpdateFolderResponse, BulkDeleteResponse, PageContent } from '../types/pages';
|
|
1
|
+
import { Page, GetPagesParams, PageListResponse, PageFolder, PageFolderListResponse, UpdateFolderParams, CreateFolderParams, UpdatePageParams, BulkUpdatePageItem, BulkUpdateResponse, BulkUpdateFolderItem, BulkUpdateFolderResponse, BulkDeleteResponse, PageContent, UpdatePageContentParams } from '../types/pages';
|
|
2
2
|
import { ApiClient } from './api-client';
|
|
3
3
|
export declare class Pages {
|
|
4
4
|
private readonly api;
|
|
@@ -183,7 +183,7 @@ export declare class Pages {
|
|
|
183
183
|
/**
|
|
184
184
|
* Update page content
|
|
185
185
|
* @param pageId - ID of the page to update content for
|
|
186
|
-
* @param content - The new page content
|
|
186
|
+
* @param content - The new page content (excluding versionId and versionTime)
|
|
187
187
|
* @returns The updated page content
|
|
188
188
|
* @throws {UnauthorizedException} When the API key is invalid or expired
|
|
189
189
|
* @throws {NotFoundException} When the page is not found
|
|
@@ -192,5 +192,5 @@ export declare class Pages {
|
|
|
192
192
|
* @throws {ServerException} When the server encounters an error
|
|
193
193
|
* @throws {TimeoutException} When the request times out
|
|
194
194
|
*/
|
|
195
|
-
updatePageContent(pageId: number, content: Partial<
|
|
195
|
+
updatePageContent(pageId: number, content: Partial<UpdatePageContentParams>): Promise<PageContent>;
|
|
196
196
|
}
|
|
@@ -273,6 +273,8 @@ export interface PageModal {
|
|
|
273
273
|
screenshot: ImageObj | null;
|
|
274
274
|
}
|
|
275
275
|
export interface PageContent {
|
|
276
|
+
versionId: number;
|
|
277
|
+
versionTime: number;
|
|
276
278
|
blocks: PageBlock[];
|
|
277
279
|
modals: PageModal[];
|
|
278
280
|
elements: PageElement[];
|
|
@@ -289,4 +291,5 @@ export interface PageContent {
|
|
|
289
291
|
files: string[];
|
|
290
292
|
};
|
|
291
293
|
}
|
|
294
|
+
export type UpdatePageContentParams = Omit<PageContent, 'versionId' | 'versionTime'>;
|
|
292
295
|
export {};
|