Implement EdgeDB and Role Management Functionality in Client-side TypeScript SDK #13
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
help wanted
Extra attention is needed
Client-side GitHub Issue
Description:
We need to implement the EdgeDB and role management functionality in the client-side TypeScript SDK, similar to the Python SDK implementation. This includes the following features:
Role Management: Implement methods for retrieving all roles, adding/deleting roles, and adding/deleting permissions for roles. These methods should make API calls to the server-side SDK and handle the responses accordingly.
Response Classes: Implement separate response classes for each method in the role management functionality, such as
GetAllRolesResponse
,AddRoleResponse
,DeleteRoleResponse
,AddPermissionResponse
, andDeletePermissionResponse
. These classes should match the response formats expected from the corresponding methods.Documentation: Update the client-side TypeScript SDK documentation to include detailed information about the new classes, methods, and usage examples.
Implementation Steps:
Recommendations:
For the client-side TypeScript SDK, I recommend using IndexedDB or localStorage as the database solution for storing roles and permissions locally. Both options are well-supported in modern web browsers and can be used to store data on the client-side.
IndexedDB is a low-level API for client-side storage of significant amounts of structured data, including files/blobs, and provides features like indexes and transactions for efficient data access and management. However, it has a steeper learning curve compared to localStorage.
The text was updated successfully, but these errors were encountered: