@kingstinct/react-native-healthkit 14.0.2 → 15.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -2
- package/app.plugin.js +49 -94
- package/app.plugin.ts +6 -40
- package/ios/BackgroundDeliveryManager.swift +95 -7
- package/ios/BackgroundLaunchHook.mm +41 -0
- package/ios/Constants.swift +24 -0
- package/ios/CoreModule.swift +64 -18
- package/ios/ExceptionCatcher.h +1 -0
- package/ios/ExceptionCatcher.mm +15 -0
- package/ios/Helpers.swift +29 -1
- package/ios/MemoryEstimation.swift +83 -0
- package/ios/QuantityTypeModule.swift +34 -26
- package/ios/Serializers.swift +18 -3
- package/ios/SourceProxy.swift +14 -5
- package/ios/WorkoutProxy.swift +41 -12
- package/lib/commonjs/generated/healthkit.generated.js +13 -1
- package/lib/commonjs/healthkit.ios.js +3 -1
- package/lib/commonjs/healthkit.js +4 -2
- package/lib/module/generated/healthkit.generated.js +12 -0
- package/lib/module/healthkit.ios.js +2 -0
- package/lib/module/healthkit.js +2 -0
- package/lib/typescript/generated/healthkit.generated.d.ts +16 -3
- package/lib/typescript/healthkit.d.ts +1 -0
- package/lib/typescript/healthkit.ios.d.ts +2 -0
- package/lib/typescript/specs/CoreModule.nitro.d.ts +6 -4
- package/lib/typescript/specs/SourceProxy.nitro.d.ts +1 -2
- package/lib/typescript/types/QuantityType.d.ts +3 -3
- package/lib/typescript/types/Source.d.ts +2 -2
- package/lib/typescript/types/Workouts.d.ts +1 -0
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.cpp +16 -16
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.hpp +23 -12
- package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.hpp +7 -4
- package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.hpp +7 -4
- package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.hpp +7 -4
- package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.hpp +7 -4
- package/nitrogen/generated/ios/c++/HybridMedicationModuleSpecSwift.hpp +7 -4
- package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.hpp +7 -4
- package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.hpp +7 -4
- package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.hpp +3 -4
- package/nitrogen/generated/ios/c++/HybridWorkoutsModuleSpecSwift.hpp +6 -3
- package/nitrogen/generated/ios/swift/CategoryTypeIdentifier.swift +8 -0
- package/nitrogen/generated/ios/swift/CategoryTypeIdentifierWriteable.swift +8 -0
- package/nitrogen/generated/ios/swift/ObjectTypeIdentifier.swift +8 -0
- package/nitrogen/generated/ios/swift/QueryStatisticsResponse.swift +6 -13
- package/nitrogen/generated/ios/swift/QueryStatisticsResponseFromSingleSource.swift +4 -11
- package/nitrogen/generated/ios/swift/SampleTypeIdentifier.swift +8 -0
- package/nitrogen/generated/ios/swift/SampleTypeIdentifierWriteable.swift +8 -0
- package/nitrogen/generated/ios/swift/SourceRevision.swift +4 -11
- package/nitrogen/generated/ios/swift/WorkoutActivity.swift +7 -2
- package/nitrogen/generated/ios/swift/WorkoutActivityType.swift +8 -0
- package/nitrogen/generated/shared/c++/CategoryTypeIdentifier.hpp +67 -59
- package/nitrogen/generated/shared/c++/CategoryTypeIdentifierWriteable.hpp +67 -59
- package/nitrogen/generated/shared/c++/ObjectTypeIdentifier.hpp +202 -194
- package/nitrogen/generated/shared/c++/QueryStatisticsResponse.hpp +8 -9
- package/nitrogen/generated/shared/c++/QueryStatisticsResponseFromSingleSource.hpp +8 -9
- package/nitrogen/generated/shared/c++/SampleTypeIdentifier.hpp +195 -187
- package/nitrogen/generated/shared/c++/SampleTypeIdentifierWriteable.hpp +189 -181
- package/nitrogen/generated/shared/c++/SourceRevision.hpp +8 -9
- package/nitrogen/generated/shared/c++/WorkoutActivity.hpp +9 -3
- package/nitrogen/generated/shared/c++/WorkoutActivityType.hpp +4 -0
- package/package.json +5 -3
- package/src/generated/healthkit-schema.json +50 -5
- package/src/generated/healthkit.generated.ts +18 -2
- package/src/healthkit.ios.ts +3 -0
- package/src/healthkit.ts +5 -0
- package/src/specs/CoreModule.nitro.ts +6 -4
- package/src/specs/SourceProxy.nitro.ts +1 -1
- package/src/type-tests/generated-typing.ts +36 -0
- package/src/types/QuantityType.ts +3 -3
- package/src/types/Source.ts +2 -2
- package/src/types/Workouts.ts +1 -0
package/lib/module/healthkit.js
CHANGED
|
@@ -33,6 +33,7 @@ export const subscribeToChanges = UnavailableFnFromModule('subscribeToChanges',
|
|
|
33
33
|
remove: () => false,
|
|
34
34
|
}); // Mocking the observer query UUID
|
|
35
35
|
export const isProtectedDataAvailable = UnavailableFnFromModule('isProtectedDataAvailable', false);
|
|
36
|
+
export const isProtectedDataAvailableAsync = UnavailableFnFromModule('isProtectedDataAvailableAsync', Promise.resolve(false));
|
|
36
37
|
export const isObjectTypeAvailable = UnavailableFnFromModule('isObjectTypeAvailable', false);
|
|
37
38
|
export const isObjectTypeAvailableAsync = UnavailableFnFromModule('isObjectTypeAvailableAsync', Promise.resolve(false));
|
|
38
39
|
export const areObjectTypesAvailable = UnavailableFnFromModule('areObjectTypesAvailable', {});
|
|
@@ -297,6 +298,7 @@ const HealthkitModule = {
|
|
|
297
298
|
subscribeToChanges,
|
|
298
299
|
startWatchApp,
|
|
299
300
|
isProtectedDataAvailable,
|
|
301
|
+
isProtectedDataAvailableAsync,
|
|
300
302
|
queryStateOfMindSamples,
|
|
301
303
|
queryStateOfMindSamplesWithAnchor,
|
|
302
304
|
saveStateOfMindSample,
|
|
@@ -4,7 +4,7 @@ export type QuantityTypeIdentifierReadOnly = 'HKQuantityTypeIdentifierAppleExerc
|
|
|
4
4
|
export type QuantityTypeIdentifierWriteable = 'HKQuantityTypeIdentifierActiveEnergyBurned' | 'HKQuantityTypeIdentifierAppleMoveTime' | 'HKQuantityTypeIdentifierAppleSleepingBreathingDisturbances' | 'HKQuantityTypeIdentifierAppleSleepingWristTemperature' | 'HKQuantityTypeIdentifierBasalBodyTemperature' | 'HKQuantityTypeIdentifierBasalEnergyBurned' | 'HKQuantityTypeIdentifierBloodAlcoholContent' | 'HKQuantityTypeIdentifierBloodGlucose' | 'HKQuantityTypeIdentifierBloodPressureDiastolic' | 'HKQuantityTypeIdentifierBloodPressureSystolic' | 'HKQuantityTypeIdentifierBodyFatPercentage' | 'HKQuantityTypeIdentifierBodyMass' | 'HKQuantityTypeIdentifierBodyMassIndex' | 'HKQuantityTypeIdentifierBodyTemperature' | 'HKQuantityTypeIdentifierCrossCountrySkiingSpeed' | 'HKQuantityTypeIdentifierCyclingCadence' | 'HKQuantityTypeIdentifierCyclingFunctionalThresholdPower' | 'HKQuantityTypeIdentifierCyclingPower' | 'HKQuantityTypeIdentifierCyclingSpeed' | 'HKQuantityTypeIdentifierDietaryBiotin' | 'HKQuantityTypeIdentifierDietaryCaffeine' | 'HKQuantityTypeIdentifierDietaryCalcium' | 'HKQuantityTypeIdentifierDietaryCarbohydrates' | 'HKQuantityTypeIdentifierDietaryChloride' | 'HKQuantityTypeIdentifierDietaryCholesterol' | 'HKQuantityTypeIdentifierDietaryChromium' | 'HKQuantityTypeIdentifierDietaryCopper' | 'HKQuantityTypeIdentifierDietaryEnergyConsumed' | 'HKQuantityTypeIdentifierDietaryFatMonounsaturated' | 'HKQuantityTypeIdentifierDietaryFatPolyunsaturated' | 'HKQuantityTypeIdentifierDietaryFatSaturated' | 'HKQuantityTypeIdentifierDietaryFatTotal' | 'HKQuantityTypeIdentifierDietaryFiber' | 'HKQuantityTypeIdentifierDietaryFolate' | 'HKQuantityTypeIdentifierDietaryIodine' | 'HKQuantityTypeIdentifierDietaryIron' | 'HKQuantityTypeIdentifierDietaryMagnesium' | 'HKQuantityTypeIdentifierDietaryManganese' | 'HKQuantityTypeIdentifierDietaryMolybdenum' | 'HKQuantityTypeIdentifierDietaryNiacin' | 'HKQuantityTypeIdentifierDietaryPantothenicAcid' | 'HKQuantityTypeIdentifierDietaryPhosphorus' | 'HKQuantityTypeIdentifierDietaryPotassium' | 'HKQuantityTypeIdentifierDietaryProtein' | 'HKQuantityTypeIdentifierDietaryRiboflavin' | 'HKQuantityTypeIdentifierDietarySelenium' | 'HKQuantityTypeIdentifierDietarySodium' | 'HKQuantityTypeIdentifierDietarySugar' | 'HKQuantityTypeIdentifierDietaryThiamin' | 'HKQuantityTypeIdentifierDietaryVitaminA' | 'HKQuantityTypeIdentifierDietaryVitaminB12' | 'HKQuantityTypeIdentifierDietaryVitaminB6' | 'HKQuantityTypeIdentifierDietaryVitaminC' | 'HKQuantityTypeIdentifierDietaryVitaminD' | 'HKQuantityTypeIdentifierDietaryVitaminE' | 'HKQuantityTypeIdentifierDietaryVitaminK' | 'HKQuantityTypeIdentifierDietaryWater' | 'HKQuantityTypeIdentifierDietaryZinc' | 'HKQuantityTypeIdentifierDistanceCrossCountrySkiing' | 'HKQuantityTypeIdentifierDistanceCycling' | 'HKQuantityTypeIdentifierDistanceDownhillSnowSports' | 'HKQuantityTypeIdentifierDistancePaddleSports' | 'HKQuantityTypeIdentifierDistanceRowing' | 'HKQuantityTypeIdentifierDistanceSkatingSports' | 'HKQuantityTypeIdentifierDistanceSwimming' | 'HKQuantityTypeIdentifierDistanceWalkingRunning' | 'HKQuantityTypeIdentifierDistanceWheelchair' | 'HKQuantityTypeIdentifierElectrodermalActivity' | 'HKQuantityTypeIdentifierEnvironmentalAudioExposure' | 'HKQuantityTypeIdentifierEnvironmentalSoundReduction' | 'HKQuantityTypeIdentifierEstimatedWorkoutEffortScore' | 'HKQuantityTypeIdentifierFlightsClimbed' | 'HKQuantityTypeIdentifierForcedExpiratoryVolume1' | 'HKQuantityTypeIdentifierForcedVitalCapacity' | 'HKQuantityTypeIdentifierHeadphoneAudioExposure' | 'HKQuantityTypeIdentifierHeartRate' | 'HKQuantityTypeIdentifierHeartRateRecoveryOneMinute' | 'HKQuantityTypeIdentifierHeartRateVariabilitySDNN' | 'HKQuantityTypeIdentifierHeight' | 'HKQuantityTypeIdentifierInhalerUsage' | 'HKQuantityTypeIdentifierInsulinDelivery' | 'HKQuantityTypeIdentifierLeanBodyMass' | 'HKQuantityTypeIdentifierNikeFuel' | 'HKQuantityTypeIdentifierNumberOfAlcoholicBeverages' | 'HKQuantityTypeIdentifierNumberOfTimesFallen' | 'HKQuantityTypeIdentifierOxygenSaturation' | 'HKQuantityTypeIdentifierPaddleSportsSpeed' | 'HKQuantityTypeIdentifierPeakExpiratoryFlowRate' | 'HKQuantityTypeIdentifierPeripheralPerfusionIndex' | 'HKQuantityTypeIdentifierPhysicalEffort' | 'HKQuantityTypeIdentifierPushCount' | 'HKQuantityTypeIdentifierRespiratoryRate' | 'HKQuantityTypeIdentifierRestingHeartRate' | 'HKQuantityTypeIdentifierRowingSpeed' | 'HKQuantityTypeIdentifierRunningGroundContactTime' | 'HKQuantityTypeIdentifierRunningPower' | 'HKQuantityTypeIdentifierRunningSpeed' | 'HKQuantityTypeIdentifierRunningStrideLength' | 'HKQuantityTypeIdentifierRunningVerticalOscillation' | 'HKQuantityTypeIdentifierSixMinuteWalkTestDistance' | 'HKQuantityTypeIdentifierStairAscentSpeed' | 'HKQuantityTypeIdentifierStairDescentSpeed' | 'HKQuantityTypeIdentifierStepCount' | 'HKQuantityTypeIdentifierSwimmingStrokeCount' | 'HKQuantityTypeIdentifierTimeInDaylight' | 'HKQuantityTypeIdentifierUnderwaterDepth' | 'HKQuantityTypeIdentifierUVExposure' | 'HKQuantityTypeIdentifierVO2Max' | 'HKQuantityTypeIdentifierWaistCircumference' | 'HKQuantityTypeIdentifierWalkingAsymmetryPercentage' | 'HKQuantityTypeIdentifierWalkingDoubleSupportPercentage' | 'HKQuantityTypeIdentifierWalkingSpeed' | 'HKQuantityTypeIdentifierWalkingStepLength' | 'HKQuantityTypeIdentifierWaterTemperature' | 'HKQuantityTypeIdentifierWorkoutEffortScore';
|
|
5
5
|
export type QuantityTypeIdentifier = QuantityTypeIdentifierReadOnly | QuantityTypeIdentifierWriteable;
|
|
6
6
|
export type CategoryTypeIdentifierReadOnly = 'HKCategoryTypeIdentifierAppleStandHour' | 'HKCategoryTypeIdentifierHeadphoneAudioExposureEvent' | 'HKCategoryTypeIdentifierHighHeartRateEvent' | 'HKCategoryTypeIdentifierHypertensionEvent' | 'HKCategoryTypeIdentifierLowHeartRateEvent';
|
|
7
|
-
export type CategoryTypeIdentifierWriteable = 'HKCategoryTypeIdentifierAbdominalCramps' | 'HKCategoryTypeIdentifierAcne' | 'HKCategoryTypeIdentifierAppetiteChanges' | 'HKCategoryTypeIdentifierAppleWalkingSteadinessEvent' | 'HKCategoryTypeIdentifierAudioExposureEvent' | 'HKCategoryTypeIdentifierBladderIncontinence' | 'HKCategoryTypeIdentifierBleedingAfterPregnancy' | 'HKCategoryTypeIdentifierBleedingDuringPregnancy' | 'HKCategoryTypeIdentifierBloating' | 'HKCategoryTypeIdentifierBreastPain' | 'HKCategoryTypeIdentifierCervicalMucusQuality' | 'HKCategoryTypeIdentifierChestTightnessOrPain' | 'HKCategoryTypeIdentifierChills' | 'HKCategoryTypeIdentifierConstipation' | 'HKCategoryTypeIdentifierContraceptive' | 'HKCategoryTypeIdentifierCoughing' | 'HKCategoryTypeIdentifierDiarrhea' | 'HKCategoryTypeIdentifierDizziness' | 'HKCategoryTypeIdentifierDrySkin' | 'HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent' | 'HKCategoryTypeIdentifierFainting' | 'HKCategoryTypeIdentifierFatigue' | 'HKCategoryTypeIdentifierFever' | 'HKCategoryTypeIdentifierGeneralizedBodyAche' | 'HKCategoryTypeIdentifierHairLoss' | 'HKCategoryTypeIdentifierHandwashingEvent' | 'HKCategoryTypeIdentifierHeadache' | 'HKCategoryTypeIdentifierHeartburn' | 'HKCategoryTypeIdentifierHotFlashes' | 'HKCategoryTypeIdentifierInfrequentMenstrualCycles' | 'HKCategoryTypeIdentifierIntermenstrualBleeding' | 'HKCategoryTypeIdentifierIrregularHeartRhythmEvent' | 'HKCategoryTypeIdentifierIrregularMenstrualCycles' | 'HKCategoryTypeIdentifierLactation' | 'HKCategoryTypeIdentifierLossOfSmell' | 'HKCategoryTypeIdentifierLossOfTaste' | 'HKCategoryTypeIdentifierLowCardioFitnessEvent' | 'HKCategoryTypeIdentifierLowerBackPain' | 'HKCategoryTypeIdentifierMemoryLapse' | 'HKCategoryTypeIdentifierMenstrualFlow' | 'HKCategoryTypeIdentifierMindfulSession' | 'HKCategoryTypeIdentifierMoodChanges' | 'HKCategoryTypeIdentifierNausea' | 'HKCategoryTypeIdentifierNightSweats' | 'HKCategoryTypeIdentifierOvulationTestResult' | 'HKCategoryTypeIdentifierPelvicPain' | 'HKCategoryTypeIdentifierPersistentIntermenstrualBleeding' | 'HKCategoryTypeIdentifierPregnancy' | 'HKCategoryTypeIdentifierPregnancyTestResult' | 'HKCategoryTypeIdentifierProgesteroneTestResult' | 'HKCategoryTypeIdentifierProlongedMenstrualPeriods' | 'HKCategoryTypeIdentifierRapidPoundingOrFlutteringHeartbeat' | 'HKCategoryTypeIdentifierRunnyNose' | 'HKCategoryTypeIdentifierSexualActivity' | 'HKCategoryTypeIdentifierShortnessOfBreath' | 'HKCategoryTypeIdentifierSinusCongestion' | 'HKCategoryTypeIdentifierSkippedHeartbeat' | 'HKCategoryTypeIdentifierSleepAnalysis' | 'HKCategoryTypeIdentifierSleepApneaEvent' | 'HKCategoryTypeIdentifierSleepChanges' | 'HKCategoryTypeIdentifierSoreThroat' | 'HKCategoryTypeIdentifierToothbrushingEvent' | 'HKCategoryTypeIdentifierVaginalDryness' | 'HKCategoryTypeIdentifierVomiting' | 'HKCategoryTypeIdentifierWheezing';
|
|
7
|
+
export type CategoryTypeIdentifierWriteable = 'HKCategoryTypeIdentifierAbdominalCramps' | 'HKCategoryTypeIdentifierAcne' | 'HKCategoryTypeIdentifierAppetiteChanges' | 'HKCategoryTypeIdentifierAppleWalkingSteadinessEvent' | 'HKCategoryTypeIdentifierAudioExposureEvent' | 'HKCategoryTypeIdentifierBladderIncontinence' | 'HKCategoryTypeIdentifierBleedingAfterMenopause' | 'HKCategoryTypeIdentifierBleedingAfterPregnancy' | 'HKCategoryTypeIdentifierBleedingDuringPregnancy' | 'HKCategoryTypeIdentifierBloating' | 'HKCategoryTypeIdentifierBreastPain' | 'HKCategoryTypeIdentifierCervicalMucusQuality' | 'HKCategoryTypeIdentifierChestTightnessOrPain' | 'HKCategoryTypeIdentifierChills' | 'HKCategoryTypeIdentifierConstipation' | 'HKCategoryTypeIdentifierContraceptive' | 'HKCategoryTypeIdentifierCoughing' | 'HKCategoryTypeIdentifierDiarrhea' | 'HKCategoryTypeIdentifierDizziness' | 'HKCategoryTypeIdentifierDrySkin' | 'HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent' | 'HKCategoryTypeIdentifierFainting' | 'HKCategoryTypeIdentifierFatigue' | 'HKCategoryTypeIdentifierFever' | 'HKCategoryTypeIdentifierGeneralizedBodyAche' | 'HKCategoryTypeIdentifierHairLoss' | 'HKCategoryTypeIdentifierHandwashingEvent' | 'HKCategoryTypeIdentifierHeadache' | 'HKCategoryTypeIdentifierHeartburn' | 'HKCategoryTypeIdentifierHotFlashes' | 'HKCategoryTypeIdentifierInfrequentMenstrualCycles' | 'HKCategoryTypeIdentifierIntermenstrualBleeding' | 'HKCategoryTypeIdentifierIrregularHeartRhythmEvent' | 'HKCategoryTypeIdentifierIrregularMenstrualCycles' | 'HKCategoryTypeIdentifierLactation' | 'HKCategoryTypeIdentifierLossOfSmell' | 'HKCategoryTypeIdentifierLossOfTaste' | 'HKCategoryTypeIdentifierLowCardioFitnessEvent' | 'HKCategoryTypeIdentifierLowerBackPain' | 'HKCategoryTypeIdentifierMemoryLapse' | 'HKCategoryTypeIdentifierMenopausalState' | 'HKCategoryTypeIdentifierMenstrualFlow' | 'HKCategoryTypeIdentifierMindfulSession' | 'HKCategoryTypeIdentifierMoodChanges' | 'HKCategoryTypeIdentifierNausea' | 'HKCategoryTypeIdentifierNightSweats' | 'HKCategoryTypeIdentifierOvulationTestResult' | 'HKCategoryTypeIdentifierPelvicPain' | 'HKCategoryTypeIdentifierPersistentIntermenstrualBleeding' | 'HKCategoryTypeIdentifierPregnancy' | 'HKCategoryTypeIdentifierPregnancyTestResult' | 'HKCategoryTypeIdentifierProgesteroneTestResult' | 'HKCategoryTypeIdentifierProlongedMenstrualPeriods' | 'HKCategoryTypeIdentifierRapidPoundingOrFlutteringHeartbeat' | 'HKCategoryTypeIdentifierRunnyNose' | 'HKCategoryTypeIdentifierSexualActivity' | 'HKCategoryTypeIdentifierShortnessOfBreath' | 'HKCategoryTypeIdentifierSinusCongestion' | 'HKCategoryTypeIdentifierSkippedHeartbeat' | 'HKCategoryTypeIdentifierSleepAnalysis' | 'HKCategoryTypeIdentifierSleepApneaEvent' | 'HKCategoryTypeIdentifierSleepChanges' | 'HKCategoryTypeIdentifierSoreThroat' | 'HKCategoryTypeIdentifierToothbrushingEvent' | 'HKCategoryTypeIdentifierVaginalDryness' | 'HKCategoryTypeIdentifierVomiting' | 'HKCategoryTypeIdentifierWheezing';
|
|
8
8
|
export type CategoryTypeIdentifier = CategoryTypeIdentifierReadOnly | CategoryTypeIdentifierWriteable;
|
|
9
9
|
export declare const QUANTITY_IDENTIFIER_IOS_AVAILABILITY: {
|
|
10
10
|
readonly HKQuantityTypeIdentifierActiveEnergyBurned: "8.0";
|
|
@@ -136,6 +136,7 @@ export declare const CATEGORY_IDENTIFIER_IOS_AVAILABILITY: {
|
|
|
136
136
|
readonly HKCategoryTypeIdentifierAppleWalkingSteadinessEvent: "15.0";
|
|
137
137
|
readonly HKCategoryTypeIdentifierAudioExposureEvent: "13.0";
|
|
138
138
|
readonly HKCategoryTypeIdentifierBladderIncontinence: "14.0";
|
|
139
|
+
readonly HKCategoryTypeIdentifierBleedingAfterMenopause: "27.0";
|
|
139
140
|
readonly HKCategoryTypeIdentifierBleedingAfterPregnancy: "18.0";
|
|
140
141
|
readonly HKCategoryTypeIdentifierBleedingDuringPregnancy: "18.0";
|
|
141
142
|
readonly HKCategoryTypeIdentifierBloating: "13.6";
|
|
@@ -173,6 +174,7 @@ export declare const CATEGORY_IDENTIFIER_IOS_AVAILABILITY: {
|
|
|
173
174
|
readonly HKCategoryTypeIdentifierLowerBackPain: "13.6";
|
|
174
175
|
readonly HKCategoryTypeIdentifierLowHeartRateEvent: "12.2";
|
|
175
176
|
readonly HKCategoryTypeIdentifierMemoryLapse: "14.0";
|
|
177
|
+
readonly HKCategoryTypeIdentifierMenopausalState: "27.0";
|
|
176
178
|
readonly HKCategoryTypeIdentifierMenstrualFlow: "9.0";
|
|
177
179
|
readonly HKCategoryTypeIdentifierMindfulSession: "10.0";
|
|
178
180
|
readonly HKCategoryTypeIdentifierMoodChanges: "13.6";
|
|
@@ -330,6 +332,7 @@ export declare const CATEGORY_IDENTIFIER_VALUE_ENUMS: {
|
|
|
330
332
|
readonly HKCategoryTypeIdentifierAppleWalkingSteadinessEvent: "CategoryValueAppleWalkingSteadinessEvent";
|
|
331
333
|
readonly HKCategoryTypeIdentifierAudioExposureEvent: null;
|
|
332
334
|
readonly HKCategoryTypeIdentifierBladderIncontinence: "CategoryValueSeverity";
|
|
335
|
+
readonly HKCategoryTypeIdentifierBleedingAfterMenopause: "CategoryValueVaginalBleeding";
|
|
333
336
|
readonly HKCategoryTypeIdentifierBleedingAfterPregnancy: "CategoryValueVaginalBleeding";
|
|
334
337
|
readonly HKCategoryTypeIdentifierBleedingDuringPregnancy: "CategoryValueVaginalBleeding";
|
|
335
338
|
readonly HKCategoryTypeIdentifierBloating: "CategoryValueSeverity";
|
|
@@ -367,6 +370,7 @@ export declare const CATEGORY_IDENTIFIER_VALUE_ENUMS: {
|
|
|
367
370
|
readonly HKCategoryTypeIdentifierLowerBackPain: "CategoryValueSeverity";
|
|
368
371
|
readonly HKCategoryTypeIdentifierLowHeartRateEvent: "CategoryValue";
|
|
369
372
|
readonly HKCategoryTypeIdentifierMemoryLapse: "CategoryValueSeverity";
|
|
373
|
+
readonly HKCategoryTypeIdentifierMenopausalState: "CategoryValueMenopausalState";
|
|
370
374
|
readonly HKCategoryTypeIdentifierMenstrualFlow: "CategoryValueMenstrualFlow";
|
|
371
375
|
readonly HKCategoryTypeIdentifierMindfulSession: "CategoryValue";
|
|
372
376
|
readonly HKCategoryTypeIdentifierMoodChanges: "CategoryValuePresence";
|
|
@@ -463,6 +467,11 @@ export declare enum CategoryValueHeadphoneAudioExposureEvent {
|
|
|
463
467
|
export declare enum CategoryValueLowCardioFitnessEvent {
|
|
464
468
|
lowFitness = 1
|
|
465
469
|
}
|
|
470
|
+
export declare enum CategoryValueMenopausalState {
|
|
471
|
+
menopause = 1,
|
|
472
|
+
perimenopause = 2,
|
|
473
|
+
none = 3
|
|
474
|
+
}
|
|
466
475
|
export declare enum CategoryValueMenstrualFlow {
|
|
467
476
|
unspecified = 1,
|
|
468
477
|
light = 2,
|
|
@@ -691,6 +700,8 @@ export declare enum WorkoutActivityType {
|
|
|
691
700
|
swimBikeRun = 82,
|
|
692
701
|
transition = 83,
|
|
693
702
|
underwaterDiving = 84,
|
|
703
|
+
rest = 2998,
|
|
704
|
+
group = 2999,
|
|
694
705
|
other = 3000
|
|
695
706
|
}
|
|
696
707
|
export declare enum WorkoutEventType {
|
|
@@ -715,6 +726,7 @@ export interface CategoryValueByIdentifierMap {
|
|
|
715
726
|
readonly HKCategoryTypeIdentifierAppleStandHour: CategoryValueAppleStandHour;
|
|
716
727
|
readonly HKCategoryTypeIdentifierAppleWalkingSteadinessEvent: CategoryValueAppleWalkingSteadinessEvent;
|
|
717
728
|
readonly HKCategoryTypeIdentifierBladderIncontinence: CategoryValueSeverity;
|
|
729
|
+
readonly HKCategoryTypeIdentifierBleedingAfterMenopause: CategoryValueVaginalBleeding;
|
|
718
730
|
readonly HKCategoryTypeIdentifierBleedingAfterPregnancy: CategoryValueVaginalBleeding;
|
|
719
731
|
readonly HKCategoryTypeIdentifierBleedingDuringPregnancy: CategoryValueVaginalBleeding;
|
|
720
732
|
readonly HKCategoryTypeIdentifierBloating: CategoryValueSeverity;
|
|
@@ -752,6 +764,7 @@ export interface CategoryValueByIdentifierMap {
|
|
|
752
764
|
readonly HKCategoryTypeIdentifierLowerBackPain: CategoryValueSeverity;
|
|
753
765
|
readonly HKCategoryTypeIdentifierLowHeartRateEvent: CategoryValue;
|
|
754
766
|
readonly HKCategoryTypeIdentifierMemoryLapse: CategoryValueSeverity;
|
|
767
|
+
readonly HKCategoryTypeIdentifierMenopausalState: CategoryValueMenopausalState;
|
|
755
768
|
readonly HKCategoryTypeIdentifierMenstrualFlow: CategoryValueMenstrualFlow;
|
|
756
769
|
readonly HKCategoryTypeIdentifierMindfulSession: CategoryValue;
|
|
757
770
|
readonly HKCategoryTypeIdentifierMoodChanges: CategoryValuePresence;
|
|
@@ -872,7 +885,7 @@ export interface CategorySpecificMetadataByIdentifierMap {
|
|
|
872
885
|
readonly HKCategoryTypeIdentifierMenstrualFlow: Pick<CategoryTypedMetadata, 'HKMenstrualCycleStart'>;
|
|
873
886
|
readonly HKCategoryTypeIdentifierSexualActivity: Pick<CategoryTypedMetadata, 'HKSexualActivityProtectionUsed'>;
|
|
874
887
|
}
|
|
875
|
-
export type CategoryTypedMetadataForIdentifierGenerated<T extends CategoryTypeIdentifier = CategoryTypeIdentifier> = KnownSampleMetadata & (T extends keyof CategorySpecificMetadataByIdentifierMap ? CategorySpecificMetadataByIdentifierMap[T] :
|
|
888
|
+
export type CategoryTypedMetadataForIdentifierGenerated<T extends CategoryTypeIdentifier = CategoryTypeIdentifier> = KnownSampleMetadata & (T extends keyof CategorySpecificMetadataByIdentifierMap ? CategorySpecificMetadataByIdentifierMap[T] : unknown);
|
|
876
889
|
export interface QuantitySpecificMetadataByIdentifierMap {
|
|
877
890
|
readonly HKQuantityTypeIdentifierBasalBodyTemperature: Pick<QuantityTypedMetadata, 'HKBodyTemperatureSensorLocation'>;
|
|
878
891
|
readonly HKQuantityTypeIdentifierBloodGlucose: Pick<QuantityTypedMetadata, 'HKBloodGlucoseMealTime'>;
|
|
@@ -880,7 +893,7 @@ export interface QuantitySpecificMetadataByIdentifierMap {
|
|
|
880
893
|
readonly HKQuantityTypeIdentifierInsulinDelivery: Pick<QuantityTypedMetadata, 'HKInsulinDeliveryReason'>;
|
|
881
894
|
readonly HKQuantityTypeIdentifierVO2Max: Pick<QuantityTypedMetadata, 'HKVO2MaxTestType'>;
|
|
882
895
|
}
|
|
883
|
-
export type QuantityTypedMetadataForIdentifierGenerated<T extends QuantityTypeIdentifier = QuantityTypeIdentifier> = KnownSampleMetadata & Pick<QuantityTypedMetadata, 'HKHeartRateMotionContext' | 'HKHeartRateRecoveryActivityDuration' | 'HKHeartRateRecoveryActivityType' | 'HKHeartRateRecoveryMaxObservedRecoveryHeartRate' | 'HKHeartRateRecoveryTestType' | 'HKHeartRateSensorLocation' | 'HKQuantityClampedToLowerBound' | 'HKQuantityClampedToUpperBound' | 'HKSessionEstimate'> & (T extends keyof QuantitySpecificMetadataByIdentifierMap ? QuantitySpecificMetadataByIdentifierMap[T] :
|
|
896
|
+
export type QuantityTypedMetadataForIdentifierGenerated<T extends QuantityTypeIdentifier = QuantityTypeIdentifier> = KnownSampleMetadata & Pick<QuantityTypedMetadata, 'HKHeartRateMotionContext' | 'HKHeartRateRecoveryActivityDuration' | 'HKHeartRateRecoveryActivityType' | 'HKHeartRateRecoveryMaxObservedRecoveryHeartRate' | 'HKHeartRateRecoveryTestType' | 'HKHeartRateSensorLocation' | 'HKQuantityClampedToLowerBound' | 'HKQuantityClampedToUpperBound' | 'HKSessionEstimate'> & (T extends keyof QuantitySpecificMetadataByIdentifierMap ? QuantitySpecificMetadataByIdentifierMap[T] : unknown);
|
|
884
897
|
export interface QuantityUnitByIdentifierMap {
|
|
885
898
|
readonly HKQuantityTypeIdentifierActiveEnergyBurned: EnergyUnit;
|
|
886
899
|
readonly HKQuantityTypeIdentifierAppleExerciseTime: TimeUnit;
|
|
@@ -26,6 +26,7 @@ export declare const subscribeToChanges: (identifier: import("./types").SampleTy
|
|
|
26
26
|
remove: () => boolean;
|
|
27
27
|
};
|
|
28
28
|
export declare const isProtectedDataAvailable: () => boolean;
|
|
29
|
+
export declare const isProtectedDataAvailableAsync: () => Promise<boolean>;
|
|
29
30
|
export declare const isObjectTypeAvailable: (objectTypeIdentifier: import("./types").ObjectTypeIdentifier) => boolean;
|
|
30
31
|
export declare const isObjectTypeAvailableAsync: (objectTypeIdentifier: import("./types").ObjectTypeIdentifier) => Promise<boolean>;
|
|
31
32
|
export declare const areObjectTypesAvailable: (objectTypeIdentifiers: readonly import("./types").ObjectTypeIdentifier[]) => Record<string, boolean>;
|
|
@@ -85,6 +85,7 @@ export declare const saveQuantitySample: <T extends import("./types").QuantityTy
|
|
|
85
85
|
export declare const saveWorkoutSample: BoundMethod<(workoutActivityType: import("./types").WorkoutActivityType, quantities: readonly import("./types").QuantitySampleForSaving[], startDate: Date, endDate: Date, totals?: import("./types").WorkoutTotals, metadata?: import("react-native-nitro-modules").AnyMap) => Promise<import("./specs/WorkoutProxy.nitro").WorkoutProxy>, Promise<WorkoutProxyTyped>>;
|
|
86
86
|
export declare const startWatchApp: (workoutConfiguration: import("./types").WorkoutConfiguration) => Promise<boolean>;
|
|
87
87
|
export declare const isProtectedDataAvailable: () => boolean;
|
|
88
|
+
export declare const isProtectedDataAvailableAsync: () => Promise<boolean>;
|
|
88
89
|
export declare const queryStateOfMindSamples: BoundMethod<(options: import("./types").QueryOptionsWithSortOrder) => Promise<readonly import("./types").StateOfMindSample[]>, Promise<readonly StateOfMindSampleTyped[]>>;
|
|
89
90
|
export declare const queryStateOfMindSamplesWithAnchor: BoundMethod<(options: import("./types").QueryOptionsWithAnchor) => Promise<import("./types").StateOfMindSamplesWithAnchorResponse>, Promise<StateOfMindSamplesWithAnchorResponseTyped>>;
|
|
90
91
|
export declare const saveStateOfMindSample: BoundMethod<(date: Date, kind: import("./types").StateOfMindKind, valence: number, labels: readonly import("./types").StateOfMindLabel[], associations: readonly import("./types").StateOfMindAssociation[], metadata?: import("react-native-nitro-modules").AnyMap) => Promise<import("./types").StateOfMindSample | undefined>, Promise<StateOfMindSampleTyped | undefined>>;
|
|
@@ -165,6 +166,7 @@ declare const _default: {
|
|
|
165
166
|
};
|
|
166
167
|
startWatchApp: (workoutConfiguration: import("./types").WorkoutConfiguration) => Promise<boolean>;
|
|
167
168
|
isProtectedDataAvailable: () => boolean;
|
|
169
|
+
isProtectedDataAvailableAsync: () => Promise<boolean>;
|
|
168
170
|
queryStateOfMindSamples: BoundMethod<(options: import("./types").QueryOptionsWithSortOrder) => Promise<readonly import("./types").StateOfMindSample[]>, Promise<readonly StateOfMindSampleTyped[]>>;
|
|
169
171
|
queryStateOfMindSamplesWithAnchor: BoundMethod<(options: import("./types").QueryOptionsWithAnchor) => Promise<import("./types").StateOfMindSamplesWithAnchorResponse>, Promise<StateOfMindSamplesWithAnchorResponseTyped>>;
|
|
170
172
|
saveStateOfMindSample: BoundMethod<(date: Date, kind: import("./types").StateOfMindKind, valence: number, labels: readonly import("./types").StateOfMindLabel[], associations: readonly import("./types").StateOfMindAssociation[], metadata?: import("react-native-nitro-modules").AnyMap) => Promise<import("./types").StateOfMindSample | undefined>, Promise<StateOfMindSampleTyped | undefined>>;
|
|
@@ -27,13 +27,15 @@ export interface CoreModule extends HybridObject<{
|
|
|
27
27
|
*/
|
|
28
28
|
disableAllBackgroundDelivery(): Promise<boolean>;
|
|
29
29
|
/**
|
|
30
|
-
* Configure background delivery types
|
|
31
|
-
*
|
|
30
|
+
* Configure background delivery types whose observer queries are registered
|
|
31
|
+
* natively at launch (during didFinishLaunchingWithOptions), so background
|
|
32
|
+
* delivery survives app termination.
|
|
32
33
|
* Types and frequency are persisted to UserDefaults so they're available
|
|
33
34
|
* before the JS bridge boots on subsequent cold launches.
|
|
34
35
|
*
|
|
35
|
-
* Requires the
|
|
36
|
-
*
|
|
36
|
+
* Requires the background-delivery entitlement (added by the config plugin
|
|
37
|
+
* unless `background: false`). No AppDelegate change is needed; the pod
|
|
38
|
+
* registers the observers on UIApplicationDidFinishLaunchingNotification.
|
|
37
39
|
*/
|
|
38
40
|
configureBackgroundTypes(typeIdentifiers: string[], updateFrequency: UpdateFrequency): Promise<boolean>;
|
|
39
41
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HybridObject } from 'react-native-nitro-modules';
|
|
2
|
-
interface Source {
|
|
2
|
+
export interface Source {
|
|
3
3
|
readonly name: string;
|
|
4
4
|
readonly bundleIdentifier: string;
|
|
5
5
|
}
|
|
@@ -11,4 +11,3 @@ export interface SourceProxy extends HybridObject<{
|
|
|
11
11
|
}>, Source {
|
|
12
12
|
toJSON(key?: string): Source;
|
|
13
13
|
}
|
|
14
|
-
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { UnitForIdentifierGenerated } from '../generated/healthkit.generated';
|
|
2
2
|
import { HeartRateMotionContext, InsulinDeliveryReason } from '../generated/healthkit.generated';
|
|
3
|
-
import type {
|
|
3
|
+
import type { Source } from '../specs/SourceProxy.nitro';
|
|
4
4
|
import type { QuantitySample, QuantitySampleTyped } from './QuantitySample';
|
|
5
5
|
import type { QuantityTypeIdentifier } from './QuantityTypeIdentifier';
|
|
6
6
|
import type { FilterForSamples } from './QueryOptions';
|
|
@@ -20,10 +20,10 @@ export interface QueryStatisticsResponse {
|
|
|
20
20
|
readonly duration?: Quantity;
|
|
21
21
|
readonly startDate?: Date;
|
|
22
22
|
readonly endDate?: Date;
|
|
23
|
-
sources:
|
|
23
|
+
readonly sources: readonly Source[];
|
|
24
24
|
}
|
|
25
25
|
export interface QueryStatisticsResponseFromSingleSource extends Omit<QueryStatisticsResponse, 'sources'> {
|
|
26
|
-
readonly source:
|
|
26
|
+
readonly source: Source;
|
|
27
27
|
}
|
|
28
28
|
export declare enum AggregationStyle {
|
|
29
29
|
cumulative = 0,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Source } from '../specs/SourceProxy.nitro';
|
|
2
2
|
/**
|
|
3
3
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkobject/1615483-sourcerevision Apple Docs }
|
|
4
4
|
*/
|
|
5
5
|
export interface SourceRevision {
|
|
6
|
-
readonly source:
|
|
6
|
+
readonly source: Source;
|
|
7
7
|
readonly version?: string;
|
|
8
8
|
readonly operatingSystemVersion: string;
|
|
9
9
|
readonly productType?: string;
|
|
@@ -25,22 +25,6 @@
|
|
|
25
25
|
|
|
26
26
|
namespace margelo::nitro::healthkit::bridge::swift {
|
|
27
27
|
|
|
28
|
-
// pragma MARK: std::shared_ptr<HybridSourceProxySpec>
|
|
29
|
-
std::shared_ptr<HybridSourceProxySpec> create_std__shared_ptr_HybridSourceProxySpec_(void* NON_NULL swiftUnsafePointer) noexcept {
|
|
30
|
-
ReactNativeHealthkit::HybridSourceProxySpec_cxx swiftPart = ReactNativeHealthkit::HybridSourceProxySpec_cxx::fromUnsafe(swiftUnsafePointer);
|
|
31
|
-
return std::make_shared<margelo::nitro::healthkit::HybridSourceProxySpecSwift>(swiftPart);
|
|
32
|
-
}
|
|
33
|
-
void* NON_NULL get_std__shared_ptr_HybridSourceProxySpec_(std__shared_ptr_HybridSourceProxySpec_ cppType) {
|
|
34
|
-
std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpecSwift> swiftWrapper = std::dynamic_pointer_cast<margelo::nitro::healthkit::HybridSourceProxySpecSwift>(cppType);
|
|
35
|
-
#ifdef NITRO_DEBUG
|
|
36
|
-
if (swiftWrapper == nullptr) [[unlikely]] {
|
|
37
|
-
throw std::runtime_error("Class \"HybridSourceProxySpec\" is not implemented in Swift!");
|
|
38
|
-
}
|
|
39
|
-
#endif
|
|
40
|
-
ReactNativeHealthkit::HybridSourceProxySpec_cxx& swiftPart = swiftWrapper->getSwiftPart();
|
|
41
|
-
return swiftPart.toUnsafe();
|
|
42
|
-
}
|
|
43
|
-
|
|
44
28
|
// pragma MARK: std::function<void(const std::optional<CategorySample>& /* result */)>
|
|
45
29
|
Func_void_std__optional_CategorySample_ create_Func_void_std__optional_CategorySample_(void* NON_NULL swiftClosureWrapper) noexcept {
|
|
46
30
|
auto swiftClosure = ReactNativeHealthkit::Func_void_std__optional_CategorySample_::fromUnsafe(swiftClosureWrapper);
|
|
@@ -65,6 +49,22 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
65
49
|
};
|
|
66
50
|
}
|
|
67
51
|
|
|
52
|
+
// pragma MARK: std::shared_ptr<HybridSourceProxySpec>
|
|
53
|
+
std::shared_ptr<HybridSourceProxySpec> create_std__shared_ptr_HybridSourceProxySpec_(void* NON_NULL swiftUnsafePointer) noexcept {
|
|
54
|
+
ReactNativeHealthkit::HybridSourceProxySpec_cxx swiftPart = ReactNativeHealthkit::HybridSourceProxySpec_cxx::fromUnsafe(swiftUnsafePointer);
|
|
55
|
+
return std::make_shared<margelo::nitro::healthkit::HybridSourceProxySpecSwift>(swiftPart);
|
|
56
|
+
}
|
|
57
|
+
void* NON_NULL get_std__shared_ptr_HybridSourceProxySpec_(std__shared_ptr_HybridSourceProxySpec_ cppType) {
|
|
58
|
+
std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpecSwift> swiftWrapper = std::dynamic_pointer_cast<margelo::nitro::healthkit::HybridSourceProxySpecSwift>(cppType);
|
|
59
|
+
#ifdef NITRO_DEBUG
|
|
60
|
+
if (swiftWrapper == nullptr) [[unlikely]] {
|
|
61
|
+
throw std::runtime_error("Class \"HybridSourceProxySpec\" is not implemented in Swift!");
|
|
62
|
+
}
|
|
63
|
+
#endif
|
|
64
|
+
ReactNativeHealthkit::HybridSourceProxySpec_cxx& swiftPart = swiftWrapper->getSwiftPart();
|
|
65
|
+
return swiftPart.toUnsafe();
|
|
66
|
+
}
|
|
67
|
+
|
|
68
68
|
// pragma MARK: std::shared_ptr<HybridWorkoutProxySpec>
|
|
69
69
|
std::shared_ptr<HybridWorkoutProxySpec> create_std__shared_ptr_HybridWorkoutProxySpec_(void* NON_NULL swiftUnsafePointer) noexcept {
|
|
70
70
|
ReactNativeHealthkit::HybridWorkoutProxySpec_cxx swiftPart = ReactNativeHealthkit::HybridWorkoutProxySpec_cxx::fromUnsafe(swiftUnsafePointer);
|
|
@@ -323,18 +323,6 @@ namespace ReactNativeHealthkit { class HybridWorkoutsModuleSpec_cxx; }
|
|
|
323
323
|
*/
|
|
324
324
|
namespace margelo::nitro::healthkit::bridge::swift {
|
|
325
325
|
|
|
326
|
-
// pragma MARK: std::shared_ptr<HybridSourceProxySpec>
|
|
327
|
-
/**
|
|
328
|
-
* Specialized version of `std::shared_ptr<HybridSourceProxySpec>`.
|
|
329
|
-
*/
|
|
330
|
-
using std__shared_ptr_HybridSourceProxySpec_ = std::shared_ptr<HybridSourceProxySpec>;
|
|
331
|
-
std::shared_ptr<HybridSourceProxySpec> create_std__shared_ptr_HybridSourceProxySpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
332
|
-
void* NON_NULL get_std__shared_ptr_HybridSourceProxySpec_(std__shared_ptr_HybridSourceProxySpec_ cppType);
|
|
333
|
-
|
|
334
|
-
// pragma MARK: std::weak_ptr<HybridSourceProxySpec>
|
|
335
|
-
using std__weak_ptr_HybridSourceProxySpec_ = std::weak_ptr<HybridSourceProxySpec>;
|
|
336
|
-
inline std__weak_ptr_HybridSourceProxySpec_ weakify_std__shared_ptr_HybridSourceProxySpec_(const std::shared_ptr<HybridSourceProxySpec>& strong) noexcept { return strong; }
|
|
337
|
-
|
|
338
326
|
// pragma MARK: std::optional<std::string>
|
|
339
327
|
/**
|
|
340
328
|
* Specialized version of `std::optional<std::string>`.
|
|
@@ -511,6 +499,18 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
511
499
|
return optional.value();
|
|
512
500
|
}
|
|
513
501
|
|
|
502
|
+
// pragma MARK: std::shared_ptr<HybridSourceProxySpec>
|
|
503
|
+
/**
|
|
504
|
+
* Specialized version of `std::shared_ptr<HybridSourceProxySpec>`.
|
|
505
|
+
*/
|
|
506
|
+
using std__shared_ptr_HybridSourceProxySpec_ = std::shared_ptr<HybridSourceProxySpec>;
|
|
507
|
+
std::shared_ptr<HybridSourceProxySpec> create_std__shared_ptr_HybridSourceProxySpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
508
|
+
void* NON_NULL get_std__shared_ptr_HybridSourceProxySpec_(std__shared_ptr_HybridSourceProxySpec_ cppType);
|
|
509
|
+
|
|
510
|
+
// pragma MARK: std::weak_ptr<HybridSourceProxySpec>
|
|
511
|
+
using std__weak_ptr_HybridSourceProxySpec_ = std::weak_ptr<HybridSourceProxySpec>;
|
|
512
|
+
inline std__weak_ptr_HybridSourceProxySpec_ weakify_std__shared_ptr_HybridSourceProxySpec_(const std::shared_ptr<HybridSourceProxySpec>& strong) noexcept { return strong; }
|
|
513
|
+
|
|
514
514
|
// pragma MARK: std::vector<std::shared_ptr<HybridSourceProxySpec>>
|
|
515
515
|
/**
|
|
516
516
|
* Specialized version of `std::vector<std::shared_ptr<HybridSourceProxySpec>>`.
|
|
@@ -2421,6 +2421,17 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
2421
2421
|
return optional.value();
|
|
2422
2422
|
}
|
|
2423
2423
|
|
|
2424
|
+
// pragma MARK: std::vector<Source>
|
|
2425
|
+
/**
|
|
2426
|
+
* Specialized version of `std::vector<Source>`.
|
|
2427
|
+
*/
|
|
2428
|
+
using std__vector_Source_ = std::vector<Source>;
|
|
2429
|
+
inline std::vector<Source> create_std__vector_Source_(size_t size) noexcept {
|
|
2430
|
+
std::vector<Source> vector;
|
|
2431
|
+
vector.reserve(size);
|
|
2432
|
+
return vector;
|
|
2433
|
+
}
|
|
2434
|
+
|
|
2424
2435
|
// pragma MARK: std::shared_ptr<Promise<QueryStatisticsResponse>>
|
|
2425
2436
|
/**
|
|
2426
2437
|
* Specialized version of `std::shared_ptr<Promise<QueryStatisticsResponse>>`.
|
|
@@ -20,8 +20,8 @@ namespace margelo::nitro::healthkit { enum class CategoryTypeIdentifier; }
|
|
|
20
20
|
namespace margelo::nitro::healthkit { struct SampleType; }
|
|
21
21
|
// Forward declaration of `SourceRevision` to properly resolve imports.
|
|
22
22
|
namespace margelo::nitro::healthkit { struct SourceRevision; }
|
|
23
|
-
// Forward declaration of `
|
|
24
|
-
namespace margelo::nitro::healthkit {
|
|
23
|
+
// Forward declaration of `Source` to properly resolve imports.
|
|
24
|
+
namespace margelo::nitro::healthkit { struct Source; }
|
|
25
25
|
// Forward declaration of `Device` to properly resolve imports.
|
|
26
26
|
namespace margelo::nitro::healthkit { struct Device; }
|
|
27
27
|
// Forward declaration of `CategoryTypeIdentifierWriteable` to properly resolve imports.
|
|
@@ -30,6 +30,8 @@ namespace margelo::nitro::healthkit { enum class CategoryTypeIdentifierWriteable
|
|
|
30
30
|
namespace margelo::nitro::healthkit { struct QueryOptionsWithSortOrder; }
|
|
31
31
|
// Forward declaration of `FilterForSamples` to properly resolve imports.
|
|
32
32
|
namespace margelo::nitro::healthkit { struct FilterForSamples; }
|
|
33
|
+
// Forward declaration of `HybridSourceProxySpec` to properly resolve imports.
|
|
34
|
+
namespace margelo::nitro::healthkit { class HybridSourceProxySpec; }
|
|
33
35
|
// Forward declaration of `FilterForSamplesBase` to properly resolve imports.
|
|
34
36
|
namespace margelo::nitro::healthkit { struct FilterForSamplesBase; }
|
|
35
37
|
// Forward declaration of `PredicateWithMetadataKey` to properly resolve imports.
|
|
@@ -56,13 +58,14 @@ namespace margelo::nitro::healthkit { struct QueryOptionsWithAnchor; }
|
|
|
56
58
|
#include <chrono>
|
|
57
59
|
#include <NitroModules/AnyMap.hpp>
|
|
58
60
|
#include "SourceRevision.hpp"
|
|
59
|
-
#include
|
|
60
|
-
#include "HybridSourceProxySpec.hpp"
|
|
61
|
+
#include "Source.hpp"
|
|
61
62
|
#include "Device.hpp"
|
|
62
63
|
#include "CategoryTypeIdentifierWriteable.hpp"
|
|
63
64
|
#include <vector>
|
|
64
65
|
#include "QueryOptionsWithSortOrder.hpp"
|
|
65
66
|
#include "FilterForSamples.hpp"
|
|
67
|
+
#include <memory>
|
|
68
|
+
#include "HybridSourceProxySpec.hpp"
|
|
66
69
|
#include "FilterForSamplesBase.hpp"
|
|
67
70
|
#include "PredicateWithMetadataKey.hpp"
|
|
68
71
|
#include "ComparisonPredicateOperator.hpp"
|
|
@@ -26,8 +26,8 @@ namespace margelo::nitro::healthkit { enum class CategoryTypeIdentifier; }
|
|
|
26
26
|
namespace margelo::nitro::healthkit { struct SampleType; }
|
|
27
27
|
// Forward declaration of `SourceRevision` to properly resolve imports.
|
|
28
28
|
namespace margelo::nitro::healthkit { struct SourceRevision; }
|
|
29
|
-
// Forward declaration of `
|
|
30
|
-
namespace margelo::nitro::healthkit {
|
|
29
|
+
// Forward declaration of `Source` to properly resolve imports.
|
|
30
|
+
namespace margelo::nitro::healthkit { struct Source; }
|
|
31
31
|
// Forward declaration of `Device` to properly resolve imports.
|
|
32
32
|
namespace margelo::nitro::healthkit { struct Device; }
|
|
33
33
|
// Forward declaration of `QuantityTypeIdentifier` to properly resolve imports.
|
|
@@ -40,6 +40,8 @@ namespace margelo::nitro::healthkit { struct QuantitySampleForSaving; }
|
|
|
40
40
|
namespace margelo::nitro::healthkit { struct QueryOptionsWithSortOrder; }
|
|
41
41
|
// Forward declaration of `FilterForSamples` to properly resolve imports.
|
|
42
42
|
namespace margelo::nitro::healthkit { struct FilterForSamples; }
|
|
43
|
+
// Forward declaration of `HybridSourceProxySpec` to properly resolve imports.
|
|
44
|
+
namespace margelo::nitro::healthkit { class HybridSourceProxySpec; }
|
|
43
45
|
// Forward declaration of `FilterForSamplesBase` to properly resolve imports.
|
|
44
46
|
namespace margelo::nitro::healthkit { struct FilterForSamplesBase; }
|
|
45
47
|
// Forward declaration of `PredicateWithMetadataKey` to properly resolve imports.
|
|
@@ -71,14 +73,15 @@ namespace margelo::nitro::healthkit { struct QueryOptionsWithAnchor; }
|
|
|
71
73
|
#include <chrono>
|
|
72
74
|
#include <NitroModules/AnyMap.hpp>
|
|
73
75
|
#include "SourceRevision.hpp"
|
|
74
|
-
#include
|
|
75
|
-
#include "HybridSourceProxySpec.hpp"
|
|
76
|
+
#include "Source.hpp"
|
|
76
77
|
#include "Device.hpp"
|
|
77
78
|
#include "QuantityTypeIdentifier.hpp"
|
|
78
79
|
#include "CategorySampleForSaving.hpp"
|
|
79
80
|
#include "QuantitySampleForSaving.hpp"
|
|
80
81
|
#include "QueryOptionsWithSortOrder.hpp"
|
|
81
82
|
#include "FilterForSamples.hpp"
|
|
83
|
+
#include <memory>
|
|
84
|
+
#include "HybridSourceProxySpec.hpp"
|
|
82
85
|
#include "FilterForSamplesBase.hpp"
|
|
83
86
|
#include "PredicateWithMetadataKey.hpp"
|
|
84
87
|
#include "ComparisonPredicateOperator.hpp"
|
|
@@ -26,14 +26,16 @@ namespace margelo::nitro::healthkit { enum class ElectrocardiogramLead; }
|
|
|
26
26
|
namespace margelo::nitro::healthkit { struct SampleType; }
|
|
27
27
|
// Forward declaration of `SourceRevision` to properly resolve imports.
|
|
28
28
|
namespace margelo::nitro::healthkit { struct SourceRevision; }
|
|
29
|
-
// Forward declaration of `
|
|
30
|
-
namespace margelo::nitro::healthkit {
|
|
29
|
+
// Forward declaration of `Source` to properly resolve imports.
|
|
30
|
+
namespace margelo::nitro::healthkit { struct Source; }
|
|
31
31
|
// Forward declaration of `Device` to properly resolve imports.
|
|
32
32
|
namespace margelo::nitro::healthkit { struct Device; }
|
|
33
33
|
// Forward declaration of `ECGQueryOptionsWithSortOrder` to properly resolve imports.
|
|
34
34
|
namespace margelo::nitro::healthkit { struct ECGQueryOptionsWithSortOrder; }
|
|
35
35
|
// Forward declaration of `FilterForSamples` to properly resolve imports.
|
|
36
36
|
namespace margelo::nitro::healthkit { struct FilterForSamples; }
|
|
37
|
+
// Forward declaration of `HybridSourceProxySpec` to properly resolve imports.
|
|
38
|
+
namespace margelo::nitro::healthkit { class HybridSourceProxySpec; }
|
|
37
39
|
// Forward declaration of `FilterForSamplesBase` to properly resolve imports.
|
|
38
40
|
namespace margelo::nitro::healthkit { struct FilterForSamplesBase; }
|
|
39
41
|
// Forward declaration of `PredicateWithMetadataKey` to properly resolve imports.
|
|
@@ -64,11 +66,12 @@ namespace margelo::nitro::healthkit { struct ECGQueryOptionsWithAnchor; }
|
|
|
64
66
|
#include <chrono>
|
|
65
67
|
#include <NitroModules/AnyMap.hpp>
|
|
66
68
|
#include "SourceRevision.hpp"
|
|
67
|
-
#include
|
|
68
|
-
#include "HybridSourceProxySpec.hpp"
|
|
69
|
+
#include "Source.hpp"
|
|
69
70
|
#include "Device.hpp"
|
|
70
71
|
#include "ECGQueryOptionsWithSortOrder.hpp"
|
|
71
72
|
#include "FilterForSamples.hpp"
|
|
73
|
+
#include <memory>
|
|
74
|
+
#include "HybridSourceProxySpec.hpp"
|
|
72
75
|
#include "FilterForSamplesBase.hpp"
|
|
73
76
|
#include "PredicateWithMetadataKey.hpp"
|
|
74
77
|
#include "ComparisonPredicateOperator.hpp"
|
|
@@ -20,14 +20,16 @@ namespace margelo::nitro::healthkit { struct Heartbeat; }
|
|
|
20
20
|
namespace margelo::nitro::healthkit { struct SampleType; }
|
|
21
21
|
// Forward declaration of `SourceRevision` to properly resolve imports.
|
|
22
22
|
namespace margelo::nitro::healthkit { struct SourceRevision; }
|
|
23
|
-
// Forward declaration of `
|
|
24
|
-
namespace margelo::nitro::healthkit {
|
|
23
|
+
// Forward declaration of `Source` to properly resolve imports.
|
|
24
|
+
namespace margelo::nitro::healthkit { struct Source; }
|
|
25
25
|
// Forward declaration of `Device` to properly resolve imports.
|
|
26
26
|
namespace margelo::nitro::healthkit { struct Device; }
|
|
27
27
|
// Forward declaration of `QueryOptionsWithSortOrder` to properly resolve imports.
|
|
28
28
|
namespace margelo::nitro::healthkit { struct QueryOptionsWithSortOrder; }
|
|
29
29
|
// Forward declaration of `FilterForSamples` to properly resolve imports.
|
|
30
30
|
namespace margelo::nitro::healthkit { struct FilterForSamples; }
|
|
31
|
+
// Forward declaration of `HybridSourceProxySpec` to properly resolve imports.
|
|
32
|
+
namespace margelo::nitro::healthkit { class HybridSourceProxySpec; }
|
|
31
33
|
// Forward declaration of `FilterForSamplesBase` to properly resolve imports.
|
|
32
34
|
namespace margelo::nitro::healthkit { struct FilterForSamplesBase; }
|
|
33
35
|
// Forward declaration of `PredicateWithMetadataKey` to properly resolve imports.
|
|
@@ -54,12 +56,13 @@ namespace margelo::nitro::healthkit { struct QueryOptionsWithAnchor; }
|
|
|
54
56
|
#include <chrono>
|
|
55
57
|
#include <NitroModules/AnyMap.hpp>
|
|
56
58
|
#include "SourceRevision.hpp"
|
|
57
|
-
#include
|
|
58
|
-
#include "HybridSourceProxySpec.hpp"
|
|
59
|
+
#include "Source.hpp"
|
|
59
60
|
#include <optional>
|
|
60
61
|
#include "Device.hpp"
|
|
61
62
|
#include "QueryOptionsWithSortOrder.hpp"
|
|
62
63
|
#include "FilterForSamples.hpp"
|
|
64
|
+
#include <memory>
|
|
65
|
+
#include "HybridSourceProxySpec.hpp"
|
|
63
66
|
#include "FilterForSamplesBase.hpp"
|
|
64
67
|
#include "PredicateWithMetadataKey.hpp"
|
|
65
68
|
#include "ComparisonPredicateOperator.hpp"
|
|
@@ -30,14 +30,16 @@ namespace margelo::nitro::healthkit { enum class MedicationDoseEventLogStatus; }
|
|
|
30
30
|
namespace margelo::nitro::healthkit { struct SampleType; }
|
|
31
31
|
// Forward declaration of `SourceRevision` to properly resolve imports.
|
|
32
32
|
namespace margelo::nitro::healthkit { struct SourceRevision; }
|
|
33
|
-
// Forward declaration of `
|
|
34
|
-
namespace margelo::nitro::healthkit {
|
|
33
|
+
// Forward declaration of `Source` to properly resolve imports.
|
|
34
|
+
namespace margelo::nitro::healthkit { struct Source; }
|
|
35
35
|
// Forward declaration of `Device` to properly resolve imports.
|
|
36
36
|
namespace margelo::nitro::healthkit { struct Device; }
|
|
37
37
|
// Forward declaration of `QueryOptionsWithSortOrder` to properly resolve imports.
|
|
38
38
|
namespace margelo::nitro::healthkit { struct QueryOptionsWithSortOrder; }
|
|
39
39
|
// Forward declaration of `FilterForSamples` to properly resolve imports.
|
|
40
40
|
namespace margelo::nitro::healthkit { struct FilterForSamples; }
|
|
41
|
+
// Forward declaration of `HybridSourceProxySpec` to properly resolve imports.
|
|
42
|
+
namespace margelo::nitro::healthkit { class HybridSourceProxySpec; }
|
|
41
43
|
// Forward declaration of `FilterForSamplesBase` to properly resolve imports.
|
|
42
44
|
namespace margelo::nitro::healthkit { struct FilterForSamplesBase; }
|
|
43
45
|
// Forward declaration of `PredicateWithMetadataKey` to properly resolve imports.
|
|
@@ -70,11 +72,12 @@ namespace margelo::nitro::healthkit { struct QueryOptionsWithAnchor; }
|
|
|
70
72
|
#include "SampleType.hpp"
|
|
71
73
|
#include <NitroModules/AnyMap.hpp>
|
|
72
74
|
#include "SourceRevision.hpp"
|
|
73
|
-
#include
|
|
74
|
-
#include "HybridSourceProxySpec.hpp"
|
|
75
|
+
#include "Source.hpp"
|
|
75
76
|
#include "Device.hpp"
|
|
76
77
|
#include "QueryOptionsWithSortOrder.hpp"
|
|
77
78
|
#include "FilterForSamples.hpp"
|
|
79
|
+
#include <memory>
|
|
80
|
+
#include "HybridSourceProxySpec.hpp"
|
|
78
81
|
#include "FilterForSamplesBase.hpp"
|
|
79
82
|
#include "PredicateWithMetadataKey.hpp"
|
|
80
83
|
#include "ComparisonPredicateOperator.hpp"
|
|
@@ -22,8 +22,8 @@ namespace margelo::nitro::healthkit { struct QuantitySample; }
|
|
|
22
22
|
namespace margelo::nitro::healthkit { struct SampleType; }
|
|
23
23
|
// Forward declaration of `SourceRevision` to properly resolve imports.
|
|
24
24
|
namespace margelo::nitro::healthkit { struct SourceRevision; }
|
|
25
|
-
// Forward declaration of `
|
|
26
|
-
namespace margelo::nitro::healthkit {
|
|
25
|
+
// Forward declaration of `Source` to properly resolve imports.
|
|
26
|
+
namespace margelo::nitro::healthkit { struct Source; }
|
|
27
27
|
// Forward declaration of `Device` to properly resolve imports.
|
|
28
28
|
namespace margelo::nitro::healthkit { struct Device; }
|
|
29
29
|
// Forward declaration of `QuantityTypeIdentifierWriteable` to properly resolve imports.
|
|
@@ -32,6 +32,8 @@ namespace margelo::nitro::healthkit { enum class QuantityTypeIdentifierWriteable
|
|
|
32
32
|
namespace margelo::nitro::healthkit { struct QueryOptionsWithSortOrderAndStringUnit; }
|
|
33
33
|
// Forward declaration of `FilterForSamples` to properly resolve imports.
|
|
34
34
|
namespace margelo::nitro::healthkit { struct FilterForSamples; }
|
|
35
|
+
// Forward declaration of `HybridSourceProxySpec` to properly resolve imports.
|
|
36
|
+
namespace margelo::nitro::healthkit { class HybridSourceProxySpec; }
|
|
35
37
|
// Forward declaration of `FilterForSamplesBase` to properly resolve imports.
|
|
36
38
|
namespace margelo::nitro::healthkit { struct FilterForSamplesBase; }
|
|
37
39
|
// Forward declaration of `PredicateWithMetadataKey` to properly resolve imports.
|
|
@@ -73,13 +75,14 @@ namespace margelo::nitro::healthkit { struct QueryOptionsWithAnchorAndStringUnit
|
|
|
73
75
|
#include <chrono>
|
|
74
76
|
#include <NitroModules/AnyMap.hpp>
|
|
75
77
|
#include "SourceRevision.hpp"
|
|
76
|
-
#include
|
|
77
|
-
#include "HybridSourceProxySpec.hpp"
|
|
78
|
+
#include "Source.hpp"
|
|
78
79
|
#include "Device.hpp"
|
|
79
80
|
#include "QuantityTypeIdentifierWriteable.hpp"
|
|
80
81
|
#include <vector>
|
|
81
82
|
#include "QueryOptionsWithSortOrderAndStringUnit.hpp"
|
|
82
83
|
#include "FilterForSamples.hpp"
|
|
84
|
+
#include <memory>
|
|
85
|
+
#include "HybridSourceProxySpec.hpp"
|
|
83
86
|
#include "FilterForSamplesBase.hpp"
|
|
84
87
|
#include "PredicateWithMetadataKey.hpp"
|
|
85
88
|
#include "ComparisonPredicateOperator.hpp"
|
|
@@ -26,14 +26,16 @@ namespace margelo::nitro::healthkit { enum class StateOfMindLabel; }
|
|
|
26
26
|
namespace margelo::nitro::healthkit { struct SampleType; }
|
|
27
27
|
// Forward declaration of `SourceRevision` to properly resolve imports.
|
|
28
28
|
namespace margelo::nitro::healthkit { struct SourceRevision; }
|
|
29
|
-
// Forward declaration of `
|
|
30
|
-
namespace margelo::nitro::healthkit {
|
|
29
|
+
// Forward declaration of `Source` to properly resolve imports.
|
|
30
|
+
namespace margelo::nitro::healthkit { struct Source; }
|
|
31
31
|
// Forward declaration of `Device` to properly resolve imports.
|
|
32
32
|
namespace margelo::nitro::healthkit { struct Device; }
|
|
33
33
|
// Forward declaration of `QueryOptionsWithSortOrder` to properly resolve imports.
|
|
34
34
|
namespace margelo::nitro::healthkit { struct QueryOptionsWithSortOrder; }
|
|
35
35
|
// Forward declaration of `FilterForSamples` to properly resolve imports.
|
|
36
36
|
namespace margelo::nitro::healthkit { struct FilterForSamples; }
|
|
37
|
+
// Forward declaration of `HybridSourceProxySpec` to properly resolve imports.
|
|
38
|
+
namespace margelo::nitro::healthkit { class HybridSourceProxySpec; }
|
|
37
39
|
// Forward declaration of `FilterForSamplesBase` to properly resolve imports.
|
|
38
40
|
namespace margelo::nitro::healthkit { struct FilterForSamplesBase; }
|
|
39
41
|
// Forward declaration of `PredicateWithMetadataKey` to properly resolve imports.
|
|
@@ -63,12 +65,13 @@ namespace margelo::nitro::healthkit { struct QueryOptionsWithAnchor; }
|
|
|
63
65
|
#include <chrono>
|
|
64
66
|
#include <NitroModules/AnyMap.hpp>
|
|
65
67
|
#include "SourceRevision.hpp"
|
|
66
|
-
#include
|
|
67
|
-
#include "HybridSourceProxySpec.hpp"
|
|
68
|
+
#include "Source.hpp"
|
|
68
69
|
#include <optional>
|
|
69
70
|
#include "Device.hpp"
|
|
70
71
|
#include "QueryOptionsWithSortOrder.hpp"
|
|
71
72
|
#include "FilterForSamples.hpp"
|
|
73
|
+
#include <memory>
|
|
74
|
+
#include "HybridSourceProxySpec.hpp"
|
|
72
75
|
#include "FilterForSamplesBase.hpp"
|
|
73
76
|
#include "PredicateWithMetadataKey.hpp"
|
|
74
77
|
#include "ComparisonPredicateOperator.hpp"
|
|
@@ -26,8 +26,8 @@ namespace margelo::nitro::healthkit { struct WorkoutActivity; }
|
|
|
26
26
|
namespace margelo::nitro::healthkit { struct SampleType; }
|
|
27
27
|
// Forward declaration of `SourceRevision` to properly resolve imports.
|
|
28
28
|
namespace margelo::nitro::healthkit { struct SourceRevision; }
|
|
29
|
-
// Forward declaration of `
|
|
30
|
-
namespace margelo::nitro::healthkit {
|
|
29
|
+
// Forward declaration of `Source` to properly resolve imports.
|
|
30
|
+
namespace margelo::nitro::healthkit { struct Source; }
|
|
31
31
|
// Forward declaration of `Device` to properly resolve imports.
|
|
32
32
|
namespace margelo::nitro::healthkit { struct Device; }
|
|
33
33
|
// Forward declaration of `WorkoutSample` to properly resolve imports.
|
|
@@ -59,8 +59,7 @@ namespace margelo::nitro::healthkit { enum class QuantityTypeIdentifier; }
|
|
|
59
59
|
#include "WorkoutActivity.hpp"
|
|
60
60
|
#include "SampleType.hpp"
|
|
61
61
|
#include "SourceRevision.hpp"
|
|
62
|
-
#include
|
|
63
|
-
#include "HybridSourceProxySpec.hpp"
|
|
62
|
+
#include "Source.hpp"
|
|
64
63
|
#include "Device.hpp"
|
|
65
64
|
#include "WorkoutSample.hpp"
|
|
66
65
|
#include <NitroModules/Promise.hpp>
|