Platform resources

Generated reference for ovok_sdk: platform resources.

  • Stable unknown
  • Release candidate since 0.1.0-rc.4
  • Development since 0.1.0-dev.23+d339d81

AccountsResource

class AccountsResource

Accounts the signed-in user belongs to. Reached through ovok.accounts.

Every request throws an OvokException subclass when it fails.

Constructors

AccountsResource.new

AccountsResource(HttpClient _http)

Built by Ovok; use ovok.accounts instead.

ParameterTypeKindDefault
_httpHttpClientpositional

Methods

AccountsResource.list

Future<List<JsonMap>> list()

Lists the signed-in user's accounts. Calls GET accounts.

Returns Future<List<Map<String, dynamic>>>.

EmailResource

class EmailResource

The project's email setup. Reached through ovok.email.

Every request throws an OvokException subclass when it fails.

Constructors

EmailResource.new

EmailResource(HttpClient http)

Built by Ovok; use ovok.email instead.

ParameterTypeKindDefault
httpHttpClientpositional

Properties

EmailResource.templates

final EmailTemplatesResource templates

The project's email templates.

EmailTemplatesResource

class EmailTemplatesResource

The project's email templates. Reached through ovok.email.templates.

Constructors

EmailTemplatesResource.new

EmailTemplatesResource(HttpClient _http)

Built by Ovok; use ovok.email.templates instead.

ParameterTypeKindDefault
_httpHttpClientpositional

Methods

EmailTemplatesResource.list

Future<JsonMap> list()

Lists the email templates. Calls GET v1/email/templates.

Returns Future<Map<String, dynamic>>.

I18nextResource

class I18nextResource

A language's strings as one i18next document.

Reached through ovok.localizations.i18next.

Constructors

I18nextResource.new

I18nextResource(HttpClient _http)

Built by Ovok; use ovok.localizations.i18next instead.

ParameterTypeKindDefault
_httpHttpClientpositional

Methods

I18nextResource.retrieve

Future<JsonMap> retrieve(String language)

Retrieves language as an i18next document.

Calls GET localization/i18next/{language}.

ParameterTypeKindDefault
languageStringpositional

Returns Future<Map<String, dynamic>>.

I18nextResource.update

Future<void> update(String language, JsonMap document)

Merges document into language.

Calls PATCH localization/i18next/{language}. The server queues the write (202), so a read right after may not show it yet.

ParameterTypeKindDefault
languageStringpositional
documentJsonMappositional

Returns Future<void>.

InviteFlowResource

class InviteFlowResource

One invite kind: create sends it, accept redeems it at {path}/accept.

Reached through the fields of ovok.invites.

Constructors

InviteFlowResource.new

InviteFlowResource(HttpClient _http, String _path)

Built by Ovok; use a field of ovok.invites instead.

ParameterTypeKindDefault
_httpHttpClientpositional
_pathStringpositional

Methods

InviteFlowResource.create

Future<JsonMap> create(JsonMap body)

Sends an invite. Calls POST {path}.

ParameterTypeKindDefault
bodyJsonMappositional

Returns Future<Map<String, dynamic>>.

InviteFlowResource.accept

Future<JsonMap> accept(JsonMap body)

Accepts an invite. Calls POST {path}/accept.

ParameterTypeKindDefault
bodyJsonMappositional

Returns Future<Map<String, dynamic>>.

InvitesResource

class InvitesResource

Invites between patients, practitioners and carers. Reached through ovok.invites.

Every request throws an OvokException subclass when it fails.

Constructors

InvitesResource.new

InvitesResource(HttpClient http, UserSession session)

Built by Ovok; use ovok.invites instead.

ParameterTypeKindDefault
httpHttpClientpositional
sessionUserSessionpositional

Properties

InvitesResource.recordShares

final InviteFlowResource recordShares

A patient shares their record with a practitioner, or some codes with a carer.

Routes under v1/invites/record-share.

InvitesResource.care

final InviteFlowResource care

A practitioner invites a patient into their care.

Routes under v1/invites/care.

InvitesResource.practitioners

final InviteFlowResource practitioners

Practitioner invites; use recordShares instead.

Routes under v1/invites/practitioner, which sunset on 2026-12-01.

