@ovok/native 1.16.1-dev.2095 → 1.16.1-dev.2099
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.
- package/lib/commonjs/modules/auth/hooks/use-accept-invite-link.js +6 -12
- package/lib/commonjs/modules/auth/hooks/use-accept-invite-link.js.map +1 -1
- package/lib/commonjs/modules/auth/hooks/use-delete-account.js +5 -8
- package/lib/commonjs/modules/auth/hooks/use-delete-account.js.map +1 -1
- package/lib/commonjs/modules/auth/hooks/use-session.js +150 -28
- package/lib/commonjs/modules/auth/hooks/use-session.js.map +1 -1
- package/lib/commonjs/modules/auth/hooks/use-sign-in.js +5 -23
- package/lib/commonjs/modules/auth/hooks/use-sign-in.js.map +1 -1
- package/lib/commonjs/modules/auth/hooks/use-sign-out.js +2 -2
- package/lib/commonjs/modules/auth/hooks/use-sign-out.js.map +1 -1
- package/lib/commonjs/modules/auth/hooks/use-social-sign-in.js +4 -9
- package/lib/commonjs/modules/auth/hooks/use-social-sign-in.js.map +1 -1
- package/lib/commonjs/modules/auth/profile/components/profile-form-provider.js +25 -11
- package/lib/commonjs/modules/auth/profile/components/profile-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/register/components/form/register-form-provider.js +19 -20
- package/lib/commonjs/modules/auth/register/components/form/register-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-form-provider.js +3 -3
- package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/session/logout-session.js +1 -3
- package/lib/commonjs/modules/auth/session/logout-session.js.map +1 -1
- package/lib/commonjs/modules/auth/session/session-snapshot.js +33 -0
- package/lib/commonjs/modules/auth/session/session-snapshot.js.map +1 -0
- package/lib/commonjs/modules/auth/sign-in/components/form/login-form-provider.js +11 -6
- package/lib/commonjs/modules/auth/sign-in/components/form/login-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/apple-login-button.js +8 -10
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/apple-login-button.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/google-login-button.js +3 -5
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/google-login-button.js.map +1 -1
- package/lib/commonjs/modules/auth/utils/sign-in-error.js +7 -7
- package/lib/commonjs/modules/auth/utils/sign-in-error.js.map +1 -1
- package/lib/commonjs/modules/background-sync/android-background-sync.js +6 -0
- package/lib/commonjs/modules/background-sync/android-background-sync.js.map +1 -1
- package/lib/commonjs/modules/bt-device/constants/device-model.js +2 -2
- package/lib/commonjs/modules/bt-device/constants/device-model.js.map +1 -1
- package/lib/commonjs/modules/bt-device/constants/supported-devices.js +9 -9
- package/lib/commonjs/modules/bt-device/constants/supported-devices.js.map +1 -1
- package/lib/commonjs/modules/bt-management/constants/built-in-measurement-types.js +81 -81
- package/lib/commonjs/modules/bt-management/constants/built-in-measurement-types.js.map +1 -1
- package/lib/commonjs/modules/bt-management/constants/measurement-field-catalog.js +12 -12
- package/lib/commonjs/modules/bt-management/constants/measurement-field-catalog.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/a606/a606.device.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/a606/a606.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/a606/a606.main-services.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/a606/a606.main-services.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.sequencer.js +3 -3
- package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj.device.js +4 -4
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj.thermometers.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj.thermometers.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bc01/bc01.device.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/bc01/bc01.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bc01/bc01.main-services.js +5 -5
- package/lib/commonjs/modules/bt-management/services/devices/bc01/bc01.main-services.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.device.js +12 -12
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.files.js +3 -3
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.files.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.main-services.js +8 -8
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.main-services.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bpw1/bpw1.device.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/bpw1/bpw1.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bpw1/bpw1.main-services.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/bpw1/bpw1.main-services.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme-ecg.sequencer.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme-ecg.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme-pod.sequencer.js +3 -3
- package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme-pod.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme.sequencer.js +15 -15
- package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/f4/f4.main-services.js +3 -3
- package/lib/commonjs/modules/bt-management/services/devices/f4/f4.main-services.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/f5/f5-scale.sequencer.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/f5/f5-scale.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.sequencer.js +3 -3
- package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/genial-t31/genial-t31.device.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/genial-t31/genial-t31.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.sequencer.js +3 -3
- package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.sequencer.js +3 -3
- package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/live-oximeter.sequencer.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/live-oximeter.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/spo/pc60fw.monitor.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/spo/pc60fw.monitor.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/spo/spo2.main-services.js +5 -5
- package/lib/commonjs/modules/bt-management/services/devices/spo/spo2.main-services.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.js +6 -6
- package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js +3 -3
- package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.records.js +6 -6
- package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.records.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/tmb/tmb.bp-handler.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/tmb/tmb.bp-handler.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/transtek/mambo-a5.sequencer.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/transtek/mambo-a5.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.records.js +4 -4
- package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.records.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/trasense/s9.command-sequencer.js +3 -3
- package/lib/commonjs/modules/bt-management/services/devices/trasense/s9.command-sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/uebe/mysense.device.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/uebe/mysense.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.js +4 -4
- package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.duo-control-device.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.duo-control-device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.ecg-device.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.ecg-device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.ecg-record.js +6 -6
- package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.ecg-record.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/baby-sleep-clip.protocol.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/viatom/baby-sleep-clip.protocol.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/bioland.bgm.sequencer.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/viatom/bioland.bgm.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/lpm311.protocol.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/viatom/lpm311.protocol.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/oxy-s3.sequencer.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/viatom/oxy-s3.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/pc80b.sequencer.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/viatom/pc80b.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/pf10aw1.sequencer.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/viatom/pf10aw1.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/poctor.m3102.sequencer.js +3 -3
- package/lib/commonjs/modules/bt-management/services/devices/viatom/poctor.m3102.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/sp20.sequencer.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/viatom/sp20.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom-aa55.sequencer.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom-aa55.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom-r20.protocol.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom-r20.protocol.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom-r20.sequencer.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom-r20.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bp-ecg-handler.js +3 -3
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bp-ecg-handler.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bp-monitor-cases.js +3 -3
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bp-monitor-cases.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bp3-files.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bp3-files.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bpm188.sequencer.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bpm188.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.lepod.js +5 -5
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.lepod.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.oximeters.js +3 -3
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.oximeters.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pc100.sequencer.js +3 -3
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pc100.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pc300.sequencer.js +7 -7
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pc300.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pm10.sequencer.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pm10.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.vtm20f.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.vtm20f.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.wbp02.sequencer.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.wbp02.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.sequencer.js +4 -4
- package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/utils/convert-ecg-diagnostic-flag.js +7 -7
- package/lib/commonjs/modules/bt-management/utils/convert-ecg-diagnostic-flag.js.map +1 -1
- package/lib/commonjs/modules/cms/cms-locale.js +13 -0
- package/lib/commonjs/modules/cms/cms-locale.js.map +1 -0
- package/lib/commonjs/modules/cms/hooks/use-cms-content.js +35 -14
- package/lib/commonjs/modules/cms/hooks/use-cms-content.js.map +1 -1
- package/lib/commonjs/modules/cms/hooks/use-cms-locale.js +2 -6
- package/lib/commonjs/modules/cms/hooks/use-cms-locale.js.map +1 -1
- package/lib/commonjs/modules/cms/hooks/use-cms-translations.js +11 -23
- package/lib/commonjs/modules/cms/hooks/use-cms-translations.js.map +1 -1
- package/lib/commonjs/modules/cms/merge-cms-translations.js.map +1 -1
- package/lib/commonjs/modules/data-sync/hooks/use-health-sync-runner.js +30 -22
- package/lib/commonjs/modules/data-sync/hooks/use-health-sync-runner.js.map +1 -1
- package/lib/commonjs/modules/data-sync/services/base-health-sync-service.js +4 -8
- package/lib/commonjs/modules/data-sync/services/base-health-sync-service.js.map +1 -1
- package/lib/commonjs/modules/data-sync/services/managers/data-processor.js +4 -4
- package/lib/commonjs/modules/data-sync/services/managers/data-processor.js.map +1 -1
- package/lib/commonjs/modules/data-sync/services/managers/instance-manager.js +9 -5
- package/lib/commonjs/modules/data-sync/services/managers/instance-manager.js.map +1 -1
- package/lib/commonjs/modules/data-sync/services/managers/storage-manager.js +36 -39
- package/lib/commonjs/modules/data-sync/services/managers/storage-manager.js.map +1 -1
- package/lib/commonjs/modules/data-sync/services/managers/sync-state-manager.js.map +1 -1
- package/lib/commonjs/modules/data-sync/types/health-sync-keys.js +3 -3
- package/lib/commonjs/modules/data-sync/types/health-sync-keys.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/convert-records-to-observation.js +3 -3
- package/lib/commonjs/modules/data-sync/utils/convert-records-to-observation.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/convert-samples-to-observation.js +3 -3
- package/lib/commonjs/modules/data-sync/utils/convert-samples-to-observation.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/get-latest-observation-dates-by-code.js +1 -1
- package/lib/commonjs/modules/data-sync/utils/get-latest-observation-dates-by-code.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/retry-save.js +4 -5
- package/lib/commonjs/modules/data-sync/utils/retry-save.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/session-owner.js +18 -0
- package/lib/commonjs/modules/data-sync/utils/session-owner.js.map +1 -0
- package/lib/commonjs/modules/data-sync/utils/to-core-health-observations.js +2 -2
- package/lib/commonjs/modules/data-sync/utils/to-core-health-observations.js.map +1 -1
- package/lib/commonjs/modules/image/components/optimized-image.js +3 -3
- package/lib/commonjs/modules/image/components/optimized-image.js.map +1 -1
- package/lib/commonjs/modules/next/ovok.js +5 -1
- package/lib/commonjs/modules/next/ovok.js.map +1 -1
- package/lib/commonjs/modules/next/use-native-ovok.js +17 -0
- package/lib/commonjs/modules/next/use-native-ovok.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form-provider.js +27 -27
- package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form-provider.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js +12 -17
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js.map +1 -1
- package/lib/commonjs/modules/socket/components/socket-provider.js +9 -4
- package/lib/commonjs/modules/socket/components/socket-provider.js.map +1 -1
- package/lib/commonjs/modules/tile/constants/measurement-icon-svg.js +21 -21
- package/lib/commonjs/modules/tile/constants/measurement-icon-svg.js.map +1 -1
- package/lib/commonjs/modules/ui/components/urine-test-result.js +3 -3
- package/lib/commonjs/modules/ui/components/urine-test-result.js.map +1 -1
- package/lib/module/modules/auth/hooks/use-accept-invite-link.js +6 -12
- package/lib/module/modules/auth/hooks/use-accept-invite-link.js.map +1 -1
- package/lib/module/modules/auth/hooks/use-delete-account.js +5 -8
- package/lib/module/modules/auth/hooks/use-delete-account.js.map +1 -1
- package/lib/module/modules/auth/hooks/use-session.js +151 -30
- package/lib/module/modules/auth/hooks/use-session.js.map +1 -1
- package/lib/module/modules/auth/hooks/use-sign-in.js +5 -23
- package/lib/module/modules/auth/hooks/use-sign-in.js.map +1 -1
- package/lib/module/modules/auth/hooks/use-sign-out.js +2 -2
- package/lib/module/modules/auth/hooks/use-sign-out.js.map +1 -1
- package/lib/module/modules/auth/hooks/use-social-sign-in.js +4 -9
- package/lib/module/modules/auth/hooks/use-social-sign-in.js.map +1 -1
- package/lib/module/modules/auth/profile/components/profile-form-provider.js +21 -7
- package/lib/module/modules/auth/profile/components/profile-form-provider.js.map +1 -1
- package/lib/module/modules/auth/register/components/form/register-form-provider.js +16 -17
- package/lib/module/modules/auth/register/components/form/register-form-provider.js.map +1 -1
- package/lib/module/modules/auth/reset-password/components/form/reset-password-form-provider.js +3 -3
- package/lib/module/modules/auth/reset-password/components/form/reset-password-form-provider.js.map +1 -1
- package/lib/module/modules/auth/session/logout-session.js +1 -3
- package/lib/module/modules/auth/session/logout-session.js.map +1 -1
- package/lib/module/modules/auth/session/session-snapshot.js +28 -0
- package/lib/module/modules/auth/session/session-snapshot.js.map +1 -0
- package/lib/module/modules/auth/sign-in/components/form/login-form-provider.js +11 -6
- package/lib/module/modules/auth/sign-in/components/form/login-form-provider.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/social-logins/apple-login-button.js +3 -5
- package/lib/module/modules/auth/sign-in/components/social-logins/apple-login-button.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/social-logins/google-login-button.js +3 -5
- package/lib/module/modules/auth/sign-in/components/social-logins/google-login-button.js.map +1 -1
- package/lib/module/modules/auth/utils/sign-in-error.js +7 -7
- package/lib/module/modules/auth/utils/sign-in-error.js.map +1 -1
- package/lib/module/modules/background-sync/android-background-sync.js +6 -0
- package/lib/module/modules/background-sync/android-background-sync.js.map +1 -1
- package/lib/module/modules/bt-device/constants/device-model.js +1 -1
- package/lib/module/modules/bt-device/constants/device-model.js.map +1 -1
- package/lib/module/modules/bt-device/constants/supported-devices.js +1 -1
- package/lib/module/modules/bt-device/constants/supported-devices.js.map +1 -1
- package/lib/module/modules/bt-management/constants/built-in-measurement-types.js +1 -1
- package/lib/module/modules/bt-management/constants/built-in-measurement-types.js.map +1 -1
- package/lib/module/modules/bt-management/constants/measurement-field-catalog.js +1 -1
- package/lib/module/modules/bt-management/constants/measurement-field-catalog.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/a606/a606.device.js +1 -1
- package/lib/module/modules/bt-management/services/devices/a606/a606.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/a606/a606.main-services.js +1 -1
- package/lib/module/modules/bt-management/services/devices/a606/a606.main-services.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/aoj/aoj.device.js +1 -1
- package/lib/module/modules/bt-management/services/devices/aoj/aoj.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/aoj/aoj.thermometers.js +1 -1
- package/lib/module/modules/bt-management/services/devices/aoj/aoj.thermometers.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bc01/bc01.device.js +1 -1
- package/lib/module/modules/bt-management/services/devices/bc01/bc01.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bc01/bc01.main-services.js +1 -1
- package/lib/module/modules/bt-management/services/devices/bc01/bc01.main-services.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js +1 -1
- package/lib/module/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js +2 -2
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.files.js +1 -1
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.files.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.main-services.js +1 -1
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.main-services.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bpw1/bpw1.device.js +1 -1
- package/lib/module/modules/bt-management/services/devices/bpw1/bpw1.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bpw1/bpw1.main-services.js +1 -1
- package/lib/module/modules/bt-management/services/devices/bpw1/bpw1.main-services.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/checkme/checkme-ecg.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/checkme/checkme-ecg.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/checkme/checkme-pod.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/checkme/checkme-pod.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/checkme/checkme.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/checkme/checkme.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/custom/custom.device.js +1 -1
- package/lib/module/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/f4/f4.main-services.js +1 -1
- package/lib/module/modules/bt-management/services/devices/f4/f4.main-services.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/f5/f5-scale.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/f5/f5-scale.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/genial-t31/genial-t31.device.js +1 -1
- package/lib/module/modules/bt-management/services/devices/genial-t31/genial-t31.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/joytech/joytech.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/joytech/joytech.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/jumper/jumper.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/jumper/jumper.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/live-oximeter.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/live-oximeter.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/spo/pc60fw.monitor.js +1 -1
- package/lib/module/modules/bt-management/services/devices/spo/pc60fw.monitor.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/spo/spo2.main-services.js +1 -1
- package/lib/module/modules/bt-management/services/devices/spo/spo2.main-services.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.js +1 -1
- package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js +1 -1
- package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.records.js +1 -1
- package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.records.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/tmb/tmb.bp-handler.js +1 -1
- package/lib/module/modules/bt-management/services/devices/tmb/tmb.bp-handler.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/transtek/mambo-a5.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/transtek/mambo-a5.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.records.js +1 -1
- package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.records.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/trasense/s9.command-sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/trasense/s9.command-sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/uebe/mysense.device.js +1 -1
- package/lib/module/modules/bt-management/services/devices/uebe/mysense.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/veroval/veroval.duo-control-device.js +1 -1
- package/lib/module/modules/bt-management/services/devices/veroval/veroval.duo-control-device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-device.js +1 -1
- package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-record.js +1 -1
- package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-record.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/baby-sleep-clip.protocol.js +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/baby-sleep-clip.protocol.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/bioland.bgm.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/bioland.bgm.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/lpm311.protocol.js +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/lpm311.protocol.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/oxy-s3.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/oxy-s3.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/pc80b.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/pc80b.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/pf10aw1.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/pf10aw1.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/poctor.m3102.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/poctor.m3102.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/sp20.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/sp20.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom-aa55.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom-aa55.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom-r20.protocol.js +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom-r20.protocol.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom-r20.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom-r20.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp-ecg-handler.js +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp-ecg-handler.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp-monitor-cases.js +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp-monitor-cases.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp3-files.js +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp3-files.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.bpm188.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.bpm188.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.lepod.js +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.lepod.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.oximeters.js +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.oximeters.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc100.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc100.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc300.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc300.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.pm10.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.pm10.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.vtm20f.js +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.vtm20f.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.wbp02.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.wbp02.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/yonker/yonker.sequencer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/yonker/yonker.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/utils/convert-ecg-diagnostic-flag.js +1 -1
- package/lib/module/modules/bt-management/utils/convert-ecg-diagnostic-flag.js.map +1 -1
- package/lib/module/modules/cms/cms-locale.js +8 -0
- package/lib/module/modules/cms/cms-locale.js.map +1 -0
- package/lib/module/modules/cms/hooks/use-cms-content.js +35 -15
- package/lib/module/modules/cms/hooks/use-cms-content.js.map +1 -1
- package/lib/module/modules/cms/hooks/use-cms-locale.js +1 -6
- package/lib/module/modules/cms/hooks/use-cms-locale.js.map +1 -1
- package/lib/module/modules/cms/hooks/use-cms-translations.js +10 -23
- package/lib/module/modules/cms/hooks/use-cms-translations.js.map +1 -1
- package/lib/module/modules/cms/merge-cms-translations.js.map +1 -1
- package/lib/module/modules/data-sync/hooks/use-health-sync-runner.js +30 -22
- package/lib/module/modules/data-sync/hooks/use-health-sync-runner.js.map +1 -1
- package/lib/module/modules/data-sync/services/base-health-sync-service.js +4 -8
- package/lib/module/modules/data-sync/services/base-health-sync-service.js.map +1 -1
- package/lib/module/modules/data-sync/services/managers/data-processor.js +3 -3
- package/lib/module/modules/data-sync/services/managers/data-processor.js.map +1 -1
- package/lib/module/modules/data-sync/services/managers/instance-manager.js +9 -5
- package/lib/module/modules/data-sync/services/managers/instance-manager.js.map +1 -1
- package/lib/module/modules/data-sync/services/managers/storage-manager.js +35 -39
- package/lib/module/modules/data-sync/services/managers/storage-manager.js.map +1 -1
- package/lib/module/modules/data-sync/services/managers/sync-state-manager.js.map +1 -1
- package/lib/module/modules/data-sync/types/health-sync-keys.js +1 -1
- package/lib/module/modules/data-sync/types/health-sync-keys.js.map +1 -1
- package/lib/module/modules/data-sync/utils/convert-records-to-observation.js +2 -2
- package/lib/module/modules/data-sync/utils/convert-records-to-observation.js.map +1 -1
- package/lib/module/modules/data-sync/utils/convert-samples-to-observation.js +2 -2
- package/lib/module/modules/data-sync/utils/convert-samples-to-observation.js.map +1 -1
- package/lib/module/modules/data-sync/utils/get-latest-observation-dates-by-code.js +1 -1
- package/lib/module/modules/data-sync/utils/get-latest-observation-dates-by-code.js.map +1 -1
- package/lib/module/modules/data-sync/utils/retry-save.js +4 -5
- package/lib/module/modules/data-sync/utils/retry-save.js.map +1 -1
- package/lib/module/modules/data-sync/utils/session-owner.js +13 -0
- package/lib/module/modules/data-sync/utils/session-owner.js.map +1 -0
- package/lib/module/modules/data-sync/utils/to-core-health-observations.js +1 -1
- package/lib/module/modules/data-sync/utils/to-core-health-observations.js.map +1 -1
- package/lib/module/modules/image/components/optimized-image.js +3 -3
- package/lib/module/modules/image/components/optimized-image.js.map +1 -1
- package/lib/module/modules/next/ovok.js +5 -1
- package/lib/module/modules/next/ovok.js.map +1 -1
- package/lib/module/modules/next/use-native-ovok.js +12 -0
- package/lib/module/modules/next/use-native-ovok.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/components/questionnaire-form-provider.js +5 -5
- package/lib/module/modules/questionnaire-response-form/components/questionnaire-form-provider.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js +12 -17
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js.map +1 -1
- package/lib/module/modules/socket/components/socket-provider.js +9 -4
- package/lib/module/modules/socket/components/socket-provider.js.map +1 -1
- package/lib/module/modules/tile/constants/measurement-icon-svg.js +1 -1
- package/lib/module/modules/tile/constants/measurement-icon-svg.js.map +1 -1
- package/lib/module/modules/ui/components/urine-test-result.js +1 -1
- package/lib/module/modules/ui/components/urine-test-result.js.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-accept-invite-link.d.ts +3 -3
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-accept-invite-link.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-delete-account.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-session.d.ts +5 -16
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-session.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-sign-in.d.ts +3 -2
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-sign-in.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-sign-out.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-social-sign-in.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-social-sign-in.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/profile/components/profile-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/profile/types/profile-form-field.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/auth/profile/types/profile-form-field.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/register/components/form/register-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/register/types/register-form-props.d.ts +5 -3
- package/lib/typescript/commonjs/src/modules/auth/register/types/register-form-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/register/types/register-form-values.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/auth/register/types/register-form-values.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/logout-session.d.ts +3 -5
- package/lib/typescript/commonjs/src/modules/auth/session/logout-session.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/session-snapshot.d.ts +21 -0
- package/lib/typescript/commonjs/src/modules/auth/session/session-snapshot.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/form/login-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/apple-login-button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/google-login-button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/hooks/use-login-form.d.ts +1 -3
- package/lib/typescript/commonjs/src/modules/auth/sign-in/hooks/use-login-form.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/types/apple-login-props.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/auth/sign-in/types/apple-login-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/types/google-login-props.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/auth/sign-in/types/google-login-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/types/login-form-context-type.d.ts +2 -4
- package/lib/typescript/commonjs/src/modules/auth/sign-in/types/login-form-context-type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/types/login-form-props.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/auth/sign-in/types/login-form-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/types/login-form-values.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/auth/sign-in/types/login-form-values.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/utils/sign-in-error.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/auth/utils/sign-in-error.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/background-sync/android-background-sync.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/background-sync/android-background-sync.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-device/constants/device-model.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-device/constants/device-model.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-devices.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-devices.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-device/utils/device-query.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-device/utils/device-query.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/constants/built-in-measurement-types.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/constants/built-in-measurement-types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/constants/measurement-field-catalog.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/constants/measurement-field-catalog.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/custom/compile-case-fields.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/custom/compile-case-fields.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/custom/compile-custom-field.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/custom/compile-custom-field.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.files.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.files.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-data-processor.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-data-processor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-ecg.sequencer.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-ecg.sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-pod.sequencer.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-pod.sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme.sequencer.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme.sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/f5/f5-scale.sequencer.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/f5/f5-scale.sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/frame-parser.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/frame-parser.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/measurement-state-machine.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/measurement-state-machine.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.bp-monitors.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.bp-monitors.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.duo-control-device.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.duo-control-device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.ecg-record.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.ecg-record.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.protocol.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.protocol.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.sequencer.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/bioland.bgm.sequencer.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/bioland.bgm.sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/lpm311.protocol.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/lpm311.protocol.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/oxy-s3.sequencer.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/oxy-s3.sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pc80b.sequencer.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pc80b.sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pf10aw1.sequencer.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pf10aw1.sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/poctor.m3102.sequencer.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/poctor.m3102.sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/sp20.sequencer.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/sp20.sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-aa55.sequencer.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-aa55.sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-r20.protocol.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-r20.protocol.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-r20.sequencer.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-r20.sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.bp3-files.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.bp3-files.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.bpm188.sequencer.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.bpm188.sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc100.sequencer.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc100.sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc300.sequencer.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc300.sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pm10.sequencer.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pm10.sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.wbp02.sequencer.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.wbp02.sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/series-slots.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/series-slots.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/create-device-params.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/create-device-params.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/custom-case-spec.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/custom-case-spec.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/custom-device-definition.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/custom-device-definition.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/custom-measurement-spec.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/custom-measurement-spec.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/custom-measurement.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/custom-measurement.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/dependent-result-handler-params.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/dependent-result-handler-params.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/device-data.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/device-data.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/device-measurement-map.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/bt-management/types/device-measurement-map.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/device-status-change-callback.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/device-status-change-callback.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/measurement-group.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/measurement-group.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/measurement-series.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/measurement-series.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/measurement-with-case-type.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/measurement-with-case-type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/parsing-case.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/parsing-case.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/result-policy.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/result-policy.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/utils/convert-ecg-diagnostic-flag.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/utils/convert-ecg-diagnostic-flag.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/utils/parse-measurement.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/utils/parse-measurement.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/utils/result-identity.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/utils/result-identity.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/utils/supported-measurement-type-keys.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/utils/supported-measurement-type-keys.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/cms/cms-locale.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/cms/cms-locale.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-content.d.ts +6 -7
- package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-content.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-locale.d.ts +1 -6
- package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-locale.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-translations.d.ts +2 -9
- package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-translations.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/cms/merge-cms-translations.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/cms/merge-cms-translations.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/hooks/use-health-sync-runner.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/services/base-health-sync-service.d.ts +0 -1
- package/lib/typescript/commonjs/src/modules/data-sync/services/base-health-sync-service.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/services/managers/data-processor.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/data-sync/services/managers/data-processor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/services/managers/instance-manager.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/data-sync/services/managers/instance-manager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/services/managers/storage-manager.d.ts +11 -26
- package/lib/typescript/commonjs/src/modules/data-sync/services/managers/storage-manager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/services/managers/sync-state-manager.d.ts +3 -3
- package/lib/typescript/commonjs/src/modules/data-sync/services/managers/sync-state-manager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/base-service-props.d.ts +3 -2
- package/lib/typescript/commonjs/src/modules/data-sync/types/base-service-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/convert-data-props.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/data-sync/types/convert-data-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-keys.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-keys.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-props.d.ts +1 -2
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-samples-to-observation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-latest-observation-dates-by-code.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-latest-observation-dates-by-code.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/retry-save.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/session-owner.d.ts +7 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/session-owner.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/to-core-health-observations.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/to-core-health-observations.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/image/components/optimized-image.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/ovok.d.ts +4 -1
- package/lib/typescript/commonjs/src/modules/next/ovok.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/use-native-ovok.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/use-native-ovok.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/questionnaire-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/socket/components/socket-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/tile/types/task-icon-props.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/tile/types/task-icon-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/components/manual-entry-form.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/ui/components/manual-entry-form.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/components/urine-test-result.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/ui/components/urine-test-result.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/hooks/use-accept-invite-link.d.ts +3 -3
- package/lib/typescript/module/src/modules/auth/hooks/use-accept-invite-link.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/hooks/use-delete-account.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/hooks/use-session.d.ts +5 -16
- package/lib/typescript/module/src/modules/auth/hooks/use-session.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/hooks/use-sign-in.d.ts +3 -2
- package/lib/typescript/module/src/modules/auth/hooks/use-sign-in.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/hooks/use-sign-out.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/hooks/use-social-sign-in.d.ts +2 -2
- package/lib/typescript/module/src/modules/auth/hooks/use-social-sign-in.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/profile/components/profile-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/profile/types/profile-form-field.d.ts +1 -1
- package/lib/typescript/module/src/modules/auth/profile/types/profile-form-field.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/register/components/form/register-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/register/types/register-form-props.d.ts +5 -3
- package/lib/typescript/module/src/modules/auth/register/types/register-form-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/register/types/register-form-values.d.ts +2 -2
- package/lib/typescript/module/src/modules/auth/register/types/register-form-values.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/session/logout-session.d.ts +3 -5
- package/lib/typescript/module/src/modules/auth/session/logout-session.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/session/session-snapshot.d.ts +21 -0
- package/lib/typescript/module/src/modules/auth/session/session-snapshot.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/sign-in/components/form/login-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/apple-login-button.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/google-login-button.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/hooks/use-login-form.d.ts +1 -3
- package/lib/typescript/module/src/modules/auth/sign-in/hooks/use-login-form.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/types/apple-login-props.d.ts +2 -2
- package/lib/typescript/module/src/modules/auth/sign-in/types/apple-login-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/types/google-login-props.d.ts +2 -2
- package/lib/typescript/module/src/modules/auth/sign-in/types/google-login-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/types/login-form-context-type.d.ts +2 -4
- package/lib/typescript/module/src/modules/auth/sign-in/types/login-form-context-type.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/types/login-form-props.d.ts +2 -2
- package/lib/typescript/module/src/modules/auth/sign-in/types/login-form-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/types/login-form-values.d.ts +2 -2
- package/lib/typescript/module/src/modules/auth/sign-in/types/login-form-values.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/utils/sign-in-error.d.ts +2 -2
- package/lib/typescript/module/src/modules/auth/utils/sign-in-error.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/background-sync/android-background-sync.d.ts +2 -2
- package/lib/typescript/module/src/modules/background-sync/android-background-sync.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-device/constants/device-model.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-device/constants/device-model.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-device/constants/supported-devices.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-device/constants/supported-devices.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-device/utils/device-query.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-device/utils/device-query.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/constants/built-in-measurement-types.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/constants/built-in-measurement-types.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/constants/measurement-field-catalog.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/constants/measurement-field-catalog.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/custom/compile-case-fields.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/custom/compile-case-fields.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/custom/compile-custom-field.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/custom/compile-custom-field.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.files.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.files.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-data-processor.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-data-processor.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-ecg.sequencer.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-ecg.sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-pod.sequencer.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-pod.sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme.sequencer.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme.sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/f5/f5-scale.sequencer.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/f5/f5-scale.sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/frame-parser.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/frame-parser.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/measurement-state-machine.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/measurement-state-machine.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval-activity-sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.bp-monitors.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.bp-monitors.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.duo-control-device.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.duo-control-device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.ecg-record.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.ecg-record.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.protocol.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.protocol.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.sequencer.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/bioland.bgm.sequencer.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/bioland.bgm.sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/lpm311.protocol.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/lpm311.protocol.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/oxy-s3.sequencer.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/oxy-s3.sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pc80b.sequencer.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pc80b.sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pf10aw1.sequencer.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pf10aw1.sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/poctor.m3102.sequencer.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/poctor.m3102.sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/sp20.sequencer.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/sp20.sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-aa55.sequencer.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-aa55.sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-r20.protocol.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-r20.protocol.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-r20.sequencer.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-r20.sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.bp3-files.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.bp3-files.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.bpm188.sequencer.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.bpm188.sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc100.sequencer.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc100.sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc300.sequencer.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc300.sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pm10.sequencer.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pm10.sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.wbp02.sequencer.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.wbp02.sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/series-slots.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/series-slots.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/create-device-params.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/create-device-params.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/custom-case-spec.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/custom-case-spec.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/custom-device-definition.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/custom-device-definition.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/custom-measurement-spec.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/custom-measurement-spec.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/custom-measurement.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/custom-measurement.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/dependent-result-handler-params.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/dependent-result-handler-params.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/device-data.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/device-data.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/device-measurement-map.d.ts +2 -2
- package/lib/typescript/module/src/modules/bt-management/types/device-measurement-map.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/device-status-change-callback.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/device-status-change-callback.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/measurement-group.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/measurement-group.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/measurement-series.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/measurement-series.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/measurement-with-case-type.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/measurement-with-case-type.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/parsing-case.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/parsing-case.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/result-policy.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/result-policy.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/utils/convert-ecg-diagnostic-flag.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/utils/convert-ecg-diagnostic-flag.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/utils/parse-measurement.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/utils/parse-measurement.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/utils/result-identity.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/utils/result-identity.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/utils/supported-measurement-type-keys.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/utils/supported-measurement-type-keys.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/cms/cms-locale.d.ts +2 -0
- package/lib/typescript/module/src/modules/cms/cms-locale.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/cms/hooks/use-cms-content.d.ts +6 -7
- package/lib/typescript/module/src/modules/cms/hooks/use-cms-content.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/cms/hooks/use-cms-locale.d.ts +1 -6
- package/lib/typescript/module/src/modules/cms/hooks/use-cms-locale.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/cms/hooks/use-cms-translations.d.ts +2 -9
- package/lib/typescript/module/src/modules/cms/hooks/use-cms-translations.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/cms/merge-cms-translations.d.ts +1 -1
- package/lib/typescript/module/src/modules/cms/merge-cms-translations.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/hooks/use-health-sync-runner.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/services/base-health-sync-service.d.ts +0 -1
- package/lib/typescript/module/src/modules/data-sync/services/base-health-sync-service.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/services/managers/data-processor.d.ts +2 -2
- package/lib/typescript/module/src/modules/data-sync/services/managers/data-processor.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/services/managers/instance-manager.d.ts +2 -0
- package/lib/typescript/module/src/modules/data-sync/services/managers/instance-manager.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/services/managers/storage-manager.d.ts +11 -26
- package/lib/typescript/module/src/modules/data-sync/services/managers/storage-manager.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/services/managers/sync-state-manager.d.ts +3 -3
- package/lib/typescript/module/src/modules/data-sync/services/managers/sync-state-manager.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/base-service-props.d.ts +3 -2
- package/lib/typescript/module/src/modules/data-sync/types/base-service-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/convert-data-props.d.ts +2 -2
- package/lib/typescript/module/src/modules/data-sync/types/convert-data-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/health-sync-keys.d.ts +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/health-sync-keys.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/health-sync-props.d.ts +1 -2
- package/lib/typescript/module/src/modules/data-sync/types/health-sync-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/convert-samples-to-observation.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-latest-observation-dates-by-code.d.ts +2 -2
- package/lib/typescript/module/src/modules/data-sync/utils/get-latest-observation-dates-by-code.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/retry-save.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/session-owner.d.ts +7 -0
- package/lib/typescript/module/src/modules/data-sync/utils/session-owner.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/utils/to-core-health-observations.d.ts +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/to-core-health-observations.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/image/components/optimized-image.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/ovok.d.ts +4 -1
- package/lib/typescript/module/src/modules/next/ovok.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/use-native-ovok.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/use-native-ovok.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/questionnaire-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts +2 -2
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/socket/components/socket-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/tile/types/task-icon-props.d.ts +1 -1
- package/lib/typescript/module/src/modules/tile/types/task-icon-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/components/manual-entry-form.d.ts +1 -1
- package/lib/typescript/module/src/modules/ui/components/manual-entry-form.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/components/urine-test-result.d.ts +1 -1
- package/lib/typescript/module/src/modules/ui/components/urine-test-result.d.ts.map +1 -1
- package/package.json +3 -3
- package/lib/commonjs/modules/auth/session/save-login.js +0 -19
- package/lib/commonjs/modules/auth/session/save-login.js.map +0 -1
- package/lib/commonjs/modules/auth/session/session-store-refresh.js +0 -142
- package/lib/commonjs/modules/auth/session/session-store-refresh.js.map +0 -1
- package/lib/commonjs/modules/auth/session/session-store-request-state.js +0 -73
- package/lib/commonjs/modules/auth/session/session-store-request-state.js.map +0 -1
- package/lib/commonjs/modules/auth/session/session-store-types.js +0 -39
- package/lib/commonjs/modules/auth/session/session-store-types.js.map +0 -1
- package/lib/commonjs/modules/auth/session/session-store.js +0 -144
- package/lib/commonjs/modules/auth/session/session-store.js.map +0 -1
- package/lib/module/modules/auth/session/save-login.js +0 -15
- package/lib/module/modules/auth/session/save-login.js.map +0 -1
- package/lib/module/modules/auth/session/session-store-refresh.js +0 -138
- package/lib/module/modules/auth/session/session-store-refresh.js.map +0 -1
- package/lib/module/modules/auth/session/session-store-request-state.js +0 -69
- package/lib/module/modules/auth/session/session-store-request-state.js.map +0 -1
- package/lib/module/modules/auth/session/session-store-types.js +0 -33
- package/lib/module/modules/auth/session/session-store-types.js.map +0 -1
- package/lib/module/modules/auth/session/session-store.js +0 -140
- package/lib/module/modules/auth/session/session-store.js.map +0 -1
- package/lib/typescript/commonjs/src/modules/auth/session/save-login.d.ts +0 -4
- package/lib/typescript/commonjs/src/modules/auth/session/save-login.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-refresh.d.ts +0 -8
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-refresh.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-request-state.d.ts +0 -23
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-request-state.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-types.d.ts +0 -40
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-types.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/auth/session/session-store.d.ts +0 -4
- package/lib/typescript/commonjs/src/modules/auth/session/session-store.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/auth/session/save-login.d.ts +0 -4
- package/lib/typescript/module/src/modules/auth/session/save-login.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/auth/session/session-store-refresh.d.ts +0 -8
- package/lib/typescript/module/src/modules/auth/session/session-store-refresh.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/auth/session/session-store-request-state.d.ts +0 -23
- package/lib/typescript/module/src/modules/auth/session/session-store-request-state.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/auth/session/session-store-types.d.ts +0 -40
- package/lib/typescript/module/src/modules/auth/session/session-store-types.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/auth/session/session-store.d.ts +0 -4
- package/lib/typescript/module/src/modules/auth/session/session-store.d.ts.map +0 -1
|
@@ -1,30 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import CryptoJS from "crypto-js";
|
|
3
4
|
import { OBSERVATION_SYNC_ID_SYSTEM } from "../../utils/fhir-systems.js";
|
|
4
5
|
import { getHealthRecordIdentifier } from "../../utils/get-health-record-sync-id.js";
|
|
5
6
|
import { replacesSavedObservation } from "../../utils/replaces-saved-observation.js";
|
|
7
|
+
import { healthSyncOwner } from "../../utils/session-owner.js";
|
|
6
8
|
export class StorageManager {
|
|
7
|
-
|
|
8
|
-
* Where an anchor goes when the host client has no storage.
|
|
9
|
-
*
|
|
10
|
-
* `clientStorage` is assigned from `OvokClient`'s `storage` option and from
|
|
11
|
-
* nowhere else, so a host that constructs its client without one leaves it
|
|
12
|
-
* `undefined` — and the `?.` below then swallowed every write while
|
|
13
|
-
* `getAnchor` answered `undefined` for ever. That is not a lost
|
|
14
|
-
* optimisation: `getObservationBodiesForType` continues only when a full
|
|
15
|
-
* provider page includes an anchor, and `syncDataByType` loops while that is
|
|
16
|
-
* true. A full page without an anchor is the provider's final page, and a
|
|
17
|
-
* daily aggregate read has no cursor at all.
|
|
18
|
-
*
|
|
19
|
-
* The sync must not depend on what the host passed. This map keeps the
|
|
20
|
-
* anchor for the life of the service instance, which is what lets the loop
|
|
21
|
-
* end; when the host DOES provide storage the anchor also survives a
|
|
22
|
-
* restart, which is what keeps the next cold start short.
|
|
23
|
-
*/
|
|
24
|
-
inMemoryAnchors = new Map();
|
|
25
|
-
constructor(client, provider) {
|
|
9
|
+
constructor(client, provider, ownerKey, patientId) {
|
|
26
10
|
this.client = client;
|
|
27
11
|
this.provider = provider;
|
|
12
|
+
this.ownerKey = ownerKey;
|
|
13
|
+
this.patientId = patientId;
|
|
14
|
+
}
|
|
15
|
+
async requireOwner(patientId) {
|
|
16
|
+
const owner = healthSyncOwner(this.client, await this.client.session.current());
|
|
17
|
+
if (!owner || owner.patientId !== patientId || owner.ownerKey !== this.ownerKey) {
|
|
18
|
+
throw new Error("Health sync session changed");
|
|
19
|
+
}
|
|
28
20
|
}
|
|
29
21
|
|
|
30
22
|
/**
|
|
@@ -33,7 +25,8 @@ export class StorageManager {
|
|
|
33
25
|
* out of that check: all of a reading's observations share it.
|
|
34
26
|
*/
|
|
35
27
|
async saveObservations(groups, mode) {
|
|
36
|
-
|
|
28
|
+
await this.requireOwner(this.patientId);
|
|
29
|
+
return this.client.measurements.saveObservationGroups(groups, {
|
|
37
30
|
identifierSystems: [OBSERVATION_SYNC_ID_SYSTEM],
|
|
38
31
|
replace: replacesSavedObservation(mode)
|
|
39
32
|
});
|
|
@@ -41,43 +34,46 @@ export class StorageManager {
|
|
|
41
34
|
|
|
42
35
|
/** Deletes the observations imported from records the provider reports deleted. */
|
|
43
36
|
async deleteObservations(recordIds, patientId) {
|
|
37
|
+
await this.requireOwner(patientId);
|
|
44
38
|
for (const recordId of new Set(recordIds)) {
|
|
45
39
|
const {
|
|
46
40
|
system,
|
|
47
41
|
value
|
|
48
42
|
} = getHealthRecordIdentifier(this.provider, recordId);
|
|
49
43
|
const observations = [];
|
|
50
|
-
for await (const
|
|
44
|
+
for await (const observation of this.client.fhir.search("Observation", {
|
|
51
45
|
subject: `Patient/${patientId}`,
|
|
52
46
|
identifier: `${system}|${value}`
|
|
53
47
|
})) {
|
|
54
|
-
observations.push(
|
|
48
|
+
observations.push(observation);
|
|
49
|
+
}
|
|
50
|
+
for (const observation of observations) {
|
|
51
|
+
if (observation.id) {
|
|
52
|
+
await this.requireOwner(patientId);
|
|
53
|
+
await this.client.fhir.delete("Observation", observation.id);
|
|
54
|
+
}
|
|
55
55
|
}
|
|
56
|
-
await Promise.all(observations.filter(observation => observation.id).map(observation => this.client.deleteResource("Observation", observation.id)));
|
|
57
56
|
}
|
|
58
57
|
}
|
|
59
|
-
saveAnchor(typeIdentifier, anchor) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
this.client.clientStorage.setString(key, anchor);
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
this.inMemoryAnchors.set(key, anchor);
|
|
58
|
+
async saveAnchor(typeIdentifier, anchor) {
|
|
59
|
+
await this.requireOwner(this.patientId);
|
|
60
|
+
await this.client.storage.setItem(this.anchorKey(typeIdentifier), anchor);
|
|
66
61
|
}
|
|
67
|
-
getAnchor(typeIdentifier) {
|
|
68
|
-
|
|
69
|
-
return
|
|
62
|
+
async getAnchor(typeIdentifier) {
|
|
63
|
+
await this.requireOwner(this.patientId);
|
|
64
|
+
return (await this.client.storage.getItem(this.anchorKey(typeIdentifier))) ?? undefined;
|
|
70
65
|
}
|
|
71
66
|
anchorKey(typeIdentifier) {
|
|
72
|
-
|
|
67
|
+
const identity = CryptoJS.SHA256(JSON.stringify([this.ownerKey, this.provider, typeIdentifier])).toString();
|
|
68
|
+
return `health-sync.${identity}`;
|
|
73
69
|
}
|
|
74
|
-
saveAnchors(anchors) {
|
|
75
|
-
|
|
70
|
+
async saveAnchors(anchors) {
|
|
71
|
+
for (const {
|
|
76
72
|
typeIdentifier,
|
|
77
73
|
anchor
|
|
78
|
-
})
|
|
79
|
-
this.saveAnchor(typeIdentifier, anchor);
|
|
80
|
-
}
|
|
74
|
+
} of anchors) {
|
|
75
|
+
await this.saveAnchor(typeIdentifier, anchor);
|
|
76
|
+
}
|
|
81
77
|
}
|
|
82
78
|
}
|
|
83
79
|
//# sourceMappingURL=storage-manager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["OBSERVATION_SYNC_ID_SYSTEM","getHealthRecordIdentifier","replacesSavedObservation","StorageManager","
|
|
1
|
+
{"version":3,"names":["CryptoJS","OBSERVATION_SYNC_ID_SYSTEM","getHealthRecordIdentifier","replacesSavedObservation","healthSyncOwner","StorageManager","constructor","client","provider","ownerKey","patientId","requireOwner","owner","session","current","Error","saveObservations","groups","mode","measurements","saveObservationGroups","identifierSystems","replace","deleteObservations","recordIds","recordId","Set","system","value","observations","observation","fhir","search","subject","identifier","push","id","delete","saveAnchor","typeIdentifier","anchor","storage","setItem","anchorKey","getAnchor","getItem","undefined","identity","SHA256","JSON","stringify","toString","saveAnchors","anchors"],"sourceRoot":"../../../../../../src","sources":["modules/data-sync/services/managers/storage-manager.ts"],"mappings":";;AACA,OAAOA,QAAQ,MAAM,WAAW;AAMhC,SAASC,0BAA0B,QAAQ,6BAA0B;AACrE,SAASC,yBAAyB,QAAQ,0CAAuC;AACjF,SAASC,wBAAwB,QAAQ,2CAAwC;AACjF,SAASC,eAAe,QAAQ,8BAA2B;AAE3D,OAAO,MAAMC,cAAc,CAAC;EAC1BC,WAAWA,CACQC,MAAY,EACZC,QAAwB,EACxBC,QAAgB,EAChBC,SAAiB,EAClC;IAAA,KAJiBH,MAAY,GAAZA,MAAY;IAAA,KACZC,QAAwB,GAAxBA,QAAwB;IAAA,KACxBC,QAAgB,GAAhBA,QAAgB;IAAA,KAChBC,SAAiB,GAAjBA,SAAiB;EACjC;EAEH,MAAMC,YAAYA,CAACD,SAAiB,EAAiB;IACnD,MAAME,KAAK,GAAGR,eAAe,CAAC,IAAI,CAACG,MAAM,EAAE,MAAM,IAAI,CAACA,MAAM,CAACM,OAAO,CAACC,OAAO,CAA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AClC,MAAM,IAAI,CAACH,MAAM,CAACwB,IAAI,CAACM,MAAM,CAAC,aAAa,EAAEP,WAAW,CAACM,EAAE,CAAC;QAC9D;MACF;IACF;EACF;EAEA,MAAME,UAAUA,CAACC,cAAsB,EAAEC,MAAc,EAAiB;IACtE,MAAM,IAAI,CAAC7B,YAAY,CAAC,IAAI,CAACD,SAAS,CAAC;IACvC,MAAM,IAAI,CAACH,MAAM,CAACkC,OAAO,CAACC,OAAO,CAAC,IAAI,CAACC,SAAS,CAACJ,cAAc,CAAC,EAAEC,MAAM,CAAC;EAC3E;EAEA,MAAMI,SAASA,CAACL,cAAsB,EAA+B;IACnE,MAAM,IAAI,CAAC5B,YAAY,CAAC,IAAI,CAACD,SAAS,CAAC;IAEvC,OAAO,CAAC,MAAM,IAAI,CAACH,MAAM,CAACkC,OAAO,CAACI,OAAO,CAAC,IAAI,CAACF,SAAS,CAACJ,cAAc,CAAC,CAAC,KAAKO,SAAS;EACzF;EAEQH,SAASA,CAACJ,cAAsB,EAAU;IAChD,MAAMQ,QAAQ,GAAG/C,QAAQ,CAACgD,MAAM,CAC9BC,IAAI,CAACC,SAAS,CAAC,CAAC,IAAI,CAACzC,QAAQ,EAAE,IAAI,CAACD,QAAQ,EAAE+B,cAAc,CAAC,CAC/D,CAAC,CAACY,QAAQ,CAAC,CAAC;IAEZ,OAAO,eAAeJ,QAAQ,EAAE;EAClC;EAEA,MAAMK,WAAWA,CACfC,OAA0D,EAC3C;IACf,KAAK,MAAM;MAAEd,cAAc;MAAEC;IAAO,CAAC,IAAIa,OAAO,EAAE;MAChD,MAAM,IAAI,CAACf,UAAU,CAACC,cAAc,EAAEC,MAAM,CAAC;IAC/C;EACF;AACF","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SyncStateManager","rerunRequested","shouldStopSync","initialDataFetched","latestObservationDates","results","addResult","result","push","once","sync","inFlight","finally","undefined","reset","pauseReason","pause","reason","resume"],"sourceRoot":"../../../../../../src","sources":["modules/data-sync/services/managers/sync-state-manager.ts"],"mappings":";;AAIA,OAAO,MAAMA,gBAAgB,CAAC;EAC5B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEUC,cAAc,GAAG,KAAK;EAEvBC,cAAc,GAAG,KAAK;EAEtBC,kBAAkB,GAAG,KAAK;EAC1BC,sBAAsB,GAGxB,EAAE;EACAC,OAAO,
|
|
1
|
+
{"version":3,"names":["SyncStateManager","rerunRequested","shouldStopSync","initialDataFetched","latestObservationDates","results","addResult","result","push","once","sync","inFlight","finally","undefined","reset","pauseReason","pause","reason","resume"],"sourceRoot":"../../../../../../src","sources":["modules/data-sync/services/managers/sync-state-manager.ts"],"mappings":";;AAIA,OAAO,MAAMA,gBAAgB,CAAC;EAC5B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEUC,cAAc,GAAG,KAAK;EAEvBC,cAAc,GAAG,KAAK;EAEtBC,kBAAkB,GAAG,KAAK;EAC1BC,sBAAsB,GAGxB,EAAE;EACAC,OAAO,GAAa,EAAE;EAE7BC,SAASA,CAACC,MAAc,EAAQ;IAC9B,IAAI,CAACF,OAAO,CAACG,IAAI,CAACD,MAAM,CAAC;EAC3B;;EAEA;EACA,MAAME,IAAIA,CAACC,IAAyB,EAAiB;IACnD,IAAI,IAAI,CAACC,QAAQ,EAAE;MACjB,IAAI,IAAI,CAACT,cAAc,EAAE;QACvB,IAAI,CAACD,cAAc,GAAG,IAAI;MAC5B;MAEA,MAAMU,QAAQ,GAAG,IAAI,CAACA,QAAQ;MAE9B,MAAMA,QAAQ;MAEd,IAAI,IAAI,CAACV,cAAc,IAAI,CAAC,IAAI,CAACU,QAAQ,EAAE;QACzC,IAAI,CAACV,cAAc,GAAG,KAAK;QAE3B,OAAO,IAAI,CAACQ,IAAI,CAACC,IAAI,CAAC;MACxB;MAEA;IACF;IAEA,IAAI,CAACC,QAAQ,GAAGD,IAAI,CAAC,CAAC,CAACE,OAAO,CAAC,MAAM;MACnC,IAAI,CAACD,QAAQ,GAAGE,SAAS;IAC3B,CAAC,CAAC;IAEF,OAAO,IAAI,CAACF,QAAQ;EACtB;EAEAG,KAAKA,CAAA,EAAS;IACZ,IAAI,CAACZ,cAAc,GAAG,KAAK;IAC3B,IAAI,CAACa,WAAW,GAAGF,SAAS;IAC5B,IAAI,CAACV,kBAAkB,GAAG,KAAK;IAC/B,IAAI,CAACC,sBAAsB,GAAG,EAAE;IAChC,IAAI,CAACC,OAAO,GAAG,EAAE;IACjB,IAAI,CAACJ,cAAc,GAAG,KAAK;EAC7B;EAEAe,KAAKA,CAACC,MAAwB,EAAQ;IACpC,IAAI,CAACf,cAAc,GAAG,IAAI;IAC1B,IAAI,CAACa,WAAW,GAAGE,MAAM;EAC3B;EAEAC,MAAMA,CAAA,EAAS;IACb,IAAI,CAAChB,cAAc,GAAG,KAAK;IAC3B,IAAI,CAACa,WAAW,GAAGF,SAAS;EAC9B;AACF","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { MeasurementTypeKey } from "@ovok/core";
|
|
3
|
+
import { MeasurementTypeKey } from "@ovok/core/next";
|
|
4
4
|
/** Health data that is not represented by a core measurement service. */
|
|
5
5
|
var HealthDataType = /*#__PURE__*/function (HealthDataType) {
|
|
6
6
|
HealthDataType["height"] = "height";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MeasurementTypeKey","HealthDataType","getHealthDataMode","key","configuredMode","stepCount","distance","activeEnergy","flightsClimbed","exerciseMinutes","heartRate","heartRateSummary","sleep","workout"],"sourceRoot":"../../../../../src","sources":["modules/data-sync/types/health-sync-keys.ts"],"mappings":";;AAAA,SAASA,kBAAkB,QAAQ,
|
|
1
|
+
{"version":3,"names":["MeasurementTypeKey","HealthDataType","getHealthDataMode","key","configuredMode","stepCount","distance","activeEnergy","flightsClimbed","exerciseMinutes","heartRate","heartRateSummary","sleep","workout"],"sourceRoot":"../../../../../src","sources":["modules/data-sync/types/health-sync-keys.ts"],"mappings":";;AAAA,SAASA,kBAAkB,QAAQ,iBAAiB;AAOpD;AAAA,IACKC,cAAc,0BAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA,EAAdA,cAAc;AAyBnB,MAAMC,iBAAiB,GAAGA,CACxBC,GAAkB,EAClBC,cAA+B,KACZ;EACnB,IAAIA,cAAc,EAAE;IAClB,OAAOA,cAAc;EACvB;EAEA,QAAQD,GAAG;IACT,KAAKH,kBAAkB,CAACK,SAAS;IACjC,KAAKJ,cAAc,CAACK,QAAQ;IAC5B,KAAKL,cAAc,CAACM,YAAY;IAChC,KAAKN,cAAc,CAACO,cAAc;IAClC,KAAKP,cAAc,CAACQ,eAAe;MACjC,OAAO,aAAa;IACtB,KAAKT,kBAAkB,CAACU,SAAS;IACjC,KAAKT,cAAc,CAACU,gBAAgB;MAClC,OAAO,eAAe;IACxB,KAAKV,cAAc,CAACW,KAAK;IACzB,KAAKX,cAAc,CAACY,OAAO;MACzB,OAAO,SAAS;IAClB;MACE,OAAO,OAAO;EAClB;AACF,CAAC;AAED,SACEZ,cAAc,EACdC,iBAAiB","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { ObservationServiceCreator } from "@ovok/core";
|
|
3
|
+
import { ObservationServiceCreator } from "@ovok/core/dist/client/observation/services/creator";
|
|
4
4
|
import { convertGenericHealthDataToObservation } from "./convert-generic-health-data.js";
|
|
5
5
|
import { getHealthObservationDevice } from "./health-observation-device.js";
|
|
6
6
|
import { hasConfiguredNonLoincCoding } from "./normalize-core-health-observation.js";
|
|
@@ -40,7 +40,7 @@ export const convertRecordsToObservation = async props => {
|
|
|
40
40
|
if (!measurement) {
|
|
41
41
|
return [];
|
|
42
42
|
}
|
|
43
|
-
const observationBody = await client.
|
|
43
|
+
const observationBody = await client.measurements.build({
|
|
44
44
|
measurement
|
|
45
45
|
});
|
|
46
46
|
const typedRecordTiming = record;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ObservationServiceCreator","convertGenericHealthDataToObservation","getHealthObservationDevice","hasConfiguredNonLoincCoding","isCoreMeasurementTypeKey","toCoreHealthObservations","convertRecordsToObservation","props","data","client","measurementTypeKey","mode","record","service","getInstance","getService","typedRecord","measurement","convertRecordToMeasurement","observationBody","
|
|
1
|
+
{"version":3,"names":["ObservationServiceCreator","convertGenericHealthDataToObservation","getHealthObservationDevice","hasConfiguredNonLoincCoding","isCoreMeasurementTypeKey","toCoreHealthObservations","convertRecordsToObservation","props","data","client","measurementTypeKey","mode","record","service","getInstance","getService","typedRecord","measurement","convertRecordToMeasurement","observationBody","measurements","build","typedRecordTiming","device","manufacturer","metadata","model","sourceApp","dataOrigin","recordingMethod","timing","time","undefined","point","start","startTime","end","endTime"],"sourceRoot":"../../../../../src","sources":["modules/data-sync/utils/convert-records-to-observation.ts"],"mappings":";;AACA,SAASA,yBAAyB,QAAQ,qDAAqD;AAK/F,SAASC,qCAAqC,QAAQ,kCAA+B;AACrF,SAASC,0BAA0B,QAAQ,gCAA6B;AACxE,SAASC,2BAA2B,QAAQ,wCAAqC;AACjF,SACEC,wBAAwB,EACxBC,wBAAwB,QACnB,kCAA+B;AAEtC,OAAO,MAAMC,2BAA2B,GAAG,MACzCC,KAAgC,IACL;EAC3B,MAAM;IAAEC,IAAI;IAAEC,MAAM;IAAEC,kBAAkB;IAAEC,IAAI,GAAG;EAAQ,CAAC,GAAGJ,KAAK;EAElE,IAAII,IAAI,KAAK,OAAO,EAAE;IACpB,OAAOV,qCAAqC,CAAC;MAAE,GAAGM,KAAK;MAAEI;IAAK,CAAC,CAAC;EAClE;EAEA,MAAMC,MAAM,GAAG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B,CAACc,eAAe,EAAEZ,KAAK,EAAE,OAAO;IAAEgB,MAAM;IAAEO;EAAO,CAAC,CAAC,CAAC;AACrF,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { ObservationServiceCreator } from "@ovok/core";
|
|
3
|
+
import { ObservationServiceCreator } from "@ovok/core/dist/client/observation/services/creator";
|
|
4
4
|
import { convertGenericHealthDataToObservation } from "./convert-generic-health-data.js";
|
|
5
5
|
import { getHealthObservationDevice } from "./health-observation-device.js";
|
|
6
6
|
import { hasConfiguredNonLoincCoding } from "./normalize-core-health-observation.js";
|
|
@@ -38,7 +38,7 @@ export const convertSamplesToObservation = async props => {
|
|
|
38
38
|
if (!measurement) {
|
|
39
39
|
return [];
|
|
40
40
|
}
|
|
41
|
-
const observationBody = await client.
|
|
41
|
+
const observationBody = await client.measurements.build({
|
|
42
42
|
measurement
|
|
43
43
|
});
|
|
44
44
|
return toCoreHealthObservations(observationBody, props, index => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ObservationServiceCreator","convertGenericHealthDataToObservation","getHealthObservationDevice","hasConfiguredNonLoincCoding","isCoreMeasurementTypeKey","toCoreHealthObservations","convertSamplesToObservation","props","data","client","measurementTypeKey","mode","length","service","getInstance","getService","measurement","convertSamplesToMeasurement","observationBody","
|
|
1
|
+
{"version":3,"names":["ObservationServiceCreator","convertGenericHealthDataToObservation","getHealthObservationDevice","hasConfiguredNonLoincCoding","isCoreMeasurementTypeKey","toCoreHealthObservations","convertSamplesToObservation","props","data","client","measurementTypeKey","mode","length","service","getInstance","getService","measurement","convertSamplesToMeasurement","observationBody","measurements","build","index","sample","device","manufacturer","model","sourceApp","sourceRevision","source","name","undefined","timing","start","startDate","end","endDate"],"sourceRoot":"../../../../../src","sources":["modules/data-sync/utils/convert-samples-to-observation.ts"],"mappings":";;AAKA,SAASA,yBAAyB,QAAQ,qDAAqD;AAM/F,S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,YAAY,EAAEF,MAAM,CAACC,MAAM,EAAEC,YAAY;QACzCC,KAAK,EAAEH,MAAM,CAACC,MAAM,EAAEE,KAAK;QAC3BC,SAAS,EAAEJ,MAAM,CAACK,cAAc,EAAEC,MAAM,EAAEC;MAC5C,CAAC,CAAC,GACFC,SAAS;MACbC,MAAM,EAAE;QAAEC,KAAK,EAAEV,MAAM,EAAEW,SAAS;QAAEC,GAAG,EAAEZ,MAAM,EAAEa;MAAQ;IAC3D,CAAC;EACH,CAAC,CAAC;AACJ,CAAC","ignoreList":[]}
|
|
@@ -23,7 +23,7 @@ export const getLatestObservationDatesByCode = async ({
|
|
|
23
23
|
provider
|
|
24
24
|
}) => {
|
|
25
25
|
const entries = codes.map(code => generateObservationSearchEntry(code, patientId, provider));
|
|
26
|
-
const bundle = await client.
|
|
26
|
+
const bundle = await client.fhir.batch({
|
|
27
27
|
resourceType: "Bundle",
|
|
28
28
|
type: "batch",
|
|
29
29
|
entry: entries
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["OBSERVATION_SYNC_PROVIDER_SYSTEM","generateObservationSearchEntry","code","patientId","provider","searchParams","URLSearchParams","set","encodeURIComponent","request","method","url","toString","getLatestObservationDatesByCode","codes","client","entries","map","bundle","
|
|
1
|
+
{"version":3,"names":["OBSERVATION_SYNC_PROVIDER_SYSTEM","generateObservationSearchEntry","code","patientId","provider","searchParams","URLSearchParams","set","encodeURIComponent","request","method","url","toString","getLatestObservationDatesByCode","codes","client","entries","map","bundle","fhir","batch","resourceType","type","entry","idx","observationResource","resource","observation","date","effectivePeriod","end","effectiveDateTime"],"sourceRoot":"../../../../../src","sources":["modules/data-sync/utils/get-latest-observation-dates-by-code.ts"],"mappings":";;AAMA,SAASA,gCAAgC,QAAQ,mBAAgB;AAEjE,MAAMC,8BAA8B,GAAGA,CACrCC,IAAY,EACZC,SAAiB,EACjBC,QAAgB,KACA;EAChB,MAAMC,YAAY,GAAG,IAAIC,eAAe,CAAC,CAAC;EAE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iBAAiB;IAErE,OAAO;MACL7B,IAAI,EAAEY,KAAK,CAACU,GAAG,CAAC;MAChBI,IAAI,EAAEA;IACR,CAAC;EACH,CAAC,CAAC;AACJ,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { OvokRateLimitError } from "@ovok/core/next";
|
|
4
4
|
const RETRY_DELAYS_MS = [1000, 4000, 16000];
|
|
5
5
|
|
|
6
6
|
// A throttle or a passing server or upstream fault; 501 (not set up) and every refusal fail fast.
|
|
@@ -33,7 +33,7 @@ const getNestedRecords = error => {
|
|
|
33
33
|
return records;
|
|
34
34
|
};
|
|
35
35
|
const getResponseStatuses = record => [record.status, record.statusCode, asRecord(record.response)?.status, ...(Array.isArray(record.entry) ? record.entry.map(entry => asRecord(asRecord(entry)?.response)?.status) : [])];
|
|
36
|
-
const getStatuses = error => [...getNestedRecords(error).flatMap(getResponseStatuses)
|
|
36
|
+
const getStatuses = error => [...getNestedRecords(error).flatMap(getResponseStatuses)].map(statusNumber).filter(status => status !== undefined);
|
|
37
37
|
class SyncRetryCancelledError extends Error {
|
|
38
38
|
constructor() {
|
|
39
39
|
super("Health sync retry cancelled");
|
|
@@ -63,8 +63,7 @@ const parseRateLimitReset = value => {
|
|
|
63
63
|
return reset > nowInSeconds - 60 ? Math.max(0, reset * 1000 - Date.now()) : reset * 1000;
|
|
64
64
|
};
|
|
65
65
|
function getRetryAfterMs(error) {
|
|
66
|
-
const
|
|
67
|
-
const values = typeof ovokRetryAfter === "number" && ovokRetryAfter >= 0 ? [ovokRetryAfter] : [];
|
|
66
|
+
const values = [];
|
|
68
67
|
for (const record of getNestedRecords(error)) {
|
|
69
68
|
const retryAfter = record.retryAfterMs;
|
|
70
69
|
if (typeof retryAfter === "number" && retryAfter >= 0) {
|
|
@@ -92,7 +91,7 @@ function getRetryAfterMs(error) {
|
|
|
92
91
|
return values.length > 0 ? Math.max(...values) : undefined;
|
|
93
92
|
}
|
|
94
93
|
function isRetryableSyncError(error) {
|
|
95
|
-
if (
|
|
94
|
+
if (error instanceof OvokRateLimitError) {
|
|
96
95
|
return true;
|
|
97
96
|
}
|
|
98
97
|
const statuses = getStatuses(error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["OvokRateLimitError","RETRY_DELAYS_MS","RETRYABLE_STATUSES","Set","asRecord","value","undefined","statusNumber","parsed","Number","parseInt","isInteger","getNestedRecords","error","records","pending","seen","length","record","shift","has","add","push","key","nested","getResponseStatuses","status","statusCode","response","Array","isArray","entry","map","getStatuses","flatMap","filter","SyncRetryCancelledError","Error","constructor","name","isSyncRetryCancelled","getHeader","headers","lowerName","toLowerCase","Object","entries","find","String","parseRetryAfter","seconds","isFinite","date","Date","parse","Math","max","now","parseRateLimitReset","reset","nowInSeconds","getRetryAfterMs","values","retryAfter","retryAfterMs","responseRetryAfter","retryAfterHeader","rateLimitReset","rateLimitResetMs","rateLimit","embeddedReset","match","embeddedResetMs","isRetryableSyncError","statuses","some","message","TypeError","test","getSyncRetryDelayMs","retryIndex","at","withSyncRetries","operation","shouldCancel","Promise","resolve","reject","timers","poll","setInterval","timer","clearTimeout","clearInterval","setTimeout"],"sourceRoot":"../../../../../src","sources":["modules/data-sync/utils/retry-save.ts"],"mappings":";;AAAA,SAASA,kBAAkB,QAAQ,iBAAiB;AAEpD,MAAMC,eAAe,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAU;;AAEpD;AACA,MAAMC,kBAAkB,GAAG,IAAIC,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAI7D,SAASC,QAAQA,CAACC,KAAc,EAA2B;EACzD,OAAO,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,KAAK,IAAI,GAC7CA,KAAK,GACNC,SAAS;AACf;AAEA,MAAMC,YA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AAII,MAAM,CAACG,KAAK,EAAE;YAChBC,YAAY,CAACJ,MAAM,CAACG,KAAK,CAAC;UAC5B;UAEA,IAAIH,MAAM,CAACC,IAAI,EAAE;YACfI,aAAa,CAACL,MAAM,CAACC,IAAI,CAAC;UAC5B;UAEAF,MAAM,CAAC,IAAInD,uBAAuB,CAAC,CAAC,CAAC;QACvC,CAAC,EAAE,EAAE,CAAC;QAENoD,MAAM,CAACG,KAAK,GAAGG,UAAU,CAAC,MAAM;UAC9B,IAAIN,MAAM,CAACC,IAAI,EAAE;YACfI,aAAa,CAACL,MAAM,CAACC,IAAI,CAAC;UAC5B;UAEAH,OAAO,CAAC,CAAC;QACX,CAAC,EAAEP,mBAAmB,CAAClE,KAAK,EAAEmE,UAAU,CAAC,CAAC;MAC5C,CAAC,CAAC;IACJ;EACF;AACF;AAEA,SAASD,mBAAmB,EAAEN,oBAAoB,EAAEjC,oBAAoB,EAAE0C,eAAe","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export const healthSyncOwner = (client, session) => {
|
|
4
|
+
const patientId = session?.profile.reference.match(/^Patient\/([^/]+)$/)?.[1];
|
|
5
|
+
if (!session || !patientId) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
return {
|
|
9
|
+
patientId,
|
|
10
|
+
ownerKey: JSON.stringify([client.baseUrl, client.tenantCode, session.project.reference, session.profile.reference])
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=session-owner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["healthSyncOwner","client","session","patientId","profile","reference","match","ownerKey","JSON","stringify","baseUrl","tenantCode","project"],"sourceRoot":"../../../../../src","sources":["modules/data-sync/utils/session-owner.ts"],"mappings":";;AAIA,OAAO,MAAMA,eAAe,GAAGA,CAC7BC,MAAY,EACZC,OAAuB,KAC4B;EACnD,MAAMC,SAAS,GAAGD,OAAO,EAAEE,OAAO,CAACC,SAAS,CAACC,KAAK,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC;EAE7E,IAAI,CAACJ,OAAO,IAAI,CAACC,SAAS,EAAE;IAC1B,OAAO,IAAI;EACb;EAEA,OAAO;IACLA,SAAS;IACTI,QAAQ,EAAEC,IAAI,CAACC,SAAS,CAAC,CACvBR,MAAM,CAACS,OAAO,EACdT,MAAM,CAACU,UAAU,EACjBT,OAAO,CAACU,OAAO,CAACP,SAAS,EACzBH,OAAO,CAACE,OAAO,CAACC,SAAS,CAC1B;EACH,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { MeasurementTypeKey } from "@ovok/core";
|
|
3
|
+
import { MeasurementTypeKey } from "@ovok/core/next";
|
|
4
4
|
import { withHealthRecordTiming } from "./health-record-timing.js";
|
|
5
5
|
import { normalizeCoreHealthObservation } from "./normalize-core-health-observation.js";
|
|
6
6
|
const isCoreMeasurementTypeKey = value => Object.values(MeasurementTypeKey).includes(value);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MeasurementTypeKey","withHealthRecordTiming","normalizeCoreHealthObservation","isCoreMeasurementTypeKey","value","Object","values","includes","toCoreHealthObservations","observations","props","sourceAt","map","observation","index","device","timing","applyCatalogCoding","length","data"],"sourceRoot":"../../../../../src","sources":["modules/data-sync/utils/to-core-health-observations.ts"],"mappings":";;AACA,SAASA,kBAAkB,QAAQ,
|
|
1
|
+
{"version":3,"names":["MeasurementTypeKey","withHealthRecordTiming","normalizeCoreHealthObservation","isCoreMeasurementTypeKey","value","Object","values","includes","toCoreHealthObservations","observations","props","sourceAt","map","observation","index","device","timing","applyCatalogCoding","length","data"],"sourceRoot":"../../../../../src","sources":["modules/data-sync/utils/to-core-health-observations.ts"],"mappings":";;AACA,SAASA,kBAAkB,QAAQ,iBAAiB;AAIpD,SAASC,sBAAsB,QAAQ,2BAAwB;AAC/D,SAASC,8BAA8B,QAAQ,wCAAqC;AAOpF,MAAMC,wBAAwB,GAC5BC,KAAa,IAEbC,MAAM,CAACC,MAAM,CAACN,kBAAkB,CAAC,CAACO,QAAQ,CAACH,KAA2B,CAAC;;AAEzE;AACA,MAAMI,wBAAwB,GAAGA,CAC/BC,YAA2B,EAC3BC,KAAgC,EAChCC,QAA8C,KAE9CF,YAAY,CAACG,GAAG,CAAC,CAACC,WAAW,EAAEC,KAAK,KAAK;EACvC,MAAM;IAAEC,MAAM;IAAEC;EAAO,CAAC,GAAGL,QAAQ,CAACG,KAAK,CAAC;EAE1C,OAAOZ,8BAA8B,CACnCD,sBAAsB,CACpB;IACE,GAAGY,WAAW;IACd,IAAIE,MAAM,GACN;MAAEA,MAAM,EAAE;QAAE,IAAIF,WAAW,CAACE,MAAM,IAAI,CAAC,CAAC,CAAC;QAAE,GAAGA;MAAO;IAAE,CAAC,GACxD,CAAC,CAAC;EACR,CAAC,EACDC,MACF,CAAC,EACD;IACE,GAAGN,KAAK;IACRO,kBAAkB,EAAER,YAAY,CAACS,MAAM,KAAK,CAAC,IAAIR,KAAK,CAACS,IAAI,CAACD,MAAM,KAAK;EACzE,CACF,CAAC;AACH,CAAC,CAAC;AAEJ,SAASf,wBAAwB,EAAEK,wBAAwB","ignoreList":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { useClient } from "@ovok/core";
|
|
4
3
|
import { Image as ExpoImage, useImage } from "expo-image";
|
|
5
4
|
import * as React from "react";
|
|
6
5
|
import { StyleSheet, View } from "react-native";
|
|
7
6
|
import { SvgXml } from "react-native-svg";
|
|
7
|
+
import { useNativeOvok } from "../../next/use-native-ovok.js";
|
|
8
8
|
import { calculateDimension } from "../utils/calculate-dimension.js";
|
|
9
9
|
import { getOptimizedImageUrl } from "../utils/get-optimized-image-url.js";
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -23,7 +23,7 @@ export const OptimizedImage = /*#__PURE__*/React.memo(({
|
|
|
23
23
|
aspectRatio: providedAspectRatio,
|
|
24
24
|
...rest
|
|
25
25
|
}) => {
|
|
26
|
-
const client =
|
|
26
|
+
const client = useNativeOvok();
|
|
27
27
|
const retryCount = React.useRef(0);
|
|
28
28
|
const [failedUri, setFailedUri] = React.useState(null);
|
|
29
29
|
const [containerSize, setContainerSize] = React.useState({
|
|
@@ -39,7 +39,7 @@ export const OptimizedImage = /*#__PURE__*/React.memo(({
|
|
|
39
39
|
width: calculatedWidth,
|
|
40
40
|
height: calculatedHeight,
|
|
41
41
|
fit,
|
|
42
|
-
baseUrl: client.
|
|
42
|
+
baseUrl: client.baseUrl
|
|
43
43
|
}), [uri, calculatedWidth, calculatedHeight, fit, client]);
|
|
44
44
|
React.useEffect(() => {
|
|
45
45
|
retryCount.current = 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["Image","ExpoImage","useImage","React","StyleSheet","View","SvgXml","useNativeOvok","calculateDimension","getOptimizedImageUrl","jsx","_jsx","OptimizedImage","memo","uri","width","height","fit","style","onLoad","onError","placeholder","fallback","maxRetries","containerStyle","aspectRatio","providedAspectRatio","rest","client","retryCount","useRef","failedUri","setFailedUri","useState","containerSize","setContainerSize","calculatedAspectRatio","setCalculatedAspectRatio","useMemo","calculatedWidth","calculatedHeight","undefined","optimizedUri","baseUrl","useEffect","current","image","error","retry","Error","message","String","imageStyle","styles","base","contentFit","handleLayout","useCallback","event","nativeEvent","layout","handleLoad","imageWidth","imageHeight","source","startsWith","payload","split","xml","includes","globalThis","atob","decodeURIComponent","container","onLayout","children","create","overflow"],"sourceRoot":"../../../../../src","sources":["modules/image/components/optimized-image.tsx"],"mappings":";;AAAA,SACEA,KAAK,IAAIC,SAAS,EAGlBC,QAAQ,QACH,YAAY;AACnB,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,EAAqBC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QAAQ,EAAElB,YAAa;MAAAmB,QAAA,eACtEhE,IAAA,CAACL,MAAM;QACL8D,GAAG,EAAEA,GAAG,IAAIF,OAAQ;QACpBnD,KAAK,EAAEwB,eAAgB;QACvBvB,MAAM,EAAEwB,gBAAiB;QACzBtB,KAAK,EAAE,CAACmC,MAAM,CAACC,IAAI,EAAE;UAAEvC,KAAK,EAAEwB,eAAe;UAAEvB,MAAM,EAAEwB;QAAiB,CAAC,EAAEtB,KAAK;MAAE,CACnF;IAAC,CACE,CAAC;EAEX;EAEA,oBACEP,IAAA,CAACN,IAAI;IAACa,KAAK,EAAE,CAACmC,MAAM,CAACoB,SAAS,EAAEjD,cAAc,CAAE;IAACkD,QAAQ,EAAElB,YAAa;IAAAmB,QAAA,eACtEhE,IAAA,CAACV,SAAS;MAER+D,MAAM,EACJjC,SAAS,KAAKW,YAAY,GACrBpB,QAAQ,IAAID,WAAW,IAAI,IAAI,GAC/ByB,KAAK,IAAIzB,WAAW,IAAI,IAC9B;MACDH,KAAK,EAAEkC,UAAW;MAClB/B,WAAW,EAAEA,WAAY;MACzBF,MAAM,EAAE0C,UAAW;MACnBzC,OAAO,EACL0B,KAAK,IAAIf,SAAS,KAAKW,YAAY,GAAGtB,OAAO,GAAGqB,SACjD;MAAA,GACGd,IAAI;MACR4B,UAAU,EAAEtC;IAAuB,GAb9B,GAAGyB,YAAY,IAAIb,UAAU,CAACgB,OAAO,EAc3C;EAAC,CACE,CAAC;AAEX,CACF,CAAC;AAED,MAAMQ,MAAM,GAAGjD,UAAU,CAACwE,MAAM,CAAC;EAC/BH,SAAS,EAAE;IACTI,QAAQ,EAAE;EACZ,CAAC;EACDvB,IAAI,EAAE;IACJuB,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -15,12 +15,16 @@ class Ovok extends CoreOvok {
|
|
|
15
15
|
getRandomValues,
|
|
16
16
|
...shared
|
|
17
17
|
} = config;
|
|
18
|
+
const storage = new SecureStoreStorage(secureStore, secureStoreOptions);
|
|
18
19
|
installRandomValues(getRandomValues);
|
|
19
20
|
super({
|
|
20
21
|
...shared,
|
|
21
22
|
clientSecret: undefined,
|
|
22
|
-
storage
|
|
23
|
+
storage
|
|
23
24
|
});
|
|
25
|
+
this.baseUrl = shared.baseUrl.endsWith("/") ? shared.baseUrl : `${shared.baseUrl}/`;
|
|
26
|
+
this.tenantCode = shared.tenantCode;
|
|
27
|
+
this.storage = storage;
|
|
24
28
|
}
|
|
25
29
|
}
|
|
26
30
|
export { Ovok };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Ovok","CoreOvok","installRandomValues","SecureStoreStorage","constructor","config","secureStore","secureStoreOptions","getRandomValues","shared","clientSecret","undefined","
|
|
1
|
+
{"version":3,"names":["Ovok","CoreOvok","installRandomValues","SecureStoreStorage","constructor","config","secureStore","secureStoreOptions","getRandomValues","shared","storage","clientSecret","undefined","baseUrl","endsWith","tenantCode"],"sourceRoot":"../../../../src","sources":["modules/next/ovok.ts"],"mappings":";;AAAA,SAASA,IAAI,IAAIC,QAAQ,QAAQ,iBAAiB;AAMlD,SAASC,mBAAmB,QAAQ,oBAAiB;AACrD,SAASC,kBAAkB,QAAQ,2BAAwB;;AAI3D;;AAOA;AACA,MAAMH,IAAI,SAASC,QAAQ,CAAC;EAK1BG,WAAWA,CAACC,MAAwB,EAAE;IACpC,MAAM;MAAEC,WAAW;MAAEC,kBAAkB;MAAEC,eAAe;MAAE,GAAGC;IAAO,CAAC,GAAGJ,MAAM;IAC9E,MAAMK,OAAO,GAAG,IAAIP,kBAAkB,CAACG,WAAW,EAAEC,kBAAkB,CAAC;IAEvEL,mBAAmB,CAACM,eAAe,CAAC;IACpC,KAAK,CAAC;MACJ,GAAGC,MAAM;MACTE,YAAY,EAAEC,SAAS;MACvBF;IACF,CAAC,CAAC;IACF,IAAI,CAACG,OAAO,GAAGJ,MAAM,CAACI,OAAO,CAACC,QAAQ,CAAC,GAAG,CAAC,GAAGL,MAAM,CAACI,OAAO,GAAG,GAAGJ,MAAM,CAACI,OAAO,GAAG;IACnF,IAAI,CAACE,UAAU,GAAGN,MAAM,CAACM,UAAU;IACnC,IAAI,CAACL,OAAO,GAAGA,OAAO;EACxB;AACF;AAEA,SAASV,IAAI","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useOvok } from "@ovok/core/next/react";
|
|
4
|
+
import { Ovok } from "./ovok.js";
|
|
5
|
+
export const useNativeOvok = () => {
|
|
6
|
+
const client = useOvok();
|
|
7
|
+
if (!(client instanceof Ovok)) {
|
|
8
|
+
throw new Error("Native modules require an @ovok/native/next Ovok client.");
|
|
9
|
+
}
|
|
10
|
+
return client;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=use-native-ovok.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useOvok","Ovok","useNativeOvok","client","Error"],"sourceRoot":"../../../../src","sources":["modules/next/use-native-ovok.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,uBAAuB;AAE/C,SAASC,IAAI,QAAQ,WAAQ;AAE7B,OAAO,MAAMC,aAAa,GAAGA,CAAA,KAAY;EACvC,MAAMC,MAAM,GAAGH,OAAO,CAAC,CAAC;EAExB,IAAI,EAAEG,MAAM,YAAYF,IAAI,CAAC,EAAE;IAC7B,MAAM,IAAIG,KAAK,CAAC,0DAA0D,CAAC;EAC7E;EAEA,OAAOD,MAAM;AACf,CAAC","ignoreList":[]}
|
package/lib/module/modules/questionnaire-response-form/components/questionnaire-form-provider.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/* eslint-disable max-lines */
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { useOvok } from "@ovok/core/next/react";
|
|
6
6
|
import { useFormik } from "formik";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { useTranslation } from "react-i18next";
|
|
@@ -27,7 +27,7 @@ export const QuestionnaireFormProvider = /*#__PURE__*/React.memo(({
|
|
|
27
27
|
resolveQuestionnaireConstraint,
|
|
28
28
|
resolveQuestionnaireUnitOptions
|
|
29
29
|
}) => {
|
|
30
|
-
const client =
|
|
30
|
+
const client = useOvok();
|
|
31
31
|
const {
|
|
32
32
|
i18n
|
|
33
33
|
} = useTranslation();
|
|
@@ -69,13 +69,13 @@ export const QuestionnaireFormProvider = /*#__PURE__*/React.memo(({
|
|
|
69
69
|
submissionIdentifier.current = null;
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
|
-
const
|
|
73
|
-
if (!
|
|
72
|
+
const profileReference = (await client.session.current())?.profile.reference;
|
|
73
|
+
if (!profileReference) {
|
|
74
74
|
throw new Error("questionnaire-form.error.profile-not-found");
|
|
75
75
|
}
|
|
76
76
|
const response = QuestionnaireSubmitUtils.createQuestionnaireResponse(submittedValues, pages, questionnaire, renderItem, resolveQuestionnaireConstraint, resolveQuestionnaireUnitOptions);
|
|
77
77
|
response.subject = {
|
|
78
|
-
reference:
|
|
78
|
+
reference: profileReference
|
|
79
79
|
};
|
|
80
80
|
const currentSubmissionSignature = JSON.stringify({
|
|
81
81
|
questionnaire: response.questionnaire,
|
package/lib/module/modules/questionnaire-response-form/components/questionnaire-form-provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["useOvok","useFormik","React","useTranslation","QuestionnaireFormContext","useInitialSelectedValues","ConditionUtils","FormUtils","FormValidation","QuestionnaireSubmitUtils","QuestionnaireNavigationProvider","jsx","_jsx","QuestionnaireFormProvider","memo","children","questionnaire","initialValues","_initialValues","onSubmit","onSuccess","onError","paged","locale","renderItem","resolveQuestionnaireConstraint","resolveQuestionnaireUnitOptions","client","i18n","resolvedLocale","language","currentPageIndex","setCurrentPageIndex","useState","currentItemIndex","setCurrentItemIndex","errorMessage","setErrorMessage","submissionError","setSubmissionError","submissionInFlight","useRef","submissionIdentifier","submissionSignature","pages","useMemo","extractPagesFromQuestionnaire","initializeDefaultValues","handleSubmit","useCallback","values","formikHelpers","current","validationResult","validateRequiredFields","isValid","pageIndex","itemIndex","firstUnansweredLocation","failureReason","submittedValues","currentLinkId","profileReference","session","profile","reference","Error","response","createQuestionnaireResponse","subject","currentSubmissionSignature","JSON","stringify","items","item","id","Date","now","Math","random","toString","slice","identifierValue","identifierSystem","identifier","system","value","extractObservations","questionnaireHasObservationExtraction","createdResponse","persistQuestionnaireResponse","error","typedError","message","startsWith","allItems","getAllQuestionnaireItems","formik","validateOnBlur","enableReinitialize","validate","cleanedValues","hasChanges","enabledLinkIds","Set","getEnabledItems","map","linkId","forEach","has","undefined","setValues","Object","some","setFieldError","setFieldValue","useEffect","retrySubmit","submitForm","currentPage","enabledItems","getEnabledItemsForPage","length","max","min","currentItem","allEnabledItems","contextValue","Provider"],"sourceRoot":"../../../../../src","sources":["modules/questionnaire-response-form/components/questionnaire-form-provider.tsx"],"mappings":";;AAAA;;AAEA,SAASA,OAAO,QAAQ,uBAAuB;AAC/C,SAAwBC,SAAS,QAAQ,QAAQ;AACjD,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,eAAe;AAE9C,SAASC,wBAAwB,QAAQ,2CAAwC;AACjF,SAASC,wBAAwB,QAAQ,mBAAU;AAGnD,SAASC,cAAc,QAAQ,6BAA0B;AACzD,SAASC,SAAS,QAAQ,wBAAqB;AAC/C,SAASC,cAAc,QAAQ,6BAA0B;AACzD,SAASC,wBAAwB,QAAQ,wCAAqC;AAE9E,SAASC,+BAA+B,QAAQ,wCAAqC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEtF,OAAO,MAAMC,yBAAyB,gBAAGX,KAAK,CAACY,IAAI,CACjD,CAAC;EACCC,QAAQ;EACRC,aAAa;EACbC,aAAa,EAAEC,cAAc;EAC7BC,QAAQ;EACRC,SAAS;EACTC,OAAO;EACPC,KAAK,GAAG,IAAI;EACZC,MAAM;EACNC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