Updates page API interactions and regenerates Kiota client
Refactors page-related API interactions and client-side logic to align with an updated Kiota client and recent backend API changes. * Regenerates Kiota client with `--clear-cache` to ensure integration with the latest OpenAPI specification. * Adapts page data mapping to handle Kiota's improved type generation for `content`, `parentPageId`, `createdAt`, `updatedAt`, and `sortOrder`, which now correctly map to primitive types. * Updates page listing and detail fetching to consume responses wrapped in `PageListResponseDto` instead of direct arrays. * Removes explicit `userId` parameters from `createPage`, `updatePage`, and `deletePage` functions, as user context is now handled by server-side authentication. * Extends the `updatePage` functionality to allow modifications of `parentId` and `sortOrder`. * Standardizes API error responses across Kiota-generated endpoints to use a generic `ErrorResponseDto`. * Corrects Kiota-generated response types for several primitive endpoints from `ArrayBuffer` to `string`. * Enhances the UI to support space-aware page creation and navigation flows, including a new "Add Sub Page" option directly from the sidebar for hierarchical page management.
This commit is contained in:
1 parent
712dce8391
commit
0a718651b2
17 files changed
+444
-331
No files matched your search
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"descriptionHash": "C64A91036F62D15D93162E3F7F5EE01034379FC42298C27FCC2D9B38675AD428119460B568D89EC1A9B819B52FD11892B94DEC504EE319DD5FDEA1A4032450A4",
|
||||
"descriptionHash": "A4E87469774A711C65C7C38D1FFF5D2AE8A03EB6DCF7EAAF17C32D88B642FB38D172697FBC5C22F9955B0487E7AC11061A94CA71B0C1479B601A4292AA1F7090",
|
||||
"descriptionLocation": "https://wiki.dahyeon.us/v1/api-yaml",
|
||||
"lockFileVersion": "1.0.0",
|
||||
"kiotaVersion": "1.28.0",
|
||||
|
||||
Reference in new issue
Block a user