@ovok/native 1.16.1-dev.2095 → 1.16.1-dev.2097

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 (917) hide show
  1. package/lib/commonjs/modules/auth/hooks/use-accept-invite-link.js +6 -12
  2. package/lib/commonjs/modules/auth/hooks/use-accept-invite-link.js.map +1 -1
  3. package/lib/commonjs/modules/auth/hooks/use-delete-account.js +5 -8
  4. package/lib/commonjs/modules/auth/hooks/use-delete-account.js.map +1 -1
  5. package/lib/commonjs/modules/auth/hooks/use-session.js +150 -28
  6. package/lib/commonjs/modules/auth/hooks/use-session.js.map +1 -1
  7. package/lib/commonjs/modules/auth/hooks/use-sign-in.js +5 -23
  8. package/lib/commonjs/modules/auth/hooks/use-sign-in.js.map +1 -1
  9. package/lib/commonjs/modules/auth/hooks/use-sign-out.js +2 -2
  10. package/lib/commonjs/modules/auth/hooks/use-sign-out.js.map +1 -1
  11. package/lib/commonjs/modules/auth/hooks/use-social-sign-in.js +4 -9
  12. package/lib/commonjs/modules/auth/hooks/use-social-sign-in.js.map +1 -1
  13. package/lib/commonjs/modules/auth/profile/components/profile-form-provider.js +25 -11
  14. package/lib/commonjs/modules/auth/profile/components/profile-form-provider.js.map +1 -1
  15. package/lib/commonjs/modules/auth/register/components/form/register-form-provider.js +19 -20
  16. package/lib/commonjs/modules/auth/register/components/form/register-form-provider.js.map +1 -1
  17. package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-form-provider.js +3 -3
  18. package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-form-provider.js.map +1 -1
  19. package/lib/commonjs/modules/auth/session/logout-session.js +1 -3
  20. package/lib/commonjs/modules/auth/session/logout-session.js.map +1 -1
  21. package/lib/commonjs/modules/auth/session/session-snapshot.js +33 -0
  22. package/lib/commonjs/modules/auth/session/session-snapshot.js.map +1 -0
  23. package/lib/commonjs/modules/auth/sign-in/components/form/login-form-provider.js +11 -6
  24. package/lib/commonjs/modules/auth/sign-in/components/form/login-form-provider.js.map +1 -1
  25. package/lib/commonjs/modules/auth/sign-in/components/social-logins/apple-login-button.js +8 -10
  26. package/lib/commonjs/modules/auth/sign-in/components/social-logins/apple-login-button.js.map +1 -1
  27. package/lib/commonjs/modules/auth/sign-in/components/social-logins/google-login-button.js +3 -5
  28. package/lib/commonjs/modules/auth/sign-in/components/social-logins/google-login-button.js.map +1 -1
  29. package/lib/commonjs/modules/auth/utils/sign-in-error.js +7 -7
  30. package/lib/commonjs/modules/auth/utils/sign-in-error.js.map +1 -1
  31. package/lib/commonjs/modules/background-sync/android-background-sync.js +6 -0
  32. package/lib/commonjs/modules/background-sync/android-background-sync.js.map +1 -1
  33. package/lib/commonjs/modules/bt-device/constants/device-model.js +2 -2
  34. package/lib/commonjs/modules/bt-device/constants/device-model.js.map +1 -1
  35. package/lib/commonjs/modules/bt-device/constants/supported-devices.js +9 -9
  36. package/lib/commonjs/modules/bt-device/constants/supported-devices.js.map +1 -1
  37. package/lib/commonjs/modules/bt-management/constants/built-in-measurement-types.js +81 -81
  38. package/lib/commonjs/modules/bt-management/constants/built-in-measurement-types.js.map +1 -1
  39. package/lib/commonjs/modules/bt-management/constants/measurement-field-catalog.js +12 -12
  40. package/lib/commonjs/modules/bt-management/constants/measurement-field-catalog.js.map +1 -1
  41. package/lib/commonjs/modules/bt-management/services/devices/a606/a606.device.js +2 -2
  42. package/lib/commonjs/modules/bt-management/services/devices/a606/a606.device.js.map +1 -1
  43. package/lib/commonjs/modules/bt-management/services/devices/a606/a606.main-services.js +2 -2
  44. package/lib/commonjs/modules/bt-management/services/devices/a606/a606.main-services.js.map +1 -1
  45. package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.sequencer.js +3 -3
  46. package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.sequencer.js.map +1 -1
  47. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.js +2 -2
  48. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.js.map +1 -1
  49. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj.device.js +4 -4
  50. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj.device.js.map +1 -1
  51. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj.thermometers.js +2 -2
  52. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj.thermometers.js.map +1 -1
  53. package/lib/commonjs/modules/bt-management/services/devices/bc01/bc01.device.js +2 -2
  54. package/lib/commonjs/modules/bt-management/services/devices/bc01/bc01.device.js.map +1 -1
  55. package/lib/commonjs/modules/bt-management/services/devices/bc01/bc01.main-services.js +5 -5
  56. package/lib/commonjs/modules/bt-management/services/devices/bc01/bc01.main-services.js.map +1 -1
  57. package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js +2 -2
  58. package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js.map +1 -1
  59. package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.device.js +12 -12
  60. package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.device.js.map +1 -1
  61. package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.files.js +3 -3
  62. package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.files.js.map +1 -1
  63. package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.main-services.js +8 -8
  64. package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.main-services.js.map +1 -1
  65. package/lib/commonjs/modules/bt-management/services/devices/bpw1/bpw1.device.js +2 -2
  66. package/lib/commonjs/modules/bt-management/services/devices/bpw1/bpw1.device.js.map +1 -1
  67. package/lib/commonjs/modules/bt-management/services/devices/bpw1/bpw1.main-services.js +2 -2
  68. package/lib/commonjs/modules/bt-management/services/devices/bpw1/bpw1.main-services.js.map +1 -1
  69. package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme-ecg.sequencer.js +2 -2
  70. package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme-ecg.sequencer.js.map +1 -1
  71. package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme-pod.sequencer.js +3 -3
  72. package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme-pod.sequencer.js.map +1 -1
  73. package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme.sequencer.js +15 -15
  74. package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme.sequencer.js.map +1 -1
  75. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.js +2 -2
  76. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.js.map +1 -1
  77. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.js +2 -2
  78. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.js.map +1 -1
  79. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.js +2 -2
  80. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.js.map +1 -1
  81. package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js +2 -2
  82. package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
  83. package/lib/commonjs/modules/bt-management/services/devices/f4/f4.main-services.js +3 -3
  84. package/lib/commonjs/modules/bt-management/services/devices/f4/f4.main-services.js.map +1 -1
  85. package/lib/commonjs/modules/bt-management/services/devices/f5/f5-scale.sequencer.js +2 -2
  86. package/lib/commonjs/modules/bt-management/services/devices/f5/f5-scale.sequencer.js.map +1 -1
  87. package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.sequencer.js +3 -3
  88. package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.sequencer.js.map +1 -1
  89. package/lib/commonjs/modules/bt-management/services/devices/genial-t31/genial-t31.device.js +2 -2
  90. package/lib/commonjs/modules/bt-management/services/devices/genial-t31/genial-t31.device.js.map +1 -1
  91. package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.sequencer.js +3 -3
  92. package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.sequencer.js.map +1 -1
  93. package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.sequencer.js +3 -3
  94. package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.sequencer.js.map +1 -1
  95. package/lib/commonjs/modules/bt-management/services/devices/live-oximeter.sequencer.js +2 -2
  96. package/lib/commonjs/modules/bt-management/services/devices/live-oximeter.sequencer.js.map +1 -1
  97. package/lib/commonjs/modules/bt-management/services/devices/spo/pc60fw.monitor.js +2 -2
  98. package/lib/commonjs/modules/bt-management/services/devices/spo/pc60fw.monitor.js.map +1 -1
  99. package/lib/commonjs/modules/bt-management/services/devices/spo/spo2.main-services.js +5 -5
  100. package/lib/commonjs/modules/bt-management/services/devices/spo/spo2.main-services.js.map +1 -1
  101. package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.js +6 -6
  102. package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.js.map +1 -1
  103. package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js +3 -3
  104. package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js.map +1 -1
  105. package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.records.js +6 -6
  106. package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.records.js.map +1 -1
  107. package/lib/commonjs/modules/bt-management/services/devices/tmb/tmb.bp-handler.js +2 -2
  108. package/lib/commonjs/modules/bt-management/services/devices/tmb/tmb.bp-handler.js.map +1 -1
  109. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js +2 -2
  110. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js.map +1 -1
  111. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js +2 -2
  112. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js.map +1 -1
  113. package/lib/commonjs/modules/bt-management/services/devices/transtek/mambo-a5.sequencer.js +2 -2
  114. package/lib/commonjs/modules/bt-management/services/devices/transtek/mambo-a5.sequencer.js.map +1 -1
  115. package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.records.js +4 -4
  116. package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.records.js.map +1 -1
  117. package/lib/commonjs/modules/bt-management/services/devices/trasense/s9.command-sequencer.js +3 -3
  118. package/lib/commonjs/modules/bt-management/services/devices/trasense/s9.command-sequencer.js.map +1 -1
  119. package/lib/commonjs/modules/bt-management/services/devices/uebe/mysense.device.js +2 -2
  120. package/lib/commonjs/modules/bt-management/services/devices/uebe/mysense.device.js.map +1 -1
  121. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.js +4 -4
  122. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.js.map +1 -1
  123. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.duo-control-device.js +2 -2
  124. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.duo-control-device.js.map +1 -1
  125. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.ecg-device.js +2 -2
  126. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.ecg-device.js.map +1 -1
  127. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.ecg-record.js +6 -6
  128. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.ecg-record.js.map +1 -1
  129. package/lib/commonjs/modules/bt-management/services/devices/viatom/baby-sleep-clip.protocol.js +2 -2
  130. package/lib/commonjs/modules/bt-management/services/devices/viatom/baby-sleep-clip.protocol.js.map +1 -1
  131. package/lib/commonjs/modules/bt-management/services/devices/viatom/bioland.bgm.sequencer.js +2 -2
  132. package/lib/commonjs/modules/bt-management/services/devices/viatom/bioland.bgm.sequencer.js.map +1 -1
  133. package/lib/commonjs/modules/bt-management/services/devices/viatom/lpm311.protocol.js +2 -2
  134. package/lib/commonjs/modules/bt-management/services/devices/viatom/lpm311.protocol.js.map +1 -1
  135. package/lib/commonjs/modules/bt-management/services/devices/viatom/oxy-s3.sequencer.js +2 -2
  136. package/lib/commonjs/modules/bt-management/services/devices/viatom/oxy-s3.sequencer.js.map +1 -1
  137. package/lib/commonjs/modules/bt-management/services/devices/viatom/pc80b.sequencer.js +2 -2
  138. package/lib/commonjs/modules/bt-management/services/devices/viatom/pc80b.sequencer.js.map +1 -1
  139. package/lib/commonjs/modules/bt-management/services/devices/viatom/pf10aw1.sequencer.js +2 -2
  140. package/lib/commonjs/modules/bt-management/services/devices/viatom/pf10aw1.sequencer.js.map +1 -1
  141. package/lib/commonjs/modules/bt-management/services/devices/viatom/poctor.m3102.sequencer.js +3 -3
  142. package/lib/commonjs/modules/bt-management/services/devices/viatom/poctor.m3102.sequencer.js.map +1 -1
  143. package/lib/commonjs/modules/bt-management/services/devices/viatom/sp20.sequencer.js +2 -2
  144. package/lib/commonjs/modules/bt-management/services/devices/viatom/sp20.sequencer.js.map +1 -1
  145. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom-aa55.sequencer.js +2 -2
  146. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom-aa55.sequencer.js.map +1 -1
  147. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom-r20.protocol.js +2 -2
  148. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom-r20.protocol.js.map +1 -1
  149. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom-r20.sequencer.js +2 -2
  150. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom-r20.sequencer.js.map +1 -1
  151. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bp-ecg-handler.js +3 -3
  152. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bp-ecg-handler.js.map +1 -1
  153. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bp-monitor-cases.js +3 -3
  154. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bp-monitor-cases.js.map +1 -1
  155. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bp3-files.js +2 -2
  156. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bp3-files.js.map +1 -1
  157. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bpm188.sequencer.js +2 -2
  158. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bpm188.sequencer.js.map +1 -1
  159. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js +2 -2
  160. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js.map +1 -1
  161. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.lepod.js +5 -5
  162. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.lepod.js.map +1 -1
  163. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.oximeters.js +3 -3
  164. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.oximeters.js.map +1 -1
  165. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pc100.sequencer.js +3 -3
  166. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pc100.sequencer.js.map +1 -1
  167. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pc300.sequencer.js +7 -7
  168. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pc300.sequencer.js.map +1 -1
  169. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pm10.sequencer.js +2 -2
  170. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pm10.sequencer.js.map +1 -1
  171. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.vtm20f.js +2 -2
  172. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.vtm20f.js.map +1 -1
  173. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.wbp02.sequencer.js +2 -2
  174. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.wbp02.sequencer.js.map +1 -1
  175. package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.sequencer.js +4 -4
  176. package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.sequencer.js.map +1 -1
  177. package/lib/commonjs/modules/bt-management/utils/convert-ecg-diagnostic-flag.js +7 -7
  178. package/lib/commonjs/modules/bt-management/utils/convert-ecg-diagnostic-flag.js.map +1 -1
  179. package/lib/commonjs/modules/cms/cms-locale.js +13 -0
  180. package/lib/commonjs/modules/cms/cms-locale.js.map +1 -0
  181. package/lib/commonjs/modules/cms/hooks/use-cms-content.js +35 -14
  182. package/lib/commonjs/modules/cms/hooks/use-cms-content.js.map +1 -1
  183. package/lib/commonjs/modules/cms/hooks/use-cms-locale.js +2 -6
  184. package/lib/commonjs/modules/cms/hooks/use-cms-locale.js.map +1 -1
  185. package/lib/commonjs/modules/cms/hooks/use-cms-translations.js +11 -23
  186. package/lib/commonjs/modules/cms/hooks/use-cms-translations.js.map +1 -1
  187. package/lib/commonjs/modules/cms/merge-cms-translations.js.map +1 -1
  188. package/lib/commonjs/modules/data-sync/hooks/use-health-sync-runner.js +30 -22
  189. package/lib/commonjs/modules/data-sync/hooks/use-health-sync-runner.js.map +1 -1
  190. package/lib/commonjs/modules/data-sync/services/base-health-sync-service.js +4 -8
  191. package/lib/commonjs/modules/data-sync/services/base-health-sync-service.js.map +1 -1
  192. package/lib/commonjs/modules/data-sync/services/managers/data-processor.js +4 -4
  193. package/lib/commonjs/modules/data-sync/services/managers/data-processor.js.map +1 -1
  194. package/lib/commonjs/modules/data-sync/services/managers/instance-manager.js +9 -5
  195. package/lib/commonjs/modules/data-sync/services/managers/instance-manager.js.map +1 -1
  196. package/lib/commonjs/modules/data-sync/services/managers/storage-manager.js +36 -39
  197. package/lib/commonjs/modules/data-sync/services/managers/storage-manager.js.map +1 -1
  198. package/lib/commonjs/modules/data-sync/services/managers/sync-state-manager.js.map +1 -1
  199. package/lib/commonjs/modules/data-sync/types/health-sync-keys.js +3 -3
  200. package/lib/commonjs/modules/data-sync/types/health-sync-keys.js.map +1 -1
  201. package/lib/commonjs/modules/data-sync/utils/convert-records-to-observation.js +3 -3
  202. package/lib/commonjs/modules/data-sync/utils/convert-records-to-observation.js.map +1 -1
  203. package/lib/commonjs/modules/data-sync/utils/convert-samples-to-observation.js +3 -3
  204. package/lib/commonjs/modules/data-sync/utils/convert-samples-to-observation.js.map +1 -1
  205. package/lib/commonjs/modules/data-sync/utils/get-latest-observation-dates-by-code.js +1 -1
  206. package/lib/commonjs/modules/data-sync/utils/get-latest-observation-dates-by-code.js.map +1 -1
  207. package/lib/commonjs/modules/data-sync/utils/retry-save.js +4 -5
  208. package/lib/commonjs/modules/data-sync/utils/retry-save.js.map +1 -1
  209. package/lib/commonjs/modules/data-sync/utils/session-owner.js +18 -0
  210. package/lib/commonjs/modules/data-sync/utils/session-owner.js.map +1 -0
  211. package/lib/commonjs/modules/data-sync/utils/to-core-health-observations.js +2 -2
  212. package/lib/commonjs/modules/data-sync/utils/to-core-health-observations.js.map +1 -1
  213. package/lib/commonjs/modules/image/components/optimized-image.js +3 -3
  214. package/lib/commonjs/modules/image/components/optimized-image.js.map +1 -1
  215. package/lib/commonjs/modules/next/ovok.js +5 -1
  216. package/lib/commonjs/modules/next/ovok.js.map +1 -1
  217. package/lib/commonjs/modules/next/use-native-ovok.js +17 -0
  218. package/lib/commonjs/modules/next/use-native-ovok.js.map +1 -0
  219. package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form-provider.js +27 -27
  220. package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form-provider.js.map +1 -1
  221. package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js +12 -17
  222. package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js.map +1 -1
  223. package/lib/commonjs/modules/socket/components/socket-provider.js +9 -4
  224. package/lib/commonjs/modules/socket/components/socket-provider.js.map +1 -1
  225. package/lib/commonjs/modules/tile/constants/measurement-icon-svg.js +21 -21
  226. package/lib/commonjs/modules/tile/constants/measurement-icon-svg.js.map +1 -1
  227. package/lib/commonjs/modules/ui/components/urine-test-result.js +3 -3
  228. package/lib/commonjs/modules/ui/components/urine-test-result.js.map +1 -1
  229. package/lib/module/modules/auth/hooks/use-accept-invite-link.js +6 -12
  230. package/lib/module/modules/auth/hooks/use-accept-invite-link.js.map +1 -1
  231. package/lib/module/modules/auth/hooks/use-delete-account.js +5 -8
  232. package/lib/module/modules/auth/hooks/use-delete-account.js.map +1 -1
  233. package/lib/module/modules/auth/hooks/use-session.js +151 -30
  234. package/lib/module/modules/auth/hooks/use-session.js.map +1 -1
  235. package/lib/module/modules/auth/hooks/use-sign-in.js +5 -23
  236. package/lib/module/modules/auth/hooks/use-sign-in.js.map +1 -1
  237. package/lib/module/modules/auth/hooks/use-sign-out.js +2 -2
  238. package/lib/module/modules/auth/hooks/use-sign-out.js.map +1 -1
  239. package/lib/module/modules/auth/hooks/use-social-sign-in.js +4 -9
  240. package/lib/module/modules/auth/hooks/use-social-sign-in.js.map +1 -1
  241. package/lib/module/modules/auth/profile/components/profile-form-provider.js +21 -7
  242. package/lib/module/modules/auth/profile/components/profile-form-provider.js.map +1 -1
  243. package/lib/module/modules/auth/register/components/form/register-form-provider.js +16 -17
  244. package/lib/module/modules/auth/register/components/form/register-form-provider.js.map +1 -1
  245. package/lib/module/modules/auth/reset-password/components/form/reset-password-form-provider.js +3 -3
  246. package/lib/module/modules/auth/reset-password/components/form/reset-password-form-provider.js.map +1 -1
  247. package/lib/module/modules/auth/session/logout-session.js +1 -3
  248. package/lib/module/modules/auth/session/logout-session.js.map +1 -1
  249. package/lib/module/modules/auth/session/session-snapshot.js +28 -0
  250. package/lib/module/modules/auth/session/session-snapshot.js.map +1 -0
  251. package/lib/module/modules/auth/sign-in/components/form/login-form-provider.js +11 -6
  252. package/lib/module/modules/auth/sign-in/components/form/login-form-provider.js.map +1 -1
  253. package/lib/module/modules/auth/sign-in/components/social-logins/apple-login-button.js +3 -5
  254. package/lib/module/modules/auth/sign-in/components/social-logins/apple-login-button.js.map +1 -1
  255. package/lib/module/modules/auth/sign-in/components/social-logins/google-login-button.js +3 -5
  256. package/lib/module/modules/auth/sign-in/components/social-logins/google-login-button.js.map +1 -1
  257. package/lib/module/modules/auth/utils/sign-in-error.js +7 -7
  258. package/lib/module/modules/auth/utils/sign-in-error.js.map +1 -1
  259. package/lib/module/modules/background-sync/android-background-sync.js +6 -0
  260. package/lib/module/modules/background-sync/android-background-sync.js.map +1 -1
  261. package/lib/module/modules/bt-device/constants/device-model.js +1 -1
  262. package/lib/module/modules/bt-device/constants/device-model.js.map +1 -1
  263. package/lib/module/modules/bt-device/constants/supported-devices.js +1 -1
  264. package/lib/module/modules/bt-device/constants/supported-devices.js.map +1 -1
  265. package/lib/module/modules/bt-management/constants/built-in-measurement-types.js +1 -1
  266. package/lib/module/modules/bt-management/constants/built-in-measurement-types.js.map +1 -1
  267. package/lib/module/modules/bt-management/constants/measurement-field-catalog.js +1 -1
  268. package/lib/module/modules/bt-management/constants/measurement-field-catalog.js.map +1 -1
  269. package/lib/module/modules/bt-management/services/devices/a606/a606.device.js +1 -1
  270. package/lib/module/modules/bt-management/services/devices/a606/a606.device.js.map +1 -1
  271. package/lib/module/modules/bt-management/services/devices/a606/a606.main-services.js +1 -1
  272. package/lib/module/modules/bt-management/services/devices/a606/a606.main-services.js.map +1 -1
  273. package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.sequencer.js +1 -1
  274. package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.sequencer.js.map +1 -1
  275. package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.js +1 -1
  276. package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.js.map +1 -1
  277. package/lib/module/modules/bt-management/services/devices/aoj/aoj.device.js +1 -1
  278. package/lib/module/modules/bt-management/services/devices/aoj/aoj.device.js.map +1 -1
  279. package/lib/module/modules/bt-management/services/devices/aoj/aoj.thermometers.js +1 -1
  280. package/lib/module/modules/bt-management/services/devices/aoj/aoj.thermometers.js.map +1 -1
  281. package/lib/module/modules/bt-management/services/devices/bc01/bc01.device.js +1 -1
  282. package/lib/module/modules/bt-management/services/devices/bc01/bc01.device.js.map +1 -1
  283. package/lib/module/modules/bt-management/services/devices/bc01/bc01.main-services.js +1 -1
  284. package/lib/module/modules/bt-management/services/devices/bc01/bc01.main-services.js.map +1 -1
  285. package/lib/module/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js +1 -1
  286. package/lib/module/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js.map +1 -1
  287. package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js +2 -2
  288. package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js.map +1 -1
  289. package/lib/module/modules/bt-management/services/devices/bp2/bp2.files.js +1 -1
  290. package/lib/module/modules/bt-management/services/devices/bp2/bp2.files.js.map +1 -1
  291. package/lib/module/modules/bt-management/services/devices/bp2/bp2.main-services.js +1 -1
  292. package/lib/module/modules/bt-management/services/devices/bp2/bp2.main-services.js.map +1 -1
  293. package/lib/module/modules/bt-management/services/devices/bpw1/bpw1.device.js +1 -1
  294. package/lib/module/modules/bt-management/services/devices/bpw1/bpw1.device.js.map +1 -1
  295. package/lib/module/modules/bt-management/services/devices/bpw1/bpw1.main-services.js +1 -1
  296. package/lib/module/modules/bt-management/services/devices/bpw1/bpw1.main-services.js.map +1 -1
  297. package/lib/module/modules/bt-management/services/devices/checkme/checkme-ecg.sequencer.js +1 -1
  298. package/lib/module/modules/bt-management/services/devices/checkme/checkme-ecg.sequencer.js.map +1 -1
  299. package/lib/module/modules/bt-management/services/devices/checkme/checkme-pod.sequencer.js +1 -1
  300. package/lib/module/modules/bt-management/services/devices/checkme/checkme-pod.sequencer.js.map +1 -1
  301. package/lib/module/modules/bt-management/services/devices/checkme/checkme.sequencer.js +1 -1
  302. package/lib/module/modules/bt-management/services/devices/checkme/checkme.sequencer.js.map +1 -1
  303. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.js +1 -1
  304. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.js.map +1 -1
  305. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.js +1 -1
  306. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.js.map +1 -1
  307. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.js +1 -1
  308. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.js.map +1 -1
  309. package/lib/module/modules/bt-management/services/devices/custom/custom.device.js +1 -1
  310. package/lib/module/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
  311. package/lib/module/modules/bt-management/services/devices/f4/f4.main-services.js +1 -1
  312. package/lib/module/modules/bt-management/services/devices/f4/f4.main-services.js.map +1 -1
  313. package/lib/module/modules/bt-management/services/devices/f5/f5-scale.sequencer.js +1 -1
  314. package/lib/module/modules/bt-management/services/devices/f5/f5-scale.sequencer.js.map +1 -1
  315. package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.sequencer.js +1 -1
  316. package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.sequencer.js.map +1 -1
  317. package/lib/module/modules/bt-management/services/devices/genial-t31/genial-t31.device.js +1 -1
  318. package/lib/module/modules/bt-management/services/devices/genial-t31/genial-t31.device.js.map +1 -1
  319. package/lib/module/modules/bt-management/services/devices/joytech/joytech.sequencer.js +1 -1
  320. package/lib/module/modules/bt-management/services/devices/joytech/joytech.sequencer.js.map +1 -1
  321. package/lib/module/modules/bt-management/services/devices/jumper/jumper.sequencer.js +1 -1
  322. package/lib/module/modules/bt-management/services/devices/jumper/jumper.sequencer.js.map +1 -1
  323. package/lib/module/modules/bt-management/services/devices/live-oximeter.sequencer.js +1 -1
  324. package/lib/module/modules/bt-management/services/devices/live-oximeter.sequencer.js.map +1 -1
  325. package/lib/module/modules/bt-management/services/devices/spo/pc60fw.monitor.js +1 -1
  326. package/lib/module/modules/bt-management/services/devices/spo/pc60fw.monitor.js.map +1 -1
  327. package/lib/module/modules/bt-management/services/devices/spo/spo2.main-services.js +1 -1
  328. package/lib/module/modules/bt-management/services/devices/spo/spo2.main-services.js.map +1 -1
  329. package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.js +1 -1
  330. package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.js.map +1 -1
  331. package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js +1 -1
  332. package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js.map +1 -1
  333. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.records.js +1 -1
  334. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.records.js.map +1 -1
  335. package/lib/module/modules/bt-management/services/devices/tmb/tmb.bp-handler.js +1 -1
  336. package/lib/module/modules/bt-management/services/devices/tmb/tmb.bp-handler.js.map +1 -1
  337. package/lib/module/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js +1 -1
  338. package/lib/module/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js.map +1 -1
  339. package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js +1 -1
  340. package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js.map +1 -1
  341. package/lib/module/modules/bt-management/services/devices/transtek/mambo-a5.sequencer.js +1 -1
  342. package/lib/module/modules/bt-management/services/devices/transtek/mambo-a5.sequencer.js.map +1 -1
  343. package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.records.js +1 -1
  344. package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.records.js.map +1 -1
  345. package/lib/module/modules/bt-management/services/devices/trasense/s9.command-sequencer.js +1 -1
  346. package/lib/module/modules/bt-management/services/devices/trasense/s9.command-sequencer.js.map +1 -1
  347. package/lib/module/modules/bt-management/services/devices/uebe/mysense.device.js +1 -1
  348. package/lib/module/modules/bt-management/services/devices/uebe/mysense.device.js.map +1 -1
  349. package/lib/module/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.js +1 -1
  350. package/lib/module/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.js.map +1 -1
  351. package/lib/module/modules/bt-management/services/devices/veroval/veroval.duo-control-device.js +1 -1
  352. package/lib/module/modules/bt-management/services/devices/veroval/veroval.duo-control-device.js.map +1 -1
  353. package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-device.js +1 -1
  354. package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-device.js.map +1 -1
  355. package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-record.js +1 -1
  356. package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-record.js.map +1 -1
  357. package/lib/module/modules/bt-management/services/devices/viatom/baby-sleep-clip.protocol.js +1 -1
  358. package/lib/module/modules/bt-management/services/devices/viatom/baby-sleep-clip.protocol.js.map +1 -1
  359. package/lib/module/modules/bt-management/services/devices/viatom/bioland.bgm.sequencer.js +1 -1
  360. package/lib/module/modules/bt-management/services/devices/viatom/bioland.bgm.sequencer.js.map +1 -1
  361. package/lib/module/modules/bt-management/services/devices/viatom/lpm311.protocol.js +1 -1
  362. package/lib/module/modules/bt-management/services/devices/viatom/lpm311.protocol.js.map +1 -1
  363. package/lib/module/modules/bt-management/services/devices/viatom/oxy-s3.sequencer.js +1 -1
  364. package/lib/module/modules/bt-management/services/devices/viatom/oxy-s3.sequencer.js.map +1 -1
  365. package/lib/module/modules/bt-management/services/devices/viatom/pc80b.sequencer.js +1 -1
  366. package/lib/module/modules/bt-management/services/devices/viatom/pc80b.sequencer.js.map +1 -1
  367. package/lib/module/modules/bt-management/services/devices/viatom/pf10aw1.sequencer.js +1 -1
  368. package/lib/module/modules/bt-management/services/devices/viatom/pf10aw1.sequencer.js.map +1 -1
  369. package/lib/module/modules/bt-management/services/devices/viatom/poctor.m3102.sequencer.js +1 -1
  370. package/lib/module/modules/bt-management/services/devices/viatom/poctor.m3102.sequencer.js.map +1 -1
  371. package/lib/module/modules/bt-management/services/devices/viatom/sp20.sequencer.js +1 -1
  372. package/lib/module/modules/bt-management/services/devices/viatom/sp20.sequencer.js.map +1 -1
  373. package/lib/module/modules/bt-management/services/devices/viatom/viatom-aa55.sequencer.js +1 -1
  374. package/lib/module/modules/bt-management/services/devices/viatom/viatom-aa55.sequencer.js.map +1 -1
  375. package/lib/module/modules/bt-management/services/devices/viatom/viatom-r20.protocol.js +1 -1
  376. package/lib/module/modules/bt-management/services/devices/viatom/viatom-r20.protocol.js.map +1 -1
  377. package/lib/module/modules/bt-management/services/devices/viatom/viatom-r20.sequencer.js +1 -1
  378. package/lib/module/modules/bt-management/services/devices/viatom/viatom-r20.sequencer.js.map +1 -1
  379. package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp-ecg-handler.js +1 -1
  380. package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp-ecg-handler.js.map +1 -1
  381. package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp-monitor-cases.js +1 -1
  382. package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp-monitor-cases.js.map +1 -1
  383. package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp3-files.js +1 -1
  384. package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp3-files.js.map +1 -1
  385. package/lib/module/modules/bt-management/services/devices/viatom/viatom.bpm188.sequencer.js +1 -1
  386. package/lib/module/modules/bt-management/services/devices/viatom/viatom.bpm188.sequencer.js.map +1 -1
  387. package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js +1 -1
  388. package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js.map +1 -1
  389. package/lib/module/modules/bt-management/services/devices/viatom/viatom.lepod.js +1 -1
  390. package/lib/module/modules/bt-management/services/devices/viatom/viatom.lepod.js.map +1 -1
  391. package/lib/module/modules/bt-management/services/devices/viatom/viatom.oximeters.js +1 -1
  392. package/lib/module/modules/bt-management/services/devices/viatom/viatom.oximeters.js.map +1 -1
  393. package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc100.sequencer.js +1 -1
  394. package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc100.sequencer.js.map +1 -1
  395. package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc300.sequencer.js +1 -1
  396. package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc300.sequencer.js.map +1 -1
  397. package/lib/module/modules/bt-management/services/devices/viatom/viatom.pm10.sequencer.js +1 -1
  398. package/lib/module/modules/bt-management/services/devices/viatom/viatom.pm10.sequencer.js.map +1 -1
  399. package/lib/module/modules/bt-management/services/devices/viatom/viatom.vtm20f.js +1 -1
  400. package/lib/module/modules/bt-management/services/devices/viatom/viatom.vtm20f.js.map +1 -1
  401. package/lib/module/modules/bt-management/services/devices/viatom/viatom.wbp02.sequencer.js +1 -1
  402. package/lib/module/modules/bt-management/services/devices/viatom/viatom.wbp02.sequencer.js.map +1 -1
  403. package/lib/module/modules/bt-management/services/devices/yonker/yonker.sequencer.js +1 -1
  404. package/lib/module/modules/bt-management/services/devices/yonker/yonker.sequencer.js.map +1 -1
  405. package/lib/module/modules/bt-management/utils/convert-ecg-diagnostic-flag.js +1 -1
  406. package/lib/module/modules/bt-management/utils/convert-ecg-diagnostic-flag.js.map +1 -1
  407. package/lib/module/modules/cms/cms-locale.js +8 -0
  408. package/lib/module/modules/cms/cms-locale.js.map +1 -0
  409. package/lib/module/modules/cms/hooks/use-cms-content.js +35 -15
  410. package/lib/module/modules/cms/hooks/use-cms-content.js.map +1 -1
  411. package/lib/module/modules/cms/hooks/use-cms-locale.js +1 -6
  412. package/lib/module/modules/cms/hooks/use-cms-locale.js.map +1 -1
  413. package/lib/module/modules/cms/hooks/use-cms-translations.js +10 -23
  414. package/lib/module/modules/cms/hooks/use-cms-translations.js.map +1 -1
  415. package/lib/module/modules/cms/merge-cms-translations.js.map +1 -1
  416. package/lib/module/modules/data-sync/hooks/use-health-sync-runner.js +30 -22
  417. package/lib/module/modules/data-sync/hooks/use-health-sync-runner.js.map +1 -1
  418. package/lib/module/modules/data-sync/services/base-health-sync-service.js +4 -8
  419. package/lib/module/modules/data-sync/services/base-health-sync-service.js.map +1 -1
  420. package/lib/module/modules/data-sync/services/managers/data-processor.js +3 -3
  421. package/lib/module/modules/data-sync/services/managers/data-processor.js.map +1 -1
  422. package/lib/module/modules/data-sync/services/managers/instance-manager.js +9 -5
  423. package/lib/module/modules/data-sync/services/managers/instance-manager.js.map +1 -1
  424. package/lib/module/modules/data-sync/services/managers/storage-manager.js +35 -39
  425. package/lib/module/modules/data-sync/services/managers/storage-manager.js.map +1 -1
  426. package/lib/module/modules/data-sync/services/managers/sync-state-manager.js.map +1 -1
  427. package/lib/module/modules/data-sync/types/health-sync-keys.js +1 -1
  428. package/lib/module/modules/data-sync/types/health-sync-keys.js.map +1 -1
  429. package/lib/module/modules/data-sync/utils/convert-records-to-observation.js +2 -2
  430. package/lib/module/modules/data-sync/utils/convert-records-to-observation.js.map +1 -1
  431. package/lib/module/modules/data-sync/utils/convert-samples-to-observation.js +2 -2
  432. package/lib/module/modules/data-sync/utils/convert-samples-to-observation.js.map +1 -1
  433. package/lib/module/modules/data-sync/utils/get-latest-observation-dates-by-code.js +1 -1
  434. package/lib/module/modules/data-sync/utils/get-latest-observation-dates-by-code.js.map +1 -1
  435. package/lib/module/modules/data-sync/utils/retry-save.js +4 -5
  436. package/lib/module/modules/data-sync/utils/retry-save.js.map +1 -1
  437. package/lib/module/modules/data-sync/utils/session-owner.js +13 -0
  438. package/lib/module/modules/data-sync/utils/session-owner.js.map +1 -0
  439. package/lib/module/modules/data-sync/utils/to-core-health-observations.js +1 -1
  440. package/lib/module/modules/data-sync/utils/to-core-health-observations.js.map +1 -1
  441. package/lib/module/modules/image/components/optimized-image.js +3 -3
  442. package/lib/module/modules/image/components/optimized-image.js.map +1 -1
  443. package/lib/module/modules/next/ovok.js +5 -1
  444. package/lib/module/modules/next/ovok.js.map +1 -1
  445. package/lib/module/modules/next/use-native-ovok.js +12 -0
  446. package/lib/module/modules/next/use-native-ovok.js.map +1 -0
  447. package/lib/module/modules/questionnaire-response-form/components/questionnaire-form-provider.js +5 -5
  448. package/lib/module/modules/questionnaire-response-form/components/questionnaire-form-provider.js.map +1 -1
  449. package/lib/module/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js +12 -17
  450. package/lib/module/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js.map +1 -1
  451. package/lib/module/modules/socket/components/socket-provider.js +9 -4
  452. package/lib/module/modules/socket/components/socket-provider.js.map +1 -1
  453. package/lib/module/modules/tile/constants/measurement-icon-svg.js +1 -1
  454. package/lib/module/modules/tile/constants/measurement-icon-svg.js.map +1 -1
  455. package/lib/module/modules/ui/components/urine-test-result.js +1 -1
  456. package/lib/module/modules/ui/components/urine-test-result.js.map +1 -1
  457. package/lib/typescript/commonjs/src/modules/auth/hooks/use-accept-invite-link.d.ts +3 -3
  458. package/lib/typescript/commonjs/src/modules/auth/hooks/use-accept-invite-link.d.ts.map +1 -1
  459. package/lib/typescript/commonjs/src/modules/auth/hooks/use-delete-account.d.ts.map +1 -1
  460. package/lib/typescript/commonjs/src/modules/auth/hooks/use-session.d.ts +5 -16
  461. package/lib/typescript/commonjs/src/modules/auth/hooks/use-session.d.ts.map +1 -1
  462. package/lib/typescript/commonjs/src/modules/auth/hooks/use-sign-in.d.ts +3 -2
  463. package/lib/typescript/commonjs/src/modules/auth/hooks/use-sign-in.d.ts.map +1 -1
  464. package/lib/typescript/commonjs/src/modules/auth/hooks/use-sign-out.d.ts.map +1 -1
  465. package/lib/typescript/commonjs/src/modules/auth/hooks/use-social-sign-in.d.ts +2 -2
  466. package/lib/typescript/commonjs/src/modules/auth/hooks/use-social-sign-in.d.ts.map +1 -1
  467. package/lib/typescript/commonjs/src/modules/auth/profile/components/profile-form-provider.d.ts.map +1 -1
  468. package/lib/typescript/commonjs/src/modules/auth/profile/types/profile-form-field.d.ts +1 -1
  469. package/lib/typescript/commonjs/src/modules/auth/profile/types/profile-form-field.d.ts.map +1 -1
  470. package/lib/typescript/commonjs/src/modules/auth/register/components/form/register-form-provider.d.ts.map +1 -1
  471. package/lib/typescript/commonjs/src/modules/auth/register/types/register-form-props.d.ts +5 -3
  472. package/lib/typescript/commonjs/src/modules/auth/register/types/register-form-props.d.ts.map +1 -1
  473. package/lib/typescript/commonjs/src/modules/auth/register/types/register-form-values.d.ts +2 -2
  474. package/lib/typescript/commonjs/src/modules/auth/register/types/register-form-values.d.ts.map +1 -1
  475. package/lib/typescript/commonjs/src/modules/auth/session/logout-session.d.ts +3 -5
  476. package/lib/typescript/commonjs/src/modules/auth/session/logout-session.d.ts.map +1 -1
  477. package/lib/typescript/commonjs/src/modules/auth/session/session-snapshot.d.ts +21 -0
  478. package/lib/typescript/commonjs/src/modules/auth/session/session-snapshot.d.ts.map +1 -0
  479. package/lib/typescript/commonjs/src/modules/auth/sign-in/components/form/login-form-provider.d.ts.map +1 -1
  480. package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/apple-login-button.d.ts.map +1 -1
  481. package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/google-login-button.d.ts.map +1 -1
  482. package/lib/typescript/commonjs/src/modules/auth/sign-in/hooks/use-login-form.d.ts +1 -3
  483. package/lib/typescript/commonjs/src/modules/auth/sign-in/hooks/use-login-form.d.ts.map +1 -1
  484. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/apple-login-props.d.ts +2 -2
  485. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/apple-login-props.d.ts.map +1 -1
  486. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/google-login-props.d.ts +2 -2
  487. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/google-login-props.d.ts.map +1 -1
  488. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/login-form-context-type.d.ts +2 -4
  489. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/login-form-context-type.d.ts.map +1 -1
  490. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/login-form-props.d.ts +2 -2
  491. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/login-form-props.d.ts.map +1 -1
  492. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/login-form-values.d.ts +2 -2
  493. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/login-form-values.d.ts.map +1 -1
  494. package/lib/typescript/commonjs/src/modules/auth/utils/sign-in-error.d.ts +2 -2
  495. package/lib/typescript/commonjs/src/modules/auth/utils/sign-in-error.d.ts.map +1 -1
  496. package/lib/typescript/commonjs/src/modules/background-sync/android-background-sync.d.ts +2 -2
  497. package/lib/typescript/commonjs/src/modules/background-sync/android-background-sync.d.ts.map +1 -1
  498. package/lib/typescript/commonjs/src/modules/bt-device/constants/device-model.d.ts +1 -1
  499. package/lib/typescript/commonjs/src/modules/bt-device/constants/device-model.d.ts.map +1 -1
  500. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-devices.d.ts +1 -1
  501. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-devices.d.ts.map +1 -1
  502. package/lib/typescript/commonjs/src/modules/bt-device/utils/device-query.d.ts +1 -1
  503. package/lib/typescript/commonjs/src/modules/bt-device/utils/device-query.d.ts.map +1 -1
  504. package/lib/typescript/commonjs/src/modules/bt-management/constants/built-in-measurement-types.d.ts +1 -1
  505. package/lib/typescript/commonjs/src/modules/bt-management/constants/built-in-measurement-types.d.ts.map +1 -1
  506. package/lib/typescript/commonjs/src/modules/bt-management/constants/measurement-field-catalog.d.ts +1 -1
  507. package/lib/typescript/commonjs/src/modules/bt-management/constants/measurement-field-catalog.d.ts.map +1 -1
  508. package/lib/typescript/commonjs/src/modules/bt-management/services/custom/compile-case-fields.d.ts +1 -1
  509. package/lib/typescript/commonjs/src/modules/bt-management/services/custom/compile-case-fields.d.ts.map +1 -1
  510. package/lib/typescript/commonjs/src/modules/bt-management/services/custom/compile-custom-field.d.ts +1 -1
  511. package/lib/typescript/commonjs/src/modules/bt-management/services/custom/compile-custom-field.d.ts.map +1 -1
  512. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts.map +1 -1
  513. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.files.d.ts +1 -1
  514. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.files.d.ts.map +1 -1
  515. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-data-processor.d.ts +1 -1
  516. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-data-processor.d.ts.map +1 -1
  517. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts +1 -1
  518. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
  519. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-ecg.sequencer.d.ts +1 -1
  520. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-ecg.sequencer.d.ts.map +1 -1
  521. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-pod.sequencer.d.ts +1 -1
  522. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-pod.sequencer.d.ts.map +1 -1
  523. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme.sequencer.d.ts +1 -1
  524. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme.sequencer.d.ts.map +1 -1
  525. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/f5/f5-scale.sequencer.d.ts +1 -1
  526. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/f5/f5-scale.sequencer.d.ts.map +1 -1
  527. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/frame-parser.d.ts +1 -1
  528. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/frame-parser.d.ts.map +1 -1
  529. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/measurement-state-machine.d.ts +1 -1
  530. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/measurement-state-machine.d.ts.map +1 -1
  531. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts +1 -1
  532. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts.map +1 -1
  533. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.d.ts +1 -1
  534. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.d.ts.map +1 -1
  535. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.bp-monitors.d.ts +1 -1
  536. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.bp-monitors.d.ts.map +1 -1
  537. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.duo-control-device.d.ts +1 -1
  538. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.duo-control-device.d.ts.map +1 -1
  539. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.ecg-record.d.ts +1 -1
  540. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.ecg-record.d.ts.map +1 -1
  541. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.protocol.d.ts +1 -1
  542. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.protocol.d.ts.map +1 -1
  543. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.sequencer.d.ts +1 -1
  544. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.sequencer.d.ts.map +1 -1
  545. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/bioland.bgm.sequencer.d.ts +1 -1
  546. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/bioland.bgm.sequencer.d.ts.map +1 -1
  547. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/lpm311.protocol.d.ts +1 -1
  548. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/lpm311.protocol.d.ts.map +1 -1
  549. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/oxy-s3.sequencer.d.ts +1 -1
  550. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/oxy-s3.sequencer.d.ts.map +1 -1
  551. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pc80b.sequencer.d.ts +1 -1
  552. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pc80b.sequencer.d.ts.map +1 -1
  553. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pf10aw1.sequencer.d.ts +1 -1
  554. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pf10aw1.sequencer.d.ts.map +1 -1
  555. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/poctor.m3102.sequencer.d.ts +1 -1
  556. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/poctor.m3102.sequencer.d.ts.map +1 -1
  557. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/sp20.sequencer.d.ts +1 -1
  558. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/sp20.sequencer.d.ts.map +1 -1
  559. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-aa55.sequencer.d.ts +1 -1
  560. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-aa55.sequencer.d.ts.map +1 -1
  561. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-r20.protocol.d.ts +1 -1
  562. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-r20.protocol.d.ts.map +1 -1
  563. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-r20.sequencer.d.ts +1 -1
  564. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-r20.sequencer.d.ts.map +1 -1
  565. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.bp3-files.d.ts +1 -1
  566. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.bp3-files.d.ts.map +1 -1
  567. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.bpm188.sequencer.d.ts +1 -1
  568. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.bpm188.sequencer.d.ts.map +1 -1
  569. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc100.sequencer.d.ts +1 -1
  570. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc100.sequencer.d.ts.map +1 -1
  571. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc300.sequencer.d.ts +1 -1
  572. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc300.sequencer.d.ts.map +1 -1
  573. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pm10.sequencer.d.ts +1 -1
  574. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pm10.sequencer.d.ts.map +1 -1
  575. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.wbp02.sequencer.d.ts +1 -1
  576. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.wbp02.sequencer.d.ts.map +1 -1
  577. package/lib/typescript/commonjs/src/modules/bt-management/services/series-slots.d.ts +1 -1
  578. package/lib/typescript/commonjs/src/modules/bt-management/services/series-slots.d.ts.map +1 -1
  579. package/lib/typescript/commonjs/src/modules/bt-management/types/create-device-params.d.ts +1 -1
  580. package/lib/typescript/commonjs/src/modules/bt-management/types/create-device-params.d.ts.map +1 -1
  581. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-case-spec.d.ts +1 -1
  582. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-case-spec.d.ts.map +1 -1
  583. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-device-definition.d.ts +1 -1
  584. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-device-definition.d.ts.map +1 -1
  585. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-measurement-spec.d.ts +1 -1
  586. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-measurement-spec.d.ts.map +1 -1
  587. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-measurement.d.ts +1 -1
  588. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-measurement.d.ts.map +1 -1
  589. package/lib/typescript/commonjs/src/modules/bt-management/types/dependent-result-handler-params.d.ts +1 -1
  590. package/lib/typescript/commonjs/src/modules/bt-management/types/dependent-result-handler-params.d.ts.map +1 -1
  591. package/lib/typescript/commonjs/src/modules/bt-management/types/device-data.d.ts +1 -1
  592. package/lib/typescript/commonjs/src/modules/bt-management/types/device-data.d.ts.map +1 -1
  593. package/lib/typescript/commonjs/src/modules/bt-management/types/device-measurement-map.d.ts +2 -2
  594. package/lib/typescript/commonjs/src/modules/bt-management/types/device-measurement-map.d.ts.map +1 -1
  595. package/lib/typescript/commonjs/src/modules/bt-management/types/device-status-change-callback.d.ts +1 -1
  596. package/lib/typescript/commonjs/src/modules/bt-management/types/device-status-change-callback.d.ts.map +1 -1
  597. package/lib/typescript/commonjs/src/modules/bt-management/types/measurement-group.d.ts +1 -1
  598. package/lib/typescript/commonjs/src/modules/bt-management/types/measurement-group.d.ts.map +1 -1
  599. package/lib/typescript/commonjs/src/modules/bt-management/types/measurement-series.d.ts +1 -1
  600. package/lib/typescript/commonjs/src/modules/bt-management/types/measurement-series.d.ts.map +1 -1
  601. package/lib/typescript/commonjs/src/modules/bt-management/types/measurement-with-case-type.d.ts +1 -1
  602. package/lib/typescript/commonjs/src/modules/bt-management/types/measurement-with-case-type.d.ts.map +1 -1
  603. package/lib/typescript/commonjs/src/modules/bt-management/types/parsing-case.d.ts +1 -1
  604. package/lib/typescript/commonjs/src/modules/bt-management/types/parsing-case.d.ts.map +1 -1
  605. package/lib/typescript/commonjs/src/modules/bt-management/types/result-policy.d.ts +1 -1
  606. package/lib/typescript/commonjs/src/modules/bt-management/types/result-policy.d.ts.map +1 -1
  607. package/lib/typescript/commonjs/src/modules/bt-management/utils/convert-ecg-diagnostic-flag.d.ts +1 -1
  608. package/lib/typescript/commonjs/src/modules/bt-management/utils/convert-ecg-diagnostic-flag.d.ts.map +1 -1
  609. package/lib/typescript/commonjs/src/modules/bt-management/utils/parse-measurement.d.ts +1 -1
  610. package/lib/typescript/commonjs/src/modules/bt-management/utils/parse-measurement.d.ts.map +1 -1
  611. package/lib/typescript/commonjs/src/modules/bt-management/utils/result-identity.d.ts +1 -1
  612. package/lib/typescript/commonjs/src/modules/bt-management/utils/result-identity.d.ts.map +1 -1
  613. package/lib/typescript/commonjs/src/modules/bt-management/utils/supported-measurement-type-keys.d.ts +1 -1
  614. package/lib/typescript/commonjs/src/modules/bt-management/utils/supported-measurement-type-keys.d.ts.map +1 -1
  615. package/lib/typescript/commonjs/src/modules/cms/cms-locale.d.ts +2 -0
  616. package/lib/typescript/commonjs/src/modules/cms/cms-locale.d.ts.map +1 -0
  617. package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-content.d.ts +6 -7
  618. package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-content.d.ts.map +1 -1
  619. package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-locale.d.ts +1 -6
  620. package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-locale.d.ts.map +1 -1
  621. package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-translations.d.ts +2 -9
  622. package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-translations.d.ts.map +1 -1
  623. package/lib/typescript/commonjs/src/modules/cms/merge-cms-translations.d.ts +1 -1
  624. package/lib/typescript/commonjs/src/modules/cms/merge-cms-translations.d.ts.map +1 -1
  625. package/lib/typescript/commonjs/src/modules/data-sync/hooks/use-health-sync-runner.d.ts.map +1 -1
  626. package/lib/typescript/commonjs/src/modules/data-sync/services/base-health-sync-service.d.ts +0 -1
  627. package/lib/typescript/commonjs/src/modules/data-sync/services/base-health-sync-service.d.ts.map +1 -1
  628. package/lib/typescript/commonjs/src/modules/data-sync/services/managers/data-processor.d.ts +2 -2
  629. package/lib/typescript/commonjs/src/modules/data-sync/services/managers/data-processor.d.ts.map +1 -1
  630. package/lib/typescript/commonjs/src/modules/data-sync/services/managers/instance-manager.d.ts +2 -0
  631. package/lib/typescript/commonjs/src/modules/data-sync/services/managers/instance-manager.d.ts.map +1 -1
  632. package/lib/typescript/commonjs/src/modules/data-sync/services/managers/storage-manager.d.ts +11 -26
  633. package/lib/typescript/commonjs/src/modules/data-sync/services/managers/storage-manager.d.ts.map +1 -1
  634. package/lib/typescript/commonjs/src/modules/data-sync/services/managers/sync-state-manager.d.ts +3 -3
  635. package/lib/typescript/commonjs/src/modules/data-sync/services/managers/sync-state-manager.d.ts.map +1 -1
  636. package/lib/typescript/commonjs/src/modules/data-sync/types/base-service-props.d.ts +3 -2
  637. package/lib/typescript/commonjs/src/modules/data-sync/types/base-service-props.d.ts.map +1 -1
  638. package/lib/typescript/commonjs/src/modules/data-sync/types/convert-data-props.d.ts +2 -2
  639. package/lib/typescript/commonjs/src/modules/data-sync/types/convert-data-props.d.ts.map +1 -1
  640. package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-keys.d.ts +1 -1
  641. package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-keys.d.ts.map +1 -1
  642. package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-props.d.ts +1 -2
  643. package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-props.d.ts.map +1 -1
  644. package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-samples-to-observation.d.ts.map +1 -1
  645. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-latest-observation-dates-by-code.d.ts +2 -2
  646. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-latest-observation-dates-by-code.d.ts.map +1 -1
  647. package/lib/typescript/commonjs/src/modules/data-sync/utils/retry-save.d.ts.map +1 -1
  648. package/lib/typescript/commonjs/src/modules/data-sync/utils/session-owner.d.ts +7 -0
  649. package/lib/typescript/commonjs/src/modules/data-sync/utils/session-owner.d.ts.map +1 -0
  650. package/lib/typescript/commonjs/src/modules/data-sync/utils/to-core-health-observations.d.ts +1 -1
  651. package/lib/typescript/commonjs/src/modules/data-sync/utils/to-core-health-observations.d.ts.map +1 -1
  652. package/lib/typescript/commonjs/src/modules/image/components/optimized-image.d.ts.map +1 -1
  653. package/lib/typescript/commonjs/src/modules/next/ovok.d.ts +4 -1
  654. package/lib/typescript/commonjs/src/modules/next/ovok.d.ts.map +1 -1
  655. package/lib/typescript/commonjs/src/modules/next/use-native-ovok.d.ts +3 -0
  656. package/lib/typescript/commonjs/src/modules/next/use-native-ovok.d.ts.map +1 -0
  657. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/questionnaire-form-provider.d.ts.map +1 -1
  658. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts +2 -2
  659. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts.map +1 -1
  660. package/lib/typescript/commonjs/src/modules/socket/components/socket-provider.d.ts.map +1 -1
  661. package/lib/typescript/commonjs/src/modules/tile/types/task-icon-props.d.ts +1 -1
  662. package/lib/typescript/commonjs/src/modules/tile/types/task-icon-props.d.ts.map +1 -1
  663. package/lib/typescript/commonjs/src/modules/ui/components/manual-entry-form.d.ts +1 -1
  664. package/lib/typescript/commonjs/src/modules/ui/components/manual-entry-form.d.ts.map +1 -1
  665. package/lib/typescript/commonjs/src/modules/ui/components/urine-test-result.d.ts +1 -1
  666. package/lib/typescript/commonjs/src/modules/ui/components/urine-test-result.d.ts.map +1 -1
  667. package/lib/typescript/module/src/modules/auth/hooks/use-accept-invite-link.d.ts +3 -3
  668. package/lib/typescript/module/src/modules/auth/hooks/use-accept-invite-link.d.ts.map +1 -1
  669. package/lib/typescript/module/src/modules/auth/hooks/use-delete-account.d.ts.map +1 -1
  670. package/lib/typescript/module/src/modules/auth/hooks/use-session.d.ts +5 -16
  671. package/lib/typescript/module/src/modules/auth/hooks/use-session.d.ts.map +1 -1
  672. package/lib/typescript/module/src/modules/auth/hooks/use-sign-in.d.ts +3 -2
  673. package/lib/typescript/module/src/modules/auth/hooks/use-sign-in.d.ts.map +1 -1
  674. package/lib/typescript/module/src/modules/auth/hooks/use-sign-out.d.ts.map +1 -1
  675. package/lib/typescript/module/src/modules/auth/hooks/use-social-sign-in.d.ts +2 -2
  676. package/lib/typescript/module/src/modules/auth/hooks/use-social-sign-in.d.ts.map +1 -1
  677. package/lib/typescript/module/src/modules/auth/profile/components/profile-form-provider.d.ts.map +1 -1
  678. package/lib/typescript/module/src/modules/auth/profile/types/profile-form-field.d.ts +1 -1
  679. package/lib/typescript/module/src/modules/auth/profile/types/profile-form-field.d.ts.map +1 -1
  680. package/lib/typescript/module/src/modules/auth/register/components/form/register-form-provider.d.ts.map +1 -1
  681. package/lib/typescript/module/src/modules/auth/register/types/register-form-props.d.ts +5 -3
  682. package/lib/typescript/module/src/modules/auth/register/types/register-form-props.d.ts.map +1 -1
  683. package/lib/typescript/module/src/modules/auth/register/types/register-form-values.d.ts +2 -2
  684. package/lib/typescript/module/src/modules/auth/register/types/register-form-values.d.ts.map +1 -1
  685. package/lib/typescript/module/src/modules/auth/session/logout-session.d.ts +3 -5
  686. package/lib/typescript/module/src/modules/auth/session/logout-session.d.ts.map +1 -1
  687. package/lib/typescript/module/src/modules/auth/session/session-snapshot.d.ts +21 -0
  688. package/lib/typescript/module/src/modules/auth/session/session-snapshot.d.ts.map +1 -0
  689. package/lib/typescript/module/src/modules/auth/sign-in/components/form/login-form-provider.d.ts.map +1 -1
  690. package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/apple-login-button.d.ts.map +1 -1
  691. package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/google-login-button.d.ts.map +1 -1
  692. package/lib/typescript/module/src/modules/auth/sign-in/hooks/use-login-form.d.ts +1 -3
  693. package/lib/typescript/module/src/modules/auth/sign-in/hooks/use-login-form.d.ts.map +1 -1
  694. package/lib/typescript/module/src/modules/auth/sign-in/types/apple-login-props.d.ts +2 -2
  695. package/lib/typescript/module/src/modules/auth/sign-in/types/apple-login-props.d.ts.map +1 -1
  696. package/lib/typescript/module/src/modules/auth/sign-in/types/google-login-props.d.ts +2 -2
  697. package/lib/typescript/module/src/modules/auth/sign-in/types/google-login-props.d.ts.map +1 -1
  698. package/lib/typescript/module/src/modules/auth/sign-in/types/login-form-context-type.d.ts +2 -4
  699. package/lib/typescript/module/src/modules/auth/sign-in/types/login-form-context-type.d.ts.map +1 -1
  700. package/lib/typescript/module/src/modules/auth/sign-in/types/login-form-props.d.ts +2 -2
  701. package/lib/typescript/module/src/modules/auth/sign-in/types/login-form-props.d.ts.map +1 -1
  702. package/lib/typescript/module/src/modules/auth/sign-in/types/login-form-values.d.ts +2 -2
  703. package/lib/typescript/module/src/modules/auth/sign-in/types/login-form-values.d.ts.map +1 -1
  704. package/lib/typescript/module/src/modules/auth/utils/sign-in-error.d.ts +2 -2
  705. package/lib/typescript/module/src/modules/auth/utils/sign-in-error.d.ts.map +1 -1
  706. package/lib/typescript/module/src/modules/background-sync/android-background-sync.d.ts +2 -2
  707. package/lib/typescript/module/src/modules/background-sync/android-background-sync.d.ts.map +1 -1
  708. package/lib/typescript/module/src/modules/bt-device/constants/device-model.d.ts +1 -1
  709. package/lib/typescript/module/src/modules/bt-device/constants/device-model.d.ts.map +1 -1
  710. package/lib/typescript/module/src/modules/bt-device/constants/supported-devices.d.ts +1 -1
  711. package/lib/typescript/module/src/modules/bt-device/constants/supported-devices.d.ts.map +1 -1
  712. package/lib/typescript/module/src/modules/bt-device/utils/device-query.d.ts +1 -1
  713. package/lib/typescript/module/src/modules/bt-device/utils/device-query.d.ts.map +1 -1
  714. package/lib/typescript/module/src/modules/bt-management/constants/built-in-measurement-types.d.ts +1 -1
  715. package/lib/typescript/module/src/modules/bt-management/constants/built-in-measurement-types.d.ts.map +1 -1
  716. package/lib/typescript/module/src/modules/bt-management/constants/measurement-field-catalog.d.ts +1 -1
  717. package/lib/typescript/module/src/modules/bt-management/constants/measurement-field-catalog.d.ts.map +1 -1
  718. package/lib/typescript/module/src/modules/bt-management/services/custom/compile-case-fields.d.ts +1 -1
  719. package/lib/typescript/module/src/modules/bt-management/services/custom/compile-case-fields.d.ts.map +1 -1
  720. package/lib/typescript/module/src/modules/bt-management/services/custom/compile-custom-field.d.ts +1 -1
  721. package/lib/typescript/module/src/modules/bt-management/services/custom/compile-custom-field.d.ts.map +1 -1
  722. package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts.map +1 -1
  723. package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.files.d.ts +1 -1
  724. package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.files.d.ts.map +1 -1
  725. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-data-processor.d.ts +1 -1
  726. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-data-processor.d.ts.map +1 -1
  727. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts +1 -1
  728. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
  729. package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-ecg.sequencer.d.ts +1 -1
  730. package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-ecg.sequencer.d.ts.map +1 -1
  731. package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-pod.sequencer.d.ts +1 -1
  732. package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-pod.sequencer.d.ts.map +1 -1
  733. package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme.sequencer.d.ts +1 -1
  734. package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme.sequencer.d.ts.map +1 -1
  735. package/lib/typescript/module/src/modules/bt-management/services/devices/f5/f5-scale.sequencer.d.ts +1 -1
  736. package/lib/typescript/module/src/modules/bt-management/services/devices/f5/f5-scale.sequencer.d.ts.map +1 -1
  737. package/lib/typescript/module/src/modules/bt-management/services/devices/frame-parser.d.ts +1 -1
  738. package/lib/typescript/module/src/modules/bt-management/services/devices/frame-parser.d.ts.map +1 -1
  739. package/lib/typescript/module/src/modules/bt-management/services/devices/measurement-state-machine.d.ts +1 -1
  740. package/lib/typescript/module/src/modules/bt-management/services/devices/measurement-state-machine.d.ts.map +1 -1
  741. package/lib/typescript/module/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts +1 -1
  742. package/lib/typescript/module/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts.map +1 -1
  743. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.d.ts +1 -1
  744. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.d.ts.map +1 -1
  745. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.bp-monitors.d.ts +1 -1
  746. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.bp-monitors.d.ts.map +1 -1
  747. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.duo-control-device.d.ts +1 -1
  748. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.duo-control-device.d.ts.map +1 -1
  749. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.ecg-record.d.ts +1 -1
  750. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.ecg-record.d.ts.map +1 -1
  751. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.protocol.d.ts +1 -1
  752. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.protocol.d.ts.map +1 -1
  753. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.sequencer.d.ts +1 -1
  754. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.sequencer.d.ts.map +1 -1
  755. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/bioland.bgm.sequencer.d.ts +1 -1
  756. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/bioland.bgm.sequencer.d.ts.map +1 -1
  757. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/lpm311.protocol.d.ts +1 -1
  758. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/lpm311.protocol.d.ts.map +1 -1
  759. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/oxy-s3.sequencer.d.ts +1 -1
  760. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/oxy-s3.sequencer.d.ts.map +1 -1
  761. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pc80b.sequencer.d.ts +1 -1
  762. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pc80b.sequencer.d.ts.map +1 -1
  763. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pf10aw1.sequencer.d.ts +1 -1
  764. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pf10aw1.sequencer.d.ts.map +1 -1
  765. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/poctor.m3102.sequencer.d.ts +1 -1
  766. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/poctor.m3102.sequencer.d.ts.map +1 -1
  767. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/sp20.sequencer.d.ts +1 -1
  768. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/sp20.sequencer.d.ts.map +1 -1
  769. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-aa55.sequencer.d.ts +1 -1
  770. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-aa55.sequencer.d.ts.map +1 -1
  771. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-r20.protocol.d.ts +1 -1
  772. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-r20.protocol.d.ts.map +1 -1
  773. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-r20.sequencer.d.ts +1 -1
  774. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-r20.sequencer.d.ts.map +1 -1
  775. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.bp3-files.d.ts +1 -1
  776. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.bp3-files.d.ts.map +1 -1
  777. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.bpm188.sequencer.d.ts +1 -1
  778. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.bpm188.sequencer.d.ts.map +1 -1
  779. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc100.sequencer.d.ts +1 -1
  780. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc100.sequencer.d.ts.map +1 -1
  781. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc300.sequencer.d.ts +1 -1
  782. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc300.sequencer.d.ts.map +1 -1
  783. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pm10.sequencer.d.ts +1 -1
  784. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pm10.sequencer.d.ts.map +1 -1
  785. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.wbp02.sequencer.d.ts +1 -1
  786. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.wbp02.sequencer.d.ts.map +1 -1
  787. package/lib/typescript/module/src/modules/bt-management/services/series-slots.d.ts +1 -1
  788. package/lib/typescript/module/src/modules/bt-management/services/series-slots.d.ts.map +1 -1
  789. package/lib/typescript/module/src/modules/bt-management/types/create-device-params.d.ts +1 -1
  790. package/lib/typescript/module/src/modules/bt-management/types/create-device-params.d.ts.map +1 -1
  791. package/lib/typescript/module/src/modules/bt-management/types/custom-case-spec.d.ts +1 -1
  792. package/lib/typescript/module/src/modules/bt-management/types/custom-case-spec.d.ts.map +1 -1
  793. package/lib/typescript/module/src/modules/bt-management/types/custom-device-definition.d.ts +1 -1
  794. package/lib/typescript/module/src/modules/bt-management/types/custom-device-definition.d.ts.map +1 -1
  795. package/lib/typescript/module/src/modules/bt-management/types/custom-measurement-spec.d.ts +1 -1
  796. package/lib/typescript/module/src/modules/bt-management/types/custom-measurement-spec.d.ts.map +1 -1
  797. package/lib/typescript/module/src/modules/bt-management/types/custom-measurement.d.ts +1 -1
  798. package/lib/typescript/module/src/modules/bt-management/types/custom-measurement.d.ts.map +1 -1
  799. package/lib/typescript/module/src/modules/bt-management/types/dependent-result-handler-params.d.ts +1 -1
  800. package/lib/typescript/module/src/modules/bt-management/types/dependent-result-handler-params.d.ts.map +1 -1
  801. package/lib/typescript/module/src/modules/bt-management/types/device-data.d.ts +1 -1
  802. package/lib/typescript/module/src/modules/bt-management/types/device-data.d.ts.map +1 -1
  803. package/lib/typescript/module/src/modules/bt-management/types/device-measurement-map.d.ts +2 -2
  804. package/lib/typescript/module/src/modules/bt-management/types/device-measurement-map.d.ts.map +1 -1
  805. package/lib/typescript/module/src/modules/bt-management/types/device-status-change-callback.d.ts +1 -1
  806. package/lib/typescript/module/src/modules/bt-management/types/device-status-change-callback.d.ts.map +1 -1
  807. package/lib/typescript/module/src/modules/bt-management/types/measurement-group.d.ts +1 -1
  808. package/lib/typescript/module/src/modules/bt-management/types/measurement-group.d.ts.map +1 -1
  809. package/lib/typescript/module/src/modules/bt-management/types/measurement-series.d.ts +1 -1
  810. package/lib/typescript/module/src/modules/bt-management/types/measurement-series.d.ts.map +1 -1
  811. package/lib/typescript/module/src/modules/bt-management/types/measurement-with-case-type.d.ts +1 -1
  812. package/lib/typescript/module/src/modules/bt-management/types/measurement-with-case-type.d.ts.map +1 -1
  813. package/lib/typescript/module/src/modules/bt-management/types/parsing-case.d.ts +1 -1
  814. package/lib/typescript/module/src/modules/bt-management/types/parsing-case.d.ts.map +1 -1
  815. package/lib/typescript/module/src/modules/bt-management/types/result-policy.d.ts +1 -1
  816. package/lib/typescript/module/src/modules/bt-management/types/result-policy.d.ts.map +1 -1
  817. package/lib/typescript/module/src/modules/bt-management/utils/convert-ecg-diagnostic-flag.d.ts +1 -1
  818. package/lib/typescript/module/src/modules/bt-management/utils/convert-ecg-diagnostic-flag.d.ts.map +1 -1
  819. package/lib/typescript/module/src/modules/bt-management/utils/parse-measurement.d.ts +1 -1
  820. package/lib/typescript/module/src/modules/bt-management/utils/parse-measurement.d.ts.map +1 -1
  821. package/lib/typescript/module/src/modules/bt-management/utils/result-identity.d.ts +1 -1
  822. package/lib/typescript/module/src/modules/bt-management/utils/result-identity.d.ts.map +1 -1
  823. package/lib/typescript/module/src/modules/bt-management/utils/supported-measurement-type-keys.d.ts +1 -1
  824. package/lib/typescript/module/src/modules/bt-management/utils/supported-measurement-type-keys.d.ts.map +1 -1
  825. package/lib/typescript/module/src/modules/cms/cms-locale.d.ts +2 -0
  826. package/lib/typescript/module/src/modules/cms/cms-locale.d.ts.map +1 -0
  827. package/lib/typescript/module/src/modules/cms/hooks/use-cms-content.d.ts +6 -7
  828. package/lib/typescript/module/src/modules/cms/hooks/use-cms-content.d.ts.map +1 -1
  829. package/lib/typescript/module/src/modules/cms/hooks/use-cms-locale.d.ts +1 -6
  830. package/lib/typescript/module/src/modules/cms/hooks/use-cms-locale.d.ts.map +1 -1
  831. package/lib/typescript/module/src/modules/cms/hooks/use-cms-translations.d.ts +2 -9
  832. package/lib/typescript/module/src/modules/cms/hooks/use-cms-translations.d.ts.map +1 -1
  833. package/lib/typescript/module/src/modules/cms/merge-cms-translations.d.ts +1 -1
  834. package/lib/typescript/module/src/modules/cms/merge-cms-translations.d.ts.map +1 -1
  835. package/lib/typescript/module/src/modules/data-sync/hooks/use-health-sync-runner.d.ts.map +1 -1
  836. package/lib/typescript/module/src/modules/data-sync/services/base-health-sync-service.d.ts +0 -1
  837. package/lib/typescript/module/src/modules/data-sync/services/base-health-sync-service.d.ts.map +1 -1
  838. package/lib/typescript/module/src/modules/data-sync/services/managers/data-processor.d.ts +2 -2
  839. package/lib/typescript/module/src/modules/data-sync/services/managers/data-processor.d.ts.map +1 -1
  840. package/lib/typescript/module/src/modules/data-sync/services/managers/instance-manager.d.ts +2 -0
  841. package/lib/typescript/module/src/modules/data-sync/services/managers/instance-manager.d.ts.map +1 -1
  842. package/lib/typescript/module/src/modules/data-sync/services/managers/storage-manager.d.ts +11 -26
  843. package/lib/typescript/module/src/modules/data-sync/services/managers/storage-manager.d.ts.map +1 -1
  844. package/lib/typescript/module/src/modules/data-sync/services/managers/sync-state-manager.d.ts +3 -3
  845. package/lib/typescript/module/src/modules/data-sync/services/managers/sync-state-manager.d.ts.map +1 -1
  846. package/lib/typescript/module/src/modules/data-sync/types/base-service-props.d.ts +3 -2
  847. package/lib/typescript/module/src/modules/data-sync/types/base-service-props.d.ts.map +1 -1
  848. package/lib/typescript/module/src/modules/data-sync/types/convert-data-props.d.ts +2 -2
  849. package/lib/typescript/module/src/modules/data-sync/types/convert-data-props.d.ts.map +1 -1
  850. package/lib/typescript/module/src/modules/data-sync/types/health-sync-keys.d.ts +1 -1
  851. package/lib/typescript/module/src/modules/data-sync/types/health-sync-keys.d.ts.map +1 -1
  852. package/lib/typescript/module/src/modules/data-sync/types/health-sync-props.d.ts +1 -2
  853. package/lib/typescript/module/src/modules/data-sync/types/health-sync-props.d.ts.map +1 -1
  854. package/lib/typescript/module/src/modules/data-sync/utils/convert-samples-to-observation.d.ts.map +1 -1
  855. package/lib/typescript/module/src/modules/data-sync/utils/get-latest-observation-dates-by-code.d.ts +2 -2
  856. package/lib/typescript/module/src/modules/data-sync/utils/get-latest-observation-dates-by-code.d.ts.map +1 -1
  857. package/lib/typescript/module/src/modules/data-sync/utils/retry-save.d.ts.map +1 -1
  858. package/lib/typescript/module/src/modules/data-sync/utils/session-owner.d.ts +7 -0
  859. package/lib/typescript/module/src/modules/data-sync/utils/session-owner.d.ts.map +1 -0
  860. package/lib/typescript/module/src/modules/data-sync/utils/to-core-health-observations.d.ts +1 -1
  861. package/lib/typescript/module/src/modules/data-sync/utils/to-core-health-observations.d.ts.map +1 -1
  862. package/lib/typescript/module/src/modules/image/components/optimized-image.d.ts.map +1 -1
  863. package/lib/typescript/module/src/modules/next/ovok.d.ts +4 -1
  864. package/lib/typescript/module/src/modules/next/ovok.d.ts.map +1 -1
  865. package/lib/typescript/module/src/modules/next/use-native-ovok.d.ts +3 -0
  866. package/lib/typescript/module/src/modules/next/use-native-ovok.d.ts.map +1 -0
  867. package/lib/typescript/module/src/modules/questionnaire-response-form/components/questionnaire-form-provider.d.ts.map +1 -1
  868. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts +2 -2
  869. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts.map +1 -1
  870. package/lib/typescript/module/src/modules/socket/components/socket-provider.d.ts.map +1 -1
  871. package/lib/typescript/module/src/modules/tile/types/task-icon-props.d.ts +1 -1
  872. package/lib/typescript/module/src/modules/tile/types/task-icon-props.d.ts.map +1 -1
  873. package/lib/typescript/module/src/modules/ui/components/manual-entry-form.d.ts +1 -1
  874. package/lib/typescript/module/src/modules/ui/components/manual-entry-form.d.ts.map +1 -1
  875. package/lib/typescript/module/src/modules/ui/components/urine-test-result.d.ts +1 -1
  876. package/lib/typescript/module/src/modules/ui/components/urine-test-result.d.ts.map +1 -1
  877. package/package.json +3 -3
  878. package/lib/commonjs/modules/auth/session/save-login.js +0 -19
  879. package/lib/commonjs/modules/auth/session/save-login.js.map +0 -1
  880. package/lib/commonjs/modules/auth/session/session-store-refresh.js +0 -142
  881. package/lib/commonjs/modules/auth/session/session-store-refresh.js.map +0 -1
  882. package/lib/commonjs/modules/auth/session/session-store-request-state.js +0 -73
  883. package/lib/commonjs/modules/auth/session/session-store-request-state.js.map +0 -1
  884. package/lib/commonjs/modules/auth/session/session-store-types.js +0 -39
  885. package/lib/commonjs/modules/auth/session/session-store-types.js.map +0 -1
  886. package/lib/commonjs/modules/auth/session/session-store.js +0 -144
  887. package/lib/commonjs/modules/auth/session/session-store.js.map +0 -1
  888. package/lib/module/modules/auth/session/save-login.js +0 -15
  889. package/lib/module/modules/auth/session/save-login.js.map +0 -1
  890. package/lib/module/modules/auth/session/session-store-refresh.js +0 -138
  891. package/lib/module/modules/auth/session/session-store-refresh.js.map +0 -1
  892. package/lib/module/modules/auth/session/session-store-request-state.js +0 -69
  893. package/lib/module/modules/auth/session/session-store-request-state.js.map +0 -1
  894. package/lib/module/modules/auth/session/session-store-types.js +0 -33
  895. package/lib/module/modules/auth/session/session-store-types.js.map +0 -1
  896. package/lib/module/modules/auth/session/session-store.js +0 -140
  897. package/lib/module/modules/auth/session/session-store.js.map +0 -1
  898. package/lib/typescript/commonjs/src/modules/auth/session/save-login.d.ts +0 -4
  899. package/lib/typescript/commonjs/src/modules/auth/session/save-login.d.ts.map +0 -1
  900. package/lib/typescript/commonjs/src/modules/auth/session/session-store-refresh.d.ts +0 -8
  901. package/lib/typescript/commonjs/src/modules/auth/session/session-store-refresh.d.ts.map +0 -1
  902. package/lib/typescript/commonjs/src/modules/auth/session/session-store-request-state.d.ts +0 -23
  903. package/lib/typescript/commonjs/src/modules/auth/session/session-store-request-state.d.ts.map +0 -1
  904. package/lib/typescript/commonjs/src/modules/auth/session/session-store-types.d.ts +0 -40
  905. package/lib/typescript/commonjs/src/modules/auth/session/session-store-types.d.ts.map +0 -1
  906. package/lib/typescript/commonjs/src/modules/auth/session/session-store.d.ts +0 -4
  907. package/lib/typescript/commonjs/src/modules/auth/session/session-store.d.ts.map +0 -1
  908. package/lib/typescript/module/src/modules/auth/session/save-login.d.ts +0 -4
  909. package/lib/typescript/module/src/modules/auth/session/save-login.d.ts.map +0 -1
  910. package/lib/typescript/module/src/modules/auth/session/session-store-refresh.d.ts +0 -8
  911. package/lib/typescript/module/src/modules/auth/session/session-store-refresh.d.ts.map +0 -1
  912. package/lib/typescript/module/src/modules/auth/session/session-store-request-state.d.ts +0 -23
  913. package/lib/typescript/module/src/modules/auth/session/session-store-request-state.d.ts.map +0 -1
  914. package/lib/typescript/module/src/modules/auth/session/session-store-types.d.ts +0 -40
  915. package/lib/typescript/module/src/modules/auth/session/session-store-types.d.ts.map +0 -1
  916. package/lib/typescript/module/src/modules/auth/session/session-store.d.ts +0 -4
  917. package/lib/typescript/module/src/modules/auth/session/session-store.d.ts.map +0 -1
