-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge Realm JS and Realm Web TypeScript declarations #2980
Comments
Comparing this to the Java types. I saw the following differences:
Personal comment:
|
Yeah - it's already on the
Would you be open for a change to simplify this?
Okay, I'll update Realm Web from
await app.currentUser.auth.apiKeys.create( /*...*/ ) |
The way I read the document (and remember the meeting) I thought Java was landing on I don't particularly like this name - |
I would probably just keep it on
I'm a bit torn on this because it massively depends on how you envision the usage.
I would probably tend to agree with you that your simplications make sense since the type is
|
Users are experiencing duplicate and diverging types across Realm JS and Realm Web.
Besides merging the type definitions, we also have to update the implementation and any tests relying on this:
identity
property on aUser
toid
.token
property on aUser
toaccessToken
.User
asrefreshToken
.allUsers
from an instance method to a getter-property.currentUser
from an instance method to a getter-property.logOut
method on theUser
return a resolved promise (Promise<void>
), instead of returningundefined
synchronously.API
toApi
for the auth related classes (here, here)UserAPIKeyProviderClient
toApiKeyProvider
ApiKeyAuth
(loosing User and Client & gaining Auth), in the internal C++ implementation.EmailPasswordProviderClient
toEmailPasswordProvider
EmailPasswordAuth
(loosing Client & gaining Auth), in the internal C++ implementation.ApiKeyProvider
(loosing the "APIKey" suffix is fine, since its already called on anApiKeyProvider
which has no other methods that handle anything else than api-keys):createAPIKey
→create
fetchAPIKey
→fetch
fetchAPIKeys
→fetchAll
deleteAPIKey
→delete
enableAPIKey
→enable
disableAPIKey
→disable
EmailPasswordProvider
:registerEmail
→registerUser
resendConfirmation
→resendConfirmationEmail
callResetPasswordFunction
method to theEmailPasswordProvider
.NOTE: This should probably be implemented as a PR against the
kh/v10-merged-types
branch to keep the changes together when merged intov10
.The text was updated successfully, but these errors were encountered: