@ovok/native 1.16.1-dev.2173 → 1.16.1-dev.2175

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.
Files changed (135) hide show
  1. package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-provider.js +15 -8
  2. package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-provider.js.map +1 -1
  3. package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-utils.js +1 -1
  4. package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-utils.js.map +1 -1
  5. package/lib/commonjs/modules/data-sync/constants.js +4 -1
  6. package/lib/commonjs/modules/data-sync/constants.js.map +1 -1
  7. package/lib/commonjs/modules/data-sync/hooks/use-listen-changes.js +6 -9
  8. package/lib/commonjs/modules/data-sync/hooks/use-listen-changes.js.map +1 -1
  9. package/lib/commonjs/modules/data-sync/utils/convert-ecg-samples-to-observation.js +47 -0
  10. package/lib/commonjs/modules/data-sync/utils/convert-ecg-samples-to-observation.js.map +1 -0
  11. package/lib/commonjs/modules/data-sync/utils/convert-samples-to-observation.js +7 -15
  12. package/lib/commonjs/modules/data-sync/utils/convert-samples-to-observation.js.map +1 -1
  13. package/lib/commonjs/modules/data-sync/utils/default-health-coding.js +1 -0
  14. package/lib/commonjs/modules/data-sync/utils/default-health-coding.js.map +1 -1
  15. package/lib/commonjs/modules/data-sync/utils/get-samples-from-health.js +43 -86
  16. package/lib/commonjs/modules/data-sync/utils/get-samples-from-health.js.map +1 -1
  17. package/lib/commonjs/modules/data-sync/utils/get-total-samples-count.js +6 -5
  18. package/lib/commonjs/modules/data-sync/utils/get-total-samples-count.js.map +1 -1
  19. package/lib/commonjs/modules/data-sync/utils/health-data-catalog.js +15 -15
  20. package/lib/commonjs/modules/data-sync/utils/health-data-catalog.js.map +1 -1
  21. package/lib/commonjs/modules/data-sync/utils/healthkit-daily-statistics.js +64 -0
  22. package/lib/commonjs/modules/data-sync/utils/healthkit-daily-statistics.js.map +1 -0
  23. package/lib/commonjs/modules/data-sync/utils/healthkit-data-types.js.map +1 -1
  24. package/lib/commonjs/modules/data-sync/utils/healthkit-query-options.js +20 -0
  25. package/lib/commonjs/modules/data-sync/utils/healthkit-query-options.js.map +1 -0
  26. package/lib/commonjs/modules/data-sync/utils/healthkit-sample-source.js +21 -0
  27. package/lib/commonjs/modules/data-sync/utils/healthkit-sample-source.js.map +1 -0
  28. package/lib/commonjs/modules/data-sync/utils/healthkit-samples.js +59 -0
  29. package/lib/commonjs/modules/data-sync/utils/healthkit-samples.js.map +1 -0
  30. package/lib/commonjs/modules/data-sync/utils/healthkit-series.js +20 -11
  31. package/lib/commonjs/modules/data-sync/utils/healthkit-series.js.map +1 -1
  32. package/lib/module/modules/data-sync/components/apple/apple-health-authorization-provider.js +16 -9
  33. package/lib/module/modules/data-sync/components/apple/apple-health-authorization-provider.js.map +1 -1
  34. package/lib/module/modules/data-sync/components/apple/apple-health-authorization-utils.js +2 -2
  35. package/lib/module/modules/data-sync/components/apple/apple-health-authorization-utils.js.map +1 -1
  36. package/lib/module/modules/data-sync/constants.js +4 -1
  37. package/lib/module/modules/data-sync/constants.js.map +1 -1
  38. package/lib/module/modules/data-sync/hooks/use-listen-changes.js +7 -10
  39. package/lib/module/modules/data-sync/hooks/use-listen-changes.js.map +1 -1
  40. package/lib/module/modules/data-sync/utils/convert-ecg-samples-to-observation.js +43 -0
  41. package/lib/module/modules/data-sync/utils/convert-ecg-samples-to-observation.js.map +1 -0
  42. package/lib/module/modules/data-sync/utils/convert-samples-to-observation.js +7 -15
  43. package/lib/module/modules/data-sync/utils/convert-samples-to-observation.js.map +1 -1
  44. package/lib/module/modules/data-sync/utils/default-health-coding.js +1 -0
  45. package/lib/module/modules/data-sync/utils/default-health-coding.js.map +1 -1
  46. package/lib/module/modules/data-sync/utils/get-samples-from-health.js +44 -87
  47. package/lib/module/modules/data-sync/utils/get-samples-from-health.js.map +1 -1
  48. package/lib/module/modules/data-sync/utils/get-total-samples-count.js +5 -4
  49. package/lib/module/modules/data-sync/utils/get-total-samples-count.js.map +1 -1
  50. package/lib/module/modules/data-sync/utils/health-data-catalog.js +15 -15
  51. package/lib/module/modules/data-sync/utils/health-data-catalog.js.map +1 -1
  52. package/lib/module/modules/data-sync/utils/healthkit-daily-statistics.js +59 -0
  53. package/lib/module/modules/data-sync/utils/healthkit-daily-statistics.js.map +1 -0
  54. package/lib/module/modules/data-sync/utils/healthkit-data-types.js.map +1 -1
  55. package/lib/module/modules/data-sync/utils/healthkit-query-options.js +16 -0
  56. package/lib/module/modules/data-sync/utils/healthkit-query-options.js.map +1 -0
  57. package/lib/module/modules/data-sync/utils/healthkit-sample-source.js +17 -0
  58. package/lib/module/modules/data-sync/utils/healthkit-sample-source.js.map +1 -0
  59. package/lib/module/modules/data-sync/utils/healthkit-samples.js +52 -0
  60. package/lib/module/modules/data-sync/utils/healthkit-samples.js.map +1 -0
  61. package/lib/module/modules/data-sync/utils/healthkit-series.js +19 -10
  62. package/lib/module/modules/data-sync/utils/healthkit-series.js.map +1 -1
  63. package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-authorization-provider.d.ts.map +1 -1
  64. package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-authorization-utils.d.ts +2 -2
  65. package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-authorization-utils.d.ts.map +1 -1
  66. package/lib/typescript/commonjs/src/modules/data-sync/constants.d.ts +3 -1
  67. package/lib/typescript/commonjs/src/modules/data-sync/constants.d.ts.map +1 -1
  68. package/lib/typescript/commonjs/src/modules/data-sync/hooks/use-listen-changes.d.ts.map +1 -1
  69. package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts +2 -2
  70. package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts.map +1 -1
  71. package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-sync-props.d.ts +4 -7
  72. package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-sync-props.d.ts.map +1 -1
  73. package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts +2 -2
  74. package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts.map +1 -1
  75. package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-ecg-samples-to-observation.d.ts +6 -0
  76. package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-ecg-samples-to-observation.d.ts.map +1 -0
  77. package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-samples-to-observation.d.ts.map +1 -1
  78. package/lib/typescript/commonjs/src/modules/data-sync/utils/default-health-coding.d.ts.map +1 -1
  79. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-samples-from-health.d.ts +12 -46
  80. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-samples-from-health.d.ts.map +1 -1
  81. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-total-samples-count.d.ts.map +1 -1
  82. package/lib/typescript/commonjs/src/modules/data-sync/utils/health-data-catalog.d.ts.map +1 -1
  83. package/lib/typescript/commonjs/src/modules/data-sync/utils/health-units.d.ts +2 -2
  84. package/lib/typescript/commonjs/src/modules/data-sync/utils/health-units.d.ts.map +1 -1
  85. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-daily-statistics.d.ts +10 -0
  86. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-daily-statistics.d.ts.map +1 -0
  87. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-data-types.d.ts +5 -5
  88. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-data-types.d.ts.map +1 -1
  89. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-query-options.d.ts +7 -0
  90. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-query-options.d.ts.map +1 -0
  91. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-sample-source.d.ts +8 -0
  92. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-sample-source.d.ts.map +1 -0
  93. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-samples.d.ts +30 -0
  94. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-samples.d.ts.map +1 -0
  95. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-series.d.ts +2 -2
  96. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-series.d.ts.map +1 -1
  97. package/lib/typescript/commonjs/src/modules/data-sync/utils/to-core-health-observations.d.ts +1 -0
  98. package/lib/typescript/commonjs/src/modules/data-sync/utils/to-core-health-observations.d.ts.map +1 -1
  99. package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-authorization-provider.d.ts.map +1 -1
  100. package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-authorization-utils.d.ts +2 -2
  101. package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-authorization-utils.d.ts.map +1 -1
  102. package/lib/typescript/module/src/modules/data-sync/constants.d.ts +3 -1
  103. package/lib/typescript/module/src/modules/data-sync/constants.d.ts.map +1 -1
  104. package/lib/typescript/module/src/modules/data-sync/hooks/use-listen-changes.d.ts.map +1 -1
  105. package/lib/typescript/module/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts +2 -2
  106. package/lib/typescript/module/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts.map +1 -1
  107. package/lib/typescript/module/src/modules/data-sync/types/apple-health-sync-props.d.ts +4 -7
  108. package/lib/typescript/module/src/modules/data-sync/types/apple-health-sync-props.d.ts.map +1 -1
  109. package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts +2 -2
  110. package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts.map +1 -1
  111. package/lib/typescript/module/src/modules/data-sync/utils/convert-ecg-samples-to-observation.d.ts +6 -0
  112. package/lib/typescript/module/src/modules/data-sync/utils/convert-ecg-samples-to-observation.d.ts.map +1 -0
  113. package/lib/typescript/module/src/modules/data-sync/utils/convert-samples-to-observation.d.ts.map +1 -1
  114. package/lib/typescript/module/src/modules/data-sync/utils/default-health-coding.d.ts.map +1 -1
  115. package/lib/typescript/module/src/modules/data-sync/utils/get-samples-from-health.d.ts +12 -46
  116. package/lib/typescript/module/src/modules/data-sync/utils/get-samples-from-health.d.ts.map +1 -1
  117. package/lib/typescript/module/src/modules/data-sync/utils/get-total-samples-count.d.ts.map +1 -1
  118. package/lib/typescript/module/src/modules/data-sync/utils/health-data-catalog.d.ts.map +1 -1
  119. package/lib/typescript/module/src/modules/data-sync/utils/health-units.d.ts +2 -2
  120. package/lib/typescript/module/src/modules/data-sync/utils/health-units.d.ts.map +1 -1
  121. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-daily-statistics.d.ts +10 -0
  122. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-daily-statistics.d.ts.map +1 -0
  123. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-data-types.d.ts +5 -5
  124. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-data-types.d.ts.map +1 -1
  125. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-query-options.d.ts +7 -0
  126. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-query-options.d.ts.map +1 -0
  127. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-sample-source.d.ts +8 -0
  128. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-sample-source.d.ts.map +1 -0
  129. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-samples.d.ts +30 -0
  130. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-samples.d.ts.map +1 -0
  131. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-series.d.ts +2 -2
  132. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-series.d.ts.map +1 -1
  133. package/lib/typescript/module/src/modules/data-sync/utils/to-core-health-observations.d.ts +1 -0
  134. package/lib/typescript/module/src/modules/data-sync/utils/to-core-health-observations.d.ts.map +1 -1
  135. package/package.json +8 -3
