@ovok/native 1.5.3 → 1.5.5

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 (168) hide show
  1. package/android/src/main/AndroidManifest.xml +1 -0
  2. package/android/src/main/java/com/ovok/sdk/backgroundsync/OvokBackgroundSyncModule.java +54 -0
  3. package/lib/commonjs/modules/background-sync/android-background-sync.js +20 -2
  4. package/lib/commonjs/modules/background-sync/android-background-sync.js.map +1 -1
  5. package/lib/commonjs/modules/background-sync/android-bluetooth-foreground-service.js +16 -9
  6. package/lib/commonjs/modules/background-sync/android-bluetooth-foreground-service.js.map +1 -1
  7. package/lib/commonjs/modules/background-sync/index.js +11 -0
  8. package/lib/commonjs/modules/background-sync/index.js.map +1 -1
  9. package/lib/commonjs/modules/background-sync/notifications.js +56 -0
  10. package/lib/commonjs/modules/background-sync/notifications.js.map +1 -0
  11. package/lib/commonjs/modules/bt-device/constants/device-instruction-pdfs.js +1 -0
  12. package/lib/commonjs/modules/bt-device/constants/device-instruction-pdfs.js.map +1 -1
  13. package/lib/commonjs/modules/bt-device/constants/device-list-items.js +6 -0
  14. package/lib/commonjs/modules/bt-device/constants/device-list-items.js.map +1 -1
  15. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-assets.js +3 -1
  16. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-assets.js.map +1 -1
  17. package/lib/commonjs/modules/bt-device/constants/supported-devices.js +16 -1
  18. package/lib/commonjs/modules/bt-device/constants/supported-devices.js.map +1 -1
  19. package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js +19 -2
  20. package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
  21. package/lib/commonjs/modules/bt-management/constants/integrated-devices-map.js +1 -1
  22. package/lib/commonjs/modules/bt-management/constants/integrated-devices-map.js.map +1 -1
  23. package/lib/commonjs/modules/bt-management/index.js +22 -0
  24. package/lib/commonjs/modules/bt-management/index.js.map +1 -1
  25. package/lib/commonjs/modules/bt-management/services/bt-manager.js +101 -38
  26. package/lib/commonjs/modules/bt-management/services/bt-manager.js.map +1 -1
  27. package/lib/commonjs/modules/bt-management/services/device-creator.js +3 -1
  28. package/lib/commonjs/modules/bt-management/services/device-creator.js.map +1 -1
  29. package/lib/commonjs/modules/bt-management/services/devices/bt-device-information.js +38 -18
  30. package/lib/commonjs/modules/bt-management/services/devices/bt-device-information.js.map +1 -1
  31. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval-activity-frame-reader.js +55 -0
  32. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval-activity-frame-reader.js.map +1 -0
  33. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.js +202 -0
  34. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.js.map +1 -0
  35. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.activity-device.js +54 -0
  36. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.activity-device.js.map +1 -0
  37. package/lib/commonjs/modules/bt-management/types/integrated-devices.js +1 -0
  38. package/lib/commonjs/modules/bt-management/types/integrated-devices.js.map +1 -1
  39. package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-context.js +13 -0
  40. package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-context.js.map +1 -0
  41. package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-provider.js +22 -15
  42. package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-provider.js.map +1 -1
  43. package/lib/commonjs/modules/data-sync/components/apple/apple-health-sync.js +35 -4
  44. package/lib/commonjs/modules/data-sync/components/apple/apple-health-sync.js.map +1 -1
  45. package/lib/module/modules/background-sync/android-background-sync.js +17 -1
  46. package/lib/module/modules/background-sync/android-background-sync.js.map +1 -1
  47. package/lib/module/modules/background-sync/android-bluetooth-foreground-service.js +17 -10
  48. package/lib/module/modules/background-sync/android-bluetooth-foreground-service.js.map +1 -1
  49. package/lib/module/modules/background-sync/index.js +1 -0
  50. package/lib/module/modules/background-sync/index.js.map +1 -1
  51. package/lib/module/modules/background-sync/notifications.js +50 -0
  52. package/lib/module/modules/background-sync/notifications.js.map +1 -0
  53. package/lib/module/modules/bt-device/constants/device-instruction-pdfs.js +1 -0
  54. package/lib/module/modules/bt-device/constants/device-instruction-pdfs.js.map +1 -1
  55. package/lib/module/modules/bt-device/constants/device-list-items.js +6 -0
  56. package/lib/module/modules/bt-device/constants/device-list-items.js.map +1 -1
  57. package/lib/module/modules/bt-device/constants/supported-device-catalog-assets.js +3 -1
  58. package/lib/module/modules/bt-device/constants/supported-device-catalog-assets.js.map +1 -1
  59. package/lib/module/modules/bt-device/constants/supported-devices.js +17 -2
  60. package/lib/module/modules/bt-device/constants/supported-devices.js.map +1 -1
  61. package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js +20 -3
  62. package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
  63. package/lib/module/modules/bt-management/constants/integrated-devices-map.js +1 -1
  64. package/lib/module/modules/bt-management/constants/integrated-devices-map.js.map +1 -1
  65. package/lib/module/modules/bt-management/index.js +2 -0
  66. package/lib/module/modules/bt-management/index.js.map +1 -1
  67. package/lib/module/modules/bt-management/services/bt-manager.js +101 -38
  68. package/lib/module/modules/bt-management/services/bt-manager.js.map +1 -1
  69. package/lib/module/modules/bt-management/services/device-creator.js +3 -1
  70. package/lib/module/modules/bt-management/services/device-creator.js.map +1 -1
  71. package/lib/module/modules/bt-management/services/devices/bt-device-information.js +38 -18
  72. package/lib/module/modules/bt-management/services/devices/bt-device-information.js.map +1 -1
  73. package/lib/module/modules/bt-management/services/devices/veroval/veroval-activity-frame-reader.js +50 -0
  74. package/lib/module/modules/bt-management/services/devices/veroval/veroval-activity-frame-reader.js.map +1 -0
  75. package/lib/module/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.js +198 -0
  76. package/lib/module/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.js.map +1 -0
  77. package/lib/module/modules/bt-management/services/devices/veroval/veroval.activity-device.js +49 -0
  78. package/lib/module/modules/bt-management/services/devices/veroval/veroval.activity-device.js.map +1 -0
  79. package/lib/module/modules/bt-management/types/device-measurement-map.js.map +1 -1
  80. package/lib/module/modules/bt-management/types/integrated-devices.js +1 -0
  81. package/lib/module/modules/bt-management/types/integrated-devices.js.map +1 -1
  82. package/lib/module/modules/data-sync/components/apple/apple-health-authorization-context.js +8 -0
  83. package/lib/module/modules/data-sync/components/apple/apple-health-authorization-context.js.map +1 -0
  84. package/lib/module/modules/data-sync/components/apple/apple-health-authorization-provider.js +22 -15
  85. package/lib/module/modules/data-sync/components/apple/apple-health-authorization-provider.js.map +1 -1
  86. package/lib/module/modules/data-sync/components/apple/apple-health-sync.js +35 -4
  87. package/lib/module/modules/data-sync/components/apple/apple-health-sync.js.map +1 -1
  88. package/lib/typescript/commonjs/src/modules/background-sync/android-background-sync.d.ts +7 -1
  89. package/lib/typescript/commonjs/src/modules/background-sync/android-background-sync.d.ts.map +1 -1
  90. package/lib/typescript/commonjs/src/modules/background-sync/android-bluetooth-foreground-service.d.ts.map +1 -1
  91. package/lib/typescript/commonjs/src/modules/background-sync/index.d.ts +1 -0
  92. package/lib/typescript/commonjs/src/modules/background-sync/index.d.ts.map +1 -1
  93. package/lib/typescript/commonjs/src/modules/background-sync/notifications.d.ts +14 -0
  94. package/lib/typescript/commonjs/src/modules/background-sync/notifications.d.ts.map +1 -0
  95. package/lib/typescript/commonjs/src/modules/bt-device/constants/device-instruction-pdfs.d.ts.map +1 -1
  96. package/lib/typescript/commonjs/src/modules/bt-device/constants/device-list-items.d.ts.map +1 -1
  97. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-assets.d.ts +3 -1
  98. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-assets.d.ts.map +1 -1
  99. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-devices.d.ts +7 -0
  100. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-devices.d.ts.map +1 -1
  101. package/lib/typescript/commonjs/src/modules/bt-management/components/bt-provider-child-wrapper.d.ts.map +1 -1
  102. package/lib/typescript/commonjs/src/modules/bt-management/constants/integrated-devices-map.d.ts.map +1 -1
  103. package/lib/typescript/commonjs/src/modules/bt-management/index.d.ts +2 -0
  104. package/lib/typescript/commonjs/src/modules/bt-management/index.d.ts.map +1 -1
  105. package/lib/typescript/commonjs/src/modules/bt-management/services/bt-manager.d.ts +7 -0
  106. package/lib/typescript/commonjs/src/modules/bt-management/services/bt-manager.d.ts.map +1 -1
  107. package/lib/typescript/commonjs/src/modules/bt-management/services/device-creator.d.ts.map +1 -1
  108. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-device-information.d.ts.map +1 -1
  109. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval-activity-frame-reader.d.ts +12 -0
  110. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval-activity-frame-reader.d.ts.map +1 -0
  111. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.d.ts +47 -0
  112. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.d.ts.map +1 -0
  113. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.activity-device.d.ts +18 -0
  114. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.activity-device.d.ts.map +1 -0
  115. package/lib/typescript/commonjs/src/modules/bt-management/types/background-sync.d.ts +8 -0
  116. package/lib/typescript/commonjs/src/modules/bt-management/types/background-sync.d.ts.map +1 -1
  117. package/lib/typescript/commonjs/src/modules/bt-management/types/device-measurement-map.d.ts +12 -1
  118. package/lib/typescript/commonjs/src/modules/bt-management/types/device-measurement-map.d.ts.map +1 -1
  119. package/lib/typescript/commonjs/src/modules/bt-management/types/integrated-devices.d.ts +2 -1
  120. package/lib/typescript/commonjs/src/modules/bt-management/types/integrated-devices.d.ts.map +1 -1
  121. package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-authorization-context.d.ts +7 -0
  122. package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-authorization-context.d.ts.map +1 -0
  123. package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-authorization-provider.d.ts +1 -1
  124. package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-authorization-provider.d.ts.map +1 -1
  125. package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-sync.d.ts +3 -1
  126. package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-sync.d.ts.map +1 -1
  127. package/lib/typescript/commonjs/src/modules/data-sync/components/data-sync.d.ts +1 -1
  128. package/lib/typescript/module/src/modules/background-sync/android-background-sync.d.ts +7 -1
  129. package/lib/typescript/module/src/modules/background-sync/android-background-sync.d.ts.map +1 -1
  130. package/lib/typescript/module/src/modules/background-sync/android-bluetooth-foreground-service.d.ts.map +1 -1
  131. package/lib/typescript/module/src/modules/background-sync/index.d.ts +1 -0
  132. package/lib/typescript/module/src/modules/background-sync/index.d.ts.map +1 -1
  133. package/lib/typescript/module/src/modules/background-sync/notifications.d.ts +14 -0
  134. package/lib/typescript/module/src/modules/background-sync/notifications.d.ts.map +1 -0
  135. package/lib/typescript/module/src/modules/bt-device/constants/device-instruction-pdfs.d.ts.map +1 -1
  136. package/lib/typescript/module/src/modules/bt-device/constants/device-list-items.d.ts.map +1 -1
  137. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-assets.d.ts +3 -1
  138. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-assets.d.ts.map +1 -1
  139. package/lib/typescript/module/src/modules/bt-device/constants/supported-devices.d.ts +7 -0
  140. package/lib/typescript/module/src/modules/bt-device/constants/supported-devices.d.ts.map +1 -1
  141. package/lib/typescript/module/src/modules/bt-management/components/bt-provider-child-wrapper.d.ts.map +1 -1
  142. package/lib/typescript/module/src/modules/bt-management/constants/integrated-devices-map.d.ts.map +1 -1
  143. package/lib/typescript/module/src/modules/bt-management/index.d.ts +2 -0
  144. package/lib/typescript/module/src/modules/bt-management/index.d.ts.map +1 -1
  145. package/lib/typescript/module/src/modules/bt-management/services/bt-manager.d.ts +7 -0
  146. package/lib/typescript/module/src/modules/bt-management/services/bt-manager.d.ts.map +1 -1
  147. package/lib/typescript/module/src/modules/bt-management/services/device-creator.d.ts.map +1 -1
  148. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-device-information.d.ts.map +1 -1
  149. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval-activity-frame-reader.d.ts +12 -0
  150. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval-activity-frame-reader.d.ts.map +1 -0
  151. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.d.ts +47 -0
  152. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.d.ts.map +1 -0
  153. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.activity-device.d.ts +18 -0
  154. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.activity-device.d.ts.map +1 -0
  155. package/lib/typescript/module/src/modules/bt-management/types/background-sync.d.ts +8 -0
  156. package/lib/typescript/module/src/modules/bt-management/types/background-sync.d.ts.map +1 -1
  157. package/lib/typescript/module/src/modules/bt-management/types/device-measurement-map.d.ts +12 -1
  158. package/lib/typescript/module/src/modules/bt-management/types/device-measurement-map.d.ts.map +1 -1
  159. package/lib/typescript/module/src/modules/bt-management/types/integrated-devices.d.ts +2 -1
  160. package/lib/typescript/module/src/modules/bt-management/types/integrated-devices.d.ts.map +1 -1
  161. package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-authorization-context.d.ts +7 -0
  162. package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-authorization-context.d.ts.map +1 -0
  163. package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-authorization-provider.d.ts +1 -1
  164. package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-authorization-provider.d.ts.map +1 -1
  165. package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-sync.d.ts +3 -1
  166. package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-sync.d.ts.map +1 -1
  167. package/lib/typescript/module/src/modules/data-sync/components/data-sync.d.ts +1 -1
  168. package/package.json +3 -1
