capacitor-rook-sdk
v0.3.0
Published
Extract and sync information of Health Connect and Apple Health
Downloads
55
Maintainers
Readme
capacitor-rook-sdk
Extract and sync information of Health Connect and Apple Health
Install
npm install capacitor-rook-sdk
npx cap sync
API
Type Aliases
InitRookProps
{ environment: Environment; clientUUID: string; password: string; enableBackgroundSync: boolean; enableEventsBackgroundSync: boolean; enableLogs?: boolean; }
Environment
'production' | 'sandbox'
UpdateUserIdProps
{ userId: string; }
UserIdResult
{ userId: string; }
CheckAvailabilityResult
{ result: CheckAvailabilityResponse; }
CheckAvailabilityResponse
'INSTALLED' | 'NOT_INSTALLED' | 'NOT_SUPPORTED'
BoolResult
{ result: boolean; }
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; }
DataSourceProps
{ redirectURL?: string; }
ResultDataSource
{ result: DataSource[]; }
DataSource
{ name: string; authorizationURL: string; imageUrl: string; description: string; connected: boolean; }