@kingstinct/react-native-healthkit 13.4.0 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ReactNativeHealthkit.podspec +1 -0
- package/app.plugin.ts +40 -2
- package/ios/BackgroundDeliveryManager.swift +196 -0
- package/ios/CategoryTypeModule.swift +1 -1
- package/ios/CoreModule.swift +24 -0
- package/ios/CorrelationTypeModule.swift +2 -35
- package/ios/ElectrocardiogramModule.swift +2 -34
- package/ios/HeartbeatSeriesModule.swift +2 -34
- package/ios/MedicationModule.swift +3 -35
- package/ios/PredicateHelpers.swift +2 -2
- package/ios/QuantityTypeModule.swift +11 -11
- package/ios/Serializers.swift +58 -90
- package/ios/StateOfMindModule.swift +2 -34
- package/ios/WorkoutProxy.swift +3 -149
- package/ios/generated/HealthkitGenerated.swift +52 -0
- package/lib/commonjs/generated/healthkit.generated.js +745 -0
- package/lib/commonjs/healthkit.ios.js +51 -17
- package/lib/commonjs/healthkit.js +120 -34
- package/lib/commonjs/specs/QuantityTypeModule.nitro.js +1 -0
- package/lib/commonjs/type-tests/generated-typing.js +2 -0
- package/lib/commonjs/types/CategoryType.js +19 -99
- package/lib/commonjs/types/Medication.js +2 -0
- package/lib/commonjs/types/MetadataEnums.js +17 -0
- package/lib/commonjs/types/QuantityType.js +4 -15
- package/lib/commonjs/types/WeatherCondition.js +2 -32
- package/lib/commonjs/types/Workouts.js +3 -98
- package/lib/commonjs/types/index.js +2 -0
- package/lib/module/generated/healthkit.generated.js +742 -0
- package/lib/module/healthkit.ios.js +49 -15
- package/lib/module/healthkit.js +94 -20
- package/lib/module/specs/QuantityTypeModule.nitro.js +1 -0
- package/lib/module/type-tests/generated-typing.js +1 -0
- package/lib/module/types/CategoryType.js +2 -98
- package/lib/module/types/Medication.js +1 -0
- package/lib/module/types/MetadataEnums.js +1 -0
- package/lib/module/types/QuantityType.js +2 -14
- package/lib/module/types/WeatherCondition.js +1 -32
- package/lib/module/types/Workouts.js +2 -98
- package/lib/module/types/index.js +2 -0
- package/lib/typescript/generated/healthkit.generated.d.ts +1006 -0
- package/lib/typescript/healthkit.d.ts +39 -36
- package/lib/typescript/healthkit.ios.d.ts +64 -53
- package/lib/typescript/hooks/useMostRecentQuantitySample.d.ts +3 -2
- package/lib/typescript/hooks/useMostRecentWorkout.d.ts +2 -2
- package/lib/typescript/hooks/useQuantitySampleById.d.ts +5 -4
- package/lib/typescript/hooks/useStatisticsForQuantity.d.ts +2 -2
- package/lib/typescript/hooks/useSubscribeToQuantitySamples.d.ts +1 -1
- package/lib/typescript/modules.d.ts +2 -2
- package/lib/typescript/specs/CategoryTypeModule.nitro.d.ts +3 -3
- package/lib/typescript/specs/CoreModule.nitro.d.ts +15 -0
- package/lib/typescript/specs/QuantityTypeModule.nitro.d.ts +20 -9
- package/lib/typescript/type-tests/generated-typing.d.ts +1 -0
- package/lib/typescript/types/CategoryType.d.ts +10 -104
- package/lib/typescript/types/CategoryTypeIdentifier.d.ts +1 -61
- package/lib/typescript/types/CorrelationType.d.ts +8 -2
- package/lib/typescript/types/ElectrocardiogramSample.d.ts +8 -1
- package/lib/typescript/types/HeartbeatSeries.d.ts +8 -1
- package/lib/typescript/types/InterfaceVerification.d.ts +14 -1
- package/lib/typescript/types/Medication.d.ts +10 -0
- package/lib/typescript/types/MetadataEnums.d.ts +1 -0
- package/lib/typescript/types/QuantitySample.d.ts +9 -1
- package/lib/typescript/types/QuantityType.d.ts +14 -18
- package/lib/typescript/types/QuantityTypeIdentifier.d.ts +1 -671
- package/lib/typescript/types/QueryOptions.d.ts +8 -4
- package/lib/typescript/types/Shared.d.ts +12 -41
- package/lib/typescript/types/StateOfMind.d.ts +8 -1
- package/lib/typescript/types/Subscriptions.d.ts +11 -11
- package/lib/typescript/types/WeatherCondition.d.ts +1 -30
- package/lib/typescript/types/Workouts.d.ts +18 -104
- package/lib/typescript/types/index.d.ts +2 -0
- package/lib/typescript/utils/getMostRecentQuantitySample.d.ts +2 -1
- package/lib/typescript/utils/getMostRecentWorkout.d.ts +2 -1
- package/lib/typescript/utils/getPreferredUnit.d.ts +2 -1
- package/lib/typescript/utils/getQuantitySampleById.d.ts +2 -1
- package/lib/typescript/utils/subscribeToQuantitySamples.d.ts +1 -1
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.hpp +55 -109
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Umbrella.hpp +12 -18
- package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.hpp +5 -14
- package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.hpp +18 -2
- package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.hpp +1 -13
- package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.hpp +1 -13
- package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.hpp +2 -14
- package/nitrogen/generated/ios/c++/HybridMedicationModuleSpecSwift.hpp +1 -13
- package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.hpp +19 -28
- package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.hpp +2 -14
- package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.hpp +2 -115
- package/nitrogen/generated/ios/swift/CategorySample.swift +4 -329
- package/nitrogen/generated/ios/swift/CategoryTypeIdentifier.swift +112 -108
- package/nitrogen/generated/ios/swift/CategoryTypeIdentifierWriteable.swift +292 -0
- package/nitrogen/generated/ios/swift/CorrelationSample.swift +4 -347
- package/nitrogen/generated/ios/swift/ElectrocardiogramSample.swift +4 -329
- package/nitrogen/generated/ios/swift/FilterForWorkouts.swift +30 -30
- package/nitrogen/generated/ios/swift/FilterForWorkoutsBase.swift +30 -30
- package/nitrogen/generated/ios/swift/GeneralForm.swift +4 -4
- package/nitrogen/generated/ios/swift/HeartbeatSeriesSample.swift +4 -329
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec.swift +2 -0
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec_cxx.swift +38 -0
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec.swift +6 -6
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec_cxx.swift +6 -6
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec.swift +1 -27
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec_cxx.swift +2 -340
- package/nitrogen/generated/ios/swift/MedicationDoseEvent.swift +4 -329
- package/nitrogen/generated/ios/swift/ObjectTypeIdentifier.swift +492 -492
- package/nitrogen/generated/ios/swift/QuantitySample.swift +4 -329
- package/nitrogen/generated/ios/swift/QuantityTypeIdentifier.swift +380 -384
- package/nitrogen/generated/ios/swift/QuantityTypeIdentifierWriteable.swift +372 -376
- package/nitrogen/generated/ios/swift/{QueryOptionsWithAnchorAndUnit.swift → QueryOptionsWithAnchorAndStringUnit.swift} +5 -5
- package/nitrogen/generated/ios/swift/{QueryOptionsWithSortOrderAndUnit.swift → QueryOptionsWithSortOrderAndStringUnit.swift} +5 -5
- package/nitrogen/generated/ios/swift/QueryStatisticsResponseFromSingleSource.swift +37 -37
- package/nitrogen/generated/ios/swift/SampleTypeIdentifier.swift +492 -492
- package/nitrogen/generated/ios/swift/SampleTypeIdentifierWriteable.swift +482 -486
- package/nitrogen/generated/ios/swift/StateOfMindSample.swift +4 -329
- package/nitrogen/generated/ios/swift/{StatisticsQueryOptions.swift → StatisticsQueryOptionsWithStringUnit.swift} +5 -5
- package/nitrogen/generated/ios/swift/WorkoutSample.swift +4 -402
- package/nitrogen/generated/shared/c++/CategorySample.hpp +8 -100
- package/nitrogen/generated/shared/c++/CategoryTypeIdentifier.hpp +153 -149
- package/nitrogen/generated/shared/c++/CategoryTypeIdentifierWriteable.hpp +328 -0
- package/nitrogen/generated/shared/c++/CorrelationSample.hpp +9 -105
- package/nitrogen/generated/shared/c++/ElectrocardiogramSample.hpp +7 -99
- package/nitrogen/generated/shared/c++/FilterForWorkouts.hpp +13 -13
- package/nitrogen/generated/shared/c++/FilterForWorkoutsBase.hpp +13 -13
- package/nitrogen/generated/shared/c++/GeneralForm.hpp +7 -7
- package/nitrogen/generated/shared/c++/HeartbeatSeriesSample.hpp +8 -100
- package/nitrogen/generated/shared/c++/HybridCategoryTypeModuleSpec.hpp +5 -2
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.cpp +2 -0
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.hpp +4 -2
- package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.hpp +15 -15
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.cpp +1 -27
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.hpp +2 -37
- package/nitrogen/generated/shared/c++/MedicationDoseEvent.hpp +7 -99
- package/nitrogen/generated/shared/c++/ObjectTypeIdentifier.hpp +565 -565
- package/nitrogen/generated/shared/c++/QuantitySample.hpp +8 -100
- package/nitrogen/generated/shared/c++/QuantityTypeIdentifier.hpp +407 -411
- package/nitrogen/generated/shared/c++/QuantityTypeIdentifierWriteable.hpp +398 -402
- package/nitrogen/generated/shared/c++/{QueryOptionsWithAnchorAndUnit.hpp → QueryOptionsWithAnchorAndStringUnit.hpp} +11 -11
- package/nitrogen/generated/shared/c++/{QueryOptionsWithSortOrderAndUnit.hpp → QueryOptionsWithSortOrderAndStringUnit.hpp} +11 -11
- package/nitrogen/generated/shared/c++/QueryStatisticsResponseFromSingleSource.hpp +12 -12
- package/nitrogen/generated/shared/c++/SampleTypeIdentifier.hpp +559 -559
- package/nitrogen/generated/shared/c++/SampleTypeIdentifierWriteable.hpp +541 -545
- package/nitrogen/generated/shared/c++/StateOfMindSample.hpp +8 -100
- package/nitrogen/generated/shared/c++/{StatisticsQueryOptions.hpp → StatisticsQueryOptionsWithStringUnit.hpp} +11 -11
- package/nitrogen/generated/shared/c++/WorkoutSample.hpp +7 -120
- package/package.json +5 -2
- package/src/generated/healthkit-schema.json +3680 -0
- package/src/generated/healthkit.generated.ts +1307 -0
- package/src/healthkit.ios.ts +225 -19
- package/src/healthkit.ts +181 -55
- package/src/hooks/useMostRecentQuantitySample.ts +6 -5
- package/src/hooks/useMostRecentWorkout.ts +2 -2
- package/src/hooks/useQuantitySampleById.ts +6 -5
- package/src/hooks/useStatisticsForQuantity.ts +2 -1
- package/src/hooks/useSubscribeToQuantitySamples.ts +1 -1
- package/src/modules.ts +7 -2
- package/src/specs/CategoryTypeModule.nitro.ts +8 -5
- package/src/specs/CoreModule.nitro.ts +20 -0
- package/src/specs/QuantityTypeModule.nitro.ts +81 -7
- package/src/test-setup.ts +2 -0
- package/src/type-tests/generated-typing.ts +133 -0
- package/src/types/CategoryType.ts +52 -148
- package/src/types/CategoryTypeIdentifier.ts +5 -134
- package/src/types/CorrelationType.ts +13 -3
- package/src/types/ElectrocardiogramSample.ts +13 -1
- package/src/types/HeartbeatSeries.ts +13 -1
- package/src/types/InterfaceVerification.ts +38 -1
- package/src/types/Medication.ts +19 -0
- package/src/types/MetadataEnums.ts +15 -0
- package/src/types/QuantitySample.ts +14 -2
- package/src/types/QuantityType.ts +22 -122
- package/src/types/QuantityTypeIdentifier.ts +5 -772
- package/src/types/QueryOptions.ts +11 -4
- package/src/types/Shared.ts +22 -49
- package/src/types/StateOfMind.ts +13 -1
- package/src/types/Subscriptions.ts +19 -13
- package/src/types/WeatherCondition.ts +1 -31
- package/src/types/Workouts.ts +44 -108
- package/src/types/index.ts +2 -0
- package/src/utils/getMostRecentQuantitySample.ts +4 -3
- package/src/utils/getMostRecentWorkout.ts +5 -2
- package/src/utils/getPreferredUnit.ts +5 -4
- package/src/utils/getQuantitySampleById.ts +4 -3
- package/src/utils/subscribeToQuantitySamples.ts +5 -3
- package/nitrogen/generated/ios/swift/HeartRateMotionContext.swift +0 -44
- package/nitrogen/generated/ios/swift/InsulinDeliveryReason.swift +0 -40
- package/nitrogen/generated/ios/swift/WeatherCondition.swift +0 -144
- package/nitrogen/generated/shared/c++/HeartRateMotionContext.hpp +0 -67
- package/nitrogen/generated/shared/c++/InsulinDeliveryReason.hpp +0 -62
- package/nitrogen/generated/shared/c++/WeatherCondition.hpp +0 -88
|
@@ -225,81 +225,10 @@ open class HybridWorkoutProxySpec_cxx {
|
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
public final var
|
|
229
|
-
@inline(__always)
|
|
230
|
-
get {
|
|
231
|
-
return { () -> bridge.std__optional_Quantity_ in
|
|
232
|
-
if let __unwrappedValue = self.__implementation.metadataAverageMETs {
|
|
233
|
-
return bridge.create_std__optional_Quantity_(__unwrappedValue)
|
|
234
|
-
} else {
|
|
235
|
-
return .init()
|
|
236
|
-
}
|
|
237
|
-
}()
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
public final var metadataElevationAscended: bridge.std__optional_Quantity_ {
|
|
242
|
-
@inline(__always)
|
|
243
|
-
get {
|
|
244
|
-
return { () -> bridge.std__optional_Quantity_ in
|
|
245
|
-
if let __unwrappedValue = self.__implementation.metadataElevationAscended {
|
|
246
|
-
return bridge.create_std__optional_Quantity_(__unwrappedValue)
|
|
247
|
-
} else {
|
|
248
|
-
return .init()
|
|
249
|
-
}
|
|
250
|
-
}()
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
public final var metadataElevationDescended: bridge.std__optional_Quantity_ {
|
|
255
|
-
@inline(__always)
|
|
256
|
-
get {
|
|
257
|
-
return { () -> bridge.std__optional_Quantity_ in
|
|
258
|
-
if let __unwrappedValue = self.__implementation.metadataElevationDescended {
|
|
259
|
-
return bridge.create_std__optional_Quantity_(__unwrappedValue)
|
|
260
|
-
} else {
|
|
261
|
-
return .init()
|
|
262
|
-
}
|
|
263
|
-
}()
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
public final var metadataIndoorWorkout: bridge.std__optional_bool_ {
|
|
268
|
-
@inline(__always)
|
|
269
|
-
get {
|
|
270
|
-
return { () -> bridge.std__optional_bool_ in
|
|
271
|
-
if let __unwrappedValue = self.__implementation.metadataIndoorWorkout {
|
|
272
|
-
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
273
|
-
} else {
|
|
274
|
-
return .init()
|
|
275
|
-
}
|
|
276
|
-
}()
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
public final var metadataAverageSpeed: bridge.std__optional_Quantity_ {
|
|
281
|
-
@inline(__always)
|
|
282
|
-
get {
|
|
283
|
-
return { () -> bridge.std__optional_Quantity_ in
|
|
284
|
-
if let __unwrappedValue = self.__implementation.metadataAverageSpeed {
|
|
285
|
-
return bridge.create_std__optional_Quantity_(__unwrappedValue)
|
|
286
|
-
} else {
|
|
287
|
-
return .init()
|
|
288
|
-
}
|
|
289
|
-
}()
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
public final var metadataMaximumSpeed: bridge.std__optional_Quantity_ {
|
|
228
|
+
public final var metadata: margelo.nitro.SharedAnyMap {
|
|
294
229
|
@inline(__always)
|
|
295
230
|
get {
|
|
296
|
-
return
|
|
297
|
-
if let __unwrappedValue = self.__implementation.metadataMaximumSpeed {
|
|
298
|
-
return bridge.create_std__optional_Quantity_(__unwrappedValue)
|
|
299
|
-
} else {
|
|
300
|
-
return .init()
|
|
301
|
-
}
|
|
302
|
-
}()
|
|
231
|
+
return self.__implementation.metadata.cppPart
|
|
303
232
|
}
|
|
304
233
|
}
|
|
305
234
|
|
|
@@ -331,71 +260,6 @@ open class HybridWorkoutProxySpec_cxx {
|
|
|
331
260
|
}
|
|
332
261
|
}
|
|
333
262
|
|
|
334
|
-
public final var metadataWeatherCondition: bridge.std__optional_WeatherCondition_ {
|
|
335
|
-
@inline(__always)
|
|
336
|
-
get {
|
|
337
|
-
return { () -> bridge.std__optional_WeatherCondition_ in
|
|
338
|
-
if let __unwrappedValue = self.__implementation.metadataWeatherCondition {
|
|
339
|
-
return bridge.create_std__optional_WeatherCondition_(__unwrappedValue)
|
|
340
|
-
} else {
|
|
341
|
-
return .init()
|
|
342
|
-
}
|
|
343
|
-
}()
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
public final var metadataWeatherHumidity: bridge.std__optional_Quantity_ {
|
|
348
|
-
@inline(__always)
|
|
349
|
-
get {
|
|
350
|
-
return { () -> bridge.std__optional_Quantity_ in
|
|
351
|
-
if let __unwrappedValue = self.__implementation.metadataWeatherHumidity {
|
|
352
|
-
return bridge.create_std__optional_Quantity_(__unwrappedValue)
|
|
353
|
-
} else {
|
|
354
|
-
return .init()
|
|
355
|
-
}
|
|
356
|
-
}()
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
public final var metadataWeatherTemperature: bridge.std__optional_Quantity_ {
|
|
361
|
-
@inline(__always)
|
|
362
|
-
get {
|
|
363
|
-
return { () -> bridge.std__optional_Quantity_ in
|
|
364
|
-
if let __unwrappedValue = self.__implementation.metadataWeatherTemperature {
|
|
365
|
-
return bridge.create_std__optional_Quantity_(__unwrappedValue)
|
|
366
|
-
} else {
|
|
367
|
-
return .init()
|
|
368
|
-
}
|
|
369
|
-
}()
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
public final var metadataInsulinDeliveryReason: bridge.std__optional_InsulinDeliveryReason_ {
|
|
374
|
-
@inline(__always)
|
|
375
|
-
get {
|
|
376
|
-
return { () -> bridge.std__optional_InsulinDeliveryReason_ in
|
|
377
|
-
if let __unwrappedValue = self.__implementation.metadataInsulinDeliveryReason {
|
|
378
|
-
return bridge.create_std__optional_InsulinDeliveryReason_(__unwrappedValue)
|
|
379
|
-
} else {
|
|
380
|
-
return .init()
|
|
381
|
-
}
|
|
382
|
-
}()
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
public final var metadataHeartRateMotionContext: bridge.std__optional_HeartRateMotionContext_ {
|
|
387
|
-
@inline(__always)
|
|
388
|
-
get {
|
|
389
|
-
return { () -> bridge.std__optional_HeartRateMotionContext_ in
|
|
390
|
-
if let __unwrappedValue = self.__implementation.metadataHeartRateMotionContext {
|
|
391
|
-
return bridge.create_std__optional_HeartRateMotionContext_(__unwrappedValue)
|
|
392
|
-
} else {
|
|
393
|
-
return .init()
|
|
394
|
-
}
|
|
395
|
-
}()
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
|
|
399
263
|
public final var uuid: std.string {
|
|
400
264
|
@inline(__always)
|
|
401
265
|
get {
|
|
@@ -422,208 +286,6 @@ open class HybridWorkoutProxySpec_cxx {
|
|
|
422
286
|
}()
|
|
423
287
|
}
|
|
424
288
|
}
|
|
425
|
-
|
|
426
|
-
public final var metadata: margelo.nitro.SharedAnyMap {
|
|
427
|
-
@inline(__always)
|
|
428
|
-
get {
|
|
429
|
-
return self.__implementation.metadata.cppPart
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
public final var metadataExternalUUID: bridge.std__optional_std__string_ {
|
|
434
|
-
@inline(__always)
|
|
435
|
-
get {
|
|
436
|
-
return { () -> bridge.std__optional_std__string_ in
|
|
437
|
-
if let __unwrappedValue = self.__implementation.metadataExternalUUID {
|
|
438
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
439
|
-
} else {
|
|
440
|
-
return .init()
|
|
441
|
-
}
|
|
442
|
-
}()
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
public final var metadataTimeZone: bridge.std__optional_std__string_ {
|
|
447
|
-
@inline(__always)
|
|
448
|
-
get {
|
|
449
|
-
return { () -> bridge.std__optional_std__string_ in
|
|
450
|
-
if let __unwrappedValue = self.__implementation.metadataTimeZone {
|
|
451
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
452
|
-
} else {
|
|
453
|
-
return .init()
|
|
454
|
-
}
|
|
455
|
-
}()
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
public final var metadataWasUserEntered: bridge.std__optional_bool_ {
|
|
460
|
-
@inline(__always)
|
|
461
|
-
get {
|
|
462
|
-
return { () -> bridge.std__optional_bool_ in
|
|
463
|
-
if let __unwrappedValue = self.__implementation.metadataWasUserEntered {
|
|
464
|
-
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
465
|
-
} else {
|
|
466
|
-
return .init()
|
|
467
|
-
}
|
|
468
|
-
}()
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
public final var metadataDeviceSerialNumber: bridge.std__optional_std__string_ {
|
|
473
|
-
@inline(__always)
|
|
474
|
-
get {
|
|
475
|
-
return { () -> bridge.std__optional_std__string_ in
|
|
476
|
-
if let __unwrappedValue = self.__implementation.metadataDeviceSerialNumber {
|
|
477
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
478
|
-
} else {
|
|
479
|
-
return .init()
|
|
480
|
-
}
|
|
481
|
-
}()
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
public final var metadataUdiDeviceIdentifier: bridge.std__optional_std__string_ {
|
|
486
|
-
@inline(__always)
|
|
487
|
-
get {
|
|
488
|
-
return { () -> bridge.std__optional_std__string_ in
|
|
489
|
-
if let __unwrappedValue = self.__implementation.metadataUdiDeviceIdentifier {
|
|
490
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
491
|
-
} else {
|
|
492
|
-
return .init()
|
|
493
|
-
}
|
|
494
|
-
}()
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
public final var metadataUdiProductionIdentifier: bridge.std__optional_std__string_ {
|
|
499
|
-
@inline(__always)
|
|
500
|
-
get {
|
|
501
|
-
return { () -> bridge.std__optional_std__string_ in
|
|
502
|
-
if let __unwrappedValue = self.__implementation.metadataUdiProductionIdentifier {
|
|
503
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
504
|
-
} else {
|
|
505
|
-
return .init()
|
|
506
|
-
}
|
|
507
|
-
}()
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
public final var metadataDigitalSignature: bridge.std__optional_std__string_ {
|
|
512
|
-
@inline(__always)
|
|
513
|
-
get {
|
|
514
|
-
return { () -> bridge.std__optional_std__string_ in
|
|
515
|
-
if let __unwrappedValue = self.__implementation.metadataDigitalSignature {
|
|
516
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
517
|
-
} else {
|
|
518
|
-
return .init()
|
|
519
|
-
}
|
|
520
|
-
}()
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
public final var metadataDeviceName: bridge.std__optional_std__string_ {
|
|
525
|
-
@inline(__always)
|
|
526
|
-
get {
|
|
527
|
-
return { () -> bridge.std__optional_std__string_ in
|
|
528
|
-
if let __unwrappedValue = self.__implementation.metadataDeviceName {
|
|
529
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
530
|
-
} else {
|
|
531
|
-
return .init()
|
|
532
|
-
}
|
|
533
|
-
}()
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
public final var metadataDeviceManufacturerName: bridge.std__optional_std__string_ {
|
|
538
|
-
@inline(__always)
|
|
539
|
-
get {
|
|
540
|
-
return { () -> bridge.std__optional_std__string_ in
|
|
541
|
-
if let __unwrappedValue = self.__implementation.metadataDeviceManufacturerName {
|
|
542
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
543
|
-
} else {
|
|
544
|
-
return .init()
|
|
545
|
-
}
|
|
546
|
-
}()
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
public final var metadataSyncIdentifier: bridge.std__optional_std__string_ {
|
|
551
|
-
@inline(__always)
|
|
552
|
-
get {
|
|
553
|
-
return { () -> bridge.std__optional_std__string_ in
|
|
554
|
-
if let __unwrappedValue = self.__implementation.metadataSyncIdentifier {
|
|
555
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
556
|
-
} else {
|
|
557
|
-
return .init()
|
|
558
|
-
}
|
|
559
|
-
}()
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
public final var metadataSyncVersion: bridge.std__optional_double_ {
|
|
564
|
-
@inline(__always)
|
|
565
|
-
get {
|
|
566
|
-
return { () -> bridge.std__optional_double_ in
|
|
567
|
-
if let __unwrappedValue = self.__implementation.metadataSyncVersion {
|
|
568
|
-
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
569
|
-
} else {
|
|
570
|
-
return .init()
|
|
571
|
-
}
|
|
572
|
-
}()
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
public final var metadataWasTakenInLab: bridge.std__optional_bool_ {
|
|
577
|
-
@inline(__always)
|
|
578
|
-
get {
|
|
579
|
-
return { () -> bridge.std__optional_bool_ in
|
|
580
|
-
if let __unwrappedValue = self.__implementation.metadataWasTakenInLab {
|
|
581
|
-
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
582
|
-
} else {
|
|
583
|
-
return .init()
|
|
584
|
-
}
|
|
585
|
-
}()
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
public final var metadataReferenceRangeLowerLimit: bridge.std__optional_double_ {
|
|
590
|
-
@inline(__always)
|
|
591
|
-
get {
|
|
592
|
-
return { () -> bridge.std__optional_double_ in
|
|
593
|
-
if let __unwrappedValue = self.__implementation.metadataReferenceRangeLowerLimit {
|
|
594
|
-
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
595
|
-
} else {
|
|
596
|
-
return .init()
|
|
597
|
-
}
|
|
598
|
-
}()
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
public final var metadataReferenceRangeUpperLimit: bridge.std__optional_double_ {
|
|
603
|
-
@inline(__always)
|
|
604
|
-
get {
|
|
605
|
-
return { () -> bridge.std__optional_double_ in
|
|
606
|
-
if let __unwrappedValue = self.__implementation.metadataReferenceRangeUpperLimit {
|
|
607
|
-
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
608
|
-
} else {
|
|
609
|
-
return .init()
|
|
610
|
-
}
|
|
611
|
-
}()
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
public final var metadataAlgorithmVersion: bridge.std__optional_double_ {
|
|
616
|
-
@inline(__always)
|
|
617
|
-
get {
|
|
618
|
-
return { () -> bridge.std__optional_double_ in
|
|
619
|
-
if let __unwrappedValue = self.__implementation.metadataAlgorithmVersion {
|
|
620
|
-
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
621
|
-
} else {
|
|
622
|
-
return .init()
|
|
623
|
-
}
|
|
624
|
-
}()
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
289
|
|
|
628
290
|
// Methods
|
|
629
291
|
@inline(__always)
|