package dev.matinzd.healthconnect import com.facebook.react.bridge.* abstract class HealthConnectSpec internal constructor(context: ReactApplicationContext) : ReactContextBaseJavaModule(context) { @ReactMethod abstract fun getSdkStatus(providerPackageName: String, promise: Promise) @ReactMethod abstract fun initialize(providerPackageName: String, promise: Promise); @ReactMethod abstract fun openHealthConnectSettings(); @ReactMethod abstract fun openHealthConnectDataManagement(providerPackageName: String?); @ReactMethod abstract fun requestPermission(permissions: ReadableArray, providerPackageName: String, promise: Promise); @ReactMethod abstract fun getGrantedPermissions(promise: Promise); @ReactMethod abstract fun revokeAllPermissions(promise: Promise); @ReactMethod abstract fun insertRecords(records: ReadableArray, promise: Promise); @ReactMethod abstract fun readRecords(recordType: String, options: ReadableMap, promise: Promise); @ReactMethod abstract fun readRecord(recordType: String, recordId: String, promise: Promise); @ReactMethod abstract fun getChangesToken(recordType: String, promise: Promise) @ReactMethod abstract fun getChanges(recordType: String,changesToken: String, promise: Promise) @ReactMethod abstract fun aggregateRecord(record: ReadableMap, promise: Promise); @ReactMethod abstract fun deleteRecordsByUuids(recordType: String, recordIdsList: ReadableArray, clientRecordIdsList: ReadableArray, promise: Promise); @ReactMethod abstract fun deleteRecordsByTimeRange(recordType: String, timeRangeFilter: ReadableMap, promise: Promise); }