Bit-Nation / BITNATION-Pangea-libs

JS + Flow implementation of Panthalassa, the Pangea backend.
MIT License
8 stars 2 forks source link

[profile] update api #44

Open florianlenz opened 6 years ago

florianlenz commented 6 years ago

Problem / Task

ass of 0.3.1 the profile api include the following methods:

export interface ProfileInterface {

    hasProfile() : Promise<boolean>;
    setProfile(profile: ProfileType) : Promise<void>;
    getProfile() : Promise<ProfileType>;
    getPublicProfile(): Promise<PublicProfile>

}

We need drastic change there. The following things need to be updated:

Add a profiles method to get all user profiles

Add a login method

Add a create method to create a new profile

Remove the getPublicProfile method

Remove the getProfile method

Remove the setProfile method