@ovok/native 1.10.3 → 1.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/modules/auth/default-translation.js +21 -0
- package/lib/commonjs/modules/auth/default-translation.js.map +1 -1
- package/lib/commonjs/modules/auth/hooks/use-delete-account.js +1 -1
- package/lib/commonjs/modules/auth/hooks/use-delete-account.js.map +1 -1
- package/lib/commonjs/modules/auth/hooks/use-session.js +5 -0
- package/lib/commonjs/modules/auth/hooks/use-session.js.map +1 -1
- package/lib/commonjs/modules/auth/register/components/form/register-form-provider.js +1 -0
- package/lib/commonjs/modules/auth/register/components/form/register-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-form-provider.js +1 -0
- package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/session/logout-session.js +6 -1
- package/lib/commonjs/modules/auth/session/logout-session.js.map +1 -1
- package/lib/commonjs/modules/auth/session/session-store-refresh.js +130 -0
- package/lib/commonjs/modules/auth/session/session-store-refresh.js.map +1 -0
- package/lib/commonjs/modules/auth/session/session-store-request-state.js +73 -0
- package/lib/commonjs/modules/auth/session/session-store-request-state.js.map +1 -0
- package/lib/commonjs/modules/auth/session/session-store-types.js.map +1 -1
- package/lib/commonjs/modules/auth/session/session-store.js +69 -120
- package/lib/commonjs/modules/auth/session/session-store.js.map +1 -1
- package/lib/commonjs/modules/auth/utils/sign-in-error.js +4 -2
- package/lib/commonjs/modules/auth/utils/sign-in-error.js.map +1 -1
- package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-provider.js.map +1 -1
- package/lib/commonjs/modules/data-sync/hooks/use-listen-changes.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/utils/convert-generic-health-data.js +47 -21
- package/lib/commonjs/modules/data-sync/utils/convert-generic-health-data.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/convert-records-to-observation.js +19 -16
- 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 +17 -4
- package/lib/commonjs/modules/data-sync/utils/convert-samples-to-observation.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/get-samples-from-health.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/get-total-samples-count.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/health-data-catalog.js +168 -5
- package/lib/commonjs/modules/data-sync/utils/health-data-catalog.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/health-record-timing.js +52 -0
- package/lib/commonjs/modules/data-sync/utils/health-record-timing.js.map +1 -0
- package/lib/commonjs/modules/data-sync/utils/healthkit-data-types.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/normalize-core-health-observation.js +74 -0
- package/lib/commonjs/modules/data-sync/utils/normalize-core-health-observation.js.map +1 -0
- package/lib/commonjs/modules/helpers/form-items/form-field.js +12 -3
- package/lib/commonjs/modules/helpers/form-items/form-field.js.map +1 -1
- package/lib/commonjs/modules/picker-sheet/components/value-wheel-picker.js +41 -0
- package/lib/commonjs/modules/picker-sheet/components/value-wheel-picker.js.map +1 -0
- package/lib/commonjs/modules/picker-sheet/components/wheel-picker.js +56 -15
- package/lib/commonjs/modules/picker-sheet/components/wheel-picker.js.map +1 -1
- package/lib/commonjs/modules/picker-sheet/index.js +11 -0
- package/lib/commonjs/modules/picker-sheet/index.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/README.md +82 -23
- package/lib/commonjs/modules/questionnaire-response-form/components/content/questionnaire-content-item.js +8 -0
- package/lib/commonjs/modules/questionnaire-response-form/components/content/questionnaire-content-item.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/content/questionnaire-content-specific-item.js +8 -0
- package/lib/commonjs/modules/questionnaire-response-form/components/content/questionnaire-content-specific-item.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/common/questionnaire-field-wrapper.js +8 -3
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/common/questionnaire-field-wrapper.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-choice-field.js +9 -3
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-choice-field.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-date-field.js +18 -8
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-date-field.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.js +41 -2
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-text-field.js +43 -5
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-text-field.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/header/questionnaire-header-title.js +3 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/header/questionnaire-header-title.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form-provider.js +52 -13
- package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form-provider.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form.js +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-navigation-provider.js +9 -3
- package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-navigation-provider.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/hooks/use-initial-selected-values.js +5 -3
- package/lib/commonjs/modules/questionnaire-response-form/hooks/use-initial-selected-values.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/hooks/use-navigation-handlers.js +15 -4
- package/lib/commonjs/modules/questionnaire-response-form/hooks/use-navigation-handlers.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.js +14 -7
- package/lib/commonjs/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/index.js +20 -0
- package/lib/commonjs/modules/questionnaire-response-form/index.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/types/questionnaire-form-values.js +4 -0
- package/lib/commonjs/modules/questionnaire-response-form/types/questionnaire-item-render-props.js +6 -0
- package/lib/commonjs/modules/questionnaire-response-form/types/questionnaire-item-render-props.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/types/response-values.js +4 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/condition-utils.js +37 -6
- package/lib/commonjs/modules/questionnaire-response-form/utils/condition-utils.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/utils/conditions/fhir-condition.js +148 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/conditions/fhir-condition.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/create-answer-from-value.js +127 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/create-answer-from-value.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/fields/get-option-text.js +4 -3
- package/lib/commonjs/modules/questionnaire-response-form/utils/fields/get-option-text.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/utils/form-utils.js +71 -64
- package/lib/commonjs/modules/questionnaire-response-form/utils/form-utils.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/utils/form-validation.js +23 -5
- package/lib/commonjs/modules/questionnaire-response-form/utils/form-validation.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.js +10 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.js +83 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-date-utils.js +54 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-date-utils.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-item-constraints.js +75 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-item-constraints.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.js +63 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.js +49 -18
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-picker-options.js +117 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-picker-options.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.js +109 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js +77 -2
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/utils/translate-fhir-text.js +36 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/translate-fhir-text.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.js +49 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.js.map +1 -0
- package/lib/commonjs/modules/ui/components/prerequisite-gate.js +73 -0
- package/lib/commonjs/modules/ui/components/prerequisite-gate.js.map +1 -0
- package/lib/commonjs/modules/ui/index.js +11 -0
- package/lib/commonjs/modules/ui/index.js.map +1 -1
- package/lib/commonjs/polyfills/index.js +9 -7
- package/lib/commonjs/polyfills/index.js.map +1 -1
- package/lib/module/modules/auth/default-translation.js +21 -0
- package/lib/module/modules/auth/default-translation.js.map +1 -1
- package/lib/module/modules/auth/hooks/use-delete-account.js +1 -1
- package/lib/module/modules/auth/hooks/use-delete-account.js.map +1 -1
- package/lib/module/modules/auth/hooks/use-session.js +5 -0
- package/lib/module/modules/auth/hooks/use-session.js.map +1 -1
- package/lib/module/modules/auth/register/components/form/register-form-provider.js +1 -0
- package/lib/module/modules/auth/register/components/form/register-form-provider.js.map +1 -1
- package/lib/module/modules/auth/reset-password/components/form/reset-password-form-provider.js +1 -0
- package/lib/module/modules/auth/reset-password/components/form/reset-password-form-provider.js.map +1 -1
- package/lib/module/modules/auth/session/logout-session.js +6 -1
- package/lib/module/modules/auth/session/logout-session.js.map +1 -1
- package/lib/module/modules/auth/session/session-store-refresh.js +126 -0
- package/lib/module/modules/auth/session/session-store-refresh.js.map +1 -0
- package/lib/module/modules/auth/session/session-store-request-state.js +69 -0
- package/lib/module/modules/auth/session/session-store-request-state.js.map +1 -0
- package/lib/module/modules/auth/session/session-store-types.js.map +1 -1
- package/lib/module/modules/auth/session/session-store.js +70 -121
- package/lib/module/modules/auth/session/session-store.js.map +1 -1
- package/lib/module/modules/auth/utils/sign-in-error.js +4 -2
- package/lib/module/modules/auth/utils/sign-in-error.js.map +1 -1
- package/lib/module/modules/data-sync/components/apple/apple-health-authorization-provider.js.map +1 -1
- package/lib/module/modules/data-sync/hooks/use-listen-changes.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/utils/convert-generic-health-data.js +47 -21
- package/lib/module/modules/data-sync/utils/convert-generic-health-data.js.map +1 -1
- package/lib/module/modules/data-sync/utils/convert-records-to-observation.js +19 -16
- 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 +17 -4
- package/lib/module/modules/data-sync/utils/convert-samples-to-observation.js.map +1 -1
- package/lib/module/modules/data-sync/utils/get-samples-from-health.js.map +1 -1
- package/lib/module/modules/data-sync/utils/get-total-samples-count.js.map +1 -1
- package/lib/module/modules/data-sync/utils/health-data-catalog.js +168 -5
- package/lib/module/modules/data-sync/utils/health-data-catalog.js.map +1 -1
- package/lib/module/modules/data-sync/utils/health-record-timing.js +47 -0
- package/lib/module/modules/data-sync/utils/health-record-timing.js.map +1 -0
- package/lib/module/modules/data-sync/utils/healthkit-data-types.js.map +1 -1
- package/lib/module/modules/data-sync/utils/normalize-core-health-observation.js +69 -0
- package/lib/module/modules/data-sync/utils/normalize-core-health-observation.js.map +1 -0
- package/lib/module/modules/helpers/form-items/form-field.js +12 -3
- package/lib/module/modules/helpers/form-items/form-field.js.map +1 -1
- package/lib/module/modules/picker-sheet/components/value-wheel-picker.js +36 -0
- package/lib/module/modules/picker-sheet/components/value-wheel-picker.js.map +1 -0
- package/lib/module/modules/picker-sheet/components/wheel-picker.js +56 -15
- package/lib/module/modules/picker-sheet/components/wheel-picker.js.map +1 -1
- package/lib/module/modules/picker-sheet/index.js +1 -0
- package/lib/module/modules/picker-sheet/index.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/README.md +82 -23
- package/lib/module/modules/questionnaire-response-form/components/content/questionnaire-content-item.js +8 -0
- package/lib/module/modules/questionnaire-response-form/components/content/questionnaire-content-item.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/content/questionnaire-content-specific-item.js +8 -0
- package/lib/module/modules/questionnaire-response-form/components/content/questionnaire-content-specific-item.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/fields/common/questionnaire-field-wrapper.js +8 -3
- package/lib/module/modules/questionnaire-response-form/components/fields/common/questionnaire-field-wrapper.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-choice-field.js +9 -3
- package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-choice-field.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-date-field.js +18 -8
- package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-date-field.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.js +42 -3
- package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-text-field.js +41 -3
- package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-text-field.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/header/questionnaire-header-title.js +3 -1
- package/lib/module/modules/questionnaire-response-form/components/header/questionnaire-header-title.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/questionnaire-form-provider.js +52 -13
- package/lib/module/modules/questionnaire-response-form/components/questionnaire-form-provider.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/questionnaire-form.js +1 -0
- package/lib/module/modules/questionnaire-response-form/components/questionnaire-form.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/questionnaire-navigation-provider.js +9 -3
- package/lib/module/modules/questionnaire-response-form/components/questionnaire-navigation-provider.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/hooks/use-initial-selected-values.js +5 -3
- package/lib/module/modules/questionnaire-response-form/hooks/use-initial-selected-values.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/hooks/use-navigation-handlers.js +15 -4
- package/lib/module/modules/questionnaire-response-form/hooks/use-navigation-handlers.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.js +14 -7
- package/lib/module/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/index.js +2 -0
- package/lib/module/modules/questionnaire-response-form/index.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/types/questionnaire-form-values.js +2 -0
- package/lib/module/modules/questionnaire-response-form/types/questionnaire-item-render-props.js +4 -0
- package/lib/module/modules/questionnaire-response-form/types/questionnaire-item-render-props.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/types/response-values.js +2 -0
- package/lib/module/modules/questionnaire-response-form/utils/condition-utils.js +37 -6
- package/lib/module/modules/questionnaire-response-form/utils/condition-utils.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/utils/conditions/fhir-condition.js +140 -0
- package/lib/module/modules/questionnaire-response-form/utils/conditions/fhir-condition.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/utils/create-answer-from-value.js +122 -0
- package/lib/module/modules/questionnaire-response-form/utils/create-answer-from-value.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/utils/fields/get-option-text.js +4 -3
- package/lib/module/modules/questionnaire-response-form/utils/fields/get-option-text.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/utils/form-utils.js +71 -64
- package/lib/module/modules/questionnaire-response-form/utils/form-utils.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/utils/form-validation.js +23 -5
- package/lib/module/modules/questionnaire-response-form/utils/form-validation.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.js +5 -0
- package/lib/module/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.js +77 -0
- package/lib/module/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-date-utils.js +49 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-date-utils.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-item-constraints.js +71 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-item-constraints.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.js +57 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.js +49 -18
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-picker-options.js +112 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-picker-options.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.js +105 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js +77 -2
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/utils/translate-fhir-text.js +31 -0
- package/lib/module/modules/questionnaire-response-form/utils/translate-fhir-text.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.js +44 -0
- package/lib/module/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.js.map +1 -0
- package/lib/module/modules/ui/components/prerequisite-gate.js +67 -0
- package/lib/module/modules/ui/components/prerequisite-gate.js.map +1 -0
- package/lib/module/modules/ui/index.js +1 -0
- package/lib/module/modules/ui/index.js.map +1 -1
- package/lib/module/polyfills/index.js +11 -1
- package/lib/module/polyfills/index.js.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/default-translation.d.ts +21 -0
- package/lib/typescript/commonjs/src/modules/auth/default-translation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-session.d.ts +6 -1
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-session.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/register/components/form/register-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/reset-password/components/form/reset-password-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/logout-session.d.ts +4 -2
- package/lib/typescript/commonjs/src/modules/auth/session/logout-session.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-refresh.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-refresh.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-request-state.d.ts +23 -0
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-request-state.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-types.d.ts +10 -2
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/session-store.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/session-store.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/utils/sign-in-error.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/auth/utils/sign-in-error.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-authorization-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/hooks/use-listen-changes.d.ts +2 -3
- package/lib/typescript/commonjs/src/modules/data-sync/hooks/use-listen-changes.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/services/apple-health-sync-service.d.ts +4 -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/types/apple-health-authorization-provider-props.d.ts +4 -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 +7 -1
- 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/health-authorization-status.d.ts +2 -1
- 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/utils/convert-generic-health-data.d.ts +3 -2
- package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-generic-health-data.d.ts.map +1 -1
- 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.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-samples-from-health.d.ts +5 -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-samples-count.d.ts +2 -2
- 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-data-catalog.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-data-catalog.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-record-timing.d.ts +10 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-record-timing.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-data-types.d.ts +6 -5
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-data-types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/normalize-core-health-observation.d.ts +13 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/normalize-core-health-observation.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/helpers/form-items/form-field.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/picker-sheet/components/value-wheel-picker.d.ts +21 -0
- package/lib/typescript/commonjs/src/modules/picker-sheet/components/value-wheel-picker.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/picker-sheet/components/wheel-picker.d.ts +7 -3
- package/lib/typescript/commonjs/src/modules/picker-sheet/components/wheel-picker.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/picker-sheet/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/picker-sheet/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/content/questionnaire-content-item.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/content/questionnaire-content-specific-item.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/common/questionnaire-field-wrapper.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/questionnaire-choice-field.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/questionnaire-date-field.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/questionnaire-date-field.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.d.ts +9 -3
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/questionnaire-text-field.d.ts +5 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/questionnaire-text-field.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/header/questionnaire-header-title.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/questionnaire-form-provider.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/questionnaire-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/questionnaire-form.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/questionnaire-navigation-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/hooks/use-initial-selected-values.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/hooks/use-navigation-handlers.d.ts +6 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/hooks/use-navigation-handlers.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/index.d.ts +4 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/extended-questionnaire-item.d.ts +7 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/extended-questionnaire-item.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-context-type.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-context-type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-props.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-provider-props.d.ts +11 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-provider-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-values.d.ts +5 -2
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-values.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-item-render-props.d.ts +15 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-item-render-props.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-navigation-provider-props.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-navigation-provider-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/response-values.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/response-values.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/condition-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/conditions/fhir-condition.d.ts +9 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/conditions/fhir-condition.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/create-answer-from-value.d.ts +7 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/create-answer-from-value.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/fields/get-option-text.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/fields/get-option-text.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/form-utils.d.ts +4 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/form-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/form-validation.d.ts +4 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/form-validation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-date-utils.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-date-utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-item-constraints.d.ts +22 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-item-constraints.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.d.ts +10 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-picker-options.d.ts +15 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-picker-options.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts +6 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/translate-fhir-text.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/translate-fhir-text.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/ui/components/prerequisite-gate.d.ts +19 -0
- package/lib/typescript/commonjs/src/modules/ui/components/prerequisite-gate.d.ts.map +1 -0
- 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/polyfills/index.d.ts +7 -1
- package/lib/typescript/commonjs/src/polyfills/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/default-translation.d.ts +21 -0
- package/lib/typescript/module/src/modules/auth/default-translation.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/hooks/use-session.d.ts +6 -1
- package/lib/typescript/module/src/modules/auth/hooks/use-session.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/register/components/form/register-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/reset-password/components/form/reset-password-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/session/logout-session.d.ts +4 -2
- package/lib/typescript/module/src/modules/auth/session/logout-session.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/session/session-store-refresh.d.ts +8 -0
- package/lib/typescript/module/src/modules/auth/session/session-store-refresh.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/session/session-store-request-state.d.ts +23 -0
- package/lib/typescript/module/src/modules/auth/session/session-store-request-state.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/session/session-store-types.d.ts +10 -2
- package/lib/typescript/module/src/modules/auth/session/session-store-types.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/session/session-store.d.ts +1 -1
- package/lib/typescript/module/src/modules/auth/session/session-store.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/utils/sign-in-error.d.ts +2 -1
- package/lib/typescript/module/src/modules/auth/utils/sign-in-error.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-authorization-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/hooks/use-listen-changes.d.ts +2 -3
- package/lib/typescript/module/src/modules/data-sync/hooks/use-listen-changes.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/services/apple-health-sync-service.d.ts +4 -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/types/apple-health-authorization-provider-props.d.ts +4 -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 +7 -1
- 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/health-authorization-status.d.ts +2 -1
- 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/utils/convert-generic-health-data.d.ts +3 -2
- package/lib/typescript/module/src/modules/data-sync/utils/convert-generic-health-data.d.ts.map +1 -1
- 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.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-samples-from-health.d.ts +5 -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-samples-count.d.ts +2 -2
- 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-data-catalog.d.ts +3 -1
- package/lib/typescript/module/src/modules/data-sync/utils/health-data-catalog.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/health-record-timing.d.ts +10 -0
- package/lib/typescript/module/src/modules/data-sync/utils/health-record-timing.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-data-types.d.ts +6 -5
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-data-types.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/normalize-core-health-observation.d.ts +13 -0
- package/lib/typescript/module/src/modules/data-sync/utils/normalize-core-health-observation.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/helpers/form-items/form-field.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/picker-sheet/components/value-wheel-picker.d.ts +21 -0
- package/lib/typescript/module/src/modules/picker-sheet/components/value-wheel-picker.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/picker-sheet/components/wheel-picker.d.ts +7 -3
- package/lib/typescript/module/src/modules/picker-sheet/components/wheel-picker.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/picker-sheet/index.d.ts +1 -0
- package/lib/typescript/module/src/modules/picker-sheet/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/content/questionnaire-content-item.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/content/questionnaire-content-specific-item.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/common/questionnaire-field-wrapper.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/questionnaire-choice-field.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/questionnaire-date-field.d.ts +3 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/questionnaire-date-field.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.d.ts +9 -3
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/questionnaire-text-field.d.ts +5 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/questionnaire-text-field.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/header/questionnaire-header-title.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/questionnaire-form-provider.d.ts +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/questionnaire-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/questionnaire-form.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/questionnaire-navigation-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/hooks/use-initial-selected-values.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/hooks/use-navigation-handlers.d.ts +6 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/hooks/use-navigation-handlers.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.d.ts +2 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/index.d.ts +4 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/extended-questionnaire-item.d.ts +7 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/extended-questionnaire-item.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-context-type.d.ts +6 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-context-type.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-props.d.ts +3 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-provider-props.d.ts +11 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-provider-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-values.d.ts +5 -2
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-values.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-item-render-props.d.ts +15 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-item-render-props.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-navigation-provider-props.d.ts +5 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-navigation-provider-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/response-values.d.ts +2 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/response-values.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/condition-utils.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/conditions/fhir-condition.d.ts +9 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/conditions/fhir-condition.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/create-answer-from-value.d.ts +7 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/create-answer-from-value.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/fields/get-option-text.d.ts +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/fields/get-option-text.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/form-utils.d.ts +4 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/form-utils.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/form-validation.d.ts +4 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/form-validation.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.d.ts +3 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.d.ts +8 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-date-utils.d.ts +5 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-date-utils.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-item-constraints.d.ts +22 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-item-constraints.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.d.ts +10 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.d.ts +2 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-picker-options.d.ts +15 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-picker-options.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.d.ts +5 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts +6 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/translate-fhir-text.d.ts +4 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/translate-fhir-text.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.d.ts +6 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/ui/components/prerequisite-gate.d.ts +19 -0
- package/lib/typescript/module/src/modules/ui/components/prerequisite-gate.d.ts.map +1 -0
- 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/polyfills/index.d.ts +7 -1
- package/lib/typescript/module/src/polyfills/index.d.ts.map +1 -1
- package/package.json +18 -3
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.validateStringConstraints = void 0;
|
|
7
|
+
const compare = (value, bound) => {
|
|
8
|
+
if (typeof value === "number" && typeof bound === "number") {
|
|
9
|
+
return value - bound;
|
|
10
|
+
}
|
|
11
|
+
if (typeof value === "string" && typeof bound === "string") {
|
|
12
|
+
if (/^\d{4}(?:-\d{2}){0,2}$/.test(value) && /^\d{4}(?:-\d{2}){0,2}$/.test(bound)) {
|
|
13
|
+
return value.localeCompare(bound);
|
|
14
|
+
}
|
|
15
|
+
if (value.includes("T") && bound.includes("T")) {
|
|
16
|
+
const valueTime = Date.parse(value);
|
|
17
|
+
const boundTime = Date.parse(bound);
|
|
18
|
+
if (Number.isFinite(valueTime) && Number.isFinite(boundTime)) {
|
|
19
|
+
return valueTime - boundTime;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return value.localeCompare(bound);
|
|
23
|
+
}
|
|
24
|
+
return Number.NaN;
|
|
25
|
+
};
|
|
26
|
+
const getDateInterval = value => {
|
|
27
|
+
if (value.includes("T")) {
|
|
28
|
+
const timestamp = Date.parse(value);
|
|
29
|
+
return Number.isFinite(timestamp) ? {
|
|
30
|
+
start: timestamp,
|
|
31
|
+
end: timestamp
|
|
32
|
+
} : undefined;
|
|
33
|
+
}
|
|
34
|
+
const match = /^(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?$/.exec(value);
|
|
35
|
+
if (!match) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
const year = Number(match[1]);
|
|
39
|
+
const month = Number(match[2] ?? 1);
|
|
40
|
+
const startDay = Number(match[3] ?? 1);
|
|
41
|
+
const endDay = match[3] ? startDay : match[2] ? new Date(year, month, 0).getDate() : 31;
|
|
42
|
+
const start = new Date(year, month - 1, startDay).getTime();
|
|
43
|
+
const end = new Date(year, match[2] ? month - 1 : 11, endDay, 23, 59, 59, 999).getTime();
|
|
44
|
+
return {
|
|
45
|
+
start,
|
|
46
|
+
end
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
const getTimeValue = value => {
|
|
50
|
+
const match = /^(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d+))?)?$/.exec(value);
|
|
51
|
+
if (!match) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
const hours = Number(match[1]);
|
|
55
|
+
const minutes = Number(match[2]);
|
|
56
|
+
const seconds = Number(match[3] ?? 0);
|
|
57
|
+
if (hours > 23 || minutes > 59 || seconds > 59) {
|
|
58
|
+
return undefined;
|
|
59
|
+
}
|
|
60
|
+
const fractionalSeconds = match[4] ? Number(`0.${match[4]}`) : 0;
|
|
61
|
+
return hours * 3600 + minutes * 60 + seconds + fractionalSeconds;
|
|
62
|
+
};
|
|
63
|
+
const validateDateConstraints = (answer, constraints) => {
|
|
64
|
+
const {
|
|
65
|
+
minValue: min,
|
|
66
|
+
maxValue: max
|
|
67
|
+
} = constraints;
|
|
68
|
+
const answerInterval = getDateInterval(answer);
|
|
69
|
+
const minInterval = typeof min === "string" ? getDateInterval(min) : undefined;
|
|
70
|
+
const maxInterval = typeof max === "string" ? getDateInterval(max) : undefined;
|
|
71
|
+
if (!answerInterval || min !== undefined && !minInterval || max !== undefined && !maxInterval) {
|
|
72
|
+
return "invalid-answer";
|
|
73
|
+
}
|
|
74
|
+
return minInterval && answerInterval.start < minInterval.start || maxInterval && answerInterval.end > maxInterval.end ? "out-of-range" : undefined;
|
|
75
|
+
};
|
|
76
|
+
const validateTimeConstraints = (answer, constraints) => {
|
|
77
|
+
const {
|
|
78
|
+
minValue: min,
|
|
79
|
+
maxValue: max
|
|
80
|
+
} = constraints;
|
|
81
|
+
const answerTime = getTimeValue(answer);
|
|
82
|
+
const minTime = typeof min === "string" ? getTimeValue(min) : undefined;
|
|
83
|
+
const maxTime = typeof max === "string" ? getTimeValue(max) : undefined;
|
|
84
|
+
if (answerTime === undefined || min !== undefined && minTime === undefined || max !== undefined && maxTime === undefined) {
|
|
85
|
+
return "invalid-answer";
|
|
86
|
+
}
|
|
87
|
+
return minTime !== undefined && answerTime < minTime || maxTime !== undefined && answerTime > maxTime ? "out-of-range" : undefined;
|
|
88
|
+
};
|
|
89
|
+
const validateOtherStringConstraints = (answer, constraints) => {
|
|
90
|
+
const {
|
|
91
|
+
minValue: min,
|
|
92
|
+
maxValue: max
|
|
93
|
+
} = constraints;
|
|
94
|
+
if (min !== undefined && max !== undefined && compare(min, max) > 0) {
|
|
95
|
+
return "out-of-range";
|
|
96
|
+
}
|
|
97
|
+
return min !== undefined && compare(answer, min) < 0 || max !== undefined && compare(answer, max) > 0 ? "out-of-range" : undefined;
|
|
98
|
+
};
|
|
99
|
+
const validateStringConstraints = (answer, item, constraints) => {
|
|
100
|
+
if (item.type === "date" || item.type === "dateTime") {
|
|
101
|
+
return validateDateConstraints(answer, constraints);
|
|
102
|
+
}
|
|
103
|
+
if (item.type === "time") {
|
|
104
|
+
return validateTimeConstraints(answer, constraints);
|
|
105
|
+
}
|
|
106
|
+
return validateOtherStringConstraints(answer, constraints);
|
|
107
|
+
};
|
|
108
|
+
exports.validateStringConstraints = validateStringConstraints;
|
|
109
|
+
//# sourceMappingURL=questionnaire-string-constraint-validator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["compare","value","bound","test","localeCompare","includes","valueTime","Date","parse","boundTime","Number","isFinite","NaN","getDateInterval","timestamp","start","end","undefined","match","exec","year","month","startDay","endDay","getDate","getTime","getTimeValue","hours","minutes","seconds","fractionalSeconds","validateDateConstraints","answer","constraints","minValue","min","maxValue","max","answerInterval","minInterval","maxInterval","validateTimeConstraints","answerTime","minTime","maxTime","validateOtherStringConstraints","validateStringConstraints","item","type","exports"],"sourceRoot":"../../../../../src","sources":["modules/questionnaire-response-form/utils/questionna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,WAAyC,KACS;EAClD,IAAIc,IAAI,CAACC,IAAI,KAAK,MAAM,IAAID,IAAI,CAACC,IAAI,KAAK,UAAU,EAAE;IACpD,OAAOjB,uBAAuB,CAACC,MAAM,EAAEC,WAAW,CAAC;EACrD;EAEA,IAAIc,IAAI,CAACC,IAAI,KAAK,MAAM,EAAE;IACxB,OAAOP,uBAAuB,CAACT,MAAM,EAAEC,WAAW,CAAC;EACrD;EAEA,OAAOY,8BAA8B,CAACb,MAAM,EAAEC,WAAW,CAAC;AAC5D,CAAC;AAACgB,OAAA,CAAAH,yBAAA,GAAAA,yBAAA","ignoreList":[]}
|
package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js
CHANGED
|
@@ -5,13 +5,88 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.QuestionnaireSubmitUtils = void 0;
|
|
7
7
|
var _formUtils = require("./form-utils.js");
|
|
8
|
+
const OBSERVATION_EXTRACT_EXTENSION = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-observationExtract";
|
|
9
|
+
const EXTRACTED_OBSERVATION_IDENTIFIER_SYSTEM = "https://sdk.ovok.com/questionnaire-response-observation";
|
|
10
|
+
const hasObservationExtractExtension = (items = []) => items.some(item => item.extension?.some(extension => extension.url === OBSERVATION_EXTRACT_EXTENSION && extension.valueBoolean === true) || hasObservationExtractExtension(item.item));
|
|
8
11
|
class QuestionnaireSubmitUtils {
|
|
9
|
-
static
|
|
12
|
+
static questionnaireHasObservationExtraction(questionnaire) {
|
|
13
|
+
return questionnaire.extension?.some(extension => extension.url === OBSERVATION_EXTRACT_EXTENSION && extension.valueBoolean === true) === true || hasObservationExtractExtension(questionnaire.item);
|
|
14
|
+
}
|
|
15
|
+
static async persistQuestionnaireResponse(client, response, extractObservations) {
|
|
16
|
+
const identifier = response.identifier;
|
|
17
|
+
if (!identifier?.system || !identifier.value) {
|
|
18
|
+
throw new Error("questionnaire-form.error.submit-failed");
|
|
19
|
+
}
|
|
20
|
+
if (extractObservations && !client.getProject()?.features?.includes("transaction-bundles")) {
|
|
21
|
+
throw new Error("questionnaire-form.error.atomic-save-required");
|
|
22
|
+
}
|
|
23
|
+
const persistedResponse = await client.createResourceIfNoneExist(extractObservations ? {
|
|
24
|
+
...response,
|
|
25
|
+
status: "in-progress"
|
|
26
|
+
} : response, `identifier=${identifier.system}|${identifier.value}`);
|
|
27
|
+
if (!extractObservations || persistedResponse.status === "completed") {
|
|
28
|
+
return persistedResponse;
|
|
29
|
+
}
|
|
30
|
+
if (!persistedResponse.id || !persistedResponse.meta?.versionId) {
|
|
31
|
+
throw new Error("questionnaire-form.error.submit-failed");
|
|
32
|
+
}
|
|
33
|
+
const extraction = await client.extractQuestionnaireObservations(persistedResponse.id);
|
|
34
|
+
const extractedBundle = extraction.parameter?.find(parameter => parameter.name === "response")?.resource;
|
|
35
|
+
if (!extractedBundle || extractedBundle.resourceType !== "Bundle" || extractedBundle.type !== "transaction") {
|
|
36
|
+
throw new Error("questionnaire-form.error.extraction-failed");
|
|
37
|
+
}
|
|
38
|
+
const extractedEntries = extractedBundle.entry ?? [];
|
|
39
|
+
const transactionEntries = extractedEntries.map((entry, index) => {
|
|
40
|
+
const observation = entry.resource;
|
|
41
|
+
if (observation?.resourceType !== "Observation" || entry.request?.method !== "POST") {
|
|
42
|
+
throw new Error("questionnaire-form.error.extraction-failed");
|
|
43
|
+
}
|
|
44
|
+
const observationIdentifier = `${persistedResponse.id}-${index}`;
|
|
45
|
+
const identifierQuery = new URLSearchParams({
|
|
46
|
+
identifier: `${EXTRACTED_OBSERVATION_IDENTIFIER_SYSTEM}|${observationIdentifier}`
|
|
47
|
+
}).toString();
|
|
48
|
+
return {
|
|
49
|
+
...entry,
|
|
50
|
+
resource: {
|
|
51
|
+
...observation,
|
|
52
|
+
identifier: [...(observation.identifier ?? []).filter(existingIdentifier => existingIdentifier.system !== EXTRACTED_OBSERVATION_IDENTIFIER_SYSTEM || existingIdentifier.value !== observationIdentifier), {
|
|
53
|
+
system: EXTRACTED_OBSERVATION_IDENTIFIER_SYSTEM,
|
|
54
|
+
value: observationIdentifier
|
|
55
|
+
}]
|
|
56
|
+
},
|
|
57
|
+
request: {
|
|
58
|
+
...entry.request,
|
|
59
|
+
ifNoneExist: identifierQuery
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
const completedResponse = {
|
|
64
|
+
...persistedResponse,
|
|
65
|
+
status: "completed"
|
|
66
|
+
};
|
|
67
|
+
const transaction = await client.executeBatch({
|
|
68
|
+
resourceType: "Bundle",
|
|
69
|
+
type: "transaction",
|
|
70
|
+
entry: [...transactionEntries, {
|
|
71
|
+
resource: completedResponse,
|
|
72
|
+
request: {
|
|
73
|
+
method: "PUT",
|
|
74
|
+
url: `QuestionnaireResponse/${persistedResponse.id}`,
|
|
75
|
+
ifMatch: `W/"${persistedResponse.meta.versionId}"`
|
|
76
|
+
}
|
|
77
|
+
}]
|
|
78
|
+
});
|
|
79
|
+
if (transaction.type !== "transaction-response" || transaction.entry?.length !== transactionEntries.length + 1 || transaction.entry.some(entry => !entry.response?.status.startsWith("2"))) {
|
|
80
|
+
throw new Error("questionnaire-form.error.extraction-failed");
|
|
81
|
+
}
|
|
82
|
+
return client.readResource("QuestionnaireResponse", persistedResponse.id);
|
|
83
|
+
}
|
|
84
|
+
static createQuestionnaireResponse(responses, pages, questionnaire, renderItem, resolver, unitOptionsResolver) {
|
|
10
85
|
const responseItems = _formUtils.FormUtils.createQuestionnaireResponseItems(responses, pages);
|
|
11
86
|
const response = {
|
|
12
87
|
resourceType: "QuestionnaireResponse",
|
|
13
88
|
questionnaire: `Questionnaire/${questionnaire.id}`,
|
|
14
|
-
status: "completed",
|
|
89
|
+
status: _formUtils.FormUtils.hasUnansweredRequiredItems(pages, responses, renderItem, resolver, unitOptionsResolver) ? "in-progress" : "completed",
|
|
15
90
|
item: responseItems,
|
|
16
91
|
authored: new Date().toISOString()
|
|
17
92
|
};
|
package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_formUtils","require","
|
|
1
|
+
{"version":3,"names":["_formUtils","require","OBSERVATION_EXTRACT_EXTENSION","EXTRACTED_OBSERVATION_IDENTIFIER_SYSTEM","hasObservationExtractExtension","items","some","item","extension","url","valueBoolean","QuestionnaireSubmitUtils","questionnaireHasObservationExtraction","questionnaire","persistQuestionnaireResponse","client","response","extractObservations","identifier","system","value","Error","getProject","features","includes","persistedResponse","createResourceIfNoneExist","status","id","meta","versionId","extraction","extractQuestionnaireObservations","extractedBundle","parameter","find","name","resource","resourceType","type","extractedEntries","entry","transactionEntries","map","index","observation","request","method","observationIdentifier","identifierQuery","URLSearchParams","toString","filter","existingIdentifier","ifNoneExist","completedResponse","transaction","executeBatch","ifMatch","length","startsWith","readResource","createQuestionnaireResponse","responses","pages","renderItem","resolver","unitOptionsResolver","responseItems","FormUtils","createQuestionnaireResponseItems","hasUnansweredRequiredItems","authored","Date","toISOString","exports"],"sourceRoot":"../../../../../src","sources":["modules/questionnaire-response-form/utils/questionnaire-submit-utils.ts"],"mappings":";;;;;;AAcA,IAAAA,UAAA,GAAAC,OAAA;AAMA,MAAMC,6BAA6B,GACjC,qFAAqF;AAEvF,MAAMC,uCAAuC,GAC3C,yDAAyD;AAE3D,MAAMC,8BAA8B,GAAGA,CACrCC,KAA0B,GAAG,EAAE,KAE/BA,KAAK,CAACC,IAAI,CACPC,IAAI,IACHA,IAAI,CAACC,SAAS,EAAEF,IAAI,CACjBE,SAAS,IACRA,SAAS,CAACC,GAAG,KAAKP,6BAA6B,IAC/CM,SAAS,CAACE,YAAY,KAAK,IAC/B,CAAC,IAAIN,8BAA8B,CAACG,IAAI,CAACA,IAAI,CACjD,CAAC;AAEI,MAAMI,wBAAwB,CAAC;EACpC,OAAOC,qCAAqCA,CAC1CC,aAA4B,EACnB;IACT,OACEA,aAAa,CAACL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,CAACE,0BAA0B,CAC1CP,KAAK,EACLD,SAAS,EACTE,UAAU,EACVC,QAAQ,EACRC,mBACF,CAAC,GACG,aAAa,GACb,WAAW;MACf5D,IAAI,EAAE6D,aAAa;MACnBI,QAAQ,EAAE,IAAIC,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC;IACnC,CAAC;IAED,OAAO1D,QAAQ;EACjB;AACF;AAAC2D,OAAA,CAAAhE,wBAAA,GAAAA,wBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.translateFhirText = void 0;
|
|
7
|
+
const TRANSLATION_EXTENSION = "http://hl7.org/fhir/StructureDefinition/translation";
|
|
8
|
+
const normalizeLanguage = language => language.trim().replace(/_/g, "-").toLowerCase();
|
|
9
|
+
|
|
10
|
+
/** Resolves the standard FHIR translation extension for a primitive string. */
|
|
11
|
+
const translateFhirText = (value, element, language) => {
|
|
12
|
+
const requestedLanguage = normalizeLanguage(language ?? "");
|
|
13
|
+
const requestedBaseLanguage = requestedLanguage.split("-")[0];
|
|
14
|
+
const translations = (element?.extension ?? []).filter(({
|
|
15
|
+
url
|
|
16
|
+
}) => url === TRANSLATION_EXTENSION).map(({
|
|
17
|
+
extension = []
|
|
18
|
+
}) => {
|
|
19
|
+
const translationLanguage = extension.find(({
|
|
20
|
+
url
|
|
21
|
+
}) => url === "lang")?.valueCode;
|
|
22
|
+
const content = extension.find(({
|
|
23
|
+
url
|
|
24
|
+
}) => url === "content");
|
|
25
|
+
const translatedValue = content?.valueString ?? content?.valueMarkdown;
|
|
26
|
+
return typeof translationLanguage === "string" && typeof translatedValue === "string" ? {
|
|
27
|
+
language: normalizeLanguage(translationLanguage),
|
|
28
|
+
value: translatedValue
|
|
29
|
+
} : undefined;
|
|
30
|
+
}).filter(translation => translation !== undefined);
|
|
31
|
+
const exactTranslation = translations.find(translation => translation.language === requestedLanguage);
|
|
32
|
+
const baseTranslation = translations.find(translation => translation.language.split("-")[0] === requestedBaseLanguage);
|
|
33
|
+
return exactTranslation?.value ?? baseTranslation?.value ?? value ?? "";
|
|
34
|
+
};
|
|
35
|
+
exports.translateFhirText = translateFhirText;
|
|
36
|
+
//# sourceMappingURL=translate-fhir-text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TRANSLATION_EXTENSION","normalizeLanguage","language","trim","replace","toLowerCase","translateFhirText","value","element","requestedLanguage","requestedBaseLanguage","split","translations","extension","filter","url","map","translationLanguage","find","valueCode","content","translatedValue","valueString","valueMarkdown","undefined","translation","exactTranslation","baseTranslation","exports"],"sourceRoot":"../../../../../src","sources":["modules/questionnaire-response-form/utils/translate-fhir-text.ts"],"mappings":";;;;;;AAEA,MAAMA,qBAAqB,GACzB,qDAAqD;AAEvD,MAAMC,iBAAiB,GAAIC,QAAgB,IACzCA,QAAQ,CAACC,IAAI,CAAC,CAAC,CAACC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAACC,WAAW,CAAC,CAAC;;AAElD;AACO,MAAMC,iBAAiB,GAAGA,CAC/BC,KAAyB,EACzBC,OAA4B,EAC5BN,QAA4B,KACjB;EACX,MAAMO,iBAAiB,GAAGR,iBAAiB,CAACC,QAAQ,IAAI,EAAE,CAAC;EAC3D,MAAMQ,qBAAqB,GAAGD,iBAAiB,CAACE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;EAE7D,MAAMC,YAAY,GAAG,CAACJ,OAAO,EAAEK,SAAS,IAAI,EAAE,EAC3CC,MAAM,CAAC,CAAC;IAAEC;EAAI,CAAC,KAAKA,GAAG,KAAKf,qBAAqB,CAAC,CAClDgB,GAAG,CAAC,CAAC;IAAEH,SAAS,GAAG;EAAG,CAAC,KAAK;IAC3B,MAAMI,mBAAmB,GAAGJ,SAAS,CAACK,IAAI,CACxC,CAAC;MAAEH;IAAI,CAAC,KAAKA,GAAG,KAAK,MACvB,CAAC,EAAEI,SAAS;IAEZ,MAAMC,OAAO,GAAGP,SAAS,CAACK,IAAI,CAAC,CAAC;MAAEH;IAAI,CAAC,KAAKA,GAAG,KAAK,SAAS,CAAC;IAC9D,MAAMM,eAAe,GAAGD,OAAO,EAAEE,WAAW,IAAIF,OAAO,EAAEG,aAAa;IAEtE,OAAO,OAAON,mBAAmB,KAAK,QAAQ,IAC5C,OAAOI,eAAe,KAAK,QAAQ,GACjC;MAAEnB,QAAQ,EAAED,iBAAiB,CAACgB,mBAAmB,CAAC;MAAEV,KAAK,EAAEc;IAAgB,CAAC,GAC5EG,SAAS;EACf,CAAC,CAAC,CACDV,MAAM,CAAEW,WAAW,IAAKA,WAAW,KAAKD,SAAS,CAAC;EAErD,MAAME,gBAAgB,GAAGd,YAAY,CAACM,IAAI,CACvCO,WAAW,IAAKA,WAAW,CAACvB,QAAQ,KAAKO,iBAC5C,CAAC;EAED,MAAMkB,eAAe,GAAGf,YAAY,CAACM,IAAI,CACtCO,WAAW,IAAKA,WAAW,CAACvB,QAAQ,CAACS,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAKD,qBAC1D,CAAC;EAED,OAAOgB,gBAAgB,EAAEnB,KAAK,IAAIoB,eAAe,EAAEpB,KAAK,IAAIA,KAAK,IAAI,EAAE;AACzE,CAAC;AAACqB,OAAA,CAAAtB,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
package/lib/commonjs/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.validateQuestionnaireItemValue = void 0;
|
|
7
|
+
var _createAnswerFromValue = require("./create-answer-from-value.js");
|
|
8
|
+
var _isValidQuestionnaireAnswer = require("./is-valid-questionnaire-answer.js");
|
|
9
|
+
var _questionnaireItemConstraints = require("./questionnaire-item-constraints.js");
|
|
10
|
+
var _questionnaireItemValueConstraintValidators = require("./questionnaire-item-value-constraint-validators.js");
|
|
11
|
+
var _questionnaireStringConstraintValidator = require("./questionnaire-string-constraint-validator.js");
|
|
12
|
+
const hasValue = value => value !== undefined && value !== null && value !== "";
|
|
13
|
+
const getAnswerValue = (value, item) => {
|
|
14
|
+
const answer = (0, _createAnswerFromValue.createAnswerFromValue)(value, item);
|
|
15
|
+
if (!answer) {
|
|
16
|
+
return undefined;
|
|
17
|
+
}
|
|
18
|
+
const key = (0, _isValidQuestionnaireAnswer.getAnswerValueKey)(answer);
|
|
19
|
+
return key ? answer[key] : undefined;
|
|
20
|
+
};
|
|
21
|
+
const validateQuestionnaireItemValue = (value, item, answers = {}, resolver, unitOptionsResolver) => {
|
|
22
|
+
if (!hasValue(value)) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
const answer = getAnswerValue(value, item);
|
|
26
|
+
if (answer === undefined) {
|
|
27
|
+
return "invalid-answer";
|
|
28
|
+
}
|
|
29
|
+
const constraints = (0, _questionnaireItemConstraints.getQuestionnaireItemConstraints)(item, answers, resolver, unitOptionsResolver);
|
|
30
|
+
if (constraints.unresolvedDynamicBounds.length > 0) {
|
|
31
|
+
return "unresolved-constraint";
|
|
32
|
+
}
|
|
33
|
+
const lengthViolation = (0, _questionnaireItemValueConstraintValidators.validateAnswerLength)(value, answer, item, constraints);
|
|
34
|
+
if (lengthViolation) {
|
|
35
|
+
return lengthViolation;
|
|
36
|
+
}
|
|
37
|
+
if (typeof answer === "number") {
|
|
38
|
+
return (0, _questionnaireItemValueConstraintValidators.validateNumberConstraints)(answer, constraints);
|
|
39
|
+
}
|
|
40
|
+
if (typeof answer === "string") {
|
|
41
|
+
return (0, _questionnaireStringConstraintValidator.validateStringConstraints)(answer, item, constraints);
|
|
42
|
+
}
|
|
43
|
+
if (typeof answer === "object" && answer !== null && "value" in answer) {
|
|
44
|
+
return (0, _questionnaireItemValueConstraintValidators.validateQuantityConstraints)(answer, constraints);
|
|
45
|
+
}
|
|
46
|
+
return undefined;
|
|
47
|
+
};
|
|
48
|
+
exports.validateQuestionnaireItemValue = validateQuestionnaireItemValue;
|
|
49
|
+
//# sourceMappingURL=validate-questionnaire-item-value.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_createAnswerFromValue","require","_isValidQuestionnaireAnswer","_questionnaireItemConstraints","_questionnaireItemValueConstraintValidators","_questionnaireStringConstraintValidator","hasValue","value","undefined","getAnswerValue","item","answer","createAnswerFromValue","key","getAnswerValueKey","validateQuestionnaireItemValue","answers","resolver","unitOptionsResolver","constraints","getQuestionnaireItemConstraints","unresolvedDynamicBounds","length","lengthViolation","validateAnswerLength","validateNumberConstraints","validateStringConstraints","validateQuantityConstraints","exports"],"sourceRoot":"../../../../../src","sources":["modules/questionnaire-response-form/utils/validate-questionnaire-item-value.ts"],"mappings":";;;;;;AAKA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,2BAAA,GAAAD,OAAA;AACA,IAAAE,6BAAA,GAAAF,OAAA;AAKA,IAAAG,2CAAA,GAAAH,OAAA;AAKA,IAAAI,uCAAA,GAAAJ,OAAA;AAUA,MAAMK,QAAQ,GAAIC,KAAc,IAC9BA,KAAK,KAAKC,SAAS,IAAID,KAAK,KAAK,IAAI,IAAIA,KAAK,KAAK,EAAE;AAEvD,MAAME,cAAc,GAAGA,CACrBF,KAA6B,EAC7BG,IAA+B,KACnB;EACZ,MAAMC,MAAM,GAAG,IAAAC,4CAAqB,EAACL,KAAK,EAAEG,IAAI,CAAC;EAEjD,IAAI,CAACC,MAAM,EAAE;IACX,OAAOH,SAAS;EAClB;EAEA,MAAMK,GAAG,GAAG,IAAAC,6CAAiB,EAACH,MAAM,CAAC;EAErC,OAAOE,GAAG,GAAIF,MAAM,CAA6BE,GAAG,CAAC,GAAGL,SAAS;AACnE,CAAC;AAEM,MAAMO,8BAA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
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.PrerequisiteGate = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
10
|
+
/**
|
|
11
|
+
* Loads host-defined, account-scoped prerequisites before rendering children.
|
|
12
|
+
* This is a UI gate only; backend authorization remains authoritative.
|
|
13
|
+
*/
|
|
14
|
+
const PrerequisiteGate = ({
|
|
15
|
+
scopeKey,
|
|
16
|
+
check,
|
|
17
|
+
pending = null,
|
|
18
|
+
renderRequired,
|
|
19
|
+
onError,
|
|
20
|
+
children
|
|
21
|
+
}) => {
|
|
22
|
+
const checkRef = React.useRef(check);
|
|
23
|
+
const onErrorRef = React.useRef(onError);
|
|
24
|
+
const [attempt, setAttempt] = React.useState(0);
|
|
25
|
+
const [result, setResult] = React.useState();
|
|
26
|
+
React.useEffect(() => {
|
|
27
|
+
checkRef.current = check;
|
|
28
|
+
onErrorRef.current = onError;
|
|
29
|
+
}, [check, onError]);
|
|
30
|
+
React.useEffect(() => {
|
|
31
|
+
let active = true;
|
|
32
|
+
void Promise.resolve().then(() => checkRef.current()).then(requirement => {
|
|
33
|
+
if (active) {
|
|
34
|
+
setResult({
|
|
35
|
+
scopeKey,
|
|
36
|
+
attempt,
|
|
37
|
+
requirement: requirement ?? null
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}).catch(error => {
|
|
41
|
+
if (active) {
|
|
42
|
+
setResult({
|
|
43
|
+
scopeKey,
|
|
44
|
+
attempt,
|
|
45
|
+
requirement: null
|
|
46
|
+
});
|
|
47
|
+
onErrorRef.current?.(error);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
return () => {
|
|
51
|
+
active = false;
|
|
52
|
+
};
|
|
53
|
+
}, [scopeKey, attempt]);
|
|
54
|
+
const refresh = React.useCallback(() => {
|
|
55
|
+
setAttempt(current => current + 1);
|
|
56
|
+
}, []);
|
|
57
|
+
const currentResult = result?.scopeKey === scopeKey && result.attempt === attempt ? result : undefined;
|
|
58
|
+
if (!currentResult) {
|
|
59
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
60
|
+
children: pending
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
if (currentResult.requirement === null) {
|
|
64
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
65
|
+
children: children
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
69
|
+
children: renderRequired(currentResult.requirement, refresh)
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
exports.PrerequisiteGate = PrerequisiteGate;
|
|
73
|
+
//# sourceMappingURL=prerequisite-gate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","PrerequisiteGate","scopeKey","check","pending","renderRequired","onError","children","checkRef","useRef","onErrorRef","attempt","setAttempt","useState","result","setResult","useEffect","current","active","Promise","resolve","then","requirement","catch","error","refresh","useCallback","currentResult","undefined","jsx","Fragment","exports"],"sourceRoot":"../../../../../src","sources":["modules/ui/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OAAO,IAAKA,OAAO,GAAG,CAAC,CAAC;EACtC,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMU,aAAa,GACjBb,MAAM,EAAEZ,QAAQ,KAAKA,QAAQ,IAAIY,MAAM,CAACH,OAAO,KAAKA,OAAO,GACvDG,MAAM,GACNc,SAAS;EAEf,IAAI,CAACD,aAAa,EAAE;IAClB,oBAAO,IAAA9C,WAAA,CAAAgD,GAAA,EAAAhD,WAAA,CAAAiD,QAAA;MAAAvB,QAAA,EAAGH;IAAO,CAAG,CAAC;EACvB;EAEA,IAAIuB,aAAa,CAACL,WAAW,KAAK,IAAI,EAAE;IACtC,oBAAO,IAAAzC,WAAA,CAAAgD,GAAA,EAAAhD,WAAA,CAAAiD,QAAA;MAAAvB,QAAA,EAAGA;IAAQ,CAAG,CAAC;EACxB;EAEA,oBAAO,IAAA1B,WAAA,CAAAgD,GAAA,EAAAhD,WAAA,CAAAiD,QAAA;IAAAvB,QAAA,EAAGF,cAAc,CAACsB,aAAa,CAACL,WAAW,EAAEG,OAAO;EAAC,CAAG,CAAC;AAClE,CAAC;AAACM,OAAA,CAAA9B,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -47,6 +47,17 @@ Object.keys(_flowFrame).forEach(function (key) {
|
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
|
+
var _prerequisiteGate = require("./components/prerequisite-gate.js");
|
|
51
|
+
Object.keys(_prerequisiteGate).forEach(function (key) {
|
|
52
|
+
if (key === "default" || key === "__esModule") return;
|
|
53
|
+
if (key in exports && exports[key] === _prerequisiteGate[key]) return;
|
|
54
|
+
Object.defineProperty(exports, key, {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _prerequisiteGate[key];
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
});
|
|
50
61
|
var _manualEntryForm = require("./components/manual-entry-form.js");
|
|
51
62
|
Object.keys(_manualEntryForm).forEach(function (key) {
|
|
52
63
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_types","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_useOvokUi","_ecgStripViewer","_flowFrame","_manualEntryForm","_supportedDevicesCatalogList","_bluetoothStateNotice","_pairingFlow","_nearbyDevicePrompt","_urineTestResult","_healthImportCard","_backgroundSyncSetting","_measurementTrendChart","_calendar","_periodCalendar"],"sourceRoot":"../../../../src","sources":["modules/ui/index.ts"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,UAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,UAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,UAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,UAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,eAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,eAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,eAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,eAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,UAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,UAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,UAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,UAAA,CAAAP,GAAA;IAAA;EAAA;AAAA;AACA,IAAAQ,
|
|
1
|
+
{"version":3,"names":["_types","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_useOvokUi","_ecgStripViewer","_flowFrame","_prerequisiteGate","_manualEntryForm","_supportedDevicesCatalogList","_bluetoothStateNotice","_pairingFlow","_nearbyDevicePrompt","_urineTestResult","_healthImportCard","_backgroundSyncSetting","_measurementTrendChart","_calendar","_periodCalendar"],"sourceRoot":"../../../../src","sources":["modules/ui/index.ts"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,UAAA,GAAAT,OAAA;AAAA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AAlB,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAc,SAAA,CAAAlB,GAAA;IAAA;EAAA;AAAA;AACA,IAAAmB,eAAA,GAAAvB,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAqB,eAAA,EAAApB,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAmB,eAAA,CAAAnB,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAe,eAAA,CAAAnB,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -45,17 +45,19 @@ Object.defineProperty(exports, "initWebSocketManager", {
|
|
|
45
45
|
return _expoPolyfills.initWebSocketManager;
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
get: function () {
|
|
51
|
-
return _expoPolyfills.polyfillMedplumWebAPIs;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "polyfillMedplumWebAPIs", {
|
|
48
|
+
exports.polyfillMedplumWebAPIs = exports.initializeOvokNativeRuntime = void 0;
|
|
49
|
+
Object.defineProperty(exports, "polyfillOvokWebAPIs", {
|
|
55
50
|
enumerable: true,
|
|
56
51
|
get: function () {
|
|
57
52
|
return _expoPolyfills.polyfillMedplumWebAPIs;
|
|
58
53
|
}
|
|
59
54
|
});
|
|
60
55
|
var _expoPolyfills = require("@medplum/expo-polyfills");
|
|
56
|
+
/* eslint-disable import/group-exports */
|
|
57
|
+
|
|
58
|
+
/** @deprecated Use polyfillOvokWebAPIs instead. */
|
|
59
|
+
const polyfillMedplumWebAPIs = exports.polyfillMedplumWebAPIs = _expoPolyfills.polyfillMedplumWebAPIs;
|
|
60
|
+
|
|
61
|
+
/** @deprecated Use polyfillOvokWebAPIs instead. */
|
|
62
|
+
const initializeOvokNativeRuntime = exports.initializeOvokNativeRuntime = _expoPolyfills.polyfillMedplumWebAPIs;
|
|
61
63
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_expoPolyfills","require"],"sourceRoot":"../../../src","sources":["polyfills/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_expoPolyfills","require","polyfillMedplumWebAPIs","exports","polyfillOvokWebAPIs","initializeOvokNativeRuntime"],"sourceRoot":"../../../src","sources":["polyfills/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAAA,cAAA,GAAAC,OAAA;AAFA;;AAgBA;AACO,MAAMC,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,GAAGE,qCAAmB;;AAEzD;AACO,MAAMC,2BAA2B,GAAAF,OAAA,CAAAE,2BAAA,GAAGD,qCAAmB","ignoreList":[]}
|
|
@@ -11,6 +11,19 @@ export const defaultTranslation = {
|
|
|
11
11
|
cancel: "Cancel",
|
|
12
12
|
delete: "Delete"
|
|
13
13
|
},
|
|
14
|
+
"questionnaire-form": {
|
|
15
|
+
error: {
|
|
16
|
+
"atomic-save-required": "This form cannot be saved safely until atomic transaction support is enabled for this project.",
|
|
17
|
+
"extraction-failed": "We could not save all answers. Please try again."
|
|
18
|
+
},
|
|
19
|
+
item: {
|
|
20
|
+
unsupported: "This question type ({{type}}) is not supported. You can continue without answering it."
|
|
21
|
+
},
|
|
22
|
+
picker: {
|
|
23
|
+
increase: "Increase value",
|
|
24
|
+
decrease: "Decrease value"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
14
27
|
profile: {
|
|
15
28
|
form: {
|
|
16
29
|
error: {
|
|
@@ -28,6 +41,10 @@ export const defaultTranslation = {
|
|
|
28
41
|
register: {
|
|
29
42
|
"already-have-account": "Already have an account? <login/>",
|
|
30
43
|
button: "Create account",
|
|
44
|
+
errors: {
|
|
45
|
+
network: "Unable to connect. Check your connection and try again.",
|
|
46
|
+
generic: "Unable to create account. Please try again."
|
|
47
|
+
},
|
|
31
48
|
name: "First name",
|
|
32
49
|
"full-name": "Full name",
|
|
33
50
|
"or-register-with": "Or register with",
|
|
@@ -39,6 +56,10 @@ export const defaultTranslation = {
|
|
|
39
56
|
"reset-password": {
|
|
40
57
|
accountType: "Account type",
|
|
41
58
|
email: "Email",
|
|
59
|
+
errors: {
|
|
60
|
+
network: "Unable to connect. Check your connection and try again.",
|
|
61
|
+
generic: "Unable to request a password reset. Please try again."
|
|
62
|
+
},
|
|
42
63
|
patient: "Patient",
|
|
43
64
|
practitioner: "Practitioner",
|
|
44
65
|
"reset-password": "Reset password",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["i18n","defaultTranslation","auth","common","cancel","delete","
|
|
1
|
+
{"version":3,"names":["i18n","defaultTranslation","auth","common","cancel","delete","error","item","unsupported","picker","increase","decrease","profile","form","network","generic","phone","country","invalid","searchCountry","save","register","button","errors","name","subtitle","surname","title","accountType","email","patient","practitioner","success","settings","logout","apple","footer","google","mfa","code","verify","password","unavailable","addResourceBundle","resources","options","englishResources","Object","assign","en","existingTranslation","translation"],"sourceRoot":"../../../../src","sources":["modules/auth/default-translation.ts"],"mappings":";;AAAA,OAAOA,IAAI,MAAM,SAAS;;AAE1B;AACA,OAAO,MAAMC,kBAAkB,GAAG;EAChCC,IAAI,EAAE;IAAE,YAAY,EAAE;EAAsD,CAAC;EAC7EC,MAAM,EAAE;IAAEC,MAAM,EAAE,QAAQ;IAAEC,MAAM,EAAE;EAAS,CAAC;EAC9C,oBAAoB,EAAE;IACpBC,KAAK,EAAE;MACL,sBAAsB,EACpB,gGAAgG;MAClG,mBAAmB,EACjB;IACJ,CAAC;IACDC,IAAI,EAAE;MACJC,WAAW,EACT;IACJ,CAAC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":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useClient","notifySessionChanged","signOutGoogleIfNeeded","useAuthAction","useDeleteAccount","days","wipe","client","requestDeleteUser","clearActiveLogin"],"sourceRoot":"../../../../../src","sources":["modules/auth/hooks/use-delete-account.ts"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,YAAY;AAEtC,SAASC,oBAAoB,QAAQ,sBAAmB;AACxD,SAASC,qBAAqB,QAAQ,6BAA0B;AAEhE,SAASC,aAAa,QAAQ,sBAAmB;AAOjD,OAAO,MAAMC,gBAAgB,GAAGA,CAAC;EAAEC,IAAI,GAAG,EAAE;EAAEC,IAAI,GAAG;AAA2B,CAAC,GAAG,CAAC,CAAC,KAAK;EACzF,MAAMC,MAAM,GAAGP,SAAS,CAAC,CAAC;EAE1B,OAAOG,aAAa,CAAC,YAAY;IAC/B,MAAMI,MAAM,CAACC,iBAAiB,CAAC;MAAEH,IAAI;MAAEC;IAAK,CAAC,CAAC;IAC9C,MAAMC,MAAM,CAACE,gBAAgB,CAAC,CAAC;IAC/
|
|
1
|
+
{"version":3,"names":["useClient","notifySessionChanged","signOutGoogleIfNeeded","useAuthAction","useDeleteAccount","days","wipe","client","requestDeleteUser","clearActiveLogin"],"sourceRoot":"../../../../../src","sources":["modules/auth/hooks/use-delete-account.ts"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,YAAY;AAEtC,SAASC,oBAAoB,QAAQ,sBAAmB;AACxD,SAASC,qBAAqB,QAAQ,6BAA0B;AAEhE,SAASC,aAAa,QAAQ,sBAAmB;AAOjD,OAAO,MAAMC,gBAAgB,GAAGA,CAAC;EAAEC,IAAI,GAAG,EAAE;EAAEC,IAAI,GAAG;AAA2B,CAAC,GAAG,CAAC,CAAC,KAAK;EACzF,MAAMC,MAAM,GAAGP,SAAS,CAAC,CAAC;EAE1B,OAAOG,aAAa,CAAC,YAAY;IAC/B,MAAMI,MAAM,CAACC,iBAAiB,CAAC;MAAEH,IAAI;MAAEC;IAAK,CAAC,CAAC;IAC9C,MAAMC,MAAM,CAACE,gBAAgB,CAAC,CAAC;IAC/BR,oBAAoB,CAAC,CAAC;IACtB,MAAMC,qBAAqB,CAAC,CAAC;EAC/B,CAAC,CAAC;AACJ,CAAC","ignoreList":[]}
|
|
@@ -29,13 +29,18 @@ const useSession = ({
|
|
|
29
29
|
}, [refresh, refreshOnForeground]);
|
|
30
30
|
return {
|
|
31
31
|
status: snapshot.status,
|
|
32
|
+
reason: snapshot.reason,
|
|
32
33
|
isAuthenticated: snapshot.status === "authenticated" || snapshot.status === "offline",
|
|
34
|
+
accounts: snapshot.accounts,
|
|
33
35
|
profile: snapshot.profile,
|
|
34
36
|
sessions: snapshot.sessions,
|
|
35
37
|
loading: snapshot.status === "loading",
|
|
38
|
+
switching: snapshot.switching === true,
|
|
36
39
|
error: snapshot.error,
|
|
37
40
|
refresh,
|
|
38
41
|
refreshSessions: store.refreshSessions,
|
|
42
|
+
switchAccount: store.switchAccount,
|
|
43
|
+
removeAccount: store.removeAccount,
|
|
39
44
|
logout: store.logout,
|
|
40
45
|
revokeSessions: store.revokeSessions
|
|
41
46
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useClient","React","AppState","subscribeSessionChanges","getSessionStore","useSession","sessions","fetchSessions","refreshOnForeground","client","store","useMemo","snapshot","useSyncExternalStore","subscribe","refresh","useCallback","useEffect","subscription","addEventListener","nextState","undefined","unsubscribe","remove","status","isAuthenticated","profile","loading","error","refreshSessions","logout","revokeSessions"],"sourceRoot":"../../../../../src","sources":["modules/auth/hooks/use-session.ts"],"mappings":";;AAAA,SAASA,SAAS,
|
|
1
|
+
{"version":3,"names":["useClient","React","AppState","subscribeSessionChanges","getSessionStore","useSession","sessions","fetchSessions","refreshOnForeground","client","store","useMemo","snapshot","useSyncExternalStore","subscribe","refresh","useCallback","useEffect","subscription","addEventListener","nextState","undefined","unsubscribe","remove","status","reason","isAuthenticated","accounts","profile","loading","switching","error","refreshSessions","switchAccount","removeAccount","logout","revokeSessions"],"sourceRoot":"../../../../../src","sources":["modules/auth/hooks/use-session.ts"],"mappings":";;AAAA,SAASA,SAAS,QAA+B,YAAY;AAC7D,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,cAAc;AAEvC,SAASC,uBAAuB,QAAQ,sBAAmB;AAC3D,SAASC,eAAe,QAAQ,6BAA0B;AAgC1D;AACA,MAAMC,UAAU,GAAGA,CAAC;EAClBC,QAAQ,EAAEC,aAAa,GAAG,IAAI;EAC9BC,mBAAmB,GAAG;AACL,CAAC,GAAG,CAAC,CAAC,KAAuB;EAC9C,MAAMC,MAAM,GAAGT,SAAS,CAAC,CAAC;EAC1B,MAAMU,KAAK,GAAGT,KAAK,CAACU,OAAO,CAAC,MAAMP,eAAe,CAACK,MAAM,CAAC,EAAE,CAACA,MAAM,CAAC,CAAC;EAEpE,MAAMG,QAAQ,GAAGX,KAAK,CAACY,oBAAoB,CACzCH,KAAK,CAACI,SAAS,EACf,MAAMJ,KAAK,CAACE,QAAQ,EACpB,MAAMF,KAAK,CAACE,QACd,CAAC;EAED,MAAMG,OAAO,GAAGd,KAAK,CAACe,WAAW,CAC/B,MAAMN,KAAK,CAACK,OAAO,CAACR,aAAa,CAAC,EAClC,CAACA,aAAa,EAAEG,KAAK,CACvB,CAAC;EAEDT,KAAK,CAACgB,SAAS,CAAC,MAAM;IACpB,KAAKF,OAAO,CAAC,CAAC;IAEd,MAAMG,YAAY,GAAGV,mBAAmB,GACpCN,QAAQ,CAACiB,gBAAgB,CAAC,QAAQ,EAAGC,SAAS,IAAK;MACjD,IAAIA,SAAS,KAAK,QAAQ,EAAE;QAC1B,KAAKL,OAAO,CAAC,CAAC;MAChB;IACF,CAAC,CAAC,GACFM,SAAS;IAEb,MAAMC,WAAW,GAAGnB,uBAAuB,CAAC,MAAM,KAAKY,OAAO,CAAC,CAAC,CAAC;IAEjE,OAAO,MAAM;MACXG,YAAY,EAAEK,MAAM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