@kingstinct/react-native-healthkit 14.1.0 → 16.0.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 +37 -3
- package/ReactNativeHealthkit.podspec +11 -7
- package/app.plugin.js +33 -94
- package/app.plugin.ts +29 -104
- package/ios/CategoryTypeModule.swift +1 -0
- package/ios/CharacteristicTypeModule.swift +7 -6
- package/ios/Constants.swift +9 -10
- package/ios/CoreModule.swift +77 -42
- package/ios/CorrelationTypeModule.swift +3 -2
- package/ios/ElectrocardiogramModule.swift +4 -3
- package/ios/HeartbeatSeriesModule.swift +4 -3
- package/ios/Helpers.swift +11 -216
- package/ios/MedicationModule.swift +9 -8
- package/ios/MemoryEstimation.swift +84 -0
- package/ios/PredicateHelpers.swift +16 -86
- package/ios/QuantityTypeModule.swift +37 -28
- package/ios/Serializers.swift +34 -70
- package/ios/SourceProxy.swift +15 -5
- package/ios/StateOfMindModule.swift +3 -2
- package/ios/WorkoutProxy.swift +31 -13
- package/ios/WorkoutsModule.swift +4 -3
- package/lib/commonjs/generated/healthkit.generated.js +15 -3
- package/lib/commonjs/healthkit.ios.js +6 -2
- package/lib/commonjs/healthkit.js +24 -79
- package/lib/commonjs/types/Auth.js +3 -18
- package/lib/commonjs/types/Background.js +2 -10
- package/lib/commonjs/types/QueryOptions.js +2 -17
- package/lib/module/generated/healthkit.generated.js +14 -2
- package/lib/module/healthkit.ios.js +4 -0
- package/lib/module/healthkit.js +22 -77
- package/lib/module/types/Auth.js +1 -18
- package/lib/module/types/Background.js +1 -10
- package/lib/module/types/QueryOptions.js +1 -17
- package/lib/typescript/generated/healthkit.generated.d.ts +20 -7
- package/lib/typescript/healthkit.d.ts +4 -2
- package/lib/typescript/healthkit.ios.d.ts +13 -9
- package/lib/typescript/specs/CoreModule.nitro.d.ts +22 -4
- package/lib/typescript/specs/SourceProxy.nitro.d.ts +2 -5
- package/lib/typescript/types/Auth.d.ts +1 -16
- package/lib/typescript/types/Background.d.ts +1 -9
- package/lib/typescript/types/Device.d.ts +1 -13
- package/lib/typescript/types/QuantityType.d.ts +3 -3
- package/lib/typescript/types/QueryOptions.d.ts +3 -37
- package/lib/typescript/types/Shared.d.ts +2 -25
- package/lib/typescript/types/Source.d.ts +1 -10
- package/lib/typescript/types/Subscriptions.d.ts +2 -3
- package/lib/typescript/types/Units.d.ts +1 -1
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.cpp +24 -16
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.hpp +91 -12
- package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.hpp +8 -5
- package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.hpp +8 -0
- package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.hpp +8 -5
- package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.hpp +8 -5
- package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.hpp +8 -5
- package/nitrogen/generated/ios/c++/HybridMedicationModuleSpecSwift.hpp +8 -5
- package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.hpp +8 -5
- package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.hpp +8 -5
- package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.hpp +3 -4
- package/nitrogen/generated/ios/c++/HybridWorkoutsModuleSpecSwift.hpp +6 -3
- package/nitrogen/generated/ios/swift/CategorySample.swift +8 -8
- package/nitrogen/generated/ios/swift/CategoryTypeIdentifier.swift +8 -0
- package/nitrogen/generated/ios/swift/CategoryTypeIdentifierWriteable.swift +8 -0
- package/nitrogen/generated/ios/swift/CorrelationSample.swift +8 -8
- package/nitrogen/generated/ios/swift/ElectrocardiogramSample.swift +8 -8
- package/nitrogen/generated/ios/swift/Func_void_std__unordered_map_std__string__std__chrono__system_clock__time_point_.swift +54 -0
- package/nitrogen/generated/ios/swift/HeartbeatSeriesSample.swift +8 -8
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec.swift +1 -0
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec_cxx.swift +25 -0
- package/nitrogen/generated/ios/swift/MedicationDoseEvent.swift +8 -8
- package/nitrogen/generated/ios/swift/ObjectTypeIdentifier.swift +12 -4
- package/nitrogen/generated/ios/swift/QuantitySample.swift +8 -8
- package/nitrogen/generated/ios/swift/QuantityTypeIdentifier.swift +4 -4
- package/nitrogen/generated/ios/swift/QuantityTypeIdentifierWriteable.swift +4 -4
- 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 +12 -4
- package/nitrogen/generated/ios/swift/SampleTypeIdentifierWriteable.swift +12 -4
- package/nitrogen/generated/ios/swift/SourceRevision.swift +4 -11
- package/nitrogen/generated/ios/swift/StateOfMindSample.swift +8 -8
- package/nitrogen/generated/ios/swift/WorkoutActivityType.swift +8 -0
- package/nitrogen/generated/shared/c++/CategorySample.hpp +7 -7
- package/nitrogen/generated/shared/c++/CategoryTypeIdentifier.hpp +67 -59
- package/nitrogen/generated/shared/c++/CategoryTypeIdentifierWriteable.hpp +67 -59
- package/nitrogen/generated/shared/c++/CorrelationSample.hpp +7 -7
- package/nitrogen/generated/shared/c++/ElectrocardiogramSample.hpp +7 -7
- package/nitrogen/generated/shared/c++/HeartbeatSeriesSample.hpp +7 -7
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.cpp +1 -0
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.hpp +3 -1
- package/nitrogen/generated/shared/c++/MedicationDoseEvent.hpp +7 -7
- package/nitrogen/generated/shared/c++/ObjectTypeIdentifier.hpp +206 -198
- package/nitrogen/generated/shared/c++/QuantitySample.hpp +7 -7
- package/nitrogen/generated/shared/c++/QuantityTypeIdentifier.hpp +73 -73
- package/nitrogen/generated/shared/c++/QuantityTypeIdentifierWriteable.hpp +73 -73
- 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 +199 -191
- package/nitrogen/generated/shared/c++/SampleTypeIdentifierWriteable.hpp +193 -185
- package/nitrogen/generated/shared/c++/SourceRevision.hpp +8 -9
- package/nitrogen/generated/shared/c++/StateOfMindSample.hpp +7 -7
- package/nitrogen/generated/shared/c++/WorkoutActivityType.hpp +4 -0
- package/package.json +8 -3
- package/src/generated/healthkit-schema.json +53 -8
- package/src/generated/healthkit.generated.ts +22 -6
- package/src/healthkit.ios.ts +6 -0
- package/src/healthkit.ts +32 -84
- package/src/specs/CoreModule.nitro.ts +25 -4
- package/src/specs/SourceProxy.nitro.ts +2 -4
- package/src/test-setup.ts +1 -0
- package/src/type-tests/generated-typing.ts +30 -8
- package/src/types/Auth.ts +4 -17
- package/src/types/Background.ts +1 -9
- package/src/types/Device.ts +1 -13
- package/src/types/QuantityType.ts +3 -3
- package/src/types/QueryOptions.ts +7 -65
- package/src/types/Shared.ts +7 -28
- package/src/types/Source.ts +1 -11
- package/src/types/Subscriptions.ts +2 -3
- package/src/types/Units.ts +1 -1
- package/ios/BackgroundDeliveryManager.swift +0 -277
- package/ios/Bridge.h +0 -10
- package/ios/ExceptionCatcher.h +0 -5
- package/ios/ExceptionCatcher.mm +0 -32
- package/ios/module.modulemap +0 -5
|
@@ -41,10 +41,10 @@ namespace margelo::nitro::healthkit { struct Device; }
|
|
|
41
41
|
#include <string>
|
|
42
42
|
#include "SampleType.hpp"
|
|
43
43
|
#include <chrono>
|
|
44
|
-
#include <NitroModules/AnyMap.hpp>
|
|
45
44
|
#include "SourceRevision.hpp"
|
|
46
45
|
#include "Device.hpp"
|
|
47
46
|
#include <optional>
|
|
47
|
+
#include <NitroModules/AnyMap.hpp>
|
|
48
48
|
|
|
49
49
|
namespace margelo::nitro::healthkit {
|
|
50
50
|
|
|
@@ -60,14 +60,14 @@ namespace margelo::nitro::healthkit {
|
|
|
60
60
|
std::chrono::system_clock::time_point startDate SWIFT_PRIVATE;
|
|
61
61
|
std::chrono::system_clock::time_point endDate SWIFT_PRIVATE;
|
|
62
62
|
bool hasUndeterminedDuration SWIFT_PRIVATE;
|
|
63
|
-
std::shared_ptr<AnyMap> metadata SWIFT_PRIVATE;
|
|
64
63
|
std::string uuid SWIFT_PRIVATE;
|
|
65
64
|
SourceRevision sourceRevision SWIFT_PRIVATE;
|
|
66
65
|
std::optional<Device> device SWIFT_PRIVATE;
|
|
66
|
+
std::shared_ptr<AnyMap> metadata SWIFT_PRIVATE;
|
|
67
67
|
|
|
68
68
|
public:
|
|
69
69
|
QuantitySample() = default;
|
|
70
|
-
explicit QuantitySample(QuantityTypeIdentifier quantityType, double quantity, std::string unit, SampleType sampleType, std::chrono::system_clock::time_point startDate, std::chrono::system_clock::time_point endDate, bool hasUndeterminedDuration, std::
|
|
70
|
+
explicit QuantitySample(QuantityTypeIdentifier quantityType, double quantity, std::string unit, SampleType sampleType, std::chrono::system_clock::time_point startDate, std::chrono::system_clock::time_point endDate, bool hasUndeterminedDuration, std::string uuid, SourceRevision sourceRevision, std::optional<Device> device, std::shared_ptr<AnyMap> metadata): quantityType(quantityType), quantity(quantity), unit(unit), sampleType(sampleType), startDate(startDate), endDate(endDate), hasUndeterminedDuration(hasUndeterminedDuration), uuid(uuid), sourceRevision(sourceRevision), device(device), metadata(metadata) {}
|
|
71
71
|
|
|
72
72
|
public:
|
|
73
73
|
friend bool operator==(const QuantitySample& lhs, const QuantitySample& rhs) = default;
|
|
@@ -90,10 +90,10 @@ namespace margelo::nitro {
|
|
|
90
90
|
JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "startDate"))),
|
|
91
91
|
JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "endDate"))),
|
|
92
92
|
JSIConverter<bool>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "hasUndeterminedDuration"))),
|
|
93
|
-
JSIConverter<std::shared_ptr<AnyMap>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadata"))),
|
|
94
93
|
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "uuid"))),
|
|
95
94
|
JSIConverter<margelo::nitro::healthkit::SourceRevision>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "sourceRevision"))),
|
|
96
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::Device>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "device")))
|
|
95
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::Device>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "device"))),
|
|
96
|
+
JSIConverter<std::shared_ptr<AnyMap>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadata")))
|
|
97
97
|
);
|
|
98
98
|
}
|
|
99
99
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::QuantitySample& arg) {
|
|
@@ -105,10 +105,10 @@ namespace margelo::nitro {
|
|
|
105
105
|
obj.setProperty(runtime, PropNameIDCache::get(runtime, "startDate"), JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.startDate));
|
|
106
106
|
obj.setProperty(runtime, PropNameIDCache::get(runtime, "endDate"), JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.endDate));
|
|
107
107
|
obj.setProperty(runtime, PropNameIDCache::get(runtime, "hasUndeterminedDuration"), JSIConverter<bool>::toJSI(runtime, arg.hasUndeterminedDuration));
|
|
108
|
-
obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadata"), JSIConverter<std::shared_ptr<AnyMap>>::toJSI(runtime, arg.metadata));
|
|
109
108
|
obj.setProperty(runtime, PropNameIDCache::get(runtime, "uuid"), JSIConverter<std::string>::toJSI(runtime, arg.uuid));
|
|
110
109
|
obj.setProperty(runtime, PropNameIDCache::get(runtime, "sourceRevision"), JSIConverter<margelo::nitro::healthkit::SourceRevision>::toJSI(runtime, arg.sourceRevision));
|
|
111
110
|
obj.setProperty(runtime, PropNameIDCache::get(runtime, "device"), JSIConverter<std::optional<margelo::nitro::healthkit::Device>>::toJSI(runtime, arg.device));
|
|
111
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadata"), JSIConverter<std::shared_ptr<AnyMap>>::toJSI(runtime, arg.metadata));
|
|
112
112
|
return obj;
|
|
113
113
|
}
|
|
114
114
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -126,10 +126,10 @@ namespace margelo::nitro {
|
|
|
126
126
|
if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "startDate")))) return false;
|
|
127
127
|
if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "endDate")))) return false;
|
|
128
128
|
if (!JSIConverter<bool>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "hasUndeterminedDuration")))) return false;
|
|
129
|
-
if (!JSIConverter<std::shared_ptr<AnyMap>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadata")))) return false;
|
|
130
129
|
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "uuid")))) return false;
|
|
131
130
|
if (!JSIConverter<margelo::nitro::healthkit::SourceRevision>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "sourceRevision")))) return false;
|
|
132
131
|
if (!JSIConverter<std::optional<margelo::nitro::healthkit::Device>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "device")))) return false;
|
|
132
|
+
if (!JSIConverter<std::shared_ptr<AnyMap>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadata")))) return false;
|
|
133
133
|
return true;
|
|
134
134
|
}
|
|
135
135
|
};
|
|
@@ -42,76 +42,76 @@ namespace margelo::nitro::healthkit {
|
|
|
42
42
|
HKQUANTITYTYPEIDENTIFIERBASALENERGYBURNED SWIFT_NAME(hkquantitytypeidentifierbasalenergyburned) = 10,
|
|
43
43
|
HKQUANTITYTYPEIDENTIFIERBLOODALCOHOLCONTENT SWIFT_NAME(hkquantitytypeidentifierbloodalcoholcontent) = 11,
|
|
44
44
|
HKQUANTITYTYPEIDENTIFIERBLOODGLUCOSE SWIFT_NAME(hkquantitytypeidentifierbloodglucose) = 12,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
45
|
+
HKQUANTITYTYPEIDENTIFIERBLOODPRESSUREDIASTOLIC SWIFT_NAME(hkquantitytypeidentifierbloodpressurediastolic) = 13,
|
|
46
|
+
HKQUANTITYTYPEIDENTIFIERBLOODPRESSURESYSTOLIC SWIFT_NAME(hkquantitytypeidentifierbloodpressuresystolic) = 14,
|
|
47
|
+
HKQUANTITYTYPEIDENTIFIERBODYFATPERCENTAGE SWIFT_NAME(hkquantitytypeidentifierbodyfatpercentage) = 15,
|
|
48
|
+
HKQUANTITYTYPEIDENTIFIERBODYMASS SWIFT_NAME(hkquantitytypeidentifierbodymass) = 16,
|
|
49
|
+
HKQUANTITYTYPEIDENTIFIERBODYMASSINDEX SWIFT_NAME(hkquantitytypeidentifierbodymassindex) = 17,
|
|
50
|
+
HKQUANTITYTYPEIDENTIFIERBODYTEMPERATURE SWIFT_NAME(hkquantitytypeidentifierbodytemperature) = 18,
|
|
51
|
+
HKQUANTITYTYPEIDENTIFIERCROSSCOUNTRYSKIINGSPEED SWIFT_NAME(hkquantitytypeidentifiercrosscountryskiingspeed) = 19,
|
|
52
|
+
HKQUANTITYTYPEIDENTIFIERCYCLINGCADENCE SWIFT_NAME(hkquantitytypeidentifiercyclingcadence) = 20,
|
|
53
|
+
HKQUANTITYTYPEIDENTIFIERCYCLINGFUNCTIONALTHRESHOLDPOWER SWIFT_NAME(hkquantitytypeidentifiercyclingfunctionalthresholdpower) = 21,
|
|
54
|
+
HKQUANTITYTYPEIDENTIFIERCYCLINGPOWER SWIFT_NAME(hkquantitytypeidentifiercyclingpower) = 22,
|
|
55
|
+
HKQUANTITYTYPEIDENTIFIERCYCLINGSPEED SWIFT_NAME(hkquantitytypeidentifiercyclingspeed) = 23,
|
|
56
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYBIOTIN SWIFT_NAME(hkquantitytypeidentifierdietarybiotin) = 24,
|
|
57
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCAFFEINE SWIFT_NAME(hkquantitytypeidentifierdietarycaffeine) = 25,
|
|
58
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCALCIUM SWIFT_NAME(hkquantitytypeidentifierdietarycalcium) = 26,
|
|
59
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCARBOHYDRATES SWIFT_NAME(hkquantitytypeidentifierdietarycarbohydrates) = 27,
|
|
60
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCHLORIDE SWIFT_NAME(hkquantitytypeidentifierdietarychloride) = 28,
|
|
61
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCHOLESTEROL SWIFT_NAME(hkquantitytypeidentifierdietarycholesterol) = 29,
|
|
62
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCHROMIUM SWIFT_NAME(hkquantitytypeidentifierdietarychromium) = 30,
|
|
63
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCOPPER SWIFT_NAME(hkquantitytypeidentifierdietarycopper) = 31,
|
|
64
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYENERGYCONSUMED SWIFT_NAME(hkquantitytypeidentifierdietaryenergyconsumed) = 32,
|
|
65
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFATMONOUNSATURATED SWIFT_NAME(hkquantitytypeidentifierdietaryfatmonounsaturated) = 33,
|
|
66
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFATPOLYUNSATURATED SWIFT_NAME(hkquantitytypeidentifierdietaryfatpolyunsaturated) = 34,
|
|
67
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFATSATURATED SWIFT_NAME(hkquantitytypeidentifierdietaryfatsaturated) = 35,
|
|
68
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFATTOTAL SWIFT_NAME(hkquantitytypeidentifierdietaryfattotal) = 36,
|
|
69
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFIBER SWIFT_NAME(hkquantitytypeidentifierdietaryfiber) = 37,
|
|
70
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFOLATE SWIFT_NAME(hkquantitytypeidentifierdietaryfolate) = 38,
|
|
71
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYIODINE SWIFT_NAME(hkquantitytypeidentifierdietaryiodine) = 39,
|
|
72
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYIRON SWIFT_NAME(hkquantitytypeidentifierdietaryiron) = 40,
|
|
73
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYMAGNESIUM SWIFT_NAME(hkquantitytypeidentifierdietarymagnesium) = 41,
|
|
74
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYMANGANESE SWIFT_NAME(hkquantitytypeidentifierdietarymanganese) = 42,
|
|
75
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYMOLYBDENUM SWIFT_NAME(hkquantitytypeidentifierdietarymolybdenum) = 43,
|
|
76
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYNIACIN SWIFT_NAME(hkquantitytypeidentifierdietaryniacin) = 44,
|
|
77
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYPANTOTHENICACID SWIFT_NAME(hkquantitytypeidentifierdietarypantothenicacid) = 45,
|
|
78
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYPHOSPHORUS SWIFT_NAME(hkquantitytypeidentifierdietaryphosphorus) = 46,
|
|
79
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYPOTASSIUM SWIFT_NAME(hkquantitytypeidentifierdietarypotassium) = 47,
|
|
80
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYPROTEIN SWIFT_NAME(hkquantitytypeidentifierdietaryprotein) = 48,
|
|
81
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYRIBOFLAVIN SWIFT_NAME(hkquantitytypeidentifierdietaryriboflavin) = 49,
|
|
82
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYSELENIUM SWIFT_NAME(hkquantitytypeidentifierdietaryselenium) = 50,
|
|
83
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYSODIUM SWIFT_NAME(hkquantitytypeidentifierdietarysodium) = 51,
|
|
84
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYSUGAR SWIFT_NAME(hkquantitytypeidentifierdietarysugar) = 52,
|
|
85
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYTHIAMIN SWIFT_NAME(hkquantitytypeidentifierdietarythiamin) = 53,
|
|
86
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINA SWIFT_NAME(hkquantitytypeidentifierdietaryvitamina) = 54,
|
|
87
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINB12 SWIFT_NAME(hkquantitytypeidentifierdietaryvitaminb12) = 55,
|
|
88
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINB6 SWIFT_NAME(hkquantitytypeidentifierdietaryvitaminb6) = 56,
|
|
89
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINC SWIFT_NAME(hkquantitytypeidentifierdietaryvitaminc) = 57,
|
|
90
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMIND SWIFT_NAME(hkquantitytypeidentifierdietaryvitamind) = 58,
|
|
91
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINE SWIFT_NAME(hkquantitytypeidentifierdietaryvitamine) = 59,
|
|
92
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINK SWIFT_NAME(hkquantitytypeidentifierdietaryvitamink) = 60,
|
|
93
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYWATER SWIFT_NAME(hkquantitytypeidentifierdietarywater) = 61,
|
|
94
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYZINC SWIFT_NAME(hkquantitytypeidentifierdietaryzinc) = 62,
|
|
95
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCECROSSCOUNTRYSKIING SWIFT_NAME(hkquantitytypeidentifierdistancecrosscountryskiing) = 63,
|
|
96
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCECYCLING SWIFT_NAME(hkquantitytypeidentifierdistancecycling) = 64,
|
|
97
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCEDOWNHILLSNOWSPORTS SWIFT_NAME(hkquantitytypeidentifierdistancedownhillsnowsports) = 65,
|
|
98
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCEPADDLESPORTS SWIFT_NAME(hkquantitytypeidentifierdistancepaddlesports) = 66,
|
|
99
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCEROWING SWIFT_NAME(hkquantitytypeidentifierdistancerowing) = 67,
|
|
100
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCESKATINGSPORTS SWIFT_NAME(hkquantitytypeidentifierdistanceskatingsports) = 68,
|
|
101
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCESWIMMING SWIFT_NAME(hkquantitytypeidentifierdistanceswimming) = 69,
|
|
102
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCEWALKINGRUNNING SWIFT_NAME(hkquantitytypeidentifierdistancewalkingrunning) = 70,
|
|
103
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCEWHEELCHAIR SWIFT_NAME(hkquantitytypeidentifierdistancewheelchair) = 71,
|
|
104
|
+
HKQUANTITYTYPEIDENTIFIERELECTRODERMALACTIVITY SWIFT_NAME(hkquantitytypeidentifierelectrodermalactivity) = 72,
|
|
105
|
+
HKQUANTITYTYPEIDENTIFIERENVIRONMENTALAUDIOEXPOSURE SWIFT_NAME(hkquantitytypeidentifierenvironmentalaudioexposure) = 73,
|
|
106
|
+
HKQUANTITYTYPEIDENTIFIERENVIRONMENTALSOUNDREDUCTION SWIFT_NAME(hkquantitytypeidentifierenvironmentalsoundreduction) = 74,
|
|
107
|
+
HKQUANTITYTYPEIDENTIFIERESTIMATEDWORKOUTEFFORTSCORE SWIFT_NAME(hkquantitytypeidentifierestimatedworkouteffortscore) = 75,
|
|
108
|
+
HKQUANTITYTYPEIDENTIFIERFLIGHTSCLIMBED SWIFT_NAME(hkquantitytypeidentifierflightsclimbed) = 76,
|
|
109
|
+
HKQUANTITYTYPEIDENTIFIERFORCEDEXPIRATORYVOLUME1 SWIFT_NAME(hkquantitytypeidentifierforcedexpiratoryvolume1) = 77,
|
|
110
|
+
HKQUANTITYTYPEIDENTIFIERFORCEDVITALCAPACITY SWIFT_NAME(hkquantitytypeidentifierforcedvitalcapacity) = 78,
|
|
111
|
+
HKQUANTITYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSURE SWIFT_NAME(hkquantitytypeidentifierheadphoneaudioexposure) = 79,
|
|
112
|
+
HKQUANTITYTYPEIDENTIFIERHEARTRATE SWIFT_NAME(hkquantitytypeidentifierheartrate) = 80,
|
|
113
|
+
HKQUANTITYTYPEIDENTIFIERHEARTRATERECOVERYONEMINUTE SWIFT_NAME(hkquantitytypeidentifierheartraterecoveryoneminute) = 81,
|
|
114
|
+
HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYRMSSD SWIFT_NAME(hkquantitytypeidentifierheartratevariabilityrmssd) = 82,
|
|
115
115
|
HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYSDNN SWIFT_NAME(hkquantitytypeidentifierheartratevariabilitysdnn) = 83,
|
|
116
116
|
HKQUANTITYTYPEIDENTIFIERHEIGHT SWIFT_NAME(hkquantitytypeidentifierheight) = 84,
|
|
117
117
|
HKQUANTITYTYPEIDENTIFIERINHALERUSAGE SWIFT_NAME(hkquantitytypeidentifierinhalerusage) = 85,
|
|
@@ -175,7 +175,6 @@ namespace margelo::nitro {
|
|
|
175
175
|
case hashString("HKQuantityTypeIdentifierBasalEnergyBurned"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBASALENERGYBURNED;
|
|
176
176
|
case hashString("HKQuantityTypeIdentifierBloodAlcoholContent"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBLOODALCOHOLCONTENT;
|
|
177
177
|
case hashString("HKQuantityTypeIdentifierBloodGlucose"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBLOODGLUCOSE;
|
|
178
|
-
case hashString("HKQuantityTypeIdentifierBloodKetones"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBLOODKETONES;
|
|
179
178
|
case hashString("HKQuantityTypeIdentifierBloodPressureDiastolic"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBLOODPRESSUREDIASTOLIC;
|
|
180
179
|
case hashString("HKQuantityTypeIdentifierBloodPressureSystolic"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBLOODPRESSURESYSTOLIC;
|
|
181
180
|
case hashString("HKQuantityTypeIdentifierBodyFatPercentage"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBODYFATPERCENTAGE;
|
|
@@ -245,6 +244,7 @@ namespace margelo::nitro {
|
|
|
245
244
|
case hashString("HKQuantityTypeIdentifierHeadphoneAudioExposure"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSURE;
|
|
246
245
|
case hashString("HKQuantityTypeIdentifierHeartRate"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEARTRATE;
|
|
247
246
|
case hashString("HKQuantityTypeIdentifierHeartRateRecoveryOneMinute"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEARTRATERECOVERYONEMINUTE;
|
|
247
|
+
case hashString("HKQuantityTypeIdentifierHeartRateVariabilityRMSSD"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYRMSSD;
|
|
248
248
|
case hashString("HKQuantityTypeIdentifierHeartRateVariabilitySDNN"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYSDNN;
|
|
249
249
|
case hashString("HKQuantityTypeIdentifierHeight"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEIGHT;
|
|
250
250
|
case hashString("HKQuantityTypeIdentifierInhalerUsage"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERINHALERUSAGE;
|
|
@@ -302,7 +302,6 @@ namespace margelo::nitro {
|
|
|
302
302
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBASALENERGYBURNED: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierBasalEnergyBurned");
|
|
303
303
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBLOODALCOHOLCONTENT: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierBloodAlcoholContent");
|
|
304
304
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBLOODGLUCOSE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierBloodGlucose");
|
|
305
|
-
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBLOODKETONES: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierBloodKetones");
|
|
306
305
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBLOODPRESSUREDIASTOLIC: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierBloodPressureDiastolic");
|
|
307
306
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBLOODPRESSURESYSTOLIC: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierBloodPressureSystolic");
|
|
308
307
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBODYFATPERCENTAGE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierBodyFatPercentage");
|
|
@@ -372,6 +371,7 @@ namespace margelo::nitro {
|
|
|
372
371
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSURE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeadphoneAudioExposure");
|
|
373
372
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEARTRATE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeartRate");
|
|
374
373
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEARTRATERECOVERYONEMINUTE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeartRateRecoveryOneMinute");
|
|
374
|
+
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYRMSSD: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeartRateVariabilityRMSSD");
|
|
375
375
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYSDNN: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeartRateVariabilitySDNN");
|
|
376
376
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEIGHT: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeight");
|
|
377
377
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERINHALERUSAGE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierInhalerUsage");
|
|
@@ -434,7 +434,6 @@ namespace margelo::nitro {
|
|
|
434
434
|
case hashString("HKQuantityTypeIdentifierBasalEnergyBurned"):
|
|
435
435
|
case hashString("HKQuantityTypeIdentifierBloodAlcoholContent"):
|
|
436
436
|
case hashString("HKQuantityTypeIdentifierBloodGlucose"):
|
|
437
|
-
case hashString("HKQuantityTypeIdentifierBloodKetones"):
|
|
438
437
|
case hashString("HKQuantityTypeIdentifierBloodPressureDiastolic"):
|
|
439
438
|
case hashString("HKQuantityTypeIdentifierBloodPressureSystolic"):
|
|
440
439
|
case hashString("HKQuantityTypeIdentifierBodyFatPercentage"):
|
|
@@ -504,6 +503,7 @@ namespace margelo::nitro {
|
|
|
504
503
|
case hashString("HKQuantityTypeIdentifierHeadphoneAudioExposure"):
|
|
505
504
|
case hashString("HKQuantityTypeIdentifierHeartRate"):
|
|
506
505
|
case hashString("HKQuantityTypeIdentifierHeartRateRecoveryOneMinute"):
|
|
506
|
+
case hashString("HKQuantityTypeIdentifierHeartRateVariabilityRMSSD"):
|
|
507
507
|
case hashString("HKQuantityTypeIdentifierHeartRateVariabilitySDNN"):
|
|
508
508
|
case hashString("HKQuantityTypeIdentifierHeight"):
|
|
509
509
|
case hashString("HKQuantityTypeIdentifierInhalerUsage"):
|
|
@@ -37,76 +37,76 @@ namespace margelo::nitro::healthkit {
|
|
|
37
37
|
HKQUANTITYTYPEIDENTIFIERBASALENERGYBURNED SWIFT_NAME(hkquantitytypeidentifierbasalenergyburned) = 5,
|
|
38
38
|
HKQUANTITYTYPEIDENTIFIERBLOODALCOHOLCONTENT SWIFT_NAME(hkquantitytypeidentifierbloodalcoholcontent) = 6,
|
|
39
39
|
HKQUANTITYTYPEIDENTIFIERBLOODGLUCOSE SWIFT_NAME(hkquantitytypeidentifierbloodglucose) = 7,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
40
|
+
HKQUANTITYTYPEIDENTIFIERBLOODPRESSUREDIASTOLIC SWIFT_NAME(hkquantitytypeidentifierbloodpressurediastolic) = 8,
|
|
41
|
+
HKQUANTITYTYPEIDENTIFIERBLOODPRESSURESYSTOLIC SWIFT_NAME(hkquantitytypeidentifierbloodpressuresystolic) = 9,
|
|
42
|
+
HKQUANTITYTYPEIDENTIFIERBODYFATPERCENTAGE SWIFT_NAME(hkquantitytypeidentifierbodyfatpercentage) = 10,
|
|
43
|
+
HKQUANTITYTYPEIDENTIFIERBODYMASS SWIFT_NAME(hkquantitytypeidentifierbodymass) = 11,
|
|
44
|
+
HKQUANTITYTYPEIDENTIFIERBODYMASSINDEX SWIFT_NAME(hkquantitytypeidentifierbodymassindex) = 12,
|
|
45
|
+
HKQUANTITYTYPEIDENTIFIERBODYTEMPERATURE SWIFT_NAME(hkquantitytypeidentifierbodytemperature) = 13,
|
|
46
|
+
HKQUANTITYTYPEIDENTIFIERCROSSCOUNTRYSKIINGSPEED SWIFT_NAME(hkquantitytypeidentifiercrosscountryskiingspeed) = 14,
|
|
47
|
+
HKQUANTITYTYPEIDENTIFIERCYCLINGCADENCE SWIFT_NAME(hkquantitytypeidentifiercyclingcadence) = 15,
|
|
48
|
+
HKQUANTITYTYPEIDENTIFIERCYCLINGFUNCTIONALTHRESHOLDPOWER SWIFT_NAME(hkquantitytypeidentifiercyclingfunctionalthresholdpower) = 16,
|
|
49
|
+
HKQUANTITYTYPEIDENTIFIERCYCLINGPOWER SWIFT_NAME(hkquantitytypeidentifiercyclingpower) = 17,
|
|
50
|
+
HKQUANTITYTYPEIDENTIFIERCYCLINGSPEED SWIFT_NAME(hkquantitytypeidentifiercyclingspeed) = 18,
|
|
51
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYBIOTIN SWIFT_NAME(hkquantitytypeidentifierdietarybiotin) = 19,
|
|
52
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCAFFEINE SWIFT_NAME(hkquantitytypeidentifierdietarycaffeine) = 20,
|
|
53
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCALCIUM SWIFT_NAME(hkquantitytypeidentifierdietarycalcium) = 21,
|
|
54
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCARBOHYDRATES SWIFT_NAME(hkquantitytypeidentifierdietarycarbohydrates) = 22,
|
|
55
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCHLORIDE SWIFT_NAME(hkquantitytypeidentifierdietarychloride) = 23,
|
|
56
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCHOLESTEROL SWIFT_NAME(hkquantitytypeidentifierdietarycholesterol) = 24,
|
|
57
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCHROMIUM SWIFT_NAME(hkquantitytypeidentifierdietarychromium) = 25,
|
|
58
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCOPPER SWIFT_NAME(hkquantitytypeidentifierdietarycopper) = 26,
|
|
59
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYENERGYCONSUMED SWIFT_NAME(hkquantitytypeidentifierdietaryenergyconsumed) = 27,
|
|
60
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFATMONOUNSATURATED SWIFT_NAME(hkquantitytypeidentifierdietaryfatmonounsaturated) = 28,
|
|
61
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFATPOLYUNSATURATED SWIFT_NAME(hkquantitytypeidentifierdietaryfatpolyunsaturated) = 29,
|
|
62
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFATSATURATED SWIFT_NAME(hkquantitytypeidentifierdietaryfatsaturated) = 30,
|
|
63
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFATTOTAL SWIFT_NAME(hkquantitytypeidentifierdietaryfattotal) = 31,
|
|
64
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFIBER SWIFT_NAME(hkquantitytypeidentifierdietaryfiber) = 32,
|
|
65
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFOLATE SWIFT_NAME(hkquantitytypeidentifierdietaryfolate) = 33,
|
|
66
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYIODINE SWIFT_NAME(hkquantitytypeidentifierdietaryiodine) = 34,
|
|
67
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYIRON SWIFT_NAME(hkquantitytypeidentifierdietaryiron) = 35,
|
|
68
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYMAGNESIUM SWIFT_NAME(hkquantitytypeidentifierdietarymagnesium) = 36,
|
|
69
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYMANGANESE SWIFT_NAME(hkquantitytypeidentifierdietarymanganese) = 37,
|
|
70
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYMOLYBDENUM SWIFT_NAME(hkquantitytypeidentifierdietarymolybdenum) = 38,
|
|
71
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYNIACIN SWIFT_NAME(hkquantitytypeidentifierdietaryniacin) = 39,
|
|
72
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYPANTOTHENICACID SWIFT_NAME(hkquantitytypeidentifierdietarypantothenicacid) = 40,
|
|
73
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYPHOSPHORUS SWIFT_NAME(hkquantitytypeidentifierdietaryphosphorus) = 41,
|
|
74
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYPOTASSIUM SWIFT_NAME(hkquantitytypeidentifierdietarypotassium) = 42,
|
|
75
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYPROTEIN SWIFT_NAME(hkquantitytypeidentifierdietaryprotein) = 43,
|
|
76
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYRIBOFLAVIN SWIFT_NAME(hkquantitytypeidentifierdietaryriboflavin) = 44,
|
|
77
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYSELENIUM SWIFT_NAME(hkquantitytypeidentifierdietaryselenium) = 45,
|
|
78
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYSODIUM SWIFT_NAME(hkquantitytypeidentifierdietarysodium) = 46,
|
|
79
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYSUGAR SWIFT_NAME(hkquantitytypeidentifierdietarysugar) = 47,
|
|
80
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYTHIAMIN SWIFT_NAME(hkquantitytypeidentifierdietarythiamin) = 48,
|
|
81
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINA SWIFT_NAME(hkquantitytypeidentifierdietaryvitamina) = 49,
|
|
82
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINB12 SWIFT_NAME(hkquantitytypeidentifierdietaryvitaminb12) = 50,
|
|
83
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINB6 SWIFT_NAME(hkquantitytypeidentifierdietaryvitaminb6) = 51,
|
|
84
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINC SWIFT_NAME(hkquantitytypeidentifierdietaryvitaminc) = 52,
|
|
85
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMIND SWIFT_NAME(hkquantitytypeidentifierdietaryvitamind) = 53,
|
|
86
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINE SWIFT_NAME(hkquantitytypeidentifierdietaryvitamine) = 54,
|
|
87
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINK SWIFT_NAME(hkquantitytypeidentifierdietaryvitamink) = 55,
|
|
88
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYWATER SWIFT_NAME(hkquantitytypeidentifierdietarywater) = 56,
|
|
89
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYZINC SWIFT_NAME(hkquantitytypeidentifierdietaryzinc) = 57,
|
|
90
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCECROSSCOUNTRYSKIING SWIFT_NAME(hkquantitytypeidentifierdistancecrosscountryskiing) = 58,
|
|
91
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCECYCLING SWIFT_NAME(hkquantitytypeidentifierdistancecycling) = 59,
|
|
92
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCEDOWNHILLSNOWSPORTS SWIFT_NAME(hkquantitytypeidentifierdistancedownhillsnowsports) = 60,
|
|
93
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCEPADDLESPORTS SWIFT_NAME(hkquantitytypeidentifierdistancepaddlesports) = 61,
|
|
94
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCEROWING SWIFT_NAME(hkquantitytypeidentifierdistancerowing) = 62,
|
|
95
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCESKATINGSPORTS SWIFT_NAME(hkquantitytypeidentifierdistanceskatingsports) = 63,
|
|
96
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCESWIMMING SWIFT_NAME(hkquantitytypeidentifierdistanceswimming) = 64,
|
|
97
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCEWALKINGRUNNING SWIFT_NAME(hkquantitytypeidentifierdistancewalkingrunning) = 65,
|
|
98
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCEWHEELCHAIR SWIFT_NAME(hkquantitytypeidentifierdistancewheelchair) = 66,
|
|
99
|
+
HKQUANTITYTYPEIDENTIFIERELECTRODERMALACTIVITY SWIFT_NAME(hkquantitytypeidentifierelectrodermalactivity) = 67,
|
|
100
|
+
HKQUANTITYTYPEIDENTIFIERENVIRONMENTALAUDIOEXPOSURE SWIFT_NAME(hkquantitytypeidentifierenvironmentalaudioexposure) = 68,
|
|
101
|
+
HKQUANTITYTYPEIDENTIFIERENVIRONMENTALSOUNDREDUCTION SWIFT_NAME(hkquantitytypeidentifierenvironmentalsoundreduction) = 69,
|
|
102
|
+
HKQUANTITYTYPEIDENTIFIERESTIMATEDWORKOUTEFFORTSCORE SWIFT_NAME(hkquantitytypeidentifierestimatedworkouteffortscore) = 70,
|
|
103
|
+
HKQUANTITYTYPEIDENTIFIERFLIGHTSCLIMBED SWIFT_NAME(hkquantitytypeidentifierflightsclimbed) = 71,
|
|
104
|
+
HKQUANTITYTYPEIDENTIFIERFORCEDEXPIRATORYVOLUME1 SWIFT_NAME(hkquantitytypeidentifierforcedexpiratoryvolume1) = 72,
|
|
105
|
+
HKQUANTITYTYPEIDENTIFIERFORCEDVITALCAPACITY SWIFT_NAME(hkquantitytypeidentifierforcedvitalcapacity) = 73,
|
|
106
|
+
HKQUANTITYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSURE SWIFT_NAME(hkquantitytypeidentifierheadphoneaudioexposure) = 74,
|
|
107
|
+
HKQUANTITYTYPEIDENTIFIERHEARTRATE SWIFT_NAME(hkquantitytypeidentifierheartrate) = 75,
|
|
108
|
+
HKQUANTITYTYPEIDENTIFIERHEARTRATERECOVERYONEMINUTE SWIFT_NAME(hkquantitytypeidentifierheartraterecoveryoneminute) = 76,
|
|
109
|
+
HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYRMSSD SWIFT_NAME(hkquantitytypeidentifierheartratevariabilityrmssd) = 77,
|
|
110
110
|
HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYSDNN SWIFT_NAME(hkquantitytypeidentifierheartratevariabilitysdnn) = 78,
|
|
111
111
|
HKQUANTITYTYPEIDENTIFIERHEIGHT SWIFT_NAME(hkquantitytypeidentifierheight) = 79,
|
|
112
112
|
HKQUANTITYTYPEIDENTIFIERINHALERUSAGE SWIFT_NAME(hkquantitytypeidentifierinhalerusage) = 80,
|
|
@@ -165,7 +165,6 @@ namespace margelo::nitro {
|
|
|
165
165
|
case hashString("HKQuantityTypeIdentifierBasalEnergyBurned"): return margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERBASALENERGYBURNED;
|
|
166
166
|
case hashString("HKQuantityTypeIdentifierBloodAlcoholContent"): return margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERBLOODALCOHOLCONTENT;
|
|
167
167
|
case hashString("HKQuantityTypeIdentifierBloodGlucose"): return margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERBLOODGLUCOSE;
|
|
168
|
-
case hashString("HKQuantityTypeIdentifierBloodKetones"): return margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERBLOODKETONES;
|
|
169
168
|
case hashString("HKQuantityTypeIdentifierBloodPressureDiastolic"): return margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERBLOODPRESSUREDIASTOLIC;
|
|
170
169
|
case hashString("HKQuantityTypeIdentifierBloodPressureSystolic"): return margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERBLOODPRESSURESYSTOLIC;
|
|
171
170
|
case hashString("HKQuantityTypeIdentifierBodyFatPercentage"): return margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERBODYFATPERCENTAGE;
|
|
@@ -235,6 +234,7 @@ namespace margelo::nitro {
|
|
|
235
234
|
case hashString("HKQuantityTypeIdentifierHeadphoneAudioExposure"): return margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSURE;
|
|
236
235
|
case hashString("HKQuantityTypeIdentifierHeartRate"): return margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATE;
|
|
237
236
|
case hashString("HKQuantityTypeIdentifierHeartRateRecoveryOneMinute"): return margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATERECOVERYONEMINUTE;
|
|
237
|
+
case hashString("HKQuantityTypeIdentifierHeartRateVariabilityRMSSD"): return margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYRMSSD;
|
|
238
238
|
case hashString("HKQuantityTypeIdentifierHeartRateVariabilitySDNN"): return margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYSDNN;
|
|
239
239
|
case hashString("HKQuantityTypeIdentifierHeight"): return margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEIGHT;
|
|
240
240
|
case hashString("HKQuantityTypeIdentifierInhalerUsage"): return margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERINHALERUSAGE;
|
|
@@ -287,7 +287,6 @@ namespace margelo::nitro {
|
|
|
287
287
|
case margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERBASALENERGYBURNED: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierBasalEnergyBurned");
|
|
288
288
|
case margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERBLOODALCOHOLCONTENT: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierBloodAlcoholContent");
|
|
289
289
|
case margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERBLOODGLUCOSE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierBloodGlucose");
|
|
290
|
-
case margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERBLOODKETONES: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierBloodKetones");
|
|
291
290
|
case margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERBLOODPRESSUREDIASTOLIC: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierBloodPressureDiastolic");
|
|
292
291
|
case margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERBLOODPRESSURESYSTOLIC: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierBloodPressureSystolic");
|
|
293
292
|
case margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERBODYFATPERCENTAGE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierBodyFatPercentage");
|
|
@@ -357,6 +356,7 @@ namespace margelo::nitro {
|
|
|
357
356
|
case margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSURE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeadphoneAudioExposure");
|
|
358
357
|
case margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeartRate");
|
|
359
358
|
case margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATERECOVERYONEMINUTE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeartRateRecoveryOneMinute");
|
|
359
|
+
case margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYRMSSD: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeartRateVariabilityRMSSD");
|
|
360
360
|
case margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYSDNN: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeartRateVariabilitySDNN");
|
|
361
361
|
case margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEIGHT: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeight");
|
|
362
362
|
case margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERINHALERUSAGE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierInhalerUsage");
|
|
@@ -414,7 +414,6 @@ namespace margelo::nitro {
|
|
|
414
414
|
case hashString("HKQuantityTypeIdentifierBasalEnergyBurned"):
|
|
415
415
|
case hashString("HKQuantityTypeIdentifierBloodAlcoholContent"):
|
|
416
416
|
case hashString("HKQuantityTypeIdentifierBloodGlucose"):
|
|
417
|
-
case hashString("HKQuantityTypeIdentifierBloodKetones"):
|
|
418
417
|
case hashString("HKQuantityTypeIdentifierBloodPressureDiastolic"):
|
|
419
418
|
case hashString("HKQuantityTypeIdentifierBloodPressureSystolic"):
|
|
420
419
|
case hashString("HKQuantityTypeIdentifierBodyFatPercentage"):
|
|
@@ -484,6 +483,7 @@ namespace margelo::nitro {
|
|
|
484
483
|
case hashString("HKQuantityTypeIdentifierHeadphoneAudioExposure"):
|
|
485
484
|
case hashString("HKQuantityTypeIdentifierHeartRate"):
|
|
486
485
|
case hashString("HKQuantityTypeIdentifierHeartRateRecoveryOneMinute"):
|
|
486
|
+
case hashString("HKQuantityTypeIdentifierHeartRateVariabilityRMSSD"):
|
|
487
487
|
case hashString("HKQuantityTypeIdentifierHeartRateVariabilitySDNN"):
|
|
488
488
|
case hashString("HKQuantityTypeIdentifierHeight"):
|
|
489
489
|
case hashString("HKQuantityTypeIdentifierInhalerUsage"):
|
|
@@ -32,15 +32,14 @@
|
|
|
32
32
|
namespace margelo::nitro::healthkit { struct Quantity; }
|
|
33
33
|
// Forward declaration of `QuantityDateInterval` to properly resolve imports.
|
|
34
34
|
namespace margelo::nitro::healthkit { struct QuantityDateInterval; }
|
|
35
|
-
// Forward declaration of `
|
|
36
|
-
namespace margelo::nitro::healthkit {
|
|
35
|
+
// Forward declaration of `Source` to properly resolve imports.
|
|
36
|
+
namespace margelo::nitro::healthkit { struct Source; }
|
|
37
37
|
|
|
38
38
|
#include "Quantity.hpp"
|
|
39
39
|
#include <optional>
|
|
40
40
|
#include "QuantityDateInterval.hpp"
|
|
41
41
|
#include <chrono>
|
|
42
|
-
#include
|
|
43
|
-
#include "HybridSourceProxySpec.hpp"
|
|
42
|
+
#include "Source.hpp"
|
|
44
43
|
#include <vector>
|
|
45
44
|
|
|
46
45
|
namespace margelo::nitro::healthkit {
|
|
@@ -59,11 +58,11 @@ namespace margelo::nitro::healthkit {
|
|
|
59
58
|
std::optional<Quantity> duration SWIFT_PRIVATE;
|
|
60
59
|
std::optional<std::chrono::system_clock::time_point> startDate SWIFT_PRIVATE;
|
|
61
60
|
std::optional<std::chrono::system_clock::time_point> endDate SWIFT_PRIVATE;
|
|
62
|
-
std::vector<
|
|
61
|
+
std::vector<Source> sources SWIFT_PRIVATE;
|
|
63
62
|
|
|
64
63
|
public:
|
|
65
64
|
QueryStatisticsResponse() = default;
|
|
66
|
-
explicit QueryStatisticsResponse(std::optional<Quantity> averageQuantity, std::optional<Quantity> maximumQuantity, std::optional<Quantity> minimumQuantity, std::optional<Quantity> sumQuantity, std::optional<Quantity> mostRecentQuantity, std::optional<QuantityDateInterval> mostRecentQuantityDateInterval, std::optional<Quantity> duration, std::optional<std::chrono::system_clock::time_point> startDate, std::optional<std::chrono::system_clock::time_point> endDate, std::vector<
|
|
65
|
+
explicit QueryStatisticsResponse(std::optional<Quantity> averageQuantity, std::optional<Quantity> maximumQuantity, std::optional<Quantity> minimumQuantity, std::optional<Quantity> sumQuantity, std::optional<Quantity> mostRecentQuantity, std::optional<QuantityDateInterval> mostRecentQuantityDateInterval, std::optional<Quantity> duration, std::optional<std::chrono::system_clock::time_point> startDate, std::optional<std::chrono::system_clock::time_point> endDate, std::vector<Source> sources): averageQuantity(averageQuantity), maximumQuantity(maximumQuantity), minimumQuantity(minimumQuantity), sumQuantity(sumQuantity), mostRecentQuantity(mostRecentQuantity), mostRecentQuantityDateInterval(mostRecentQuantityDateInterval), duration(duration), startDate(startDate), endDate(endDate), sources(sources) {}
|
|
67
66
|
|
|
68
67
|
public:
|
|
69
68
|
friend bool operator==(const QueryStatisticsResponse& lhs, const QueryStatisticsResponse& rhs) = default;
|
|
@@ -88,7 +87,7 @@ namespace margelo::nitro {
|
|
|
88
87
|
JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "duration"))),
|
|
89
88
|
JSIConverter<std::optional<std::chrono::system_clock::time_point>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "startDate"))),
|
|
90
89
|
JSIConverter<std::optional<std::chrono::system_clock::time_point>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "endDate"))),
|
|
91
|
-
JSIConverter<std::vector<
|
|
90
|
+
JSIConverter<std::vector<margelo::nitro::healthkit::Source>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "sources")))
|
|
92
91
|
);
|
|
93
92
|
}
|
|
94
93
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::QueryStatisticsResponse& arg) {
|
|
@@ -102,7 +101,7 @@ namespace margelo::nitro {
|
|
|
102
101
|
obj.setProperty(runtime, PropNameIDCache::get(runtime, "duration"), JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::toJSI(runtime, arg.duration));
|
|
103
102
|
obj.setProperty(runtime, PropNameIDCache::get(runtime, "startDate"), JSIConverter<std::optional<std::chrono::system_clock::time_point>>::toJSI(runtime, arg.startDate));
|
|
104
103
|
obj.setProperty(runtime, PropNameIDCache::get(runtime, "endDate"), JSIConverter<std::optional<std::chrono::system_clock::time_point>>::toJSI(runtime, arg.endDate));
|
|
105
|
-
obj.setProperty(runtime, PropNameIDCache::get(runtime, "sources"), JSIConverter<std::vector<
|
|
104
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "sources"), JSIConverter<std::vector<margelo::nitro::healthkit::Source>>::toJSI(runtime, arg.sources));
|
|
106
105
|
return obj;
|
|
107
106
|
}
|
|
108
107
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -122,7 +121,7 @@ namespace margelo::nitro {
|
|
|
122
121
|
if (!JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "duration")))) return false;
|
|
123
122
|
if (!JSIConverter<std::optional<std::chrono::system_clock::time_point>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "startDate")))) return false;
|
|
124
123
|
if (!JSIConverter<std::optional<std::chrono::system_clock::time_point>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "endDate")))) return false;
|
|
125
|
-
if (!JSIConverter<std::vector<
|
|
124
|
+
if (!JSIConverter<std::vector<margelo::nitro::healthkit::Source>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "sources")))) return false;
|
|
126
125
|
return true;
|
|
127
126
|
}
|
|
128
127
|
};
|