@flexbe/sdk 0.2.20 → 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
@@ -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
@@ -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<PageContent>): Promise<PageContent>;
195
+ updatePageContent(pageId: number, content: Partial<UpdatePageContentParams>): Promise<PageContent>;
196
196
  }
@@ -291,4 +291,5 @@ export interface PageContent {
291
291
  files: string[];
292
292
  };
293
293
  }
294
+ export type UpdatePageContentParams = Omit<PageContent, 'versionId' | 'versionTime'>;
294
295
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flexbe/sdk",
3
- "version": "0.2.20",
3
+ "version": "0.2.21",
4
4
  "description": "TypeScript SDK for Flexbe API",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",