@kingstinct/react-native-healthkit
Version:
React Native bindings for HealthKit
40 lines (39 loc) • 2.53 kB
TypeScript
import type { AnyMap } from 'react-native-nitro-modules';
import type { CategoryTypeIdentifier, CategoryTypeIdentifierWriteable } from './CategoryTypeIdentifier';
import type { CharacteristicTypeIdentifier } from './Characteristics';
import type { HeartbeatSeriesTypeIdentifier, StateOfMindTypeIdentifier, WorkoutRouteTypeIdentifier, WorkoutTypeIdentifier } from './Constants';
import type { CorrelationTypeIdentifier } from './CorrelationType';
import type { QuantityTypeIdentifier, QuantityTypeIdentifierWriteable } from './QuantityTypeIdentifier';
export interface GenericMetadata {
readonly HKExternalUUID?: string;
readonly HKTimeZone?: string;
readonly HKWasUserEntered?: boolean;
readonly HKDeviceSerialNumber?: string;
readonly HKUDIDeviceIdentifier?: string;
readonly HKUDIProductionIdentifier?: string;
readonly HKDigitalSignature?: string;
readonly HKDeviceName?: string;
readonly HKDeviceManufacturerName?: string;
readonly HKSyncIdentifier?: string;
readonly HKSyncVersion?: number;
readonly HKWasTakenInLab?: boolean;
readonly HKReferenceRangeLowerLimit?: number;
readonly HKReferenceRangeUpperLimit?: number;
}
export interface DeletedSample {
readonly uuid: string;
readonly metadata?: AnyMap;
}
export type ObjectTypeIdentifier = CharacteristicTypeIdentifier | SampleTypeIdentifier | typeof ActivitySummaryTypeIdentifier;
export type SampleTypeIdentifier = CategoryTypeIdentifier | CorrelationTypeIdentifier | QuantityTypeIdentifier | typeof StateOfMindTypeIdentifier | typeof AudiogramTypeIdentifier | typeof HeartbeatSeriesTypeIdentifier | typeof WorkoutRouteTypeIdentifier | typeof WorkoutTypeIdentifier;
export type SampleTypeIdentifierWriteable = CategoryTypeIdentifierWriteable | CorrelationTypeIdentifier | QuantityTypeIdentifierWriteable | typeof StateOfMindTypeIdentifier | typeof AudiogramTypeIdentifier | typeof HeartbeatSeriesTypeIdentifier | typeof WorkoutRouteTypeIdentifier | typeof WorkoutTypeIdentifier;
/**
* Represents a type that identifies activity summary objects.
* @see {@link https://developer.apple.com/documentation/healthkit/hkactivitysummarytype Apple Docs HKActivitySummaryType}
*/
export declare const ActivitySummaryTypeIdentifier: "ActivitySummaryTypeIdentifier";
/**
* Represents an audiogram type identifier.
* @see {@link https://developer.apple.com/documentation/healthkit/HKAudiogramSampleType Apple Docs HKAudiogramSampleType}
*/
export declare const AudiogramTypeIdentifier: "HKAudiogramSampleType";