InvitesResource.patients

final InviteFlowResource patients

Patient invites; use care instead.

Routes under v1/invites/patient, which sunset on 2026-12-01.

Methods

InvitesResource.accept

Future<JsonMap> accept(JsonMap body)

Accepts a record share as a practitioner or a care invite as a patient.

Picks recordShares or care from the signed-in profile's type. Throws OvokConfigException when no Patient or Practitioner is signed in.

ParameterTypeKindDefault
bodyJsonMappositional

Returns Future<Map<String, dynamic>>.

LocalesResource

class LocalesResource

Languages the project offers. Reached through ovok.locales.

Every request throws an OvokException subclass when it fails.

Constructors

LocalesResource.new

LocalesResource(HttpClient _http)

Built by Ovok; use ovok.locales instead.

ParameterTypeKindDefault
_httpHttpClientpositional

Methods

LocalesResource.retrieve

Future<JsonMap> retrieve()

Retrieves the project's locales. Calls GET locales.

Returns Future<Map<String, dynamic>>.

LocalesResource.update

Future<JsonMap> update(JsonMap locales)

Updates the project's locales. Calls PATCH locales.

ParameterTypeKindDefault
localesJsonMappositional

Returns Future<Map<String, dynamic>>.

LocalizationsResource

class LocalizationsResource

Translated strings, by language and key. Reached through ovok.localizations.

Every request throws an OvokException subclass when it fails.

Constructors

LocalizationsResource.new

LocalizationsResource(HttpClient http)

Built by Ovok; use ovok.localizations instead.

ParameterTypeKindDefault
httpHttpClientpositional

Properties

LocalizationsResource.i18next

final I18nextResource i18next

Whole-language documents in i18next format.

Methods

LocalizationsResource.list

Future<JsonMap> list(String language, [QueryParams query = const {}])

Lists the strings of language. Calls GET localization/{language}.

ParameterTypeKindDefault
languageStringpositional
queryQueryParamsoptional positionalconst {}

Returns Future<Map<String, dynamic>>.

LocalizationsResource.retrieve

Future<JsonMap> retrieve(String language, String key)

Retrieves one string. Calls GET localization/{language}/{key}.

ParameterTypeKindDefault
languageStringpositional
keyStringpositional

Returns Future<Map<String, dynamic>>.

LocalizationsResource.update

Future<JsonMap> update(
  String language,
  String key,
  JsonMap body,
)

Updates one string. Calls PUT localization/{language}/{key}.

ParameterTypeKindDefault
languageStringpositional
keyStringpositional
bodyJsonMappositional

Returns Future<Map<String, dynamic>>.

LocalizationsResource.delete

Future<void> delete(String language, String key)

Deletes one string. Calls DELETE localization/{language}/{key}.

ParameterTypeKindDefault
languageStringpositional
keyStringpositional

Returns Future<void>.

ProjectFeaturesResource

class ProjectFeaturesResource

Features enabled on the current project. Reached through ovok.projects.features.

Constructors

ProjectFeaturesResource.new

ProjectFeaturesResource(HttpClient _http)

Built by Ovok; use ovok.projects.features instead.

ParameterTypeKindDefault
_httpHttpClientpositional

Methods

ProjectFeaturesResource.retrieve

Future<JsonMap> retrieve()

Retrieves the project's features. Calls GET v1/projects/me/features.

Returns Future<Map<String, dynamic>>.

ProjectFeaturesResource.update

Future<JsonMap> update(List<String> features)

Sets the project's features. Calls PATCH v1/projects/me/features.

ParameterTypeKindDefault
featuresList<String>positional

Returns Future<Map<String, dynamic>>.

ProjectMembersResource

class ProjectMembersResource

Memberships of the current project. Reached through ovok.projects.members.

Constructors

ProjectMembersResource.new

ProjectMembersResource(HttpClient _http)

Built by Ovok; use ovok.projects.members instead.

ParameterTypeKindDefault
_httpHttpClientpositional

Methods

ProjectMembersResource.list

Future<Page<JsonMap>> list([QueryParams query = const {}])

Lists the project's members. Calls GET v1/projects/me/members with query.

ParameterTypeKindDefault
queryQueryParamsoptional positionalconst {}

