@kingstinct/react-native-healthkit 11.1.0 → 11.1.1
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/ios/ElectrocardiogramModule.swift +3 -1
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.cpp +54 -54
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.hpp +85 -78
- package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.hpp +1 -1
- package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.hpp +1 -1
- package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.hpp +1 -1
- package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.hpp +2 -2
- package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.hpp +1 -2
- package/nitrogen/generated/ios/c++/HybridWorkoutsModuleSpecSwift.hpp +4 -4
- package/nitrogen/generated/ios/swift/CategorySample.swift +2 -16
- package/nitrogen/generated/ios/swift/CategorySampleForSaving.swift +1 -8
- package/nitrogen/generated/ios/swift/ElectrocardiogramSample.swift +2 -16
- package/nitrogen/generated/ios/swift/Func_void_std__optional_QueryStatisticsResponse_.swift +1 -8
- package/nitrogen/generated/ios/swift/Func_void_std__optional_WorkoutPlan_.swift +1 -8
- package/nitrogen/generated/ios/swift/HeartbeatSeriesSample.swift +2 -16
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec_cxx.swift +1 -8
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec_cxx.swift +33 -5
- package/nitrogen/generated/ios/swift/HybridElectrocardiogramModuleSpec_cxx.swift +1 -8
- package/nitrogen/generated/ios/swift/HybridHeartbeatSeriesModuleSpec_cxx.swift +1 -8
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec_cxx.swift +11 -24
- package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec_cxx.swift +10 -9
- package/nitrogen/generated/ios/swift/QuantitySample.swift +2 -16
- package/nitrogen/generated/ios/swift/QuantitySampleForSaving.swift +1 -8
- package/nitrogen/generated/ios/swift/QueryStatisticsResponse.swift +7 -56
- package/nitrogen/generated/ios/swift/StateOfMindSample.swift +23 -45
- package/nitrogen/generated/ios/swift/WorkoutSample.swift +2 -16
- package/nitrogen/generated/shared/c++/CategorySample.hpp +8 -0
- package/nitrogen/generated/shared/c++/CategorySampleForSaving.hpp +8 -0
- package/nitrogen/generated/shared/c++/CategorySamplesWithAnchorResponse.hpp +8 -0
- package/nitrogen/generated/shared/c++/CorrelationSample.hpp +8 -0
- package/nitrogen/generated/shared/c++/DeletedSample.hpp +8 -0
- package/nitrogen/generated/shared/c++/Device.hpp +8 -0
- package/nitrogen/generated/shared/c++/ECGQueryOptionsWithAnchor.hpp +8 -0
- package/nitrogen/generated/shared/c++/ECGQueryOptionsWithSortOrder.hpp +8 -0
- package/nitrogen/generated/shared/c++/ElectrocardiogramSample.hpp +8 -0
- package/nitrogen/generated/shared/c++/ElectrocardiogramSamplesWithAnchorResponse.hpp +8 -0
- package/nitrogen/generated/shared/c++/ElectrocardiogramVoltage.hpp +8 -0
- package/nitrogen/generated/shared/c++/FilterForSamplesAnd.hpp +8 -0
- package/nitrogen/generated/shared/c++/FilterForSamplesOr.hpp +8 -0
- package/nitrogen/generated/shared/c++/Heartbeat.hpp +8 -0
- package/nitrogen/generated/shared/c++/HeartbeatSeriesSample.hpp +8 -0
- package/nitrogen/generated/shared/c++/HeartbeatSeriesSamplesWithAnchorResponse.hpp +8 -0
- package/nitrogen/generated/shared/c++/IdentifierWithUnit.hpp +8 -0
- package/nitrogen/generated/shared/c++/IntervalComponents.hpp +8 -0
- package/nitrogen/generated/shared/c++/LocationForSaving.hpp +8 -0
- package/nitrogen/generated/shared/c++/OnChangeCallbackArgs.hpp +8 -0
- package/nitrogen/generated/shared/c++/PredicateForWorkoutsAnd.hpp +8 -0
- package/nitrogen/generated/shared/c++/PredicateForWorkoutsOr.hpp +8 -0
- package/nitrogen/generated/shared/c++/PredicateFromWorkout.hpp +8 -0
- package/nitrogen/generated/shared/c++/PredicateWithMetadataKey.hpp +8 -0
- package/nitrogen/generated/shared/c++/PredicateWithStartAndEnd.hpp +8 -0
- package/nitrogen/generated/shared/c++/PredicateWithUUID.hpp +8 -0
- package/nitrogen/generated/shared/c++/PredicateWithUUIDs.hpp +8 -0
- package/nitrogen/generated/shared/c++/Quantity.hpp +8 -0
- package/nitrogen/generated/shared/c++/QuantityDateInterval.hpp +8 -0
- package/nitrogen/generated/shared/c++/QuantitySample.hpp +8 -0
- package/nitrogen/generated/shared/c++/QuantitySampleForSaving.hpp +8 -0
- package/nitrogen/generated/shared/c++/QuantitySamplesWithAnchorResponse.hpp +8 -0
- package/nitrogen/generated/shared/c++/QueryOptionsWithAnchor.hpp +8 -0
- package/nitrogen/generated/shared/c++/QueryOptionsWithAnchorAndUnit.hpp +8 -0
- package/nitrogen/generated/shared/c++/QueryOptionsWithSortOrder.hpp +8 -0
- package/nitrogen/generated/shared/c++/QueryOptionsWithSortOrderAndUnit.hpp +8 -0
- package/nitrogen/generated/shared/c++/QueryStatisticsResponse.hpp +8 -0
- package/nitrogen/generated/shared/c++/QueryWorkoutSamplesWithAnchorResponse.hpp +8 -0
- package/nitrogen/generated/shared/c++/Source.hpp +8 -0
- package/nitrogen/generated/shared/c++/SourceRevision.hpp +8 -0
- package/nitrogen/generated/shared/c++/StateOfMindSample.hpp +8 -0
- package/nitrogen/generated/shared/c++/StatisticsQueryOptions.hpp +8 -0
- package/nitrogen/generated/shared/c++/WorkoutActivity.hpp +8 -0
- package/nitrogen/generated/shared/c++/WorkoutActivityTypePredicate.hpp +8 -0
- package/nitrogen/generated/shared/c++/WorkoutConfiguration.hpp +8 -0
- package/nitrogen/generated/shared/c++/WorkoutDurationPredicate.hpp +8 -0
- package/nitrogen/generated/shared/c++/WorkoutEvent.hpp +8 -0
- package/nitrogen/generated/shared/c++/WorkoutPlan.hpp +8 -0
- package/nitrogen/generated/shared/c++/WorkoutQueryOptions.hpp +8 -0
- package/nitrogen/generated/shared/c++/WorkoutQueryOptionsWithAnchor.hpp +8 -0
- package/nitrogen/generated/shared/c++/WorkoutRoute.hpp +8 -0
- package/nitrogen/generated/shared/c++/WorkoutRouteLocation.hpp +8 -0
- package/nitrogen/generated/shared/c++/WorkoutSample.hpp +8 -0
- package/nitrogen/generated/shared/c++/WorkoutTotals.hpp +8 -0
- package/package.json +5 -5
|
@@ -283,6 +283,7 @@ namespace ReactNativeHealthkit { class HybridWorkoutsModuleSpec_cxx; }
|
|
|
283
283
|
#include "WorkoutSample.hpp"
|
|
284
284
|
#include "WorkoutSessionLocationType.hpp"
|
|
285
285
|
#include <NitroModules/AnyMap.hpp>
|
|
286
|
+
#include <NitroModules/FastVectorCopy.hpp>
|
|
286
287
|
#include <NitroModules/Promise.hpp>
|
|
287
288
|
#include <NitroModules/PromiseHolder.hpp>
|
|
288
289
|
#include <NitroModules/Result.hpp>
|
|
@@ -331,7 +332,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
331
332
|
private:
|
|
332
333
|
std::unique_ptr<std::function<void(bool /* result */)>> _function;
|
|
333
334
|
} SWIFT_NONCOPYABLE;
|
|
334
|
-
Func_void_bool create_Func_void_bool(void*
|
|
335
|
+
Func_void_bool create_Func_void_bool(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
335
336
|
inline Func_void_bool_Wrapper wrap_Func_void_bool(Func_void_bool value) noexcept {
|
|
336
337
|
return Func_void_bool_Wrapper(std::move(value));
|
|
337
338
|
}
|
|
@@ -353,7 +354,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
353
354
|
private:
|
|
354
355
|
std::unique_ptr<std::function<void(const std::exception_ptr& /* error */)>> _function;
|
|
355
356
|
} SWIFT_NONCOPYABLE;
|
|
356
|
-
Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void*
|
|
357
|
+
Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
357
358
|
inline Func_void_std__exception_ptr_Wrapper wrap_Func_void_std__exception_ptr(Func_void_std__exception_ptr value) noexcept {
|
|
358
359
|
return Func_void_std__exception_ptr_Wrapper(std::move(value));
|
|
359
360
|
}
|
|
@@ -393,8 +394,8 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
393
394
|
* Specialized version of `std::shared_ptr<HybridSourceProxySpec>`.
|
|
394
395
|
*/
|
|
395
396
|
using std__shared_ptr_HybridSourceProxySpec_ = std::shared_ptr<HybridSourceProxySpec>;
|
|
396
|
-
std::shared_ptr<HybridSourceProxySpec> create_std__shared_ptr_HybridSourceProxySpec_(void*
|
|
397
|
-
void*
|
|
397
|
+
std::shared_ptr<HybridSourceProxySpec> create_std__shared_ptr_HybridSourceProxySpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
398
|
+
void* NON_NULL get_std__shared_ptr_HybridSourceProxySpec_(std__shared_ptr_HybridSourceProxySpec_ cppType);
|
|
398
399
|
|
|
399
400
|
// pragma MARK: std::weak_ptr<HybridSourceProxySpec>
|
|
400
401
|
using std__weak_ptr_HybridSourceProxySpec_ = std::weak_ptr<HybridSourceProxySpec>;
|
|
@@ -470,7 +471,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
470
471
|
private:
|
|
471
472
|
std::unique_ptr<std::function<void(const std::vector<CategorySample>& /* result */)>> _function;
|
|
472
473
|
} SWIFT_NONCOPYABLE;
|
|
473
|
-
Func_void_std__vector_CategorySample_ create_Func_void_std__vector_CategorySample_(void*
|
|
474
|
+
Func_void_std__vector_CategorySample_ create_Func_void_std__vector_CategorySample_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
474
475
|
inline Func_void_std__vector_CategorySample__Wrapper wrap_Func_void_std__vector_CategorySample_(Func_void_std__vector_CategorySample_ value) noexcept {
|
|
475
476
|
return Func_void_std__vector_CategorySample__Wrapper(std::move(value));
|
|
476
477
|
}
|
|
@@ -592,8 +593,8 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
592
593
|
* Specialized version of `std::shared_ptr<HybridWorkoutProxySpec>`.
|
|
593
594
|
*/
|
|
594
595
|
using std__shared_ptr_HybridWorkoutProxySpec_ = std::shared_ptr<HybridWorkoutProxySpec>;
|
|
595
|
-
std::shared_ptr<HybridWorkoutProxySpec> create_std__shared_ptr_HybridWorkoutProxySpec_(void*
|
|
596
|
-
void*
|
|
596
|
+
std::shared_ptr<HybridWorkoutProxySpec> create_std__shared_ptr_HybridWorkoutProxySpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
597
|
+
void* NON_NULL get_std__shared_ptr_HybridWorkoutProxySpec_(std__shared_ptr_HybridWorkoutProxySpec_ cppType);
|
|
597
598
|
|
|
598
599
|
// pragma MARK: std::weak_ptr<HybridWorkoutProxySpec>
|
|
599
600
|
using std__weak_ptr_HybridWorkoutProxySpec_ = std::weak_ptr<HybridWorkoutProxySpec>;
|
|
@@ -816,7 +817,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
816
817
|
private:
|
|
817
818
|
std::unique_ptr<std::function<void(const CategorySamplesWithAnchorResponse& /* result */)>> _function;
|
|
818
819
|
} SWIFT_NONCOPYABLE;
|
|
819
|
-
Func_void_CategorySamplesWithAnchorResponse create_Func_void_CategorySamplesWithAnchorResponse(void*
|
|
820
|
+
Func_void_CategorySamplesWithAnchorResponse create_Func_void_CategorySamplesWithAnchorResponse(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
820
821
|
inline Func_void_CategorySamplesWithAnchorResponse_Wrapper wrap_Func_void_CategorySamplesWithAnchorResponse(Func_void_CategorySamplesWithAnchorResponse value) noexcept {
|
|
821
822
|
return Func_void_CategorySamplesWithAnchorResponse_Wrapper(std::move(value));
|
|
822
823
|
}
|
|
@@ -826,8 +827,8 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
826
827
|
* Specialized version of `std::shared_ptr<HybridCategoryTypeModuleSpec>`.
|
|
827
828
|
*/
|
|
828
829
|
using std__shared_ptr_HybridCategoryTypeModuleSpec_ = std::shared_ptr<HybridCategoryTypeModuleSpec>;
|
|
829
|
-
std::shared_ptr<HybridCategoryTypeModuleSpec> create_std__shared_ptr_HybridCategoryTypeModuleSpec_(void*
|
|
830
|
-
void*
|
|
830
|
+
std::shared_ptr<HybridCategoryTypeModuleSpec> create_std__shared_ptr_HybridCategoryTypeModuleSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
831
|
+
void* NON_NULL get_std__shared_ptr_HybridCategoryTypeModuleSpec_(std__shared_ptr_HybridCategoryTypeModuleSpec_ cppType);
|
|
831
832
|
|
|
832
833
|
// pragma MARK: std::weak_ptr<HybridCategoryTypeModuleSpec>
|
|
833
834
|
using std__weak_ptr_HybridCategoryTypeModuleSpec_ = std::weak_ptr<HybridCategoryTypeModuleSpec>;
|
|
@@ -889,7 +890,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
889
890
|
private:
|
|
890
891
|
std::unique_ptr<std::function<void(BloodType /* result */)>> _function;
|
|
891
892
|
} SWIFT_NONCOPYABLE;
|
|
892
|
-
Func_void_BloodType create_Func_void_BloodType(void*
|
|
893
|
+
Func_void_BloodType create_Func_void_BloodType(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
893
894
|
inline Func_void_BloodType_Wrapper wrap_Func_void_BloodType(Func_void_BloodType value) noexcept {
|
|
894
895
|
return Func_void_BloodType_Wrapper(std::move(value));
|
|
895
896
|
}
|
|
@@ -923,7 +924,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
923
924
|
private:
|
|
924
925
|
std::unique_ptr<std::function<void(std::optional<std::chrono::system_clock::time_point> /* result */)>> _function;
|
|
925
926
|
} SWIFT_NONCOPYABLE;
|
|
926
|
-
Func_void_std__optional_std__chrono__system_clock__time_point_ create_Func_void_std__optional_std__chrono__system_clock__time_point_(void*
|
|
927
|
+
Func_void_std__optional_std__chrono__system_clock__time_point_ create_Func_void_std__optional_std__chrono__system_clock__time_point_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
927
928
|
inline Func_void_std__optional_std__chrono__system_clock__time_point__Wrapper wrap_Func_void_std__optional_std__chrono__system_clock__time_point_(Func_void_std__optional_std__chrono__system_clock__time_point_ value) noexcept {
|
|
928
929
|
return Func_void_std__optional_std__chrono__system_clock__time_point__Wrapper(std::move(value));
|
|
929
930
|
}
|
|
@@ -957,7 +958,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
957
958
|
private:
|
|
958
959
|
std::unique_ptr<std::function<void(BiologicalSex /* result */)>> _function;
|
|
959
960
|
} SWIFT_NONCOPYABLE;
|
|
960
|
-
Func_void_BiologicalSex create_Func_void_BiologicalSex(void*
|
|
961
|
+
Func_void_BiologicalSex create_Func_void_BiologicalSex(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
961
962
|
inline Func_void_BiologicalSex_Wrapper wrap_Func_void_BiologicalSex(Func_void_BiologicalSex value) noexcept {
|
|
962
963
|
return Func_void_BiologicalSex_Wrapper(std::move(value));
|
|
963
964
|
}
|
|
@@ -991,7 +992,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
991
992
|
private:
|
|
992
993
|
std::unique_ptr<std::function<void(FitzpatrickSkinType /* result */)>> _function;
|
|
993
994
|
} SWIFT_NONCOPYABLE;
|
|
994
|
-
Func_void_FitzpatrickSkinType create_Func_void_FitzpatrickSkinType(void*
|
|
995
|
+
Func_void_FitzpatrickSkinType create_Func_void_FitzpatrickSkinType(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
995
996
|
inline Func_void_FitzpatrickSkinType_Wrapper wrap_Func_void_FitzpatrickSkinType(Func_void_FitzpatrickSkinType value) noexcept {
|
|
996
997
|
return Func_void_FitzpatrickSkinType_Wrapper(std::move(value));
|
|
997
998
|
}
|
|
@@ -1025,7 +1026,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1025
1026
|
private:
|
|
1026
1027
|
std::unique_ptr<std::function<void(WheelchairUse /* result */)>> _function;
|
|
1027
1028
|
} SWIFT_NONCOPYABLE;
|
|
1028
|
-
Func_void_WheelchairUse create_Func_void_WheelchairUse(void*
|
|
1029
|
+
Func_void_WheelchairUse create_Func_void_WheelchairUse(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1029
1030
|
inline Func_void_WheelchairUse_Wrapper wrap_Func_void_WheelchairUse(Func_void_WheelchairUse value) noexcept {
|
|
1030
1031
|
return Func_void_WheelchairUse_Wrapper(std::move(value));
|
|
1031
1032
|
}
|
|
@@ -1035,8 +1036,8 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1035
1036
|
* Specialized version of `std::shared_ptr<HybridCharacteristicTypeModuleSpec>`.
|
|
1036
1037
|
*/
|
|
1037
1038
|
using std__shared_ptr_HybridCharacteristicTypeModuleSpec_ = std::shared_ptr<HybridCharacteristicTypeModuleSpec>;
|
|
1038
|
-
std::shared_ptr<HybridCharacteristicTypeModuleSpec> create_std__shared_ptr_HybridCharacteristicTypeModuleSpec_(void*
|
|
1039
|
-
void*
|
|
1039
|
+
std::shared_ptr<HybridCharacteristicTypeModuleSpec> create_std__shared_ptr_HybridCharacteristicTypeModuleSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
1040
|
+
void* NON_NULL get_std__shared_ptr_HybridCharacteristicTypeModuleSpec_(std__shared_ptr_HybridCharacteristicTypeModuleSpec_ cppType);
|
|
1040
1041
|
|
|
1041
1042
|
// pragma MARK: std::weak_ptr<HybridCharacteristicTypeModuleSpec>
|
|
1042
1043
|
using std__weak_ptr_HybridCharacteristicTypeModuleSpec_ = std::weak_ptr<HybridCharacteristicTypeModuleSpec>;
|
|
@@ -1172,7 +1173,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1172
1173
|
private:
|
|
1173
1174
|
std::unique_ptr<std::function<void(const std::vector<IdentifierWithUnit>& /* result */)>> _function;
|
|
1174
1175
|
} SWIFT_NONCOPYABLE;
|
|
1175
|
-
Func_void_std__vector_IdentifierWithUnit_ create_Func_void_std__vector_IdentifierWithUnit_(void*
|
|
1176
|
+
Func_void_std__vector_IdentifierWithUnit_ create_Func_void_std__vector_IdentifierWithUnit_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1176
1177
|
inline Func_void_std__vector_IdentifierWithUnit__Wrapper wrap_Func_void_std__vector_IdentifierWithUnit_(Func_void_std__vector_IdentifierWithUnit_ value) noexcept {
|
|
1177
1178
|
return Func_void_std__vector_IdentifierWithUnit__Wrapper(std::move(value));
|
|
1178
1179
|
}
|
|
@@ -1182,10 +1183,11 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1182
1183
|
* Specialized version of `std::vector<QuantityTypeIdentifier>`.
|
|
1183
1184
|
*/
|
|
1184
1185
|
using std__vector_QuantityTypeIdentifier_ = std::vector<QuantityTypeIdentifier>;
|
|
1185
|
-
inline std::vector<QuantityTypeIdentifier>
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1186
|
+
inline std::vector<QuantityTypeIdentifier> copy_std__vector_QuantityTypeIdentifier_(const QuantityTypeIdentifier* CONTIGUOUS_MEMORY NON_NULL data, size_t size) noexcept {
|
|
1187
|
+
return margelo::nitro::FastVectorCopy<QuantityTypeIdentifier>(data, size);
|
|
1188
|
+
}
|
|
1189
|
+
inline const QuantityTypeIdentifier* CONTIGUOUS_MEMORY NON_NULL get_data_std__vector_QuantityTypeIdentifier_(const std::vector<QuantityTypeIdentifier>& vector) noexcept {
|
|
1190
|
+
return vector.data();
|
|
1189
1191
|
}
|
|
1190
1192
|
|
|
1191
1193
|
// pragma MARK: std::vector<std::shared_ptr<HybridSourceProxySpec>>
|
|
@@ -1228,7 +1230,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1228
1230
|
private:
|
|
1229
1231
|
std::unique_ptr<std::function<void(const std::vector<std::shared_ptr<HybridSourceProxySpec>>& /* result */)>> _function;
|
|
1230
1232
|
} SWIFT_NONCOPYABLE;
|
|
1231
|
-
Func_void_std__vector_std__shared_ptr_HybridSourceProxySpec__ create_Func_void_std__vector_std__shared_ptr_HybridSourceProxySpec__(void*
|
|
1233
|
+
Func_void_std__vector_std__shared_ptr_HybridSourceProxySpec__ create_Func_void_std__vector_std__shared_ptr_HybridSourceProxySpec__(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1232
1234
|
inline Func_void_std__vector_std__shared_ptr_HybridSourceProxySpec___Wrapper wrap_Func_void_std__vector_std__shared_ptr_HybridSourceProxySpec__(Func_void_std__vector_std__shared_ptr_HybridSourceProxySpec__ value) noexcept {
|
|
1233
1235
|
return Func_void_std__vector_std__shared_ptr_HybridSourceProxySpec___Wrapper(std::move(value));
|
|
1234
1236
|
}
|
|
@@ -1250,7 +1252,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1250
1252
|
private:
|
|
1251
1253
|
std::unique_ptr<std::function<void(const OnChangeCallbackArgs& /* args */)>> _function;
|
|
1252
1254
|
} SWIFT_NONCOPYABLE;
|
|
1253
|
-
Func_void_OnChangeCallbackArgs create_Func_void_OnChangeCallbackArgs(void*
|
|
1255
|
+
Func_void_OnChangeCallbackArgs create_Func_void_OnChangeCallbackArgs(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1254
1256
|
inline Func_void_OnChangeCallbackArgs_Wrapper wrap_Func_void_OnChangeCallbackArgs(Func_void_OnChangeCallbackArgs value) noexcept {
|
|
1255
1257
|
return Func_void_OnChangeCallbackArgs_Wrapper(std::move(value));
|
|
1256
1258
|
}
|
|
@@ -1284,7 +1286,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1284
1286
|
private:
|
|
1285
1287
|
std::unique_ptr<std::function<void(double /* result */)>> _function;
|
|
1286
1288
|
} SWIFT_NONCOPYABLE;
|
|
1287
|
-
Func_void_double create_Func_void_double(void*
|
|
1289
|
+
Func_void_double create_Func_void_double(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1288
1290
|
inline Func_void_double_Wrapper wrap_Func_void_double(Func_void_double value) noexcept {
|
|
1289
1291
|
return Func_void_double_Wrapper(std::move(value));
|
|
1290
1292
|
}
|
|
@@ -1318,7 +1320,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1318
1320
|
private:
|
|
1319
1321
|
std::unique_ptr<std::function<void(AuthorizationRequestStatus /* result */)>> _function;
|
|
1320
1322
|
} SWIFT_NONCOPYABLE;
|
|
1321
|
-
Func_void_AuthorizationRequestStatus create_Func_void_AuthorizationRequestStatus(void*
|
|
1323
|
+
Func_void_AuthorizationRequestStatus create_Func_void_AuthorizationRequestStatus(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1322
1324
|
inline Func_void_AuthorizationRequestStatus_Wrapper wrap_Func_void_AuthorizationRequestStatus(Func_void_AuthorizationRequestStatus value) noexcept {
|
|
1323
1325
|
return Func_void_AuthorizationRequestStatus_Wrapper(std::move(value));
|
|
1324
1326
|
}
|
|
@@ -1328,10 +1330,11 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1328
1330
|
* Specialized version of `std::vector<SampleTypeIdentifierWriteable>`.
|
|
1329
1331
|
*/
|
|
1330
1332
|
using std__vector_SampleTypeIdentifierWriteable_ = std::vector<SampleTypeIdentifierWriteable>;
|
|
1331
|
-
inline std::vector<SampleTypeIdentifierWriteable>
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1333
|
+
inline std::vector<SampleTypeIdentifierWriteable> copy_std__vector_SampleTypeIdentifierWriteable_(const SampleTypeIdentifierWriteable* CONTIGUOUS_MEMORY NON_NULL data, size_t size) noexcept {
|
|
1334
|
+
return margelo::nitro::FastVectorCopy<SampleTypeIdentifierWriteable>(data, size);
|
|
1335
|
+
}
|
|
1336
|
+
inline const SampleTypeIdentifierWriteable* CONTIGUOUS_MEMORY NON_NULL get_data_std__vector_SampleTypeIdentifierWriteable_(const std::vector<SampleTypeIdentifierWriteable>& vector) noexcept {
|
|
1337
|
+
return vector.data();
|
|
1335
1338
|
}
|
|
1336
1339
|
|
|
1337
1340
|
// pragma MARK: std::vector<ObjectTypeIdentifier>
|
|
@@ -1339,10 +1342,11 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1339
1342
|
* Specialized version of `std::vector<ObjectTypeIdentifier>`.
|
|
1340
1343
|
*/
|
|
1341
1344
|
using std__vector_ObjectTypeIdentifier_ = std::vector<ObjectTypeIdentifier>;
|
|
1342
|
-
inline std::vector<ObjectTypeIdentifier>
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1345
|
+
inline std::vector<ObjectTypeIdentifier> copy_std__vector_ObjectTypeIdentifier_(const ObjectTypeIdentifier* CONTIGUOUS_MEMORY NON_NULL data, size_t size) noexcept {
|
|
1346
|
+
return margelo::nitro::FastVectorCopy<ObjectTypeIdentifier>(data, size);
|
|
1347
|
+
}
|
|
1348
|
+
inline const ObjectTypeIdentifier* CONTIGUOUS_MEMORY NON_NULL get_data_std__vector_ObjectTypeIdentifier_(const std::vector<ObjectTypeIdentifier>& vector) noexcept {
|
|
1349
|
+
return vector.data();
|
|
1346
1350
|
}
|
|
1347
1351
|
|
|
1348
1352
|
// pragma MARK: std::unordered_map<std::string, bool>
|
|
@@ -1399,7 +1403,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1399
1403
|
private:
|
|
1400
1404
|
std::unique_ptr<std::function<void(const std::unordered_map<std::string, bool>& /* result */)>> _function;
|
|
1401
1405
|
} SWIFT_NONCOPYABLE;
|
|
1402
|
-
Func_void_std__unordered_map_std__string__bool_ create_Func_void_std__unordered_map_std__string__bool_(void*
|
|
1406
|
+
Func_void_std__unordered_map_std__string__bool_ create_Func_void_std__unordered_map_std__string__bool_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1403
1407
|
inline Func_void_std__unordered_map_std__string__bool__Wrapper wrap_Func_void_std__unordered_map_std__string__bool_(Func_void_std__unordered_map_std__string__bool_ value) noexcept {
|
|
1404
1408
|
return Func_void_std__unordered_map_std__string__bool__Wrapper(std::move(value));
|
|
1405
1409
|
}
|
|
@@ -1409,8 +1413,8 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1409
1413
|
* Specialized version of `std::shared_ptr<HybridCoreModuleSpec>`.
|
|
1410
1414
|
*/
|
|
1411
1415
|
using std__shared_ptr_HybridCoreModuleSpec_ = std::shared_ptr<HybridCoreModuleSpec>;
|
|
1412
|
-
std::shared_ptr<HybridCoreModuleSpec> create_std__shared_ptr_HybridCoreModuleSpec_(void*
|
|
1413
|
-
void*
|
|
1416
|
+
std::shared_ptr<HybridCoreModuleSpec> create_std__shared_ptr_HybridCoreModuleSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
1417
|
+
void* NON_NULL get_std__shared_ptr_HybridCoreModuleSpec_(std__shared_ptr_HybridCoreModuleSpec_ cppType);
|
|
1414
1418
|
|
|
1415
1419
|
// pragma MARK: std::weak_ptr<HybridCoreModuleSpec>
|
|
1416
1420
|
using std__weak_ptr_HybridCoreModuleSpec_ = std::weak_ptr<HybridCoreModuleSpec>;
|
|
@@ -1626,7 +1630,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1626
1630
|
private:
|
|
1627
1631
|
std::unique_ptr<std::function<void(const std::vector<CorrelationSample>& /* result */)>> _function;
|
|
1628
1632
|
} SWIFT_NONCOPYABLE;
|
|
1629
|
-
Func_void_std__vector_CorrelationSample_ create_Func_void_std__vector_CorrelationSample_(void*
|
|
1633
|
+
Func_void_std__vector_CorrelationSample_ create_Func_void_std__vector_CorrelationSample_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1630
1634
|
inline Func_void_std__vector_CorrelationSample__Wrapper wrap_Func_void_std__vector_CorrelationSample_(Func_void_std__vector_CorrelationSample_ value) noexcept {
|
|
1631
1635
|
return Func_void_std__vector_CorrelationSample__Wrapper(std::move(value));
|
|
1632
1636
|
}
|
|
@@ -1636,8 +1640,8 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1636
1640
|
* Specialized version of `std::shared_ptr<HybridCorrelationTypeModuleSpec>`.
|
|
1637
1641
|
*/
|
|
1638
1642
|
using std__shared_ptr_HybridCorrelationTypeModuleSpec_ = std::shared_ptr<HybridCorrelationTypeModuleSpec>;
|
|
1639
|
-
std::shared_ptr<HybridCorrelationTypeModuleSpec> create_std__shared_ptr_HybridCorrelationTypeModuleSpec_(void*
|
|
1640
|
-
void*
|
|
1643
|
+
std::shared_ptr<HybridCorrelationTypeModuleSpec> create_std__shared_ptr_HybridCorrelationTypeModuleSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
1644
|
+
void* NON_NULL get_std__shared_ptr_HybridCorrelationTypeModuleSpec_(std__shared_ptr_HybridCorrelationTypeModuleSpec_ cppType);
|
|
1641
1645
|
|
|
1642
1646
|
// pragma MARK: std::weak_ptr<HybridCorrelationTypeModuleSpec>
|
|
1643
1647
|
using std__weak_ptr_HybridCorrelationTypeModuleSpec_ = std::weak_ptr<HybridCorrelationTypeModuleSpec>;
|
|
@@ -1718,7 +1722,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1718
1722
|
private:
|
|
1719
1723
|
std::unique_ptr<std::function<void(const std::vector<ElectrocardiogramSample>& /* result */)>> _function;
|
|
1720
1724
|
} SWIFT_NONCOPYABLE;
|
|
1721
|
-
Func_void_std__vector_ElectrocardiogramSample_ create_Func_void_std__vector_ElectrocardiogramSample_(void*
|
|
1725
|
+
Func_void_std__vector_ElectrocardiogramSample_ create_Func_void_std__vector_ElectrocardiogramSample_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1722
1726
|
inline Func_void_std__vector_ElectrocardiogramSample__Wrapper wrap_Func_void_std__vector_ElectrocardiogramSample_(Func_void_std__vector_ElectrocardiogramSample_ value) noexcept {
|
|
1723
1727
|
return Func_void_std__vector_ElectrocardiogramSample__Wrapper(std::move(value));
|
|
1724
1728
|
}
|
|
@@ -1767,7 +1771,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1767
1771
|
private:
|
|
1768
1772
|
std::unique_ptr<std::function<void(const ElectrocardiogramSamplesWithAnchorResponse& /* result */)>> _function;
|
|
1769
1773
|
} SWIFT_NONCOPYABLE;
|
|
1770
|
-
Func_void_ElectrocardiogramSamplesWithAnchorResponse create_Func_void_ElectrocardiogramSamplesWithAnchorResponse(void*
|
|
1774
|
+
Func_void_ElectrocardiogramSamplesWithAnchorResponse create_Func_void_ElectrocardiogramSamplesWithAnchorResponse(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1771
1775
|
inline Func_void_ElectrocardiogramSamplesWithAnchorResponse_Wrapper wrap_Func_void_ElectrocardiogramSamplesWithAnchorResponse(Func_void_ElectrocardiogramSamplesWithAnchorResponse value) noexcept {
|
|
1772
1776
|
return Func_void_ElectrocardiogramSamplesWithAnchorResponse_Wrapper(std::move(value));
|
|
1773
1777
|
}
|
|
@@ -1777,8 +1781,8 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1777
1781
|
* Specialized version of `std::shared_ptr<HybridElectrocardiogramModuleSpec>`.
|
|
1778
1782
|
*/
|
|
1779
1783
|
using std__shared_ptr_HybridElectrocardiogramModuleSpec_ = std::shared_ptr<HybridElectrocardiogramModuleSpec>;
|
|
1780
|
-
std::shared_ptr<HybridElectrocardiogramModuleSpec> create_std__shared_ptr_HybridElectrocardiogramModuleSpec_(void*
|
|
1781
|
-
void*
|
|
1784
|
+
std::shared_ptr<HybridElectrocardiogramModuleSpec> create_std__shared_ptr_HybridElectrocardiogramModuleSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
1785
|
+
void* NON_NULL get_std__shared_ptr_HybridElectrocardiogramModuleSpec_(std__shared_ptr_HybridElectrocardiogramModuleSpec_ cppType);
|
|
1782
1786
|
|
|
1783
1787
|
// pragma MARK: std::weak_ptr<HybridElectrocardiogramModuleSpec>
|
|
1784
1788
|
using std__weak_ptr_HybridElectrocardiogramModuleSpec_ = std::weak_ptr<HybridElectrocardiogramModuleSpec>;
|
|
@@ -1853,7 +1857,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1853
1857
|
private:
|
|
1854
1858
|
std::unique_ptr<std::function<void(const std::vector<HeartbeatSeriesSample>& /* result */)>> _function;
|
|
1855
1859
|
} SWIFT_NONCOPYABLE;
|
|
1856
|
-
Func_void_std__vector_HeartbeatSeriesSample_ create_Func_void_std__vector_HeartbeatSeriesSample_(void*
|
|
1860
|
+
Func_void_std__vector_HeartbeatSeriesSample_ create_Func_void_std__vector_HeartbeatSeriesSample_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1857
1861
|
inline Func_void_std__vector_HeartbeatSeriesSample__Wrapper wrap_Func_void_std__vector_HeartbeatSeriesSample_(Func_void_std__vector_HeartbeatSeriesSample_ value) noexcept {
|
|
1858
1862
|
return Func_void_std__vector_HeartbeatSeriesSample__Wrapper(std::move(value));
|
|
1859
1863
|
}
|
|
@@ -1887,7 +1891,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1887
1891
|
private:
|
|
1888
1892
|
std::unique_ptr<std::function<void(const HeartbeatSeriesSamplesWithAnchorResponse& /* result */)>> _function;
|
|
1889
1893
|
} SWIFT_NONCOPYABLE;
|
|
1890
|
-
Func_void_HeartbeatSeriesSamplesWithAnchorResponse create_Func_void_HeartbeatSeriesSamplesWithAnchorResponse(void*
|
|
1894
|
+
Func_void_HeartbeatSeriesSamplesWithAnchorResponse create_Func_void_HeartbeatSeriesSamplesWithAnchorResponse(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1891
1895
|
inline Func_void_HeartbeatSeriesSamplesWithAnchorResponse_Wrapper wrap_Func_void_HeartbeatSeriesSamplesWithAnchorResponse(Func_void_HeartbeatSeriesSamplesWithAnchorResponse value) noexcept {
|
|
1892
1896
|
return Func_void_HeartbeatSeriesSamplesWithAnchorResponse_Wrapper(std::move(value));
|
|
1893
1897
|
}
|
|
@@ -1897,8 +1901,8 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1897
1901
|
* Specialized version of `std::shared_ptr<HybridHeartbeatSeriesModuleSpec>`.
|
|
1898
1902
|
*/
|
|
1899
1903
|
using std__shared_ptr_HybridHeartbeatSeriesModuleSpec_ = std::shared_ptr<HybridHeartbeatSeriesModuleSpec>;
|
|
1900
|
-
std::shared_ptr<HybridHeartbeatSeriesModuleSpec> create_std__shared_ptr_HybridHeartbeatSeriesModuleSpec_(void*
|
|
1901
|
-
void*
|
|
1904
|
+
std::shared_ptr<HybridHeartbeatSeriesModuleSpec> create_std__shared_ptr_HybridHeartbeatSeriesModuleSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
1905
|
+
void* NON_NULL get_std__shared_ptr_HybridHeartbeatSeriesModuleSpec_(std__shared_ptr_HybridHeartbeatSeriesModuleSpec_ cppType);
|
|
1902
1906
|
|
|
1903
1907
|
// pragma MARK: std::weak_ptr<HybridHeartbeatSeriesModuleSpec>
|
|
1904
1908
|
using std__weak_ptr_HybridHeartbeatSeriesModuleSpec_ = std::weak_ptr<HybridHeartbeatSeriesModuleSpec>;
|
|
@@ -1962,7 +1966,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1962
1966
|
private:
|
|
1963
1967
|
std::unique_ptr<std::function<void(const std::vector<QuantitySample>& /* result */)>> _function;
|
|
1964
1968
|
} SWIFT_NONCOPYABLE;
|
|
1965
|
-
Func_void_std__vector_QuantitySample_ create_Func_void_std__vector_QuantitySample_(void*
|
|
1969
|
+
Func_void_std__vector_QuantitySample_ create_Func_void_std__vector_QuantitySample_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1966
1970
|
inline Func_void_std__vector_QuantitySample__Wrapper wrap_Func_void_std__vector_QuantitySample_(Func_void_std__vector_QuantitySample_ value) noexcept {
|
|
1967
1971
|
return Func_void_std__vector_QuantitySample__Wrapper(std::move(value));
|
|
1968
1972
|
}
|
|
@@ -2041,7 +2045,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
2041
2045
|
private:
|
|
2042
2046
|
std::unique_ptr<std::function<void(const QueryStatisticsResponse& /* result */)>> _function;
|
|
2043
2047
|
} SWIFT_NONCOPYABLE;
|
|
2044
|
-
Func_void_QueryStatisticsResponse create_Func_void_QueryStatisticsResponse(void*
|
|
2048
|
+
Func_void_QueryStatisticsResponse create_Func_void_QueryStatisticsResponse(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
2045
2049
|
inline Func_void_QueryStatisticsResponse_Wrapper wrap_Func_void_QueryStatisticsResponse(Func_void_QueryStatisticsResponse value) noexcept {
|
|
2046
2050
|
return Func_void_QueryStatisticsResponse_Wrapper(std::move(value));
|
|
2047
2051
|
}
|
|
@@ -2051,10 +2055,11 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
2051
2055
|
* Specialized version of `std::vector<StatisticsOptions>`.
|
|
2052
2056
|
*/
|
|
2053
2057
|
using std__vector_StatisticsOptions_ = std::vector<StatisticsOptions>;
|
|
2054
|
-
inline std::vector<StatisticsOptions>
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
+
inline std::vector<StatisticsOptions> copy_std__vector_StatisticsOptions_(const StatisticsOptions* CONTIGUOUS_MEMORY NON_NULL data, size_t size) noexcept {
|
|
2059
|
+
return margelo::nitro::FastVectorCopy<StatisticsOptions>(data, size);
|
|
2060
|
+
}
|
|
2061
|
+
inline const StatisticsOptions* CONTIGUOUS_MEMORY NON_NULL get_data_std__vector_StatisticsOptions_(const std::vector<StatisticsOptions>& vector) noexcept {
|
|
2062
|
+
return vector.data();
|
|
2058
2063
|
}
|
|
2059
2064
|
|
|
2060
2065
|
// pragma MARK: std::optional<StatisticsQueryOptions>
|
|
@@ -2112,7 +2117,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
2112
2117
|
private:
|
|
2113
2118
|
std::unique_ptr<std::function<void(const std::vector<QueryStatisticsResponse>& /* result */)>> _function;
|
|
2114
2119
|
} SWIFT_NONCOPYABLE;
|
|
2115
|
-
Func_void_std__vector_QueryStatisticsResponse_ create_Func_void_std__vector_QueryStatisticsResponse_(void*
|
|
2120
|
+
Func_void_std__vector_QueryStatisticsResponse_ create_Func_void_std__vector_QueryStatisticsResponse_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
2116
2121
|
inline Func_void_std__vector_QueryStatisticsResponse__Wrapper wrap_Func_void_std__vector_QueryStatisticsResponse_(Func_void_std__vector_QueryStatisticsResponse_ value) noexcept {
|
|
2117
2122
|
return Func_void_std__vector_QueryStatisticsResponse__Wrapper(std::move(value));
|
|
2118
2123
|
}
|
|
@@ -2146,7 +2151,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
2146
2151
|
private:
|
|
2147
2152
|
std::unique_ptr<std::function<void(const QuantitySamplesWithAnchorResponse& /* result */)>> _function;
|
|
2148
2153
|
} SWIFT_NONCOPYABLE;
|
|
2149
|
-
Func_void_QuantitySamplesWithAnchorResponse create_Func_void_QuantitySamplesWithAnchorResponse(void*
|
|
2154
|
+
Func_void_QuantitySamplesWithAnchorResponse create_Func_void_QuantitySamplesWithAnchorResponse(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
2150
2155
|
inline Func_void_QuantitySamplesWithAnchorResponse_Wrapper wrap_Func_void_QuantitySamplesWithAnchorResponse(Func_void_QuantitySamplesWithAnchorResponse value) noexcept {
|
|
2151
2156
|
return Func_void_QuantitySamplesWithAnchorResponse_Wrapper(std::move(value));
|
|
2152
2157
|
}
|
|
@@ -2156,8 +2161,8 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
2156
2161
|
* Specialized version of `std::shared_ptr<HybridQuantityTypeModuleSpec>`.
|
|
2157
2162
|
*/
|
|
2158
2163
|
using std__shared_ptr_HybridQuantityTypeModuleSpec_ = std::shared_ptr<HybridQuantityTypeModuleSpec>;
|
|
2159
|
-
std::shared_ptr<HybridQuantityTypeModuleSpec> create_std__shared_ptr_HybridQuantityTypeModuleSpec_(void*
|
|
2160
|
-
void*
|
|
2164
|
+
std::shared_ptr<HybridQuantityTypeModuleSpec> create_std__shared_ptr_HybridQuantityTypeModuleSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
2165
|
+
void* NON_NULL get_std__shared_ptr_HybridQuantityTypeModuleSpec_(std__shared_ptr_HybridQuantityTypeModuleSpec_ cppType);
|
|
2161
2166
|
|
|
2162
2167
|
// pragma MARK: std::weak_ptr<HybridQuantityTypeModuleSpec>
|
|
2163
2168
|
using std__weak_ptr_HybridQuantityTypeModuleSpec_ = std::weak_ptr<HybridQuantityTypeModuleSpec>;
|
|
@@ -2213,10 +2218,11 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
2213
2218
|
* Specialized version of `std::vector<StateOfMindAssociation>`.
|
|
2214
2219
|
*/
|
|
2215
2220
|
using std__vector_StateOfMindAssociation_ = std::vector<StateOfMindAssociation>;
|
|
2216
|
-
inline std::vector<StateOfMindAssociation>
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2221
|
+
inline std::vector<StateOfMindAssociation> copy_std__vector_StateOfMindAssociation_(const StateOfMindAssociation* CONTIGUOUS_MEMORY NON_NULL data, size_t size) noexcept {
|
|
2222
|
+
return margelo::nitro::FastVectorCopy<StateOfMindAssociation>(data, size);
|
|
2223
|
+
}
|
|
2224
|
+
inline const StateOfMindAssociation* CONTIGUOUS_MEMORY NON_NULL get_data_std__vector_StateOfMindAssociation_(const std::vector<StateOfMindAssociation>& vector) noexcept {
|
|
2225
|
+
return vector.data();
|
|
2220
2226
|
}
|
|
2221
2227
|
|
|
2222
2228
|
// pragma MARK: std::vector<StateOfMindLabel>
|
|
@@ -2224,10 +2230,11 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
2224
2230
|
* Specialized version of `std::vector<StateOfMindLabel>`.
|
|
2225
2231
|
*/
|
|
2226
2232
|
using std__vector_StateOfMindLabel_ = std::vector<StateOfMindLabel>;
|
|
2227
|
-
inline std::vector<StateOfMindLabel>
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2233
|
+
inline std::vector<StateOfMindLabel> copy_std__vector_StateOfMindLabel_(const StateOfMindLabel* CONTIGUOUS_MEMORY NON_NULL data, size_t size) noexcept {
|
|
2234
|
+
return margelo::nitro::FastVectorCopy<StateOfMindLabel>(data, size);
|
|
2235
|
+
}
|
|
2236
|
+
inline const StateOfMindLabel* CONTIGUOUS_MEMORY NON_NULL get_data_std__vector_StateOfMindLabel_(const std::vector<StateOfMindLabel>& vector) noexcept {
|
|
2237
|
+
return vector.data();
|
|
2231
2238
|
}
|
|
2232
2239
|
|
|
2233
2240
|
// pragma MARK: std::vector<StateOfMindSample>
|
|
@@ -2270,7 +2277,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
2270
2277
|
private:
|
|
2271
2278
|
std::unique_ptr<std::function<void(const std::vector<StateOfMindSample>& /* result */)>> _function;
|
|
2272
2279
|
} SWIFT_NONCOPYABLE;
|
|
2273
|
-
Func_void_std__vector_StateOfMindSample_ create_Func_void_std__vector_StateOfMindSample_(void*
|
|
2280
|
+
Func_void_std__vector_StateOfMindSample_ create_Func_void_std__vector_StateOfMindSample_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
2274
2281
|
inline Func_void_std__vector_StateOfMindSample__Wrapper wrap_Func_void_std__vector_StateOfMindSample_(Func_void_std__vector_StateOfMindSample_ value) noexcept {
|
|
2275
2282
|
return Func_void_std__vector_StateOfMindSample__Wrapper(std::move(value));
|
|
2276
2283
|
}
|
|
@@ -2280,8 +2287,8 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
2280
2287
|
* Specialized version of `std::shared_ptr<HybridStateOfMindModuleSpec>`.
|
|
2281
2288
|
*/
|
|
2282
2289
|
using std__shared_ptr_HybridStateOfMindModuleSpec_ = std::shared_ptr<HybridStateOfMindModuleSpec>;
|
|
2283
|
-
std::shared_ptr<HybridStateOfMindModuleSpec> create_std__shared_ptr_HybridStateOfMindModuleSpec_(void*
|
|
2284
|
-
void*
|
|
2290
|
+
std::shared_ptr<HybridStateOfMindModuleSpec> create_std__shared_ptr_HybridStateOfMindModuleSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
2291
|
+
void* NON_NULL get_std__shared_ptr_HybridStateOfMindModuleSpec_(std__shared_ptr_HybridStateOfMindModuleSpec_ cppType);
|
|
2285
2292
|
|
|
2286
2293
|
// pragma MARK: std::weak_ptr<HybridStateOfMindModuleSpec>
|
|
2287
2294
|
using std__weak_ptr_HybridStateOfMindModuleSpec_ = std::weak_ptr<HybridStateOfMindModuleSpec>;
|
|
@@ -2403,7 +2410,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
2403
2410
|
private:
|
|
2404
2411
|
std::unique_ptr<std::function<void(const std::optional<WorkoutPlan>& /* result */)>> _function;
|
|
2405
2412
|
} SWIFT_NONCOPYABLE;
|
|
2406
|
-
Func_void_std__optional_WorkoutPlan_ create_Func_void_std__optional_WorkoutPlan_(void*
|
|
2413
|
+
Func_void_std__optional_WorkoutPlan_ create_Func_void_std__optional_WorkoutPlan_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
2407
2414
|
inline Func_void_std__optional_WorkoutPlan__Wrapper wrap_Func_void_std__optional_WorkoutPlan_(Func_void_std__optional_WorkoutPlan_ value) noexcept {
|
|
2408
2415
|
return Func_void_std__optional_WorkoutPlan__Wrapper(std::move(value));
|
|
2409
2416
|
}
|
|
@@ -2459,7 +2466,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
2459
2466
|
private:
|
|
2460
2467
|
std::unique_ptr<std::function<void(const std::vector<WorkoutRoute>& /* result */)>> _function;
|
|
2461
2468
|
} SWIFT_NONCOPYABLE;
|
|
2462
|
-
Func_void_std__vector_WorkoutRoute_ create_Func_void_std__vector_WorkoutRoute_(void*
|
|
2469
|
+
Func_void_std__vector_WorkoutRoute_ create_Func_void_std__vector_WorkoutRoute_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
2463
2470
|
inline Func_void_std__vector_WorkoutRoute__Wrapper wrap_Func_void_std__vector_WorkoutRoute_(Func_void_std__vector_WorkoutRoute_ value) noexcept {
|
|
2464
2471
|
return Func_void_std__vector_WorkoutRoute__Wrapper(std::move(value));
|
|
2465
2472
|
}
|
|
@@ -2508,7 +2515,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
2508
2515
|
private:
|
|
2509
2516
|
std::unique_ptr<std::function<void(const std::optional<QueryStatisticsResponse>& /* result */)>> _function;
|
|
2510
2517
|
} SWIFT_NONCOPYABLE;
|
|
2511
|
-
Func_void_std__optional_QueryStatisticsResponse_ create_Func_void_std__optional_QueryStatisticsResponse_(void*
|
|
2518
|
+
Func_void_std__optional_QueryStatisticsResponse_ create_Func_void_std__optional_QueryStatisticsResponse_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
2512
2519
|
inline Func_void_std__optional_QueryStatisticsResponse__Wrapper wrap_Func_void_std__optional_QueryStatisticsResponse_(Func_void_std__optional_QueryStatisticsResponse_ value) noexcept {
|
|
2513
2520
|
return Func_void_std__optional_QueryStatisticsResponse__Wrapper(std::move(value));
|
|
2514
2521
|
}
|
|
@@ -2567,7 +2574,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
2567
2574
|
private:
|
|
2568
2575
|
std::unique_ptr<std::function<void(const std::unordered_map<std::string, QueryStatisticsResponse>& /* result */)>> _function;
|
|
2569
2576
|
} SWIFT_NONCOPYABLE;
|
|
2570
|
-
Func_void_std__unordered_map_std__string__QueryStatisticsResponse_ create_Func_void_std__unordered_map_std__string__QueryStatisticsResponse_(void*
|
|
2577
|
+
Func_void_std__unordered_map_std__string__QueryStatisticsResponse_ create_Func_void_std__unordered_map_std__string__QueryStatisticsResponse_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
2571
2578
|
inline Func_void_std__unordered_map_std__string__QueryStatisticsResponse__Wrapper wrap_Func_void_std__unordered_map_std__string__QueryStatisticsResponse_(Func_void_std__unordered_map_std__string__QueryStatisticsResponse_ value) noexcept {
|
|
2572
2579
|
return Func_void_std__unordered_map_std__string__QueryStatisticsResponse__Wrapper(std::move(value));
|
|
2573
2580
|
}
|
|
@@ -2646,7 +2653,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
2646
2653
|
private:
|
|
2647
2654
|
std::unique_ptr<std::function<void(const std::shared_ptr<HybridWorkoutProxySpec>& /* result */)>> _function;
|
|
2648
2655
|
} SWIFT_NONCOPYABLE;
|
|
2649
|
-
Func_void_std__shared_ptr_HybridWorkoutProxySpec_ create_Func_void_std__shared_ptr_HybridWorkoutProxySpec_(void*
|
|
2656
|
+
Func_void_std__shared_ptr_HybridWorkoutProxySpec_ create_Func_void_std__shared_ptr_HybridWorkoutProxySpec_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
2650
2657
|
inline Func_void_std__shared_ptr_HybridWorkoutProxySpec__Wrapper wrap_Func_void_std__shared_ptr_HybridWorkoutProxySpec_(Func_void_std__shared_ptr_HybridWorkoutProxySpec_ value) noexcept {
|
|
2651
2658
|
return Func_void_std__shared_ptr_HybridWorkoutProxySpec__Wrapper(std::move(value));
|
|
2652
2659
|
}
|
|
@@ -2702,7 +2709,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
2702
2709
|
private:
|
|
2703
2710
|
std::unique_ptr<std::function<void(const QueryWorkoutSamplesWithAnchorResponse& /* result */)>> _function;
|
|
2704
2711
|
} SWIFT_NONCOPYABLE;
|
|
2705
|
-
Func_void_QueryWorkoutSamplesWithAnchorResponse create_Func_void_QueryWorkoutSamplesWithAnchorResponse(void*
|
|
2712
|
+
Func_void_QueryWorkoutSamplesWithAnchorResponse create_Func_void_QueryWorkoutSamplesWithAnchorResponse(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
2706
2713
|
inline Func_void_QueryWorkoutSamplesWithAnchorResponse_Wrapper wrap_Func_void_QueryWorkoutSamplesWithAnchorResponse(Func_void_QueryWorkoutSamplesWithAnchorResponse value) noexcept {
|
|
2707
2714
|
return Func_void_QueryWorkoutSamplesWithAnchorResponse_Wrapper(std::move(value));
|
|
2708
2715
|
}
|
|
@@ -2892,7 +2899,7 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
2892
2899
|
private:
|
|
2893
2900
|
std::unique_ptr<std::function<void(const std::vector<std::shared_ptr<HybridWorkoutProxySpec>>& /* result */)>> _function;
|
|
2894
2901
|
} SWIFT_NONCOPYABLE;
|
|
2895
|
-
Func_void_std__vector_std__shared_ptr_HybridWorkoutProxySpec__ create_Func_void_std__vector_std__shared_ptr_HybridWorkoutProxySpec__(void*
|
|
2902
|
+
Func_void_std__vector_std__shared_ptr_HybridWorkoutProxySpec__ create_Func_void_std__vector_std__shared_ptr_HybridWorkoutProxySpec__(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
2896
2903
|
inline Func_void_std__vector_std__shared_ptr_HybridWorkoutProxySpec___Wrapper wrap_Func_void_std__vector_std__shared_ptr_HybridWorkoutProxySpec__(Func_void_std__vector_std__shared_ptr_HybridWorkoutProxySpec__ value) noexcept {
|
|
2897
2904
|
return Func_void_std__vector_std__shared_ptr_HybridWorkoutProxySpec___Wrapper(std::move(value));
|
|
2898
2905
|
}
|
|
@@ -2917,8 +2924,8 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
2917
2924
|
* Specialized version of `std::shared_ptr<HybridWorkoutsModuleSpec>`.
|
|
2918
2925
|
*/
|
|
2919
2926
|
using std__shared_ptr_HybridWorkoutsModuleSpec_ = std::shared_ptr<HybridWorkoutsModuleSpec>;
|
|
2920
|
-
std::shared_ptr<HybridWorkoutsModuleSpec> create_std__shared_ptr_HybridWorkoutsModuleSpec_(void*
|
|
2921
|
-
void*
|
|
2927
|
+
std::shared_ptr<HybridWorkoutsModuleSpec> create_std__shared_ptr_HybridWorkoutsModuleSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
2928
|
+
void* NON_NULL get_std__shared_ptr_HybridWorkoutsModuleSpec_(std__shared_ptr_HybridWorkoutsModuleSpec_ cppType);
|
|
2922
2929
|
|
|
2923
2930
|
// pragma MARK: std::weak_ptr<HybridWorkoutsModuleSpec>
|
|
2924
2931
|
using std__weak_ptr_HybridWorkoutsModuleSpec_ = std::weak_ptr<HybridWorkoutsModuleSpec>;
|
|
@@ -136,7 +136,7 @@ namespace margelo::nitro::healthkit {
|
|
|
136
136
|
return __value;
|
|
137
137
|
}
|
|
138
138
|
inline std::shared_ptr<Promise<CategorySamplesWithAnchorResponse>> queryCategorySamplesWithAnchor(CategoryTypeIdentifier identifier, const QueryOptionsWithAnchor& options) override {
|
|
139
|
-
auto __result = _swiftPart.queryCategorySamplesWithAnchor(static_cast<int>(identifier), options);
|
|
139
|
+
auto __result = _swiftPart.queryCategorySamplesWithAnchor(static_cast<int>(identifier), std::forward<decltype(options)>(options));
|
|
140
140
|
if (__result.hasError()) [[unlikely]] {
|
|
141
141
|
std::rethrow_exception(__result.error());
|
|
142
142
|
}
|
|
@@ -137,7 +137,7 @@ namespace margelo::nitro::healthkit {
|
|
|
137
137
|
return __value;
|
|
138
138
|
}
|
|
139
139
|
inline std::shared_ptr<Promise<ElectrocardiogramSamplesWithAnchorResponse>> queryElectrocardiogramSamplesWithAnchor(const ECGQueryOptionsWithAnchor& options) override {
|
|
140
|
-
auto __result = _swiftPart.queryElectrocardiogramSamplesWithAnchor(options);
|
|
140
|
+
auto __result = _swiftPart.queryElectrocardiogramSamplesWithAnchor(std::forward<decltype(options)>(options));
|
|
141
141
|
if (__result.hasError()) [[unlikely]] {
|
|
142
142
|
std::rethrow_exception(__result.error());
|
|
143
143
|
}
|
|
@@ -128,7 +128,7 @@ namespace margelo::nitro::healthkit {
|
|
|
128
128
|
return __value;
|
|
129
129
|
}
|
|
130
130
|
inline std::shared_ptr<Promise<HeartbeatSeriesSamplesWithAnchorResponse>> queryHeartbeatSeriesSamplesWithAnchor(const QueryOptionsWithAnchor& options) override {
|
|
131
|
-
auto __result = _swiftPart.queryHeartbeatSeriesSamplesWithAnchor(options);
|
|
131
|
+
auto __result = _swiftPart.queryHeartbeatSeriesSamplesWithAnchor(std::forward<decltype(options)>(options));
|
|
132
132
|
if (__result.hasError()) [[unlikely]] {
|
|
133
133
|
std::rethrow_exception(__result.error());
|
|
134
134
|
}
|
|
@@ -178,7 +178,7 @@ namespace margelo::nitro::healthkit {
|
|
|
178
178
|
return __value;
|
|
179
179
|
}
|
|
180
180
|
inline std::shared_ptr<Promise<std::vector<QueryStatisticsResponse>>> queryStatisticsCollectionForQuantity(QuantityTypeIdentifier identifier, const std::vector<StatisticsOptions>& statistics, const std::string& anchorDate, const IntervalComponents& intervalComponents, const std::optional<StatisticsQueryOptions>& options) override {
|
|
181
|
-
auto __result = _swiftPart.queryStatisticsCollectionForQuantity(static_cast<int>(identifier), statistics, anchorDate, intervalComponents, options);
|
|
181
|
+
auto __result = _swiftPart.queryStatisticsCollectionForQuantity(static_cast<int>(identifier), statistics, anchorDate, std::forward<decltype(intervalComponents)>(intervalComponents), options);
|
|
182
182
|
if (__result.hasError()) [[unlikely]] {
|
|
183
183
|
std::rethrow_exception(__result.error());
|
|
184
184
|
}
|
|
@@ -186,7 +186,7 @@ namespace margelo::nitro::healthkit {
|
|
|
186
186
|
return __value;
|
|
187
187
|
}
|
|
188
188
|
inline std::shared_ptr<Promise<QuantitySamplesWithAnchorResponse>> queryQuantitySamplesWithAnchor(QuantityTypeIdentifier identifier, const QueryOptionsWithAnchorAndUnit& options) override {
|
|
189
|
-
auto __result = _swiftPart.queryQuantitySamplesWithAnchor(static_cast<int>(identifier), options);
|
|
189
|
+
auto __result = _swiftPart.queryQuantitySamplesWithAnchor(static_cast<int>(identifier), std::forward<decltype(options)>(options));
|
|
190
190
|
if (__result.hasError()) [[unlikely]] {
|
|
191
191
|
std::rethrow_exception(__result.error());
|
|
192
192
|
}
|
|
@@ -138,8 +138,7 @@ namespace margelo::nitro::healthkit {
|
|
|
138
138
|
return static_cast<WorkoutActivityType>(__result);
|
|
139
139
|
}
|
|
140
140
|
inline Quantity getDuration() noexcept override {
|
|
141
|
-
|
|
142
|
-
return __result;
|
|
141
|
+
return _swiftPart.getDuration();
|
|
143
142
|
}
|
|
144
143
|
inline std::chrono::system_clock::time_point getStartDate() noexcept override {
|
|
145
144
|
auto __result = _swiftPart.getStartDate();
|
|
@@ -138,7 +138,7 @@ namespace margelo::nitro::healthkit {
|
|
|
138
138
|
public:
|
|
139
139
|
// Methods
|
|
140
140
|
inline std::shared_ptr<Promise<std::shared_ptr<HybridWorkoutProxySpec>>> saveWorkoutSample(WorkoutActivityType workoutActivityType, const std::vector<QuantitySampleForSaving>& quantities, std::chrono::system_clock::time_point startDate, std::chrono::system_clock::time_point endDate, const WorkoutTotals& totals, const std::shared_ptr<AnyMap>& metadata) override {
|
|
141
|
-
auto __result = _swiftPart.saveWorkoutSample(static_cast<int>(workoutActivityType), quantities, startDate, endDate, totals, metadata);
|
|
141
|
+
auto __result = _swiftPart.saveWorkoutSample(static_cast<int>(workoutActivityType), quantities, startDate, endDate, std::forward<decltype(totals)>(totals), metadata);
|
|
142
142
|
if (__result.hasError()) [[unlikely]] {
|
|
143
143
|
std::rethrow_exception(__result.error());
|
|
144
144
|
}
|
|
@@ -146,7 +146,7 @@ namespace margelo::nitro::healthkit {
|
|
|
146
146
|
return __value;
|
|
147
147
|
}
|
|
148
148
|
inline std::shared_ptr<Promise<QueryWorkoutSamplesWithAnchorResponse>> queryWorkoutSamplesWithAnchor(const WorkoutQueryOptionsWithAnchor& options) override {
|
|
149
|
-
auto __result = _swiftPart.queryWorkoutSamplesWithAnchor(options);
|
|
149
|
+
auto __result = _swiftPart.queryWorkoutSamplesWithAnchor(std::forward<decltype(options)>(options));
|
|
150
150
|
if (__result.hasError()) [[unlikely]] {
|
|
151
151
|
std::rethrow_exception(__result.error());
|
|
152
152
|
}
|
|
@@ -154,7 +154,7 @@ namespace margelo::nitro::healthkit {
|
|
|
154
154
|
return __value;
|
|
155
155
|
}
|
|
156
156
|
inline std::shared_ptr<Promise<std::vector<std::shared_ptr<HybridWorkoutProxySpec>>>> queryWorkoutSamples(const WorkoutQueryOptions& options) override {
|
|
157
|
-
auto __result = _swiftPart.queryWorkoutSamples(options);
|
|
157
|
+
auto __result = _swiftPart.queryWorkoutSamples(std::forward<decltype(options)>(options));
|
|
158
158
|
if (__result.hasError()) [[unlikely]] {
|
|
159
159
|
std::rethrow_exception(__result.error());
|
|
160
160
|
}
|
|
@@ -162,7 +162,7 @@ namespace margelo::nitro::healthkit {
|
|
|
162
162
|
return __value;
|
|
163
163
|
}
|
|
164
164
|
inline std::shared_ptr<Promise<bool>> startWatchAppWithWorkoutConfiguration(const WorkoutConfiguration& workoutConfiguration) override {
|
|
165
|
-
auto __result = _swiftPart.startWatchAppWithWorkoutConfiguration(workoutConfiguration);
|
|
165
|
+
auto __result = _swiftPart.startWatchAppWithWorkoutConfiguration(std::forward<decltype(workoutConfiguration)>(workoutConfiguration));
|
|
166
166
|
if (__result.hasError()) [[unlikely]] {
|
|
167
167
|
std::rethrow_exception(__result.error());
|
|
168
168
|
}
|