@@ -1 +1 @@
1
- {"version":3,"file":"background-sync.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/background-sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,uBAAuB,CAAC;AAEtF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,UAAU,qBAAqB;IAC7B,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACjD,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACxD;AAED,UAAU,oBAAoB,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,CAC5D,SAAQ,cAAc,CAAC,CAAC,CAAC;IAEzB,4EAA4E;IAC5E,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,qBAAqB,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS;IAE7D,qCAAqC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,+DAA+D;IAC/D,OAAO,EAAE,qBAAqB,CAAC;IAE/B,qFAAqF;IACrF,QAAQ,EAAE,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAE7D,qCAAqC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,sFAAsF;IACtF,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAEjC,gFAAgF;IAChF,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC;;;OAGG;IACH,OAAO,CAAC,EAAE;QACR,iBAAiB,CAAC,EAAE,wCAAwC,CAAC;KAC9D,CAAC;IAEF,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,iFAAiF;IACjF,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,CAAC"}
1
+ {"version":3,"file":"background-sync.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/background-sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAEnF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,UAAU,qBAAqB;IAC7B,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACjD,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACxD;AAED,UAAU,oBAAoB,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,CAC5D,SAAQ,cAAc,CAAC,CAAC,CAAC;IAEzB,4EAA4E;IAC5E,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,qBAAqB,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS;IAE7D,qCAAqC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,+DAA+D;IAC/D,OAAO,EAAE,qBAAqB,CAAC;IAE/B,qFAAqF;IACrF,QAAQ,EAAE,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAE7D,qCAAqC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,sFAAsF;IACtF,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAEjC,gFAAgF;IAChF,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC;;;OAGG;IACH,OAAO,CAAC,EAAE;QACR,iBAAiB,CAAC,EAAE,wCAAwC,CAAC;KAC9D,CAAC;IAEF,kFAAkF;IAClF,aAAa,CAAC,EAAE;QACd,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC;QAC9D,IAAI,CAAC,EACD,uBAAuB,CAAC,MAAM,CAAC,GAC/B,CAAC,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC,CAAC,KAAK,uBAAuB,CAAC,MAAM,CAAC,CAAC,CAAC;KAC5E,CAAC;IAEF,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,iFAAiF;IACjF,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,CAAC"}
@@ -1,8 +1,18 @@
1
- import { BloodPressureMeasurement, BloodGlucoseMeasurement, BodyWeightMeasurement, EcgMeasurement, PulseOximeterMeasurement, UrineAnalyzeMeasurement } from "@ovok/core";
1
+ import { BloodPressureMeasurement, BloodGlucoseMeasurement, BodyWeightMeasurement, EcgMeasurement, PulseOximeterMeasurement, UrineAnalyzeMeasurement, MeasurementTypeKey } from "@ovok/core";
2
2
  import { CaseType } from "./case-type";
