@ovok/native 1.16.1-rc.6 → 1.16.1-rc.7

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 (545) hide show
  1. package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js +19 -7
  2. package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
  3. package/lib/commonjs/modules/bt-management/hooks/runtime-context.js.map +1 -1
  4. package/lib/commonjs/modules/bt-management/index.js +12 -0
  5. package/lib/commonjs/modules/bt-management/index.js.map +1 -1
  6. package/lib/commonjs/modules/bt-management/services/bt-manager.js +27 -1
  7. package/lib/commonjs/modules/bt-management/services/bt-manager.js.map +1 -1
  8. package/lib/commonjs/modules/bt-management/services/custom/compile-custom-lepu.js +39 -0
  9. package/lib/commonjs/modules/bt-management/services/custom/compile-custom-lepu.js.map +1 -1
  10. package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.device.js +36 -10
  11. package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.device.js.map +1 -1
  12. package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.frame-reader.js +2 -2
  13. package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.frame-reader.js.map +1 -1
  14. package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js +69 -25
  15. package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js.map +1 -1
  16. package/lib/commonjs/modules/bt-management/services/devices/bt-command-writer.js +30 -2
  17. package/lib/commonjs/modules/bt-management/services/devices/bt-command-writer.js.map +1 -1
  18. package/lib/commonjs/modules/bt-management/services/devices/bt-data-processor.js +1 -1
  19. package/lib/commonjs/modules/bt-management/services/devices/bt-data-processor.js.map +1 -1
  20. package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js +48 -3
  21. package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
  22. package/lib/commonjs/modules/bt-management/services/devices/custom/custom-lepu-sequencer.js +6 -2
  23. package/lib/commonjs/modules/bt-management/services/devices/custom/custom-lepu-sequencer.js.map +1 -1
  24. package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js +113 -24
  25. package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
  26. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.advertisement.js +19 -2
  27. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.advertisement.js.map +1 -1
  28. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.connect-retry.js +32 -0
  29. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.connect-retry.js.map +1 -0
  30. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.delivered-files.js +73 -0
  31. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.delivered-files.js.map +1 -0
  32. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.js +130 -30
  33. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.js.map +1 -1
  34. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.js +103 -0
  35. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.js.map +1 -0
  36. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.file-transfer.js +20 -14
  37. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.file-transfer.js.map +1 -1
  38. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.frame-reader.js +4 -2
  39. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.frame-reader.js.map +1 -1
  40. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.identity-gate.js +94 -10
  41. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.identity-gate.js.map +1 -1
  42. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.live-ecg-chunks.js +75 -0
  43. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.live-ecg-chunks.js.map +1 -0
  44. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.pulse-wave-chunks.js +113 -0
  45. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.pulse-wave-chunks.js.map +1 -0
  46. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.pulse-wave.js +67 -0
  47. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.pulse-wave.js.map +1 -0
  48. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.recorder.js +55 -0
  49. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.recorder.js.map +1 -0
  50. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.recording-watch.js +57 -0
  51. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.recording-watch.js.map +1 -0
  52. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.session.js +49 -0
  53. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.session.js.map +1 -0
  54. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.stored-files.js +46 -0
  55. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.stored-files.js.map +1 -0
  56. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.transports.js +10 -4
  57. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.transports.js.map +1 -1
  58. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.waveform.js +27 -0
  59. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.waveform.js.map +1 -0
  60. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bp-monitors.js +0 -1
  61. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bp-monitors.js.map +1 -1
  62. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-files.js +3 -5
  63. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-files.js.map +1 -1
  64. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js +17 -8
  65. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js.map +1 -1
  66. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.js +47 -0
  67. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.js.map +1 -0
  68. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.oximeters.js +58 -32
  69. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.oximeters.js.map +1 -1
  70. package/lib/commonjs/modules/bt-management/services/series-recorder.js +27 -5
  71. package/lib/commonjs/modules/bt-management/services/series-recorder.js.map +1 -1
  72. package/lib/commonjs/modules/bt-management/types/device-waveform.js +6 -0
  73. package/lib/commonjs/modules/bt-management/types/device-waveform.js.map +1 -0
  74. package/lib/commonjs/modules/bt-management/utils/i-16-from-hex.js.map +1 -1
  75. package/lib/commonjs/modules/bt-management/utils/le-32-from-hex.js.map +1 -1
  76. package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-provider.js +15 -8
  77. package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-provider.js.map +1 -1
  78. package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-utils.js +1 -1
  79. package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-utils.js.map +1 -1
  80. package/lib/commonjs/modules/data-sync/constants.js +4 -1
  81. package/lib/commonjs/modules/data-sync/constants.js.map +1 -1
  82. package/lib/commonjs/modules/data-sync/hooks/use-listen-changes.js +6 -9
  83. package/lib/commonjs/modules/data-sync/hooks/use-listen-changes.js.map +1 -1
  84. package/lib/commonjs/modules/data-sync/services/managers/data-processor.js +1 -0
  85. package/lib/commonjs/modules/data-sync/services/managers/data-processor.js.map +1 -1
  86. package/lib/commonjs/modules/data-sync/types/health-sync-keys.js +13 -0
  87. package/lib/commonjs/modules/data-sync/types/health-sync-keys.js.map +1 -1
  88. package/lib/commonjs/modules/data-sync/utils/convert-ecg-samples-to-observation.js +47 -0
  89. package/lib/commonjs/modules/data-sync/utils/convert-ecg-samples-to-observation.js.map +1 -0
  90. package/lib/commonjs/modules/data-sync/utils/convert-generic-health-data.js +6 -3
  91. package/lib/commonjs/modules/data-sync/utils/convert-generic-health-data.js.map +1 -1
  92. package/lib/commonjs/modules/data-sync/utils/convert-samples-to-observation.js +7 -15
  93. package/lib/commonjs/modules/data-sync/utils/convert-samples-to-observation.js.map +1 -1
  94. package/lib/commonjs/modules/data-sync/utils/default-health-coding.js +25 -4
  95. package/lib/commonjs/modules/data-sync/utils/default-health-coding.js.map +1 -1
  96. package/lib/commonjs/modules/data-sync/utils/get-records-from-health-connect.js +20 -4
  97. package/lib/commonjs/modules/data-sync/utils/get-records-from-health-connect.js.map +1 -1
  98. package/lib/commonjs/modules/data-sync/utils/get-samples-from-health.js +43 -86
  99. package/lib/commonjs/modules/data-sync/utils/get-samples-from-health.js.map +1 -1
  100. package/lib/commonjs/modules/data-sync/utils/get-total-samples-count.js +6 -5
  101. package/lib/commonjs/modules/data-sync/utils/get-total-samples-count.js.map +1 -1
  102. package/lib/commonjs/modules/data-sync/utils/health-data-catalog.js +15 -15
  103. package/lib/commonjs/modules/data-sync/utils/health-data-catalog.js.map +1 -1
  104. package/lib/commonjs/modules/data-sync/utils/health-units.js +6 -1
  105. package/lib/commonjs/modules/data-sync/utils/health-units.js.map +1 -1
  106. package/lib/commonjs/modules/data-sync/utils/healthkit-daily-statistics.js +64 -0
  107. package/lib/commonjs/modules/data-sync/utils/healthkit-daily-statistics.js.map +1 -0
  108. package/lib/commonjs/modules/data-sync/utils/healthkit-data-types.js.map +1 -1
  109. package/lib/commonjs/modules/data-sync/utils/healthkit-query-options.js +20 -0
  110. package/lib/commonjs/modules/data-sync/utils/healthkit-query-options.js.map +1 -0
  111. package/lib/commonjs/modules/data-sync/utils/healthkit-sample-source.js +21 -0
  112. package/lib/commonjs/modules/data-sync/utils/healthkit-sample-source.js.map +1 -0
  113. package/lib/commonjs/modules/data-sync/utils/healthkit-samples.js +59 -0
  114. package/lib/commonjs/modules/data-sync/utils/healthkit-samples.js.map +1 -0
  115. package/lib/commonjs/modules/data-sync/utils/healthkit-series.js +20 -11
  116. package/lib/commonjs/modules/data-sync/utils/healthkit-series.js.map +1 -1
  117. package/lib/commonjs/modules/next/bluetooth/ble-plx/built-in-devices.js +12 -2
  118. package/lib/commonjs/modules/next/bluetooth/ble-plx/built-in-devices.js.map +1 -1
  119. package/lib/commonjs/modules/next/bluetooth/ble-plx/legacy-driver.js +39 -5
  120. package/lib/commonjs/modules/next/bluetooth/ble-plx/legacy-driver.js.map +1 -1
  121. package/lib/commonjs/modules/next/bluetooth/connections.js +45 -2
  122. package/lib/commonjs/modules/next/bluetooth/connections.js.map +1 -1
  123. package/lib/commonjs/modules/next/bluetooth/driver.js.map +1 -1
  124. package/lib/commonjs/modules/next/bluetooth/errors.js.map +1 -1
  125. package/lib/commonjs/modules/next/bluetooth/index.js.map +1 -1
  126. package/lib/commonjs/modules/next/bluetooth/readings.js +10 -2
  127. package/lib/commonjs/modules/next/bluetooth/readings.js.map +1 -1
  128. package/lib/commonjs/modules/next/bluetooth/runtime.js +37 -1
  129. package/lib/commonjs/modules/next/bluetooth/runtime.js.map +1 -1
  130. package/lib/commonjs/modules/next/bluetooth/web/index.js.map +1 -1
  131. package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js +19 -7
  132. package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
  133. package/lib/module/modules/bt-management/hooks/runtime-context.js.map +1 -1
  134. package/lib/module/modules/bt-management/index.js +1 -0
  135. package/lib/module/modules/bt-management/index.js.map +1 -1
  136. package/lib/module/modules/bt-management/services/bt-manager.js +27 -1
  137. package/lib/module/modules/bt-management/services/bt-manager.js.map +1 -1
  138. package/lib/module/modules/bt-management/services/custom/compile-custom-lepu.js +39 -0
  139. package/lib/module/modules/bt-management/services/custom/compile-custom-lepu.js.map +1 -1
  140. package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js +36 -10
  141. package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js.map +1 -1
  142. package/lib/module/modules/bt-management/services/devices/bp2/bp2.frame-reader.js +2 -3
  143. package/lib/module/modules/bt-management/services/devices/bp2/bp2.frame-reader.js.map +1 -1
  144. package/lib/module/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js +68 -25
  145. package/lib/module/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js.map +1 -1
  146. package/lib/module/modules/bt-management/services/devices/bt-command-writer.js +30 -2
  147. package/lib/module/modules/bt-management/services/devices/bt-command-writer.js.map +1 -1
  148. package/lib/module/modules/bt-management/services/devices/bt-data-processor.js +1 -1
  149. package/lib/module/modules/bt-management/services/devices/bt-data-processor.js.map +1 -1
  150. package/lib/module/modules/bt-management/services/devices/bt-managed-device.js +48 -3
  151. package/lib/module/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
  152. package/lib/module/modules/bt-management/services/devices/custom/custom-lepu-sequencer.js +6 -2
  153. package/lib/module/modules/bt-management/services/devices/custom/custom-lepu-sequencer.js.map +1 -1
  154. package/lib/module/modules/bt-management/services/devices/custom/custom.device.js +113 -24
  155. package/lib/module/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
  156. package/lib/module/modules/bt-management/services/devices/lepu/lepu.advertisement.js +17 -1
  157. package/lib/module/modules/bt-management/services/devices/lepu/lepu.advertisement.js.map +1 -1
  158. package/lib/module/modules/bt-management/services/devices/lepu/lepu.connect-retry.js +28 -0
  159. package/lib/module/modules/bt-management/services/devices/lepu/lepu.connect-retry.js.map +1 -0
  160. package/lib/module/modules/bt-management/services/devices/lepu/lepu.delivered-files.js +69 -0
  161. package/lib/module/modules/bt-management/services/devices/lepu/lepu.delivered-files.js.map +1 -0
  162. package/lib/module/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.js +129 -30
  163. package/lib/module/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.js.map +1 -1
  164. package/lib/module/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.js +99 -0
  165. package/lib/module/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.js.map +1 -0
  166. package/lib/module/modules/bt-management/services/devices/lepu/lepu.file-transfer.js +20 -14
  167. package/lib/module/modules/bt-management/services/devices/lepu/lepu.file-transfer.js.map +1 -1
  168. package/lib/module/modules/bt-management/services/devices/lepu/lepu.frame-reader.js +4 -2
  169. package/lib/module/modules/bt-management/services/devices/lepu/lepu.frame-reader.js.map +1 -1
  170. package/lib/module/modules/bt-management/services/devices/lepu/lepu.identity-gate.js +94 -10
  171. package/lib/module/modules/bt-management/services/devices/lepu/lepu.identity-gate.js.map +1 -1
  172. package/lib/module/modules/bt-management/services/devices/lepu/lepu.live-ecg-chunks.js +72 -0
  173. package/lib/module/modules/bt-management/services/devices/lepu/lepu.live-ecg-chunks.js.map +1 -0
  174. package/lib/module/modules/bt-management/services/devices/lepu/lepu.pulse-wave-chunks.js +109 -0
  175. package/lib/module/modules/bt-management/services/devices/lepu/lepu.pulse-wave-chunks.js.map +1 -0
  176. package/lib/module/modules/bt-management/services/devices/lepu/lepu.pulse-wave.js +64 -0
  177. package/lib/module/modules/bt-management/services/devices/lepu/lepu.pulse-wave.js.map +1 -0
  178. package/lib/module/modules/bt-management/services/devices/lepu/lepu.recorder.js +51 -0
  179. package/lib/module/modules/bt-management/services/devices/lepu/lepu.recorder.js.map +1 -0
  180. package/lib/module/modules/bt-management/services/devices/lepu/lepu.recording-watch.js +53 -0
  181. package/lib/module/modules/bt-management/services/devices/lepu/lepu.recording-watch.js.map +1 -0
  182. package/lib/module/modules/bt-management/services/devices/lepu/lepu.session.js +45 -0
  183. package/lib/module/modules/bt-management/services/devices/lepu/lepu.session.js.map +1 -0
  184. package/lib/module/modules/bt-management/services/devices/lepu/lepu.stored-files.js +42 -0
  185. package/lib/module/modules/bt-management/services/devices/lepu/lepu.stored-files.js.map +1 -0
  186. package/lib/module/modules/bt-management/services/devices/lepu/lepu.transports.js +10 -4
  187. package/lib/module/modules/bt-management/services/devices/lepu/lepu.transports.js.map +1 -1
  188. package/lib/module/modules/bt-management/services/devices/lepu/lepu.waveform.js +22 -0
  189. package/lib/module/modules/bt-management/services/devices/lepu/lepu.waveform.js.map +1 -0
  190. package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp-monitors.js +0 -1
  191. package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp-monitors.js.map +1 -1
  192. package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-files.js +3 -6
  193. package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-files.js.map +1 -1
  194. package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js +17 -8
  195. package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js.map +1 -1
  196. package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.js +44 -0
  197. package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.js.map +1 -0
  198. package/lib/module/modules/bt-management/services/devices/viatom/viatom.oximeters.js +58 -32
  199. package/lib/module/modules/bt-management/services/devices/viatom/viatom.oximeters.js.map +1 -1
  200. package/lib/module/modules/bt-management/services/series-recorder.js +27 -5
  201. package/lib/module/modules/bt-management/services/series-recorder.js.map +1 -1
  202. package/lib/module/modules/bt-management/types/device-waveform.js +4 -0
  203. package/lib/module/modules/bt-management/types/device-waveform.js.map +1 -0
  204. package/lib/module/modules/bt-management/utils/i-16-from-hex.js.map +1 -1
  205. package/lib/module/modules/bt-management/utils/le-32-from-hex.js.map +1 -1
  206. package/lib/module/modules/data-sync/components/apple/apple-health-authorization-provider.js +16 -9
  207. package/lib/module/modules/data-sync/components/apple/apple-health-authorization-provider.js.map +1 -1
  208. package/lib/module/modules/data-sync/components/apple/apple-health-authorization-utils.js +2 -2
  209. package/lib/module/modules/data-sync/components/apple/apple-health-authorization-utils.js.map +1 -1
  210. package/lib/module/modules/data-sync/constants.js +4 -1
  211. package/lib/module/modules/data-sync/constants.js.map +1 -1
  212. package/lib/module/modules/data-sync/hooks/use-listen-changes.js +7 -10
  213. package/lib/module/modules/data-sync/hooks/use-listen-changes.js.map +1 -1
  214. package/lib/module/modules/data-sync/services/managers/data-processor.js +1 -0
  215. package/lib/module/modules/data-sync/services/managers/data-processor.js.map +1 -1
  216. package/lib/module/modules/data-sync/types/health-sync-keys.js +13 -0
  217. package/lib/module/modules/data-sync/types/health-sync-keys.js.map +1 -1
  218. package/lib/module/modules/data-sync/utils/convert-ecg-samples-to-observation.js +43 -0
  219. package/lib/module/modules/data-sync/utils/convert-ecg-samples-to-observation.js.map +1 -0
  220. package/lib/module/modules/data-sync/utils/convert-generic-health-data.js +6 -3
  221. package/lib/module/modules/data-sync/utils/convert-generic-health-data.js.map +1 -1
  222. package/lib/module/modules/data-sync/utils/convert-samples-to-observation.js +7 -15
  223. package/lib/module/modules/data-sync/utils/convert-samples-to-observation.js.map +1 -1
  224. package/lib/module/modules/data-sync/utils/default-health-coding.js +25 -4
  225. package/lib/module/modules/data-sync/utils/default-health-coding.js.map +1 -1
  226. package/lib/module/modules/data-sync/utils/get-records-from-health-connect.js +20 -4
  227. package/lib/module/modules/data-sync/utils/get-records-from-health-connect.js.map +1 -1
  228. package/lib/module/modules/data-sync/utils/get-samples-from-health.js +44 -87
  229. package/lib/module/modules/data-sync/utils/get-samples-from-health.js.map +1 -1
  230. package/lib/module/modules/data-sync/utils/get-total-samples-count.js +5 -4
  231. package/lib/module/modules/data-sync/utils/get-total-samples-count.js.map +1 -1
  232. package/lib/module/modules/data-sync/utils/health-data-catalog.js +15 -15
  233. package/lib/module/modules/data-sync/utils/health-data-catalog.js.map +1 -1
  234. package/lib/module/modules/data-sync/utils/health-units.js +6 -1
  235. package/lib/module/modules/data-sync/utils/health-units.js.map +1 -1
  236. package/lib/module/modules/data-sync/utils/healthkit-daily-statistics.js +59 -0
  237. package/lib/module/modules/data-sync/utils/healthkit-daily-statistics.js.map +1 -0
  238. package/lib/module/modules/data-sync/utils/healthkit-data-types.js.map +1 -1
  239. package/lib/module/modules/data-sync/utils/healthkit-query-options.js +16 -0
  240. package/lib/module/modules/data-sync/utils/healthkit-query-options.js.map +1 -0
  241. package/lib/module/modules/data-sync/utils/healthkit-sample-source.js +17 -0
  242. package/lib/module/modules/data-sync/utils/healthkit-sample-source.js.map +1 -0
  243. package/lib/module/modules/data-sync/utils/healthkit-samples.js +52 -0
  244. package/lib/module/modules/data-sync/utils/healthkit-samples.js.map +1 -0
  245. package/lib/module/modules/data-sync/utils/healthkit-series.js +19 -10
  246. package/lib/module/modules/data-sync/utils/healthkit-series.js.map +1 -1
  247. package/lib/module/modules/next/bluetooth/ble-plx/built-in-devices.js +12 -2
  248. package/lib/module/modules/next/bluetooth/ble-plx/built-in-devices.js.map +1 -1
  249. package/lib/module/modules/next/bluetooth/ble-plx/legacy-driver.js +39 -5
  250. package/lib/module/modules/next/bluetooth/ble-plx/legacy-driver.js.map +1 -1
  251. package/lib/module/modules/next/bluetooth/connections.js +45 -2
  252. package/lib/module/modules/next/bluetooth/connections.js.map +1 -1
  253. package/lib/module/modules/next/bluetooth/driver.js.map +1 -1
  254. package/lib/module/modules/next/bluetooth/errors.js.map +1 -1
  255. package/lib/module/modules/next/bluetooth/index.js.map +1 -1
  256. package/lib/module/modules/next/bluetooth/readings.js +10 -2
  257. package/lib/module/modules/next/bluetooth/readings.js.map +1 -1
  258. package/lib/module/modules/next/bluetooth/runtime.js +37 -1
  259. package/lib/module/modules/next/bluetooth/runtime.js.map +1 -1
  260. package/lib/module/modules/next/bluetooth/web/index.js.map +1 -1
  261. package/lib/typescript/commonjs/src/modules/bt-management/components/bt-provider-child-wrapper.d.ts.map +1 -1
  262. package/lib/typescript/commonjs/src/modules/bt-management/hooks/runtime-context.d.ts +4 -1
  263. package/lib/typescript/commonjs/src/modules/bt-management/hooks/runtime-context.d.ts.map +1 -1
  264. package/lib/typescript/commonjs/src/modules/bt-management/index.d.ts +1 -0
  265. package/lib/typescript/commonjs/src/modules/bt-management/index.d.ts.map +1 -1
  266. package/lib/typescript/commonjs/src/modules/bt-management/services/bt-manager.d.ts +21 -5
  267. package/lib/typescript/commonjs/src/modules/bt-management/services/bt-manager.d.ts.map +1 -1
  268. package/lib/typescript/commonjs/src/modules/bt-management/services/custom/compile-custom-lepu.d.ts.map +1 -1
  269. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts +4 -0
  270. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts.map +1 -1
  271. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.frame-reader.d.ts +2 -1
  272. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.frame-reader.d.ts.map +1 -1
  273. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts +24 -4
  274. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts.map +1 -1
  275. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-command-writer.d.ts +6 -1
  276. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-command-writer.d.ts.map +1 -1
  277. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts +23 -3
  278. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
  279. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom-lepu-sequencer.d.ts +6 -3
  280. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom-lepu-sequencer.d.ts.map +1 -1
  281. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts +20 -0
  282. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
  283. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.advertisement.d.ts +8 -1
  284. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.advertisement.d.ts.map +1 -1
  285. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.connect-retry.d.ts +12 -0
  286. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.connect-retry.d.ts.map +1 -0
  287. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.delivered-files.d.ts +24 -0
  288. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.delivered-files.d.ts.map +1 -0
  289. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.d.ts +40 -5
  290. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.d.ts.map +1 -1
  291. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.d.ts +20 -0
  292. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.d.ts.map +1 -0
  293. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.file-transfer.d.ts +6 -3
  294. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.file-transfer.d.ts.map +1 -1
  295. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.frame-reader.d.ts +3 -1
  296. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.frame-reader.d.ts.map +1 -1
  297. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.identity-gate.d.ts +26 -1
  298. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.identity-gate.d.ts.map +1 -1
  299. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.live-ecg-chunks.d.ts +42 -0
  300. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.live-ecg-chunks.d.ts.map +1 -0
  301. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.pulse-wave-chunks.d.ts +28 -0
  302. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.pulse-wave-chunks.d.ts.map +1 -0
  303. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.pulse-wave.d.ts +16 -0
  304. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.pulse-wave.d.ts.map +1 -0
  305. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.recorder.d.ts +32 -0
  306. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.recorder.d.ts.map +1 -0
  307. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.recording-watch.d.ts +28 -0
  308. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.recording-watch.d.ts.map +1 -0
  309. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.session.d.ts +17 -0
  310. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.session.d.ts.map +1 -0
  311. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.stored-files.d.ts +33 -0
  312. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.stored-files.d.ts.map +1 -0
  313. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts +4 -0
  314. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts.map +1 -1
  315. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.waveform.d.ts +9 -0
  316. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.waveform.d.ts.map +1 -0
  317. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.bp-monitors.d.ts.map +1 -1
  318. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.ecg-files.d.ts +1 -1
  319. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.ecg-files.d.ts.map +1 -1
  320. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.d.ts.map +1 -1
  321. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.d.ts +8 -0
  322. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.d.ts.map +1 -0
  323. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.oximeters.d.ts.map +1 -1
  324. package/lib/typescript/commonjs/src/modules/bt-management/services/series-recorder.d.ts +6 -1
  325. package/lib/typescript/commonjs/src/modules/bt-management/services/series-recorder.d.ts.map +1 -1
  326. package/lib/typescript/commonjs/src/modules/bt-management/types/create-device-params.d.ts +7 -1
  327. package/lib/typescript/commonjs/src/modules/bt-management/types/create-device-params.d.ts.map +1 -1
  328. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-lepu-spec.d.ts +42 -1
  329. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-lepu-spec.d.ts.map +1 -1
  330. package/lib/typescript/commonjs/src/modules/bt-management/types/device-connection-event.d.ts +17 -1
  331. package/lib/typescript/commonjs/src/modules/bt-management/types/device-connection-event.d.ts.map +1 -1
  332. package/lib/typescript/commonjs/src/modules/bt-management/types/device-waveform.d.ts +15 -0
  333. package/lib/typescript/commonjs/src/modules/bt-management/types/device-waveform.d.ts.map +1 -0
  334. package/lib/typescript/commonjs/src/modules/bt-management/utils/i-16-from-hex.d.ts +1 -1
  335. package/lib/typescript/commonjs/src/modules/bt-management/utils/i-16-from-hex.d.ts.map +1 -1
  336. package/lib/typescript/commonjs/src/modules/bt-management/utils/le-32-from-hex.d.ts +1 -1
  337. package/lib/typescript/commonjs/src/modules/bt-management/utils/le-32-from-hex.d.ts.map +1 -1
  338. package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-authorization-provider.d.ts.map +1 -1
  339. package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-authorization-utils.d.ts +2 -2
  340. package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-authorization-utils.d.ts.map +1 -1
  341. package/lib/typescript/commonjs/src/modules/data-sync/constants.d.ts +3 -1
  342. package/lib/typescript/commonjs/src/modules/data-sync/constants.d.ts.map +1 -1
  343. package/lib/typescript/commonjs/src/modules/data-sync/hooks/use-listen-changes.d.ts.map +1 -1
  344. package/lib/typescript/commonjs/src/modules/data-sync/services/managers/data-processor.d.ts.map +1 -1
  345. package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts +2 -2
  346. package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts.map +1 -1
  347. package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-sync-props.d.ts +4 -7
  348. package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-sync-props.d.ts.map +1 -1
  349. package/lib/typescript/commonjs/src/modules/data-sync/types/get-data-from-provider-props.d.ts +3 -1
  350. package/lib/typescript/commonjs/src/modules/data-sync/types/get-data-from-provider-props.d.ts.map +1 -1
  351. package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts +2 -2
  352. package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts.map +1 -1
  353. package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-keys.d.ts +11 -1
  354. package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-keys.d.ts.map +1 -1
  355. package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-ecg-samples-to-observation.d.ts +6 -0
  356. package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-ecg-samples-to-observation.d.ts.map +1 -0
  357. package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-generic-health-data.d.ts +1 -1
  358. package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-generic-health-data.d.ts.map +1 -1
  359. package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-samples-to-observation.d.ts.map +1 -1
  360. package/lib/typescript/commonjs/src/modules/data-sync/utils/default-health-coding.d.ts.map +1 -1
  361. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-records-from-health-connect.d.ts +1 -1
  362. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-records-from-health-connect.d.ts.map +1 -1
  363. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-samples-from-health.d.ts +12 -46
  364. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-samples-from-health.d.ts.map +1 -1
  365. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-total-samples-count.d.ts.map +1 -1
  366. package/lib/typescript/commonjs/src/modules/data-sync/utils/health-data-catalog.d.ts.map +1 -1
  367. package/lib/typescript/commonjs/src/modules/data-sync/utils/health-units.d.ts +2 -2
  368. package/lib/typescript/commonjs/src/modules/data-sync/utils/health-units.d.ts.map +1 -1
  369. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-daily-statistics.d.ts +10 -0
  370. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-daily-statistics.d.ts.map +1 -0
  371. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-data-types.d.ts +5 -5
  372. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-data-types.d.ts.map +1 -1
  373. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-query-options.d.ts +7 -0
  374. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-query-options.d.ts.map +1 -0
  375. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-sample-source.d.ts +8 -0
  376. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-sample-source.d.ts.map +1 -0
  377. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-samples.d.ts +30 -0
  378. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-samples.d.ts.map +1 -0
  379. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-series.d.ts +2 -2
  380. package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-series.d.ts.map +1 -1
  381. package/lib/typescript/commonjs/src/modules/data-sync/utils/to-core-health-observations.d.ts +1 -0
  382. package/lib/typescript/commonjs/src/modules/data-sync/utils/to-core-health-observations.d.ts.map +1 -1
  383. package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/built-in-devices.d.ts +12 -1
  384. package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/built-in-devices.d.ts.map +1 -1
  385. package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/legacy-driver.d.ts +2 -1
  386. package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/legacy-driver.d.ts.map +1 -1
  387. package/lib/typescript/commonjs/src/modules/next/bluetooth/connections.d.ts +13 -1
  388. package/lib/typescript/commonjs/src/modules/next/bluetooth/connections.d.ts.map +1 -1
  389. package/lib/typescript/commonjs/src/modules/next/bluetooth/driver.d.ts +20 -0
  390. package/lib/typescript/commonjs/src/modules/next/bluetooth/driver.d.ts.map +1 -1
  391. package/lib/typescript/commonjs/src/modules/next/bluetooth/errors.d.ts +1 -1
  392. package/lib/typescript/commonjs/src/modules/next/bluetooth/errors.d.ts.map +1 -1
  393. package/lib/typescript/commonjs/src/modules/next/bluetooth/index.d.ts +2 -1
  394. package/lib/typescript/commonjs/src/modules/next/bluetooth/index.d.ts.map +1 -1
  395. package/lib/typescript/commonjs/src/modules/next/bluetooth/readings.d.ts +3 -2
  396. package/lib/typescript/commonjs/src/modules/next/bluetooth/readings.d.ts.map +1 -1
  397. package/lib/typescript/commonjs/src/modules/next/bluetooth/runtime.d.ts +19 -1
  398. package/lib/typescript/commonjs/src/modules/next/bluetooth/runtime.d.ts.map +1 -1
  399. package/lib/typescript/commonjs/src/modules/next/bluetooth/snapshot.d.ts +33 -1
  400. package/lib/typescript/commonjs/src/modules/next/bluetooth/snapshot.d.ts.map +1 -1
  401. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/index.d.ts +1 -0
  402. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/index.d.ts.map +1 -1
  403. package/lib/typescript/module/src/modules/bt-management/components/bt-provider-child-wrapper.d.ts.map +1 -1
  404. package/lib/typescript/module/src/modules/bt-management/hooks/runtime-context.d.ts +4 -1
  405. package/lib/typescript/module/src/modules/bt-management/hooks/runtime-context.d.ts.map +1 -1
  406. package/lib/typescript/module/src/modules/bt-management/index.d.ts +1 -0
  407. package/lib/typescript/module/src/modules/bt-management/index.d.ts.map +1 -1
  408. package/lib/typescript/module/src/modules/bt-management/services/bt-manager.d.ts +21 -5
  409. package/lib/typescript/module/src/modules/bt-management/services/bt-manager.d.ts.map +1 -1
  410. package/lib/typescript/module/src/modules/bt-management/services/custom/compile-custom-lepu.d.ts.map +1 -1
  411. package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts +4 -0
  412. package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts.map +1 -1
  413. package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.frame-reader.d.ts +2 -1
  414. package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.frame-reader.d.ts.map +1 -1
  415. package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts +24 -4
  416. package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts.map +1 -1
  417. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-command-writer.d.ts +6 -1
  418. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-command-writer.d.ts.map +1 -1
  419. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts +23 -3
  420. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
  421. package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom-lepu-sequencer.d.ts +6 -3
  422. package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom-lepu-sequencer.d.ts.map +1 -1
  423. package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom.device.d.ts +20 -0
  424. package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
  425. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.advertisement.d.ts +8 -1
  426. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.advertisement.d.ts.map +1 -1
  427. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.connect-retry.d.ts +12 -0
  428. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.connect-retry.d.ts.map +1 -0
  429. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.delivered-files.d.ts +24 -0
  430. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.delivered-files.d.ts.map +1 -0
  431. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.d.ts +40 -5
  432. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.d.ts.map +1 -1
  433. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.d.ts +20 -0
  434. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.d.ts.map +1 -0
  435. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.file-transfer.d.ts +6 -3
  436. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.file-transfer.d.ts.map +1 -1
  437. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.frame-reader.d.ts +3 -1
  438. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.frame-reader.d.ts.map +1 -1
  439. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.identity-gate.d.ts +26 -1
  440. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.identity-gate.d.ts.map +1 -1
  441. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.live-ecg-chunks.d.ts +42 -0
  442. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.live-ecg-chunks.d.ts.map +1 -0
  443. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.pulse-wave-chunks.d.ts +28 -0
  444. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.pulse-wave-chunks.d.ts.map +1 -0
  445. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.pulse-wave.d.ts +16 -0
  446. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.pulse-wave.d.ts.map +1 -0
  447. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.recorder.d.ts +32 -0
  448. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.recorder.d.ts.map +1 -0
  449. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.recording-watch.d.ts +28 -0
  450. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.recording-watch.d.ts.map +1 -0
  451. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.session.d.ts +17 -0
  452. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.session.d.ts.map +1 -0
  453. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.stored-files.d.ts +33 -0
  454. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.stored-files.d.ts.map +1 -0
  455. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts +4 -0
  456. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts.map +1 -1
  457. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.waveform.d.ts +9 -0
  458. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.waveform.d.ts.map +1 -0
  459. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.bp-monitors.d.ts.map +1 -1
  460. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.ecg-files.d.ts +1 -1
  461. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.ecg-files.d.ts.map +1 -1
  462. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.d.ts.map +1 -1
  463. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.d.ts +8 -0
  464. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.d.ts.map +1 -0
  465. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.oximeters.d.ts.map +1 -1
  466. package/lib/typescript/module/src/modules/bt-management/services/series-recorder.d.ts +6 -1
  467. package/lib/typescript/module/src/modules/bt-management/services/series-recorder.d.ts.map +1 -1
  468. package/lib/typescript/module/src/modules/bt-management/types/create-device-params.d.ts +7 -1
  469. package/lib/typescript/module/src/modules/bt-management/types/create-device-params.d.ts.map +1 -1
  470. package/lib/typescript/module/src/modules/bt-management/types/custom-lepu-spec.d.ts +42 -1
  471. package/lib/typescript/module/src/modules/bt-management/types/custom-lepu-spec.d.ts.map +1 -1
  472. package/lib/typescript/module/src/modules/bt-management/types/device-connection-event.d.ts +17 -1
  473. package/lib/typescript/module/src/modules/bt-management/types/device-connection-event.d.ts.map +1 -1
  474. package/lib/typescript/module/src/modules/bt-management/types/device-waveform.d.ts +15 -0
  475. package/lib/typescript/module/src/modules/bt-management/types/device-waveform.d.ts.map +1 -0
  476. package/lib/typescript/module/src/modules/bt-management/utils/i-16-from-hex.d.ts +1 -1
  477. package/lib/typescript/module/src/modules/bt-management/utils/i-16-from-hex.d.ts.map +1 -1
  478. package/lib/typescript/module/src/modules/bt-management/utils/le-32-from-hex.d.ts +1 -1
  479. package/lib/typescript/module/src/modules/bt-management/utils/le-32-from-hex.d.ts.map +1 -1
  480. package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-authorization-provider.d.ts.map +1 -1
  481. package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-authorization-utils.d.ts +2 -2
  482. package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-authorization-utils.d.ts.map +1 -1
  483. package/lib/typescript/module/src/modules/data-sync/constants.d.ts +3 -1
  484. package/lib/typescript/module/src/modules/data-sync/constants.d.ts.map +1 -1
  485. package/lib/typescript/module/src/modules/data-sync/hooks/use-listen-changes.d.ts.map +1 -1
  486. package/lib/typescript/module/src/modules/data-sync/services/managers/data-processor.d.ts.map +1 -1
  487. package/lib/typescript/module/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts +2 -2
  488. package/lib/typescript/module/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts.map +1 -1
  489. package/lib/typescript/module/src/modules/data-sync/types/apple-health-sync-props.d.ts +4 -7
  490. package/lib/typescript/module/src/modules/data-sync/types/apple-health-sync-props.d.ts.map +1 -1
  491. package/lib/typescript/module/src/modules/data-sync/types/get-data-from-provider-props.d.ts +3 -1
  492. package/lib/typescript/module/src/modules/data-sync/types/get-data-from-provider-props.d.ts.map +1 -1
  493. package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts +2 -2
  494. package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts.map +1 -1
  495. package/lib/typescript/module/src/modules/data-sync/types/health-sync-keys.d.ts +11 -1
  496. package/lib/typescript/module/src/modules/data-sync/types/health-sync-keys.d.ts.map +1 -1
  497. package/lib/typescript/module/src/modules/data-sync/utils/convert-ecg-samples-to-observation.d.ts +6 -0
  498. package/lib/typescript/module/src/modules/data-sync/utils/convert-ecg-samples-to-observation.d.ts.map +1 -0
  499. package/lib/typescript/module/src/modules/data-sync/utils/convert-generic-health-data.d.ts +1 -1
  500. package/lib/typescript/module/src/modules/data-sync/utils/convert-generic-health-data.d.ts.map +1 -1
  501. package/lib/typescript/module/src/modules/data-sync/utils/convert-samples-to-observation.d.ts.map +1 -1
  502. package/lib/typescript/module/src/modules/data-sync/utils/default-health-coding.d.ts.map +1 -1
  503. package/lib/typescript/module/src/modules/data-sync/utils/get-records-from-health-connect.d.ts +1 -1
  504. package/lib/typescript/module/src/modules/data-sync/utils/get-records-from-health-connect.d.ts.map +1 -1
  505. package/lib/typescript/module/src/modules/data-sync/utils/get-samples-from-health.d.ts +12 -46
  506. package/lib/typescript/module/src/modules/data-sync/utils/get-samples-from-health.d.ts.map +1 -1
  507. package/lib/typescript/module/src/modules/data-sync/utils/get-total-samples-count.d.ts.map +1 -1
  508. package/lib/typescript/module/src/modules/data-sync/utils/health-data-catalog.d.ts.map +1 -1
  509. package/lib/typescript/module/src/modules/data-sync/utils/health-units.d.ts +2 -2
  510. package/lib/typescript/module/src/modules/data-sync/utils/health-units.d.ts.map +1 -1
  511. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-daily-statistics.d.ts +10 -0
  512. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-daily-statistics.d.ts.map +1 -0
  513. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-data-types.d.ts +5 -5
  514. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-data-types.d.ts.map +1 -1
  515. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-query-options.d.ts +7 -0
  516. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-query-options.d.ts.map +1 -0
  517. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-sample-source.d.ts +8 -0
  518. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-sample-source.d.ts.map +1 -0
  519. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-samples.d.ts +30 -0
  520. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-samples.d.ts.map +1 -0
  521. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-series.d.ts +2 -2
  522. package/lib/typescript/module/src/modules/data-sync/utils/healthkit-series.d.ts.map +1 -1
  523. package/lib/typescript/module/src/modules/data-sync/utils/to-core-health-observations.d.ts +1 -0
  524. package/lib/typescript/module/src/modules/data-sync/utils/to-core-health-observations.d.ts.map +1 -1
  525. package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/built-in-devices.d.ts +12 -1
  526. package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/built-in-devices.d.ts.map +1 -1
  527. package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/legacy-driver.d.ts +2 -1
  528. package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/legacy-driver.d.ts.map +1 -1
  529. package/lib/typescript/module/src/modules/next/bluetooth/connections.d.ts +13 -1
  530. package/lib/typescript/module/src/modules/next/bluetooth/connections.d.ts.map +1 -1
  531. package/lib/typescript/module/src/modules/next/bluetooth/driver.d.ts +20 -0
  532. package/lib/typescript/module/src/modules/next/bluetooth/driver.d.ts.map +1 -1
  533. package/lib/typescript/module/src/modules/next/bluetooth/errors.d.ts +1 -1
  534. package/lib/typescript/module/src/modules/next/bluetooth/errors.d.ts.map +1 -1
  535. package/lib/typescript/module/src/modules/next/bluetooth/index.d.ts +2 -1
  536. package/lib/typescript/module/src/modules/next/bluetooth/index.d.ts.map +1 -1
  537. package/lib/typescript/module/src/modules/next/bluetooth/readings.d.ts +3 -2
  538. package/lib/typescript/module/src/modules/next/bluetooth/readings.d.ts.map +1 -1
  539. package/lib/typescript/module/src/modules/next/bluetooth/runtime.d.ts +19 -1
  540. package/lib/typescript/module/src/modules/next/bluetooth/runtime.d.ts.map +1 -1
  541. package/lib/typescript/module/src/modules/next/bluetooth/snapshot.d.ts +33 -1
  542. package/lib/typescript/module/src/modules/next/bluetooth/snapshot.d.ts.map +1 -1
  543. package/lib/typescript/module/src/modules/next/bluetooth/web/index.d.ts +1 -0
  544. package/lib/typescript/module/src/modules/next/bluetooth/web/index.d.ts.map +1 -1
  545. package/package.json +8 -3