@@ -4,15 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.measurementIconSvg = void 0;
7
- var _core = require("@ovok/core");
7
+ var _next = require("@ovok/core/next");
8
8
  const measurementIconSvg = exports.measurementIconSvg = {
9
- [_core.MeasurementTypeKey.symptomQuestionnaire]: fillColor => {
9
+ [_next.MeasurementTypeKey.symptomQuestionnaire]: fillColor => {
10
10
  return `
11
11
  <svg width="19" height="18" viewBox="0 0 19 18" fill="none" xmlns="http://www.w3.org/2000/svg">
12
12
  <path id="Vector" d="M18.7504 9.00042C18.7504 9.19933 18.6714 9.3901 18.5307 9.53075C18.3901 9.6714 18.1993 9.75042 18.0004 9.75042H9.75042C9.55151 9.75042 9.36074 9.6714 9.22009 9.53075C9.07943 9.3901 9.00042 9.19933 9.00042 9.00042C9.00042 8.80151 9.07943 8.61074 9.22009 8.47009C9.36074 8.32943 9.55151 8.25042 9.75042 8.25042H18.0004C18.1993 8.25042 18.3901 8.32943 18.5307 8.47009C18.6714 8.61074 18.7504 8.80151 18.7504 9.00042ZM9.75042 3.75042H18.0004C18.1993 3.75042 18.3901 3.6714 18.5307 3.53075C18.6714 3.39009 18.7504 3.19933 18.7504 3.00042C18.7504 2.8015 18.6714 2.61074 18.5307 2.47009C18.3901 2.32943 18.1993 2.25042 18.0004 2.25042H9.75042C9.55151 2.25042 9.36074 2.32943 9.22009 2.47009C9.07943 2.61074 9.00042 2.8015 9.00042 3.00042C9.00042 3.19933 9.07943 3.39009 9.22009 3.53075C9.36074 3.6714 9.55151 3.75042 9.75042 3.75042ZM18.0004 14.2504H9.75042C9.55151 14.2504 9.36074 14.3294 9.22009 14.4701C9.07943 14.6107 9.00042 14.8015 9.00042 15.0004C9.00042 15.1993 9.07943 15.3901 9.22009 15.5307C9.36074 15.6714 9.55151 15.7504 9.75042 15.7504H18.0004C18.1993 15.7504 18.3901 15.6714 18.5307 15.5307C18.6714 15.3901 18.7504 15.1993 18.7504 15.0004C18.7504 14.8015 18.6714 14.6107 18.5307 14.4701C18.3901 14.3294 18.1993 14.2504 18.0004 14.2504ZM5.46979 0.969792L3.00042 3.4401L2.03104 2.46979C1.89031 2.32906 1.69944 2.25 1.50042 2.25C1.30139 2.25 1.11052 2.32906 0.969792 2.46979C0.829062 2.61052 0.75 2.80139 0.75 3.00042C0.75 3.19944 0.829062 3.39031 0.969792 3.53104L2.46979 5.03104C2.53945 5.10077 2.62216 5.15609 2.71321 5.19384C2.80426 5.23158 2.90186 5.25101 3.00042 5.25101C3.09898 5.25101 3.19657 5.23158 3.28762 5.19384C3.37867 5.15609 3.46139 5.10077 3.53104 5.03104L6.53104 2.03104C6.67177 1.89031 6.75083 1.69944 6.75083 1.50042C6.75083 1.30139 6.67177 1.11052 6.53104 0.969792C6.39031 0.829062 6.19944 0.75 6.00042 0.75C5.80139 0.75 5.61052 0.829062 5.46979 0.969792ZM5.46979 6.96979L3.00042 9.4401L2.03104 8.46979C1.89031 8.32906 1.69944 8.25 1.50042 8.25C1.30139 8.25 1.11052 8.32906 0.969792 8.46979C0.829062 8.61052 0.75 8.80139 0.75 9.00042C0.75 9.09896 0.76941 9.19654 0.807122 9.28759C0.844834 9.37863 0.900109 9.46136 0.969792 9.53104L2.46979 11.031C2.53945 11.1008 2.62216 11.1561 2.71321 11.1938C2.80426 11.2316 2.90186 11.251 3.00042 11.251C3.09898 11.251 3.19657 11.2316 3.28762 11.1938C3.37867 11.1561 3.46139 11.1008 3.53104 11.031L6.53104 8.03104C6.67177 7.89031 6.75083 7.69944 6.75083 7.50042C6.75083 7.30139 6.67177 7.11052 6.53104 6.96979C6.39031 6.82906 6.19944 6.75 6.00042 6.75C5.80139 6.75 5.61052 6.82906 5.46979 6.96979ZM5.46979 12.9698L3.00042 15.4401L2.03104 14.4698C1.96136 14.4001 1.87863 14.3448 1.78759 14.3071C1.69654 14.2694 1.59896 14.25 1.50042 14.25C1.40187 14.25 1.30429 14.2694 1.21324 14.3071C1.1222 14.3448 1.03947 14.4001 0.969792 14.4698C0.900109 14.5395 0.844834 14.6222 0.807122 14.7132C0.76941 14.8043 0.75 14.9019 0.75 15.0004C0.75 15.099 0.76941 15.1965 0.807122 15.2876C0.844834 15.3786 0.900109 15.4614 0.969792 15.531L2.46979 17.031C2.53945 17.1008 2.62216 17.1561 2.71321 17.1938C2.80426 17.2316 2.90186 17.251 3.00042 17.251C3.09898 17.251 3.19657 17.2316 3.28762 17.1938C3.37867 17.1561 3.46139 17.1008 3.53104 17.031L6.53104 14.031C6.67177 13.8903 6.75083 13.6994 6.75083 13.5004C6.75083 13.3014 6.67177 13.1105 6.53104 12.9698C6.39031 12.8291 6.19944 12.75 6.00042 12.75C5.80139 12.75 5.61052 12.8291 5.46979 12.9698Z" fill="${fillColor}"/>
13
13
  </svg>`;
14
14
  },
15
- [_core.MeasurementTypeKey.bloodGlucose]: fillColor => {
15
+ [_next.MeasurementTypeKey.bloodGlucose]: fillColor => {
16
16
  return `
17
17
  <svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
18
18
  <g id="Blood Glucose">
@@ -24,7 +24,7 @@ const measurementIconSvg = exports.measurementIconSvg = {
24
24
  </g>
25
25
  </svg>`;
26
26
  },
27
- [_core.MeasurementTypeKey.bloodPressure]: fillColor => {
27
+ [_next.MeasurementTypeKey.bloodPressure]: fillColor => {
28
28
  return `
29
29
  <svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
30
30
  <g id="Blood Pressure">
@@ -33,7 +33,7 @@ const measurementIconSvg = exports.measurementIconSvg = {
33
33
  </g>
34
34
  </svg>`;
35
35
  },
36
- [_core.MeasurementTypeKey.ecg]: fillColor => {
36
+ [_next.MeasurementTypeKey.ecg]: fillColor => {
37
37
  return `
38
38
  <svg width="14" height="18" viewBox="0 0 14 18" fill="none" xmlns="http://www.w3.org/2000/svg">
39
39
  <g id="BP stroke" clip-path="url(#clip0_57_7390)">
@@ -53,7 +53,7 @@ const measurementIconSvg = exports.measurementIconSvg = {
53
53
  </defs>
54
54
  </svg>`;
55
55
  },
56
- [_core.MeasurementTypeKey.bloodOxygenPulseRate]: fillColor => {
56
+ [_next.MeasurementTypeKey.bloodOxygenPulseRate]: fillColor => {
57
57
  return `
58
58
  <svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
59
59
  <g id="Blood Oxygen">
@@ -64,7 +64,7 @@ const measurementIconSvg = exports.measurementIconSvg = {
64
64
  </g>
65
65
  </svg>`;
66
66
  },
67
- [_core.MeasurementTypeKey.bodyWeight]: fillColor => {
67
+ [_next.MeasurementTypeKey.bodyWeight]: fillColor => {
68
68
  return `
69
69
  <svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
70
70
  <g id="vuesax/outline/weight">
@@ -77,7 +77,7 @@ const measurementIconSvg = exports.measurementIconSvg = {
77
77
  </g>
78
78
  </svg>`;
79
79
  },
80
- [_core.MeasurementTypeKey.temperature]: fillColor => {
80
+ [_next.MeasurementTypeKey.temperature]: fillColor => {
81
81
  return `
82
82
  <svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
83
83
  <g id="Temperature">
@@ -85,7 +85,7 @@ const measurementIconSvg = exports.measurementIconSvg = {
85
85
  </g>
86
86
  </svg>`;
87
87
  },
88
- [_core.MeasurementTypeKey.cosinussMultiParam]: fillColor => {
88
+ [_next.MeasurementTypeKey.cosinussMultiParam]: fillColor => {
89
89
  return `
90
90
  <svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
91
91
  <g id="Cosinuss">
@@ -93,7 +93,7 @@ const measurementIconSvg = exports.measurementIconSvg = {
93
93
  </g>
94
94
  </svg>`;
95
95
  },
96
- [_core.MeasurementTypeKey.urineAnalysis]: fillColor => {
96
+ [_next.MeasurementTypeKey.urineAnalysis]: fillColor => {
97
97
  return `
98
98
  <svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
99
99
  <g id="Urine Analysis">
@@ -109,10 +109,10 @@ const measurementIconSvg = exports.measurementIconSvg = {
109
109
  </g>
110
110
  </svg>`;
111
111
  },
112
- [_core.MeasurementTypeKey.uricAcid]: fillColor => {
113
- return measurementIconSvg[_core.MeasurementTypeKey.urineAnalysis](fillColor);
112
+ [_next.MeasurementTypeKey.uricAcid]: fillColor => {
113
+ return measurementIconSvg[_next.MeasurementTypeKey.urineAnalysis](fillColor);
114
114
  },
115
- [_core.MeasurementTypeKey.photoUpload]: fillColor => {
115
+ [_next.MeasurementTypeKey.photoUpload]: fillColor => {
116
116
  return `
117
117
  <svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
118
118
  <g id="Photo">
@@ -120,7 +120,7 @@ const measurementIconSvg = exports.measurementIconSvg = {
120
120
  </g>
121
121
  </svg>`;
122
122
  },
123
- [_core.MeasurementTypeKey.spirometryPanel]: fillColor => {
123
+ [_next.MeasurementTypeKey.spirometryPanel]: fillColor => {
124
124
  return `
125
125
  <svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
126
126
  <g id="Spirometer">
@@ -128,7 +128,7 @@ const measurementIconSvg = exports.measurementIconSvg = {
128
128
  </g>
129
129
  </svg>`;
130
130
  },
131
- [_core.MeasurementTypeKey.stepCount]: fillColor => {
131
+ [_next.MeasurementTypeKey.stepCount]: fillColor => {
132
132
  return `
133
133
  <svg width="22" height="20" viewBox="0 0 22 20" fill="none" xmlns="http://www.w3.org/2000/svg">
134
134
  <path
@@ -136,14 +136,14 @@ const measurementIconSvg = exports.measurementIconSvg = {
136
136
  fill="${fillColor}"/>
137
137
  </svg>`;
138
138
  },
139
- [_core.MeasurementTypeKey.respiratoryRate]: fillColor => {
139
+ [_next.MeasurementTypeKey.respiratoryRate]: fillColor => {
140
140
  return `
141
141
  <svg width="24" height="22" viewBox="0 0 24 22" fill="none" xmlns="http://www.w3.org/2000/svg">
142
142
  <path d="M17.3998 5.29218C17.1163 5.12405 16.793 5.03465 16.4634 5.0332C16.1338 5.03175 15.8098 5.1183 15.5248 5.28393C15.2238 5.45986 14.9745 5.71188 14.8018 6.01466C14.6291 6.31745 14.539 6.66035 14.5408 7.00893V10.3667L12.9335 9.15918V-0.21582C12.9335 -0.414733 12.8545 -0.605498 12.7139 -0.74615C12.5732 -0.886803 12.3824 -0.96582 12.1835 -0.96582C11.9846 -0.96582 11.7939 -0.886803 11.6532 -0.74615C11.5125 -0.605498 11.4335 -0.414733 11.4335 -0.21582V9.15918L9.82328 10.3674V7.00968C9.82501 6.6611 9.73499 6.3182 9.56227 6.01541C9.38955 5.71263 9.14021 5.46061 8.83928 5.28468C8.55443 5.11867 8.23035 5.0319 7.90065 5.03335C7.57096 5.0348 7.24766 5.12442 6.96428 5.29293C5.1093 6.41037 3.57755 7.99192 2.52002 9.88169C1.46249 11.7715 0.915693 13.9042 0.933528 16.0697V19.3187C0.931575 19.6755 1.01513 20.0275 1.17719 20.3454C1.33926 20.6633 1.57512 20.9377 1.86503 21.1457C2.13601 21.3408 2.45029 21.4674 2.78091 21.5144C3.11153 21.5614 3.44862 21.5275 3.76328 21.4157L8.19878 19.8594C8.6787 19.6838 9.09251 19.364 9.38338 18.9438C9.67424 18.5236 9.82791 18.0237 9.82328 17.5127V12.2417L12.1835 10.4717L14.5438 12.2417V17.5127C14.5391 18.0237 14.6928 18.5236 14.9837 18.9438C15.2745 19.364 15.6884 19.6838 16.1683 19.8594L20.6038 21.4157C20.9184 21.5275 21.2555 21.5614 21.5861 21.5144C21.9168 21.4674 22.231 21.3408 22.502 21.1457C22.7919 20.9377 23.0278 20.6633 23.1899 20.3454C23.3519 20.0275 23.4355 19.6755 23.4335 19.3187V16.0697C23.4512 13.9038 22.904 11.7707 21.8459 9.88076C20.7878 7.99082 19.2554 6.40931 17.3998 5.29218ZM8.32478 17.5127C8.32949 17.7129 8.27241 17.9098 8.1613 18.0764C8.05019 18.2431 7.89044 18.3715 7.70378 18.4442L3.26603 20.0004C3.17757 20.0319 3.0828 20.0416 2.98982 20.0285C2.89683 20.0154 2.80838 19.9801 2.73203 19.9254C2.6375 19.8569 2.56088 19.7666 2.50866 19.6621C2.45644 19.5577 2.43015 19.4422 2.43203 19.3254V16.0697C2.41334 14.1655 2.89156 12.2894 3.81948 10.6265C4.74741 8.96358 6.09294 7.57143 7.72328 6.58743C7.77906 6.55321 7.84309 6.5348 7.90853 6.53418C7.97292 6.53499 8.036 6.55256 8.09153 6.58518C8.16416 6.62911 8.22377 6.69159 8.26424 6.7662C8.30471 6.8408 8.32457 6.92485 8.32178 7.00968L8.32478 17.5127ZM21.9335 19.3187C21.9354 19.4354 21.9091 19.5509 21.8569 19.6554C21.8047 19.7598 21.7281 19.8501 21.6335 19.9187C21.5571 19.9734 21.4685 20.0088 21.3754 20.0219C21.2822 20.0349 21.1874 20.0252 21.0988 19.9937L16.6648 18.4442C16.4781 18.3715 16.3184 18.2431 16.2073 18.0764C16.0961 17.9098 16.0391 17.7129 16.0438 17.5127V7.01268C16.041 6.92785 16.0609 6.8438 16.1013 6.7692C16.1418 6.69459 16.2014 6.6321 16.274 6.58818C16.3297 6.55426 16.3933 6.53563 16.4585 6.53418C16.524 6.5348 16.588 6.55321 16.6438 6.58743C18.2738 7.57161 19.6191 8.96385 20.5467 10.6267C21.4744 12.2896 21.9524 14.1656 21.9335 16.0697V19.3187Z" fill="${fillColor}"/>
143
143
  </svg>
144
144
  `;
145
145
  },
146
- [_core.MeasurementTypeKey.heartRate]: fillColor => {
146
+ [_next.MeasurementTypeKey.heartRate]: fillColor => {
147
147
  return `
148
148
  <svg width="22" height="19" viewBox="0 0 22 19" fill="none" xmlns="http://www.w3.org/2000/svg">
149
149
  <path d="M5.93311 9.78418H2.18311C1.98419 9.78418 1.79343 9.70516 1.65278 9.56451C1.51212 9.42386 1.43311 9.23309 1.43311 9.03418C1.43311 8.83527 1.51212 8.6445 1.65278 8.50385C1.79343 8.3632 1.98419 8.28418 2.18311 8.28418H5.53186L6.80873 6.36793C6.87719 6.26505 6.97002 6.18069 7.07894 6.12234C7.18787 6.06398 7.30953 6.03345 7.43311 6.03345C7.55668 6.03345 7.67834 6.06398 7.78727 6.12234C7.8962 6.18069 7.98902 6.26505 8.05748 6.36793L10.4331 9.93043L11.3087 8.61793C11.3773 8.51519 11.4701 8.43097 11.5791 8.37274C11.688 8.31452 11.8096 8.2841 11.9331 8.28418H14.1831C14.382 8.28418 14.5728 8.3632 14.7134 8.50385C14.8541 8.6445 14.9331 8.83527 14.9331 9.03418C14.9331 9.23309 14.8541 9.42386 14.7134 9.56451C14.5728 9.70516 14.382 9.78418 14.1831 9.78418H12.3344L11.0575 11.7004C10.989 11.8033 10.8962 11.8877 10.7873 11.946C10.6783 12.0044 10.5567 12.0349 10.4331 12.0349C10.3095 12.0349 10.1879 12.0044 10.0789 11.946C9.97002 11.8877 9.87719 11.8033 9.80873 11.7004L7.43311 8.13605L6.55748 9.44855C6.48915 9.55164 6.39638 9.63623 6.28745 9.69479C6.17851 9.75335 6.05678 9.78405 5.93311 9.78418ZM15.8706 0.0341797C13.9347 0.0341797 12.2397 0.86668 11.1831 2.27387C10.1265 0.86668 8.43154 0.0341797 6.49561 0.0341797C4.95457 0.0359166 3.47714 0.648861 2.38747 1.73854C1.29779 2.82822 0.684842 4.30564 0.683105 5.84668C0.683105 5.91699 0.683105 5.9873 0.683105 6.05762C0.689321 6.25653 0.774301 6.44483 0.919348 6.58108C1.0644 6.71734 1.25763 6.7904 1.45654 6.78418C1.65546 6.77796 1.84375 6.69298 1.98001 6.54794C2.11627 6.40289 2.18932 6.20965 2.18311 6.01074C2.18311 5.95637 2.18311 5.90105 2.18311 5.84668C2.18459 4.70339 2.63942 3.60735 3.44785 2.79893C4.25628 1.9905 5.35232 1.53567 6.49561 1.53418C8.31904 1.53418 9.84998 2.50543 10.4894 4.06543C10.5459 4.20299 10.642 4.32064 10.7655 4.40344C10.889 4.48624 11.0344 4.53045 11.1831 4.53045C11.3318 4.53045 11.4772 4.48624 11.6007 4.40344C11.7242 4.32064 11.8203 4.20299 11.8769 4.06543C12.5162 2.50262 14.0472 1.53418 15.8706 1.53418C17.0139 1.53567 18.1099 1.9905 18.9184 2.79893C19.7268 3.60735 20.1816 4.70339 20.1831 5.84668C20.1831 10.8726 12.8931 15.4232 11.1831 16.4217C10.1678 15.8301 7.18654 13.9842 4.93186 11.527C4.86525 11.4544 4.78499 11.3955 4.69566 11.3539C4.60633 11.3123 4.50967 11.2887 4.41121 11.2844C4.31275 11.2802 4.21442 11.2953 4.12182 11.3291C4.02923 11.3628 3.94418 11.4144 3.87154 11.4811C3.79891 11.5477 3.7401 11.6279 3.69848 11.7173C3.65686 11.8066 3.63324 11.9032 3.62898 12.0017C3.62471 12.1002 3.63988 12.1985 3.67362 12.2911C3.70736 12.3837 3.759 12.4687 3.82561 12.5414C6.74779 15.7289 10.6628 17.8551 10.8278 17.9442C10.937 18.0029 11.0591 18.0337 11.1831 18.0337C11.3071 18.0337 11.4292 18.0029 11.5384 17.9442C11.9528 17.7211 21.6831 12.4092 21.6831 5.84668C21.6814 4.30564 21.0684 2.82822 19.9787 1.73854C18.8891 0.648861 17.4116 0.0359166 15.8706 0.0341797Z" fill="${fillColor}"/>
@@ -151,9 +151,9 @@ const measurementIconSvg = exports.measurementIconSvg = {
151
151
  },
152
152
  // TODO: add missing icons
153
153
 
154
- [_core.MeasurementTypeKey.heartRateVariability]: () => null,
155
- [_core.MeasurementTypeKey.vo2Max]: () => null,
156
- [_core.MeasurementTypeKey.restingHeartRate]: () => null,
157
- [_core.MeasurementTypeKey.walkingHeartRateAverage]: () => null
154
+ [_next.MeasurementTypeKey.heartRateVariability]: () => null,
155
+ [_next.MeasurementTypeKey.vo2Max]: () => null,
156
+ [_next.MeasurementTypeKey.restingHeartRate]: () => null,
157
+ [_next.MeasurementTypeKey.walkingHeartRateAverage]: () => null
158
158
  };
159
159
  //# sourceMappingURL=measurement-icon-svg.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_core","require","measurementIconSvg","exports","MeasurementTypeKey","symptomQuestionnaire","fillColor","bloodGlucose","bloodPressure","ecg","bloodOxygenPulseRate","bodyWeight","temperature","cosinussMultiParam","urineAnalysis","uricAcid","photoUpload","spirometryPanel","stepCount","respiratoryRate","heartRate","heartRateVariability","vo2Max","restingHeartRate","walkingHeartRateAverage"],"sourceRoot":"../../../../../src","sources":["modules/tile/constants/measurement-icon-svg.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEO,MAAMC,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG;EAChC,CAACE,wBAAkB,CAACC,oBAAoB,GAAIC,SAAiB,IAAK;IAChE,OAAO;AACX;AACA,i2GAAi2GA,SAAS;AAC12G,WAAW;EACT,CAAC;EACD,CAACF,wBAAkB,CAACG,YAAY,GAAID,SAAiB,IAAK;IACxD,OAAO;AACX;AACA;AACA,gXAAgXA,SAAS;AACzX,2RAA2RA,SAAS;AACpS,6RAA6RA,SAAS;AACtS,yPAAyPA,SAAS;AAClQ,kzBAAkzBA,SAAS;AAC3zB;AACA,WAAW;EACT,CAAC;EACD,CAACF,wBAAkB,CAACI,aAAa,GAAIF,SAAiB,IAAK;IACzD,OAAO;AACX;AACA;AACA,mGAAmGA,SAAS;AAC5G,8qEAA8qEA,SAAS;AACvrE;AACA,WAAW;EACT,CAAC;EACD,CAACF,wBAAkB,CAACK,GAAG,GAAIH,SAAiB,IAAK;IAC/C,OAAO;AACX;AACA;AACA;AACA,+k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CAACY,WAAW,GAAIV,SAAiB,IAAK;IACvD,OAAO;AACX;AACA;AACA,+kEAA+kEA,SAAS;AACxlE;AACA,WAAW;EACT,CAAC;EACD,CAACF,wBAAkB,CAACa,eAAe,GAAIX,SAAiB,IAAK;IAC3D,OAAO;AACX;AACA;AACA,4sBAA4sBA,SAAS;AACrtB;AACA,WAAW;EACT,CAAC;EACD,CAACF,wBAAkB,CAACc,SAAS,GAAIZ,SAAiB,IAAK;IACrD,OAAO;AACX;AACA;AACA;AACA,gBAAgBA,SAAS;AACzB,WAAW;EACT,CAAC;EACD,CAACF,wBAAkB,CAACe,eAAe,GAAIb,SAAiB,IAAK;IAC3D,OAAO;AACX;AACA,6uFAA6uFA,SAAS;AACtvF;AACA,KAAK;EACH,CAAC;EACD,CAACF,wBAAkB,CAACgB,SAAS,GAAId,SAAiB,IAAK;IACrD,OAAO;AACX;AACA,2zFAA2zFA,SAAS;AACp0F,WAAW;EACT,CAAC;EAED;;EAEA,CAACF,wBAAkB,CAACiB,oBAAoB,GAAG,MAAM,IAAI;EACrD,CAACjB,wBAAkB,CAACkB,MAAM,GAAG,MAAM,IAAI;EACvC,CAAClB,wBAAkB,CAACmB,gBAAgB,GAAG,MAAM,IAAI;EACjD,CAACnB,wBAAkB,CAACoB,uBAAuB,GAAG,MAAM;AACtD,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_next","require","measurementIconSvg","exports","MeasurementTypeKey","symptomQuestionnaire","fillColor","bloodGlucose","bloodPressure","ecg","bloodOxygenPulseRate","bodyWeight","temperature","cosinussMultiParam","urineAnalysis","uricAcid","photoUpload","spirometryPanel","stepCount","respiratoryRate","heartRate","heartRateVariability","vo2Max","restingHeartRate","walkingHeartRateAverage"],"sourceRoot":"../../../../../src","sources":["modules/tile/constants/measurement-icon-svg.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEO,MAAMC,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG;EAChC,CAACE,wB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,MAAM,GAAG,MAAM,IAAI;EACvC,CAAClB,wBAAkB,CAACmB,gBAAgB,GAAG,MAAM,IAAI;EACjD,CAACnB,wBAAkB,CAACoB,uBAAuB,GAAG,MAAM;AACtD,CAAC","ignoreList":[]}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.UrineTestResult = void 0;
7
- var _core = require("@ovok/core");
7
+ var _next = require("@ovok/core/next");
8
8
  var _reactNative = require("react-native");
9
9
  var _index = require("../../bt-management/index.js");
10
10
  var _useOvokUi = require("../use-ovok-ui.js");
@@ -65,8 +65,8 @@ const UrineTestResult = ({
65
65
  Text
66
66
  } = slots;
67
67
  const AnalyteRow = slots.UrineAnalyteRow;
68
- const catalog = _index.measurementFieldCatalog[_core.MeasurementTypeKey.urineAnalysis] ?? _index.measurementFieldCatalog[_core.MeasurementTypeKey.uricAcid] ?? {};
69
- const rows = _core.URINE_ANALYTE_DEFINITIONS.filter(({
68
+ const catalog = _index.measurementFieldCatalog[_next.MeasurementTypeKey.urineAnalysis] ?? _index.measurementFieldCatalog[_next.MeasurementTypeKey.uricAcid] ?? {};
69
+ const rows = _next.URINE_ANALYTE_DEFINITIONS.filter(({
70
70
  key
71
71
  }) => {
72
72
  const value = measurement[key];
@@ -1 +1 @@
1
- {"version":3,"names":["_core","require","_reactNative","_index","_useOvokUi","_jsxRuntime","formatValue","value","unit","definition","qualitative","negativeAtZero","DefaultUrineAnalyteRow","Text","accessibilityLabel","name","rangeLabel","isOutsideUsualRange","theme","rowTheme","jsxs","View","accessible","accessibilityRole","style","styles","row","children","grow","jsx","color","colors","error","primary","UrineTestResult","measurement","showOnlyMeasured","labelForAnalyte","_key","fallback","accessibilityLabelForAnalyte","testID","uiProps","slots","useOvokUi","Card","AnalyteRow","UrineAnalyteRow","catalog","measurementFieldCatalog","MeasurementTypeKey","urineAnalysis","uricAcid","rows","URINE_ANALYTE_DEFINITIONS","filter","key","borderRadius","content","variant","map","display","measured","formattedValue","inUsualRange","normalMin","undefined","normalMax","defaultAccessibilityLabel","Boolean","join","rowProps","analyteKey","exports","StyleSheet","create","gap","padding","flex","alignItems","flexDirection"],"sourceRoot":"../../../../../src","sources":["modules/ui/components/urine-test-result.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAKA,IAAAC,YAAA,GAAAD,OAAA;AAKA,IAAAE,MAAA,GAAAF,OAAA;AAKA,IAAAG,UAAA,GAAAH,OAAA;AAA2C,IAAAI,WAAA,GAAAJ,OAAA;AAU3C,MAAMK,WAAW,GAAGA,CAClBC,KAAa,EACbC,IAAwB,EACxBC,UAAyB,KACd;EACX,IAAIA,UAAU,EAAEC,WAAW,EAAE;IAC3B,OAAOH,KAAK,KAAK,CAAC,GAAG,UAAU,GAAG,UAAU;EAC9C;EAEA,IAAIE,UAAU,EAAEE,cAAc,IAAIJ,KAAK,KAAK,CAAC,EAAE;IAC7C,OAAO,UAAU;EACnB;EAEA,OAAO,GAAGA,KAAK,GAAGC,IAAI,GAAG,IAAIA,IAAI,EAAE,GAAG,EAAE,EAAE;AAC5C,CAAC;AAED,MAAMI,sBAAsB,GAAGA,CAAC;EAC9BC,IAAI;EACJC,kBAAkB;EAClBC,IAAI;EACJC,UAAU;EACVC,mBAAmB;EACnBC,KAAK,EAAEC,QAAQ;EACfZ;AAGF,CAAC,kBACC,IAAAF,WAAA,CAAAe,IAAA,EAAClB,YAAA,CAAAmB,IAAI;EACHC,UAAU;EACVR,kBAAkB,EAAEA,kBAAmB;EACvCS,iBAAiB,EAAC,MAAM;EACxBC,KAAK,EAAEC,MAAM,CAACC,GAAI;EAAAC,QAAA,gBAElB,IAAAtB,WAAA,CAAAe,IAAA,EAAClB,YAAA,CAAAmB,IAAI;IAACG,KAAK,EAAEC,MAAM,CAACG,IAAK;IAAAD,QAAA,gBACvB,IAAAtB,WAAA,CAAAwB,GAAA,EAAChB,IAAI;MAACK,KAAK,EAAEC,QAAS;MAAAQ,QAAA,EA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EACJgD,cAAc,EACdC,YAAY,KAAK,KAAK,GAAG,yBAAyB,GAAGE,SAAS,CAC/D,CACEX,MAAM,CAACc,OAAO,CAAC,CACfC,IAAI,CAAC,IAAI,CAAC;QAEb,MAAMC,QAA8B,GAAG;UACrCzD,kBAAkB,EAAE0B,4BAA4B,CAC9CgB,GAAG,EACHY,yBACF,CAAC;UACDI,UAAU,EAAEhB,GAAG;UACfvC,mBAAmB,EAAE+C,YAAY,KAAK,KAAK;UAC3CjD,IAAI;UACJC,UAAU;UACVE,KAAK;UACLX,KAAK,EAAEwD;QACT,CAAC;QAED,OAAOjB,UAAU,gBACf,IAAAzC,WAAA,CAAAwB,GAAA,EAACiB,UAAU;UAAA,GAAeyB;QAAQ,GAAjBf,GAAoB,CAAC,gBAEtC,IAAAnD,WAAA,CAAAwB,GAAA,EAACjB,sBAAsB;UAAWC,IAAI,EAAEA,IAAK;UAAA,GAAK0D;QAAQ,GAA7Bf,GAAgC,CAC9D;MACH,CAAC,CAAC;IAAA,CACE;EAAC,CACH,CAAC;AAEX,CAAC;AAACiB,OAAA,CAAAvC,eAAA,GAAAA,eAAA;AAEF,MAAMT,MAAM,GAAGiD,uBAAU,CAACC,MAAM,CAAC;EAC/BjB,OAAO,EAAE;IAAEkB,GAAG,EAAE,EAAE;IAAEC,OAAO,EAAE;EAAG,CAAC;EACjCjD,IAAI,EAAE;IAAEkD,IAAI,EAAE;EAAE,CAAC;EACjBpD,GAAG,EAAE;IAAEqD,UAAU,EAAE,YAAY;IAAEC,aAAa,EAAE,KAAK;IAAEJ,GAAG,EAAE;EAAE;AAChE,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_next","require","_reactNative","_index","_useOvokUi","_jsxRuntime","formatValue","value","unit","definition","qualitative","negativeAtZero","DefaultUrineAnalyteRow","Text","accessibilityLabel","name","rangeLabel","isOutsideUsualRange","theme","rowTheme","jsxs","View","accessible","accessibilityRole","style","styles","row","children","grow","jsx","color","colors","error","primary","UrineTestResult","measurement","showOnlyMeasured","labelForAnalyte","_key","fallback","accessibilityLabelForAnalyte","testID","uiProps","slots","useOvokUi","Card","AnalyteRow","UrineAnalyteRow","catalog","measurementFieldCatalog","MeasurementTypeKey","urineAnalysis","uricAcid","rows","URINE_ANALYTE_DEFINITIONS","filter","key","borderRadius","content","variant","map","display","measured","formattedValue","inUsualRange","normalMin","undefined","normalMax","defaultAccessibilityLabel","Boolean","join","rowProps","analyteKey","exports","StyleSheet","create","gap","padding","flex","alignItems","flexDirection"],"sourceRoot":"../../../../../src","sources":["modules/ui/components/urine-test-result.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAKA,IAAAC,YAAA,GAAAD,OAAA;AAKA,IAAAE,MAAA,GAAAF,OAAA;AAKA,IAAAG,UAAA,GAAAH,OAAA;AAA2C,IAAAI,WAAA,GAAAJ,OAAA;AAU3C,MAAMK,WAAW,GAAGA,CAClBC,KAAa,EACbC,IAAwB,EACxBC,UAAyB,KACd;EACX,IAAIA,UAAU,EAAEC,WAAW,EAAE;IAC3B,OAAOH,KAAK,KAAK,CAAC,GAAG,UAAU,GAAG,UAAU;EAC9C;EAEA,IAAIE,UAAU,EAAEE,cAAc,IAAIJ,KAAK,KAAK,CAAC,EAAE;IAC7C,OAAO,UAAU;EACnB;EAEA,OAAO,GAAGA,KAAK,GAAGC,IAAI,GAAG,IAAIA,IAAI,EAAE,GAAG,EAAE,EAAE;AAC5C,CAAC;AAED,MAAMI,sBAAsB,GAAGA,CAAC;EAC9BC,IAAI;EACJC,kBAAkB;EAClBC,IAAI;EACJC,UAAU;EACVC,mBAAmB;EACnBC,KAAK,EAAEC,QAAQ;EACfZ;AAGF,CAAC,kBACC,IAAAF,WAAA,CAAAe,IAAA,EAAClB,YAAA,CAAAmB,IAAI;EACHC,UAAU;EACVR,kBAAkB,EAAEA,kBAAmB;EACvCS,iBAAiB,EAAC,MAAM;EACxBC,KAAK,EAAEC,MAAM,CAACC,GAAI;EAAAC,QAAA,gB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@
1
1
  "use strict";
2
2
 
3
- import { useClient } from "@ovok/core";
3
+ import { useOvok } from "@ovok/core/next/react";
4
4
  import { useAuthAction } from "./use-auth-action.js";
5
5
  import { useSignIn } from "./use-sign-in.js";
6
6
  /** Reads `invite` and `code` from an `…/accept-invite?invite=…&code=…` link. */
@@ -23,24 +23,18 @@ const parseInviteLink = link => {
23
23
  const useAcceptInviteLink = ({
24
24
  tenantCode
25
25
  }) => {
26
- const client = useClient();
26
+ const client = useOvok();
27
27
  const signInAsCarer = useSignIn({
28
28
  type: "RelatedPerson",
29
29
  tenantCode
30
30
  }).run;
31
- const accept = useAuthAction(link => {
31
+ const accept = useAuthAction(async link => {
32
32
  const invite = parseInviteLink(link);
33
- const resourceType = client.getProfile()?.resourceType;
34
- if (resourceType === "Patient") {
35
- return client.acceptCareInvite(invite);
36
- }
37
- if (resourceType === "RelatedPerson") {
38
- return client.acceptRecordShare(invite);
39
- }
40
- throw new Error("Accepting an invite link requires a signed-in Patient or RelatedPerson profile.");
33
+ const profileType = (await client.session.current())?.profile.reference.split("/", 1)[0];
34
+ return profileType === "RelatedPerson" ? client.invites.recordShares.accept(invite) : client.invites.accept(invite);
41
35
  });
42
36
  const createCarerAccount = useAuthAction(async (link, credentials) => {
43
- const share = await client.acceptRecordShare({
37
+ const share = await client.invites.recordShares.accept({
44
38
  ...parseInviteLink(link),
45
39
  password: credentials.password
46
40
  });
@@ -1 +1 @@
1
- {"version":3,"names":["useClient","useAuthAction","useSignIn","parseInviteLink","link","query","split","params","Map","map","pair","key","value","decodeURIComponent","replace","inviteId","get","code","Error","useAcceptInviteLink","tenantCode","client","signInAsCarer","type","run","accept","invite","resourceType","getProfile","acceptCareInvite","acceptRecordShare","createCarerAccount","credentials","share","password","login"],"sourceRoot":"../../../../../src","sources":["modules/auth/hooks/use-accept-invite-link.ts"],"mappings":";;AAAA,SAA2BA,SAAS,QAAQ,YAAY;AAExD,SAASC,aAAa,QAAQ,sBAAmB;AACjD,SAA4BC,SAAS,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,CAAC,CAAC,EAAED,YAAY;IAEtD,IAAIA,YAAY,KAAK,SAAS,EAAE;MAC9B,OAAON,MAAM,CAACQ,gBAAgB,CAACH,MAAM,CAAC;IACxC;IAEA,IAAIC,YAAY,KAAK,eAAe,EAAE;MACpC,OAAON,MAAM,CAACS,iBAAiB,CAACJ,MAAM,CAAC;IACzC;IAEA,MAAM,IAAIR,KAAK,CAAC,iFAAiF,CAAC;EACpG,CAAC,CAAC;EAEF,MAAMa,kBAAkB,GAAG9B,aAAa,CAAC,OAAOG,IAAY,EAAE4B,WAA8B,KAAK;IAC/F,MAAMC,KAAK,GAAG,MAAMZ,MAAM,CAACS,iBAAiB,CAAC;MAAE,GAAG3B,eAAe,CAACC,IAAI,CAAC;MAAE8B,QAAQ,EAAEF,WAAW,CAACE;IAAS,CAAC,CAAC;IAC1G,MAAMC,KAAK,GAAG,MAAMb,aAAa,CAACU,WAAW,CAAC;IAE9C,OAAO;MAAEC,KAAK;MAAEE;IAAM,CAAC;EACzB,CAAC,CAAC;EAEF,OAAO;IAAEV,MAAM;IAAEM;EAAmB,CAAC;AACvC,CAAC;AAED,SAAkC5B,eAAe,EAAEgB,mBAAmB","ignoreList":[]}
1
+ {"version":3,"names":["useOvok","useAuthAction","useSignIn","parseInviteLink","link","query","split","params","Map","map","pair","key","value","decodeURIComponent","replace","inviteId","get","code","Error","useAcceptInviteLink","tenantCode","client","signInAsCarer","type","run","accept","invite","profileType","session","current","profile","reference","invites","recordShares","createCarerAccount","credentials","share","password","login"],"sourceRoot":"../../../../../src","sources":["modules/auth/hooks/use-accept-invite-link.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,uBAAuB;AAI/C,SAASC,aAAa,QAAQ,sBAAmB;AACjD,SAA4BC,SAAS,QAAQ,kBAAe;AAM5D;AACA,MAAMC,eAAe,GAAIC,IAAY,IAAuB;EAC1D,MAAMC,KAAK,GAAGD,IAAI,CAACE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE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,KAAK,eAAe,GAClCN,MAAM,CAACW,OAAO,CAACC,YAAY,CAACR,MAAM,CAACC,MAAM,CAAC,GAC1CL,MAAM,CAACW,OAAO,CAACP,MAAM,CAACC,MAAM,CAAC;EACnC,CAAC,CAAC;EAEF,MAAMQ,kBAAkB,GAAGjC,aAAa,CAAC,OAAOG,IAAY,EAAE+B,WAA8B,KAAK;IAC/F,MAAMC,KAAK,GAAG,MAAMf,MAAM,CAACW,OAAO,CAACC,YAAY,CAACR,MAAM,CAAC;MACrD,GAAGtB,eAAe,CAACC,IAAI,CAAC;MACxBiC,QAAQ,EAAEF,WAAW,CAACE;IACxB,CAAC,CAAC;IAEF,MAAMC,KAAK,GAAG,MAAMhB,aAAa,CAACa,WAAW,CAAC;IAE9C,OAAO;MAAEC,KAAK;MAAEE;IAAM,CAAC;EACzB,CAAC,CAAC;EAEF,OAAO;IAAEb,MAAM;IAAES;EAAmB,CAAC;AACvC,CAAC;AAED,SAAkC/B,eAAe,EAAEgB,mBAAmB","ignoreList":[]}
@@ -1,22 +1,19 @@
1
1
  "use strict";
2
2
 
3
- import { useClient } from "@ovok/core";
4
- import { notifySessionChanged } from "../session/events.js";
5
- import { signOutGoogleIfNeeded } from "../utils/sign-out-google.js";
3
+ import { useOvok } from "@ovok/core/next/react";
4
+ import { logoutSession } from "../session/logout-session.js";
6
5
  import { useAuthAction } from "./use-auth-action.js";
7
6
  export const useDeleteAccount = ({
8
7
  days = 30,
9
8
  wipe = true
10
9
  } = {}) => {
11
- const client = useClient();
10
+ const client = useOvok();
12
11
  return useAuthAction(async () => {
13
- await client.requestDeleteUser({
12
+ await client.auth.deleteAccount({
14
13
  days,
15
14
  wipe
16
15
  });
17
- await client.clearActiveLogin();
18
- notifySessionChanged();
19
- await signOutGoogleIfNeeded();
16
+ await logoutSession(client);
20
17
  });
21
18
  };
22
19
  //# sourceMappingURL=use-delete-account.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useClient","notifySessionChanged","signOutGoogleIfNeeded","useAuthAction","useDeleteAccount","days","wipe","client","requestDeleteUser","clearActiveLogin"],"sourceRoot":"../../../../../src","sources":["modules/auth/hooks/use-delete-account.ts"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,YAAY;AAEtC,SAASC,oBAAoB,QAAQ,sBAAmB;AACxD,SAASC,qBAAqB,QAAQ,6BAA0B;AAEhE,SAASC,aAAa,QAAQ,sBAAmB;AAOjD,OAAO,MAAMC,gBAAgB,GAAGA,CAAC;EAAEC,IAAI,GAAG,EAAE;EAAEC,IAAI,GAAG;AAA2B,CAAC,GAAG,CAAC,CAAC,KAAK;EACzF,MAAMC,MAAM,GAAGP,SAAS,CAAC,CAAC;EAE1B,OAAOG,aAAa,CAAC,YAAY;IAC/B,MAAMI,MAAM,CAACC,iBAAiB,CAAC;MAAEH,IAAI;MAAEC;IAAK,CAAC,CAAC;IAC9C,MAAMC,MAAM,CAACE,gBAAgB,CAAC,CAAC;IAC/BR,oBAAoB,CAAC,CAAC;IACtB,MAAMC,qBAAqB,CAAC,CAAC;EAC/B,CAAC,CAAC;AACJ,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["useOvok","logoutSession","useAuthAction","useDeleteAccount","days","wipe","client","auth","deleteAccount"],"sourceRoot":"../../../../../src","sources":["modules/auth/hooks/use-delete-account.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,uBAAuB;AAE/C,SAASC,aAAa,QAAQ,8BAA2B;AAEzD,SAASC,aAAa,QAAQ,sBAAmB;AAOjD,OAAO,MAAMC,gBAAgB,GAAGA,CAAC;EAAEC,IAAI,GAAG,EAAE;EAAEC,IAAI,GAAG;AAA2B,CAAC,GAAG,CAAC,CAAC,KAAK;EACzF,MAAMC,MAAM,GAAGN,OAAO,CAAC,CAAC;EAExB,OAAOE,aAAa,CAAC,YAAY;IAC/B,MAAMI,MAAM,CAACC,IAAI,CAACC,aAAa,CAAC;MAAEJ,IAAI;MAAEC;IAAK,CAAC,CAAC;IAC/C,MAAMJ,aAAa,CAACK,MAAM,CAAC;EAC7B,CAAC,CAAC;AACJ,CAAC","ignoreList":[]}
@@ -1,52 +1,173 @@
1
1
  "use strict";
2
2
 
3
- import { useClient } from "@ovok/core";
3
+ import { useOvok } from "@ovok/core/next/react";
4
+ import { addEventListener as addNetworkEventListener } from "@react-native-community/netinfo";
4
5
  import * as React from "react";
5
6
  import { AppState } from "react-native";
6
7
  import { subscribeSessionChanges } from "../session/events.js";
7
- import { getSessionStore } from "../session/session-store.js";
8
- /** Shares the signed-in profile and remote-session list between components using one client. */
9
- const useSession = ({
8
+ import { logoutSession } from "../session/logout-session.js";
9
+ import { getHttpStatus, toError } from "../session/session-errors.js";
10
+ import { initialSnapshot, profileFor, signedOutSnapshot } from "../session/session-snapshot.js";
11
+ export const useSession = ({
10
12
  sessions: fetchSessions = true,
11
13
  refreshOnForeground = true
12
14
  } = {}) => {
13
- const client = useClient();
14
- const store = React.useMemo(() => getSessionStore(client), [client]);
15
- const snapshot = React.useSyncExternalStore(store.subscribe, () => store.snapshot, () => store.snapshot);
16
- const refresh = React.useCallback(() => store.refresh(fetchSessions), [fetchSessions, store]);
15
+ const client = useOvok();
16
+ const [snapshot, setSnapshot] = React.useState(initialSnapshot);
17
+ const revision = React.useRef(0);
18
+ const accountOperation = React.useRef(false);
19
+ const refresh = React.useCallback(async () => {
20
+ const requestRevision = ++revision.current;
21
+ const requested = accountOperation.current;
22
+ try {
23
+ const [session, accounts] = await Promise.all([client.session.current(), client.session.savedAccounts.list()]);
24
+ if (requestRevision !== revision.current) {
25
+ return;
26
+ }
27
+ if (!session) {
28
+ setSnapshot(previous => signedOutSnapshot(accounts, previous, requested));
29
+ return;
30
+ }
31
+ const activeAccountId = accounts.find(account => account.active)?.id ?? session.profile.reference;
32
+ setSnapshot(previous => ({
33
+ ...previous,
34
+ status: previous.activeAccountId === activeAccountId && previous.profile ? previous.status : "loading",
35
+ activeAccountId,
36
+ accounts,
37
+ profile: previous.activeAccountId === activeAccountId ? previous.profile : undefined,
38
+ profileAccountId: previous.activeAccountId === activeAccountId ? previous.profileAccountId : undefined,
39
+ sessions: previous.activeAccountId === activeAccountId ? previous.sessions : [],
40
+ reason: undefined,
41
+ error: undefined
42
+ }));
43
+ const [profileResult, sessionsResult] = await Promise.all([profileFor(client, session.profile.reference).then(profile => ({
44
+ profile
45
+ }), error => ({
46
+ error
47
+ })), fetchSessions ? client.auth.sessions.list().then(sessions => ({
48
+ sessions
49
+ }), error => ({
50
+ error
51
+ })) : Promise.resolve({
52
+ sessions: undefined
53
+ })]);
54
+ if (requestRevision !== revision.current) {
55
+ return;
56
+ }
57
+ setSnapshot(previous => {
58
+ if (getHttpStatus("error" in profileResult ? profileResult.error : undefined) === 401) {
59
+ return signedOutSnapshot(accounts, previous, requested);
60
+ }
61
+ const profile = "profile" in profileResult ? profileResult.profile : previous.profileAccountId === activeAccountId ? previous.profile : undefined;
62
+ const error = "error" in profileResult ? profileResult.error : "error" in sessionsResult ? sessionsResult.error : undefined;
63
+ return {
64
+ ...previous,
65
+ status: "profile" in profileResult ? "authenticated" : "offline",
66
+ activeAccountId,
67
+ accounts,
68
+ profile,
69
+ profileAccountId: profile ? activeAccountId : undefined,
70
+ sessions: "sessions" in sessionsResult && sessionsResult.sessions ? sessionsResult.sessions : previous.sessions,
71
+ error: error === undefined ? undefined : toError(error)
72
+ };
73
+ });
74
+ } catch (error) {
75
+ if (requestRevision !== revision.current) {
76
+ return;
77
+ }
78
+ setSnapshot(previous => ({
79
+ ...previous,
80
+ status: previous.activeAccountId ? "offline" : "signed-out",
81
+ error: toError(error)
82
+ }));
83
+ }
84
+ }, [client, fetchSessions]);
85
+ const refreshSessions = React.useCallback(async () => {
86
+ const accountId = snapshot.activeAccountId;
87
+ if (!accountId) {
88
+ return;
89
+ }
90
+ try {
91
+ const sessions = await client.auth.sessions.list();
92
+ setSnapshot(previous => previous.activeAccountId === accountId ? {
93
+ ...previous,
94
+ sessions,
95
+ error: undefined
96
+ } : previous);
97
+ } catch (error) {
98
+ const failure = toError(error);
99
+ setSnapshot(previous => previous.activeAccountId === accountId ? {
100
+ ...previous,
101
+ error: failure
102
+ } : previous);
103
+ throw failure;
104
+ }
105
+ }, [client, snapshot.activeAccountId]);
106
+ const runAccountOperation = React.useCallback(async operation => {
107
+ accountOperation.current = true;
108
+ ++revision.current;
109
+ setSnapshot(previous => ({
110
+ ...previous,
111
+ switching: true
112
+ }));
113
+ try {
114
+ await operation();
115
+ } finally {
116
+ await refresh();
117
+ accountOperation.current = false;
118
+ setSnapshot(previous => ({
119
+ ...previous,
120
+ switching: false
121
+ }));
122
+ }
123
+ }, [refresh]);
17
124
  React.useEffect(() => {
125
+ setSnapshot(initialSnapshot);
18
126
  void refresh();
19
- const subscription = refreshOnForeground ? AppState.addEventListener("change", nextState => {
20
- if (nextState === "active") {
127
+ const unsubscribeClient = client.session.onChange(() => {
128
+ if (!accountOperation.current) {
129
+ void refresh();
130
+ }
131
+ });
132
+ const unsubscribeLocal = subscribeSessionChanges(() => void refresh());
133
+ const foreground = refreshOnForeground ? AppState.addEventListener("change", state => {
134
+ if (state === "active") {
21
135
  void refresh();
22
136
  }
23
137
  }) : undefined;
24
- const unsubscribe = subscribeSessionChanges(() => void refresh());
138
+ const currentRevision = revision;
25
139
  return () => {
26
- subscription?.remove();
27
- unsubscribe();
140
+ ++currentRevision.current;
141
+ unsubscribeClient();
142
+ unsubscribeLocal();
143
+ foreground?.remove();
28
144
  };
29
- }, [refresh, refreshOnForeground]);
30
- const profileIsCurrent = snapshot.activeAccountId !== undefined && snapshot.profileAccountId === snapshot.activeAccountId;
145
+ }, [client, refresh, refreshOnForeground]);
146
+ React.useEffect(() => {
147
+ if (snapshot.status !== "offline") {
148
+ return;
149
+ }
150
+ const unsubscribe = addNetworkEventListener(state => {
151
+ if (state.isConnected && state.isInternetReachable !== false) {
152
+ void refresh();
153
+ }
154
+ });
155
+ return unsubscribe;
156
+ }, [refresh, snapshot.status]);
31
157
  return {
32
- status: snapshot.status,
33
- activeAccountId: snapshot.activeAccountId,
34
- patientId: profileIsCurrent && snapshot.profile?.resourceType === "Patient" ? snapshot.profile.id : undefined,
35
- reason: snapshot.reason,
158
+ ...snapshot,
159
+ patientId: snapshot.profileAccountId === snapshot.activeAccountId && snapshot.profile?.resourceType === "Patient" ? snapshot.profile.id : undefined,
36
160
  isAuthenticated: snapshot.status === "authenticated" || snapshot.status === "offline",
37
- accounts: snapshot.accounts,
38
- profile: profileIsCurrent ? snapshot.profile : undefined,
39
- sessions: snapshot.sessions,
40
161
  loading: snapshot.status === "loading",
41
- switching: snapshot.switching === true,
42
- error: snapshot.error,
43
162
  refresh,
44
- refreshSessions: store.refreshSessions,
45
- switchAccount: store.switchAccount,
46
- removeAccount: store.removeAccount,
47
- logout: store.logout,
48
- revokeSessions: store.revokeSessions
163
+ refreshSessions,
164
+ switchAccount: accountId => runAccountOperation(() => client.session.savedAccounts.switch(accountId)),
165
+ removeAccount: accountId => runAccountOperation(() => client.session.savedAccounts.remove(accountId)),
166
+ logout: () => runAccountOperation(() => logoutSession(client)),
167
+ revokeSessions: async option => {
168
+ await client.auth.sessions.revoke(option);
169
+ await refresh();
170
+ }
49
171
  };
50
172
  };
51
- export { useSession };
52
173
  //# sourceMappingURL=use-session.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useClient","React","AppState","subscribeSessionChanges","getSessionStore","useSession","sessions","fetchSessions","refreshOnForeground","client","store","useMemo","snapshot","useSyncExternalStore","subscribe","refresh","useCallback","useEffect","subscription","addEventListener","nextState","undefined","unsubscribe","remove","profileIsCurrent","activeAccountId","profileAccountId","status","patientId","profile","resourceType","id","reason","isAuthenticated","accounts","loading","switching","error","refreshSessions","switchAccount","removeAccount","logout","revokeSessions"],"sourceRoot":"../../../../../src","sources":["modules/auth/hooks/use-session.ts"],"mappings":";;AAAA,SAASA,SAAS,QAA+B,YAAY;AAC7D,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,cAAc;AAEvC,SAASC,uBAAuB,QAA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,CAACa,eAAe;EAExD,OAAO;IACLE,MAAM,EAAEf,QAAQ,CAACe,MAAM;IACvBF,eAAe,EAAEb,QAAQ,CAACa,eAAe;IACzCG,SAAS,EACPJ,gBAAgB,IAAIZ,QAAQ,CAACiB,OAAO,EAAEC,YAAY,KAAK,SAAS,GAC5DlB,QAAQ,CAACiB,OAAO,CAACE,EAAE,GACnBV,SAAS;IACfW,MAAM,EAAEpB,QAAQ,CAACoB,MAAM;IACvBC,eAAe,EACbrB,QAAQ,CAACe,MAAM,KAAK,eAAe,IAAIf,QAAQ,CAACe,MAAM,KAAK,SAAS;IACtEO,QAAQ,EAAEtB,QAAQ,CAACsB,QAAQ;IAC3BL,OAAO,EAAEL,gBAAgB,GACnBZ,QAAQ,CAACiB,OAAO,GAChBR,SAAS;IACff,QAAQ,EAAEM,QAAQ,CAACN,QAAQ;IAC3B6B,OAAO,EAAEvB,QAAQ,CAACe,MAAM,KAAK,SAAS;IACtCS,SAAS,EAAExB,QAAQ,CAACwB,SAAS,KAAK,IAAI;IACtCC,KAAK,EAAEzB,QAAQ,CAACyB,KAAK;IACrBtB,OAAO;IACPuB,eAAe,EAAE5B,KAAK,CAAC4B,eAAe;IACtCC,aAAa,EAAE7B,KAAK,CAAC6B,aAAa;IAClCC,aAAa,EAAE9B,KAAK,CAAC8B,aAAa;IAClCC,MAAM,EAAE/B,KAAK,CAAC+B,MAAM;IACpBC,cAAc,EAAEhC,KAAK,CAACgC;EACxB,CAAC;AACH,CAAC;AAED,SAA8CrC,UAAU","ignoreList":[]}
1
+ {"version":3,"names":["useOvok","addEventListener","addNetworkEventListener","React","AppState","subscribeSessionChanges","logoutSession","getHttpStatus","toError","initialSnapshot","profileFor","signedOutSnapshot","useSession","sessions","fetchSessions","refreshOnForeground","client","snapshot","setSnapshot","useState","revision","useRef","accountOperation","refresh","useCallback","requestRevision","current","requested","session","accounts","Promise","all","savedAccounts","list","previous","activeAccountId","find","account","active","id","profile","reference","status","undefined","profileAccountId","reason","error","profileResult","sessionsResult","then","auth","resolve","refreshSessions","accountId","failure","runAccountOperation","operation","switching","useEffect","unsubscribeClient","onChange","unsubscribeLocal","foreground","state","currentRevision","remove","unsubscribe","isConnected","isInternetReachable","patientId","resourceType","isAuthenticated","loading","switchAccount","switch","removeAccount","logout","revokeSessions","option","revoke"],"sourceRoot":"../../../../../src","sources":["modules/auth/hooks/use-session.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,uBAAuB;AAC/C,SAASC,gBAAgB,IAAIC,uBAAuB,QAAQ,iCAAiC;AAC7F,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,cAAc;AAKvC,SAASC,uBAAuB,QAAQ,sBAAmB;AAC3D,SAASC,aAAa,QAAQ,8BAA2B;AACzD,SAASC,aAAa,EAAEC,OAAO,QAAQ,8BAA2B;AAClE,SAASC,eAAe,EAAEC,UAAU,EAAEC,iBAAiB,QAAQ,gCAA6B;AAmB5F,OAAO,MAAMC,UAAU,GAAGA,CAAC;EACzBC,QAAQ,EAAEC,aAAa,GAAG,IAAI;EAC9BC,mBAAmB,GAAG;AACL,CAAC,GAAG,CAAC,CAAC,KAAuB;EAC9C,MAAMC,MAAM,GAAGhB,OAAO,CAAC,CAAC;EACxB,MAAM,CAACiB,QAAQ,EAAEC,WAAW,CAAC,GAAGf,KAAK,CAACgB,QAAQ,CAAkBV,eAAe,CAAC;EAChF,MAAMW,QAAQ,GAAGjB,KAAK,CAACkB,MAAM,CAAC,CAAC,CAAC;EAChC,MAAMC,gBAAgB,GAAGnB,KAAK,CAACkB,MAAM,CAAC,KAAK,CAAC;EAE5C,MAAME,OAAO,GAAGpB,KAAK,CAACqB,WAAW,CAAC,YAA2B;IAC3D,MAAMC,eAAe,GAAG,EAAEL,QAAQ,CAACM,OAAO;IAC1C,MAAMC,SAAS,GAAGL,gBAAgB,CAACI,OAAO;IAE1C,IAAI;MACF,MAAM,CAACE,OAAO,EAAEC,QAAQ,CAAC,GAAG,MAAM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rB,mBAAmB,CAAC,MAAMjD,aAAa,CAACU,MAAM,CAAC,CAAC;IAC9D6D,cAAc,EAAE,MAAOC,MAAM,IAAK;MAChC,MAAM9D,MAAM,CAACkC,IAAI,CAACrC,QAAQ,CAACkE,MAAM,CAACD,MAAM,CAAC;MACzC,MAAMvD,OAAO,CAAC,CAAC;IACjB;EACF,CAAC;AACH,CAAC","ignoreList":[]}
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
 
3
- import { useClient } from "@ovok/core";
3
+ import { useOvok } from "@ovok/core/next/react";
4
4
  import * as React from "react";
5
- import { saveLogin } from "../session/save-login.js";
6
5
  import { useAuthAction } from "./use-auth-action.js";
7
6
  const useSignIn = options => {
8
- const client = useClient();
7
+ const client = useOvok();
9
8
  const optionsRef = React.useRef(options);
10
9
  optionsRef.current = options;
11
10
  const signIn = useAuthAction(async ({
@@ -13,30 +12,13 @@ const useSignIn = options => {
13
12
  password
14
13
  }) => {
15
14
  const current = optionsRef.current;
16
- const loginResponse = await client.login(current.type === "Practitioner" ? {
15
+ return client.auth.login({
17
16
  email,
18
17
  password,
19
- type: "Practitioner",
20
- ...(current.tenantCode === undefined ? {} : {
21
- tenantCode: current.tenantCode
22
- })
23
- } : {
24
- email,
25
- password,
26
- type: current.type,
27
- tenantCode: current.tenantCode
18
+ profileType: current.type
28
19
  });
29
- if ("verify" in loginResponse) {
30
- return loginResponse;
31
- }
32
- await saveLogin(client, loginResponse);
33
- return loginResponse;
34
- });
35
- const verifyMfa = useAuthAction(async (step, code) => {
36
- const response = await step.verify(code.trim());
37
- await saveLogin(client, response);
38
- return response;
39
20
  });
21
+ const verifyMfa = useAuthAction((challenge, code) => client.auth.verifyMfa(challenge, code.trim()));
40
22
  return {
41
23
  ...signIn,
42
24
  verifyMfa: verifyMfa.run,
@@ -1 +1 @@
1
- {"version":3,"names":["useClient","React","saveLogin","useAuthAction","useSignIn","options","client","optionsRef","useRef","current","signIn","email","password","loginResponse","login","type","tenantCode","undefined","verifyMfa","step","code","response","verify","trim","run","mfaStatus","status","mfaLoading","loading","mfaError","error"],"sourceRoot":"../../../../../src","sources":["modules/auth/hooks/use-sign-in.ts"],"mappings":";;AAAA,SAAwBA,SAAS,QAAQ,YAAY;AACrD,OAAO,KAAKC,KAAK,MAAM,OAAO;AAE9B,SAASC,SAAS,QAAQ,0BAAuB;AAEjD,SAASC,aAAa,QAAQ,sBAAmB;AAajD,MAAMC,SAAS,GAAIC,OAAsB,IAAK;EAC5C,MAAMC,MAAM,GAAGN,SAAS,CAAC,CAAC;EAC1B,MAAMO,UAAU,GAAGN,KAAK,CAACO,MAAM,CAACH,OAAO,CAAC;EAExCE,UAAU,CAACE,OAAO,GAAGJ,OAAO;EAE5B,MAAMK,MAAM,GAAGP,aAAa,CAAC,OAAO;IAAEQ,KAAK;IAAEC;EAA4B,CAAC,KAAK;IAC7E,MAAMH,OAAO,GAAGF,UAAU,CAACE,OAAO;IAElC,MAAMI,aAAa,GAAG,MAAMP,MAAM,CAACQ,KAAK,CAACL,OAAO,CAACM,IAAI,KAAK,cAAc,GACpE;MACEJ,KAAK;MACLC,QAAQ;MACRG,IAAI,EAAE,cAAc;MACpB,IAAIN,OAAO,CAACO,UAAU,KAAKC,SAAS,GAAG,CAAC,CAAC,GAAG;QAAED,UAAU,EAAEP,OAAO,CAACO;MAAW,CAAC;IAChF,CAAC,GACD;MAAEL,KAAK;MAAEC,QAAQ;MAAEG,IAAI,EAAEN,OAAO,CAACM,IAAI;MAAEC,UAAU,EAAEP,OAAO,CAACO;IAAW,CAAC,CAAC;IAE5E,IAAI,QAAQ,IAAIH,aAAa,EAAE;MAC7B,OAAOA,aAAa;IACtB;IAEA,MAAMX,SAAS,CAACI,MAAM,EAAEO,aAAa,CAAC;IAEtC,OAAOA,aAAa;EACtB,CAAC,CAAC;EAEF,MAAMK,SAAS,GAAGf,aAAa,CAAC,OAAOgB,IAAa,EAAEC,IAAY,KAAK;IACrE,MAAMC,QAAQ,GAAG,MAAMF,IAAI,CAACG,MAAM,CAACF,IAAI,CAACG,IAAI,CAAC,CAAC,CAAC;IAE/C,MAAMrB,SAAS,CAACI,MAAM,EAAEe,QAAQ,CAAC;IAEjC,OAAOA,QAAQ;EACjB,CAAC,CAAC;EAEF,OAAO;IACL,GAAGX,MAAM;IACTQ,SAAS,EAAEA,SAAS,CAACM,GAAG;IACxBC,SAAS,EAAEP,SAAS,CAACQ,MAAM;IAC3BC,UAAU,EAAET,SAAS,CAACU,OAAO;IAC7BC,QAAQ,EAAEX,SAAS,CAACY;EACtB,CAAC;AACH,CAAC;AAED,SAA2C1B,SAAS","ignoreList":[]}
1
+ {"version":3,"names":["useOvok","React","useAuthAction","useSignIn","options","client","optionsRef","useRef","current","signIn","email","password","auth","login","profileType","type","verifyMfa","challenge","code","trim","run","mfaStatus","status","mfaLoading","loading","mfaError","error"],"sourceRoot":"../../../../../src","sources":["modules/auth/hooks/use-sign-in.ts"],"mappings":";;AACA,SAASA,OAAO,QAAQ,uBAAuB;AAC/C,OAAO,KAAKC,KAAK,MAAM,OAAO;AAE9B,SAASC,aAAa,QAAQ,sBAAmB;AAWjD,MAAMC,SAAS,GAAIC,OAAsB,IAAK;EAC5C,MAAMC,MAAM,GAAGL,OAAO,CAAC,CAAC;EACxB,MAAMM,UAAU,GAAGL,KAAK,CAACM,MAAM,CAACH,OAAO,CAAC;EAExCE,UAAU,CAACE,OAAO,GAAGJ,OAAO;EAE5B,MAAMK,MAAM,GAAGP,aAAa,CAAC,OAAO;IAAEQ,KAAK;IAAEC;EAA4B,CAAC,KAAK;IAC7E,MAAMH,OAAO,GAAGF,UAAU,CAACE,OAAO;IAElC,OAAOH,MAAM,CAACO,IAAI,CAACC,KAAK,CAAC;MACvBH,KAAK;MACLC,QAAQ;MACRG,WAAW,EAAEN,OAAO,CAACO;IACvB,CAAC,CAAC;EACJ,CAAC,CAAC;EAEF,MAAMC,SAAS,GAAGd,aAAa,CAAC,CAACe,SAAuB,EAAEC,IAAY,KACpEb,MAAM,CAACO,IAAI,CAACI,SAAS,CAACC,SAAS,EAAEC,IAAI,CAACC,IAAI,CAAC,CAAC,CAC9C,CAAC;EAED,OAAO;IACL,GAAGV,MAAM;IACTO,SAAS,EAAEA,SAAS,CAACI,GAAG;IACxBC,SAAS,EAAEL,SAAS,CAACM,MAAM;IAC3BC,UAAU,EAAEP,SAAS,CAACQ,OAAO;IAC7BC,QAAQ,EAAET,SAAS,CAACU;EACtB,CAAC;AACH,CAAC;AAED,SAA2CvB,SAAS","ignoreList":[]}