import { ARK } from "@payvo/sdk-ark";
import { Environment } from "@payvo/profiles";
import { Request } from "@payvo/sdk-http-bent";
new Environment({
coins: { ARK },
httpClient: new Request(),
storage: "localstorage"
});
These methods are accessible through
env.profiles()
which exposes aProfileRepository
instance.
env.profiles().fill(profileData);
env.profiles().all();
env.profiles().first();
env.profiles().last();
env.profiles().keys();
env.profiles().values();
env.profiles().findById("uuid");
env.profiles().findByName("John Doe");
env.profiles().create("John Doe");
env.profiles().has(jane.id());
env.profiles().forget("uuid");
env.profiles().flush();
env.profiles().count();
env.profiles().toObject();