@@ -4,6 +4,8 @@
4
4
  * is not constant.
5
5
  */
6
6
  declare const DEFAULT_HEALTH_SYNC_CHUNK_SIZE = 250;
7
+ /** Each ECG recording holds about 15,000 voltages, so a page of them stays small whatever the chunk size. */
8
+ declare const ECG_PAGE_SIZE = 10;
7
9
  /** How far back the first import of a type reaches when no watermark exists yet. */
8
10
  declare const DEFAULT_SYNC_LOOKBACK_DAYS = 30;
9
11
  /**
@@ -16,5 +18,5 @@ declare const DAILY_REREAD_DAYS = 7;
16
18
  declare const SERIES_SLOT_MS = 60000;
17
19
  /** How many already-imported hours a `series` type reads again, for a watch that syncs a little late. */
18
20
  declare const SERIES_REREAD_HOURS = 3;
19
- export { DAILY_REREAD_DAYS, SERIES_REREAD_HOURS, SERIES_SLOT_MS, DEFAULT_HEALTH_SYNC_CHUNK_SIZE, DEFAULT_SYNC_LOOKBACK_DAYS, };
21
+ export { DAILY_REREAD_DAYS, ECG_PAGE_SIZE, SERIES_REREAD_HOURS, SERIES_SLOT_MS, DEFAULT_HEALTH_SYNC_CHUNK_SIZE, DEFAULT_SYNC_LOOKBACK_DAYS, };
20
22
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/data-sync/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,QAAA,MAAM,8BAA8B,MAAM,CAAC;AAE3C,oFAAoF;AACpF,QAAA,MAAM,0BAA0B,KAAK,CAAC;AAEtC;;;;GAIG;AACH,QAAA,MAAM,iBAAiB,IAAI,CAAC;AAE5B,gFAAgF;AAChF,QAAA,MAAM,cAAc,QAAS,CAAC;AAE9B,yGAAyG;AACzG,QAAA,MAAM,mBAAmB,IAAI,CAAC;AAE9B,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,8BAA8B,EAC9B,0BAA0B,GAC3B,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/data-sync/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,QAAA,MAAM,8BAA8B,MAAM,CAAC;AAE3C,6GAA6G;AAC7G,QAAA,MAAM,aAAa,KAAK,CAAC;AAEzB,oFAAoF;AACpF,QAAA,MAAM,0BAA0B,KAAK,CAAC;AAEtC;;;;GAIG;AACH,QAAA,MAAM,iBAAiB,IAAI,CAAC;AAE5B,gFAAgF;AAChF,QAAA,MAAM,cAAc,QAAS,CAAC;AAE9B,yGAAyG;AACzG,QAAA,MAAM,mBAAmB,IAAI,CAAC;AAE9B,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,8BAA8B,EAC9B,0BAA0B,GAC3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-listen-changes.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/hooks/use-listen-changes.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,6BAA6B,EAC7B,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAE1C,eAAO,MAAM,gBAAgB,GAC3B,YAAY,oBAAoB,CAAC,YAAY,CAAC,EAC9C,UAAU,CAAC,MAAM,EAAE,6BAA6B,KAAK,IAAI,EACzD,qBAAqB,oBAAoB,CAAC,oBAAoB,CAAC,EAC/D,UAAU,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,SAwGjC,CAAC"}
1
+ {"version":3,"file":"use-listen-changes.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/hooks/use-listen-changes.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,6BAA6B,EAC7B,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAE1C,eAAO,MAAM,gBAAgB,GAC3B,YAAY,oBAAoB,CAAC,YAAY,CAAC,EAC9C,UAAU,CAAC,MAAM,EAAE,6BAA6B,KAAK,IAAI,EACzD,qBAAqB,oBAAoB,CAAC,oBAAoB,CAAC,EAC/D,UAAU,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,SAiGjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"data-processor.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/services/managers/data-processor.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"data-processor.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/services/managers/data-processor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAGL,aAAa,EACd,MAAM,8BAA8B,CAAC;AAOtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAGlF,OAAO,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAE1F,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBAAa,aAAa,CACxB,WAAW,SACT,sBAAsB,CAAC,YAAY,CAAC,GAAG,oBAAoB,CAAC,YAAY,CAAC,EAC3E,eAAe,SAAS,MAAM,EAC9B,iBAAiB;IAGf,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,sBAAsB;IAG9B,OAAO,CAAC,2BAA2B;IAGnC,OAAO,CAAC,oBAAoB;gBAXpB,MAAM,EAAE,IAAI,EACZ,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,cAAc,EACxB,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,CAC9B,KAAK,EAAE,kBAAkB,CAAC,eAAe,CAAC,KACvC,OAAO,CAAC,MAAM,CAAC,EACZ,2BAA2B,EAAE,CACnC,KAAK,EAAE,wBAAwB,CAAC,eAAe,CAAC,KAC7C,OAAO,CAAC,sBAAsB,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC,EAChE,oBAAoB,EAAE,CAC5B,KAAK,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,KACvC,OAAO,CAAC,WAAW,EAAE,CAAC;IAG7B,YAAY,CAAC,UAAU,EAAE,WAAW,GAAG,MAAM,EAAE;IAoBzC,yBAAyB,CAAC,UAAU,EAAE,WAAW,GAAG,OAAO,CAC/D,KAAK,CAAC;QACJ,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;QACzB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,CAAC,CACH;IAWK,2BAA2B,CAC/B,kBAAkB,EAAE,aAAa,EACjC,IAAI,EAAE,WAAW,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,EAC7C,oBAAoB,EAAE,IAAI,GAAG,SAAS,GACrC,OAAO,CAAC,MAAM,CAAC;IAmBZ,2BAA2B,CAC/B,kBAAkB,EAAE,aAAa,EACjC,IAAI,EAAE,WAAW,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,EAC7C,oBAAoB,EAAE,IAAI,GAAG,SAAS,GACrC,OAAO,CAAC;QACT,iBAAiB,EAAE,WAAW,EAAE,EAAE,CAAC;QACnC,kBAAkB,EAAE,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;QAC9C,oBAAoB,EAAE,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;QAChD,gBAAgB,EAAE,MAAM,EAAE,CAAC;QAC3B,OAAO,EAAE,OAAO,CAAC;QACjB,OAAO,EAAE,KAAK,CAAC;YAAE,cAAc,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KAC5D,CAAC;IA0HF,oBAAoB,CAClB,iBAAiB,EAAE,WAAW,EAAE,EAAE,EAClC,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,EAC9C,oBAAoB,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,EAChD,IAAI,CAAC,EAAE,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IAWnE,uBAAuB,CACrB,sBAAsB,EAAE,KAAK,CAAC;QAC5B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;QACzB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,CAAC,EACF,IAAI,EAAE,WAAW,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,EAC7C,kBAAkB,EAAE,aAAa,EACjC,IAAI,CAAC,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAC3D,IAAI,GAAG,SAAS;CAyBpB"}
@@ -1,10 +1,10 @@
1
- import { HKSampleTypeIdentifier } from "@kingstinct/react-native-healthkit";
1
+ import type { SampleTypeIdentifierWriteable } from "@kingstinct/react-native-healthkit";
2
2
  import { AppleHealthDataTypeIdentifier, AppleHealthSyncProps } from "./apple-health-sync-props";
