@ovok/native 1.6.1 → 1.6.3
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/android/src/main/java/com/ovok/sdk/backgroundsync/OvokBackgroundSyncModule.java +25 -3
- package/android/src/main/java/com/ovok/sdk/backgroundsync/OvokHealthConnectWorker.java +6 -2
- package/app.plugin.js +4 -2
- package/lib/commonjs/modules/auth/default-translation.js +69 -0
- package/lib/commonjs/modules/auth/default-translation.js.map +1 -0
- package/lib/commonjs/modules/auth/delete-account-button/components/delete-account-button.js +2 -0
- package/lib/commonjs/modules/auth/delete-account-button/components/delete-account-button.js.map +1 -1
- package/lib/commonjs/modules/auth/hooks/use-session.js +22 -6
- package/lib/commonjs/modules/auth/hooks/use-session.js.map +1 -1
- package/lib/commonjs/modules/auth/index.js +1 -0
- package/lib/commonjs/modules/auth/index.js.map +1 -1
- package/lib/commonjs/modules/auth/logout-button/components/logout-button.js +27 -1
- package/lib/commonjs/modules/auth/logout-button/components/logout-button.js.map +1 -1
- package/lib/commonjs/modules/auth/profile/components/profile-form.js +0 -1
- package/lib/commonjs/modules/auth/profile/components/profile-form.js.map +1 -1
- package/lib/commonjs/modules/auth/register/components/form/register-button.js +2 -2
- package/lib/commonjs/modules/auth/register/components/form/register-button.js.map +1 -1
- package/lib/commonjs/modules/auth/register/components/header/description.js +0 -1
- package/lib/commonjs/modules/auth/register/components/header/description.js.map +1 -1
- package/lib/commonjs/modules/auth/register/components/header/title.js +5 -2
- package/lib/commonjs/modules/auth/register/components/header/title.js.map +1 -1
- package/lib/commonjs/modules/auth/register/components/login-link.js +4 -3
- package/lib/commonjs/modules/auth/register/components/login-link.js.map +1 -1
- package/lib/commonjs/modules/auth/register/components/register-with-separator.js +1 -2
- package/lib/commonjs/modules/auth/register/components/register-with-separator.js.map +1 -1
- package/lib/commonjs/modules/auth/reset-password/components/form/inputs.js +4 -1
- package/lib/commonjs/modules/auth/reset-password/components/form/inputs.js.map +1 -1
- package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-button.js +2 -2
- package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-button.js.map +1 -1
- package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-form-provider.js +6 -2
- package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/reset-password/components/header/description.js +0 -1
- package/lib/commonjs/modules/auth/reset-password/components/header/description.js.map +1 -1
- package/lib/commonjs/modules/auth/reset-password/components/header/title.js +5 -2
- package/lib/commonjs/modules/auth/reset-password/components/header/title.js.map +1 -1
- package/lib/commonjs/modules/auth/session/components/session-list.js +5 -3
- package/lib/commonjs/modules/auth/session/components/session-list.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/footer.js +0 -1
- package/lib/commonjs/modules/auth/sign-in/components/footer.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/form/signin-button.js +2 -2
- package/lib/commonjs/modules/auth/sign-in/components/form/signin-button.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/header/description.js +0 -1
- package/lib/commonjs/modules/auth/sign-in/components/header/description.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/header/title.js +5 -2
- package/lib/commonjs/modules/auth/sign-in/components/header/title.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/login-with-separator.js +1 -2
- package/lib/commonjs/modules/auth/sign-in/components/login-with-separator.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/register-link.js +4 -3
- package/lib/commonjs/modules/auth/sign-in/components/register-link.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/site-url.js +1 -3
- package/lib/commonjs/modules/auth/sign-in/components/site-url.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/apple-login-text.js +1 -3
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/apple-login-text.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/google-login-text.js +1 -3
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/google-login-text.js.map +1 -1
- package/lib/commonjs/modules/auth/utils/sign-out-google.js +16 -0
- package/lib/commonjs/modules/auth/utils/sign-out-google.js.map +1 -0
- package/lib/commonjs/modules/background-sync/android-background-sync.js.map +1 -1
- package/lib/commonjs/modules/background-sync/android-bluetooth-foreground-service.js +12 -1
- package/lib/commonjs/modules/background-sync/android-bluetooth-foreground-service.js.map +1 -1
- package/lib/commonjs/modules/breathing-exercise/components/method-name.js +0 -1
- package/lib/commonjs/modules/breathing-exercise/components/method-name.js.map +1 -1
- package/lib/commonjs/modules/breathing-exercise/components/remaining-time.js +0 -1
- package/lib/commonjs/modules/breathing-exercise/components/remaining-time.js.map +1 -1
- package/lib/commonjs/modules/bt-device/components/item/status.js +1 -2
- package/lib/commonjs/modules/bt-device/components/item/status.js.map +1 -1
- package/lib/commonjs/modules/bt-device/components/item/sub-title.js +1 -2
- package/lib/commonjs/modules/bt-device/components/item/sub-title.js.map +1 -1
- package/lib/commonjs/modules/bt-device/components/item/title.js +1 -2
- package/lib/commonjs/modules/bt-device/components/item/title.js.map +1 -1
- package/lib/commonjs/modules/bt-device/constants/supported-devices.js +4 -2
- package/lib/commonjs/modules/bt-device/constants/supported-devices.js.map +1 -1
- package/lib/commonjs/modules/bt-management/components/android-bluetooth-foreground-service.js +12 -1
- package/lib/commonjs/modules/bt-management/components/android-bluetooth-foreground-service.js.map +1 -1
- package/lib/commonjs/modules/bt-management/components/bluetooth-device-picker.js +109 -39
- package/lib/commonjs/modules/bt-management/components/bluetooth-device-picker.js.map +1 -1
- package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js +37 -14
- package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
- package/lib/commonjs/modules/bt-management/constants/measurement-field-catalog.js +32 -8
- package/lib/commonjs/modules/bt-management/constants/measurement-field-catalog.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/runtime-context.js +52 -1
- package/lib/commonjs/modules/bt-management/hooks/runtime-context.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/use-paired-devices.js +20 -11
- package/lib/commonjs/modules/bt-management/hooks/use-paired-devices.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/use-request-permissions.js +5 -8
- package/lib/commonjs/modules/bt-management/hooks/use-request-permissions.js.map +1 -1
- package/lib/commonjs/modules/bt-management/index.js +11 -0
- package/lib/commonjs/modules/bt-management/index.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/background-sync/background-sync-coordinator.js +5 -1
- package/lib/commonjs/modules/bt-management/services/background-sync/background-sync-coordinator.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/bt-manager.js +56 -16
- package/lib/commonjs/modules/bt-management/services/bt-manager.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/boso/boso.medicus.js +9 -6
- package/lib/commonjs/modules/bt-management/services/devices/boso/boso.medicus.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.device.js +97 -2
- 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 +74 -0
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.files.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js +52 -0
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/bt-connection-handler.js +0 -1
- package/lib/commonjs/modules/bt-management/services/devices/bt-connection-handler.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js +22 -2
- package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.file-transfer.js +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.file-transfer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/types/bluetooth-error.js +4 -0
- package/lib/commonjs/modules/bt-management/types/bluetooth-error.js.map +1 -1
- package/lib/commonjs/modules/bt-management/utils/device-title.js +17 -0
- package/lib/commonjs/modules/bt-management/utils/device-title.js.map +1 -0
- package/lib/commonjs/modules/content/content-card/components/cover-badge.js +1 -3
- package/lib/commonjs/modules/content/content-card/components/cover-badge.js.map +1 -1
- package/lib/commonjs/modules/content/content-card/components/title.js +1 -3
- package/lib/commonjs/modules/content/content-card/components/title.js.map +1 -1
- package/lib/commonjs/modules/content/content-detail/components/content-detail-rich-content.js +1 -1
- package/lib/commonjs/modules/content/content-detail/components/content-detail-rich-content.js.map +1 -1
- package/lib/commonjs/modules/data-sync/components/android/android-health-sync.js.map +1 -1
- package/lib/commonjs/modules/data-sync/components/apple/apple-health-sync.js.map +1 -1
- package/lib/commonjs/modules/data-sync/components/manually-request-sheet/description.js +2 -2
- package/lib/commonjs/modules/data-sync/components/manually-request-sheet/description.js.map +1 -1
- package/lib/commonjs/modules/data-sync/components/manually-request-sheet/title.js +0 -1
- package/lib/commonjs/modules/data-sync/components/manually-request-sheet/title.js.map +1 -1
- package/lib/commonjs/modules/data-sync/components/sync-progress-list/sync-progress-list.js +30 -21
- package/lib/commonjs/modules/data-sync/components/sync-progress-list/sync-progress-list.js.map +1 -1
- package/lib/commonjs/modules/data-sync/index.js +11 -0
- package/lib/commonjs/modules/data-sync/index.js.map +1 -1
- package/lib/commonjs/modules/data-sync/services/android-health-sync-service.js.map +1 -1
- package/lib/commonjs/modules/data-sync/services/apple-health-sync-service.js.map +1 -1
- package/lib/commonjs/modules/data-sync/services/base-health-sync-service.js +1 -1
- 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 +40 -5
- package/lib/commonjs/modules/data-sync/services/managers/data-processor.js.map +1 -1
- package/lib/commonjs/modules/data-sync/services/managers/sync-progress-manager.js.map +1 -1
- package/lib/commonjs/modules/data-sync/types/get-data-from-provider-props.js +4 -0
- package/lib/commonjs/modules/data-sync/types/get-total-count-props.js +4 -0
- package/lib/commonjs/modules/data-sync/types/health-data.js +12 -0
- package/lib/commonjs/modules/data-sync/types/health-data.js.map +1 -0
- package/lib/commonjs/modules/data-sync/types/health-sync-keys.js +39 -0
- package/lib/commonjs/modules/data-sync/types/health-sync-keys.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/convert-generic-health-data.js +232 -0
- package/lib/commonjs/modules/data-sync/utils/convert-generic-health-data.js.map +1 -0
- package/lib/commonjs/modules/data-sync/utils/convert-records-to-observation.js +36 -6
- 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 +40 -9
- package/lib/commonjs/modules/data-sync/utils/convert-samples-to-observation.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/generate-observation-entry.js +1 -0
- package/lib/commonjs/modules/data-sync/utils/generate-observation-entry.js.map +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/get-records-from-health-connect.js +90 -14
- package/lib/commonjs/modules/data-sync/utils/get-records-from-health-connect.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/get-samples-from-health.js +100 -14
- package/lib/commonjs/modules/data-sync/utils/get-samples-from-health.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/get-total-records-count.js +12 -1
- package/lib/commonjs/modules/data-sync/utils/get-total-records-count.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/get-total-samples-count.js +21 -17
- package/lib/commonjs/modules/data-sync/utils/get-total-samples-count.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/health-observation-device.js +55 -0
- package/lib/commonjs/modules/data-sync/utils/health-observation-device.js.map +1 -0
- package/lib/commonjs/modules/diary/components/no-data.js +1 -2
- package/lib/commonjs/modules/diary/components/no-data.js.map +1 -1
- package/lib/commonjs/modules/helpers/form-items/form-date-field.js +1 -1
- package/lib/commonjs/modules/helpers/form-items/form-date-field.js.map +1 -1
- package/lib/commonjs/modules/helpers/form-items/form-select.js +13 -13
- package/lib/commonjs/modules/helpers/form-items/form-select.js.map +1 -1
- package/lib/commonjs/modules/image/components/optimized-image.js +18 -0
- package/lib/commonjs/modules/image/components/optimized-image.js.map +1 -1
- package/lib/commonjs/modules/journal/past-journal/components/title.js +0 -1
- package/lib/commonjs/modules/journal/past-journal/components/title.js.map +1 -1
- package/lib/commonjs/modules/language-switcher/components/option/label.js +0 -1
- package/lib/commonjs/modules/language-switcher/components/option/label.js.map +1 -1
- package/lib/commonjs/modules/measurement/components/date-range.js +4 -3
- package/lib/commonjs/modules/measurement/components/date-range.js.map +1 -1
- package/lib/commonjs/modules/measurement/components/measurement-list-item.js +10 -10
- package/lib/commonjs/modules/measurement/components/measurement-list-item.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-date-field.js +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-date-field.js.map +1 -1
- package/lib/commonjs/modules/setting/components/list-header.js +1 -2
- package/lib/commonjs/modules/setting/components/list-header.js.map +1 -1
- package/lib/commonjs/modules/setting/components/setting-list-item.js +0 -1
- package/lib/commonjs/modules/setting/components/setting-list-item.js.map +1 -1
- package/lib/commonjs/modules/tab/components/tab-item.js +0 -1
- package/lib/commonjs/modules/tab/components/tab-item.js.map +1 -1
- package/lib/commonjs/modules/theme/utils/generate-theme.js +35 -4
- package/lib/commonjs/modules/theme/utils/generate-theme.js.map +1 -1
- package/lib/commonjs/modules/tile/components/measured-value.js +0 -3
- package/lib/commonjs/modules/tile/components/measured-value.js.map +1 -1
- package/lib/commonjs/modules/tile/components/title.js +0 -1
- package/lib/commonjs/modules/tile/components/title.js.map +1 -1
- package/lib/commonjs/modules/ui/components/background-sync-setting.js +11 -5
- package/lib/commonjs/modules/ui/components/background-sync-setting.js.map +1 -1
- package/lib/commonjs/modules/ui/components/bluetooth-state-notice.js +19 -6
- package/lib/commonjs/modules/ui/components/bluetooth-state-notice.js.map +1 -1
- package/lib/commonjs/modules/ui/components/health-import-card.js +15 -3
- package/lib/commonjs/modules/ui/components/health-import-card.js.map +1 -1
- package/lib/commonjs/modules/ui/components/measurement-trend-chart.js +95 -0
- package/lib/commonjs/modules/ui/components/measurement-trend-chart.js.map +1 -0
- package/lib/commonjs/modules/ui/components/pairing-flow.js +75 -31
- package/lib/commonjs/modules/ui/components/pairing-flow.js.map +1 -1
- package/lib/commonjs/modules/ui/components/supported-devices-catalog-list.js +3 -4
- package/lib/commonjs/modules/ui/components/supported-devices-catalog-list.js.map +1 -1
- package/lib/commonjs/modules/ui/components/urine-test-result.js +6 -4
- package/lib/commonjs/modules/ui/components/urine-test-result.js.map +1 -1
- package/lib/commonjs/modules/ui/index.js +11 -0
- package/lib/commonjs/modules/ui/index.js.map +1 -1
- package/lib/commonjs/modules/ui/use-ovok-ui.js +3 -0
- package/lib/commonjs/modules/ui/use-ovok-ui.js.map +1 -1
- package/lib/module/modules/auth/default-translation.js +68 -0
- package/lib/module/modules/auth/default-translation.js.map +1 -0
- package/lib/module/modules/auth/delete-account-button/components/delete-account-button.js +2 -0
- package/lib/module/modules/auth/delete-account-button/components/delete-account-button.js.map +1 -1
- package/lib/module/modules/auth/hooks/use-session.js +22 -6
- package/lib/module/modules/auth/hooks/use-session.js.map +1 -1
- package/lib/module/modules/auth/index.js +1 -0
- package/lib/module/modules/auth/index.js.map +1 -1
- package/lib/module/modules/auth/logout-button/components/logout-button.js +27 -1
- package/lib/module/modules/auth/logout-button/components/logout-button.js.map +1 -1
- package/lib/module/modules/auth/profile/components/profile-form.js +0 -1
- package/lib/module/modules/auth/profile/components/profile-form.js.map +1 -1
- package/lib/module/modules/auth/register/components/form/register-button.js +2 -2
- package/lib/module/modules/auth/register/components/form/register-button.js.map +1 -1
- package/lib/module/modules/auth/register/components/header/description.js +0 -1
- package/lib/module/modules/auth/register/components/header/description.js.map +1 -1
- package/lib/module/modules/auth/register/components/header/title.js +5 -2
- package/lib/module/modules/auth/register/components/header/title.js.map +1 -1
- package/lib/module/modules/auth/register/components/login-link.js +4 -3
- package/lib/module/modules/auth/register/components/login-link.js.map +1 -1
- package/lib/module/modules/auth/register/components/register-with-separator.js +1 -2
- package/lib/module/modules/auth/register/components/register-with-separator.js.map +1 -1
- package/lib/module/modules/auth/reset-password/components/form/inputs.js +4 -1
- package/lib/module/modules/auth/reset-password/components/form/inputs.js.map +1 -1
- package/lib/module/modules/auth/reset-password/components/form/reset-password-button.js +2 -2
- package/lib/module/modules/auth/reset-password/components/form/reset-password-button.js.map +1 -1
- package/lib/module/modules/auth/reset-password/components/form/reset-password-form-provider.js +6 -2
- package/lib/module/modules/auth/reset-password/components/form/reset-password-form-provider.js.map +1 -1
- package/lib/module/modules/auth/reset-password/components/header/description.js +0 -1
- package/lib/module/modules/auth/reset-password/components/header/description.js.map +1 -1
- package/lib/module/modules/auth/reset-password/components/header/title.js +5 -2
- package/lib/module/modules/auth/reset-password/components/header/title.js.map +1 -1
- package/lib/module/modules/auth/session/components/session-list.js +5 -3
- package/lib/module/modules/auth/session/components/session-list.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/footer.js +0 -1
- package/lib/module/modules/auth/sign-in/components/footer.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/form/signin-button.js +2 -2
- package/lib/module/modules/auth/sign-in/components/form/signin-button.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/header/description.js +0 -1
- package/lib/module/modules/auth/sign-in/components/header/description.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/header/title.js +5 -2
- package/lib/module/modules/auth/sign-in/components/header/title.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/login-with-separator.js +1 -2
- package/lib/module/modules/auth/sign-in/components/login-with-separator.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/register-link.js +4 -3
- package/lib/module/modules/auth/sign-in/components/register-link.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/site-url.js +1 -3
- package/lib/module/modules/auth/sign-in/components/site-url.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/social-logins/apple-login-text.js +1 -3
- package/lib/module/modules/auth/sign-in/components/social-logins/apple-login-text.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/social-logins/google-login-text.js +1 -3
- package/lib/module/modules/auth/sign-in/components/social-logins/google-login-text.js.map +1 -1
- package/lib/module/modules/auth/utils/sign-out-google.js +12 -0
- package/lib/module/modules/auth/utils/sign-out-google.js.map +1 -0
- package/lib/module/modules/background-sync/android-background-sync.js.map +1 -1
- package/lib/module/modules/background-sync/android-bluetooth-foreground-service.js +12 -1
- package/lib/module/modules/background-sync/android-bluetooth-foreground-service.js.map +1 -1
- package/lib/module/modules/breathing-exercise/components/method-name.js +0 -1
- package/lib/module/modules/breathing-exercise/components/method-name.js.map +1 -1
- package/lib/module/modules/breathing-exercise/components/remaining-time.js +0 -1
- package/lib/module/modules/breathing-exercise/components/remaining-time.js.map +1 -1
- package/lib/module/modules/bt-device/components/item/status.js +1 -2
- package/lib/module/modules/bt-device/components/item/status.js.map +1 -1
- package/lib/module/modules/bt-device/components/item/sub-title.js +1 -2
- package/lib/module/modules/bt-device/components/item/sub-title.js.map +1 -1
- package/lib/module/modules/bt-device/components/item/title.js +1 -2
- package/lib/module/modules/bt-device/components/item/title.js.map +1 -1
- package/lib/module/modules/bt-device/constants/supported-devices.js +4 -2
- package/lib/module/modules/bt-device/constants/supported-devices.js.map +1 -1
- package/lib/module/modules/bt-management/components/android-bluetooth-foreground-service.js +12 -1
- package/lib/module/modules/bt-management/components/android-bluetooth-foreground-service.js.map +1 -1
- package/lib/module/modules/bt-management/components/bluetooth-device-picker.js +110 -41
- package/lib/module/modules/bt-management/components/bluetooth-device-picker.js.map +1 -1
- package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js +37 -14
- package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
- package/lib/module/modules/bt-management/constants/measurement-field-catalog.js +32 -8
- package/lib/module/modules/bt-management/constants/measurement-field-catalog.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/runtime-context.js +52 -1
- package/lib/module/modules/bt-management/hooks/runtime-context.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/use-paired-devices.js +20 -11
- package/lib/module/modules/bt-management/hooks/use-paired-devices.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/use-request-permissions.js +5 -8
- package/lib/module/modules/bt-management/hooks/use-request-permissions.js.map +1 -1
- package/lib/module/modules/bt-management/index.js +1 -0
- package/lib/module/modules/bt-management/index.js.map +1 -1
- package/lib/module/modules/bt-management/services/background-sync/background-sync-coordinator.js +5 -1
- package/lib/module/modules/bt-management/services/background-sync/background-sync-coordinator.js.map +1 -1
- package/lib/module/modules/bt-management/services/bt-manager.js +56 -16
- package/lib/module/modules/bt-management/services/bt-manager.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/boso/boso.medicus.js +9 -6
- package/lib/module/modules/bt-management/services/devices/boso/boso.medicus.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js +98 -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 +68 -0
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.files.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js +48 -0
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/bt-connection-handler.js +0 -1
- package/lib/module/modules/bt-management/services/devices/bt-connection-handler.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bt-managed-device.js +22 -2
- package/lib/module/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/custom/custom.device.js +1 -0
- package/lib/module/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.file-transfer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.file-transfer.js.map +1 -1
- package/lib/module/modules/bt-management/types/bluetooth-error.js +4 -0
- package/lib/module/modules/bt-management/types/bluetooth-error.js.map +1 -1
- package/lib/module/modules/bt-management/utils/device-title.js +12 -0
- package/lib/module/modules/bt-management/utils/device-title.js.map +1 -0
- package/lib/module/modules/content/content-card/components/cover-badge.js +1 -3
- package/lib/module/modules/content/content-card/components/cover-badge.js.map +1 -1
- package/lib/module/modules/content/content-card/components/title.js +1 -3
- package/lib/module/modules/content/content-card/components/title.js.map +1 -1
- package/lib/module/modules/content/content-detail/components/content-detail-rich-content.js +1 -1
- package/lib/module/modules/content/content-detail/components/content-detail-rich-content.js.map +1 -1
- package/lib/module/modules/data-sync/components/android/android-health-sync.js.map +1 -1
- package/lib/module/modules/data-sync/components/apple/apple-health-sync.js.map +1 -1
- package/lib/module/modules/data-sync/components/manually-request-sheet/description.js +2 -2
- package/lib/module/modules/data-sync/components/manually-request-sheet/description.js.map +1 -1
- package/lib/module/modules/data-sync/components/manually-request-sheet/title.js +0 -1
- package/lib/module/modules/data-sync/components/manually-request-sheet/title.js.map +1 -1
- package/lib/module/modules/data-sync/components/sync-progress-list/sync-progress-list.js +30 -21
- package/lib/module/modules/data-sync/components/sync-progress-list/sync-progress-list.js.map +1 -1
- package/lib/module/modules/data-sync/index.js +1 -0
- package/lib/module/modules/data-sync/index.js.map +1 -1
- package/lib/module/modules/data-sync/services/android-health-sync-service.js.map +1 -1
- package/lib/module/modules/data-sync/services/apple-health-sync-service.js.map +1 -1
- package/lib/module/modules/data-sync/services/base-health-sync-service.js +1 -1
- 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 +40 -5
- package/lib/module/modules/data-sync/services/managers/data-processor.js.map +1 -1
- package/lib/module/modules/data-sync/services/managers/sync-progress-manager.js.map +1 -1
- package/lib/module/modules/data-sync/types/get-data-from-provider-props.js +2 -0
- package/lib/module/modules/data-sync/types/get-total-count-props.js +2 -0
- package/lib/module/modules/data-sync/types/health-data.js +7 -0
- package/lib/module/modules/data-sync/types/health-data.js.map +1 -0
- package/lib/module/modules/data-sync/types/health-sync-keys.js +38 -1
- package/lib/module/modules/data-sync/types/health-sync-keys.js.map +1 -1
- package/lib/module/modules/data-sync/utils/convert-generic-health-data.js +227 -0
- package/lib/module/modules/data-sync/utils/convert-generic-health-data.js.map +1 -0
- package/lib/module/modules/data-sync/utils/convert-records-to-observation.js +37 -7
- 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 +41 -10
- package/lib/module/modules/data-sync/utils/convert-samples-to-observation.js.map +1 -1
- package/lib/module/modules/data-sync/utils/generate-observation-entry.js +1 -0
- package/lib/module/modules/data-sync/utils/generate-observation-entry.js.map +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/get-records-from-health-connect.js +92 -16
- package/lib/module/modules/data-sync/utils/get-records-from-health-connect.js.map +1 -1
- package/lib/module/modules/data-sync/utils/get-samples-from-health.js +100 -14
- package/lib/module/modules/data-sync/utils/get-samples-from-health.js.map +1 -1
- package/lib/module/modules/data-sync/utils/get-total-records-count.js +12 -1
- package/lib/module/modules/data-sync/utils/get-total-records-count.js.map +1 -1
- package/lib/module/modules/data-sync/utils/get-total-samples-count.js +20 -16
- package/lib/module/modules/data-sync/utils/get-total-samples-count.js.map +1 -1
- package/lib/module/modules/data-sync/utils/health-observation-device.js +50 -0
- package/lib/module/modules/data-sync/utils/health-observation-device.js.map +1 -0
- package/lib/module/modules/diary/components/no-data.js +1 -2
- package/lib/module/modules/diary/components/no-data.js.map +1 -1
- package/lib/module/modules/helpers/form-items/form-date-field.js +1 -1
- package/lib/module/modules/helpers/form-items/form-date-field.js.map +1 -1
- package/lib/module/modules/helpers/form-items/form-select.js +13 -13
- package/lib/module/modules/helpers/form-items/form-select.js.map +1 -1
- package/lib/module/modules/image/components/optimized-image.js +18 -0
- package/lib/module/modules/image/components/optimized-image.js.map +1 -1
- package/lib/module/modules/journal/past-journal/components/title.js +0 -1
- package/lib/module/modules/journal/past-journal/components/title.js.map +1 -1
- package/lib/module/modules/language-switcher/components/option/label.js +0 -1
- package/lib/module/modules/language-switcher/components/option/label.js.map +1 -1
- package/lib/module/modules/measurement/components/date-range.js +4 -3
- package/lib/module/modules/measurement/components/date-range.js.map +1 -1
- package/lib/module/modules/measurement/components/measurement-list-item.js +10 -10
- package/lib/module/modules/measurement/components/measurement-list-item.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-date-field.js +1 -1
- package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-date-field.js.map +1 -1
- package/lib/module/modules/setting/components/list-header.js +1 -2
- package/lib/module/modules/setting/components/list-header.js.map +1 -1
- package/lib/module/modules/setting/components/setting-list-item.js +0 -1
- package/lib/module/modules/setting/components/setting-list-item.js.map +1 -1
- package/lib/module/modules/tab/components/tab-item.js +0 -1
- package/lib/module/modules/tab/components/tab-item.js.map +1 -1
- package/lib/module/modules/theme/utils/generate-theme.js +35 -4
- package/lib/module/modules/theme/utils/generate-theme.js.map +1 -1
- package/lib/module/modules/tile/components/measured-value.js +0 -3
- package/lib/module/modules/tile/components/measured-value.js.map +1 -1
- package/lib/module/modules/tile/components/title.js +0 -1
- package/lib/module/modules/tile/components/title.js.map +1 -1
- package/lib/module/modules/ui/components/background-sync-setting.js +11 -5
- package/lib/module/modules/ui/components/background-sync-setting.js.map +1 -1
- package/lib/module/modules/ui/components/bluetooth-state-notice.js +19 -6
- package/lib/module/modules/ui/components/bluetooth-state-notice.js.map +1 -1
- package/lib/module/modules/ui/components/health-import-card.js +15 -3
- package/lib/module/modules/ui/components/health-import-card.js.map +1 -1
- package/lib/module/modules/ui/components/measurement-trend-chart.js +91 -0
- package/lib/module/modules/ui/components/measurement-trend-chart.js.map +1 -0
- package/lib/module/modules/ui/components/pairing-flow.js +78 -34
- package/lib/module/modules/ui/components/pairing-flow.js.map +1 -1
- package/lib/module/modules/ui/components/supported-devices-catalog-list.js +4 -5
- package/lib/module/modules/ui/components/supported-devices-catalog-list.js.map +1 -1
- package/lib/module/modules/ui/components/urine-test-result.js +6 -4
- package/lib/module/modules/ui/components/urine-test-result.js.map +1 -1
- package/lib/module/modules/ui/index.js +1 -0
- package/lib/module/modules/ui/index.js.map +1 -1
- package/lib/module/modules/ui/use-ovok-ui.js +4 -1
- package/lib/module/modules/ui/use-ovok-ui.js.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/default-translation.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/auth/default-translation.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/delete-account-button/components/delete-account-button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-session.d.ts +8 -2
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-session.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/auth/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/logout-button/components/logout-button.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/auth/logout-button/components/logout-button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/logout-button/types/logout-button-props.d.ts +6 -1
- package/lib/typescript/commonjs/src/modules/auth/logout-button/types/logout-button-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/register/components/form/register-button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/register/components/header/title.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/register/components/login-link.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/reset-password/components/form/inputs.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/reset-password/components/form/reset-password-button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/reset-password/components/form/reset-password-form-provider.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/auth/reset-password/components/form/reset-password-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/reset-password/components/header/title.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/reset-password/contexts/reset-password-form-context.d.ts +2 -46
- package/lib/typescript/commonjs/src/modules/auth/reset-password/contexts/reset-password-form-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/reset-password/hooks/use-reset-password-form.d.ts +1 -47
- package/lib/typescript/commonjs/src/modules/auth/reset-password/hooks/use-reset-password-form.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/reset-password/types/reset-password-context-type.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/auth/reset-password/types/reset-password-context-type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/reset-password/types/reset-password-form-provider-props.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/auth/reset-password/types/reset-password-form-provider-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/components/session-list.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/form/signin-button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/header/title.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/register-link.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/utils/sign-out-google.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/auth/utils/sign-out-google.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/background-sync/android-background-sync.d.ts +3 -2
- package/lib/typescript/commonjs/src/modules/background-sync/android-background-sync.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/background-sync/android-bluetooth-foreground-service.d.ts.map +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-management/components/android-bluetooth-foreground-service.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/components/bluetooth-device-picker.d.ts +13 -4
- package/lib/typescript/commonjs/src/modules/bt-management/components/bluetooth-device-picker.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/components/bt-provider-child-wrapper.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/constants/measurement-field-catalog.d.ts +4 -0
- 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/hooks/runtime-context.d.ts +6 -2
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/runtime-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-paired-devices.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-request-permissions.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/background-sync/background-sync-coordinator.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/bt-manager.d.ts +9 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/bt-manager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/boso/boso.medicus.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts +17 -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 +17 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.files.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts +28 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-connection-handler.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts +6 -0
- 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/custom/custom.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/background-sync.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/background-sync.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/bluetooth-error.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/bluetooth-error.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/btprovider-children-props.d.ts +7 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/btprovider-children-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/custom-device-definition.d.ts +2 -0
- 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/utils/device-title.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/bt-management/utils/device-title.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/components/android/android-health-sync.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-sync.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/components/manually-request-sheet/description.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/components/sync-progress-list/sync-progress-list.d.ts +8 -5
- package/lib/typescript/commonjs/src/modules/data-sync/components/sync-progress-list/sync-progress-list.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/services/android-health-sync-service.d.ts +4 -4
- package/lib/typescript/commonjs/src/modules/data-sync/services/android-health-sync-service.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/services/apple-health-sync-service.d.ts +5 -5
- package/lib/typescript/commonjs/src/modules/data-sync/services/apple-health-sync-service.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/services/base-health-sync-service.d.ts +1 -3
- 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 +7 -9
- 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/sync-progress-manager.d.ts +6 -6
- package/lib/typescript/commonjs/src/modules/data-sync/services/managers/sync-progress-manager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-sync-props.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-sync-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/convert-data-props.d.ts +6 -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/get-data-from-provider-props.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/data-sync/types/get-data-from-provider-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/get-total-count-props.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/data-sync/types/get-total-count-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts +3 -3
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-data.d.ts +14 -0
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-data.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-keys.d.ts +19 -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 +7 -5
- 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/types/sync-progress.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/data-sync/types/sync-progress.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-generic-health-data.d.ts +9 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-generic-health-data.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-records-to-observation.d.ts +1 -2
- package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-records-to-observation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-samples-to-observation.d.ts +1 -2
- 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/generate-observation-entry.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-latest-observation-dates-by-code.d.ts +3 -3
- 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/get-latest-valid-start-date.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-latest-valid-start-date.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-records-from-health-connect.d.ts +6 -8
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-records-from-health-connect.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-samples-from-health.d.ts +20 -4
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-samples-from-health.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-total-records-count.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-total-records-count.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-total-samples-count.d.ts +3 -8
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-total-samples-count.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-observation-device.d.ts +9 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-observation-device.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/helpers/form-items/form-date-field.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/helpers/form-items/form-select.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/measurement/components/date-range.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/measurement/components/measurement-list-item.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/measurement/types/measurement-list-item-props.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/measurement/types/measurement-list-item-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/theme/hooks/use-app-theme.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/theme/hooks/use-app-theme.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/theme/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/theme/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/theme/types/theme-provider-props.d.ts +12 -3
- package/lib/typescript/commonjs/src/modules/theme/types/theme-provider-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/theme/utils/generate-theme.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/theme/utils/generate-theme.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/components/background-sync-setting.d.ts +4 -1
- package/lib/typescript/commonjs/src/modules/ui/components/background-sync-setting.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/components/bluetooth-state-notice.d.ts +7 -1
- package/lib/typescript/commonjs/src/modules/ui/components/bluetooth-state-notice.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/components/health-import-card.d.ts +5 -1
- package/lib/typescript/commonjs/src/modules/ui/components/health-import-card.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/components/measurement-trend-chart.d.ts +19 -0
- package/lib/typescript/commonjs/src/modules/ui/components/measurement-trend-chart.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/ui/components/pairing-flow.d.ts +16 -1
- package/lib/typescript/commonjs/src/modules/ui/components/pairing-flow.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/components/supported-devices-catalog-list.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/components/urine-test-result.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/types.d.ts +4 -1
- package/lib/typescript/commonjs/src/modules/ui/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/use-ovok-ui.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/default-translation.d.ts +2 -0
- package/lib/typescript/module/src/modules/auth/default-translation.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/delete-account-button/components/delete-account-button.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/hooks/use-session.d.ts +8 -2
- package/lib/typescript/module/src/modules/auth/hooks/use-session.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/index.d.ts +1 -0
- package/lib/typescript/module/src/modules/auth/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/logout-button/components/logout-button.d.ts +1 -1
- package/lib/typescript/module/src/modules/auth/logout-button/components/logout-button.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/logout-button/types/logout-button-props.d.ts +6 -1
- package/lib/typescript/module/src/modules/auth/logout-button/types/logout-button-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/register/components/form/register-button.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/register/components/header/title.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/register/components/login-link.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/reset-password/components/form/inputs.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/reset-password/components/form/reset-password-button.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/reset-password/components/form/reset-password-form-provider.d.ts +1 -1
- package/lib/typescript/module/src/modules/auth/reset-password/components/form/reset-password-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/reset-password/components/header/title.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/reset-password/contexts/reset-password-form-context.d.ts +2 -46
- package/lib/typescript/module/src/modules/auth/reset-password/contexts/reset-password-form-context.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/reset-password/hooks/use-reset-password-form.d.ts +1 -47
- package/lib/typescript/module/src/modules/auth/reset-password/hooks/use-reset-password-form.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/reset-password/types/reset-password-context-type.d.ts +3 -1
- package/lib/typescript/module/src/modules/auth/reset-password/types/reset-password-context-type.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/reset-password/types/reset-password-form-provider-props.d.ts +1 -0
- package/lib/typescript/module/src/modules/auth/reset-password/types/reset-password-form-provider-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/session/components/session-list.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/components/form/signin-button.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/components/header/title.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/components/register-link.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/utils/sign-out-google.d.ts +3 -0
- package/lib/typescript/module/src/modules/auth/utils/sign-out-google.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/background-sync/android-background-sync.d.ts +3 -2
- package/lib/typescript/module/src/modules/background-sync/android-background-sync.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/background-sync/android-bluetooth-foreground-service.d.ts.map +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-management/components/android-bluetooth-foreground-service.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/components/bluetooth-device-picker.d.ts +13 -4
- package/lib/typescript/module/src/modules/bt-management/components/bluetooth-device-picker.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/components/bt-provider-child-wrapper.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/constants/measurement-field-catalog.d.ts +4 -0
- 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/hooks/runtime-context.d.ts +6 -2
- package/lib/typescript/module/src/modules/bt-management/hooks/runtime-context.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/use-paired-devices.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/use-request-permissions.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/index.d.ts +1 -0
- package/lib/typescript/module/src/modules/bt-management/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/background-sync/background-sync-coordinator.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/bt-manager.d.ts +9 -0
- package/lib/typescript/module/src/modules/bt-management/services/bt-manager.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/boso/boso.medicus.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts +17 -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 +17 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.files.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts +28 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-connection-handler.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts +6 -0
- 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/custom/custom.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/background-sync.d.ts +2 -0
- package/lib/typescript/module/src/modules/bt-management/types/background-sync.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/bluetooth-error.d.ts +1 -0
- package/lib/typescript/module/src/modules/bt-management/types/bluetooth-error.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/btprovider-children-props.d.ts +7 -1
- package/lib/typescript/module/src/modules/bt-management/types/btprovider-children-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/custom-device-definition.d.ts +2 -0
- 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/utils/device-title.d.ts +8 -0
- package/lib/typescript/module/src/modules/bt-management/utils/device-title.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/components/android/android-health-sync.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-sync.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/components/manually-request-sheet/description.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/components/sync-progress-list/sync-progress-list.d.ts +8 -5
- package/lib/typescript/module/src/modules/data-sync/components/sync-progress-list/sync-progress-list.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/index.d.ts +1 -0
- package/lib/typescript/module/src/modules/data-sync/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/services/android-health-sync-service.d.ts +4 -4
- package/lib/typescript/module/src/modules/data-sync/services/android-health-sync-service.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/services/apple-health-sync-service.d.ts +5 -5
- package/lib/typescript/module/src/modules/data-sync/services/apple-health-sync-service.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/services/base-health-sync-service.d.ts +1 -3
- 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 +7 -9
- 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/sync-progress-manager.d.ts +6 -6
- package/lib/typescript/module/src/modules/data-sync/services/managers/sync-progress-manager.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts +2 -2
- package/lib/typescript/module/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/apple-health-sync-props.d.ts +2 -2
- package/lib/typescript/module/src/modules/data-sync/types/apple-health-sync-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/convert-data-props.d.ts +6 -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/get-data-from-provider-props.d.ts +2 -0
- package/lib/typescript/module/src/modules/data-sync/types/get-data-from-provider-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/get-total-count-props.d.ts +2 -0
- package/lib/typescript/module/src/modules/data-sync/types/get-total-count-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts +3 -3
- package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/health-data.d.ts +14 -0
- package/lib/typescript/module/src/modules/data-sync/types/health-data.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/types/health-sync-keys.d.ts +19 -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 +7 -5
- 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/types/sync-progress.d.ts +2 -2
- package/lib/typescript/module/src/modules/data-sync/types/sync-progress.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/convert-generic-health-data.d.ts +9 -0
- package/lib/typescript/module/src/modules/data-sync/utils/convert-generic-health-data.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/utils/convert-records-to-observation.d.ts +1 -2
- package/lib/typescript/module/src/modules/data-sync/utils/convert-records-to-observation.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/convert-samples-to-observation.d.ts +1 -2
- 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/generate-observation-entry.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-latest-observation-dates-by-code.d.ts +3 -3
- 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/get-latest-valid-start-date.d.ts +2 -2
- package/lib/typescript/module/src/modules/data-sync/utils/get-latest-valid-start-date.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-records-from-health-connect.d.ts +6 -8
- package/lib/typescript/module/src/modules/data-sync/utils/get-records-from-health-connect.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-samples-from-health.d.ts +20 -4
- package/lib/typescript/module/src/modules/data-sync/utils/get-samples-from-health.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-total-records-count.d.ts +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-total-records-count.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-total-samples-count.d.ts +3 -8
- package/lib/typescript/module/src/modules/data-sync/utils/get-total-samples-count.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/health-observation-device.d.ts +9 -0
- package/lib/typescript/module/src/modules/data-sync/utils/health-observation-device.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/helpers/form-items/form-date-field.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/helpers/form-items/form-select.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/measurement/components/date-range.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/measurement/components/measurement-list-item.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/measurement/types/measurement-list-item-props.d.ts +2 -0
- package/lib/typescript/module/src/modules/measurement/types/measurement-list-item-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/theme/hooks/use-app-theme.d.ts +3 -1
- package/lib/typescript/module/src/modules/theme/hooks/use-app-theme.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/theme/index.d.ts +1 -1
- package/lib/typescript/module/src/modules/theme/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/theme/types/theme-provider-props.d.ts +12 -3
- package/lib/typescript/module/src/modules/theme/types/theme-provider-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/theme/utils/generate-theme.d.ts +3 -1
- package/lib/typescript/module/src/modules/theme/utils/generate-theme.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/components/background-sync-setting.d.ts +4 -1
- package/lib/typescript/module/src/modules/ui/components/background-sync-setting.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/components/bluetooth-state-notice.d.ts +7 -1
- package/lib/typescript/module/src/modules/ui/components/bluetooth-state-notice.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/components/health-import-card.d.ts +5 -1
- package/lib/typescript/module/src/modules/ui/components/health-import-card.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/components/measurement-trend-chart.d.ts +19 -0
- package/lib/typescript/module/src/modules/ui/components/measurement-trend-chart.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/ui/components/pairing-flow.d.ts +16 -1
- package/lib/typescript/module/src/modules/ui/components/pairing-flow.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/components/supported-devices-catalog-list.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/components/urine-test-result.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/index.d.ts +1 -0
- package/lib/typescript/module/src/modules/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/types.d.ts +4 -1
- package/lib/typescript/module/src/modules/ui/types.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/use-ovok-ui.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,31 +1,107 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { addSeconds, subDays } from "date-fns";
|
|
4
|
-
import { readRecords } from "react-native-health-connect";
|
|
3
|
+
import { addSeconds, startOfDay, subDays } from "date-fns";
|
|
4
|
+
import { aggregateGroupByPeriod, readRecords } from "react-native-health-connect";
|
|
5
5
|
export const getRecordsFromHealthConnect = async ({
|
|
6
|
-
startDate: _startDate,
|
|
7
6
|
typeIdentifier,
|
|
7
|
+
startDate: _startDate,
|
|
8
8
|
chunkSize = 5000,
|
|
9
|
-
anchor
|
|
9
|
+
anchor,
|
|
10
|
+
mode = "point"
|
|
10
11
|
}) => {
|
|
11
|
-
|
|
12
|
+
if (mode === "daily-total" || mode === "daily-summary") {
|
|
13
|
+
return getDailyAggregates(typeIdentifier, mode, _startDate);
|
|
14
|
+
}
|
|
15
|
+
const startDate = _startDate ? addSeconds(new Date(_startDate), 1).toISOString() : subDays(new Date(), 30).toISOString();
|
|
12
16
|
const endDate = new Date().toISOString();
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
timeRangeFilter,
|
|
17
|
+
const result = await readRecords(typeIdentifier, {
|
|
18
|
+
timeRangeFilter: {
|
|
19
|
+
operator: "between",
|
|
20
|
+
startTime: startDate,
|
|
21
|
+
endTime: endDate
|
|
22
|
+
},
|
|
20
23
|
pageSize: chunkSize,
|
|
21
|
-
pageToken
|
|
24
|
+
pageToken: anchor
|
|
22
25
|
});
|
|
23
26
|
return {
|
|
24
|
-
data:
|
|
25
|
-
anchor:
|
|
27
|
+
data: result.records,
|
|
28
|
+
anchor: result.pageToken ? {
|
|
26
29
|
typeIdentifier,
|
|
27
|
-
anchor:
|
|
30
|
+
anchor: result.pageToken
|
|
28
31
|
} : undefined
|
|
29
32
|
};
|
|
30
33
|
};
|
|
34
|
+
const getDailyAggregates = async (typeIdentifier, mode, _startDate) => {
|
|
35
|
+
const aggregateType = typeIdentifier;
|
|
36
|
+
const startDate = _startDate ? startOfDay(new Date(_startDate)) : startOfDay(subDays(new Date(), 30));
|
|
37
|
+
const today = startOfDay(new Date());
|
|
38
|
+
const groups = await aggregateGroupByPeriod({
|
|
39
|
+
recordType: aggregateType,
|
|
40
|
+
timeRangeFilter: {
|
|
41
|
+
operator: "between",
|
|
42
|
+
startTime: startDate.toISOString(),
|
|
43
|
+
endTime: today.toISOString()
|
|
44
|
+
},
|
|
45
|
+
timeRangeSlicer: {
|
|
46
|
+
period: "DAYS",
|
|
47
|
+
length: 1
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
const data = groups.flatMap(group => {
|
|
51
|
+
const end = new Date(group.endTime);
|
|
52
|
+
if (end > today) {
|
|
53
|
+
return [];
|
|
54
|
+
}
|
|
55
|
+
const result = group.result;
|
|
56
|
+
const measurement = aggregateMeasurement(typeIdentifier, result, mode);
|
|
57
|
+
if (!measurement) {
|
|
58
|
+
return [];
|
|
59
|
+
}
|
|
60
|
+
const dataOrigins = result.dataOrigins;
|
|
61
|
+
return [{
|
|
62
|
+
kind: mode,
|
|
63
|
+
typeIdentifier,
|
|
64
|
+
startDate: new Date(group.startTime),
|
|
65
|
+
endDate: end,
|
|
66
|
+
sourceApp: dataOrigins?.[0],
|
|
67
|
+
...measurement
|
|
68
|
+
}];
|
|
69
|
+
});
|
|
70
|
+
return {
|
|
71
|
+
data,
|
|
72
|
+
anchor: undefined
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
const aggregateMeasurement = (typeIdentifier, result, mode) => {
|
|
76
|
+
if (mode === "daily-summary" && typeIdentifier === "HeartRate") {
|
|
77
|
+
const average = numberValue(result.BPM_AVG);
|
|
78
|
+
return average === undefined ? undefined : {
|
|
79
|
+
unit: "count/min",
|
|
80
|
+
average,
|
|
81
|
+
minimum: numberValue(result.BPM_MIN),
|
|
82
|
+
maximum: numberValue(result.BPM_MAX)
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
switch (typeIdentifier) {
|
|
86
|
+
case "Steps":
|
|
87
|
+
return value(numberValue(result.COUNT_TOTAL), "count");
|
|
88
|
+
case "Distance":
|
|
89
|
+
return value(nestedNumber(result.DISTANCE, "inKilometers"), "km");
|
|
90
|
+
case "ActiveCaloriesBurned":
|
|
91
|
+
return value(nestedNumber(result.ACTIVE_CALORIES_TOTAL, "inKilocalories"), "kcal");
|
|
92
|
+
case "FloorsClimbed":
|
|
93
|
+
return value(numberValue(result.FLOORS_CLIMBED_TOTAL), "count");
|
|
94
|
+
case "ExerciseSession":
|
|
95
|
+
return value(scale(nestedNumber(result.EXERCISE_DURATION_TOTAL, "inSeconds"), 1 / 60), "min");
|
|
96
|
+
default:
|
|
97
|
+
return undefined;
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
const value = (measurement, unit) => measurement === undefined ? undefined : {
|
|
101
|
+
unit,
|
|
102
|
+
value: measurement
|
|
103
|
+
};
|
|
104
|
+
const numberValue = value => typeof value === "number" && Number.isFinite(value) ? value : undefined;
|
|
105
|
+
const nestedNumber = (value, key) => numberValue(value?.[key]);
|
|
106
|
+
const scale = (value, factor) => value === undefined ? undefined : value * factor;
|
|
31
107
|
//# sourceMappingURL=get-records-from-health-connect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["addSeconds","subDays","readRecords","getRecordsFromHealthConnect","
|
|
1
|
+
{"version":3,"names":["addSeconds","startOfDay","subDays","aggregateGroupByPeriod","readRecords","getRecordsFromHealthConnect","typeIdentifier","startDate","_startDate","chunkSize","anchor","mode","getDailyAggregates","Date","toISOString","endDate","result","timeRangeFilter","operator","startTime","endTime","pageSize","pageToken","data","records","undefined","aggregateType","today","groups","recordType","timeRangeSlicer","period","length","flatMap","group","end","measurement","aggregateMeasurement","dataOrigins","kind","sourceApp","average","numberValue","BPM_AVG","unit","minimum","BPM_MIN","maximum","BPM_MAX","value","COUNT_TOTAL","nestedNumber","DISTANCE","ACTIVE_CALORIES_TOTAL","FLOORS_CLIMBED_TOTAL","scale","EXERCISE_DURATION_TOTAL","Number","isFinite","key","factor"],"sourceRoot":"../../../../../src","sources":["modules/data-sync/utils/get-records-from-health-connect.ts"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,UAAU,EAAEC,OAAO,QAAQ,UAAU;AAC1D,SACEC,sBAAsB,EAEtBC,WAAW,QAGN,6BAA6B;AASpC,OAAO,MAAMC,2BAA2B,G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,IAAIQ,MAAM,CAACC,QAAQ,CAACT,KAAK,CAAC,GAAGA,KAAK,GAAGxB,SAAS;AAEzE,MAAM0B,YAAY,GAAGA,CAACF,KAAc,EAAEU,GAAW,KAC/CjB,WAAW,CAAEO,KAAK,GAA2CU,GAAG,CAAC,CAAC;AAEpE,MAAMJ,KAAK,GAAGA,CAACN,KAAyB,EAAEW,MAAc,KACtDX,KAAK,KAAKxB,SAAS,GAAGA,SAAS,GAAGwB,KAAK,GAAGW,MAAM","ignoreList":[]}
|
|
@@ -1,39 +1,125 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import Healthkit from "@kingstinct/react-native-healthkit";
|
|
4
|
-
import { addSeconds } from "date-fns";
|
|
3
|
+
import Healthkit, { HKStatisticsOptions, HKWorkoutTypeIdentifier, UnitOfEnergy } from "@kingstinct/react-native-healthkit";
|
|
4
|
+
import { addDays, addSeconds, startOfDay, subDays } from "date-fns";
|
|
5
5
|
import { healthUnitFor } from "./health-units.js";
|
|
6
6
|
export const getSamplesFromHealth = async ({
|
|
7
7
|
startDate: _startDate,
|
|
8
8
|
typeIdentifier,
|
|
9
9
|
anchor,
|
|
10
|
-
chunkSize = 5000
|
|
10
|
+
chunkSize = 5000,
|
|
11
|
+
mode = "point"
|
|
11
12
|
}) => {
|
|
12
|
-
const startDate = _startDate ? addSeconds(_startDate, 1) :
|
|
13
|
+
const startDate = _startDate ? addSeconds(new Date(_startDate), 1) : subDays(new Date(), 30);
|
|
13
14
|
const endDate = new Date();
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
if (mode === "daily-total" || mode === "daily-summary") {
|
|
16
|
+
if (!isQuantityIdentifier(typeIdentifier)) {
|
|
17
|
+
return {
|
|
18
|
+
data: [],
|
|
19
|
+
anchor: undefined
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
return getDailyStatistics(typeIdentifier, mode, startDate, endDate);
|
|
23
|
+
}
|
|
24
|
+
const options = {
|
|
19
25
|
from: startDate,
|
|
20
26
|
to: endDate,
|
|
21
27
|
limit: chunkSize,
|
|
22
|
-
anchor
|
|
28
|
+
anchor
|
|
29
|
+
};
|
|
30
|
+
if (typeIdentifier === HKWorkoutTypeIdentifier && typeof Healthkit.queryWorkoutSamplesWithAnchor === "function") {
|
|
31
|
+
const result = await Healthkit.queryWorkoutSamplesWithAnchor({
|
|
32
|
+
...options,
|
|
33
|
+
energyUnit: UnitOfEnergy.Kilocalories,
|
|
34
|
+
distanceUnit: "km"
|
|
35
|
+
});
|
|
36
|
+
if (!result) {
|
|
37
|
+
return {
|
|
38
|
+
data: [],
|
|
39
|
+
anchor: undefined
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
data: [...result.samples],
|
|
44
|
+
anchor: result.newAnchor ? {
|
|
45
|
+
typeIdentifier,
|
|
46
|
+
anchor: result.newAnchor
|
|
47
|
+
} : undefined
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
if (isCategoryIdentifier(typeIdentifier) && typeof Healthkit.queryCategorySamplesWithAnchor === "function") {
|
|
51
|
+
const result = await Healthkit.queryCategorySamplesWithAnchor(typeIdentifier, options);
|
|
52
|
+
if (!result) {
|
|
53
|
+
return {
|
|
54
|
+
data: [],
|
|
55
|
+
anchor: undefined
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
data: [...result.samples],
|
|
60
|
+
anchor: result.newAnchor ? {
|
|
61
|
+
typeIdentifier,
|
|
62
|
+
anchor: result.newAnchor
|
|
63
|
+
} : undefined
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
const result = await Healthkit.queryQuantitySamplesWithAnchor(typeIdentifier, {
|
|
67
|
+
...options,
|
|
23
68
|
unit: healthUnitFor(typeIdentifier)
|
|
24
69
|
});
|
|
25
|
-
if (
|
|
70
|
+
if (!result) {
|
|
26
71
|
return {
|
|
27
72
|
data: [],
|
|
28
73
|
anchor: undefined
|
|
29
74
|
};
|
|
30
75
|
}
|
|
31
76
|
return {
|
|
32
|
-
data: samples,
|
|
33
|
-
anchor: newAnchor ? {
|
|
77
|
+
data: [...result.samples],
|
|
78
|
+
anchor: result.newAnchor ? {
|
|
34
79
|
typeIdentifier,
|
|
35
|
-
anchor: newAnchor
|
|
80
|
+
anchor: result.newAnchor
|
|
36
81
|
} : undefined
|
|
37
82
|
};
|
|
38
83
|
};
|
|
84
|
+
const getDailyStatistics = async (typeIdentifier, mode, startDate, endDate) => {
|
|
85
|
+
const firstDay = startOfDay(startDate);
|
|
86
|
+
const today = startOfDay(endDate);
|
|
87
|
+
const options = mode === "daily-total" ? [HKStatisticsOptions.cumulativeSum] : [HKStatisticsOptions.discreteAverage, HKStatisticsOptions.discreteMin, HKStatisticsOptions.discreteMax];
|
|
88
|
+
const statistics = await Healthkit.queryStatisticsCollectionForQuantity(typeIdentifier, options, startOfDay(new Date(2001, 0, 1)), {
|
|
89
|
+
day: 1
|
|
90
|
+
}, firstDay, today, healthUnitFor(typeIdentifier));
|
|
91
|
+
const data = statistics.flatMap((statistic, index) => {
|
|
92
|
+
const dayStart = addDays(firstDay, index);
|
|
93
|
+
const dayEnd = addDays(dayStart, 1);
|
|
94
|
+
const total = statistic.sumQuantity?.quantity;
|
|
95
|
+
const average = statistic.averageQuantity?.quantity;
|
|
96
|
+
const minimum = statistic.minimumQuantity?.quantity;
|
|
97
|
+
const maximum = statistic.maximumQuantity?.quantity;
|
|
98
|
+
if (dayEnd > today || (mode === "daily-total" ? total === undefined : average === undefined)) {
|
|
99
|
+
return [];
|
|
100
|
+
}
|
|
101
|
+
return [{
|
|
102
|
+
kind: mode,
|
|
103
|
+
typeIdentifier,
|
|
104
|
+
startDate: dayStart,
|
|
105
|
+
endDate: dayEnd,
|
|
106
|
+
unit: statistic.sumQuantity?.unit ?? statistic.averageQuantity?.unit ?? healthUnitFor(typeIdentifier) ?? "1",
|
|
107
|
+
...(mode === "daily-total" ? {
|
|
108
|
+
value: total
|
|
109
|
+
} : {
|
|
110
|
+
average,
|
|
111
|
+
minimum,
|
|
112
|
+
maximum
|
|
113
|
+
})
|
|
114
|
+
}];
|
|
115
|
+
});
|
|
116
|
+
return {
|
|
117
|
+
data,
|
|
118
|
+
anchor: undefined
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
const isCategoryIdentifier = typeIdentifier => {
|
|
122
|
+
return typeof typeIdentifier === "string" && typeIdentifier.startsWith("HKCategoryTypeIdentifier");
|
|
123
|
+
};
|
|
124
|
+
const isQuantityIdentifier = typeIdentifier => !isCategoryIdentifier(typeIdentifier) && typeIdentifier !== HKWorkoutTypeIdentifier;
|
|
39
125
|
//# sourceMappingURL=get-samples-from-health.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Healthkit","addSeconds","healthUnitFor","getSamplesFromHealth","startDate","_startDate","typeIdentifier","anchor","chunkSize","
|
|
1
|
+
{"version":3,"names":["Healthkit","HKStatisticsOptions","HKWorkoutTypeIdentifier","UnitOfEnergy","addDays","addSeconds","startOfDay","subDays","healthUnitFor","getSamplesFromHealth","startDate","_startDate","typeIdentifier","anchor","chunkSize","mode","Date","endDate","isQuantityIdentifier","data","undefined","getDailyStatistics","options","from","to","limit","queryWorkoutSamplesWithAnchor","result","energyUnit","Kilocalories","distanceUnit","samples","newAnchor","isCategoryIdentifier","queryCategorySamplesWithAnchor","queryQuantitySamplesWithAnchor","unit","firstDay","today","cumulativeSum","discreteAverage","discreteMin","discreteMax","statistics","queryStatisticsCollectionForQuantity","day","flatMap","statistic","index","dayStart","dayEnd","total","sumQuantity","quantity","average","averageQuantity","minimum","minimumQuantity","maximum","maximumQuantity","kind","value","startsWith"],"sourceRoot":"../../../../../src","sources":["modules/data-sync/utils/get-samples-from-health.ts"],"mappings":";;AAAA,OAAOA,SAAS,IAIdC,mBAAmB,EACnBC,uBAAuB,EACvBC,YAAY,QACP,oCAAoC;AAC3C,SAASC,OAAO,EAAE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,OAAO,EAAEiC,MAAM;MACfd,IAAI,EACFW,SAAS,CAACK,WAAW,EAAEhB,IAAI,IAC3BW,SAAS,CAACQ,eAAe,EAAEnB,IAAI,IAC/B5B,aAAa,CAACI,cAAc,CAAC,IAC7B,GAAG;MACL,IAAIG,IAAI,KAAK,aAAa,GACtB;QAAE8C,KAAK,EAAEV;MAAM,CAAC,GAChB;QAAEG,OAAO;QAAEE,OAAO;QAAEE;MAAQ,CAAC;IACnC,CAAC,CACF;EACH,CAAC,CAAC;EAEF,OAAO;IAAEvC,IAAI;IAAEN,MAAM,EAAEO;EAAU,CAAC;AACpC,CAAC;AAED,MAAMa,oBAAoB,GACxBrB,cAAsC,IACS;EAC/C,OACE,OAAOA,cAAc,KAAK,QAAQ,IAClCA,cAAc,CAACkD,UAAU,CAAC,0BAA0B,CAAC;AAEzD,CAAC;AAED,MAAM5C,oBAAoB,GACxBN,cAAsC,IAEtC,CAACqB,oBAAoB,CAACrB,cAAc,CAAC,IAAIA,cAAc,KAAKV,uBAAuB","ignoreList":[]}
|
|
@@ -2,11 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
import { addSeconds, subDays } from "date-fns";
|
|
4
4
|
import { readRecords } from "react-native-health-connect";
|
|
5
|
+
import { getRecordsFromHealthConnect } from "./get-records-from-health-connect.js";
|
|
5
6
|
export const getTotalRecordsCount = async ({
|
|
6
7
|
typeIdentifier,
|
|
7
8
|
startDate: _startDate,
|
|
8
|
-
anchor
|
|
9
|
+
anchor,
|
|
10
|
+
mode = "point"
|
|
9
11
|
}) => {
|
|
12
|
+
if (mode !== "point" && mode !== "session") {
|
|
13
|
+
const result = await getRecordsFromHealthConnect({
|
|
14
|
+
typeIdentifier,
|
|
15
|
+
startDate: _startDate,
|
|
16
|
+
anchor,
|
|
17
|
+
mode
|
|
18
|
+
});
|
|
19
|
+
return result.data.length;
|
|
20
|
+
}
|
|
10
21
|
const startDate = _startDate ? addSeconds(_startDate, 1).toISOString() : subDays(new Date(), 30).toISOString();
|
|
11
22
|
const endDate = new Date().toISOString();
|
|
12
23
|
const timeRangeFilter = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["addSeconds","subDays","readRecords","getTotalRecordsCount","typeIdentifier","startDate","_startDate","anchor","toISOString","Date","endDate","timeRangeFilter","operator","startTime","endTime","totalRecordsCount","totalResultsFetched","totalPageToken","totalResult","pageSize","pageToken","records"
|
|
1
|
+
{"version":3,"names":["addSeconds","subDays","readRecords","getRecordsFromHealthConnect","getTotalRecordsCount","typeIdentifier","startDate","_startDate","anchor","mode","result","data","length","toISOString","Date","endDate","timeRangeFilter","operator","startTime","endTime","totalRecordsCount","totalResultsFetched","totalPageToken","totalResult","pageSize","pageToken","records"],"sourceRoot":"../../../../../src","sources":["modules/data-sync/utils/get-total-records-count.ts"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,OAAO,QAAQ,UAAU;AAC9C,SACEC,WAAW,QAGN,6BAA6B;AAIpC,SAASC,2BAA2B,QAAQ,sCAAmC;AAE/E,OAAO,MAAMC,oBAAoB,GAAG,MAAAA,CAAO;EACzCC,cAAc;EACdC,SAAS,EAAEC,UAAU;EACrBC,MAAM;EACNC,IAAI,GAAG;AACuB,CAAC,KAAsB;EACrD,IAAIA,IAAI,KAAK,OAAO,IAAIA,IAAI,KAAK,SAAS,EAAE;IAC1C,MAAMC,MAAM,GAAG,MAAMP,2BAA2B,CAAC;MAC/CE,cAAc;MACdC,SAAS,EAAEC,UAAU;MACrBC,MAAM;MACNC;IACF,CAAC,CAAC;IAEF,OAAOC,MAAM,CAACC,IAAI,CAACC,MAAM;EAC3B;EAEA,MAAMN,SAAS,GAAGC,UAAU,GACxBP,UAAU,CAACO,UAAU,EAAE,CAAC,CAAC,CAACM,WAAW,CAAC,CAAC,GACvCZ,OAAO,CAAC,IAAIa,IAAI,CAAC,CAAC,EAAE,EAAE,CAAC,CAACD,WAAW,CAAC,CAAC;EAEzC,MAAME,OAAO,GAAG,IAAID,IAAI,CAAC,CAAC,CAACD,WAAW,CAAC,CAAC;EAExC,MAAMG,eAAe,GAAG;IACtBC,QAAQ,EAAE,SAAkB;IAC5BC,SAAS,EAAEZ,SAAS;IACpBa,OAAO,EAAEJ;EACX,CAAC;EAED,IAAIK,iBAAiB,GAAG,CAAC;EACzB,IAAIC,mBAAmB,GAAG,KAAK;EAC/B,IAAIC,cAAkC,GAAGd,MAAM;EAE/C,OAAO,CAACa,mBAAmB,EAAE;IAC3B,MAAME,WAA0C,GAAG,MAAMrB,WAAW,CAClEG,cAAc,EACd;MACEW,eAAe;MACfQ,QAAQ,EAAE,CAAC,GAAG,IAAI;MAClBC,SAAS,EAAEH;IACb,CACF,CAAC;IAEDF,iBAAiB,IAAIG,WAAW,CAACG,OAAO,CAACd,MAAM;IAE/CS,mBAAmB,GAAG,CAACE,WAAW,CAACE,SAAS;IAC5CH,cAAc,GAAGC,WAAW,CAACE,SAAS;EACxC;EAEA,OAAOL,iBAAiB;AAC1B,CAAC","ignoreList":[]}
|
|
@@ -1,32 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import Healthkit from "@kingstinct/react-native-healthkit";
|
|
3
|
+
import Healthkit, { HKWorkoutTypeIdentifier } from "@kingstinct/react-native-healthkit";
|
|
4
4
|
import { addSeconds } from "date-fns";
|
|
5
|
+
import { getSamplesFromHealth } from "./get-samples-from-health.js";
|
|
5
6
|
import { healthUnitFor } from "./health-units.js";
|
|
6
|
-
export const getTotalSamplesCount = async
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
export const getTotalSamplesCount = async props => {
|
|
8
|
+
const {
|
|
9
|
+
typeIdentifier,
|
|
10
|
+
startDate: _startDate,
|
|
11
|
+
anchor,
|
|
12
|
+
mode = "point"
|
|
13
|
+
} = props;
|
|
14
|
+
if (mode !== "point" || !isQuantityIdentifier(typeIdentifier)) {
|
|
15
|
+
try {
|
|
16
|
+
const result = await getSamplesFromHealth(props);
|
|
17
|
+
return result.data.length;
|
|
18
|
+
} catch {
|
|
19
|
+
return 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
11
22
|
const startDate = _startDate ? addSeconds(_startDate, 1) : undefined;
|
|
12
|
-
const endDate = new Date();
|
|
13
23
|
try {
|
|
14
24
|
const result = await Healthkit.queryQuantitySamplesWithAnchor(typeIdentifier, {
|
|
15
25
|
from: startDate,
|
|
16
|
-
to:
|
|
26
|
+
to: new Date(),
|
|
17
27
|
anchor,
|
|
18
28
|
unit: healthUnitFor(typeIdentifier)
|
|
19
29
|
});
|
|
20
|
-
|
|
21
|
-
return 0;
|
|
22
|
-
}
|
|
23
|
-
const {
|
|
24
|
-
samples: totalSamples
|
|
25
|
-
} = result;
|
|
26
|
-
return totalSamples.length;
|
|
30
|
+
return result?.samples?.length ?? 0;
|
|
27
31
|
} catch {
|
|
28
|
-
// In case of any error, return 0
|
|
29
32
|
return 0;
|
|
30
33
|
}
|
|
31
34
|
};
|
|
35
|
+
const isQuantityIdentifier = typeIdentifier => typeof typeIdentifier === "string" && !typeIdentifier.startsWith("HKCategoryTypeIdentifier") && typeIdentifier !== HKWorkoutTypeIdentifier;
|
|
32
36
|
//# sourceMappingURL=get-total-samples-count.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Healthkit","addSeconds","healthUnitFor","getTotalSamplesCount","typeIdentifier","startDate","_startDate","anchor","
|
|
1
|
+
{"version":3,"names":["Healthkit","HKWorkoutTypeIdentifier","addSeconds","getSamplesFromHealth","healthUnitFor","getTotalSamplesCount","props","typeIdentifier","startDate","_startDate","anchor","mode","isQuantityIdentifier","result","data","length","undefined","queryQuantitySamplesWithAnchor","from","to","Date","unit","samples","startsWith"],"sourceRoot":"../../../../../src","sources":["modules/data-sync/utils/get-total-samples-count.ts"],"mappings":";;AAAA,OAAOA,SAAS,IAGdC,uBAAuB,QAClB,oCAAoC;AAC3C,SAASC,UAAU,QAAQ,UAAU;AAIrC,SAASC,oBAAoB,QAAQ,8BAA2B;AAChE,SAASC,aAAa,QAAQ,mBAAgB;AAE9C,OAAO,MAAMC,oBAAoB,GAAG,MAClCC,KAAiD,IAC7B;EACpB,MAAM;IAAEC,cAAc;IAAEC,SAAS,EAAEC,UAAU;IAAEC,MAAM;IAAEC,IAAI,GAAG;EAAQ,CAAC,GAAGL,KAAK;EAE/E,IAAIK,IAAI,KAAK,OAAO,IAAI,CAACC,oBAAoB,CAACL,cAAc,CAAC,EAAE;IAC7D,IAAI;MACF,MAAMM,MAAM,GAAG,MAAMV,oBAAoB,CAACG,KAAK,CAAC;MAEhD,OAAOO,MAAM,CAACC,IAAI,CAACC,MAAM;IAC3B,CAAC,CAAC,MAAM;MACN,OAAO,CAAC;IACV;EACF;EAEA,MAAMP,SAAS,GAAGC,UAAU,GAAGP,UAAU,CAACO,UAAU,EAAE,CAAC,CAAC,GAAGO,SAAS;EAEpE,IAAI;IACF,MAAMH,MAAM,GAAG,MAAMb,SAAS,CAACiB,8BAA8B,CAC3DV,cAAc,EACd;MACEW,IAAI,EAAEV,SAAS;MACfW,EAAE,EAAE,IAAIC,IAAI,CAAC,CAAC;MACdV,MAAM;MACNW,IAAI,EAAEjB,aAAa,CAACG,cAAc;IACpC,CACF,CAAC;IAED,OAAOM,MAAM,EAAES,OAAO,EAAEP,MAAM,IAAI,CAAC;EACrC,CAAC,CAAC,MAAM;IACN,OAAO,CAAC;EACV;AACF,CAAC;AAED,MAAMH,oBAAoB,GACxBL,cAAsC,IAEtC,OAAOA,cAAc,KAAK,QAAQ,IAClC,CAACA,cAAc,CAACgB,UAAU,CAAC,0BAA0B,CAAC,IACtDhB,cAAc,KAAKN,uBAAuB","ignoreList":[]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const EXTENSION_BASE_URL = "http://ovok.com/fhir/StructureDefinition";
|
|
4
|
+
const MANUFACTURER_URL = `${EXTENSION_BASE_URL}/device-manufacturer-name`;
|
|
5
|
+
const MODEL_URL = `${EXTENSION_BASE_URL}/device-model`;
|
|
6
|
+
const SOURCE_APP_URL = `${EXTENSION_BASE_URL}/observation-source-app`;
|
|
7
|
+
const RECORDING_METHOD_URL = `${EXTENSION_BASE_URL}/observation-recording-method`;
|
|
8
|
+
const addStringExtension = (extensions, url, value) => {
|
|
9
|
+
if (value) {
|
|
10
|
+
extensions.push({
|
|
11
|
+
url,
|
|
12
|
+
valueString: value
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
const recordingMethodLabel = recordingMethod => {
|
|
17
|
+
switch (recordingMethod) {
|
|
18
|
+
case 1:
|
|
19
|
+
return "actively recorded";
|
|
20
|
+
case 2:
|
|
21
|
+
return "automatically recorded";
|
|
22
|
+
case 3:
|
|
23
|
+
return "manual entry";
|
|
24
|
+
default:
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
export const getHealthObservationDevice = metadata => {
|
|
29
|
+
const manufacturer = metadata.manufacturer?.trim();
|
|
30
|
+
const model = metadata.model?.trim();
|
|
31
|
+
const method = recordingMethodLabel(metadata.recordingMethod);
|
|
32
|
+
const display = [manufacturer, model].filter(Boolean).join(" ") || method;
|
|
33
|
+
const extensions = [];
|
|
34
|
+
addStringExtension(extensions, MANUFACTURER_URL, manufacturer);
|
|
35
|
+
addStringExtension(extensions, MODEL_URL, model);
|
|
36
|
+
addStringExtension(extensions, SOURCE_APP_URL, metadata.sourceApp?.trim());
|
|
37
|
+
addStringExtension(extensions, RECORDING_METHOD_URL, recordingMethodLabel(metadata.recordingMethod));
|
|
38
|
+
if (!display && extensions.length === 0) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
...(display ? {
|
|
43
|
+
display
|
|
44
|
+
} : {}),
|
|
45
|
+
...(extensions.length > 0 ? {
|
|
46
|
+
extension: extensions
|
|
47
|
+
} : {})
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=health-observation-device.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["EXTENSION_BASE_URL","MANUFACTURER_URL","MODEL_URL","SOURCE_APP_URL","RECORDING_METHOD_URL","addStringExtension","extensions","url","value","push","valueString","recordingMethodLabel","recordingMethod","undefined","getHealthObservationDevice","metadata","manufacturer","trim","model","method","display","filter","Boolean","join","sourceApp","length","extension"],"sourceRoot":"../../../../../src","sources":["modules/data-sync/utils/health-observation-device.ts"],"mappings":";;AAEA,MAAMA,kBAAkB,GAAG,0CAA0C;AACrE,MAAMC,gBAAgB,GAAG,GAAGD,kBAAkB,2BAA2B;AACzE,MAAME,SAAS,GAAG,GAAGF,kBAAkB,eAAe;AACtD,MAAMG,cAAc,GAAG,GAAGH,kBAAkB,yBAAyB;AACrE,MAAMI,oBAAoB,GAAG,GAAGJ,kBAAkB,+BAA+B;AASjF,MAAMK,kBAAkB,GAAGA,CACzBC,UAAuB,EACvBC,GAAW,EACXC,KAAyB,KACtB;EACH,IAAIA,KAAK,EAAE;IACTF,UAAU,CAACG,IAAI,CAAC;MAAEF,GAAG;MAAEG,WAAW,EAAEF;IAAM,CAAC,CAAC;EAC9C;AACF,CAAC;AAED,MAAMG,oBAAoB,GAAIC,eAAmC,IAAyB;EACxF,QAAQA,eAAe;IACrB,KAAK,CAAC;MACJ,OAAO,mBAAmB;IAC5B,KAAK,CAAC;MACJ,OAAO,wBAAwB;IACjC,KAAK,CAAC;MACJ,OAAO,cAAc;IACvB;MACE,OAAOC,SAAS;EACpB;AACF,CAAC;AAED,OAAO,MAAMC,0BAA0B,GACrCC,QAAyC,IACH;EACtC,MAAMC,YAAY,GAAGD,QAAQ,CAACC,YAAY,EAAEC,IAAI,CAAC,CAAC;EAClD,MAAMC,KAAK,GAAGH,QAAQ,CAACG,KAAK,EAAED,IAAI,CAAC,CAAC;EACpC,MAAME,MAAM,GAAGR,oBAAoB,CAACI,QAAQ,CAACH,eAAe,CAAC;EAC7D,MAAMQ,OAAO,GAAG,CAACJ,YAAY,EAAEE,KAAK,CAAC,CAACG,MAAM,CAACC,OAAO,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,IAAIJ,MAAM;EACzE,MAAMb,UAAuB,GAAG,EAAE;EAElCD,kBAAkB,CAACC,UAAU,EAAEL,gBAAgB,EAAEe,YAAY,CAAC;EAC9DX,kBAAkB,CAACC,UAAU,EAAEJ,SAAS,EAAEgB,KAAK,CAAC;EAChDb,kBAAkB,CAACC,UAAU,EAAEH,cAAc,EAAEY,QAAQ,CAACS,SAAS,EAAEP,IAAI,CAAC,CAAC,CAAC;EAC1EZ,kBAAkB,CAChBC,UAAU,EACVF,oBAAoB,EACpBO,oBAAoB,CAACI,QAAQ,CAACH,eAAe,CAC/C,CAAC;EAED,IAAI,CAACQ,OAAO,IAAId,UAAU,CAACmB,MAAM,KAAK,CAAC,EAAE;IACvC,OAAOZ,SAAS;EAClB;EAEA,OAAO;IACL,IAAIO,OAAO,GAAG;MAAEA;IAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/B,IAAId,UAAU,CAACmB,MAAM,GAAG,CAAC,GAAG;MAAEC,SAAS,EAAEpB;IAAW,CAAC,GAAG,CAAC,CAAC;EAC5D,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useTranslation","StyleSheet","Text","useAppTheme","jsx","_jsx","NoData","props","t","theme","testID","style","styles","text","color","colors","onSurfaceDisabled","children","create","fontSize"
|
|
1
|
+
{"version":3,"names":["useTranslation","StyleSheet","Text","useAppTheme","jsx","_jsx","NoData","props","t","theme","testID","style","styles","text","color","colors","onSurfaceDisabled","children","create","fontSize"],"sourceRoot":"../../../../../src","sources":["modules/diary/components/no-data.tsx"],"mappings":";;AAAA,SAASA,cAAc,QAAQ,eAAe;AAC9C,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAG/C,SAASC,WAAW,QAAQ,sBAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE1C,OAAO,MAAMC,MAAM,GAAIC,KAAkB,IAAK;EAC5C,MAAM;IAAEC;EAAE,CAAC,GAAGR,cAAc,CAAC,CAAC;EAC9B,MAAMS,KAAK,GAAGN,WAAW,CAAC,CAAC;EAE3B,oBACEE,IAAA,CAACH,IAAI;IACHQ,MAAM,EAAEH,KAAK,CAACG,MAAO;IACrBC,KAAK,EAAE,CACLC,MAAM,CAACC,IAAI,EACX;MACEC,KAAK,EAAEL,KAAK,CAACM,MAAM,CAACC;IACtB,CAAC,EACDT,KAAK,CAACI,KAAK,CACX;IAAAM,QAAA,EAEDT,CAAC,CAAC,eAAe;EAAC,CACf,CAAC;AAEX,CAAC;AAED,MAAMI,MAAM,GAAGX,UAAU,CAACiB,MAAM,CAAC;EAC/BL,IAAI,EAAE;IACJM,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -32,7 +32,7 @@ export const FormDateField = /*#__PURE__*/React.memo(({
|
|
|
32
32
|
const error = getIn(touched, name) && getIn(errors, name);
|
|
33
33
|
const handleConfirm = React.useCallback(date => {
|
|
34
34
|
setIsVisible(false);
|
|
35
|
-
setFieldValue(name, date.
|
|
35
|
+
setFieldValue(name, `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, "0")}-${String(date.getDate()).padStart(2, "0")}`);
|
|
36
36
|
}, [name, setFieldValue]);
|
|
37
37
|
const handleCancel = React.useCallback(() => {
|
|
38
38
|
setIsVisible(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getIn","React","useTranslation","View","TouchableOpacity","DateTimePickerModal","HelperText","TextInput","useAppTheme","jsx","_jsx","jsxs","_jsxs","FormDateField","memo","name","context","label","testID","containerStyle","mode","t","theme","values","errors","touched","setFieldValue","setFieldTouched","useContext","isVisible","setIsVisible","useState","value","error","handleConfirm","useCallback","date","
|
|
1
|
+
{"version":3,"names":["getIn","React","useTranslation","View","TouchableOpacity","DateTimePickerModal","HelperText","TextInput","useAppTheme","jsx","_jsx","jsxs","_jsxs","FormDateField","memo","name","context","label","testID","containerStyle","mode","t","theme","values","errors","touched","setFieldValue","setFieldTouched","useContext","isVisible","setIsVisible","useState","value","error","handleConfirm","useCallback","date","getFullYear","String","getMonth","padStart","getDate","handleCancel","handlePress","style","gap","spacing","children","activeOpacity","onPress","autoCapitalize","roundness","editable","pointerEvents","Date","onConfirm","onCancel","confirmTextIOS","cancelTextIOS","modalStyleIOS","margin","justifyContent","type"],"sourceRoot":"../../../../../src","sources":["modules/helpers/form-items/form-date-field.tsx"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,QAAQ;AAC9B,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,cAAc,QAAQ,eAAe;AAC9C,SACEC,IAAI,EAGJC,gBAAgB,QACX,cAAc;AACrB,OAAOC,mBAAmB,MAAM,oCAAoC;AACpE,SAASC,UAAU,EAAEC,SAAS,QAAQ,oBAAoB;AAE1D,SAASC,WAAW,QAAQ,sBAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAc1C,OAAO,MAAMC,aAAa,gBAAGZ,KAAK,CAACa,IAAI,CACrC,CAAC;EACCC,IAAI;EACJC,OAAO;EACPC,KAAK;EACLC,MAAM;EACNC,cAAc;EACdC,IAAI,GAAG;AACW,CAAC,KAAK;EACxB,MAAM;IAAEC;EAAE,CAAC,GAAGnB,cAAc,CAAC,CAAC;EAC9B,MAAMoB,KAAK,GAAGd,WAAW,CAAC,CAAC;EAE3B,MAAM;IAAEe,MAAM;IAAEC,MAAM;IAAEC,OAAO;IAAEC,aAAa;IAAEC;EAAgB,CAAC,GAC/D1B,KAAK,CAAC2B,UAAU,CAACZ,OAAO,CAAC;EAE3B,MAAM,CAACa,SAAS,EAAEC,YAAY,CAAC,GAAG7B,KAAK,CAAC8B,QAAQ,CAAC,KAAK,CAAC;EACvD,MAAMC,KAAK,GAAGhC,KAAK,CAACuB,M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ACL6B,SAAS,EAAE;QACb,CAAE;QACFlC,KAAK,EAAEA,KAAM;QACbe,KAAK,EAAEA,KAAM;QACbC,KAAK,EAAE,CAAC,CAACA,KAAM;QACfmB,QAAQ,EAAE,KAAM;QAChBlC,MAAM,EAAEA,MAAO;QACfmC,aAAa,EAAC;MAAM,CACrB;IAAC,CACc,CAAC,eAEnB3C,IAAA,CAACL,mBAAmB;MAClBwB,SAAS,EAAEA,SAAU;MACrBT,IAAI,EAAEA,IAAK;MACXgB,IAAI,EAAEJ,KAAK,GAAG,IAAIsB,IAAI,CAACtB,KAAK,CAAC,GAAG,IAAIsB,IAAI,CAAC,CAAE;MAC3CC,SAAS,EAAErB,aAAc;MACzBsB,QAAQ,EAAEd,YAAa;MACvBe,cAAc,EAAEpC,CAAC,CAAC,gBAAgB,CAAE;MACpCqC,aAAa,EAAErC,CAAC,CAAC,eAAe,CAAE;MAClCsC,aAAa,EAAE;QACbC,MAAM,EAAE,CAAC;QAETC,cAAc,EAAE;MAClB;IAAE,CACH,CAAC,EAED5B,KAAK,gBAAGvB,IAAA,CAACJ,UAAU;MAACwD,IAAI,EAAC,OAAO;MAAAf,QAAA,EAAE1B,CAAC,CAACY,KAAK;IAAC,CAAa,CAAC,GAAG,IAAI;EAAA,CAC5D,CAAC;AAEX,CACF,CAAC","ignoreList":[]}
|
|
@@ -83,7 +83,8 @@ const FormSelectComponent = ({
|
|
|
83
83
|
}]
|
|
84
84
|
}), /*#__PURE__*/_jsx(Animated.Text, {
|
|
85
85
|
style: [styles.label, animatedLabelStyle, {
|
|
86
|
-
color: error ? theme.colors.error : theme.colors.onSurfaceVariant
|
|
86
|
+
color: error ? theme.colors.error : theme.colors.onSurfaceVariant,
|
|
87
|
+
fontFamily: theme.fonts.bodyMedium.fontFamily
|
|
87
88
|
}],
|
|
88
89
|
children: label
|
|
89
90
|
})]
|
|
@@ -103,15 +104,19 @@ const FormSelectComponent = ({
|
|
|
103
104
|
borderColor: error ? theme.colors.error : isFocused ? theme.colors.primary : theme.colors.outline
|
|
104
105
|
}, props.style],
|
|
105
106
|
placeholderStyle: [styles.placeholderStyle, {
|
|
106
|
-
color: theme.colors.onSurfaceDisabled
|
|
107
|
+
color: theme.colors.onSurfaceDisabled,
|
|
108
|
+
fontFamily: theme.fonts.bodyMedium.fontFamily
|
|
107
109
|
}, props.placeholderStyle],
|
|
108
110
|
selectedTextStyle: [styles.selectedTextStyle, {
|
|
109
|
-
color: theme.colors.onSurface
|
|
111
|
+
color: theme.colors.onSurface,
|
|
112
|
+
fontFamily: theme.fonts.bodyMedium.fontFamily
|
|
110
113
|
}, props.selectedTextStyle],
|
|
111
114
|
itemTextStyle: [{
|
|
112
115
|
color: theme.colors.onSurface
|
|
113
116
|
}, props.itemTextStyle],
|
|
114
|
-
inputSearchStyle: [styles.inputSearchStyle,
|
|
117
|
+
inputSearchStyle: [styles.inputSearchStyle, {
|
|
118
|
+
fontFamily: theme.fonts.bodyMedium.fontFamily
|
|
119
|
+
}, props.inputSearchStyle],
|
|
115
120
|
data: options,
|
|
116
121
|
onFocus: () => {
|
|
117
122
|
setIsFocused(true);
|
|
@@ -144,9 +149,7 @@ const styles = StyleSheet.create({
|
|
|
144
149
|
bottom: 6,
|
|
145
150
|
height: 2
|
|
146
151
|
},
|
|
147
|
-
label: {
|
|
148
|
-
fontFamily: "DMSans_400Regular"
|
|
149
|
-
},
|
|
152
|
+
label: {},
|
|
150
153
|
dropdown: {
|
|
151
154
|
height: 48,
|
|
152
155
|
borderRadius: 10,
|
|
@@ -154,17 +157,14 @@ const styles = StyleSheet.create({
|
|
|
154
157
|
paddingVertical: 12
|
|
155
158
|
},
|
|
156
159
|
placeholderStyle: {
|
|
157
|
-
fontSize: 14
|
|
158
|
-
fontFamily: "DMSans_400Regular"
|
|
160
|
+
fontSize: 14
|
|
159
161
|
},
|
|
160
162
|
selectedTextStyle: {
|
|
161
|
-
fontSize: 14
|
|
162
|
-
fontFamily: "DMSans_400Regular"
|
|
163
|
+
fontSize: 14
|
|
163
164
|
},
|
|
164
165
|
inputSearchStyle: {
|
|
165
166
|
height: 40,
|
|
166
|
-
fontSize: 14
|
|
167
|
-
fontFamily: "DMSans_400Regular"
|
|
167
|
+
fontSize: 14
|
|
168
168
|
}
|
|
169
169
|
});
|
|
170
170
|
//# sourceMappingURL=form-select.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getIn","React","useTranslation","StyleSheet","View","Dropdown","HelperText","Animated","useSharedValue","useAnimatedStyle","withTiming","useAppTheme","jsx","_jsx","jsxs","_jsxs","FormSelectComponent","name","context","label","options","containerStyle","search","searchPlaceholder","testID","onChange","onBlur","props","theme","t","isFocused","setIsFocused","useState","values","errors","touched","setFieldValue","setFieldTouched","useContext","value","error","labelAnimation","isActive","animatedLabelContainerStyle","position","left","top","duration","zIndex","paddingHorizontal","animatedLabelStyle","fontSize","handleChange","useCallback","item","valueField","handleBlur","style","styles","container","gap","spacing","children","pointerEvents","underBorder","backgroundColor","colors","background","Text","color","onSurfaceVariant","maxHeight","placeholder","undefined","activeColor","surfaceVariant","dropdown","borderWidth","borderColor","primary","outline","placeholderStyle","onSurfaceDisabled","selectedTextStyle","onSurface","itemTextStyle","inputSearchStyle","data","onFocus","borderRadius","overflow","type","FormSelect","memo","create","right","bottom","height","
|
|
1
|
+
{"version":3,"names":["getIn","React","useTranslation","StyleSheet","View","Dropdown","HelperText","Animated","useSharedValue","useAnimatedStyle","withTiming","useAppTheme","jsx","_jsx","jsxs","_jsxs","FormSelectComponent","name","context","label","options","containerStyle","search","searchPlaceholder","testID","onChange","onBlur","props","theme","t","isFocused","setIsFocused","useState","values","errors","touched","setFieldValue","setFieldTouched","useContext","value","error","labelAnimation","isActive","animatedLabelContainerStyle","position","left","top","duration","zIndex","paddingHorizontal","animatedLabelStyle","fontSize","handleChange","useCallback","item","valueField","handleBlur","style","styles","container","gap","spacing","children","pointerEvents","underBorder","backgroundColor","colors","background","Text","color","onSurfaceVariant","fontFamily","fonts","bodyMedium","maxHeight","placeholder","undefined","activeColor","surfaceVariant","dropdown","borderWidth","borderColor","primary","outline","placeholderStyle","onSurfaceDisabled","selectedTextStyle","onSurface","itemTextStyle","inputSearchStyle","data","onFocus","borderRadius","overflow","type","FormSelect","memo","create","right","bottom","height","paddingVertical"],"sourceRoot":"../../../../../src","sources":["modules/helpers/form-items/form-select.tsx"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,QAAQ;AAC9B,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,UAAU,EAAEC,IAAI,QAAwB,cAAc;AAC/D,SAASC,QAAQ,QAAQ,+BAA+B;AAExD,SAASC,UAAU,QAAQ,oBAAoB;AAC/C,OAAOC,QAAQ,IACbC,cAAc,EACdC,gBAAgB,EAChBC,UAAU,QACL,yBAAyB;AAEhC,SAASC,WAAW,QAAQ,sBAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAkB1C,MAAMC,mBAAmB,GAAGA,CAA6C;EACvEC,IAAI;EACJC,OAAO;EACPC,KAAK;EACLC,OAAO;EACPC,cAAc;EACdC,MAAM;EACNC,iBAAiB;EACjBC,MAAM;EACNC,QAAQ;EACRC,MAAM;EACN,GAAGC;AACe,CAAC,KAAK;EACxB,MAAMC,KAAK,GAAGjB,WAAW,CAAC,CAAC;EAC3B,MAAM;IAAEkB;EAAE,CAAC,GAAG3B,cAAc,CAAC,CAAC;EAC9B,MAAM,CAAC4B,SAAS,EAAEC,YAAY,CAAC,GAAG9B,KAAK,CAAC+B,QAAQ,CAAC,KAAK,CAAC;EAEvD,MAAM;IAAEC,MAAM;IAAEC,MAAM;IAAEC,OAAO;IAAEC,aAAa;IAAEC;EAAgB,CAAC,GAC/DpC,KAAK,CAACqC,UAAU,CAACpB,OAAO,CAAC;EAE3B,MAAMqB,KAAK,GAAGvC,KAAK,CAACiC,MAAM,EAAEhB,IAAI,CAAC;EAEjC,MAAMu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