Returns Future<Page<Map<String, dynamic>>>.

ProjectMembersResource.invite

Future<JsonMap> invite(JsonMap body)

Invites a member into the project. Calls POST v1/projects/me/members.

ParameterTypeKindDefault
bodyJsonMappositional

Returns Future<Map<String, dynamic>>.

ProjectMembersResource.update

Future<JsonMap> update(String membershipId, JsonMap body)

Updates a membership.

Calls PATCH v1/projects/me/members/{membershipId}.

ParameterTypeKindDefault
membershipIdStringpositional
bodyJsonMappositional

Returns Future<Map<String, dynamic>>.

ProjectMembersResource.remove

Future<JsonMap> remove(String membershipId)

Removes a member from the project.

Calls DELETE v1/projects/me/members/{membershipId}.

ParameterTypeKindDefault
membershipIdStringpositional

Returns Future<Map<String, dynamic>>.

ProjectSettingsResource

class ProjectSettingsResource

Settings of the current project. Reached through ovok.projects.settings.

Constructors

ProjectSettingsResource.new

ProjectSettingsResource(HttpClient _http)

Built by Ovok; use ovok.projects.settings instead.

ParameterTypeKindDefault
_httpHttpClientpositional

Methods

ProjectSettingsResource.retrieve

Future<JsonMap> retrieve()

Retrieves the project's settings. Calls GET v1/project/settings.

Returns Future<Map<String, dynamic>>.

ProjectSettingsResource.update

Future<JsonMap> update(String key, bool enabled)

Turns the on/off setting key on or off.

Calls PUT v1/project/settings/{key} with {enabled}.

ParameterTypeKindDefault
keyStringpositional
enabledboolpositional

Returns Future<Map<String, dynamic>>.

ProjectSettingsResource.updateText

Future<JsonMap> updateText(String key, String? value)

Sets the text setting key to value; null clears it.

Calls PUT v1/project/settings/values/{key} with {value}.

ParameterTypeKindDefault
keyStringpositional
valueString?positional

Returns Future<Map<String, dynamic>>.

ProjectsResource

class ProjectsResource

Projects, their members, settings and features. Reached through ovok.projects.

Every request throws an OvokException subclass when it fails.

Constructors

ProjectsResource.new

ProjectsResource(HttpClient http)

Built by Ovok; use ovok.projects instead.

ParameterTypeKindDefault
httpHttpClientpositional

Properties

ProjectsResource.members

final ProjectMembersResource members

Members of the current project.

ProjectsResource.settings

final ProjectSettingsResource settings

Settings of the current project.

ProjectsResource.features

final ProjectFeaturesResource features

Features enabled on the current project.

Methods

ProjectsResource.list

Future<Page<JsonMap>> list([QueryParams query = const {}])

Lists the projects the caller administers, wherever they are signed in.

Calls GET v1/projects with query; the Page fetches later pages.

ParameterTypeKindDefault
queryQueryParamsoptional positionalconst {}

Returns Future<Page<Map<String, dynamic>>>.

SharingInvitesResource

class SharingInvitesResource

Sharing invites. Reached through ovok.sharing.invites.

Constructors

SharingInvitesResource.new

SharingInvitesResource(HttpClient _http)

Built by Ovok; use ovok.sharing.invites instead.

ParameterTypeKindDefault
_httpHttpClientpositional

Methods

SharingInvitesResource.create

Future<JsonMap> create(JsonMap body)

Creates a sharing invite. Calls POST v1/patient-sharing/invites.

ParameterTypeKindDefault
bodyJsonMappositional

Returns Future<Map<String, dynamic>>.

SharingInvitesResource.redeem

Future<JsonMap> redeem(JsonMap body)

Redeems a sharing invite.

Calls POST v1/patient-sharing/invites/redeem.

ParameterTypeKindDefault
bodyJsonMappositional

Returns Future<Map<String, dynamic>>.

SharingResource

class SharingResource

A patient's record sharing. Reached through ovok.sharing.

Every request throws an OvokException subclass when it fails.

Constructors

SharingResource.new

SharingResource(HttpClient http)

Built by Ovok; use ovok.sharing instead.

ParameterTypeKindDefault
httpHttpClientpositional