3
3
  import { HealthAuthorizationProviderProps } from "./health-authorization-provider-props";
4
4
  import { AppleHealthAuthorizationStatus } from "./health-authorization-status";
5
5
  export type AppleHealthAuthorizationProviderProps = HealthAuthorizationProviderProps<AppleHealthDataTypeIdentifier> & {
6
6
  /** HealthKit types the app may write; sleep apnea events are read-only. */
7
- writeIdentifiers?: HKSampleTypeIdentifier[];
7
+ writeIdentifiers?: SampleTypeIdentifierWriteable[];
8
8
  /** Maps HealthKit identifiers back to the app's configured measurement types. */
9
9
  dataToSync?: AppleHealthSyncProps["dataToSync"];
10
10
  /** Receives the authorization state and any HealthKit types still unanswered. */
@@ -1 +1 @@
1
- {"version":3,"file":"apple-health-authorization-provider-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/apple-health-authorization-provider-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAE5E,OAAO,EACL,6BAA6B,EAC7B,oBAAoB,EACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAE/E,MAAM,MAAM,qCAAqC,GAC/C,gCAAgC,CAAC,6BAA6B,CAAC,GAAG;IAEhE,2EAA2E;IAC3E,gBAAgB,CAAC,EAAE,sBAAsB,EAAE,CAAC;IAE5C,iFAAiF;IACjF,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAEhD,iFAAiF;IACjF,2BAA2B,CAAC,EAAE,CAC5B,MAAM,EAAE,8BAA8B,KACnC,IAAI,CAAC;CACX,CAAC"}
1
+ {"version":3,"file":"apple-health-authorization-provider-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/apple-health-authorization-provider-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAExF,OAAO,EACL,6BAA6B,EAC7B,oBAAoB,EACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAE/E,MAAM,MAAM,qCAAqC,GAC/C,gCAAgC,CAAC,6BAA6B,CAAC,GAAG;IAEhE,2EAA2E;IAC3E,gBAAgB,CAAC,EAAE,6BAA6B,EAAE,CAAC;IAEnD,iFAAiF;IACjF,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAEhD,iFAAiF;IACjF,2BAA2B,CAAC,EAAE,CAC5B,MAAM,EAAE,8BAA8B,KACnC,IAAI,CAAC;CACX,CAAC"}
@@ -1,16 +1,13 @@
1
- import { HKSampleTypeIdentifier, HKUpdateFrequency } from "@kingstinct/react-native-healthkit";
1
+ import type { SampleTypeIdentifier, UpdateFrequency } from "@kingstinct/react-native-healthkit";
2
2
  import { HealthSyncProps } from "./health-sync-props";
3
- /**
4
- * HealthKit identifiers supported by the SDK. The pinned wrapper accepts
5
- * arbitrary category identifiers at runtime, even before its enum adds them.
6
- */
7
- type AppleHealthDataTypeIdentifier = HKSampleTypeIdentifier | "HKCategoryTypeIdentifierSleepApneaEvent";
3
+ /** HealthKit sample type identifiers supported by the SDK. */
4
+ type AppleHealthDataTypeIdentifier = SampleTypeIdentifier;
8
5
  /** Props of `AppleHealthSync`. */
9
6
  type AppleHealthSyncProps = HealthSyncProps<AppleHealthDataTypeIdentifier> & {
10
7
  /** Enables HealthKit observer delivery while the app is in the background. */
11
8
  backgroundDelivery?: {
12
9
  /** How often HealthKit delivers updates in the background. */
13
- frequency?: HKUpdateFrequency;
10
+ frequency?: UpdateFrequency;
14
11
  };
15
12
  };
16
13
  export { AppleHealthDataTypeIdentifier, AppleHealthSyncProps };
@@ -1 +1 @@
1
- {"version":3,"file":"apple-health-sync-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/apple-health-sync-props.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD;;;GAGG;AACH,KAAK,6BAA6B,GAC9B,sBAAsB,GACtB,yCAAyC,CAAC;AAE9C,kCAAkC;AAClC,KAAK,oBAAoB,GAAG,eAAe,CAAC,6BAA6B,CAAC,GAAG;IAE3E,8EAA8E;IAC9E,kBAAkB,CAAC,EAAE;QAEnB,8DAA8D;QAC9D,SAAS,CAAC,EAAE,iBAAiB,CAAC;KAC/B,CAAC;CACH,CAAC;AAEF,OAAO,EAAE,6BAA6B,EAAE,oBAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"apple-health-sync-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/apple-health-sync-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,eAAe,EAChB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,8DAA8D;AAC9D,KAAK,6BAA6B,GAAG,oBAAoB,CAAC;AAE1D,kCAAkC;AAClC,KAAK,oBAAoB,GAAG,eAAe,CAAC,6BAA6B,CAAC,GAAG;IAE3E,8EAA8E;IAC9E,kBAAkB,CAAC,EAAE;QAEnB,8DAA8D;QAC9D,SAAS,CAAC,EAAE,eAAe,CAAC;KAC7B,CAAC;CACH,CAAC;AAEF,OAAO,EAAE,6BAA6B,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1,7 +1,9 @@
1
- import { HealthDataMode } from "./health-sync-keys";
1
+ import { HealthDataMode, HealthSyncKey } from "./health-sync-keys";
2
2
  export type GetDataFromProviderProps<T> = {
3
3
  startDate?: string;
4
4
  typeIdentifier: T;
5
+ /** The data type the read is for, when one platform record holds several, such as Health Connect's Nutrition. */
6
+ key?: HealthSyncKey;
5
7
  chunkSize?: number;
6
8
  anchor?: string;
7
9
  mode?: HealthDataMode;
@@ -1 +1 @@
1
- {"version":3,"file":"get-data-from-provider-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/get-data-from-provider-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,MAAM,wBAAwB,CAAC,CAAC,IAAI;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,CAAC,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"get-data-from-provider-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/get-data-from-provider-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnE,MAAM,MAAM,wBAAwB,CAAC,CAAC,IAAI;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,CAAC,CAAC;IAElB,iHAAiH;IACjH,GAAG,CAAC,EAAE,aAAa,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { HKSampleTypeIdentifier } from "@kingstinct/react-native-healthkit";
1
+ import type { SampleTypeIdentifierWriteable } from "@kingstinct/react-native-healthkit";
2
2
  import { AppleHealthDataTypeIdentifier } from "./apple-health-sync-props";
3
3
  import { HealthSyncKey } from "./health-sync-keys";
4
4
  /** Apple Health authorization state. */
@@ -8,7 +8,7 @@ type AppleHealthAuthorizationStatus = {
8
8
  /** HealthKit types that still need to be answered in Settings. */
9
9
  notRequestedReadIdentifiers: AppleHealthDataTypeIdentifier[];
10
10
  /** HealthKit write types that still need to be answered in Settings. */
11
- notRequestedWriteIdentifiers: HKSampleTypeIdentifier[];
11
+ notRequestedWriteIdentifiers: SampleTypeIdentifierWriteable[];
12
12
  /** Configured measurement types with at least one unanswered read identifier. */
13
13
  notRequestedMeasurementTypes: HealthSyncKey[];
14
14
  /** Error of the last authorization attempt. */
@@ -1 +1 @@
1
- {"version":3,"file":"health-authorization-status.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/health-authorization-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAE5E,OAAO,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,wCAAwC;AACxC,KAAK,8BAA8B,GAAG;IAEpC,mCAAmC;IACnC,KAAK,EAAE,SAAS,GAAG,eAAe,GAAG,YAAY,GAAG,OAAO,GAAG,OAAO,CAAC;IAEtE,kEAAkE;IAClE,2BAA2B,EAAE,6BAA6B,EAAE,CAAC;IAE7D,wEAAwE;IACxE,4BAA4B,EAAE,sBAAsB,EAAE,CAAC;IAEvD,iFAAiF;IACjF,4BAA4B,EAAE,aAAa,EAAE,CAAC;IAE9C,+CAA+C;IAC/C,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,0CAA0C;AAC1C,KAAK,uCAAuC,GAAG;IAE7C,mCAAmC;IACnC,KAAK,EACD,SAAS,GACT,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,SAAS,GACT,OAAO,CAAC;IAEZ,+CAA+C;IAC/C,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd,kDAAkD;IAClD,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAEjC,sFAAsF;IACtF,gBAAgB,CAAC,EAAE,YAAY,GAAG,eAAe,GAAG,SAAS,GAAG,aAAa,CAAC;CAC/E,CAAC;AAEF,YAAY,EACV,uCAAuC,EACvC,8BAA8B,GAC/B,CAAC"}
1
+ {"version":3,"file":"health-authorization-status.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/health-authorization-status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAExF,OAAO,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,wCAAwC;AACxC,KAAK,8BAA8B,GAAG;IAEpC,mCAAmC;IACnC,KAAK,EAAE,SAAS,GAAG,eAAe,GAAG,YAAY,GAAG,OAAO,GAAG,OAAO,CAAC;IAEtE,kEAAkE;IAClE,2BAA2B,EAAE,6BAA6B,EAAE,CAAC;IAE7D,wEAAwE;IACxE,4BAA4B,EAAE,6BAA6B,EAAE,CAAC;IAE9D,iFAAiF;IACjF,4BAA4B,EAAE,aAAa,EAAE,CAAC;IAE9C,+CAA+C;IAC/C,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,0CAA0C;AAC1C,KAAK,uCAAuC,GAAG;IAE7C,mCAAmC;IACnC,KAAK,EACD,SAAS,GACT,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,SAAS,GACT,OAAO,CAAC;IAEZ,+CAA+C;IAC/C,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd,kDAAkD;IAClD,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAEjC,sFAAsF;IACtF,gBAAgB,CAAC,EAAE,YAAY,GAAG,eAAe,GAAG,SAAS,GAAG,aAAa,CAAC;CAC/E,CAAC;AAEF,YAAY,EACV,uCAAuC,EACvC,8BAA8B,GAC/B,CAAC"}
@@ -24,7 +24,17 @@ declare enum HealthDataType {
24
24
  /** Sleep sessions. */
25
25
  sleep = "sleep",
26
26
  /** Workout sessions. */
27
- workout = "workout"
27
+ workout = "workout",
28
+ /** Water drunk. */
29
+ water = "water",
30
+ /** Carbohydrates eaten. */
31
+ carbohydrates = "carbohydrates",
32
+ /** Food energy eaten. */
33
+ caloriesEaten = "calories-eaten",
34
+ /** Blood alcohol content. */
35
+ bloodAlcohol = "blood-alcohol",
36
+ /** Insulin delivered. */
37
+ insulin = "insulin"
28
38
  }
29
39
  /** Measurement type or health-only data type that can be synced. */
30
40
  type HealthSyncKey = HealthSyncKeys | HealthDataType;
@@ -1 +1 @@
1
- {"version":3,"file":"health-sync-keys.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/health-sync-keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,8FAA8F;AAC9F,KAAK,cAAc,GAAG,OAAO,CAC3B,kBAAkB,EAClB,kBAAkB,CAAC,WAAW,GAAG,kBAAkB,CAAC,oBAAoB,CACzE,CAAC;AAEF,yEAAyE;AACzE,aAAK,cAAc;IAEjB,mBAAmB;IACnB,MAAM,WAAW;IAEjB,2BAA2B;IAC3B,iBAAiB,wBAAwB;IAEzC,uBAAuB;IACvB,aAAa,oBAAoB;IAEjC,sBAAsB;IACtB,YAAY,mBAAmB;IAE/B,8BAA8B;IAC9B,QAAQ,aAAa;IAErB,4BAA4B;IAC5B,YAAY,kBAAkB;IAE9B,iCAAiC;IACjC,cAAc,oBAAoB;IAElC,2BAA2B;IAC3B,eAAe,qBAAqB;IAEpC,2CAA2C;IAC3C,gBAAgB,uBAAuB;IAEvC,sBAAsB;IACtB,KAAK,UAAU;IAEf,wBAAwB;IACxB,OAAO,YAAY;CACpB;AAED,oEAAoE;AACpE,KAAK,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;AAErD,mDAAmD;AACnD,KAAK,cAAc,GACf,OAAO,GACP,aAAa,GACb,eAAe,GACf,SAAS;AAEX,sHAAsH;GACpH,QAAQ,CAAC;AAEb,yEAAyE;AACzE,QAAA,MAAM,iBAAiB,GACrB,KAAK,aAAa,EAClB,iBAAiB,cAAc,KAC9B,cAqBF,CAAC;AAEF,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,cAAc,GACpB,CAAC"}
1
+ {"version":3,"file":"health-sync-keys.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/health-sync-keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,8FAA8F;AAC9F,KAAK,cAAc,GAAG,OAAO,CAC3B,kBAAkB,EAClB,kBAAkB,CAAC,WAAW,GAAG,kBAAkB,CAAC,oBAAoB,CACzE,CAAC;AAEF,yEAAyE;AACzE,aAAK,cAAc;IAEjB,mBAAmB;IACnB,MAAM,WAAW;IAEjB,2BAA2B;IAC3B,iBAAiB,wBAAwB;IAEzC,uBAAuB;IACvB,aAAa,oBAAoB;IAEjC,sBAAsB;IACtB,YAAY,mBAAmB;IAE/B,8BAA8B;IAC9B,QAAQ,aAAa;IAErB,4BAA4B;IAC5B,YAAY,kBAAkB;IAE9B,iCAAiC;IACjC,cAAc,oBAAoB;IAElC,2BAA2B;IAC3B,eAAe,qBAAqB;IAEpC,2CAA2C;IAC3C,gBAAgB,uBAAuB;IAEvC,sBAAsB;IACtB,KAAK,UAAU;IAEf,wBAAwB;IACxB,OAAO,YAAY;IAEnB,mBAAmB;IACnB,KAAK,UAAU;IAEf,2BAA2B;IAC3B,aAAa,kBAAkB;IAE/B,yBAAyB;IACzB,aAAa,mBAAmB;IAEhC,6BAA6B;IAC7B,YAAY,kBAAkB;IAE9B,yBAAyB;IACzB,OAAO,YAAY;CACpB;AAED,oEAAoE;AACpE,KAAK,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;AAErD,mDAAmD;AACnD,KAAK,cAAc,GACf,OAAO,GACP,aAAa,GACb,eAAe,GACf,SAAS;AAEX,sHAAsH;GACpH,QAAQ,CAAC;AAEb,yEAAyE;AACzE,QAAA,MAAM,iBAAiB,GACrB,KAAK,aAAa,EAClB,iBAAiB,cAAc,KAC9B,cAwBF,CAAC;AAEF,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,cAAc,GACpB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Observation } from "@medplum/fhirtypes";
2
+ import { ConvertDataProps } from "../types/convert-data-props";
3
+ /** Core's own ECG service cannot convert a sample, so the recording is built into a measurement here. */
4
+ declare const convertEcgSamplesToObservation: (props: ConvertDataProps<unknown>) => Promise<Observation[]>;
5
+ export { convertEcgSamplesToObservation };
6
+ //# sourceMappingURL=convert-ecg-samples-to-observation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convert-ecg-samples-to-observation.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/convert-ecg-samples-to-observation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAqC/D,yGAAyG;AACzG,QAAA,MAAM,8BAA8B,GAClC,OAAO,gBAAgB,CAAC,OAAO,CAAC,KAC/B,OAAO,CAAC,WAAW,EAAE,CAsBvB,CAAC;AAEF,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
@@ -4,7 +4,7 @@ import { HealthDataMode } from "../types/health-sync-keys";
4
4
  type GenericHealthDataProps = ConvertDataProps<unknown> & {
5
5
  mode: HealthDataMode;
6
6
  };
7
- declare const convertGenericHealthDataToObservation: ({ data, patientId, mode, typeIdentifier: configuredTypeIdentifier, typeIdentifierCodes, typeIdentifierCodeSystems, typeIdentifierCodeDisplays, }: GenericHealthDataProps) => Promise<Observation[]>;
7
+ declare const convertGenericHealthDataToObservation: ({ data, patientId, measurementTypeKey, mode, typeIdentifier: configuredTypeIdentifier, typeIdentifierCodes, typeIdentifierCodeSystems, typeIdentifierCodeDisplays, }: GenericHealthDataProps) => Promise<Observation[]>;
8
8
  declare const extractValue: (raw: Record<string, unknown>) => {
9
9
  value: number;
10
10
  unit: string;
@@ -1 +1 @@
1
- {"version":3,"file":"convert-generic-health-data.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/convert-generic-health-data.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAK3D,KAAK,sBAAsB,GAAG,gBAAgB,CAAC,OAAO,CAAC,GAAG;IACxD,IAAI,EAAE,cAAc,CAAC;CACtB,CAAC;AAQF,QAAA,MAAM,qCAAqC,GAAU,kJAQlD,sBAAsB,KAAG,OAAO,CAAC,WAAW,EAAE,CA8GhD,CAAC;AA6FF,QAAA,MAAM,YAAY,GAChB,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC3B;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,SA4DpC,CAAC;AAqIF,QAAA,MAAM,WAAW,GACf,MAAM,MAAM,EACZ,iBAAiB,MAAM,KACtB,MAAM,GAAG,SAiDX,CAAC;AAmEF,OAAO,EAAE,qCAAqC,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"convert-generic-health-data.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/convert-generic-health-data.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,cAAc,EAAkB,MAAM,2BAA2B,CAAC;AAK3E,KAAK,sBAAsB,GAAG,gBAAgB,CAAC,OAAO,CAAC,GAAG;IACxD,IAAI,EAAE,cAAc,CAAC;CACtB,CAAC;AAQF,QAAA,MAAM,qCAAqC,GAAU,sKASlD,sBAAsB,KAAG,OAAO,CAAC,WAAW,EAAE,CA+GhD,CAAC;AA6FF,QAAA,MAAM,YAAY,GAChB,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC3B;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,SA4DpC,CAAC;AAqIF,QAAA,MAAM,WAAW,GACf,MAAM,MAAM,EACZ,iBAAiB,MAAM,KACtB,MAAM,GAAG,SAkDX,CAAC;AAqEF,OAAO,EAAE,qCAAqC,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"convert-samples-to-observation.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/convert-samples-to-observation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAKjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAU/D,eAAO,MAAM,2BAA2B,GACtC,OAAO,gBAAgB,CAAC,OAAO,CAAC,KAC/B,OAAO,CAAC,WAAW,EAAE,CAiDvB,CAAC"}
1
+ {"version":3,"file":"convert-samples-to-observation.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/convert-samples-to-observation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAMjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAc/D,eAAO,MAAM,2BAA2B,GACtC,OAAO,gBAAgB,CAAC,OAAO,CAAC,KAC/B,OAAO,CAAC,WAAW,EAAE,CA0CvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"default-health-coding.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/default-health-coding.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAiC1E,4HAA4H;AAC5H,QAAA,MAAM,sBAAsB,GAC1B,UAAU,cAAc,EACxB,KAAK,aAAa,EAClB,YAAY,MAAM,EAClB,MAAM,cAAc,KACnB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAIlD,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
1
+ {"version":3,"file":"default-health-coding.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/default-health-coding.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAkB,aAAa,EAAE,MAAM,2BAA2B,CAAC;AA2C1F,4HAA4H;AAC5H,QAAA,MAAM,sBAAsB,GAC1B,UAAU,cAAc,EACxB,KAAK,aAAa,EAClB,YAAY,MAAM,EAClB,MAAM,cAAc,KACnB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAWlD,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
@@ -3,6 +3,6 @@ import { DataFromProviderResult } from "../types/data-from-provider-result";
3
3
  import { GetDataFromProviderProps } from "../types/get-data-from-provider-props";
4
4
  import { AggregatedHealthData, SeriesHealthData } from "../types/health-data";
5
5
  type HealthConnectData = RecordResult<RecordType> | AggregatedHealthData | SeriesHealthData;
6
- export declare const getRecordsFromHealthConnect: ({ typeIdentifier, startDate: _startDate, chunkSize, anchor, mode, }: GetDataFromProviderProps<RecordType>) => Promise<DataFromProviderResult<HealthConnectData, RecordType>>;
6
+ export declare const getRecordsFromHealthConnect: ({ typeIdentifier, key, startDate: _startDate, chunkSize, anchor, mode, }: GetDataFromProviderProps<RecordType>) => Promise<DataFromProviderResult<HealthConnectData, RecordType>>;
7
7
  export {};
8
8
  //# sourceMappingURL=get-records-from-health-connect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-records-from-health-connect.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/get-records-from-health-connect.ts"],"names":[],"mappings":"AAGA,OAAO,EAKL,YAAY,EACZ,UAAU,EACX,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAO9E,KAAK,iBAAiB,GAAG,YAAY,CAAC,UAAU,CAAC,GAAG,oBAAoB,GAAG,gBAAgB,CAAC;AAK5F,eAAO,MAAM,2BAA2B,GAAU,qEAM/C,wBAAwB,CAAC,UAAU,CAAC,KAAG,OAAO,CAC/C,sBAAsB,CAAC,iBAAiB,EAAE,UAAU,CAAC,CA8EtD,CAAC"}
1
+ {"version":3,"file":"get-records-from-health-connect.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/get-records-from-health-connect.ts"],"names":[],"mappings":"AAGA,OAAO,EAKL,YAAY,EACZ,UAAU,EACX,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAO9E,KAAK,iBAAiB,GAAG,YAAY,CAAC,UAAU,CAAC,GAAG,oBAAoB,GAAG,gBAAgB,CAAC;AAK5F,eAAO,MAAM,2BAA2B,GAAU,0EAO/C,wBAAwB,CAAC,UAAU,CAAC,KAAG,OAAO,CAC/C,sBAAsB,CAAC,iBAAiB,EAAE,UAAU,CAAC,CA8EtD,CAAC"}
@@ -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" | 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 | "IU" | "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" | 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 | "IU" | "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;AAwB5C,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"}
@@ -1,6 +1,17 @@
1
+ import { OvokStorage } from "@ovok/core/next";
1
2
  import { AcceptedDevice } from "../../../bt-management/types/accepted-device";
2
3
  import { DeviceSupport } from "../devices";
4
+ /** Options for `builtInDevices`. */
5
+ type BuiltInDevicesOptions = {
6
+ /**
7
+ * Where a device that hands over its stored records remembers which it already handed over, so the next connection
8
+ * reads only the others, such as the stored files of a Viatom ER1 or BP2 whose readings were saved or queued.
9
+ * Without it every connection reads them all.
10
+ */
11
+ recordCursorStorage?: OvokStorage;
12
+ };
3
13
  /** Support for the SDK's integrated devices and `defineCustomDevice` declarations, over `react-native-ble-plx`. */
4
- declare const builtInDevices: (accepted: readonly AcceptedDevice[]) => DeviceSupport;
14
+ declare const builtInDevices: (accepted: readonly AcceptedDevice[], { recordCursorStorage }?: BuiltInDevicesOptions) => DeviceSupport;
5
15
  export { builtInDevices };
16
+ export type { BuiltInDevicesOptions };
6
17
  //# sourceMappingURL=built-in-devices.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"built-in-devices.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/ble-plx/built-in-devices.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAM3C,mHAAmH;AACnH,QAAA,MAAM,cAAc,GAAI,UAAU,SAAS,cAAc,EAAE,KAAG,aAgB7D,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"built-in-devices.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/ble-plx/built-in-devices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAI9C,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAE9E,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAM3C,oCAAoC;AACpC,KAAK,qBAAqB,GAAG;IAE3B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,WAAW,CAAC;CACnC,CAAC;AAOF,mHAAmH;AACnH,QAAA,MAAM,cAAc,GAClB,UAAU,SAAS,cAAc,EAAE,EACnC,0BAAyB,qBAA0B,KAClD,aAiBF,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,YAAY,EAAE,qBAAqB,EAAE,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import { DeviceCreator } from "../../../bt-management/services/device-creator";
2
2
  import { AcceptedDevice } from "../../../bt-management/types/accepted-device";
3
+ import { BackgroundSyncStorage } from "../../../bt-management/types/background-sync";
3
4
  import { DeviceKey } from "../../../bt-management/types/device-key";
4
5
  import { Driver } from "../driver";
5
6
  /** Runs a device class from `@ovok/native/bt-management` until its protocol moves to a `DeviceProtocol`. */
6
- declare const legacyDriver: (creator: DeviceCreator<readonly AcceptedDevice[]>, deviceName: DeviceKey) => Driver;
7
+ declare const legacyDriver: (creator: DeviceCreator<readonly AcceptedDevice[]>, deviceName: DeviceKey, recordCursorStorage?: BackgroundSyncStorage) => Driver;
7
8
  export { legacyDriver };
8
9
  //# sourceMappingURL=legacy-driver.d.ts.map