@@ -1,75 +1,41 @@
1
- import { HKCorrelationTypeIdentifier, HKCategoryTypeIdentifier, HKQuantityTypeIdentifier, UnitOfEnergy } from "@kingstinct/react-native-healthkit";
2
1
  import { AppleHealthDataTypeIdentifier } from "../types/apple-health-sync-props";
3
2
  import { GetDataFromProviderProps } from "../types/get-data-from-provider-props";
4
- import { AggregatedHealthData } from "../types/health-data";
5
3
  declare const getSamplesFromHealth: ({ startDate: _startDate, typeIdentifier, anchor, chunkSize, mode, }: GetDataFromProviderProps<AppleHealthDataTypeIdentifier>) => Promise<{
6
- data: import("../types/health-data").SeriesHealthData[];
4
+ data: import("../types/health-data").AggregatedHealthData[];
7
5
  anchor: undefined;
8
6
  } | {
9
- data: AggregatedHealthData[];
7
+ data: import("../types/health-data").SeriesHealthData[];
10
8
  anchor: undefined;
11
9
  } | {
12
10
  anchor: {
13
- typeIdentifier: AppleHealthDataTypeIdentifier;
14
- anchor: string;
15
- } | undefined;
16
- deletedRecordIds: string[];
17
- data: import("@kingstinct/react-native-healthkit").HKWorkout<UnitOfEnergy.Kilocalories, "km">[];
18
- } | {
19
- anchor: {
20
- typeIdentifier: AppleHealthDataTypeIdentifier;
21
- anchor: string;
22
- } | undefined;
23
- deletedRecordIds?: undefined;
24
- data: import("@kingstinct/react-native-healthkit").HKWorkout<UnitOfEnergy.Kilocalories, "km">[];
25
- } | {
26
- anchor: {
27
- typeIdentifier: AppleHealthDataTypeIdentifier;
28
- anchor: string;
29
- } | undefined;
30
- deletedRecordIds: string[];
31
- data: import("@kingstinct/react-native-healthkit").HKHeartbeatSeriesSample[];
32
- } | {
33
- anchor: {
34
- typeIdentifier: AppleHealthDataTypeIdentifier;
35
- anchor: string;
36
- } | undefined;
37
- deletedRecordIds?: undefined;
38
- data: import("@kingstinct/react-native-healthkit").HKHeartbeatSeriesSample[];
39
- } | {
40
- anchor: {
41
- typeIdentifier: AppleHealthDataTypeIdentifier;
11
+ typeIdentifier: import("@kingstinct/react-native-healthkit").SampleTypeIdentifier;
42
12
  anchor: string;
43
13
  } | undefined;
44
14
  deletedRecordIds: string[];
45
- data: import("@kingstinct/react-native-healthkit").HKCategorySample<HKCategoryTypeIdentifier>[];
15
+ data: unknown[];
46
16
  } | {
47
17
  anchor: {
48
- typeIdentifier: AppleHealthDataTypeIdentifier;
18
+ typeIdentifier: import("@kingstinct/react-native-healthkit").SampleTypeIdentifier;
49
19
  anchor: string;
50
20
  } | undefined;
51
21
  deletedRecordIds?: undefined;
52
- data: import("@kingstinct/react-native-healthkit").HKCategorySample<HKCategoryTypeIdentifier>[];
22
+ data: unknown[];
53
23
  } | {
24
+ hasMore: boolean;
54
25
  anchor: {
55
- typeIdentifier: AppleHealthDataTypeIdentifier;
26
+ typeIdentifier: import("@kingstinct/react-native-healthkit").SampleTypeIdentifier;
56
27
  anchor: string;
57
28
  } | undefined;
58
29
  deletedRecordIds: string[];
59
- data: import("@kingstinct/react-native-healthkit").HKQuantitySample<HKQuantityTypeIdentifier, "%" | "cal" | "g" | "kcal" | "kg" | "km" | "m" | "mg" | "mg/dL" | "min" | "ms" | "s" | "count" | "count/min" | "degC" | "mmHg" | "IU" | import("@kingstinct/react-native-healthkit").BloodGlucoseUnit | "ps" | "ns" | "mcs" | "cs" | "ds" | "das" | "hs" | "ks" | "Ms" | "Gs" | "Ts" | "fs" | import("@kingstinct/react-native-healthkit").UnitOfTime | "J" | "pJ" | "nJ" | "mcJ" | "mJ" | "cJ" | "dJ" | "daJ" | "hJ" | "kJ" | "MJ" | "GJ" | "TJ" | "fJ" | UnitOfEnergy | "pm" | "nm" | "mcm" | "mm" | "cm" | "dm" | "dam" | "hm" | "Mm" | "Gm" | "Tm" | "fm" | import("@kingstinct/react-native-healthkit").UnitOfLength | import("@kingstinct/react-native-healthkit").HKUnits | import("@kingstinct/react-native-healthkit").TemperatureUnit | "km/ms" | "km/s" | "km/ps" | "km/ns" | "km/mcs" | "km/cs" | "km/ds" | "km/das" | "km/hs" | "km/ks" | "km/Ms" | "km/Gs" | "km/Ts" | "km/fs" | "km/d" | "km/min" | "km/hr" | "m/ms" | "m/s" | "m/ps" | "m/ns" | "m/mcs" | "m/cs" | "m/ds" | "m/das" | "m/hs" | "m/ks" | "m/Ms" | "m/Gs" | "m/Ts" | "m/fs" | "m/d" | "m/min" | "m/hr" | "pm/ms" | "pm/s" | "pm/ps" | "pm/ns" | "pm/mcs" | "pm/cs" | "pm/ds" | "pm/das" | "pm/hs" | "pm/ks" | "pm/Ms" | "pm/Gs" | "pm/Ts" | "pm/fs" | "pm/d" | "pm/min" | "pm/hr" | "nm/ms" | "nm/s" | "nm/ps" | "nm/ns" | "nm/mcs" | "nm/cs" | "nm/ds" | "nm/das" | "nm/hs" | "nm/ks" | "nm/Ms" | "nm/Gs" | "nm/Ts" | "nm/fs" | "nm/d" | "nm/min" | "nm/hr" | "mcm/ms" | "mcm/s" | "mcm/ps" | "mcm/ns" | "mcm/mcs" | "mcm/cs" | "mcm/ds" | "mcm/das" | "mcm/hs" | "mcm/ks" | "mcm/Ms" | "mcm/Gs" | "mcm/Ts" | "mcm/fs" | "mcm/d" | "mcm/min" | "mcm/hr" | "mm/ms" | "mm/s" | "mm/ps" | "mm/ns" | "mm/mcs" | "mm/cs" | "mm/ds" | "mm/das" | "mm/hs" | "mm/ks" | "mm/Ms" | "mm/Gs" | "mm/Ts" | "mm/fs" | "mm/d" | "mm/min" | "mm/hr" | "cm/ms" | "cm/s" | "cm/ps" | "cm/ns" | "cm/mcs" | "cm/cs" | "cm/ds" | "cm/das" | "cm/hs" | "cm/ks" | "cm/Ms" | "cm/Gs" | "cm/Ts" | "cm/fs" | "cm/d" | "cm/min" | "cm/hr" | "dm/ms" | "dm/s" | "dm/ps" | "dm/ns" | "dm/mcs" | "dm/cs" | "dm/ds" | "dm/das" | "dm/hs" | "dm/ks" | "dm/Ms" | "dm/Gs" | "dm/Ts" | "dm/fs" | "dm/d" | "dm/min" | "dm/hr" | "dam/ms" | "dam/s" | "dam/ps" | "dam/ns" | "dam/mcs" | "dam/cs" | "dam/ds" | "dam/das" | "dam/hs" | "dam/ks" | "dam/Ms" | "dam/Gs" | "dam/Ts" | "dam/fs" | "dam/d" | "dam/min" | "dam/hr" | "hm/ms" | "hm/s" | "hm/ps" | "hm/ns" | "hm/mcs" | "hm/cs" | "hm/ds" | "hm/das" | "hm/hs" | "hm/ks" | "hm/Ms" | "hm/Gs" | "hm/Ts" | "hm/fs" | "hm/d" | "hm/min" | "hm/hr" | "Mm/ms" | "Mm/s" | "Mm/ps" | "Mm/ns" | "Mm/mcs" | "Mm/cs" | "Mm/ds" | "Mm/das" | "Mm/hs" | "Mm/ks" | "Mm/Ms" | "Mm/Gs" | "Mm/Ts" | "Mm/fs" | "Mm/d" | "Mm/min" | "Mm/hr" | "Gm/ms" | "Gm/s" | "Gm/ps" | "Gm/ns" | "Gm/mcs" | "Gm/cs" | "Gm/ds" | "Gm/das" | "Gm/hs" | "Gm/ks" | "Gm/Ms" | "Gm/Gs" | "Gm/Ts" | "Gm/fs" | "Gm/d" | "Gm/min" | "Gm/hr" | "Tm/ms" | "Tm/s" | "Tm/ps" | "Tm/ns" | "Tm/mcs" | "Tm/cs" | "Tm/ds" | "Tm/das" | "Tm/hs" | "Tm/ks" | "Tm/Ms" | "Tm/Gs" | "Tm/Ts" | "Tm/fs" | "Tm/d" | "Tm/min" | "Tm/hr" | "fm/ms" | "fm/s" | "fm/ps" | "fm/ns" | "fm/mcs" | "fm/cs" | "fm/ds" | "fm/das" | "fm/hs" | "fm/ks" | "fm/Ms" | "fm/Gs" | "fm/Ts" | "fm/fs" | "fm/d" | "fm/min" | "fm/hr" | "ft/ms" | "ft/s" | "ft/ps" | "ft/ns" | "ft/mcs" | "ft/cs" | "ft/ds" | "ft/das" | "ft/hs" | "ft/ks" | "ft/Ms" | "ft/Gs" | "ft/Ts" | "ft/fs" | "ft/d" | "ft/min" | "ft/hr" | "in/ms" | "in/s" | "in/ps" | "in/ns" | "in/mcs" | "in/cs" | "in/ds" | "in/das" | "in/hs" | "in/ks" | "in/Ms" | "in/Gs" | "in/Ts" | "in/fs" | "in/d" | "in/min" | "in/hr" | "yd/ms" | "yd/s" | "yd/ps" | "yd/ns" | "yd/mcs" | "yd/cs" | "yd/ds" | "yd/das" | "yd/hs" | "yd/ks" | "yd/Ms" | "yd/Gs" | "yd/Ts" | "yd/fs" | "yd/d" | "yd/min" | "yd/hr" | "mi/ms" | "mi/s" | "mi/ps" | "mi/ns" | "mi/mcs" | "mi/cs" | "mi/ds" | "mi/das" | "mi/hs" | "mi/ks" | "mi/Ms" | "mi/Gs" | "mi/Ts" | "mi/fs" | "mi/d" | "mi/min" | "mi/hr" | "pg" | "ng" | "mcg" | "cg" | "dg" | "dag" | "hg" | "Mg" | "Gg" | "Tg" | "fg" | import("@kingstinct/react-native-healthkit").UnitOfMass | "l" | "pl" | "nl" | "mcl" | "ml" | "cl" | "dl" | "dal" | "hl" | "kl" | "Ml" | "Gl" | "Tl" | "fl" | import("@kingstinct/react-native-healthkit").UnitOfVolume | "count/ms" | "count/s" | "count/ps" | "count/ns" | "count/mcs" | "count/cs" | "count/ds" | "count/das" | "count/hs" | "count/ks" | "count/Ms" | "count/Gs" | "count/Ts" | "count/fs" | "count/d" | "count/hr" | "Hz" | "pHz" | "nHz" | "mcHz" | "mHz" | "cHz" | "dHz" | "daHz" | "hHz" | "kHz" | "MHz" | "GHz" | "THz" | "fHz" | "Pa" | "pPa" | "nPa" | "mcPa" | "mPa" | "cPa" | "dPa" | "daPa" | "hPa" | "kPa" | "MPa" | "GPa" | "TPa" | "fPa" | import("@kingstinct/react-native-healthkit").UnitOfPressure | "mmol<180.15588000005408>/l" | "Cal" | "dBHL" | "dBASPL" | "appleEffortScore" | "ft" | "in" | "yd" | "mi" | "oz" | "st" | "lb" | "atm" | "cmAq" | "inHg" | "degF" | "K" | "d" | "hr" | "cup_imp" | "fl_oz_imp" | "pt_imp" | "cup_us" | "fl_oz_us" | "pt_us">[];
30
+ data: unknown[];
60
31
  } | {
32
+ hasMore: boolean;
61
33
  anchor: {
62
- typeIdentifier: AppleHealthDataTypeIdentifier;
34
+ typeIdentifier: import("@kingstinct/react-native-healthkit").SampleTypeIdentifier;
63
35
  anchor: string;
64
36
  } | undefined;
65
37
  deletedRecordIds?: undefined;
66
- data: import("@kingstinct/react-native-healthkit").HKQuantitySample<HKQuantityTypeIdentifier, "%" | "cal" | "g" | "kcal" | "kg" | "km" | "m" | "mg" | "mg/dL" | "min" | "ms" | "s" | "count" | "count/min" | "degC" | "mmHg" | "IU" | import("@kingstinct/react-native-healthkit").BloodGlucoseUnit | "ps" | "ns" | "mcs" | "cs" | "ds" | "das" | "hs" | "ks" | "Ms" | "Gs" | "Ts" | "fs" | import("@kingstinct/react-native-healthkit").UnitOfTime | "J" | "pJ" | "nJ" | "mcJ" | "mJ" | "cJ" | "dJ" | "daJ" | "hJ" | "kJ" | "MJ" | "GJ" | "TJ" | "fJ" | UnitOfEnergy | "pm" | "nm" | "mcm" | "mm" | "cm" | "dm" | "dam" | "hm" | "Mm" | "Gm" | "Tm" | "fm" | import("@kingstinct/react-native-healthkit").UnitOfLength | import("@kingstinct/react-native-healthkit").HKUnits | import("@kingstinct/react-native-healthkit").TemperatureUnit | "km/ms" | "km/s" | "km/ps" | "km/ns" | "km/mcs" | "km/cs" | "km/ds" | "km/das" | "km/hs" | "km/ks" | "km/Ms" | "km/Gs" | "km/Ts" | "km/fs" | "km/d" | "km/min" | "km/hr" | "m/ms" | "m/s" | "m/ps" | "m/ns" | "m/mcs" | "m/cs" | "m/ds" | "m/das" | "m/hs" | "m/ks" | "m/Ms" | "m/Gs" | "m/Ts" | "m/fs" | "m/d" | "m/min" | "m/hr" | "pm/ms" | "pm/s" | "pm/ps" | "pm/ns" | "pm/mcs" | "pm/cs" | "pm/ds" | "pm/das" | "pm/hs" | "pm/ks" | "pm/Ms" | "pm/Gs" | "pm/Ts" | "pm/fs" | "pm/d" | "pm/min" | "pm/hr" | "nm/ms" | "nm/s" | "nm/ps" | "nm/ns" | "nm/mcs" | "nm/cs" | "nm/ds" | "nm/das" | "nm/hs" | "nm/ks" | "nm/Ms" | "nm/Gs" | "nm/Ts" | "nm/fs" | "nm/d" | "nm/min" | "nm/hr" | "mcm/ms" | "mcm/s" | "mcm/ps" | "mcm/ns" | "mcm/mcs" | "mcm/cs" | "mcm/ds" | "mcm/das" | "mcm/hs" | "mcm/ks" | "mcm/Ms" | "mcm/Gs" | "mcm/Ts" | "mcm/fs" | "mcm/d" | "mcm/min" | "mcm/hr" | "mm/ms" | "mm/s" | "mm/ps" | "mm/ns" | "mm/mcs" | "mm/cs" | "mm/ds" | "mm/das" | "mm/hs" | "mm/ks" | "mm/Ms" | "mm/Gs" | "mm/Ts" | "mm/fs" | "mm/d" | "mm/min" | "mm/hr" | "cm/ms" | "cm/s" | "cm/ps" | "cm/ns" | "cm/mcs" | "cm/cs" | "cm/ds" | "cm/das" | "cm/hs" | "cm/ks" | "cm/Ms" | "cm/Gs" | "cm/Ts" | "cm/fs" | "cm/d" | "cm/min" | "cm/hr" | "dm/ms" | "dm/s" | "dm/ps" | "dm/ns" | "dm/mcs" | "dm/cs" | "dm/ds" | "dm/das" | "dm/hs" | "dm/ks" | "dm/Ms" | "dm/Gs" | "dm/Ts" | "dm/fs" | "dm/d" | "dm/min" | "dm/hr" | "dam/ms" | "dam/s" | "dam/ps" | "dam/ns" | "dam/mcs" | "dam/cs" | "dam/ds" | "dam/das" | "dam/hs" | "dam/ks" | "dam/Ms" | "dam/Gs" | "dam/Ts" | "dam/fs" | "dam/d" | "dam/min" | "dam/hr" | "hm/ms" | "hm/s" | "hm/ps" | "hm/ns" | "hm/mcs" | "hm/cs" | "hm/ds" | "hm/das" | "hm/hs" | "hm/ks" | "hm/Ms" | "hm/Gs" | "hm/Ts" | "hm/fs" | "hm/d" | "hm/min" | "hm/hr" | "Mm/ms" | "Mm/s" | "Mm/ps" | "Mm/ns" | "Mm/mcs" | "Mm/cs" | "Mm/ds" | "Mm/das" | "Mm/hs" | "Mm/ks" | "Mm/Ms" | "Mm/Gs" | "Mm/Ts" | "Mm/fs" | "Mm/d" | "Mm/min" | "Mm/hr" | "Gm/ms" | "Gm/s" | "Gm/ps" | "Gm/ns" | "Gm/mcs" | "Gm/cs" | "Gm/ds" | "Gm/das" | "Gm/hs" | "Gm/ks" | "Gm/Ms" | "Gm/Gs" | "Gm/Ts" | "Gm/fs" | "Gm/d" | "Gm/min" | "Gm/hr" | "Tm/ms" | "Tm/s" | "Tm/ps" | "Tm/ns" | "Tm/mcs" | "Tm/cs" | "Tm/ds" | "Tm/das" | "Tm/hs" | "Tm/ks" | "Tm/Ms" | "Tm/Gs" | "Tm/Ts" | "Tm/fs" | "Tm/d" | "Tm/min" | "Tm/hr" | "fm/ms" | "fm/s" | "fm/ps" | "fm/ns" | "fm/mcs" | "fm/cs" | "fm/ds" | "fm/das" | "fm/hs" | "fm/ks" | "fm/Ms" | "fm/Gs" | "fm/Ts" | "fm/fs" | "fm/d" | "fm/min" | "fm/hr" | "ft/ms" | "ft/s" | "ft/ps" | "ft/ns" | "ft/mcs" | "ft/cs" | "ft/ds" | "ft/das" | "ft/hs" | "ft/ks" | "ft/Ms" | "ft/Gs" | "ft/Ts" | "ft/fs" | "ft/d" | "ft/min" | "ft/hr" | "in/ms" | "in/s" | "in/ps" | "in/ns" | "in/mcs" | "in/cs" | "in/ds" | "in/das" | "in/hs" | "in/ks" | "in/Ms" | "in/Gs" | "in/Ts" | "in/fs" | "in/d" | "in/min" | "in/hr" | "yd/ms" | "yd/s" | "yd/ps" | "yd/ns" | "yd/mcs" | "yd/cs" | "yd/ds" | "yd/das" | "yd/hs" | "yd/ks" | "yd/Ms" | "yd/Gs" | "yd/Ts" | "yd/fs" | "yd/d" | "yd/min" | "yd/hr" | "mi/ms" | "mi/s" | "mi/ps" | "mi/ns" | "mi/mcs" | "mi/cs" | "mi/ds" | "mi/das" | "mi/hs" | "mi/ks" | "mi/Ms" | "mi/Gs" | "mi/Ts" | "mi/fs" | "mi/d" | "mi/min" | "mi/hr" | "pg" | "ng" | "mcg" | "cg" | "dg" | "dag" | "hg" | "Mg" | "Gg" | "Tg" | "fg" | import("@kingstinct/react-native-healthkit").UnitOfMass | "l" | "pl" | "nl" | "mcl" | "ml" | "cl" | "dl" | "dal" | "hl" | "kl" | "Ml" | "Gl" | "Tl" | "fl" | import("@kingstinct/react-native-healthkit").UnitOfVolume | "count/ms" | "count/s" | "count/ps" | "count/ns" | "count/mcs" | "count/cs" | "count/ds" | "count/das" | "count/hs" | "count/ks" | "count/Ms" | "count/Gs" | "count/Ts" | "count/fs" | "count/d" | "count/hr" | "Hz" | "pHz" | "nHz" | "mcHz" | "mHz" | "cHz" | "dHz" | "daHz" | "hHz" | "kHz" | "MHz" | "GHz" | "THz" | "fHz" | "Pa" | "pPa" | "nPa" | "mcPa" | "mPa" | "cPa" | "dPa" | "daPa" | "hPa" | "kPa" | "MPa" | "GPa" | "TPa" | "fPa" | import("@kingstinct/react-native-healthkit").UnitOfPressure | "mmol<180.15588000005408>/l" | "Cal" | "dBHL" | "dBASPL" | "appleEffortScore" | "ft" | "in" | "yd" | "mi" | "oz" | "st" | "lb" | "atm" | "cmAq" | "inHg" | "degF" | "K" | "d" | "hr" | "cup_imp" | "fl_oz_imp" | "pt_imp" | "cup_us" | "fl_oz_us" | "pt_us">[];
67
- } | {
68
- data: import("@kingstinct/react-native-healthkit").HKCorrelation<HKCorrelationTypeIdentifier>[];
69
- anchor: undefined;
70
- } | {
71
- data: import("@kingstinct/react-native-healthkit").HKStateOfMindSampleRaw[];
72
- anchor: undefined;
38
+ data: unknown[];
73
39
  }>;
