[user model] Remove getPermissionStatus
& add permission
property
#1035
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR updates the SDK by removing the
getPermissionStatus()
function, adding apermission
property, moving functions to thePermissionManager
, renaming and moving files to improve organization, and adding test coverage for proper functionality.Overview
This PR makes several updates to the SDK to improve organization and functionality. The
getPermissionStatus()
function has been removed, and apermission
property has been added for clearer and more concise permission status checks. ThegetPermissionStatus()
function has been moved to thePermissionManager
to avoid cluttering the SDK with redundant functions. Thehelpers.ts
file has been renamed and moved to ahelpers
directory for better organization, and test coverage has been added to ensure proper functionality of the SDK.Details
getPermissionStatus()
function and addpermission
property to SDK. ThegetPermissionStatus()
function was redundant and not in line with other SDKs, and adding thepermission
property provides a clearer way to check the permission status.getPermissionStatus()
toPermissionManager
. This is done to better organize the code and avoid cluttering the SDK with redundant functions.getPermissionStatus()
function and fix usages throughout SDK. This is done to ensure that the SDK is compatible with other SDKs and to avoid breaking existing usage.helpers.ts
and move tohelpers
directory. This is done to better organize the code and avoid cluttering the root directory with helper files.This change is