Properties

SharingResource.invites

final SharingInvitesResource invites

Sharing invites the patient sends and redeems.

SharingResource.shares

final SharingSharesResource shares

Shares the patient has given and received.

SharingResource.settings

final SharingSettingsResource settings

The patient's sharing settings.

SharingSettingsResource

class SharingSettingsResource

The patient's sharing settings. Reached through ovok.sharing.settings.

Constructors

SharingSettingsResource.new

SharingSettingsResource(HttpClient _http)

Built by Ovok; use ovok.sharing.settings instead.

ParameterTypeKindDefault
_httpHttpClientpositional

Methods

SharingSettingsResource.retrieve

Future<JsonMap> retrieve()

Retrieves the sharing settings. Calls GET v1/patient-sharing/settings.

Returns Future<Map<String, dynamic>>.

SharingSettingsResource.update

Future<JsonMap> update(JsonMap settings)

Replaces the sharing settings. Calls PUT v1/patient-sharing/settings.

ParameterTypeKindDefault
settingsJsonMappositional

Returns Future<Map<String, dynamic>>.

SharingSharesResource

class SharingSharesResource

Shares given and received. Reached through ovok.sharing.shares.

Constructors

SharingSharesResource.new

SharingSharesResource(HttpClient _http)

Built by Ovok; use ovok.sharing.shares instead.

ParameterTypeKindDefault
_httpHttpClientpositional

Methods

SharingSharesResource.list

Future<JsonMap> list()

Lists the shares. Calls GET v1/patient-sharing/shares.

practitioners, relatedPersons and received are always lists, empty when an older server leaves them out.

Returns Future<Map<String, dynamic>>.

SharingSharesResource.revoke

Future<void> revoke(String consentId)

Revokes the share recorded by consentId.

Calls DELETE v1/patient-sharing/shares/{consentId}.

ParameterTypeKindDefault
consentIdStringpositional

Returns Future<void>.

Last updated on

On this page

AccountsResourceConstructorsAccountsResource.newMethodsAccountsResource.listEmailResourceConstructorsEmailResource.newPropertiesEmailResource.templatesEmailTemplatesResourceConstructorsEmailTemplatesResource.newMethodsEmailTemplatesResource.listI18nextResourceConstructorsI18nextResource.newMethodsI18nextResource.retrieveI18nextResource.updateInviteFlowResourceConstructorsInviteFlowResource.newMethodsInviteFlowResource.createInviteFlowResource.acceptInvitesResourceConstructorsInvitesResource.newPropertiesInvitesResource.recordSharesInvitesResource.careInvitesResource.practitionersInvitesResource.patientsMethodsInvitesResource.acceptLocalesResourceConstructorsLocalesResource.newMethodsLocalesResource.retrieveLocalesResource.updateLocalizationsResourceConstructorsLocalizationsResource.newPropertiesLocalizationsResource.i18nextMethodsLocalizationsResource.listLocalizationsResource.retrieveLocalizationsResource.updateLocalizationsResource.deleteProjectFeaturesResourceConstructorsProjectFeaturesResource.newMethodsProjectFeaturesResource.retrieveProjectFeaturesResource.updateProjectMembersResourceConstructorsProjectMembersResource.newMethodsProjectMembersResource.listProjectMembersResource.inviteProjectMembersResource.updateProjectMembersResource.removeProjectSettingsResourceConstructorsProjectSettingsResource.newMethodsProjectSettingsResource.retrieveProjectSettingsResource.updateProjectSettingsResource.updateTextProjectsResourceConstructorsProjectsResource.newPropertiesProjectsResource.membersProjectsResource.settingsProjectsResource.featuresMethodsProjectsResource.listSharingInvitesResourceConstructorsSharingInvitesResource.newMethodsSharingInvitesResource.createSharingInvitesResource.redeemSharingResourceConstructorsSharingResource.newPropertiesSharingResource.invitesSharingResource.sharesSharingResource.settingsSharingSettingsResourceConstructorsSharingSettingsResource.newMethodsSharingSettingsResource.retrieveSharingSettingsResource.updateSharingSharesResourceConstructorsSharingSharesResource.newMethodsSharingSharesResource.listSharingSharesResource.revoke