74
40
  export { getSamplesFromHealth };
75
41
  //# sourceMappingURL=get-samples-from-health.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-samples-from-health.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/get-samples-from-health.ts"],"names":[],"mappings":"AAAA,OAAkB,EAChB,2BAA2B,EAC3B,wBAAwB,EACxB,wBAAwB,EAGxB,YAAY,EACb,MAAM,oCAAoC,CAAC;AAI5C,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAe5D,QAAA,MAAM,oBAAoB,GAAU,qEAMjC,wBAAwB,CAAC,6BAA6B,CAAC;;;;UA2IvC,oBAAoB,EAAE;YAAU,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA7B3D,CAAC;AAwFF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"get-samples-from-health.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/get-samples-from-health.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AA2BjF,QAAA,MAAM,oBAAoB,GAAU,qEAMjC,wBAAwB,CAAC,6BAA6B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8GzD,CAAC;AAmBF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-total-samples-count.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/get-total-samples-count.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAKpE,eAAO,MAAM,oBAAoB,GAC/B,OAAO,kBAAkB,CAAC,6BAA6B,CAAC,KACvD,OAAO,CAAC,MAAM,CA8BhB,CAAC"}
1
+ {"version":3,"file":"get-total-samples-count.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/get-total-samples-count.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAOpE,eAAO,MAAM,oBAAoB,GAC/B,OAAO,kBAAkB,CAAC,6BAA6B,CAAC,KACvD,OAAO,CAAC,MAAM,CA8BhB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"health-data-catalog.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/health-data-catalog.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAU/D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAiC3D,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,QAAQ,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,SAAS,cAAc,EAAE,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,cAAc,GAAG,gBAAgB,CAAC;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EACD,eAAe,GACf,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,gBAAgB,GAChB,UAAU,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,aAAa,GAAG,SAAS,GAAG,eAAe,CAAC;IAC1D,gBAAgB,EAAE,MAAM,CAAC;IACzB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AA60BF,sFAAsF;AACtF,QAAA,MAAM,mBAAmB,EAAE,SAAS,sBAAsB,EAYtD,CAAC;AAEL,yEAAyE;AACzE,QAAA,MAAM,mBAAmB,GACvB,UAAU,cAAc,EACxB,YAAY,MAAM,EAClB,MAAM,cAAc,KACnB;IAED,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IAEb,iCAAiC;IACjC,MAAM,EAAE,MAAM,CAAC;IAEf,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;CA2BlB,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"health-data-catalog.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/health-data-catalog.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAU/D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAiC3D,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,QAAQ,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,SAAS,cAAc,EAAE,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,cAAc,GAAG,gBAAgB,CAAC;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EACD,eAAe,GACf,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,gBAAgB,GAChB,UAAU,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,aAAa,GAAG,SAAS,GAAG,eAAe,CAAC;IAC1D,gBAAgB,EAAE,MAAM,CAAC;IACzB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAq1BF,sFAAsF;AACtF,QAAA,MAAM,mBAAmB,EAAE,SAAS,sBAAsB,EAYtD,CAAC;AAEL,yEAAyE;AACzE,QAAA,MAAM,mBAAmB,GACvB,UAAU,cAAc,EACxB,YAAY,MAAM,EAClB,MAAM,cAAc,KACnB;IAED,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IAEb,iCAAiC;IACjC,MAAM,EAAE,MAAM,CAAC;IAEf,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;CA2BlB,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1,3 +1,3 @@
1
- import type { HKQuantityTypeIdentifier, UnitForIdentifier } from "@kingstinct/react-native-healthkit";
2
- export declare const healthUnitFor: <T extends HKQuantityTypeIdentifier>(typeIdentifier: T) => UnitForIdentifier<T> | undefined;
1
+ import type { QuantityTypeIdentifier, UnitForIdentifier } from "@kingstinct/react-native-healthkit";
2
+ export declare const healthUnitFor: <T extends QuantityTypeIdentifier>(typeIdentifier: T) => UnitForIdentifier<T> | undefined;
3
3
  //# sourceMappingURL=health-units.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"health-units.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/health-units.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,iBAAiB,EAClB,MAAM,oCAAoC,CAAC;AA6B5C,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,wBAAwB,EAC9D,gBAAgB,CAAC,KAChB,iBAAiB,CAAC,CAAC,CAAC,GAAG,SACwC,CAAC"}
1
+ {"version":3,"file":"health-units.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/health-units.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,oCAAoC,CAAC;AA6B5C,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,sBAAsB,EAC5D,gBAAgB,CAAC,KAChB,iBAAiB,CAAC,CAAC,CAAC,GAAG,SACwC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { QuantityTypeIdentifier } from "@kingstinct/react-native-healthkit";
2
+ import { AggregatedHealthData } from "../types/health-data";
3
+ import { HealthDataMode } from "../types/health-sync-keys";
4
+ /** The finished days from `startDate`, one item a day, from HealthKit's own total or average. */
5
+ declare const getDailyStatistics: (typeIdentifier: QuantityTypeIdentifier, mode: Extract<HealthDataMode, "daily-total" | "daily-summary">, startDate: Date, endDate: Date) => Promise<{
6
+ data: AggregatedHealthData[];
7
+ anchor: undefined;
8
+ }>;
9
+ export { getDailyStatistics };
10
+ //# sourceMappingURL=healthkit-daily-statistics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"healthkit-daily-statistics.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/healthkit-daily-statistics.ts"],"names":[],"mappings":"AAAA,OAAkB,EAChB,sBAAsB,EAEvB,MAAM,oCAAoC,CAAC;AAG5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAY3D,iGAAiG;AACjG,QAAA,MAAM,kBAAkB,GACtB,gBAAgB,sBAAsB,EACtC,MAAM,OAAO,CAAC,cAAc,EAAE,aAAa,GAAG,eAAe,CAAC,EAC9D,WAAW,IAAI,EACf,SAAS,IAAI,KACZ,OAAO,CAAC;IAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;IAAC,MAAM,EAAE,SAAS,CAAA;CAAE,CAoD7D,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
@@ -1,9 +1,9 @@
1
- import { HKCategoryTypeIdentifier, HKCorrelationTypeIdentifier, HKQuantityTypeIdentifier } from "@kingstinct/react-native-healthkit";
1
+ import type { CategoryTypeIdentifier, CorrelationTypeIdentifier, QuantityTypeIdentifier } from "@kingstinct/react-native-healthkit";
2
2
  import { AppleHealthDataTypeIdentifier } from "../types/apple-health-sync-props";
3
- declare const isCategoryIdentifier: (typeIdentifier: AppleHealthDataTypeIdentifier) => typeIdentifier is HKCategoryTypeIdentifier;
4
- declare const isQuantityIdentifier: (typeIdentifier: AppleHealthDataTypeIdentifier) => typeIdentifier is HKQuantityTypeIdentifier;
5
- declare const isCorrelationIdentifier: (typeIdentifier: AppleHealthDataTypeIdentifier) => typeIdentifier is HKCorrelationTypeIdentifier;
6
- declare const unsupportedHealthKitTypeReason: (typeIdentifier: AppleHealthDataTypeIdentifier) => string;
3
+ declare const isCategoryIdentifier: (typeIdentifier: AppleHealthDataTypeIdentifier) => typeIdentifier is CategoryTypeIdentifier;
4
+ declare const isQuantityIdentifier: (typeIdentifier: AppleHealthDataTypeIdentifier) => typeIdentifier is QuantityTypeIdentifier;
5
+ declare const isCorrelationIdentifier: (typeIdentifier: AppleHealthDataTypeIdentifier) => typeIdentifier is CorrelationTypeIdentifier;
6
+ declare const unsupportedHealthKitTypeReason: (typeIdentifier: string) => string;
7
7
  declare class UnsupportedHealthKitDataError extends Error {
8
8
  readonly typeIdentifier: string;
9
9
  constructor(typeIdentifier: string, reason: string);
@@ -1 +1 @@
1
- {"version":3,"file":"healthkit-data-types.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/healthkit-data-types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,2BAA2B,EAC3B,wBAAwB,EACzB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAEjF,QAAA,MAAM,oBAAoB,GACxB,gBAAgB,6BAA6B,KAC5C,cAAc,IAAI,wBAEkC,CAAC;AAExD,QAAA,MAAM,oBAAoB,GACxB,gBAAgB,6BAA6B,KAC5C,cAAc,IAAI,wBAEkC,CAAC;AAExD,QAAA,MAAM,uBAAuB,GAC3B,gBAAgB,6BAA6B,KAC5C,cAAc,IAAI,2BAEqC,CAAC;AAE3D,QAAA,MAAM,8BAA8B,GAClC,gBAAgB,6BAA6B,KAC5C,MAWF,CAAC;AAEF,cAAM,6BAA8B,SAAQ,KAAK;IAE7C,QAAQ,CAAC,cAAc,EAAE,MAAM;gBAAtB,cAAc,EAAE,MAAM,EAC/B,MAAM,EAAE,MAAM;CAKjB;AAED,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,6BAA6B,EAC7B,8BAA8B,GAC/B,CAAC"}
1
+ {"version":3,"file":"healthkit-data-types.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/healthkit-data-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,yBAAyB,EACzB,sBAAsB,EACvB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAEjF,QAAA,MAAM,oBAAoB,GACxB,gBAAgB,6BAA6B,KAC5C,cAAc,IAAI,sBAEkC,CAAC;AAExD,QAAA,MAAM,oBAAoB,GACxB,gBAAgB,6BAA6B,KAC5C,cAAc,IAAI,sBAEkC,CAAC;AAExD,QAAA,MAAM,uBAAuB,GAC3B,gBAAgB,6BAA6B,KAC5C,cAAc,IAAI,yBAEqC,CAAC;AAE3D,QAAA,MAAM,8BAA8B,GAAI,gBAAgB,MAAM,KAAG,MAWhE,CAAC;AAEF,cAAM,6BAA8B,SAAQ,KAAK;IAE7C,QAAQ,CAAC,cAAc,EAAE,MAAM;gBAAtB,cAAc,EAAE,MAAM,EAC/B,MAAM,EAAE,MAAM;CAKjB;AAED,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,6BAA6B,EAC7B,8BAA8B,GAC/B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { FilterForSamples } from "@kingstinct/react-native-healthkit";
2
+ /** HealthKit takes any limit that is not positive as "no limit". */
3
+ declare const ALL_SAMPLES = 0;
4
+ /** Only samples that start and end inside the window; HealthKit also returns the ones that overlap it by default. */
5
+ declare const strictDateWindow: (startDate: Date | undefined, endDate: Date) => FilterForSamples;
6
+ export { ALL_SAMPLES, strictDateWindow };
7
+ //# sourceMappingURL=healthkit-query-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"healthkit-query-options.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/healthkit-query-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAE3E,oEAAoE;AACpE,QAAA,MAAM,WAAW,IAAI,CAAC;AAEtB,qHAAqH;AACrH,QAAA,MAAM,gBAAgB,GACpB,WAAW,IAAI,GAAG,SAAS,EAC3B,SAAS,IAAI,KACZ,gBAED,CAAC;AAEH,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { QuantitySample } from "@kingstinct/react-native-healthkit";
2
+ import { ObservationSource } from "./to-core-health-observations";
3
+ type HealthKitSampleSource = Pick<QuantitySample, "device" | "sourceRevision" | "startDate" | "endDate">;
4
+ /** The device a HealthKit sample came from, and the interval it was recorded over. */
5
+ declare const getHealthKitSampleSource: (sample: HealthKitSampleSource | undefined) => ObservationSource;
6
+ export { getHealthKitSampleSource };
7
+ export type { HealthKitSampleSource };
8
+ //# sourceMappingURL=healthkit-sample-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"healthkit-sample-source.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/healthkit-sample-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAGzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,KAAK,qBAAqB,GAAG,IAAI,CAC/B,cAAc,EACd,QAAQ,GAAG,gBAAgB,GAAG,WAAW,GAAG,SAAS,CACtD,CAAC;AAEF,sFAAsF;AACtF,QAAA,MAAM,wBAAwB,GAC5B,QAAQ,qBAAqB,GAAG,SAAS,KACxC,iBASD,CAAC;AAEH,OAAO,EAAE,wBAAwB,EAAE,CAAC;AACpC,YAAY,EAAE,qBAAqB,EAAE,CAAC"}
@@ -0,0 +1,30 @@
1
+ import type { CorrelationSample, Quantity, WorkoutProxyTyped } from "@kingstinct/react-native-healthkit";
2
+ declare const toPlainSample: (sample: object) => {
3
+ [k: string]: any;
4
+ };
5
+ declare const toPlainCorrelation: (correlation: CorrelationSample) => {
6
+ objects: {
7
+ [k: string]: any;
8
+ }[];
9
+ };
10
+ declare const toEcgRecord: (sample: object) => {
11
+ [k: string]: any;
12
+ };
13
+ /** A v16 workout is a native object that spreads to nothing: read it with `toJSON()` into the shape v8 returned. */
14
+ declare const toWorkoutRecord: (workout: WorkoutProxyTyped) => {
15
+ duration: number;
16
+ totalDistance: Quantity | undefined;
17
+ events: {
18
+ startDate: string;
19
+ endDate: string;
20
+ type: import("@kingstinct/react-native-healthkit").WorkoutEventType;
21
+ }[];
22
+ activities: {
23
+ uuid: string;
24
+ duration: number;
25
+ startDate: string;
26
+ endDate: string;
27
+ }[];
28
+ };
29
+ export { toEcgRecord, toPlainCorrelation, toPlainSample, toWorkoutRecord, };
30
+ //# sourceMappingURL=healthkit-samples.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"healthkit-samples.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/healthkit-samples.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,QAAQ,EACR,iBAAiB,EAClB,MAAM,oCAAoC,CAAC;AAwB5C,QAAA,MAAM,aAAa,GAAI,QAAQ,MAAM;;CACO,CAAC;AAE7C,QAAA,MAAM,kBAAkB,GAAI,aAAa,iBAAiB;;;;CAGxD,CAAC;AAEH,QAAA,MAAM,WAAW,GAAI,QAAQ,MAAM;;CACe,CAAC;AAgBnD,oHAAoH;AACpH,QAAA,MAAM,eAAe,GAAI,SAAS,iBAAiB;;;;;;;;;;;;;;CAiBlD,CAAC;AAEF,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,eAAe,GAChB,CAAC"}
@@ -1,10 +1,10 @@
1
- import { HKQuantityTypeIdentifier } from "@kingstinct/react-native-healthkit";
1
+ import { QuantityTypeIdentifier } from "@kingstinct/react-native-healthkit";
2
2
  import { SeriesHealthData } from "../types/health-data";
3
3
  /**
4
4
  * The finished hours from `startDate`, one `series` item an hour, from HealthKit's own average a minute: it follows
5
5
  * the user's source priority where a watch and another app both recorded. Read a day at a time.
6
6
  */
7
- declare const getHealthKitSeries: (typeIdentifier: HKQuantityTypeIdentifier, startDate: Date) => Promise<{
7
+ declare const getHealthKitSeries: (typeIdentifier: QuantityTypeIdentifier, startDate: Date) => Promise<{
8
8
  data: SeriesHealthData[];
9
9
  anchor: undefined;
10
10
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"healthkit-series.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/healthkit-series.ts"],"names":[],"mappings":"AAAA,OAAkB,EAAE,wBAAwB,EAAuB,MAAM,oCAAoC,CAAC;AAG9G,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAKxD;;;GAGG;AACH,QAAA,MAAM,kBAAkB,GACtB,gBAAgB,wBAAwB,EACxC,WAAW,IAAI,KACd,OAAO,CAAC;IAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;IAAC,MAAM,EAAE,SAAS,CAAA;CAAE,CA6BzD,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"healthkit-series.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/healthkit-series.ts"],"names":[],"mappings":"AAAA,OAAkB,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAEvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAKxD;;;GAGG;AACH,QAAA,MAAM,kBAAkB,GACtB,gBAAgB,sBAAsB,EACtC,WAAW,IAAI,KACd,OAAO,CAAC;IAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;IAAC,MAAM,EAAE,SAAS,CAAA;CAAE,CAyBzD,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
@@ -10,4 +10,5 @@ declare const isCoreMeasurementTypeKey: (value: string) => value is MeasurementT
10
10
  /** Adds the source device and timing to each core-service Observation, then normalises its coding. */
11
11
  declare const toCoreHealthObservations: (observations: Observation[], props: ConvertDataProps<unknown>, sourceAt: (index: number) => ObservationSource) => Observation[];
12
12
  export { isCoreMeasurementTypeKey, toCoreHealthObservations };
13
+ export type { ObservationSource };
13
14
  //# sourceMappingURL=to-core-health-observations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"to-core-health-observations.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/to-core-health-observations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAGhE,KAAK,iBAAiB,GAAG;IACvB,MAAM,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC/B,MAAM,EAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC;CACtD,CAAC;AAEF,QAAA,MAAM,wBAAwB,GAC5B,OAAO,MAAM,KACZ,KAAK,IAAI,kBAC6D,CAAC;AAE1E,sGAAsG;AACtG,QAAA,MAAM,wBAAwB,GAC5B,cAAc,WAAW,EAAE,EAC3B,OAAO,gBAAgB,CAAC,OAAO,CAAC,EAChC,UAAU,CAAC,KAAK,EAAE,MAAM,KAAK,iBAAiB,KAC7C,WAAW,EAmBV,CAAC;AAEL,OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,CAAC"}
1
+ {"version":3,"file":"to-core-health-observations.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/to-core-health-observations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAGhE,KAAK,iBAAiB,GAAG;IACvB,MAAM,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC/B,MAAM,EAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC;CACtD,CAAC;AAEF,QAAA,MAAM,wBAAwB,GAC5B,OAAO,MAAM,KACZ,KAAK,IAAI,kBAC6D,CAAC;AAE1E,sGAAsG;AACtG,QAAA,MAAM,wBAAwB,GAC5B,cAAc,WAAW,EAAE,EAC3B,OAAO,gBAAgB,CAAC,OAAO,CAAC,EAChC,UAAU,CAAC,KAAK,EAAE,MAAM,KAAK,iBAAiB,KAC7C,WAAW,EAmBV,CAAC;AAEL,OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,CAAC;AAC9D,YAAY,EAAE,iBAAiB,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ovok/native",
3
- "version": "1.16.1-dev.2173+872907c",
3
+ "version": "1.16.1-dev.2175+4688d00",
4
4
  "description": "React native component sdk for OVOK",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -100,7 +100,7 @@
100
100
  "@expo-google-fonts/dm-sans": "^0.4.2",
101
101
  "@expo/config-plugins": "~57.0.9",
102
102
  "@gorhom/bottom-sheet": "^5.2.14",
103
- "@kingstinct/react-native-healthkit": "^8.5.0",
103
+ "@kingstinct/react-native-healthkit": "^16.2.0",
104
104
  "@medplum/core": "3.2.23",
105
105
  "@medplum/fhirtypes": "^3.2.22",
106
106
  "@medplum/react-hooks": "3.2.23",
@@ -164,6 +164,7 @@
164
164
  "react-native-health-connect": "^3.5.3",
165
165
  "react-native-keyboard-controller": "1.21.9",
166
166
  "react-native-modal-datetime-picker": "^18.0.0",
167
+ "react-native-nitro-modules": "^0.37.1",
167
168
  "react-native-paper": "^5.13.1",
168
169
  "react-native-pdf": "^6.7.7",
169
170
  "react-native-permissions": "^5.6.0",
@@ -187,7 +188,7 @@
187
188
  "@expo-google-fonts/dm-sans": "*",
188
189
  "@expo/config-plugins": "*",
189
190
  "@gorhom/bottom-sheet": "*",
190
- "@kingstinct/react-native-healthkit": "*",
191
+ "@kingstinct/react-native-healthkit": ">=16.2.0",
191
192
  "@opentelemetry/api": "^1.9.1",
192
193
  "@opentelemetry/api-logs": "^0.222.0",
193
194
  "@ovok/core": ">=0.4.49-dev.503 || >=0.4.49-0",
@@ -222,6 +223,7 @@
222
223
  "react-native-health-connect": "*",
223
224
  "react-native-keyboard-controller": "*",
224
225
  "react-native-modal-datetime-picker": "*",
226
+ "react-native-nitro-modules": ">=0.35",
225
227
  "react-native-paper": "*",
226
228
  "react-native-pdf": "*",
227
229
  "react-native-permissions": "*",
@@ -344,6 +346,9 @@
344
346
  "react-native-modal-datetime-picker": {
345
347
  "optional": true
346
348
  },
349
+ "react-native-nitro-modules": {
350
+ "optional": true
351
+ },
347
352
  "react-native-paper": {
348
353
  "optional": true
349
354
  },