@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
|
@@ -22,8 +22,8 @@ namespace margelo::nitro::healthkit { struct QuantitySampleForSaving; }
|
|
|
22
22
|
namespace margelo::nitro::healthkit { enum class QuantityTypeIdentifier; }
|
|
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 `WorkoutTotals` to properly resolve imports.
|
|
28
28
|
namespace margelo::nitro::healthkit { struct WorkoutTotals; }
|
|
29
29
|
// Forward declaration of `QueryWorkoutSamplesWithAnchorResponse` to properly resolve imports.
|
|
@@ -42,6 +42,8 @@ namespace margelo::nitro::healthkit { struct WorkoutDurationPredicate; }
|
|
|
42
42
|
namespace margelo::nitro::healthkit { enum class ComparisonPredicateOperator; }
|
|
43
43
|
// Forward declaration of `PredicateWithMetadataKey` to properly resolve imports.
|
|
44
44
|
namespace margelo::nitro::healthkit { struct PredicateWithMetadataKey; }
|
|
45
|
+
// Forward declaration of `HybridSourceProxySpec` to properly resolve imports.
|
|
46
|
+
namespace margelo::nitro::healthkit { class HybridSourceProxySpec; }
|
|
45
47
|
// Forward declaration of `DateFilter` to properly resolve imports.
|
|
46
48
|
namespace margelo::nitro::healthkit { struct DateFilter; }
|
|
47
49
|
// Forward declaration of `WorkoutQueryOptions` to properly resolve imports.
|
|
@@ -63,7 +65,7 @@ namespace margelo::nitro::healthkit { enum class WorkoutSessionLocationType; }
|
|
|
63
65
|
#include <NitroModules/AnyMap.hpp>
|
|
64
66
|
#include <optional>
|
|
65
67
|
#include "SourceRevision.hpp"
|
|
66
|
-
#include "
|
|
68
|
+
#include "Source.hpp"
|
|
67
69
|
#include "WorkoutTotals.hpp"
|
|
68
70
|
#include "QueryWorkoutSamplesWithAnchorResponse.hpp"
|
|
69
71
|
#include "DeletedSample.hpp"
|
|
@@ -74,6 +76,7 @@ namespace margelo::nitro::healthkit { enum class WorkoutSessionLocationType; }
|
|
|
74
76
|
#include "ComparisonPredicateOperator.hpp"
|
|
75
77
|
#include "PredicateWithMetadataKey.hpp"
|
|
76
78
|
#include <variant>
|
|
79
|
+
#include "HybridSourceProxySpec.hpp"
|
|
77
80
|
#include "DateFilter.hpp"
|
|
78
81
|
#include "WorkoutQueryOptions.hpp"
|
|
79
82
|
#include "WorkoutConfiguration.hpp"
|
|
@@ -39,6 +39,8 @@ public extension CategoryTypeIdentifier {
|
|
|
39
39
|
self = .hkcategorytypeidentifieraudioexposureevent
|
|
40
40
|
case "HKCategoryTypeIdentifierBladderIncontinence":
|
|
41
41
|
self = .hkcategorytypeidentifierbladderincontinence
|
|
42
|
+
case "HKCategoryTypeIdentifierBleedingAfterMenopause":
|
|
43
|
+
self = .hkcategorytypeidentifierbleedingaftermenopause
|
|
42
44
|
case "HKCategoryTypeIdentifierBleedingAfterPregnancy":
|
|
43
45
|
self = .hkcategorytypeidentifierbleedingafterpregnancy
|
|
44
46
|
case "HKCategoryTypeIdentifierBleedingDuringPregnancy":
|
|
@@ -105,6 +107,8 @@ public extension CategoryTypeIdentifier {
|
|
|
105
107
|
self = .hkcategorytypeidentifierlowerbackpain
|
|
106
108
|
case "HKCategoryTypeIdentifierMemoryLapse":
|
|
107
109
|
self = .hkcategorytypeidentifiermemorylapse
|
|
110
|
+
case "HKCategoryTypeIdentifierMenopausalState":
|
|
111
|
+
self = .hkcategorytypeidentifiermenopausalstate
|
|
108
112
|
case "HKCategoryTypeIdentifierMenstrualFlow":
|
|
109
113
|
self = .hkcategorytypeidentifiermenstrualflow
|
|
110
114
|
case "HKCategoryTypeIdentifierMindfulSession":
|
|
@@ -189,6 +193,8 @@ public extension CategoryTypeIdentifier {
|
|
|
189
193
|
return "HKCategoryTypeIdentifierAudioExposureEvent"
|
|
190
194
|
case .hkcategorytypeidentifierbladderincontinence:
|
|
191
195
|
return "HKCategoryTypeIdentifierBladderIncontinence"
|
|
196
|
+
case .hkcategorytypeidentifierbleedingaftermenopause:
|
|
197
|
+
return "HKCategoryTypeIdentifierBleedingAfterMenopause"
|
|
192
198
|
case .hkcategorytypeidentifierbleedingafterpregnancy:
|
|
193
199
|
return "HKCategoryTypeIdentifierBleedingAfterPregnancy"
|
|
194
200
|
case .hkcategorytypeidentifierbleedingduringpregnancy:
|
|
@@ -255,6 +261,8 @@ public extension CategoryTypeIdentifier {
|
|
|
255
261
|
return "HKCategoryTypeIdentifierLowerBackPain"
|
|
256
262
|
case .hkcategorytypeidentifiermemorylapse:
|
|
257
263
|
return "HKCategoryTypeIdentifierMemoryLapse"
|
|
264
|
+
case .hkcategorytypeidentifiermenopausalstate:
|
|
265
|
+
return "HKCategoryTypeIdentifierMenopausalState"
|
|
258
266
|
case .hkcategorytypeidentifiermenstrualflow:
|
|
259
267
|
return "HKCategoryTypeIdentifierMenstrualFlow"
|
|
260
268
|
case .hkcategorytypeidentifiermindfulsession:
|
|
@@ -29,6 +29,8 @@ public extension CategoryTypeIdentifierWriteable {
|
|
|
29
29
|
self = .hkcategorytypeidentifieraudioexposureevent
|
|
30
30
|
case "HKCategoryTypeIdentifierBladderIncontinence":
|
|
31
31
|
self = .hkcategorytypeidentifierbladderincontinence
|
|
32
|
+
case "HKCategoryTypeIdentifierBleedingAfterMenopause":
|
|
33
|
+
self = .hkcategorytypeidentifierbleedingaftermenopause
|
|
32
34
|
case "HKCategoryTypeIdentifierBleedingAfterPregnancy":
|
|
33
35
|
self = .hkcategorytypeidentifierbleedingafterpregnancy
|
|
34
36
|
case "HKCategoryTypeIdentifierBleedingDuringPregnancy":
|
|
@@ -95,6 +97,8 @@ public extension CategoryTypeIdentifierWriteable {
|
|
|
95
97
|
self = .hkcategorytypeidentifierlowerbackpain
|
|
96
98
|
case "HKCategoryTypeIdentifierMemoryLapse":
|
|
97
99
|
self = .hkcategorytypeidentifiermemorylapse
|
|
100
|
+
case "HKCategoryTypeIdentifierMenopausalState":
|
|
101
|
+
self = .hkcategorytypeidentifiermenopausalstate
|
|
98
102
|
case "HKCategoryTypeIdentifierMenstrualFlow":
|
|
99
103
|
self = .hkcategorytypeidentifiermenstrualflow
|
|
100
104
|
case "HKCategoryTypeIdentifierMindfulSession":
|
|
@@ -169,6 +173,8 @@ public extension CategoryTypeIdentifierWriteable {
|
|
|
169
173
|
return "HKCategoryTypeIdentifierAudioExposureEvent"
|
|
170
174
|
case .hkcategorytypeidentifierbladderincontinence:
|
|
171
175
|
return "HKCategoryTypeIdentifierBladderIncontinence"
|
|
176
|
+
case .hkcategorytypeidentifierbleedingaftermenopause:
|
|
177
|
+
return "HKCategoryTypeIdentifierBleedingAfterMenopause"
|
|
172
178
|
case .hkcategorytypeidentifierbleedingafterpregnancy:
|
|
173
179
|
return "HKCategoryTypeIdentifierBleedingAfterPregnancy"
|
|
174
180
|
case .hkcategorytypeidentifierbleedingduringpregnancy:
|
|
@@ -235,6 +241,8 @@ public extension CategoryTypeIdentifierWriteable {
|
|
|
235
241
|
return "HKCategoryTypeIdentifierLowerBackPain"
|
|
236
242
|
case .hkcategorytypeidentifiermemorylapse:
|
|
237
243
|
return "HKCategoryTypeIdentifierMemoryLapse"
|
|
244
|
+
case .hkcategorytypeidentifiermenopausalstate:
|
|
245
|
+
return "HKCategoryTypeIdentifierMenopausalState"
|
|
238
246
|
case .hkcategorytypeidentifiermenstrualflow:
|
|
239
247
|
return "HKCategoryTypeIdentifierMenstrualFlow"
|
|
240
248
|
case .hkcategorytypeidentifiermindfulsession:
|
|
@@ -39,6 +39,8 @@ public extension ObjectTypeIdentifier {
|
|
|
39
39
|
self = .hkcategorytypeidentifieraudioexposureevent
|
|
40
40
|
case "HKCategoryTypeIdentifierBladderIncontinence":
|
|
41
41
|
self = .hkcategorytypeidentifierbladderincontinence
|
|
42
|
+
case "HKCategoryTypeIdentifierBleedingAfterMenopause":
|
|
43
|
+
self = .hkcategorytypeidentifierbleedingaftermenopause
|
|
42
44
|
case "HKCategoryTypeIdentifierBleedingAfterPregnancy":
|
|
43
45
|
self = .hkcategorytypeidentifierbleedingafterpregnancy
|
|
44
46
|
case "HKCategoryTypeIdentifierBleedingDuringPregnancy":
|
|
@@ -105,6 +107,8 @@ public extension ObjectTypeIdentifier {
|
|
|
105
107
|
self = .hkcategorytypeidentifierlowerbackpain
|
|
106
108
|
case "HKCategoryTypeIdentifierMemoryLapse":
|
|
107
109
|
self = .hkcategorytypeidentifiermemorylapse
|
|
110
|
+
case "HKCategoryTypeIdentifierMenopausalState":
|
|
111
|
+
self = .hkcategorytypeidentifiermenopausalstate
|
|
108
112
|
case "HKCategoryTypeIdentifierMenstrualFlow":
|
|
109
113
|
self = .hkcategorytypeidentifiermenstrualflow
|
|
110
114
|
case "HKCategoryTypeIdentifierMindfulSession":
|
|
@@ -459,6 +463,8 @@ public extension ObjectTypeIdentifier {
|
|
|
459
463
|
return "HKCategoryTypeIdentifierAudioExposureEvent"
|
|
460
464
|
case .hkcategorytypeidentifierbladderincontinence:
|
|
461
465
|
return "HKCategoryTypeIdentifierBladderIncontinence"
|
|
466
|
+
case .hkcategorytypeidentifierbleedingaftermenopause:
|
|
467
|
+
return "HKCategoryTypeIdentifierBleedingAfterMenopause"
|
|
462
468
|
case .hkcategorytypeidentifierbleedingafterpregnancy:
|
|
463
469
|
return "HKCategoryTypeIdentifierBleedingAfterPregnancy"
|
|
464
470
|
case .hkcategorytypeidentifierbleedingduringpregnancy:
|
|
@@ -525,6 +531,8 @@ public extension ObjectTypeIdentifier {
|
|
|
525
531
|
return "HKCategoryTypeIdentifierLowerBackPain"
|
|
526
532
|
case .hkcategorytypeidentifiermemorylapse:
|
|
527
533
|
return "HKCategoryTypeIdentifierMemoryLapse"
|
|
534
|
+
case .hkcategorytypeidentifiermenopausalstate:
|
|
535
|
+
return "HKCategoryTypeIdentifierMenopausalState"
|
|
528
536
|
case .hkcategorytypeidentifiermenstrualflow:
|
|
529
537
|
return "HKCategoryTypeIdentifierMenstrualFlow"
|
|
530
538
|
case .hkcategorytypeidentifiermindfulsession:
|
|
@@ -18,7 +18,7 @@ public extension QueryStatisticsResponse {
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a new instance of `QueryStatisticsResponse`.
|
|
20
20
|
*/
|
|
21
|
-
init(averageQuantity: Quantity?, maximumQuantity: Quantity?, minimumQuantity: Quantity?, sumQuantity: Quantity?, mostRecentQuantity: Quantity?, mostRecentQuantityDateInterval: QuantityDateInterval?, duration: Quantity?, startDate: Date?, endDate: Date?, sources: [
|
|
21
|
+
init(averageQuantity: Quantity?, maximumQuantity: Quantity?, minimumQuantity: Quantity?, sumQuantity: Quantity?, mostRecentQuantity: Quantity?, mostRecentQuantityDateInterval: QuantityDateInterval?, duration: Quantity?, startDate: Date?, endDate: Date?, sources: [Source]) {
|
|
22
22
|
self.init({ () -> bridge.std__optional_Quantity_ in
|
|
23
23
|
if let __unwrappedValue = averageQuantity {
|
|
24
24
|
return bridge.create_std__optional_Quantity_(__unwrappedValue)
|
|
@@ -73,13 +73,10 @@ public extension QueryStatisticsResponse {
|
|
|
73
73
|
} else {
|
|
74
74
|
return .init()
|
|
75
75
|
}
|
|
76
|
-
}(), { () -> bridge.
|
|
77
|
-
var __vector = bridge.
|
|
76
|
+
}(), { () -> bridge.std__vector_Source_ in
|
|
77
|
+
var __vector = bridge.create_std__vector_Source_(sources.count)
|
|
78
78
|
for __item in sources {
|
|
79
|
-
__vector.push_back(
|
|
80
|
-
let __cxxWrapped = __item.getCxxWrapper()
|
|
81
|
-
return __cxxWrapped.getCxxPart()
|
|
82
|
-
}())
|
|
79
|
+
__vector.push_back(__item)
|
|
83
80
|
}
|
|
84
81
|
return __vector
|
|
85
82
|
}())
|
|
@@ -145,11 +142,7 @@ public extension QueryStatisticsResponse {
|
|
|
145
142
|
}
|
|
146
143
|
|
|
147
144
|
@inline(__always)
|
|
148
|
-
var sources: [
|
|
149
|
-
return self.__sources.map({ __item in
|
|
150
|
-
let __unsafePointer = bridge.get_std__shared_ptr_HybridSourceProxySpec_(__item)
|
|
151
|
-
let __instance = HybridSourceProxySpec_cxx.fromUnsafe(__unsafePointer)
|
|
152
|
-
return __instance.getHybridSourceProxySpec()
|
|
153
|
-
}() })
|
|
145
|
+
var sources: [Source] {
|
|
146
|
+
return self.__sources.map({ __item in __item })
|
|
154
147
|
}
|
|
155
148
|
}
|
|
@@ -18,11 +18,8 @@ public extension QueryStatisticsResponseFromSingleSource {
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a new instance of `QueryStatisticsResponseFromSingleSource`.
|
|
20
20
|
*/
|
|
21
|
-
init(source:
|
|
22
|
-
self.init({ () -> bridge.
|
|
23
|
-
let __cxxWrapped = source.getCxxWrapper()
|
|
24
|
-
return __cxxWrapped.getCxxPart()
|
|
25
|
-
}(), { () -> bridge.std__optional_std__chrono__system_clock__time_point_ in
|
|
21
|
+
init(source: Source, startDate: Date?, endDate: Date?, duration: Quantity?, averageQuantity: Quantity?, maximumQuantity: Quantity?, minimumQuantity: Quantity?, sumQuantity: Quantity?, mostRecentQuantity: Quantity?, mostRecentQuantityDateInterval: QuantityDateInterval?) {
|
|
22
|
+
self.init(source, { () -> bridge.std__optional_std__chrono__system_clock__time_point_ in
|
|
26
23
|
if let __unwrappedValue = startDate {
|
|
27
24
|
return bridge.create_std__optional_std__chrono__system_clock__time_point_(__unwrappedValue.toCpp())
|
|
28
25
|
} else {
|
|
@@ -80,12 +77,8 @@ public extension QueryStatisticsResponseFromSingleSource {
|
|
|
80
77
|
}
|
|
81
78
|
|
|
82
79
|
@inline(__always)
|
|
83
|
-
var source:
|
|
84
|
-
return
|
|
85
|
-
let __unsafePointer = bridge.get_std__shared_ptr_HybridSourceProxySpec_(self.__source)
|
|
86
|
-
let __instance = HybridSourceProxySpec_cxx.fromUnsafe(__unsafePointer)
|
|
87
|
-
return __instance.getHybridSourceProxySpec()
|
|
88
|
-
}()
|
|
80
|
+
var source: Source {
|
|
81
|
+
return self.__source
|
|
89
82
|
}
|
|
90
83
|
|
|
91
84
|
@inline(__always)
|
|
@@ -39,6 +39,8 @@ public extension SampleTypeIdentifier {
|
|
|
39
39
|
self = .hkcategorytypeidentifieraudioexposureevent
|
|
40
40
|
case "HKCategoryTypeIdentifierBladderIncontinence":
|
|
41
41
|
self = .hkcategorytypeidentifierbladderincontinence
|
|
42
|
+
case "HKCategoryTypeIdentifierBleedingAfterMenopause":
|
|
43
|
+
self = .hkcategorytypeidentifierbleedingaftermenopause
|
|
42
44
|
case "HKCategoryTypeIdentifierBleedingAfterPregnancy":
|
|
43
45
|
self = .hkcategorytypeidentifierbleedingafterpregnancy
|
|
44
46
|
case "HKCategoryTypeIdentifierBleedingDuringPregnancy":
|
|
@@ -105,6 +107,8 @@ public extension SampleTypeIdentifier {
|
|
|
105
107
|
self = .hkcategorytypeidentifierlowerbackpain
|
|
106
108
|
case "HKCategoryTypeIdentifierMemoryLapse":
|
|
107
109
|
self = .hkcategorytypeidentifiermemorylapse
|
|
110
|
+
case "HKCategoryTypeIdentifierMenopausalState":
|
|
111
|
+
self = .hkcategorytypeidentifiermenopausalstate
|
|
108
112
|
case "HKCategoryTypeIdentifierMenstrualFlow":
|
|
109
113
|
self = .hkcategorytypeidentifiermenstrualflow
|
|
110
114
|
case "HKCategoryTypeIdentifierMindfulSession":
|
|
@@ -445,6 +449,8 @@ public extension SampleTypeIdentifier {
|
|
|
445
449
|
return "HKCategoryTypeIdentifierAudioExposureEvent"
|
|
446
450
|
case .hkcategorytypeidentifierbladderincontinence:
|
|
447
451
|
return "HKCategoryTypeIdentifierBladderIncontinence"
|
|
452
|
+
case .hkcategorytypeidentifierbleedingaftermenopause:
|
|
453
|
+
return "HKCategoryTypeIdentifierBleedingAfterMenopause"
|
|
448
454
|
case .hkcategorytypeidentifierbleedingafterpregnancy:
|
|
449
455
|
return "HKCategoryTypeIdentifierBleedingAfterPregnancy"
|
|
450
456
|
case .hkcategorytypeidentifierbleedingduringpregnancy:
|
|
@@ -511,6 +517,8 @@ public extension SampleTypeIdentifier {
|
|
|
511
517
|
return "HKCategoryTypeIdentifierLowerBackPain"
|
|
512
518
|
case .hkcategorytypeidentifiermemorylapse:
|
|
513
519
|
return "HKCategoryTypeIdentifierMemoryLapse"
|
|
520
|
+
case .hkcategorytypeidentifiermenopausalstate:
|
|
521
|
+
return "HKCategoryTypeIdentifierMenopausalState"
|
|
514
522
|
case .hkcategorytypeidentifiermenstrualflow:
|
|
515
523
|
return "HKCategoryTypeIdentifierMenstrualFlow"
|
|
516
524
|
case .hkcategorytypeidentifiermindfulsession:
|
|
@@ -29,6 +29,8 @@ public extension SampleTypeIdentifierWriteable {
|
|
|
29
29
|
self = .hkcategorytypeidentifieraudioexposureevent
|
|
30
30
|
case "HKCategoryTypeIdentifierBladderIncontinence":
|
|
31
31
|
self = .hkcategorytypeidentifierbladderincontinence
|
|
32
|
+
case "HKCategoryTypeIdentifierBleedingAfterMenopause":
|
|
33
|
+
self = .hkcategorytypeidentifierbleedingaftermenopause
|
|
32
34
|
case "HKCategoryTypeIdentifierBleedingAfterPregnancy":
|
|
33
35
|
self = .hkcategorytypeidentifierbleedingafterpregnancy
|
|
34
36
|
case "HKCategoryTypeIdentifierBleedingDuringPregnancy":
|
|
@@ -95,6 +97,8 @@ public extension SampleTypeIdentifierWriteable {
|
|
|
95
97
|
self = .hkcategorytypeidentifierlowerbackpain
|
|
96
98
|
case "HKCategoryTypeIdentifierMemoryLapse":
|
|
97
99
|
self = .hkcategorytypeidentifiermemorylapse
|
|
100
|
+
case "HKCategoryTypeIdentifierMenopausalState":
|
|
101
|
+
self = .hkcategorytypeidentifiermenopausalstate
|
|
98
102
|
case "HKCategoryTypeIdentifierMenstrualFlow":
|
|
99
103
|
self = .hkcategorytypeidentifiermenstrualflow
|
|
100
104
|
case "HKCategoryTypeIdentifierMindfulSession":
|
|
@@ -413,6 +417,8 @@ public extension SampleTypeIdentifierWriteable {
|
|
|
413
417
|
return "HKCategoryTypeIdentifierAudioExposureEvent"
|
|
414
418
|
case .hkcategorytypeidentifierbladderincontinence:
|
|
415
419
|
return "HKCategoryTypeIdentifierBladderIncontinence"
|
|
420
|
+
case .hkcategorytypeidentifierbleedingaftermenopause:
|
|
421
|
+
return "HKCategoryTypeIdentifierBleedingAfterMenopause"
|
|
416
422
|
case .hkcategorytypeidentifierbleedingafterpregnancy:
|
|
417
423
|
return "HKCategoryTypeIdentifierBleedingAfterPregnancy"
|
|
418
424
|
case .hkcategorytypeidentifierbleedingduringpregnancy:
|
|
@@ -479,6 +485,8 @@ public extension SampleTypeIdentifierWriteable {
|
|
|
479
485
|
return "HKCategoryTypeIdentifierLowerBackPain"
|
|
480
486
|
case .hkcategorytypeidentifiermemorylapse:
|
|
481
487
|
return "HKCategoryTypeIdentifierMemoryLapse"
|
|
488
|
+
case .hkcategorytypeidentifiermenopausalstate:
|
|
489
|
+
return "HKCategoryTypeIdentifierMenopausalState"
|
|
482
490
|
case .hkcategorytypeidentifiermenstrualflow:
|
|
483
491
|
return "HKCategoryTypeIdentifierMenstrualFlow"
|
|
484
492
|
case .hkcategorytypeidentifiermindfulsession:
|
|
@@ -18,11 +18,8 @@ public extension SourceRevision {
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a new instance of `SourceRevision`.
|
|
20
20
|
*/
|
|
21
|
-
init(source:
|
|
22
|
-
self.init({ () -> bridge.
|
|
23
|
-
let __cxxWrapped = source.getCxxWrapper()
|
|
24
|
-
return __cxxWrapped.getCxxPart()
|
|
25
|
-
}(), { () -> bridge.std__optional_std__string_ in
|
|
21
|
+
init(source: Source, version: String?, operatingSystemVersion: String, productType: String?) {
|
|
22
|
+
self.init(source, { () -> bridge.std__optional_std__string_ in
|
|
26
23
|
if let __unwrappedValue = version {
|
|
27
24
|
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
28
25
|
} else {
|
|
@@ -38,12 +35,8 @@ public extension SourceRevision {
|
|
|
38
35
|
}
|
|
39
36
|
|
|
40
37
|
@inline(__always)
|
|
41
|
-
var source:
|
|
42
|
-
return
|
|
43
|
-
let __unsafePointer = bridge.get_std__shared_ptr_HybridSourceProxySpec_(self.__source)
|
|
44
|
-
let __instance = HybridSourceProxySpec_cxx.fromUnsafe(__unsafePointer)
|
|
45
|
-
return __instance.getHybridSourceProxySpec()
|
|
46
|
-
}()
|
|
38
|
+
var source: Source {
|
|
39
|
+
return self.__source
|
|
47
40
|
}
|
|
48
41
|
|
|
49
42
|
@inline(__always)
|
|
@@ -18,8 +18,8 @@ public extension WorkoutActivity {
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a new instance of `WorkoutActivity`.
|
|
20
20
|
*/
|
|
21
|
-
init(startDate: Date, endDate: Date, uuid: String, duration: Double) {
|
|
22
|
-
self.init(startDate.toCpp(), endDate.toCpp(), std.string(uuid), duration)
|
|
21
|
+
init(startDate: Date, endDate: Date, uuid: String, duration: Double, activityType: WorkoutActivityType) {
|
|
22
|
+
self.init(startDate.toCpp(), endDate.toCpp(), std.string(uuid), duration, activityType)
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
@inline(__always)
|
|
@@ -41,4 +41,9 @@ public extension WorkoutActivity {
|
|
|
41
41
|
var duration: Double {
|
|
42
42
|
return self.__duration
|
|
43
43
|
}
|
|
44
|
+
|
|
45
|
+
@inline(__always)
|
|
46
|
+
var activityType: WorkoutActivityType {
|
|
47
|
+
return self.__activityType
|
|
48
|
+
}
|
|
44
49
|
}
|
|
@@ -183,6 +183,10 @@ public extension WorkoutActivityType {
|
|
|
183
183
|
self = .transition
|
|
184
184
|
case "underwaterDiving":
|
|
185
185
|
self = .underwaterdiving
|
|
186
|
+
case "rest":
|
|
187
|
+
self = .rest
|
|
188
|
+
case "group":
|
|
189
|
+
self = .group
|
|
186
190
|
case "other":
|
|
187
191
|
self = .other
|
|
188
192
|
default:
|
|
@@ -361,6 +365,10 @@ public extension WorkoutActivityType {
|
|
|
361
365
|
return "transition"
|
|
362
366
|
case .underwaterdiving:
|
|
363
367
|
return "underwaterDiving"
|
|
368
|
+
case .rest:
|
|
369
|
+
return "rest"
|
|
370
|
+
case .group:
|
|
371
|
+
return "group"
|
|
364
372
|
case .other:
|
|
365
373
|
return "other"
|
|
366
374
|
}
|
|
@@ -40,65 +40,67 @@ namespace margelo::nitro::healthkit {
|
|
|
40
40
|
HKCATEGORYTYPEIDENTIFIERAPPLEWALKINGSTEADINESSEVENT SWIFT_NAME(hkcategorytypeidentifierapplewalkingsteadinessevent) = 8,
|
|
41
41
|
HKCATEGORYTYPEIDENTIFIERAUDIOEXPOSUREEVENT SWIFT_NAME(hkcategorytypeidentifieraudioexposureevent) = 9,
|
|
42
42
|
HKCATEGORYTYPEIDENTIFIERBLADDERINCONTINENCE SWIFT_NAME(hkcategorytypeidentifierbladderincontinence) = 10,
|
|
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
|
-
|
|
43
|
+
HKCATEGORYTYPEIDENTIFIERBLEEDINGAFTERMENOPAUSE SWIFT_NAME(hkcategorytypeidentifierbleedingaftermenopause) = 11,
|
|
44
|
+
HKCATEGORYTYPEIDENTIFIERBLEEDINGAFTERPREGNANCY SWIFT_NAME(hkcategorytypeidentifierbleedingafterpregnancy) = 12,
|
|
45
|
+
HKCATEGORYTYPEIDENTIFIERBLEEDINGDURINGPREGNANCY SWIFT_NAME(hkcategorytypeidentifierbleedingduringpregnancy) = 13,
|
|
46
|
+
HKCATEGORYTYPEIDENTIFIERBLOATING SWIFT_NAME(hkcategorytypeidentifierbloating) = 14,
|
|
47
|
+
HKCATEGORYTYPEIDENTIFIERBREASTPAIN SWIFT_NAME(hkcategorytypeidentifierbreastpain) = 15,
|
|
48
|
+
HKCATEGORYTYPEIDENTIFIERCERVICALMUCUSQUALITY SWIFT_NAME(hkcategorytypeidentifiercervicalmucusquality) = 16,
|
|
49
|
+
HKCATEGORYTYPEIDENTIFIERCHESTTIGHTNESSORPAIN SWIFT_NAME(hkcategorytypeidentifierchesttightnessorpain) = 17,
|
|
50
|
+
HKCATEGORYTYPEIDENTIFIERCHILLS SWIFT_NAME(hkcategorytypeidentifierchills) = 18,
|
|
51
|
+
HKCATEGORYTYPEIDENTIFIERCONSTIPATION SWIFT_NAME(hkcategorytypeidentifierconstipation) = 19,
|
|
52
|
+
HKCATEGORYTYPEIDENTIFIERCONTRACEPTIVE SWIFT_NAME(hkcategorytypeidentifiercontraceptive) = 20,
|
|
53
|
+
HKCATEGORYTYPEIDENTIFIERCOUGHING SWIFT_NAME(hkcategorytypeidentifiercoughing) = 21,
|
|
54
|
+
HKCATEGORYTYPEIDENTIFIERDIARRHEA SWIFT_NAME(hkcategorytypeidentifierdiarrhea) = 22,
|
|
55
|
+
HKCATEGORYTYPEIDENTIFIERDIZZINESS SWIFT_NAME(hkcategorytypeidentifierdizziness) = 23,
|
|
56
|
+
HKCATEGORYTYPEIDENTIFIERDRYSKIN SWIFT_NAME(hkcategorytypeidentifierdryskin) = 24,
|
|
57
|
+
HKCATEGORYTYPEIDENTIFIERENVIRONMENTALAUDIOEXPOSUREEVENT SWIFT_NAME(hkcategorytypeidentifierenvironmentalaudioexposureevent) = 25,
|
|
58
|
+
HKCATEGORYTYPEIDENTIFIERFAINTING SWIFT_NAME(hkcategorytypeidentifierfainting) = 26,
|
|
59
|
+
HKCATEGORYTYPEIDENTIFIERFATIGUE SWIFT_NAME(hkcategorytypeidentifierfatigue) = 27,
|
|
60
|
+
HKCATEGORYTYPEIDENTIFIERFEVER SWIFT_NAME(hkcategorytypeidentifierfever) = 28,
|
|
61
|
+
HKCATEGORYTYPEIDENTIFIERGENERALIZEDBODYACHE SWIFT_NAME(hkcategorytypeidentifiergeneralizedbodyache) = 29,
|
|
62
|
+
HKCATEGORYTYPEIDENTIFIERHAIRLOSS SWIFT_NAME(hkcategorytypeidentifierhairloss) = 30,
|
|
63
|
+
HKCATEGORYTYPEIDENTIFIERHANDWASHINGEVENT SWIFT_NAME(hkcategorytypeidentifierhandwashingevent) = 31,
|
|
64
|
+
HKCATEGORYTYPEIDENTIFIERHEADACHE SWIFT_NAME(hkcategorytypeidentifierheadache) = 32,
|
|
65
|
+
HKCATEGORYTYPEIDENTIFIERHEARTBURN SWIFT_NAME(hkcategorytypeidentifierheartburn) = 33,
|
|
66
|
+
HKCATEGORYTYPEIDENTIFIERHOTFLASHES SWIFT_NAME(hkcategorytypeidentifierhotflashes) = 34,
|
|
67
|
+
HKCATEGORYTYPEIDENTIFIERINFREQUENTMENSTRUALCYCLES SWIFT_NAME(hkcategorytypeidentifierinfrequentmenstrualcycles) = 35,
|
|
68
|
+
HKCATEGORYTYPEIDENTIFIERINTERMENSTRUALBLEEDING SWIFT_NAME(hkcategorytypeidentifierintermenstrualbleeding) = 36,
|
|
69
|
+
HKCATEGORYTYPEIDENTIFIERIRREGULARHEARTRHYTHMEVENT SWIFT_NAME(hkcategorytypeidentifierirregularheartrhythmevent) = 37,
|
|
70
|
+
HKCATEGORYTYPEIDENTIFIERIRREGULARMENSTRUALCYCLES SWIFT_NAME(hkcategorytypeidentifierirregularmenstrualcycles) = 38,
|
|
71
|
+
HKCATEGORYTYPEIDENTIFIERLACTATION SWIFT_NAME(hkcategorytypeidentifierlactation) = 39,
|
|
72
|
+
HKCATEGORYTYPEIDENTIFIERLOSSOFSMELL SWIFT_NAME(hkcategorytypeidentifierlossofsmell) = 40,
|
|
73
|
+
HKCATEGORYTYPEIDENTIFIERLOSSOFTASTE SWIFT_NAME(hkcategorytypeidentifierlossoftaste) = 41,
|
|
74
|
+
HKCATEGORYTYPEIDENTIFIERLOWCARDIOFITNESSEVENT SWIFT_NAME(hkcategorytypeidentifierlowcardiofitnessevent) = 42,
|
|
75
|
+
HKCATEGORYTYPEIDENTIFIERLOWERBACKPAIN SWIFT_NAME(hkcategorytypeidentifierlowerbackpain) = 43,
|
|
76
|
+
HKCATEGORYTYPEIDENTIFIERMEMORYLAPSE SWIFT_NAME(hkcategorytypeidentifiermemorylapse) = 44,
|
|
77
|
+
HKCATEGORYTYPEIDENTIFIERMENOPAUSALSTATE SWIFT_NAME(hkcategorytypeidentifiermenopausalstate) = 45,
|
|
78
|
+
HKCATEGORYTYPEIDENTIFIERMENSTRUALFLOW SWIFT_NAME(hkcategorytypeidentifiermenstrualflow) = 46,
|
|
79
|
+
HKCATEGORYTYPEIDENTIFIERMINDFULSESSION SWIFT_NAME(hkcategorytypeidentifiermindfulsession) = 47,
|
|
80
|
+
HKCATEGORYTYPEIDENTIFIERMOODCHANGES SWIFT_NAME(hkcategorytypeidentifiermoodchanges) = 48,
|
|
81
|
+
HKCATEGORYTYPEIDENTIFIERNAUSEA SWIFT_NAME(hkcategorytypeidentifiernausea) = 49,
|
|
82
|
+
HKCATEGORYTYPEIDENTIFIERNIGHTSWEATS SWIFT_NAME(hkcategorytypeidentifiernightsweats) = 50,
|
|
83
|
+
HKCATEGORYTYPEIDENTIFIEROVULATIONTESTRESULT SWIFT_NAME(hkcategorytypeidentifierovulationtestresult) = 51,
|
|
84
|
+
HKCATEGORYTYPEIDENTIFIERPELVICPAIN SWIFT_NAME(hkcategorytypeidentifierpelvicpain) = 52,
|
|
85
|
+
HKCATEGORYTYPEIDENTIFIERPERSISTENTINTERMENSTRUALBLEEDING SWIFT_NAME(hkcategorytypeidentifierpersistentintermenstrualbleeding) = 53,
|
|
86
|
+
HKCATEGORYTYPEIDENTIFIERPREGNANCY SWIFT_NAME(hkcategorytypeidentifierpregnancy) = 54,
|
|
87
|
+
HKCATEGORYTYPEIDENTIFIERPREGNANCYTESTRESULT SWIFT_NAME(hkcategorytypeidentifierpregnancytestresult) = 55,
|
|
88
|
+
HKCATEGORYTYPEIDENTIFIERPROGESTERONETESTRESULT SWIFT_NAME(hkcategorytypeidentifierprogesteronetestresult) = 56,
|
|
89
|
+
HKCATEGORYTYPEIDENTIFIERPROLONGEDMENSTRUALPERIODS SWIFT_NAME(hkcategorytypeidentifierprolongedmenstrualperiods) = 57,
|
|
90
|
+
HKCATEGORYTYPEIDENTIFIERRAPIDPOUNDINGORFLUTTERINGHEARTBEAT SWIFT_NAME(hkcategorytypeidentifierrapidpoundingorflutteringheartbeat) = 58,
|
|
91
|
+
HKCATEGORYTYPEIDENTIFIERRUNNYNOSE SWIFT_NAME(hkcategorytypeidentifierrunnynose) = 59,
|
|
92
|
+
HKCATEGORYTYPEIDENTIFIERSEXUALACTIVITY SWIFT_NAME(hkcategorytypeidentifiersexualactivity) = 60,
|
|
93
|
+
HKCATEGORYTYPEIDENTIFIERSHORTNESSOFBREATH SWIFT_NAME(hkcategorytypeidentifiershortnessofbreath) = 61,
|
|
94
|
+
HKCATEGORYTYPEIDENTIFIERSINUSCONGESTION SWIFT_NAME(hkcategorytypeidentifiersinuscongestion) = 62,
|
|
95
|
+
HKCATEGORYTYPEIDENTIFIERSKIPPEDHEARTBEAT SWIFT_NAME(hkcategorytypeidentifierskippedheartbeat) = 63,
|
|
96
|
+
HKCATEGORYTYPEIDENTIFIERSLEEPANALYSIS SWIFT_NAME(hkcategorytypeidentifiersleepanalysis) = 64,
|
|
97
|
+
HKCATEGORYTYPEIDENTIFIERSLEEPAPNEAEVENT SWIFT_NAME(hkcategorytypeidentifiersleepapneaevent) = 65,
|
|
98
|
+
HKCATEGORYTYPEIDENTIFIERSLEEPCHANGES SWIFT_NAME(hkcategorytypeidentifiersleepchanges) = 66,
|
|
99
|
+
HKCATEGORYTYPEIDENTIFIERSORETHROAT SWIFT_NAME(hkcategorytypeidentifiersorethroat) = 67,
|
|
100
|
+
HKCATEGORYTYPEIDENTIFIERTOOTHBRUSHINGEVENT SWIFT_NAME(hkcategorytypeidentifiertoothbrushingevent) = 68,
|
|
101
|
+
HKCATEGORYTYPEIDENTIFIERVAGINALDRYNESS SWIFT_NAME(hkcategorytypeidentifiervaginaldryness) = 69,
|
|
102
|
+
HKCATEGORYTYPEIDENTIFIERVOMITING SWIFT_NAME(hkcategorytypeidentifiervomiting) = 70,
|
|
103
|
+
HKCATEGORYTYPEIDENTIFIERWHEEZING SWIFT_NAME(hkcategorytypeidentifierwheezing) = 71,
|
|
102
104
|
} CLOSED_ENUM;
|
|
103
105
|
|
|
104
106
|
} // namespace margelo::nitro::healthkit
|
|
@@ -122,6 +124,7 @@ namespace margelo::nitro {
|
|
|
122
124
|
case hashString("HKCategoryTypeIdentifierAppleWalkingSteadinessEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERAPPLEWALKINGSTEADINESSEVENT;
|
|
123
125
|
case hashString("HKCategoryTypeIdentifierAudioExposureEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERAUDIOEXPOSUREEVENT;
|
|
124
126
|
case hashString("HKCategoryTypeIdentifierBladderIncontinence"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBLADDERINCONTINENCE;
|
|
127
|
+
case hashString("HKCategoryTypeIdentifierBleedingAfterMenopause"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBLEEDINGAFTERMENOPAUSE;
|
|
125
128
|
case hashString("HKCategoryTypeIdentifierBleedingAfterPregnancy"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBLEEDINGAFTERPREGNANCY;
|
|
126
129
|
case hashString("HKCategoryTypeIdentifierBleedingDuringPregnancy"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBLEEDINGDURINGPREGNANCY;
|
|
127
130
|
case hashString("HKCategoryTypeIdentifierBloating"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBLOATING;
|
|
@@ -155,6 +158,7 @@ namespace margelo::nitro {
|
|
|
155
158
|
case hashString("HKCategoryTypeIdentifierLowCardioFitnessEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERLOWCARDIOFITNESSEVENT;
|
|
156
159
|
case hashString("HKCategoryTypeIdentifierLowerBackPain"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERLOWERBACKPAIN;
|
|
157
160
|
case hashString("HKCategoryTypeIdentifierMemoryLapse"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERMEMORYLAPSE;
|
|
161
|
+
case hashString("HKCategoryTypeIdentifierMenopausalState"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERMENOPAUSALSTATE;
|
|
158
162
|
case hashString("HKCategoryTypeIdentifierMenstrualFlow"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERMENSTRUALFLOW;
|
|
159
163
|
case hashString("HKCategoryTypeIdentifierMindfulSession"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERMINDFULSESSION;
|
|
160
164
|
case hashString("HKCategoryTypeIdentifierMoodChanges"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERMOODCHANGES;
|
|
@@ -198,6 +202,7 @@ namespace margelo::nitro {
|
|
|
198
202
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERAPPLEWALKINGSTEADINESSEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierAppleWalkingSteadinessEvent");
|
|
199
203
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERAUDIOEXPOSUREEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierAudioExposureEvent");
|
|
200
204
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBLADDERINCONTINENCE: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierBladderIncontinence");
|
|
205
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBLEEDINGAFTERMENOPAUSE: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierBleedingAfterMenopause");
|
|
201
206
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBLEEDINGAFTERPREGNANCY: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierBleedingAfterPregnancy");
|
|
202
207
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBLEEDINGDURINGPREGNANCY: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierBleedingDuringPregnancy");
|
|
203
208
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBLOATING: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierBloating");
|
|
@@ -231,6 +236,7 @@ namespace margelo::nitro {
|
|
|
231
236
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERLOWCARDIOFITNESSEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierLowCardioFitnessEvent");
|
|
232
237
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERLOWERBACKPAIN: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierLowerBackPain");
|
|
233
238
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERMEMORYLAPSE: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierMemoryLapse");
|
|
239
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERMENOPAUSALSTATE: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierMenopausalState");
|
|
234
240
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERMENSTRUALFLOW: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierMenstrualFlow");
|
|
235
241
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERMINDFULSESSION: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierMindfulSession");
|
|
236
242
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERMOODCHANGES: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierMoodChanges");
|
|
@@ -279,6 +285,7 @@ namespace margelo::nitro {
|
|
|
279
285
|
case hashString("HKCategoryTypeIdentifierAppleWalkingSteadinessEvent"):
|
|
280
286
|
case hashString("HKCategoryTypeIdentifierAudioExposureEvent"):
|
|
281
287
|
case hashString("HKCategoryTypeIdentifierBladderIncontinence"):
|
|
288
|
+
case hashString("HKCategoryTypeIdentifierBleedingAfterMenopause"):
|
|
282
289
|
case hashString("HKCategoryTypeIdentifierBleedingAfterPregnancy"):
|
|
283
290
|
case hashString("HKCategoryTypeIdentifierBleedingDuringPregnancy"):
|
|
284
291
|
case hashString("HKCategoryTypeIdentifierBloating"):
|
|
@@ -312,6 +319,7 @@ namespace margelo::nitro {
|
|
|
312
319
|
case hashString("HKCategoryTypeIdentifierLowCardioFitnessEvent"):
|
|
313
320
|
case hashString("HKCategoryTypeIdentifierLowerBackPain"):
|
|
314
321
|
case hashString("HKCategoryTypeIdentifierMemoryLapse"):
|
|
322
|
+
case hashString("HKCategoryTypeIdentifierMenopausalState"):
|
|
315
323
|
case hashString("HKCategoryTypeIdentifierMenstrualFlow"):
|
|
316
324
|
case hashString("HKCategoryTypeIdentifierMindfulSession"):
|
|
317
325
|
case hashString("HKCategoryTypeIdentifierMoodChanges"):
|