0.4.1-rc.1 • Published 4 months ago

capacitor-rook-sdk v0.4.1-rc.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

capacitor-rook-sdk

Extract and sync information of Health Connect and Apple Health

Install

npm install capacitor-rook-sdk
npx cap sync

API

addListener(EventNames, ...)

addListener(eventName: EventNames, callback: (info: any) => void) => Promise<PluginListenerHandle>
ParamType
eventNameEventNames
callback(info: any) => void

Returns: Promise<PluginListenerHandle>


addListener('io.tryrook.background.appleHealth.errors', ...)

addListener(eventName: AppleEventNames, callback: (info: any) => void) => Promise<PluginListenerHandle>
ParamType
eventName'io.tryrook.background.appleHealth.errors'
callback(info: any) => void

Returns: Promise<PluginListenerHandle>


Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>

Type Aliases

EventNames

'io.tryrook.permissions.android' | 'io.tryrook.permissions.healthConnect'

AppleEventNames

'io.tryrook.background.appleHealth.errors'

InitRookProps

{ environment: Environment; clientUUID: string; password: string; enableBackgroundSync: boolean; enableEventsBackgroundSync: boolean; enableLogs?: boolean; }

Environment

'production' | 'sandbox'

BoolResult

{ result: boolean; }

UpdateUserIdProps

{ userId: string; }

UserIdResult

{ userId: string; }

RevokeDataSourceProps

{ dataSource: DataSourceRevoke }

DataSourceRevoke

'Garmin' | 'Oura' | 'Polar' | 'Fitbit' | 'Withings' | 'Whoop'

CheckAvailabilityResult

{ result: CheckAvailabilityResponse; }

CheckAvailabilityResponse

'INSTALLED' | 'NOT_INSTALLED' | 'NOT_SUPPORTED'

RequestPermissionsStatusResult

{ result: RequestPermissionsStatus; }

RequestPermissionsStatus

'REQUEST_SENT' | 'ALREADY_GRANTED'

ConfigurationDoOnEndProps

{ doOnEnd: ConfigurationDoOnEnd; }

ConfigurationDoOnEnd

'oldest' | 'latest' | 'nothing'

ShouldSyncProps

{ type: HealthDataType; date: string; }

HealthDataType

'SLEEP_SUMMARY' | 'PHYSICAL_SUMMARY' | 'BODY_SUMMARY' | 'PHYSICAL_EVENT' | 'BLOOD_GLUCOSE_BODY_EVENT' | 'BLOOD_PRESSURE_BODY_EVENT' | 'BODY_METRICS_EVENT' | 'HEART_RATE_BODY_EVENT' | 'HEART_RATE_PHYSICAL_EVENT' | 'HYDRATION_BODY_EVENT' | 'NUTRITION_BODY_EVENT' | 'OXYGENATION_BODY_EVENT' | 'OXYGENATION_PHYSICAL_EVENT' | 'TEMPERATURE_BODY_EVENT'

DateProps

{ date: string; }

StepsResult

{ stepCount: number; }

CaloriesResult

{ basal: number; active: number; }

DataSourceProps

{ redirectURL?: string; }

ResultDataSource

{ result: DataSource[]; }

DataSource

{ name: string; authorizationURL: string; imageUrl: string; description: string; connected: boolean; }

0.4.1-rc.1

4 months ago

0.4.1-rc.0

5 months ago

0.4.0

5 months ago

0.4.0-rc.0

5 months ago

0.3.4

7 months ago

0.3.3

9 months ago

0.3.2

10 months ago

0.3.1

10 months ago

0.3.0

11 months ago

0.2.8

12 months ago

0.2.7

12 months ago

0.2.6

12 months ago

0.2.5

1 year ago

0.2.4

1 year ago

0.2.3

1 year ago

0.2.1

1 year ago

0.2.2

1 year ago

0.2.0

1 year ago

0.0.10

1 year ago

0.1.0

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.5

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago