@ovok/native 1.16.1-rc.1 → 1.16.1-rc.2

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 (1029) 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/bluetooth/channel.js +89 -0
  216. package/lib/commonjs/modules/next/bluetooth/channel.js.map +1 -0
  217. package/lib/commonjs/modules/next/bluetooth/driver.js +48 -0
  218. package/lib/commonjs/modules/next/bluetooth/driver.js.map +1 -0
  219. package/lib/commonjs/modules/next/bluetooth/drivers.js +20 -0
  220. package/lib/commonjs/modules/next/bluetooth/drivers.js.map +1 -0
  221. package/lib/commonjs/modules/next/bluetooth/index.js +65 -0
  222. package/lib/commonjs/modules/next/bluetooth/index.js.map +1 -0
  223. package/lib/commonjs/modules/next/bluetooth/legacy-driver.js +55 -0
  224. package/lib/commonjs/modules/next/bluetooth/legacy-driver.js.map +1 -0
  225. package/lib/commonjs/modules/next/bluetooth/link.js +105 -0
  226. package/lib/commonjs/modules/next/bluetooth/link.js.map +1 -0
  227. package/lib/commonjs/modules/next/bluetooth/result-policy.js +69 -0
  228. package/lib/commonjs/modules/next/bluetooth/result-policy.js.map +1 -0
  229. package/lib/commonjs/modules/next/bluetooth/sig-profiles.js +164 -0
  230. package/lib/commonjs/modules/next/bluetooth/sig-profiles.js.map +1 -0
  231. package/lib/commonjs/modules/next/bluetooth/sig-values.js +46 -0
  232. package/lib/commonjs/modules/next/bluetooth/sig-values.js.map +1 -0
  233. package/lib/commonjs/modules/next/ovok.js +5 -1
  234. package/lib/commonjs/modules/next/ovok.js.map +1 -1
  235. package/lib/commonjs/modules/next/use-native-ovok.js +17 -0
  236. package/lib/commonjs/modules/next/use-native-ovok.js.map +1 -0
  237. package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form-provider.js +27 -27
  238. package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form-provider.js.map +1 -1
  239. package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js +12 -17
  240. package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js.map +1 -1
  241. package/lib/commonjs/modules/socket/components/socket-provider.js +9 -4
  242. package/lib/commonjs/modules/socket/components/socket-provider.js.map +1 -1
  243. package/lib/commonjs/modules/tile/constants/measurement-icon-svg.js +21 -21
  244. package/lib/commonjs/modules/tile/constants/measurement-icon-svg.js.map +1 -1
  245. package/lib/commonjs/modules/ui/components/urine-test-result.js +3 -3
  246. package/lib/commonjs/modules/ui/components/urine-test-result.js.map +1 -1
  247. package/lib/commonjs/modules/wearables/components/wearable-provider-icon.js +45 -0
  248. package/lib/commonjs/modules/wearables/components/wearable-provider-icon.js.map +1 -0
  249. package/lib/commonjs/modules/wearables/constants/wearable-providers.js +60 -0
  250. package/lib/commonjs/modules/wearables/constants/wearable-providers.js.map +1 -0
  251. package/lib/commonjs/modules/wearables/index.js +50 -0
  252. package/lib/commonjs/modules/wearables/index.js.map +1 -0
  253. package/lib/commonjs/modules/wearables/types/wearable-provider-icon-props.js +6 -0
  254. package/lib/commonjs/modules/wearables/types/wearable-provider-icon-props.js.map +1 -0
  255. package/lib/commonjs/modules/wearables/types/wearable-source.js +6 -0
  256. package/lib/commonjs/modules/wearables/types/wearable-source.js.map +1 -0
  257. package/lib/module/modules/auth/hooks/use-accept-invite-link.js +6 -12
  258. package/lib/module/modules/auth/hooks/use-accept-invite-link.js.map +1 -1
  259. package/lib/module/modules/auth/hooks/use-delete-account.js +5 -8
  260. package/lib/module/modules/auth/hooks/use-delete-account.js.map +1 -1
  261. package/lib/module/modules/auth/hooks/use-session.js +151 -30
  262. package/lib/module/modules/auth/hooks/use-session.js.map +1 -1
  263. package/lib/module/modules/auth/hooks/use-sign-in.js +5 -23
  264. package/lib/module/modules/auth/hooks/use-sign-in.js.map +1 -1
  265. package/lib/module/modules/auth/hooks/use-sign-out.js +2 -2
  266. package/lib/module/modules/auth/hooks/use-sign-out.js.map +1 -1
  267. package/lib/module/modules/auth/hooks/use-social-sign-in.js +4 -9
  268. package/lib/module/modules/auth/hooks/use-social-sign-in.js.map +1 -1
  269. package/lib/module/modules/auth/profile/components/profile-form-provider.js +21 -7
  270. package/lib/module/modules/auth/profile/components/profile-form-provider.js.map +1 -1
  271. package/lib/module/modules/auth/register/components/form/register-form-provider.js +16 -17
  272. package/lib/module/modules/auth/register/components/form/register-form-provider.js.map +1 -1
  273. package/lib/module/modules/auth/reset-password/components/form/reset-password-form-provider.js +3 -3
  274. package/lib/module/modules/auth/reset-password/components/form/reset-password-form-provider.js.map +1 -1
  275. package/lib/module/modules/auth/session/logout-session.js +1 -3
  276. package/lib/module/modules/auth/session/logout-session.js.map +1 -1
  277. package/lib/module/modules/auth/session/session-snapshot.js +28 -0
  278. package/lib/module/modules/auth/session/session-snapshot.js.map +1 -0
  279. package/lib/module/modules/auth/sign-in/components/form/login-form-provider.js +11 -6
  280. package/lib/module/modules/auth/sign-in/components/form/login-form-provider.js.map +1 -1
  281. package/lib/module/modules/auth/sign-in/components/social-logins/apple-login-button.js +3 -5
  282. package/lib/module/modules/auth/sign-in/components/social-logins/apple-login-button.js.map +1 -1
  283. package/lib/module/modules/auth/sign-in/components/social-logins/google-login-button.js +3 -5
  284. package/lib/module/modules/auth/sign-in/components/social-logins/google-login-button.js.map +1 -1
  285. package/lib/module/modules/auth/utils/sign-in-error.js +7 -7
  286. package/lib/module/modules/auth/utils/sign-in-error.js.map +1 -1
  287. package/lib/module/modules/background-sync/android-background-sync.js +6 -0
  288. package/lib/module/modules/background-sync/android-background-sync.js.map +1 -1
  289. package/lib/module/modules/bt-device/constants/device-model.js +1 -1
  290. package/lib/module/modules/bt-device/constants/device-model.js.map +1 -1
  291. package/lib/module/modules/bt-device/constants/supported-devices.js +1 -1
  292. package/lib/module/modules/bt-device/constants/supported-devices.js.map +1 -1
  293. package/lib/module/modules/bt-management/constants/built-in-measurement-types.js +1 -1
  294. package/lib/module/modules/bt-management/constants/built-in-measurement-types.js.map +1 -1
  295. package/lib/module/modules/bt-management/constants/measurement-field-catalog.js +1 -1
  296. package/lib/module/modules/bt-management/constants/measurement-field-catalog.js.map +1 -1
  297. package/lib/module/modules/bt-management/services/devices/a606/a606.device.js +1 -1
  298. package/lib/module/modules/bt-management/services/devices/a606/a606.device.js.map +1 -1
  299. package/lib/module/modules/bt-management/services/devices/a606/a606.main-services.js +1 -1
  300. package/lib/module/modules/bt-management/services/devices/a606/a606.main-services.js.map +1 -1
  301. package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.sequencer.js +1 -1
  302. package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.sequencer.js.map +1 -1
  303. package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.js +1 -1
  304. package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.js.map +1 -1
  305. package/lib/module/modules/bt-management/services/devices/aoj/aoj.device.js +1 -1
  306. package/lib/module/modules/bt-management/services/devices/aoj/aoj.device.js.map +1 -1
  307. package/lib/module/modules/bt-management/services/devices/aoj/aoj.thermometers.js +1 -1
  308. package/lib/module/modules/bt-management/services/devices/aoj/aoj.thermometers.js.map +1 -1
  309. package/lib/module/modules/bt-management/services/devices/bc01/bc01.device.js +1 -1
  310. package/lib/module/modules/bt-management/services/devices/bc01/bc01.device.js.map +1 -1
  311. package/lib/module/modules/bt-management/services/devices/bc01/bc01.main-services.js +1 -1
  312. package/lib/module/modules/bt-management/services/devices/bc01/bc01.main-services.js.map +1 -1
  313. package/lib/module/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js +1 -1
  314. package/lib/module/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js.map +1 -1
  315. package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js +2 -2
  316. package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js.map +1 -1
  317. package/lib/module/modules/bt-management/services/devices/bp2/bp2.files.js +1 -1
  318. package/lib/module/modules/bt-management/services/devices/bp2/bp2.files.js.map +1 -1
  319. package/lib/module/modules/bt-management/services/devices/bp2/bp2.main-services.js +1 -1
  320. package/lib/module/modules/bt-management/services/devices/bp2/bp2.main-services.js.map +1 -1
  321. package/lib/module/modules/bt-management/services/devices/bpw1/bpw1.device.js +1 -1
  322. package/lib/module/modules/bt-management/services/devices/bpw1/bpw1.device.js.map +1 -1
  323. package/lib/module/modules/bt-management/services/devices/bpw1/bpw1.main-services.js +1 -1
  324. package/lib/module/modules/bt-management/services/devices/bpw1/bpw1.main-services.js.map +1 -1
  325. package/lib/module/modules/bt-management/services/devices/checkme/checkme-ecg.sequencer.js +1 -1
  326. package/lib/module/modules/bt-management/services/devices/checkme/checkme-ecg.sequencer.js.map +1 -1
  327. package/lib/module/modules/bt-management/services/devices/checkme/checkme-pod.sequencer.js +1 -1
  328. package/lib/module/modules/bt-management/services/devices/checkme/checkme-pod.sequencer.js.map +1 -1
  329. package/lib/module/modules/bt-management/services/devices/checkme/checkme.sequencer.js +1 -1
  330. package/lib/module/modules/bt-management/services/devices/checkme/checkme.sequencer.js.map +1 -1
  331. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.js +1 -1
  332. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.js.map +1 -1
  333. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.js +1 -1
  334. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.js.map +1 -1
  335. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.js +1 -1
  336. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.js.map +1 -1
  337. package/lib/module/modules/bt-management/services/devices/custom/custom.device.js +1 -1
  338. package/lib/module/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
  339. package/lib/module/modules/bt-management/services/devices/f4/f4.main-services.js +1 -1
  340. package/lib/module/modules/bt-management/services/devices/f4/f4.main-services.js.map +1 -1
  341. package/lib/module/modules/bt-management/services/devices/f5/f5-scale.sequencer.js +1 -1
  342. package/lib/module/modules/bt-management/services/devices/f5/f5-scale.sequencer.js.map +1 -1
  343. package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.sequencer.js +1 -1
  344. package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.sequencer.js.map +1 -1
  345. package/lib/module/modules/bt-management/services/devices/genial-t31/genial-t31.device.js +1 -1
  346. package/lib/module/modules/bt-management/services/devices/genial-t31/genial-t31.device.js.map +1 -1
  347. package/lib/module/modules/bt-management/services/devices/joytech/joytech.sequencer.js +1 -1
  348. package/lib/module/modules/bt-management/services/devices/joytech/joytech.sequencer.js.map +1 -1
  349. package/lib/module/modules/bt-management/services/devices/jumper/jumper.sequencer.js +1 -1
  350. package/lib/module/modules/bt-management/services/devices/jumper/jumper.sequencer.js.map +1 -1
  351. package/lib/module/modules/bt-management/services/devices/live-oximeter.sequencer.js +1 -1
  352. package/lib/module/modules/bt-management/services/devices/live-oximeter.sequencer.js.map +1 -1
  353. package/lib/module/modules/bt-management/services/devices/spo/pc60fw.monitor.js +1 -1
  354. package/lib/module/modules/bt-management/services/devices/spo/pc60fw.monitor.js.map +1 -1
  355. package/lib/module/modules/bt-management/services/devices/spo/spo2.main-services.js +1 -1
  356. package/lib/module/modules/bt-management/services/devices/spo/spo2.main-services.js.map +1 -1
  357. package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.js +1 -1
  358. package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.js.map +1 -1
  359. package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js +1 -1
  360. package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js.map +1 -1
  361. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.records.js +1 -1
  362. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.records.js.map +1 -1
  363. package/lib/module/modules/bt-management/services/devices/tmb/tmb.bp-handler.js +1 -1
  364. package/lib/module/modules/bt-management/services/devices/tmb/tmb.bp-handler.js.map +1 -1
  365. package/lib/module/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js +1 -1
  366. package/lib/module/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js.map +1 -1
  367. package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js +1 -1
  368. package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js.map +1 -1
  369. package/lib/module/modules/bt-management/services/devices/transtek/mambo-a5.sequencer.js +1 -1
  370. package/lib/module/modules/bt-management/services/devices/transtek/mambo-a5.sequencer.js.map +1 -1
  371. package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.records.js +1 -1
  372. package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.records.js.map +1 -1
  373. package/lib/module/modules/bt-management/services/devices/trasense/s9.command-sequencer.js +1 -1
  374. package/lib/module/modules/bt-management/services/devices/trasense/s9.command-sequencer.js.map +1 -1
  375. package/lib/module/modules/bt-management/services/devices/uebe/mysense.device.js +1 -1
  376. package/lib/module/modules/bt-management/services/devices/uebe/mysense.device.js.map +1 -1
  377. package/lib/module/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.js +1 -1
  378. package/lib/module/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.js.map +1 -1
  379. package/lib/module/modules/bt-management/services/devices/veroval/veroval.duo-control-device.js +1 -1
  380. package/lib/module/modules/bt-management/services/devices/veroval/veroval.duo-control-device.js.map +1 -1
  381. package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-device.js +1 -1
  382. package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-device.js.map +1 -1
  383. package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-record.js +1 -1
  384. package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-record.js.map +1 -1
  385. package/lib/module/modules/bt-management/services/devices/viatom/baby-sleep-clip.protocol.js +1 -1
  386. package/lib/module/modules/bt-management/services/devices/viatom/baby-sleep-clip.protocol.js.map +1 -1
  387. package/lib/module/modules/bt-management/services/devices/viatom/bioland.bgm.sequencer.js +1 -1
  388. package/lib/module/modules/bt-management/services/devices/viatom/bioland.bgm.sequencer.js.map +1 -1
  389. package/lib/module/modules/bt-management/services/devices/viatom/lpm311.protocol.js +1 -1
  390. package/lib/module/modules/bt-management/services/devices/viatom/lpm311.protocol.js.map +1 -1
  391. package/lib/module/modules/bt-management/services/devices/viatom/oxy-s3.sequencer.js +1 -1
  392. package/lib/module/modules/bt-management/services/devices/viatom/oxy-s3.sequencer.js.map +1 -1
  393. package/lib/module/modules/bt-management/services/devices/viatom/pc80b.sequencer.js +1 -1
  394. package/lib/module/modules/bt-management/services/devices/viatom/pc80b.sequencer.js.map +1 -1
  395. package/lib/module/modules/bt-management/services/devices/viatom/pf10aw1.sequencer.js +1 -1
  396. package/lib/module/modules/bt-management/services/devices/viatom/pf10aw1.sequencer.js.map +1 -1
  397. package/lib/module/modules/bt-management/services/devices/viatom/poctor.m3102.sequencer.js +1 -1
  398. package/lib/module/modules/bt-management/services/devices/viatom/poctor.m3102.sequencer.js.map +1 -1
  399. package/lib/module/modules/bt-management/services/devices/viatom/sp20.sequencer.js +1 -1
  400. package/lib/module/modules/bt-management/services/devices/viatom/sp20.sequencer.js.map +1 -1
  401. package/lib/module/modules/bt-management/services/devices/viatom/viatom-aa55.sequencer.js +1 -1
  402. package/lib/module/modules/bt-management/services/devices/viatom/viatom-aa55.sequencer.js.map +1 -1
  403. package/lib/module/modules/bt-management/services/devices/viatom/viatom-r20.protocol.js +1 -1
  404. package/lib/module/modules/bt-management/services/devices/viatom/viatom-r20.protocol.js.map +1 -1
  405. package/lib/module/modules/bt-management/services/devices/viatom/viatom-r20.sequencer.js +1 -1
  406. package/lib/module/modules/bt-management/services/devices/viatom/viatom-r20.sequencer.js.map +1 -1
  407. package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp-ecg-handler.js +1 -1
  408. package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp-ecg-handler.js.map +1 -1
  409. package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp-monitor-cases.js +1 -1
  410. package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp-monitor-cases.js.map +1 -1
  411. package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp3-files.js +1 -1
  412. package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp3-files.js.map +1 -1
  413. package/lib/module/modules/bt-management/services/devices/viatom/viatom.bpm188.sequencer.js +1 -1
  414. package/lib/module/modules/bt-management/services/devices/viatom/viatom.bpm188.sequencer.js.map +1 -1
  415. package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js +1 -1
  416. package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js.map +1 -1
  417. package/lib/module/modules/bt-management/services/devices/viatom/viatom.lepod.js +1 -1
  418. package/lib/module/modules/bt-management/services/devices/viatom/viatom.lepod.js.map +1 -1
  419. package/lib/module/modules/bt-management/services/devices/viatom/viatom.oximeters.js +1 -1
  420. package/lib/module/modules/bt-management/services/devices/viatom/viatom.oximeters.js.map +1 -1
  421. package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc100.sequencer.js +1 -1
  422. package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc100.sequencer.js.map +1 -1
  423. package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc300.sequencer.js +1 -1
  424. package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc300.sequencer.js.map +1 -1
  425. package/lib/module/modules/bt-management/services/devices/viatom/viatom.pm10.sequencer.js +1 -1
  426. package/lib/module/modules/bt-management/services/devices/viatom/viatom.pm10.sequencer.js.map +1 -1
  427. package/lib/module/modules/bt-management/services/devices/viatom/viatom.vtm20f.js +1 -1
  428. package/lib/module/modules/bt-management/services/devices/viatom/viatom.vtm20f.js.map +1 -1
  429. package/lib/module/modules/bt-management/services/devices/viatom/viatom.wbp02.sequencer.js +1 -1
  430. package/lib/module/modules/bt-management/services/devices/viatom/viatom.wbp02.sequencer.js.map +1 -1
  431. package/lib/module/modules/bt-management/services/devices/yonker/yonker.sequencer.js +1 -1
  432. package/lib/module/modules/bt-management/services/devices/yonker/yonker.sequencer.js.map +1 -1
  433. package/lib/module/modules/bt-management/utils/convert-ecg-diagnostic-flag.js +1 -1
  434. package/lib/module/modules/bt-management/utils/convert-ecg-diagnostic-flag.js.map +1 -1
  435. package/lib/module/modules/cms/cms-locale.js +8 -0
  436. package/lib/module/modules/cms/cms-locale.js.map +1 -0
  437. package/lib/module/modules/cms/hooks/use-cms-content.js +35 -15
  438. package/lib/module/modules/cms/hooks/use-cms-content.js.map +1 -1
  439. package/lib/module/modules/cms/hooks/use-cms-locale.js +1 -6
  440. package/lib/module/modules/cms/hooks/use-cms-locale.js.map +1 -1
  441. package/lib/module/modules/cms/hooks/use-cms-translations.js +10 -23
  442. package/lib/module/modules/cms/hooks/use-cms-translations.js.map +1 -1
  443. package/lib/module/modules/cms/merge-cms-translations.js.map +1 -1
  444. package/lib/module/modules/data-sync/hooks/use-health-sync-runner.js +30 -22
  445. package/lib/module/modules/data-sync/hooks/use-health-sync-runner.js.map +1 -1
  446. package/lib/module/modules/data-sync/services/base-health-sync-service.js +4 -8
  447. package/lib/module/modules/data-sync/services/base-health-sync-service.js.map +1 -1
  448. package/lib/module/modules/data-sync/services/managers/data-processor.js +3 -3
  449. package/lib/module/modules/data-sync/services/managers/data-processor.js.map +1 -1
  450. package/lib/module/modules/data-sync/services/managers/instance-manager.js +9 -5
  451. package/lib/module/modules/data-sync/services/managers/instance-manager.js.map +1 -1
  452. package/lib/module/modules/data-sync/services/managers/storage-manager.js +35 -39
  453. package/lib/module/modules/data-sync/services/managers/storage-manager.js.map +1 -1
  454. package/lib/module/modules/data-sync/services/managers/sync-state-manager.js.map +1 -1
  455. package/lib/module/modules/data-sync/types/health-sync-keys.js +1 -1
  456. package/lib/module/modules/data-sync/types/health-sync-keys.js.map +1 -1
  457. package/lib/module/modules/data-sync/utils/convert-records-to-observation.js +2 -2
  458. package/lib/module/modules/data-sync/utils/convert-records-to-observation.js.map +1 -1
  459. package/lib/module/modules/data-sync/utils/convert-samples-to-observation.js +2 -2
  460. package/lib/module/modules/data-sync/utils/convert-samples-to-observation.js.map +1 -1
  461. package/lib/module/modules/data-sync/utils/get-latest-observation-dates-by-code.js +1 -1
  462. package/lib/module/modules/data-sync/utils/get-latest-observation-dates-by-code.js.map +1 -1
  463. package/lib/module/modules/data-sync/utils/retry-save.js +4 -5
  464. package/lib/module/modules/data-sync/utils/retry-save.js.map +1 -1
  465. package/lib/module/modules/data-sync/utils/session-owner.js +13 -0
  466. package/lib/module/modules/data-sync/utils/session-owner.js.map +1 -0
  467. package/lib/module/modules/data-sync/utils/to-core-health-observations.js +1 -1
  468. package/lib/module/modules/data-sync/utils/to-core-health-observations.js.map +1 -1
  469. package/lib/module/modules/image/components/optimized-image.js +3 -3
  470. package/lib/module/modules/image/components/optimized-image.js.map +1 -1
  471. package/lib/module/modules/next/bluetooth/channel.js +85 -0
  472. package/lib/module/modules/next/bluetooth/channel.js.map +1 -0
  473. package/lib/module/modules/next/bluetooth/driver.js +45 -0
  474. package/lib/module/modules/next/bluetooth/driver.js.map +1 -0
  475. package/lib/module/modules/next/bluetooth/drivers.js +17 -0
  476. package/lib/module/modules/next/bluetooth/drivers.js.map +1 -0
  477. package/lib/module/modules/next/bluetooth/index.js +8 -0
  478. package/lib/module/modules/next/bluetooth/index.js.map +1 -0
  479. package/lib/module/modules/next/bluetooth/legacy-driver.js +51 -0
  480. package/lib/module/modules/next/bluetooth/legacy-driver.js.map +1 -0
  481. package/lib/module/modules/next/bluetooth/link.js +103 -0
  482. package/lib/module/modules/next/bluetooth/link.js.map +1 -0
  483. package/lib/module/modules/next/bluetooth/result-policy.js +61 -0
  484. package/lib/module/modules/next/bluetooth/result-policy.js.map +1 -0
  485. package/lib/module/modules/next/bluetooth/sig-profiles.js +156 -0
  486. package/lib/module/modules/next/bluetooth/sig-profiles.js.map +1 -0
  487. package/lib/module/modules/next/bluetooth/sig-values.js +38 -0
  488. package/lib/module/modules/next/bluetooth/sig-values.js.map +1 -0
  489. package/lib/module/modules/next/ovok.js +5 -1
  490. package/lib/module/modules/next/ovok.js.map +1 -1
  491. package/lib/module/modules/next/use-native-ovok.js +12 -0
  492. package/lib/module/modules/next/use-native-ovok.js.map +1 -0
  493. package/lib/module/modules/questionnaire-response-form/components/questionnaire-form-provider.js +5 -5
  494. package/lib/module/modules/questionnaire-response-form/components/questionnaire-form-provider.js.map +1 -1
  495. package/lib/module/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js +12 -17
  496. package/lib/module/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js.map +1 -1
  497. package/lib/module/modules/socket/components/socket-provider.js +9 -4
  498. package/lib/module/modules/socket/components/socket-provider.js.map +1 -1
  499. package/lib/module/modules/tile/constants/measurement-icon-svg.js +1 -1
  500. package/lib/module/modules/tile/constants/measurement-icon-svg.js.map +1 -1
  501. package/lib/module/modules/ui/components/urine-test-result.js +1 -1
  502. package/lib/module/modules/ui/components/urine-test-result.js.map +1 -1
  503. package/lib/module/modules/wearables/components/wearable-provider-icon.js +39 -0
  504. package/lib/module/modules/wearables/components/wearable-provider-icon.js.map +1 -0
  505. package/lib/module/modules/wearables/constants/wearable-providers.js +56 -0
  506. package/lib/module/modules/wearables/constants/wearable-providers.js.map +1 -0
  507. package/lib/module/modules/wearables/index.js +7 -0
  508. package/lib/module/modules/wearables/index.js.map +1 -0
  509. package/lib/module/modules/wearables/types/wearable-provider-icon-props.js +4 -0
  510. package/lib/module/modules/wearables/types/wearable-provider-icon-props.js.map +1 -0
  511. package/lib/module/modules/wearables/types/wearable-source.js +4 -0
  512. package/lib/module/modules/wearables/types/wearable-source.js.map +1 -0
  513. package/lib/typescript/commonjs/src/modules/auth/hooks/use-accept-invite-link.d.ts +3 -3
  514. package/lib/typescript/commonjs/src/modules/auth/hooks/use-accept-invite-link.d.ts.map +1 -1
  515. package/lib/typescript/commonjs/src/modules/auth/hooks/use-delete-account.d.ts.map +1 -1
  516. package/lib/typescript/commonjs/src/modules/auth/hooks/use-session.d.ts +5 -16
  517. package/lib/typescript/commonjs/src/modules/auth/hooks/use-session.d.ts.map +1 -1
  518. package/lib/typescript/commonjs/src/modules/auth/hooks/use-sign-in.d.ts +3 -2
  519. package/lib/typescript/commonjs/src/modules/auth/hooks/use-sign-in.d.ts.map +1 -1
  520. package/lib/typescript/commonjs/src/modules/auth/hooks/use-sign-out.d.ts.map +1 -1
  521. package/lib/typescript/commonjs/src/modules/auth/hooks/use-social-sign-in.d.ts +2 -2
  522. package/lib/typescript/commonjs/src/modules/auth/hooks/use-social-sign-in.d.ts.map +1 -1
  523. package/lib/typescript/commonjs/src/modules/auth/profile/components/profile-form-provider.d.ts.map +1 -1
  524. package/lib/typescript/commonjs/src/modules/auth/profile/types/profile-form-field.d.ts +1 -1
  525. package/lib/typescript/commonjs/src/modules/auth/profile/types/profile-form-field.d.ts.map +1 -1
  526. package/lib/typescript/commonjs/src/modules/auth/register/components/form/register-form-provider.d.ts.map +1 -1
  527. package/lib/typescript/commonjs/src/modules/auth/register/types/register-form-props.d.ts +5 -3
  528. package/lib/typescript/commonjs/src/modules/auth/register/types/register-form-props.d.ts.map +1 -1
  529. package/lib/typescript/commonjs/src/modules/auth/register/types/register-form-values.d.ts +2 -2
  530. package/lib/typescript/commonjs/src/modules/auth/register/types/register-form-values.d.ts.map +1 -1
  531. package/lib/typescript/commonjs/src/modules/auth/session/logout-session.d.ts +3 -5
  532. package/lib/typescript/commonjs/src/modules/auth/session/logout-session.d.ts.map +1 -1
  533. package/lib/typescript/commonjs/src/modules/auth/session/session-snapshot.d.ts +21 -0
  534. package/lib/typescript/commonjs/src/modules/auth/session/session-snapshot.d.ts.map +1 -0
  535. package/lib/typescript/commonjs/src/modules/auth/sign-in/components/form/login-form-provider.d.ts.map +1 -1
  536. package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/apple-login-button.d.ts.map +1 -1
  537. package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/google-login-button.d.ts.map +1 -1
  538. package/lib/typescript/commonjs/src/modules/auth/sign-in/hooks/use-login-form.d.ts +1 -3
  539. package/lib/typescript/commonjs/src/modules/auth/sign-in/hooks/use-login-form.d.ts.map +1 -1
  540. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/apple-login-props.d.ts +2 -2
  541. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/apple-login-props.d.ts.map +1 -1
  542. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/google-login-props.d.ts +2 -2
  543. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/google-login-props.d.ts.map +1 -1
  544. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/login-form-context-type.d.ts +2 -4
  545. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/login-form-context-type.d.ts.map +1 -1
  546. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/login-form-props.d.ts +2 -2
  547. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/login-form-props.d.ts.map +1 -1
  548. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/login-form-values.d.ts +2 -2
  549. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/login-form-values.d.ts.map +1 -1
  550. package/lib/typescript/commonjs/src/modules/auth/utils/sign-in-error.d.ts +2 -2
  551. package/lib/typescript/commonjs/src/modules/auth/utils/sign-in-error.d.ts.map +1 -1
  552. package/lib/typescript/commonjs/src/modules/background-sync/android-background-sync.d.ts +2 -2
  553. package/lib/typescript/commonjs/src/modules/background-sync/android-background-sync.d.ts.map +1 -1
  554. package/lib/typescript/commonjs/src/modules/bt-device/constants/device-model.d.ts +1 -1
  555. package/lib/typescript/commonjs/src/modules/bt-device/constants/device-model.d.ts.map +1 -1
  556. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-devices.d.ts +1 -1
  557. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-devices.d.ts.map +1 -1
  558. package/lib/typescript/commonjs/src/modules/bt-device/utils/device-query.d.ts +1 -1
  559. package/lib/typescript/commonjs/src/modules/bt-device/utils/device-query.d.ts.map +1 -1
  560. package/lib/typescript/commonjs/src/modules/bt-management/constants/built-in-measurement-types.d.ts +1 -1
  561. package/lib/typescript/commonjs/src/modules/bt-management/constants/built-in-measurement-types.d.ts.map +1 -1
  562. package/lib/typescript/commonjs/src/modules/bt-management/constants/measurement-field-catalog.d.ts +1 -1
  563. package/lib/typescript/commonjs/src/modules/bt-management/constants/measurement-field-catalog.d.ts.map +1 -1
  564. package/lib/typescript/commonjs/src/modules/bt-management/services/custom/compile-case-fields.d.ts +1 -1
  565. package/lib/typescript/commonjs/src/modules/bt-management/services/custom/compile-case-fields.d.ts.map +1 -1
  566. package/lib/typescript/commonjs/src/modules/bt-management/services/custom/compile-custom-field.d.ts +1 -1
  567. package/lib/typescript/commonjs/src/modules/bt-management/services/custom/compile-custom-field.d.ts.map +1 -1
  568. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts.map +1 -1
  569. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.files.d.ts +1 -1
  570. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.files.d.ts.map +1 -1
  571. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-data-processor.d.ts +1 -1
  572. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-data-processor.d.ts.map +1 -1
  573. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts +1 -1
  574. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
  575. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-ecg.sequencer.d.ts +1 -1
  576. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-ecg.sequencer.d.ts.map +1 -1
  577. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-pod.sequencer.d.ts +1 -1
  578. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-pod.sequencer.d.ts.map +1 -1
  579. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme.sequencer.d.ts +1 -1
  580. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme.sequencer.d.ts.map +1 -1
  581. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/f5/f5-scale.sequencer.d.ts +1 -1
  582. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/f5/f5-scale.sequencer.d.ts.map +1 -1
  583. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/frame-parser.d.ts +1 -1
  584. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/frame-parser.d.ts.map +1 -1
  585. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/measurement-state-machine.d.ts +1 -1
  586. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/measurement-state-machine.d.ts.map +1 -1
  587. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts +1 -1
  588. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts.map +1 -1
  589. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.d.ts +1 -1
  590. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.d.ts.map +1 -1
  591. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.bp-monitors.d.ts +1 -1
  592. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.bp-monitors.d.ts.map +1 -1
  593. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.duo-control-device.d.ts +1 -1
  594. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.duo-control-device.d.ts.map +1 -1
  595. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.ecg-record.d.ts +1 -1
  596. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.ecg-record.d.ts.map +1 -1
  597. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.protocol.d.ts +1 -1
  598. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.protocol.d.ts.map +1 -1
  599. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.sequencer.d.ts +1 -1
  600. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.sequencer.d.ts.map +1 -1
  601. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/bioland.bgm.sequencer.d.ts +1 -1
  602. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/bioland.bgm.sequencer.d.ts.map +1 -1
  603. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/lpm311.protocol.d.ts +1 -1
  604. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/lpm311.protocol.d.ts.map +1 -1
  605. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/oxy-s3.sequencer.d.ts +1 -1
  606. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/oxy-s3.sequencer.d.ts.map +1 -1
  607. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pc80b.sequencer.d.ts +1 -1
  608. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pc80b.sequencer.d.ts.map +1 -1
  609. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pf10aw1.sequencer.d.ts +1 -1
  610. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pf10aw1.sequencer.d.ts.map +1 -1
  611. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/poctor.m3102.sequencer.d.ts +1 -1
  612. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/poctor.m3102.sequencer.d.ts.map +1 -1
  613. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/sp20.sequencer.d.ts +1 -1
  614. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/sp20.sequencer.d.ts.map +1 -1
  615. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-aa55.sequencer.d.ts +1 -1
  616. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-aa55.sequencer.d.ts.map +1 -1
  617. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-r20.protocol.d.ts +1 -1
  618. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-r20.protocol.d.ts.map +1 -1
  619. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-r20.sequencer.d.ts +1 -1
  620. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-r20.sequencer.d.ts.map +1 -1
  621. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.bp3-files.d.ts +1 -1
  622. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.bp3-files.d.ts.map +1 -1
  623. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.bpm188.sequencer.d.ts +1 -1
  624. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.bpm188.sequencer.d.ts.map +1 -1
  625. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc100.sequencer.d.ts +1 -1
  626. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc100.sequencer.d.ts.map +1 -1
  627. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc300.sequencer.d.ts +1 -1
  628. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc300.sequencer.d.ts.map +1 -1
  629. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pm10.sequencer.d.ts +1 -1
  630. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pm10.sequencer.d.ts.map +1 -1
  631. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.wbp02.sequencer.d.ts +1 -1
  632. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.wbp02.sequencer.d.ts.map +1 -1
  633. package/lib/typescript/commonjs/src/modules/bt-management/services/series-slots.d.ts +1 -1
  634. package/lib/typescript/commonjs/src/modules/bt-management/services/series-slots.d.ts.map +1 -1
  635. package/lib/typescript/commonjs/src/modules/bt-management/types/create-device-params.d.ts +1 -1
  636. package/lib/typescript/commonjs/src/modules/bt-management/types/create-device-params.d.ts.map +1 -1
  637. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-case-spec.d.ts +1 -1
  638. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-case-spec.d.ts.map +1 -1
  639. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-device-definition.d.ts +1 -1
  640. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-device-definition.d.ts.map +1 -1
  641. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-measurement-spec.d.ts +1 -1
  642. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-measurement-spec.d.ts.map +1 -1
  643. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-measurement.d.ts +1 -1
  644. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-measurement.d.ts.map +1 -1
  645. package/lib/typescript/commonjs/src/modules/bt-management/types/dependent-result-handler-params.d.ts +1 -1
  646. package/lib/typescript/commonjs/src/modules/bt-management/types/dependent-result-handler-params.d.ts.map +1 -1
  647. package/lib/typescript/commonjs/src/modules/bt-management/types/device-data.d.ts +1 -1
  648. package/lib/typescript/commonjs/src/modules/bt-management/types/device-data.d.ts.map +1 -1
  649. package/lib/typescript/commonjs/src/modules/bt-management/types/device-measurement-map.d.ts +2 -2
  650. package/lib/typescript/commonjs/src/modules/bt-management/types/device-measurement-map.d.ts.map +1 -1
  651. package/lib/typescript/commonjs/src/modules/bt-management/types/device-status-change-callback.d.ts +1 -1
  652. package/lib/typescript/commonjs/src/modules/bt-management/types/device-status-change-callback.d.ts.map +1 -1
  653. package/lib/typescript/commonjs/src/modules/bt-management/types/measurement-group.d.ts +1 -1
  654. package/lib/typescript/commonjs/src/modules/bt-management/types/measurement-group.d.ts.map +1 -1
  655. package/lib/typescript/commonjs/src/modules/bt-management/types/measurement-series.d.ts +1 -1
  656. package/lib/typescript/commonjs/src/modules/bt-management/types/measurement-series.d.ts.map +1 -1
  657. package/lib/typescript/commonjs/src/modules/bt-management/types/measurement-with-case-type.d.ts +1 -1
  658. package/lib/typescript/commonjs/src/modules/bt-management/types/measurement-with-case-type.d.ts.map +1 -1
  659. package/lib/typescript/commonjs/src/modules/bt-management/types/parsing-case.d.ts +1 -1
  660. package/lib/typescript/commonjs/src/modules/bt-management/types/parsing-case.d.ts.map +1 -1
  661. package/lib/typescript/commonjs/src/modules/bt-management/types/result-policy.d.ts +1 -1
  662. package/lib/typescript/commonjs/src/modules/bt-management/types/result-policy.d.ts.map +1 -1
  663. package/lib/typescript/commonjs/src/modules/bt-management/utils/convert-ecg-diagnostic-flag.d.ts +1 -1
  664. package/lib/typescript/commonjs/src/modules/bt-management/utils/convert-ecg-diagnostic-flag.d.ts.map +1 -1
  665. package/lib/typescript/commonjs/src/modules/bt-management/utils/parse-measurement.d.ts +1 -1
  666. package/lib/typescript/commonjs/src/modules/bt-management/utils/parse-measurement.d.ts.map +1 -1
  667. package/lib/typescript/commonjs/src/modules/bt-management/utils/result-identity.d.ts +1 -1
  668. package/lib/typescript/commonjs/src/modules/bt-management/utils/result-identity.d.ts.map +1 -1
  669. package/lib/typescript/commonjs/src/modules/bt-management/utils/supported-measurement-type-keys.d.ts +1 -1
  670. package/lib/typescript/commonjs/src/modules/bt-management/utils/supported-measurement-type-keys.d.ts.map +1 -1
  671. package/lib/typescript/commonjs/src/modules/cms/cms-locale.d.ts +2 -0
  672. package/lib/typescript/commonjs/src/modules/cms/cms-locale.d.ts.map +1 -0
  673. package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-content.d.ts +6 -7
  674. package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-content.d.ts.map +1 -1
  675. package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-locale.d.ts +1 -6
  676. package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-locale.d.ts.map +1 -1
  677. package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-translations.d.ts +2 -9
  678. package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-translations.d.ts.map +1 -1
  679. package/lib/typescript/commonjs/src/modules/cms/merge-cms-translations.d.ts +1 -1
  680. package/lib/typescript/commonjs/src/modules/cms/merge-cms-translations.d.ts.map +1 -1
  681. package/lib/typescript/commonjs/src/modules/data-sync/hooks/use-health-sync-runner.d.ts.map +1 -1
  682. package/lib/typescript/commonjs/src/modules/data-sync/services/base-health-sync-service.d.ts +0 -1
  683. package/lib/typescript/commonjs/src/modules/data-sync/services/base-health-sync-service.d.ts.map +1 -1
  684. package/lib/typescript/commonjs/src/modules/data-sync/services/managers/data-processor.d.ts +2 -2
  685. package/lib/typescript/commonjs/src/modules/data-sync/services/managers/data-processor.d.ts.map +1 -1
  686. package/lib/typescript/commonjs/src/modules/data-sync/services/managers/instance-manager.d.ts +2 -0
  687. package/lib/typescript/commonjs/src/modules/data-sync/services/managers/instance-manager.d.ts.map +1 -1
  688. package/lib/typescript/commonjs/src/modules/data-sync/services/managers/storage-manager.d.ts +11 -26
  689. package/lib/typescript/commonjs/src/modules/data-sync/services/managers/storage-manager.d.ts.map +1 -1
  690. package/lib/typescript/commonjs/src/modules/data-sync/services/managers/sync-state-manager.d.ts +3 -3
  691. package/lib/typescript/commonjs/src/modules/data-sync/services/managers/sync-state-manager.d.ts.map +1 -1
  692. package/lib/typescript/commonjs/src/modules/data-sync/types/base-service-props.d.ts +3 -2
  693. package/lib/typescript/commonjs/src/modules/data-sync/types/base-service-props.d.ts.map +1 -1
  694. package/lib/typescript/commonjs/src/modules/data-sync/types/convert-data-props.d.ts +2 -2
  695. package/lib/typescript/commonjs/src/modules/data-sync/types/convert-data-props.d.ts.map +1 -1
  696. package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-keys.d.ts +1 -1
  697. package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-keys.d.ts.map +1 -1
  698. package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-props.d.ts +1 -2
  699. package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-props.d.ts.map +1 -1
  700. package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-samples-to-observation.d.ts.map +1 -1
  701. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-latest-observation-dates-by-code.d.ts +2 -2
  702. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-latest-observation-dates-by-code.d.ts.map +1 -1
  703. package/lib/typescript/commonjs/src/modules/data-sync/utils/retry-save.d.ts.map +1 -1
  704. package/lib/typescript/commonjs/src/modules/data-sync/utils/session-owner.d.ts +7 -0
  705. package/lib/typescript/commonjs/src/modules/data-sync/utils/session-owner.d.ts.map +1 -0
  706. package/lib/typescript/commonjs/src/modules/data-sync/utils/to-core-health-observations.d.ts +1 -1
  707. package/lib/typescript/commonjs/src/modules/data-sync/utils/to-core-health-observations.d.ts.map +1 -1
  708. package/lib/typescript/commonjs/src/modules/image/components/optimized-image.d.ts.map +1 -1
  709. package/lib/typescript/commonjs/src/modules/next/bluetooth/channel.d.ts +19 -0
  710. package/lib/typescript/commonjs/src/modules/next/bluetooth/channel.d.ts.map +1 -0
  711. package/lib/typescript/commonjs/src/modules/next/bluetooth/driver.d.ts +32 -0
  712. package/lib/typescript/commonjs/src/modules/next/bluetooth/driver.d.ts.map +1 -0
  713. package/lib/typescript/commonjs/src/modules/next/bluetooth/drivers.d.ts +7 -0
  714. package/lib/typescript/commonjs/src/modules/next/bluetooth/drivers.d.ts.map +1 -0
  715. package/lib/typescript/commonjs/src/modules/next/bluetooth/index.d.ts +9 -0
  716. package/lib/typescript/commonjs/src/modules/next/bluetooth/index.d.ts.map +1 -0
  717. package/lib/typescript/commonjs/src/modules/next/bluetooth/legacy-driver.d.ts +8 -0
  718. package/lib/typescript/commonjs/src/modules/next/bluetooth/legacy-driver.d.ts.map +1 -0
  719. package/lib/typescript/commonjs/src/modules/next/bluetooth/link.d.ts +13 -0
  720. package/lib/typescript/commonjs/src/modules/next/bluetooth/link.d.ts.map +1 -0
  721. package/lib/typescript/commonjs/src/modules/next/bluetooth/result-policy.d.ts +14 -0
  722. package/lib/typescript/commonjs/src/modules/next/bluetooth/result-policy.d.ts.map +1 -0
  723. package/lib/typescript/commonjs/src/modules/next/bluetooth/sig-profiles.d.ts +16 -0
  724. package/lib/typescript/commonjs/src/modules/next/bluetooth/sig-profiles.d.ts.map +1 -0
  725. package/lib/typescript/commonjs/src/modules/next/bluetooth/sig-values.d.ts +15 -0
  726. package/lib/typescript/commonjs/src/modules/next/bluetooth/sig-values.d.ts.map +1 -0
  727. package/lib/typescript/commonjs/src/modules/next/ovok.d.ts +4 -1
  728. package/lib/typescript/commonjs/src/modules/next/ovok.d.ts.map +1 -1
  729. package/lib/typescript/commonjs/src/modules/next/use-native-ovok.d.ts +3 -0
  730. package/lib/typescript/commonjs/src/modules/next/use-native-ovok.d.ts.map +1 -0
  731. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/questionnaire-form-provider.d.ts.map +1 -1
  732. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts +2 -2
  733. package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts.map +1 -1
  734. package/lib/typescript/commonjs/src/modules/socket/components/socket-provider.d.ts.map +1 -1
  735. package/lib/typescript/commonjs/src/modules/tile/types/task-icon-props.d.ts +1 -1
  736. package/lib/typescript/commonjs/src/modules/tile/types/task-icon-props.d.ts.map +1 -1
  737. package/lib/typescript/commonjs/src/modules/ui/components/manual-entry-form.d.ts +1 -1
  738. package/lib/typescript/commonjs/src/modules/ui/components/manual-entry-form.d.ts.map +1 -1
  739. package/lib/typescript/commonjs/src/modules/ui/components/urine-test-result.d.ts +1 -1
  740. package/lib/typescript/commonjs/src/modules/ui/components/urine-test-result.d.ts.map +1 -1
  741. package/lib/typescript/commonjs/src/modules/wearables/components/wearable-provider-icon.d.ts +3 -0
  742. package/lib/typescript/commonjs/src/modules/wearables/components/wearable-provider-icon.d.ts.map +1 -0
  743. package/lib/typescript/commonjs/src/modules/wearables/constants/wearable-providers.d.ts +8 -0
  744. package/lib/typescript/commonjs/src/modules/wearables/constants/wearable-providers.d.ts.map +1 -0
  745. package/lib/typescript/commonjs/src/modules/wearables/index.d.ts +5 -0
  746. package/lib/typescript/commonjs/src/modules/wearables/index.d.ts.map +1 -0
  747. package/lib/typescript/commonjs/src/modules/wearables/types/wearable-provider-icon-props.d.ts +6 -0
  748. package/lib/typescript/commonjs/src/modules/wearables/types/wearable-provider-icon-props.d.ts.map +1 -0
  749. package/lib/typescript/commonjs/src/modules/wearables/types/wearable-source.d.ts +4 -0
  750. package/lib/typescript/commonjs/src/modules/wearables/types/wearable-source.d.ts.map +1 -0
  751. package/lib/typescript/module/src/modules/auth/hooks/use-accept-invite-link.d.ts +3 -3
  752. package/lib/typescript/module/src/modules/auth/hooks/use-accept-invite-link.d.ts.map +1 -1
  753. package/lib/typescript/module/src/modules/auth/hooks/use-delete-account.d.ts.map +1 -1
  754. package/lib/typescript/module/src/modules/auth/hooks/use-session.d.ts +5 -16
  755. package/lib/typescript/module/src/modules/auth/hooks/use-session.d.ts.map +1 -1
  756. package/lib/typescript/module/src/modules/auth/hooks/use-sign-in.d.ts +3 -2
  757. package/lib/typescript/module/src/modules/auth/hooks/use-sign-in.d.ts.map +1 -1
  758. package/lib/typescript/module/src/modules/auth/hooks/use-sign-out.d.ts.map +1 -1
  759. package/lib/typescript/module/src/modules/auth/hooks/use-social-sign-in.d.ts +2 -2
  760. package/lib/typescript/module/src/modules/auth/hooks/use-social-sign-in.d.ts.map +1 -1
  761. package/lib/typescript/module/src/modules/auth/profile/components/profile-form-provider.d.ts.map +1 -1
  762. package/lib/typescript/module/src/modules/auth/profile/types/profile-form-field.d.ts +1 -1
  763. package/lib/typescript/module/src/modules/auth/profile/types/profile-form-field.d.ts.map +1 -1
  764. package/lib/typescript/module/src/modules/auth/register/components/form/register-form-provider.d.ts.map +1 -1
  765. package/lib/typescript/module/src/modules/auth/register/types/register-form-props.d.ts +5 -3
  766. package/lib/typescript/module/src/modules/auth/register/types/register-form-props.d.ts.map +1 -1
  767. package/lib/typescript/module/src/modules/auth/register/types/register-form-values.d.ts +2 -2
  768. package/lib/typescript/module/src/modules/auth/register/types/register-form-values.d.ts.map +1 -1
  769. package/lib/typescript/module/src/modules/auth/session/logout-session.d.ts +3 -5
  770. package/lib/typescript/module/src/modules/auth/session/logout-session.d.ts.map +1 -1
  771. package/lib/typescript/module/src/modules/auth/session/session-snapshot.d.ts +21 -0
  772. package/lib/typescript/module/src/modules/auth/session/session-snapshot.d.ts.map +1 -0
  773. package/lib/typescript/module/src/modules/auth/sign-in/components/form/login-form-provider.d.ts.map +1 -1
  774. package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/apple-login-button.d.ts.map +1 -1
  775. package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/google-login-button.d.ts.map +1 -1
  776. package/lib/typescript/module/src/modules/auth/sign-in/hooks/use-login-form.d.ts +1 -3
  777. package/lib/typescript/module/src/modules/auth/sign-in/hooks/use-login-form.d.ts.map +1 -1
  778. package/lib/typescript/module/src/modules/auth/sign-in/types/apple-login-props.d.ts +2 -2
  779. package/lib/typescript/module/src/modules/auth/sign-in/types/apple-login-props.d.ts.map +1 -1
  780. package/lib/typescript/module/src/modules/auth/sign-in/types/google-login-props.d.ts +2 -2
  781. package/lib/typescript/module/src/modules/auth/sign-in/types/google-login-props.d.ts.map +1 -1
  782. package/lib/typescript/module/src/modules/auth/sign-in/types/login-form-context-type.d.ts +2 -4
  783. package/lib/typescript/module/src/modules/auth/sign-in/types/login-form-context-type.d.ts.map +1 -1
  784. package/lib/typescript/module/src/modules/auth/sign-in/types/login-form-props.d.ts +2 -2
  785. package/lib/typescript/module/src/modules/auth/sign-in/types/login-form-props.d.ts.map +1 -1
  786. package/lib/typescript/module/src/modules/auth/sign-in/types/login-form-values.d.ts +2 -2
  787. package/lib/typescript/module/src/modules/auth/sign-in/types/login-form-values.d.ts.map +1 -1
  788. package/lib/typescript/module/src/modules/auth/utils/sign-in-error.d.ts +2 -2
  789. package/lib/typescript/module/src/modules/auth/utils/sign-in-error.d.ts.map +1 -1
  790. package/lib/typescript/module/src/modules/background-sync/android-background-sync.d.ts +2 -2
  791. package/lib/typescript/module/src/modules/background-sync/android-background-sync.d.ts.map +1 -1
  792. package/lib/typescript/module/src/modules/bt-device/constants/device-model.d.ts +1 -1
  793. package/lib/typescript/module/src/modules/bt-device/constants/device-model.d.ts.map +1 -1
  794. package/lib/typescript/module/src/modules/bt-device/constants/supported-devices.d.ts +1 -1
  795. package/lib/typescript/module/src/modules/bt-device/constants/supported-devices.d.ts.map +1 -1
  796. package/lib/typescript/module/src/modules/bt-device/utils/device-query.d.ts +1 -1
  797. package/lib/typescript/module/src/modules/bt-device/utils/device-query.d.ts.map +1 -1
  798. package/lib/typescript/module/src/modules/bt-management/constants/built-in-measurement-types.d.ts +1 -1
  799. package/lib/typescript/module/src/modules/bt-management/constants/built-in-measurement-types.d.ts.map +1 -1
  800. package/lib/typescript/module/src/modules/bt-management/constants/measurement-field-catalog.d.ts +1 -1
  801. package/lib/typescript/module/src/modules/bt-management/constants/measurement-field-catalog.d.ts.map +1 -1
  802. package/lib/typescript/module/src/modules/bt-management/services/custom/compile-case-fields.d.ts +1 -1
  803. package/lib/typescript/module/src/modules/bt-management/services/custom/compile-case-fields.d.ts.map +1 -1
  804. package/lib/typescript/module/src/modules/bt-management/services/custom/compile-custom-field.d.ts +1 -1
  805. package/lib/typescript/module/src/modules/bt-management/services/custom/compile-custom-field.d.ts.map +1 -1
  806. package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts.map +1 -1
  807. package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.files.d.ts +1 -1
  808. package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.files.d.ts.map +1 -1
  809. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-data-processor.d.ts +1 -1
  810. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-data-processor.d.ts.map +1 -1
  811. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts +1 -1
  812. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
  813. package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-ecg.sequencer.d.ts +1 -1
  814. package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-ecg.sequencer.d.ts.map +1 -1
  815. package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-pod.sequencer.d.ts +1 -1
  816. package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-pod.sequencer.d.ts.map +1 -1
  817. package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme.sequencer.d.ts +1 -1
  818. package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme.sequencer.d.ts.map +1 -1
  819. package/lib/typescript/module/src/modules/bt-management/services/devices/f5/f5-scale.sequencer.d.ts +1 -1
  820. package/lib/typescript/module/src/modules/bt-management/services/devices/f5/f5-scale.sequencer.d.ts.map +1 -1
  821. package/lib/typescript/module/src/modules/bt-management/services/devices/frame-parser.d.ts +1 -1
  822. package/lib/typescript/module/src/modules/bt-management/services/devices/frame-parser.d.ts.map +1 -1
  823. package/lib/typescript/module/src/modules/bt-management/services/devices/measurement-state-machine.d.ts +1 -1
  824. package/lib/typescript/module/src/modules/bt-management/services/devices/measurement-state-machine.d.ts.map +1 -1
  825. package/lib/typescript/module/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts +1 -1
  826. package/lib/typescript/module/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts.map +1 -1
  827. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.d.ts +1 -1
  828. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.d.ts.map +1 -1
  829. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.bp-monitors.d.ts +1 -1
  830. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.bp-monitors.d.ts.map +1 -1
  831. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.duo-control-device.d.ts +1 -1
  832. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.duo-control-device.d.ts.map +1 -1
  833. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.ecg-record.d.ts +1 -1
  834. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.ecg-record.d.ts.map +1 -1
  835. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.protocol.d.ts +1 -1
  836. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.protocol.d.ts.map +1 -1
  837. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.sequencer.d.ts +1 -1
  838. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.sequencer.d.ts.map +1 -1
  839. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/bioland.bgm.sequencer.d.ts +1 -1
  840. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/bioland.bgm.sequencer.d.ts.map +1 -1
  841. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/lpm311.protocol.d.ts +1 -1
  842. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/lpm311.protocol.d.ts.map +1 -1
  843. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/oxy-s3.sequencer.d.ts +1 -1
  844. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/oxy-s3.sequencer.d.ts.map +1 -1
  845. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pc80b.sequencer.d.ts +1 -1
  846. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pc80b.sequencer.d.ts.map +1 -1
  847. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pf10aw1.sequencer.d.ts +1 -1
  848. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pf10aw1.sequencer.d.ts.map +1 -1
  849. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/poctor.m3102.sequencer.d.ts +1 -1
  850. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/poctor.m3102.sequencer.d.ts.map +1 -1
  851. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/sp20.sequencer.d.ts +1 -1
  852. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/sp20.sequencer.d.ts.map +1 -1
  853. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-aa55.sequencer.d.ts +1 -1
  854. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-aa55.sequencer.d.ts.map +1 -1
  855. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-r20.protocol.d.ts +1 -1
  856. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-r20.protocol.d.ts.map +1 -1
  857. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-r20.sequencer.d.ts +1 -1
  858. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-r20.sequencer.d.ts.map +1 -1
  859. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.bp3-files.d.ts +1 -1
  860. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.bp3-files.d.ts.map +1 -1
  861. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.bpm188.sequencer.d.ts +1 -1
  862. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.bpm188.sequencer.d.ts.map +1 -1
  863. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc100.sequencer.d.ts +1 -1
  864. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc100.sequencer.d.ts.map +1 -1
  865. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc300.sequencer.d.ts +1 -1
  866. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc300.sequencer.d.ts.map +1 -1
  867. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pm10.sequencer.d.ts +1 -1
  868. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pm10.sequencer.d.ts.map +1 -1
  869. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.wbp02.sequencer.d.ts +1 -1
  870. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.wbp02.sequencer.d.ts.map +1 -1
  871. package/lib/typescript/module/src/modules/bt-management/services/series-slots.d.ts +1 -1
  872. package/lib/typescript/module/src/modules/bt-management/services/series-slots.d.ts.map +1 -1
  873. package/lib/typescript/module/src/modules/bt-management/types/create-device-params.d.ts +1 -1
  874. package/lib/typescript/module/src/modules/bt-management/types/create-device-params.d.ts.map +1 -1
  875. package/lib/typescript/module/src/modules/bt-management/types/custom-case-spec.d.ts +1 -1
  876. package/lib/typescript/module/src/modules/bt-management/types/custom-case-spec.d.ts.map +1 -1
  877. package/lib/typescript/module/src/modules/bt-management/types/custom-device-definition.d.ts +1 -1
  878. package/lib/typescript/module/src/modules/bt-management/types/custom-device-definition.d.ts.map +1 -1
  879. package/lib/typescript/module/src/modules/bt-management/types/custom-measurement-spec.d.ts +1 -1
  880. package/lib/typescript/module/src/modules/bt-management/types/custom-measurement-spec.d.ts.map +1 -1
  881. package/lib/typescript/module/src/modules/bt-management/types/custom-measurement.d.ts +1 -1
  882. package/lib/typescript/module/src/modules/bt-management/types/custom-measurement.d.ts.map +1 -1
  883. package/lib/typescript/module/src/modules/bt-management/types/dependent-result-handler-params.d.ts +1 -1
  884. package/lib/typescript/module/src/modules/bt-management/types/dependent-result-handler-params.d.ts.map +1 -1
  885. package/lib/typescript/module/src/modules/bt-management/types/device-data.d.ts +1 -1
  886. package/lib/typescript/module/src/modules/bt-management/types/device-data.d.ts.map +1 -1
  887. package/lib/typescript/module/src/modules/bt-management/types/device-measurement-map.d.ts +2 -2
  888. package/lib/typescript/module/src/modules/bt-management/types/device-measurement-map.d.ts.map +1 -1
  889. package/lib/typescript/module/src/modules/bt-management/types/device-status-change-callback.d.ts +1 -1
  890. package/lib/typescript/module/src/modules/bt-management/types/device-status-change-callback.d.ts.map +1 -1
  891. package/lib/typescript/module/src/modules/bt-management/types/measurement-group.d.ts +1 -1
  892. package/lib/typescript/module/src/modules/bt-management/types/measurement-group.d.ts.map +1 -1
  893. package/lib/typescript/module/src/modules/bt-management/types/measurement-series.d.ts +1 -1
  894. package/lib/typescript/module/src/modules/bt-management/types/measurement-series.d.ts.map +1 -1
  895. package/lib/typescript/module/src/modules/bt-management/types/measurement-with-case-type.d.ts +1 -1
  896. package/lib/typescript/module/src/modules/bt-management/types/measurement-with-case-type.d.ts.map +1 -1
  897. package/lib/typescript/module/src/modules/bt-management/types/parsing-case.d.ts +1 -1
  898. package/lib/typescript/module/src/modules/bt-management/types/parsing-case.d.ts.map +1 -1
  899. package/lib/typescript/module/src/modules/bt-management/types/result-policy.d.ts +1 -1
  900. package/lib/typescript/module/src/modules/bt-management/types/result-policy.d.ts.map +1 -1
  901. package/lib/typescript/module/src/modules/bt-management/utils/convert-ecg-diagnostic-flag.d.ts +1 -1
  902. package/lib/typescript/module/src/modules/bt-management/utils/convert-ecg-diagnostic-flag.d.ts.map +1 -1
  903. package/lib/typescript/module/src/modules/bt-management/utils/parse-measurement.d.ts +1 -1
  904. package/lib/typescript/module/src/modules/bt-management/utils/parse-measurement.d.ts.map +1 -1
  905. package/lib/typescript/module/src/modules/bt-management/utils/result-identity.d.ts +1 -1
  906. package/lib/typescript/module/src/modules/bt-management/utils/result-identity.d.ts.map +1 -1
  907. package/lib/typescript/module/src/modules/bt-management/utils/supported-measurement-type-keys.d.ts +1 -1
  908. package/lib/typescript/module/src/modules/bt-management/utils/supported-measurement-type-keys.d.ts.map +1 -1
  909. package/lib/typescript/module/src/modules/cms/cms-locale.d.ts +2 -0
  910. package/lib/typescript/module/src/modules/cms/cms-locale.d.ts.map +1 -0
  911. package/lib/typescript/module/src/modules/cms/hooks/use-cms-content.d.ts +6 -7
  912. package/lib/typescript/module/src/modules/cms/hooks/use-cms-content.d.ts.map +1 -1
  913. package/lib/typescript/module/src/modules/cms/hooks/use-cms-locale.d.ts +1 -6
  914. package/lib/typescript/module/src/modules/cms/hooks/use-cms-locale.d.ts.map +1 -1
  915. package/lib/typescript/module/src/modules/cms/hooks/use-cms-translations.d.ts +2 -9
  916. package/lib/typescript/module/src/modules/cms/hooks/use-cms-translations.d.ts.map +1 -1
  917. package/lib/typescript/module/src/modules/cms/merge-cms-translations.d.ts +1 -1
  918. package/lib/typescript/module/src/modules/cms/merge-cms-translations.d.ts.map +1 -1
  919. package/lib/typescript/module/src/modules/data-sync/hooks/use-health-sync-runner.d.ts.map +1 -1
  920. package/lib/typescript/module/src/modules/data-sync/services/base-health-sync-service.d.ts +0 -1
  921. package/lib/typescript/module/src/modules/data-sync/services/base-health-sync-service.d.ts.map +1 -1
  922. package/lib/typescript/module/src/modules/data-sync/services/managers/data-processor.d.ts +2 -2
  923. package/lib/typescript/module/src/modules/data-sync/services/managers/data-processor.d.ts.map +1 -1
  924. package/lib/typescript/module/src/modules/data-sync/services/managers/instance-manager.d.ts +2 -0
  925. package/lib/typescript/module/src/modules/data-sync/services/managers/instance-manager.d.ts.map +1 -1
  926. package/lib/typescript/module/src/modules/data-sync/services/managers/storage-manager.d.ts +11 -26
  927. package/lib/typescript/module/src/modules/data-sync/services/managers/storage-manager.d.ts.map +1 -1
  928. package/lib/typescript/module/src/modules/data-sync/services/managers/sync-state-manager.d.ts +3 -3
  929. package/lib/typescript/module/src/modules/data-sync/services/managers/sync-state-manager.d.ts.map +1 -1
  930. package/lib/typescript/module/src/modules/data-sync/types/base-service-props.d.ts +3 -2
  931. package/lib/typescript/module/src/modules/data-sync/types/base-service-props.d.ts.map +1 -1
  932. package/lib/typescript/module/src/modules/data-sync/types/convert-data-props.d.ts +2 -2
  933. package/lib/typescript/module/src/modules/data-sync/types/convert-data-props.d.ts.map +1 -1
  934. package/lib/typescript/module/src/modules/data-sync/types/health-sync-keys.d.ts +1 -1
  935. package/lib/typescript/module/src/modules/data-sync/types/health-sync-keys.d.ts.map +1 -1
  936. package/lib/typescript/module/src/modules/data-sync/types/health-sync-props.d.ts +1 -2
  937. package/lib/typescript/module/src/modules/data-sync/types/health-sync-props.d.ts.map +1 -1
  938. package/lib/typescript/module/src/modules/data-sync/utils/convert-samples-to-observation.d.ts.map +1 -1
  939. package/lib/typescript/module/src/modules/data-sync/utils/get-latest-observation-dates-by-code.d.ts +2 -2
  940. package/lib/typescript/module/src/modules/data-sync/utils/get-latest-observation-dates-by-code.d.ts.map +1 -1
  941. package/lib/typescript/module/src/modules/data-sync/utils/retry-save.d.ts.map +1 -1
  942. package/lib/typescript/module/src/modules/data-sync/utils/session-owner.d.ts +7 -0
  943. package/lib/typescript/module/src/modules/data-sync/utils/session-owner.d.ts.map +1 -0
  944. package/lib/typescript/module/src/modules/data-sync/utils/to-core-health-observations.d.ts +1 -1
  945. package/lib/typescript/module/src/modules/data-sync/utils/to-core-health-observations.d.ts.map +1 -1
  946. package/lib/typescript/module/src/modules/image/components/optimized-image.d.ts.map +1 -1
  947. package/lib/typescript/module/src/modules/next/bluetooth/channel.d.ts +19 -0
  948. package/lib/typescript/module/src/modules/next/bluetooth/channel.d.ts.map +1 -0
  949. package/lib/typescript/module/src/modules/next/bluetooth/driver.d.ts +32 -0
  950. package/lib/typescript/module/src/modules/next/bluetooth/driver.d.ts.map +1 -0
  951. package/lib/typescript/module/src/modules/next/bluetooth/drivers.d.ts +7 -0
  952. package/lib/typescript/module/src/modules/next/bluetooth/drivers.d.ts.map +1 -0
  953. package/lib/typescript/module/src/modules/next/bluetooth/index.d.ts +9 -0
  954. package/lib/typescript/module/src/modules/next/bluetooth/index.d.ts.map +1 -0
  955. package/lib/typescript/module/src/modules/next/bluetooth/legacy-driver.d.ts +8 -0
  956. package/lib/typescript/module/src/modules/next/bluetooth/legacy-driver.d.ts.map +1 -0
  957. package/lib/typescript/module/src/modules/next/bluetooth/link.d.ts +13 -0
  958. package/lib/typescript/module/src/modules/next/bluetooth/link.d.ts.map +1 -0
  959. package/lib/typescript/module/src/modules/next/bluetooth/result-policy.d.ts +14 -0
  960. package/lib/typescript/module/src/modules/next/bluetooth/result-policy.d.ts.map +1 -0
  961. package/lib/typescript/module/src/modules/next/bluetooth/sig-profiles.d.ts +16 -0
  962. package/lib/typescript/module/src/modules/next/bluetooth/sig-profiles.d.ts.map +1 -0
  963. package/lib/typescript/module/src/modules/next/bluetooth/sig-values.d.ts +15 -0
  964. package/lib/typescript/module/src/modules/next/bluetooth/sig-values.d.ts.map +1 -0
  965. package/lib/typescript/module/src/modules/next/ovok.d.ts +4 -1
  966. package/lib/typescript/module/src/modules/next/ovok.d.ts.map +1 -1
  967. package/lib/typescript/module/src/modules/next/use-native-ovok.d.ts +3 -0
  968. package/lib/typescript/module/src/modules/next/use-native-ovok.d.ts.map +1 -0
  969. package/lib/typescript/module/src/modules/questionnaire-response-form/components/questionnaire-form-provider.d.ts.map +1 -1
  970. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts +2 -2
  971. package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts.map +1 -1
  972. package/lib/typescript/module/src/modules/socket/components/socket-provider.d.ts.map +1 -1
  973. package/lib/typescript/module/src/modules/tile/types/task-icon-props.d.ts +1 -1
  974. package/lib/typescript/module/src/modules/tile/types/task-icon-props.d.ts.map +1 -1
  975. package/lib/typescript/module/src/modules/ui/components/manual-entry-form.d.ts +1 -1
  976. package/lib/typescript/module/src/modules/ui/components/manual-entry-form.d.ts.map +1 -1
  977. package/lib/typescript/module/src/modules/ui/components/urine-test-result.d.ts +1 -1
  978. package/lib/typescript/module/src/modules/ui/components/urine-test-result.d.ts.map +1 -1
  979. package/lib/typescript/module/src/modules/wearables/components/wearable-provider-icon.d.ts +3 -0
  980. package/lib/typescript/module/src/modules/wearables/components/wearable-provider-icon.d.ts.map +1 -0
  981. package/lib/typescript/module/src/modules/wearables/constants/wearable-providers.d.ts +8 -0
  982. package/lib/typescript/module/src/modules/wearables/constants/wearable-providers.d.ts.map +1 -0
  983. package/lib/typescript/module/src/modules/wearables/index.d.ts +5 -0
  984. package/lib/typescript/module/src/modules/wearables/index.d.ts.map +1 -0
  985. package/lib/typescript/module/src/modules/wearables/types/wearable-provider-icon-props.d.ts +6 -0
  986. package/lib/typescript/module/src/modules/wearables/types/wearable-provider-icon-props.d.ts.map +1 -0
  987. package/lib/typescript/module/src/modules/wearables/types/wearable-source.d.ts +4 -0
  988. package/lib/typescript/module/src/modules/wearables/types/wearable-source.d.ts.map +1 -0
  989. package/package.json +3 -3
  990. package/lib/commonjs/modules/auth/session/save-login.js +0 -19
  991. package/lib/commonjs/modules/auth/session/save-login.js.map +0 -1
  992. package/lib/commonjs/modules/auth/session/session-store-refresh.js +0 -142
  993. package/lib/commonjs/modules/auth/session/session-store-refresh.js.map +0 -1
  994. package/lib/commonjs/modules/auth/session/session-store-request-state.js +0 -73
  995. package/lib/commonjs/modules/auth/session/session-store-request-state.js.map +0 -1
  996. package/lib/commonjs/modules/auth/session/session-store-types.js +0 -39
  997. package/lib/commonjs/modules/auth/session/session-store-types.js.map +0 -1
  998. package/lib/commonjs/modules/auth/session/session-store.js +0 -144
  999. package/lib/commonjs/modules/auth/session/session-store.js.map +0 -1
  1000. package/lib/module/modules/auth/session/save-login.js +0 -15
  1001. package/lib/module/modules/auth/session/save-login.js.map +0 -1
  1002. package/lib/module/modules/auth/session/session-store-refresh.js +0 -138
  1003. package/lib/module/modules/auth/session/session-store-refresh.js.map +0 -1
  1004. package/lib/module/modules/auth/session/session-store-request-state.js +0 -69
  1005. package/lib/module/modules/auth/session/session-store-request-state.js.map +0 -1
  1006. package/lib/module/modules/auth/session/session-store-types.js +0 -33
  1007. package/lib/module/modules/auth/session/session-store-types.js.map +0 -1
  1008. package/lib/module/modules/auth/session/session-store.js +0 -140
  1009. package/lib/module/modules/auth/session/session-store.js.map +0 -1
  1010. package/lib/typescript/commonjs/src/modules/auth/session/save-login.d.ts +0 -4
  1011. package/lib/typescript/commonjs/src/modules/auth/session/save-login.d.ts.map +0 -1
  1012. package/lib/typescript/commonjs/src/modules/auth/session/session-store-refresh.d.ts +0 -8
  1013. package/lib/typescript/commonjs/src/modules/auth/session/session-store-refresh.d.ts.map +0 -1
  1014. package/lib/typescript/commonjs/src/modules/auth/session/session-store-request-state.d.ts +0 -23
  1015. package/lib/typescript/commonjs/src/modules/auth/session/session-store-request-state.d.ts.map +0 -1
  1016. package/lib/typescript/commonjs/src/modules/auth/session/session-store-types.d.ts +0 -40
  1017. package/lib/typescript/commonjs/src/modules/auth/session/session-store-types.d.ts.map +0 -1
  1018. package/lib/typescript/commonjs/src/modules/auth/session/session-store.d.ts +0 -4
  1019. package/lib/typescript/commonjs/src/modules/auth/session/session-store.d.ts.map +0 -1
  1020. package/lib/typescript/module/src/modules/auth/session/save-login.d.ts +0 -4
  1021. package/lib/typescript/module/src/modules/auth/session/save-login.d.ts.map +0 -1
  1022. package/lib/typescript/module/src/modules/auth/session/session-store-refresh.d.ts +0 -8
  1023. package/lib/typescript/module/src/modules/auth/session/session-store-refresh.d.ts.map +0 -1
  1024. package/lib/typescript/module/src/modules/auth/session/session-store-request-state.d.ts +0 -23
  1025. package/lib/typescript/module/src/modules/auth/session/session-store-request-state.d.ts.map +0 -1
  1026. package/lib/typescript/module/src/modules/auth/session/session-store-types.d.ts +0 -40
  1027. package/lib/typescript/module/src/modules/auth/session/session-store-types.d.ts.map +0 -1
  1028. package/lib/typescript/module/src/modules/auth/session/session-store.d.ts +0 -4
  1029. package/lib/typescript/module/src/modules/auth/session/session-store.d.ts.map +0 -1
@@ -1,142 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.createSessionRefreshActions = void 0;
7
- var _sessionErrors = require("./session-errors.js");
8
- var _sessionStoreTypes = require("./session-store-types.js");
9
- const createSessionRefreshActions = (client, requestState, getStore, notify) => {
10
- const refresh = async includeSessions => {
11
- const store = getStore();
12
- requestState.syncActiveAccount();
13
- const activeAccountId = requestState.getActiveAccountId();
14
- if (!client.getActiveLogin()) {
15
- requestState.nextRevision();
16
- store.snapshot = (0, _sessionStoreTypes.createSignedOutSnapshot)(requestState.getAccounts(), {
17
- activeAccountId,
18
- reason: store.snapshot.reason,
19
- switching: store.snapshot.switching
20
- });
21
- notify();
22
- return;
23
- }
24
- if (store.snapshot.activeAccountId !== activeAccountId) {
25
- store.snapshot = {
26
- ...store.snapshot,
27
- activeAccountId,
28
- profile: undefined,
29
- profileAccountId: undefined,
30
- sessions: [],
31
- error: undefined
32
- };
33
- notify();
34
- }
35
- const revision = requestState.nextRevision();
36
- const previousSnapshot = store.snapshot;
37
- if (!store.snapshot.switching && store.snapshot.status !== "authenticated" && store.snapshot.status !== "offline") {
38
- store.snapshot = {
39
- ...store.snapshot,
40
- status: "loading",
41
- error: undefined
42
- };
43
- notify();
44
- }
45
- const currentProfileRequest = requestState.getProfileRequest();
46
- const currentSessionsRequest = includeSessions ? requestState.getSessionsRequest() : undefined;
47
- const [profileResult, sessionsResult] = await Promise.all([currentProfileRequest.then(profile => ({
48
- profile
49
- }), error => ({
50
- error
51
- })), (currentSessionsRequest ?? Promise.resolve(previousSnapshot.sessions)).then(sessions => ({
52
- sessions
53
- }), error => ({
54
- error
55
- }))]);
56
- if (!requestState.isCurrent(revision)) {
57
- return;
58
- }
59
- const profile = "profile" in profileResult ? (0, _sessionStoreTypes.profileMatchesAccount)(profileResult.profile, activeAccountId) ? profileResult.profile : undefined : previousSnapshot.profileAccountId === activeAccountId && (0, _sessionStoreTypes.profileMatchesAccount)(previousSnapshot.profile, activeAccountId) ? previousSnapshot.profile : undefined;
60
- const profileAccountId = profile ? "profile" in profileResult ? activeAccountId : previousSnapshot.profileAccountId : undefined;
61
- const sessions = "sessions" in sessionsResult ? sessionsResult.sessions : previousSnapshot.sessions;
62
- const error = "error" in profileResult ? profileResult.error : "error" in sessionsResult ? sessionsResult.error : undefined;
63
- const accounts = requestState.getAccounts();
64
- const nextSnapshot = !client.getActiveLogin() || (0, _sessionErrors.getHttpStatus)(error) === 401 ? (0, _sessionStoreTypes.createSignedOutSnapshot)(accounts, {
65
- activeAccountId,
66
- error: error === undefined ? undefined : (0, _sessionErrors.toError)(error)
67
- }) : "error" in profileResult ? {
68
- status: "offline",
69
- activeAccountId,
70
- accounts,
71
- profile,
72
- profileAccountId,
73
- sessions: sessions.map(_sessionStoreTypes.normalizeSession),
74
- error: (0, _sessionErrors.toError)(profileResult.error)
75
- } : {
76
- status: "authenticated",
77
- activeAccountId,
78
- accounts,
79
- profile,
80
- profileAccountId,
81
- sessions: sessions.map(_sessionStoreTypes.normalizeSession),
82
- error: "error" in sessionsResult ? (0, _sessionErrors.toError)(sessionsResult.error) : undefined
83
- };
84
- store.snapshot = {
85
- ...nextSnapshot,
86
- switching: previousSnapshot.switching
87
- };
88
- notify();
89
- };
90
- const refreshSessions = async () => {
91
- const store = getStore();
92
- requestState.syncActiveAccount();
93
- if (!client.getActiveLogin()) {
94
- store.snapshot = {
95
- ...store.snapshot,
96
- activeAccountId: requestState.getActiveAccountId(),
97
- accounts: requestState.getAccounts(),
98
- sessions: []
99
- };
100
- notify();
101
- return;
102
- }
103
- const revision = requestState.revision;
104
- try {
105
- const sessions = await requestState.getSessionsRequest();
106
- if (!requestState.isCurrent(revision)) {
107
- return;
108
- }
109
- store.snapshot = {
110
- ...store.snapshot,
111
- accounts: requestState.getAccounts(),
112
- sessions: sessions.map(_sessionStoreTypes.normalizeSession),
113
- error: undefined
114
- };
115
- notify();
116
- } catch (cause) {
117
- if (!requestState.isCurrent(revision)) {
118
- return;
119
- }
120
- const error = (0, _sessionErrors.toError)(cause);
121
- if (!client.getActiveLogin() || (0, _sessionErrors.getHttpStatus)(cause) === 401) {
122
- store.snapshot = (0, _sessionStoreTypes.createSignedOutSnapshot)(requestState.getAccounts(), {
123
- activeAccountId: requestState.getActiveAccountId(),
124
- error
125
- });
126
- } else {
127
- store.snapshot = {
128
- ...store.snapshot,
129
- error
130
- };
131
- }
132
- notify();
133
- throw error;
134
- }
135
- };
136
- return {
137
- refresh,
138
- refreshSessions
139
- };
140
- };
141
- exports.createSessionRefreshActions = createSessionRefreshActions;
142
- //# sourceMappingURL=session-store-refresh.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_sessionErrors","require","_sessionStoreTypes","createSessionRefreshActions","client","requestState","getStore","notify","refresh","includeSessions","store","syncActiveAccount","activeAccountId","getActiveAccountId","getActiveLogin","nextRevision","snapshot","createSignedOutSnapshot","getAccounts","reason","switching","profile","undefined","profileAccountId","sessions","error","revision","previousSnapshot","status","currentProfileRequest","getProfileRequest","currentSessionsRequest","getSessionsRequest","profileResult","sessionsResult","Promise","all","then","resolve","isCurrent","profileMatchesAccount","accounts","nextSnapshot","getHttpStatus","toError","map","normalizeSession","refreshSessions","cause","exports"],"sourceRoot":"../../../../../src","sources":["modules/auth/session/session-store-refresh.ts"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAEA,IAAAC,kBAAA,GAAAD,OAAA;AASA,MAAME,2BAA2B,GAAGA,CAClCC,MAAc,EACdC,YAAsC,EACtCC,QAA4B,EAC5BC,MAAkB,KACf;EACH,MAAMC,OAAO,GAAG,MAAOC,eAAwB,IAAK;IAClD,MAAMC,KAAK,GAAGJ,QAAQ,CAAC,CAAC;IAExBD,YAAY,CAACM,iBAAiB,CAAC,CAAC;IAChC,MAAMC,eAAe,GAAGP,YAAY,CAACQ,kBAAkB,CAAC,CAAC;IAEzD,IAAI,CAACT,MAAM,CAACU,cAAc,CAAC,CAAC,EAAE;MAC5BT,YAAY,CAACU,YAAY,CAAC,CAAC;MAC3BL,KAAK,CAACM,QAAQ,GAAG,IAAAC,0CAAuB,EAACZ,YAAY,CAACa,WAAW,CAAC,CAAC,EAAE;QACnEN,eAAe;QACfO,MAAM,EAAET,KAAK,CAACM,QAAQ,CAACG,MAAM;QAC7BC,SAAS,EAAEV,KAAK,CAACM,QAAQ,CAACI;MAC5B,CAAC,CAAC;MACFb,MAAM,CAAC,CAAC;MAER;IACF;IAEA,IAAIG,KAAK,CAACM,QAAQ,CAACJ,eAAe,KAAKA,eAAe,EAAE;MACtDF,KAAK,CAACM,QAAQ,GAAG;QACf,GAAGN,KAAK,CAACM,QAAQ;QACjBJ,eAAe;QACfS,OAAO,EAAEC,SAAS;QAClBC,gBAAgB,EAAED,SAAS;QAC3BE,QAAQ,EAAE,EAAE;QACZC,KAAK,EAAEH;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Q,CAAC,EAAE;QACrC;MACF;MAEA,MAAMD,KAAK,GAAG,IAAAmB,sBAAO,EAACI,KAAK,CAAC;MAE5B,IAAI,CAAC5C,MAAM,CAACU,cAAc,CAAC,CAAC,IAAI,IAAA6B,4BAAa,EAACK,KAAK,CAAC,KAAK,GAAG,EAAE;QAC5DtC,KAAK,CAACM,QAAQ,GAAG,IAAAC,0CAAuB,EAACZ,YAAY,CAACa,WAAW,CAAC,CAAC,EAAE;UACnEN,eAAe,EAAEP,YAAY,CAACQ,kBAAkB,CAAC,CAAC;UAClDY;QACF,CAAC,CAAC;MACJ,CAAC,MAAM;QACLf,KAAK,CAACM,QAAQ,GAAG;UAAE,GAAGN,KAAK,CAACM,QAAQ;UAAES;QAAM,CAAC;MAC/C;MACAlB,MAAM,CAAC,CAAC;MACR,MAAMkB,KAAK;IACb;EACF,CAAC;EAED,OAAO;IAAEjB,OAAO;IAAEuC;EAAgB,CAAC;AACrC,CAAC;AAACE,OAAA,CAAA9C,2BAAA,GAAAA,2BAAA","ignoreList":[]}
@@ -1,73 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SessionStoreRequestState = void 0;
7
- class SessionStoreRequestState {
8
- profileNeedsRefresh = false;
9
- hasActiveAccount = false;
10
- authRevision = 0;
11
- constructor(client, sessionClient) {
12
- this.client = client;
13
- this.sessionClient = sessionClient;
14
- }
15
- getAccounts = () => this.sessionClient.getSavedAccounts();
16
- getActiveAccountId = () => this.getAccounts().find(account => account.active)?.id ?? this.client.getActiveLogin()?.profile?.reference;
17
- syncActiveAccount = () => {
18
- const nextAccountId = this.getActiveAccountId();
19
- if (this.hasActiveAccount && this.activeAccountId !== nextAccountId) {
20
- this.invalidate();
21
- }
22
- this.activeAccountId = nextAccountId;
23
- this.hasActiveAccount = true;
24
- };
25
- invalidate = () => {
26
- this.authRevision += 1;
27
- this.profileRequest = undefined;
28
- this.sessionsRequest = undefined;
29
- this.profileNeedsRefresh = false;
30
- this.activeAccountId = this.getActiveAccountId();
31
- this.hasActiveAccount = true;
32
- };
33
- nextRevision = () => ++this.authRevision;
34
- get revision() {
35
- return this.authRevision;
36
- }
37
- isCurrent = revision => revision === this.authRevision;
38
- getProfileRequest = () => {
39
- if (!this.profileRequest) {
40
- const requestAccountId = this.getActiveAccountId();
41
- const request = (this.profileNeedsRefresh ? this.client.refetchProfile() : this.client.getProfileAsync()).then(profile => {
42
- if (requestAccountId === this.getActiveAccountId()) {
43
- this.profileNeedsRefresh = false;
44
- }
45
- return profile;
46
- }).catch(cause => {
47
- if (requestAccountId === this.getActiveAccountId()) {
48
- this.profileNeedsRefresh = true;
49
- }
50
- throw cause;
51
- }).finally(() => {
52
- if (this.profileRequest === request) {
53
- this.profileRequest = undefined;
54
- }
55
- });
56
- this.profileRequest = request;
57
- }
58
- return this.profileRequest;
59
- };
60
- getSessionsRequest = () => {
61
- if (!this.sessionsRequest) {
62
- const request = this.sessionClient.getSessions().finally(() => {
63
- if (this.sessionsRequest === request) {
64
- this.sessionsRequest = undefined;
65
- }
66
- });
67
- this.sessionsRequest = request;
68
- }
69
- return this.sessionsRequest;
70
- };
71
- }
72
- exports.SessionStoreRequestState = SessionStoreRequestState;
73
- //# sourceMappingURL=session-store-request-state.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["SessionStoreRequestState","profileNeedsRefresh","hasActiveAccount","authRevision","constructor","client","sessionClient","getAccounts","getSavedAccounts","getActiveAccountId","find","account","active","id","getActiveLogin","profile","reference","syncActiveAccount","nextAccountId","activeAccountId","invalidate","profileRequest","undefined","sessionsRequest","nextRevision","revision","isCurrent","getProfileRequest","requestAccountId","request","refetchProfile","getProfileAsync","then","catch","cause","finally","getSessionsRequest","getSessions","exports"],"sourceRoot":"../../../../../src","sources":["modules/auth/session/session-store-request-state.ts"],"mappings":";;;;;;AAOA,MAAMA,wBAAwB,CAAC;EAGrBC,mBAAmB,GAAG,KAAK;EAE3BC,gBAAgB,GAAG,KAA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AO,IAAI,CAACN,eAAe;EAC7B,CAAC;AACH;AAACe,OAAA,CAAAtC,wBAAA,GAAAA,wBAAA","ignoreList":[]}
@@ -1,39 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.profileMatchesAccount = exports.normalizeSession = exports.createSignedOutSnapshot = void 0;
7
- const profileMatchesAccount = (profile, accountId) => {
8
- if (!profile || !accountId) {
9
- return false;
10
- }
11
- const identity = profile;
12
- if (!identity.id) {
13
- return false;
14
- }
15
- const profileReference = identity.resourceType ? `${identity.resourceType}/${identity.id}` : identity.id;
16
- return accountId === profileReference || accountId.endsWith(`/${identity.id}`);
17
- };
18
- exports.profileMatchesAccount = profileMatchesAccount;
19
- /** A signed-out snapshot: no profile, no sessions; `extra` sets activeAccountId, reason, switching or error. */
20
- const createSignedOutSnapshot = (accounts, extra = {}) => ({
21
- status: "signed-out",
22
- profile: undefined,
23
- profileAccountId: undefined,
24
- accounts,
25
- sessions: [],
26
- ...extra
27
- });
28
- exports.createSignedOutSnapshot = createSignedOutSnapshot;
29
- const normalizeSession = session => {
30
- const legacy = session;
31
- return {
32
- id: session.id,
33
- authMethod: session.authMethod,
34
- remoteAddress: session.remoteAddress ?? legacy.ip,
35
- lastUpdated: session.lastUpdated ?? legacy.lastActiveAt ?? legacy.createdAt
36
- };
37
- };
38
- exports.normalizeSession = normalizeSession;
39
- //# sourceMappingURL=session-store-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["profileMatchesAccount","profile","accountId","identity","id","profileReference","resourceType","endsWith","exports","createSignedOutSnapshot","accounts","extra","status","undefined","profileAccountId","sessions","normalizeSession","session","legacy","authMethod","remoteAddress","ip","lastUpdated","lastActiveAt","createdAt"],"sourceRoot":"../../../../../src","sources":["modules/auth/session/session-store-types.ts"],"mappings":";;;;;;AAsBA,MAAMA,qBAAqB,GAAGA,CAACC,OAA4B,EAAEC,SAAkB,KAAK;EAClF,IAAI,CAACD,OAAO,IAAI,CAACC,SAAS,EAAE;IAC1B,OAAO,KAAK;EACd;EAEA,MAAMC,QAAQ,GAAGF,OAGhB;EAED,IAAI,CAACE,QAAQ,CAACC,EAAE,EAAE;IAChB,OAAO,KAAK;EACd;EAEA,MAAMC,gBAAgB,GAAGF,QAAQ,CAACG,YAAY,GAC1C,GAAGH,QAAQ,CAACG,YAAY,IAAIH,QAAQ,CAACC,EAAE,EAAE,GACzCD,QAAQ,CAACC,EAAE;EAEf,OAAOF,SAAS,KAAKG,gBAAgB,IAAIH,SAAS,CAACK,QAAQ,CAAC,IAAIJ,QAAQ,CAACC,EAAE,EAAE,CAAC;AAChF,CAAC;AAACI,OAAA,CAAAR,qBAAA,GAAAA,qBAAA;AAsBF;AACA,MAAMS,uBAAuB,GAAGA,CAC9BC,QAA4B,EAC5BC,KAA+B,GAAG,CAAC,CAAC,MACf;EACrBC,MAAM,EAAE,YAAY;EACpBX,OAAO,EAAEY,SAAS;EAClBC,gBAAgB,EAAED,SAAS;EAC3BH,QAAQ;EACRK,QAAQ,EAAE,EAAE;EACZ,GAAGJ;AACL,CAAC,CAAC;AAACH,OAAA,CAAAC,uBAAA,GAAAA,uBAAA;AAEH,MAAMO,gBAAgB,GAAIC,OAA0B,IAAwB;EAC1E,MAAMC,MAAM,GAAGD,OAId;EAED,OAAO;IACLb,EAAE,EAAEa,OAAO,CAACb,EAAE;IACde,UAAU,EAAEF,OAAO,CAACE,UAAU;IAC9BC,aAAa,EAAEH,OAAO,CAACG,aAAa,IAAIF,MAAM,CAACG,EAAE;IACjDC,WAAW,EAAEL,OAAO,CAACK,WAAW,IAAIJ,MAAM,CAACK,YAAY,IAAIL,MAAM,CAACM;EACpE,CAAC;AACH,CAAC;AAAChB,OAAA,CAAAQ,gBAAA,GAAAA,gBAAA","ignoreList":[]}
@@ -1,144 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getSessionStore = void 0;
7
- var _netinfo = require("@react-native-community/netinfo");
8
- var _logoutSession = require("./logout-session.js");
9
- var _sessionStoreRefresh = require("./session-store-refresh.js");
10
- var _sessionStoreRequestState = require("./session-store-request-state.js");
11
- var _sessionStoreTypes = require("./session-store-types.js");
12
- const stores = new WeakMap();
13
- const createSessionStore = client => {
14
- const sessionClient = client;
15
- const listeners = new Set();
16
- const requestState = new _sessionStoreRequestState.SessionStoreRequestState(client, sessionClient);
17
- let unsubscribeNetwork;
18
- let unsubscribeClient;
19
- let wasConnected;
20
- let logoutRequest;
21
- const storeRef = {};
22
- const notify = () => listeners.forEach(listener => listener());
23
- const onClientChange = () => {
24
- if ((0, _logoutSession.isLogoutInProgress)(client) || storeRef.current?.snapshot.switching) {
25
- return;
26
- }
27
- void Promise.resolve().then(() => {
28
- const currentStore = storeRef.current;
29
- if (!currentStore || (0, _logoutSession.isLogoutInProgress)(client) || currentStore.snapshot.switching) {
30
- return;
31
- }
32
- if (client.getActiveLogin()) {
33
- void currentStore.refresh(false);
34
- return;
35
- }
36
- if (currentStore.snapshot.status !== "authenticated" && currentStore.snapshot.status !== "offline") {
37
- return;
38
- }
39
- requestState.invalidate();
40
- currentStore.snapshot = (0, _sessionStoreTypes.createSignedOutSnapshot)(requestState.getAccounts(), {
41
- reason: "session-ended",
42
- activeAccountId: undefined
43
- });
44
- notify();
45
- });
46
- };
47
- const refreshActions = (0, _sessionStoreRefresh.createSessionRefreshActions)(client, requestState, () => storeRef.current, notify);
48
- const store = {
49
- snapshot: {
50
- status: "loading",
51
- activeAccountId: requestState.getActiveAccountId(),
52
- switching: false,
53
- accounts: requestState.getAccounts(),
54
- sessions: []
55
- },
56
- subscribe: listener => {
57
- listeners.add(listener);
58
- if (!unsubscribeClient) {
59
- client.addEventListener?.("change", onClientChange);
60
- unsubscribeClient = () => client.removeEventListener?.("change", onClientChange);
61
- }
62
- if (!unsubscribeNetwork) {
63
- unsubscribeNetwork = (0, _netinfo.addEventListener)(state => {
64
- const isConnected = state.isConnected === true && state.isInternetReachable !== false;
65
- const shouldRefresh = isConnected && wasConnected !== true && store.snapshot.status === "offline";
66
- wasConnected = isConnected;
67
- if (shouldRefresh) {
68
- void store.refresh(false);
69
- }
70
- });
71
- }
72
- return () => {
73
- listeners.delete(listener);
74
- if (listeners.size === 0) {
75
- unsubscribeClient?.();
76
- unsubscribeClient = undefined;
77
- unsubscribeNetwork?.();
78
- unsubscribeNetwork = undefined;
79
- wasConnected = undefined;
80
- }
81
- };
82
- },
83
- ...refreshActions,
84
- switchAccount: accountId => runAccountOperation(() => sessionClient.switchAccount(accountId)),
85
- removeAccount: accountId => runAccountOperation(() => sessionClient.removeAccount(accountId)),
86
- logout: async () => {
87
- if (logoutRequest) {
88
- return logoutRequest;
89
- }
90
- logoutRequest = (async () => {
91
- requestState.invalidate();
92
- try {
93
- await (0, _logoutSession.logoutSession)(sessionClient);
94
- } finally {
95
- requestState.invalidate();
96
- store.snapshot = (0, _sessionStoreTypes.createSignedOutSnapshot)(requestState.getAccounts(), {
97
- activeAccountId: requestState.getActiveAccountId()
98
- });
99
- notify();
100
- logoutRequest = undefined;
101
- }
102
- })();
103
- return logoutRequest;
104
- },
105
- revokeSessions: async option => {
106
- await sessionClient.revokeSessions(option);
107
- await store.refresh(true);
108
- }
109
- };
110
- storeRef.current = store;
111
- async function runAccountOperation(operation) {
112
- const currentStore = storeRef.current;
113
- requestState.invalidate();
114
- currentStore.snapshot = {
115
- ...currentStore.snapshot,
116
- switching: true,
117
- accounts: requestState.getAccounts()
118
- };
119
- notify();
120
- try {
121
- await operation();
122
- } finally {
123
- await currentStore.refresh(true);
124
- currentStore.snapshot = {
125
- ...currentStore.snapshot,
126
- switching: false
127
- };
128
- notify();
129
- }
130
- }
131
- return store;
132
- };
133
- const getSessionStore = client => {
134
- const key = client;
135
- const existing = stores.get(key);
136
- if (existing) {
137
- return existing;
138
- }
139
- const next = createSessionStore(client);
140
- stores.set(key, next);
141
- return next;
142
- };
143
- exports.getSessionStore = getSessionStore;
144
- //# sourceMappingURL=session-store.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_netinfo","require","_logoutSession","_sessionStoreRefresh","_sessionStoreRequestState","_sessionStoreTypes","stores","WeakMap","createSessionStore","client","sessionClient","listeners","Set","requestState","SessionStoreRequestState","unsubscribeNetwork","unsubscribeClient","wasConnected","logoutRequest","storeRef","notify","forEach","listener","onClientChange","isLogoutInProgress","current","snapshot","switching","Promise","resolve","then","currentStore","getActiveLogin","refresh","status","invalidate","createSignedOutSnapshot","getAccounts","reason","activeAccountId","undefined","refreshActions","createSessionRefreshActions","store","getActiveAccountId","accounts","sessions","subscribe","add","addEventListener","removeEventListener","addNetworkEventListener","state","isConnected","isInternetReachable","shouldRefresh","delete","size","switchAccount","accountId","runAccountOperation","removeAccount","logout","logoutSession","revokeSessions","option","operation","getSessionStore","key","existing","get","next","set","exports"],"sourceRoot":"../../../../../src","sources":["modules/auth/session/session-store.ts"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AASA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,oBAAA,GAAAF,OAAA;AACA,IAAAG,yBAAA,GAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAJ,OAAA;AAEA,MAAMK,MAAM,GAAG,IAAIC,OAAO,CAAuB,CAAC;AAElD,MAAMC,kBAAkB,GAAIC,MAAc,IAAmB;EAC3D,MAAMC,aAAa,GAAGD,MAAkC;EACxD,MAAME,SAAS,GAAG,IAAIC,GAAG,CAAa,CAAC;EACvC,MAAMC,YAAY,GAAG,IAAIC,kDAAwB,CAACL,MAAM,EAAEC,aAAa,CAAC;EACxE,IAAIK,kBAA4C;EAChD,IAAIC,iBAA2C;EAC/C,IAAIC,YAAiC;EACrC,IAAIC,aAAwC;EAC5C,MAAMC,QAAoC,GAAG,CAAC,CAAC;EAE/C,MAAMC,MAAM,GAAGA,CAAA,KAAMT,SAAS,CAACU,OAAO,CAAEC,QAAQ,IAAKA,QAAQ,CAAC,CAAC,CAAC;EAEhE,MAA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AQ;QAAEC,SAAS,EAAE;MAAM,CAAC;MACtEP,MAAM,CAAC,CAAC;IACV;EACF;EAEA,OAAOuB,KAAK;AACd,CAAC;AAED,MAAMwB,eAAe,GAAI1D,MAAc,IAAmB;EACxD,MAAM2D,GAAG,GAAG3D,MAAgB;EAC5B,MAAM4D,QAAQ,GAAG/D,MAAM,CAACgE,GAAG,CAACF,GAAG,CAAC;EAEhC,IAAIC,QAAQ,EAAE;IACZ,OAAOA,QAAQ;EACjB;EAEA,MAAME,IAAI,GAAG/D,kBAAkB,CAACC,MAAM,CAAC;EAEvCH,MAAM,CAACkE,GAAG,CAACJ,GAAG,EAAEG,IAAI,CAAC;EAErB,OAAOA,IAAI;AACb,CAAC;AAACE,OAAA,CAAAN,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -1,15 +0,0 @@
1
- "use strict";
2
-
3
- import { notifySessionChanged } from "./events.js";
4
-
5
- /** Stores a completed login as the active one and tells session listeners. */
6
- export const saveLogin = async (client, response) => {
7
- await client.setActiveLogin({
8
- accessToken: response.accessToken,
9
- refreshToken: response.refreshToken,
10
- profile: response.profile,
11
- project: response.project
12
- });
13
- notifySessionChanged();
14
- };
15
- //# sourceMappingURL=save-login.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["notifySessionChanged","saveLogin","client","response","setActiveLogin","accessToken","refreshToken","profile","project"],"sourceRoot":"../../../../../src","sources":["modules/auth/session/save-login.ts"],"mappings":";;AAEA,SAASA,oBAAoB,QAAQ,aAAU;;AAE/C;AACA,OAAO,MAAMC,SAAS,GAAG,MAAAA,CACvBC,MAAoC,EACpCC,QAGC,KACE;EACH,MAAMD,MAAM,CAACE,cAAc,CAAC;IAC1BC,WAAW,EAAEF,QAAQ,CAACE,WAAW;IACjCC,YAAY,EAAEH,QAAQ,CAACG,YAAY;IACnCC,OAAO,EAAEJ,QAAQ,CAACI,OAAO;IACzBC,OAAO,EAAEL,QAAQ,CAACK;EACpB,CAAC,CAAC;EACFR,oBAAoB,CAAC,CAAC;AACxB,CAAC","ignoreList":[]}
@@ -1,138 +0,0 @@
1
- "use strict";
2
-
3
- import { getHttpStatus, toError } from "./session-errors.js";
4
- import { normalizeSession, createSignedOutSnapshot, profileMatchesAccount } from "./session-store-types.js";
5
- const createSessionRefreshActions = (client, requestState, getStore, notify) => {
6
- const refresh = async includeSessions => {
7
- const store = getStore();
8
- requestState.syncActiveAccount();
9
- const activeAccountId = requestState.getActiveAccountId();
10
- if (!client.getActiveLogin()) {
11
- requestState.nextRevision();
12
- store.snapshot = createSignedOutSnapshot(requestState.getAccounts(), {
13
- activeAccountId,
14
- reason: store.snapshot.reason,
15
- switching: store.snapshot.switching
16
- });
17
- notify();
18
- return;
19
- }
20
- if (store.snapshot.activeAccountId !== activeAccountId) {
21
- store.snapshot = {
22
- ...store.snapshot,
23
- activeAccountId,
24
- profile: undefined,
25
- profileAccountId: undefined,
26
- sessions: [],
27
- error: undefined
28
- };
29
- notify();
30
- }
31
- const revision = requestState.nextRevision();
32
- const previousSnapshot = store.snapshot;
33
- if (!store.snapshot.switching && store.snapshot.status !== "authenticated" && store.snapshot.status !== "offline") {
34
- store.snapshot = {
35
- ...store.snapshot,
36
- status: "loading",
37
- error: undefined
38
- };
39
- notify();
40
- }
41
- const currentProfileRequest = requestState.getProfileRequest();
42
- const currentSessionsRequest = includeSessions ? requestState.getSessionsRequest() : undefined;
43
- const [profileResult, sessionsResult] = await Promise.all([currentProfileRequest.then(profile => ({
44
- profile
45
- }), error => ({
46
- error
47
- })), (currentSessionsRequest ?? Promise.resolve(previousSnapshot.sessions)).then(sessions => ({
48
- sessions
49
- }), error => ({
50
- error
51
- }))]);
52
- if (!requestState.isCurrent(revision)) {
53
- return;
54
- }
55
- const profile = "profile" in profileResult ? profileMatchesAccount(profileResult.profile, activeAccountId) ? profileResult.profile : undefined : previousSnapshot.profileAccountId === activeAccountId && profileMatchesAccount(previousSnapshot.profile, activeAccountId) ? previousSnapshot.profile : undefined;
56
- const profileAccountId = profile ? "profile" in profileResult ? activeAccountId : previousSnapshot.profileAccountId : undefined;
57
- const sessions = "sessions" in sessionsResult ? sessionsResult.sessions : previousSnapshot.sessions;
58
- const error = "error" in profileResult ? profileResult.error : "error" in sessionsResult ? sessionsResult.error : undefined;
59
- const accounts = requestState.getAccounts();
60
- const nextSnapshot = !client.getActiveLogin() || getHttpStatus(error) === 401 ? createSignedOutSnapshot(accounts, {
61
- activeAccountId,
62
- error: error === undefined ? undefined : toError(error)
63
- }) : "error" in profileResult ? {
64
- status: "offline",
65
- activeAccountId,
66
- accounts,
67
- profile,
68
- profileAccountId,
69
- sessions: sessions.map(normalizeSession),
70
- error: toError(profileResult.error)
71
- } : {
72
- status: "authenticated",
73
- activeAccountId,
74
- accounts,
75
- profile,
76
- profileAccountId,
77
- sessions: sessions.map(normalizeSession),
78
- error: "error" in sessionsResult ? toError(sessionsResult.error) : undefined
79
- };
80
- store.snapshot = {
81
- ...nextSnapshot,
82
- switching: previousSnapshot.switching
83
- };
84
- notify();
85
- };
86
- const refreshSessions = async () => {
87
- const store = getStore();
88
- requestState.syncActiveAccount();
89
- if (!client.getActiveLogin()) {
90
- store.snapshot = {
91
- ...store.snapshot,
92
- activeAccountId: requestState.getActiveAccountId(),
93
- accounts: requestState.getAccounts(),
94
- sessions: []
95
- };
96
- notify();
97
- return;
98
- }
99
- const revision = requestState.revision;
100
- try {
101
- const sessions = await requestState.getSessionsRequest();
102
- if (!requestState.isCurrent(revision)) {
103
- return;
104
- }
105
- store.snapshot = {
106
- ...store.snapshot,
107
- accounts: requestState.getAccounts(),
108
- sessions: sessions.map(normalizeSession),
109
- error: undefined
110
- };
111
- notify();
112
- } catch (cause) {
113
- if (!requestState.isCurrent(revision)) {
114
- return;
115
- }
116
- const error = toError(cause);
117
- if (!client.getActiveLogin() || getHttpStatus(cause) === 401) {
118
- store.snapshot = createSignedOutSnapshot(requestState.getAccounts(), {
119
- activeAccountId: requestState.getActiveAccountId(),
120
- error
121
- });
122
- } else {
123
- store.snapshot = {
124
- ...store.snapshot,
125
- error
126
- };
127
- }
128
- notify();
129
- throw error;
130
- }
131
- };
132
- return {
133
- refresh,
134
- refreshSessions
135
- };
136
- };
137
- export { createSessionRefreshActions };
138
- //# sourceMappingURL=session-store-refresh.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["getHttpStatus","toError","normalizeSession","createSignedOutSnapshot","profileMatchesAccount","createSessionRefreshActions","client","requestState","getStore","notify","refresh","includeSessions","store","syncActiveAccount","activeAccountId","getActiveAccountId","getActiveLogin","nextRevision","snapshot","getAccounts","reason","switching","profile","undefined","profileAccountId","sessions","error","revision","previousSnapshot","status","currentProfileRequest","getProfileRequest","currentSessionsRequest","getSessionsRequest","profileResult","sessionsResult","Promise","all","then","resolve","isCurrent","accounts","nextSnapshot","map","refreshSessions","cause"],"sourceRoot":"../../../../../src","sources":["modules/auth/session/session-store-refresh.ts"],"mappings":";;AAAA,SAASA,aAAa,EAAEC,OAAO,QAAQ,qBAAkB;AAEzD,SACEC,gBAAgB,EAChBC,uBAAuB,EACvBC,qBAAqB,QAIhB,0BAAuB;AAE9B,MAAMC,2BAA2B,GAAGA,CAClCC,MAAc,EACdC,YAAsC,EACtCC,QAA4B,EAC5BC,MAAkB,KACf;EACH,MAAMC,OAAO,GAAG,MAAOC,eAAwB,IAAK;IAClD,MAAMC,KAAK,GAAGJ,QAAQ,CAAC,CAAC;IAExBD,YAAY,CAACM,iBAAiB,CAAC,CAAC;IAChC,MAAMC,eAAe,GAAGP,YAAY,CAACQ,kBAAkB,CAAC,CAAC;IAEzD,IAAI,CAACT,MAAM,CAACU,cAAc,CAAC,CAAC,EAAE;MAC5BT,YAAY,CAACU,YAAY,CAAC,CAAC;MAC3BL,KAAK,CAACM,QAAQ,GAAGf,uBAAuB,CAACI,YAAY,CAACY,WAAW,CAAC,CAAC,EAAE;QACnEL,eAAe;QACfM,MAAM,EAAER,KAAK,CAACM,QAAQ,CAACE,MAAM;QAC7BC,SAAS,EAAET,KAAK,CAACM,QAA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