3
3
  import { CustomMeasurement } from "./custom-measurement";
4
4
  import { DeviceKey } from "./device-key";
5
5
  import { IntegratedDevices } from "./integrated-devices";
6
+ type ActivityHeartRateMeasurement = {
7
+ measurementTypeKey: MeasurementTypeKey.heartRate;
8
+ heartRate?: number;
9
+ };
10
+ type ActivityStepCountMeasurement = {
11
+ measurementTypeKey: MeasurementTypeKey.stepCount;
12
+ stepCount?: number;
13
+ start?: Date;
14
+ end?: Date;
15
+ };
6
16
  interface DeviceMeasurementMap {
7
17
  [IntegratedDevices.F4]: BodyWeightMeasurement;
8
18
  [IntegratedDevices.BP2]: BloodPressureMeasurement | EcgMeasurement;
@@ -18,6 +28,7 @@ interface DeviceMeasurementMap {
18
28
  [IntegratedDevices.BC01]: UrineAnalyzeMeasurement;
19
29
  [IntegratedDevices.VEROVAL_DUO_CONTROL]: BloodPressureMeasurement;
20
30
  [IntegratedDevices.VEROVAL_ECG]: EcgMeasurement;
31
+ [IntegratedDevices.VEROVAL_ACTIVITY]: ActivityHeartRateMeasurement | ActivityStepCountMeasurement;
21
32
  [IntegratedDevices.FORA_SCALE]: never;
22
33
  [IntegratedDevices.RPM_SCALE]: never;
23
34
  [IntegratedDevices.CLEVERTEMP]: never;
@@ -1 +1 @@
1
- {"version":3,"file":"device-measurement-map.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/device-measurement-map.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,uBAAuB,EACvB,qBAAqB,EACrB,cAAc,EACd,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE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CAAC,SAAS,CAAC,EAAE,KAAK,CAAC;IACrC,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE,uBAAuB,CAAC;CAClD;AAED;;;GAGG;AACH,KAAK,oBAAoB,CAAC,CAAC,SAAS,SAAS,IAAI,CAAC,SAAS,iBAAiB,GACxE,oBAAoB,CAAC,CAAC,CAAC,GACvB,iBAAiB,CAAC;AAEtB,MAAM,MAAM,yBAAyB,CAAC,CAAC,SAAS,SAAS,SAAS,EAAE,IAClE,oBAAoB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"device-measurement-map.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/device-measurement-map.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,uBAAuB,EACvB,qBAAqB,EACrB,cAAc,EACd,wBAAwB,EACxB,uBAAuB,EACxB,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,KAAK,4BAA4B,GAAG;IAClC,kBAAkB,EAAE,kBAAkB,CAAC,SAAS,CAAC;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,KAAK,4BAA4B,GAAG;IAClC,kBAAkB,EAAE,kBAAkB,CAAC,SAAS,CAAC;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,GAAG,CAAC,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,UAAU,oBAAoB;IAC5B,CAAC,iBAAiB,CAAC,EAAE,CAAC,EAAE,qBAAqB,CAA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,CAAC,SAAS,CAAC,EAAE,KAAK,CAAC;IACrC,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE,uBAAuB,CAAC;CAClD;AAED;;;GAGG;AACH,KAAK,oBAAoB,CAAC,CAAC,SAAS,SAAS,IAAI,CAAC,SAAS,iBAAiB,GACxE,oBAAoB,CAAC,CAAC,CAAC,GACvB,iBAAiB,CAAC;AAEtB,MAAM,MAAM,yBAAyB,CAAC,CAAC,SAAS,SAAS,SAAS,EAAE,IAClE,oBAAoB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAC"}
@@ -20,6 +20,7 @@ export declare enum IntegratedDevices {
20
20
  ALIVE_COR = "alivecor",
21
21
  BGM = "BGM",
22
22
  VEROVAL_DUO_CONTROL = "Veroval duo control",
23
- VEROVAL_ECG = "Veroval ECG"
23
+ VEROVAL_ECG = "Veroval ECG",
24
+ VEROVAL_ACTIVITY = "Veroval Activity"
24
25
  }
25
26
  //# sourceMappingURL=integrated-devices.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"integrated-devices.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/integrated-devices.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IAC3B,EAAE,OAAO;IACT,GAAG,QAAQ;IACX,IAAI,WAAW;IACf,OAAO,YAAY;IACnB,MAAM,YAAY;IAClB,MAAM,aAAa;IACnB,cAAc,kBAAkB;IAChC,UAAU,eAAe;IACzB,YAAY,SAAS;IACrB,QAAQ,cAAc;IACtB,QAAQ,QAAQ;IAChB,IAAI,SAAS;IACb,UAAU,cAAc;IACxB,SAAS,eAAe;IACxB,UAAU,kBAAkB;IAC5B,IAAI,SAAS;IACb,KAAK,aAAa;IAClB,EAAE,UAAU;IACZ,SAAS,aAAa;IACtB,GAAG,QAAQ;IACX,mBAAmB,wBAAwB;IAC3C,WAAW,gBAAgB;CAC5B"}
1
+ {"version":3,"file":"integrated-devices.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/integrated-devices.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IAC3B,EAAE,OAAO;IACT,GAAG,QAAQ;IACX,IAAI,WAAW;IACf,OAAO,YAAY;IACnB,MAAM,YAAY;IAClB,MAAM,aAAa;IACnB,cAAc,kBAAkB;IAChC,UAAU,eAAe;IACzB,YAAY,SAAS;IACrB,QAAQ,cAAc;IACtB,QAAQ,QAAQ;IAChB,IAAI,SAAS;IACb,UAAU,cAAc;IACxB,SAAS,eAAe;IACxB,UAAU,kBAAkB;IAC5B,IAAI,SAAS;IACb,KAAK,aAAa;IAClB,EAAE,UAAU;IACZ,SAAS,aAAa;IACtB,GAAG,QAAQ;IACX,mBAAmB,wBAAwB;IAC3C,WAAW,gBAAgB;IAC3B,gBAAgB,qBAAqB;CACtC"}
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import { AppleHealthAuthorizationStatus } from "../../types/health-authorization-status";
3
+ /** The resolved HealthKit request state for the nearest authorization provider. */
4
+ declare const AppleHealthAuthorizationContext: React.Context<AppleHealthAuthorizationStatus | null>;
5
+ declare const useAppleHealthAuthorizationStatus: () => AppleHealthAuthorizationStatus | null;
6
+ export { AppleHealthAuthorizationContext, useAppleHealthAuthorizationStatus, };
7
+ //# sourceMappingURL=apple-health-authorization-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apple-health-authorization-context.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/components/apple/apple-health-authorization-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAEzF,mFAAmF;AACnF,QAAA,MAAM,+BAA+B,sDAC6B,CAAC;AAEnE,QAAA,MAAM,iCAAiC,6CACY,CAAC;AAEpD,OAAO,EACL,+BAA+B,EAC/B,iCAAiC,GAClC,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import * as React from "react";
2
2
  import { AppleHealthAuthorizationProviderProps } from "../../types/apple-health-authorization-provider-props";
3
- export declare const AppleHealthAuthorizationProvider: React.MemoExoticComponent<({ readIdentifiers, writeIdentifiers, fallback, children, skipRequest, renderManualRequestUI, onAuthorizationStatusChange, }: React.PropsWithChildren<AppleHealthAuthorizationProviderProps>) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined>;
3
+ export declare const AppleHealthAuthorizationProvider: React.MemoExoticComponent<({ readIdentifiers, writeIdentifiers, fallback, children, skipRequest, renderManualRequestUI, onAuthorizationStatusChange, }: React.PropsWithChildren<AppleHealthAuthorizationProviderProps>) => React.JSX.Element>;
4
4
  //# sourceMappingURL=apple-health-authorization-provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"apple-health-authorization-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/components/apple/apple-health-authorization-provider.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,qCAAqC,EAAE,MAAM,uDAAuD,CAAC;AAqB9G,eAAO,MAAM,gCAAgC,0JASxC,KAAK,CAAC,iBAAiB,CAAC,qCAAqC,CAAC,qSA8KlE,CAAC"}
1
+ {"version":3,"file":"apple-health-authorization-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/components/apple/apple-health-authorization-provider.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,qCAAqC,EAAE,MAAM,uDAAuD,CAAC;AAuB9G,eAAO,MAAM,gCAAgC,0JASxC,KAAK,CAAC,iBAAiB,CAAC,qCAAqC,CAAC,uBA4LlE,CAAC"}
@@ -1,4 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { AppleHealthSyncProps } from "../../types/apple-health-sync-props";
3
- export declare const AppleHealthSync: React.MemoExoticComponent<({ dataToSync, chunkSize, wifiOnly, backgroundDelivery, onError, onProgress, }: AppleHealthSyncProps) => null>;
3
+ declare const filterNotRequestedIdentifiers: (dataToSync: AppleHealthSyncProps["dataToSync"], notRequestedIdentifiers: readonly string[]) => AppleHealthSyncProps["dataToSync"];
4
+ declare const AppleHealthSync: React.MemoExoticComponent<({ dataToSync, chunkSize, wifiOnly, backgroundDelivery, onError, onProgress, }: AppleHealthSyncProps) => null>;
5
+ export { AppleHealthSync, filterNotRequestedIdentifiers };
4
6
  //# sourceMappingURL=apple-health-sync.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"apple-health-sync.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/components/apple/apple-health-sync.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAG3E,eAAO,MAAM,eAAe,4GAQvB,oBAAoB,UAiHxB,CAAC"}
1
+ {"version":3,"file":"apple-health-sync.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/components/apple/apple-health-sync.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAK3E,QAAA,MAAM,6BAA6B,GACjC,YAAY,oBAAoB,CAAC,YAAY,CAAC,EAC9C,yBAAyB,SAAS,MAAM,EAAE,KACzC,oBAAoB,CAAC,YAAY,CA0BnC,CAAC;AAEF,QAAA,MAAM,eAAe,4GAQhB,oBAAoB,UAgJxB,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,6BAA6B,EAAE,CAAC"}
@@ -3,7 +3,7 @@ export declare const DataSync: {
3
3
  ({ children }: React.PropsWithChildren): React.JSX.Element;
4
4
  AndroidHealthConnectAuthorizationProvider: React.MemoExoticComponent<({ readIdentifiers, writeIdentifiers, fallback, children, skipRequest, renderManualRequestUI, backgroundAccess, onAuthorizationStatusChange, }: React.PropsWithChildren<import("../types/android-health-connect-authorization-provider-props").AndroidHealthConnectAuthorizationProviderProps>) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined>;
5
5
  AndroidHealthSync: React.MemoExoticComponent<({ dataToSync, chunkSize, wifiOnly, onError, onProgress, }: import("..").AndroidHealthSyncProps) => null>;
6
- AppleHealthAuthorizationProvider: React.MemoExoticComponent<({ readIdentifiers, writeIdentifiers, fallback, children, skipRequest, renderManualRequestUI, onAuthorizationStatusChange, }: React.PropsWithChildren<import("../types/apple-health-authorization-provider-props").AppleHealthAuthorizationProviderProps>) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined>;
6
+ AppleHealthAuthorizationProvider: React.MemoExoticComponent<({ readIdentifiers, writeIdentifiers, fallback, children, skipRequest, renderManualRequestUI, onAuthorizationStatusChange, }: React.PropsWithChildren<import("../types/apple-health-authorization-provider-props").AppleHealthAuthorizationProviderProps>) => React.JSX.Element>;
7
7
  AppleHealthSync: React.MemoExoticComponent<({ dataToSync, chunkSize, wifiOnly, backgroundDelivery, onError, onProgress, }: import("..").AppleHealthSyncProps) => null>;
8
8
  ManuallyRequestSheet: React.NamedExoticComponent<import("@gorhom/bottom-sheet").BottomSheetModalProps<any> & React.RefAttributes<import("@gorhom/bottom-sheet").BottomSheetModal>> & {
9
9
  Container: (props: import("@gorhom/bottom-sheet/lib/typescript/components/bottomSheetView/types").BottomSheetViewProps) => React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ovok/native",
3
- "version": "1.5.3",
3
+ "version": "1.5.5",
4
4
  "description": "React native component sdk for OVOK",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -116,6 +116,7 @@
116
116
  "expo-health-connect": "^0.1.1",
117
117
  "expo-image": "~57.0.5",
118
118
  "expo-linear-gradient": "~57.0.2",
119
+ "expo-notifications": "57.0.21",
119
120
  "expo-web-browser": "~57.0.3",
120
121
  "formik": "^2.4.9",
121
122
  "globals": "^15.11.0",
@@ -171,6 +172,7 @@
171
172
  "expo-health-connect": "*",
172
173
  "expo-image": "*",
173
174
  "expo-linear-gradient": "*",
175
+ "expo-notifications": "*",
174
176
  "expo-secure-store": "*",
175
177
  "expo-standard-web-crypto": "*",
176
178
  "expo-web-browser": "*",