@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response-values.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/types/response-values.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"response-values.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/types/response-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"condition-utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/condition-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,2BAA2B,EAC5B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"condition-utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/condition-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,2BAA2B,EAC5B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAwI1D,eAAO,MAAM,cAAc;sCAvHd,2BAA2B,aAC3B,cAAc,KACxB,OAAO;0BAiEF,iBAAiB,aACZ,cAAc,KACxB,OAAO;mCAqBF,yBAAyB,aACpB,cAAc,KACxB,yBAAyB,EAAE;CA+B7B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { QuestionnaireItemEnableWhen } from "@medplum/fhirtypes";
|
|
2
|
+
import { ResponseValues } from "../../types/response-values";
|
|
3
|
+
declare const getComparableResponse: (value: ResponseValues[string]) => unknown;
|
|
4
|
+
declare const checkTimeCondition: (condition: QuestionnaireItemEnableWhen, response: unknown) => boolean;
|
|
5
|
+
declare const checkCodingCondition: (condition: QuestionnaireItemEnableWhen, response: unknown) => boolean;
|
|
6
|
+
declare const checkQuantityCondition: (condition: QuestionnaireItemEnableWhen, response: unknown) => boolean;
|
|
7
|
+
declare const checkReferenceCondition: (condition: QuestionnaireItemEnableWhen, response: unknown) => boolean;
|
|
8
|
+
export { checkCodingCondition, checkQuantityCondition, checkReferenceCondition, checkTimeCondition, getComparableResponse, };
|
|
9
|
+
//# sourceMappingURL=fhir-condition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fhir-condition.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/questionnaire-response-form/utils/conditions/fhir-condition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,QAAA,MAAM,qBAAqB,GAAI,OAAO,cAAc,CAAC,MAAM,CAAC,KAAG,OAqC9D,CAAC;AAEF,QAAA,MAAM,kBAAkB,GACtB,WAAW,2BAA2B,EACtC,UAAU,OAAO,KAChB,OAwBF,CAAC;AA8BF,QAAA,MAAM,oBAAoB,GACxB,WAAW,2BAA2B,EACtC,UAAU,OAAO,KAChB,OAaF,CAAC;AAoBF,QAAA,MAAM,sBAAsB,GAC1B,WAAW,2BAA2B,EACtC,UAAU,OAAO,KAChB,OAgCF,CAAC;AAYF,QAAA,MAAM,uBAAuB,GAC3B,WAAW,2BAA2B,EACtC,UAAU,OAAO,KAChB,OAOF,CAAC;AAUF,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,EAClB,qBAAqB,GACtB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { QuestionnaireResponseItemAnswer } from "@medplum/fhirtypes";
|
|
2
|
+
import { ExtendedQuestionnaireItem } from "../types/extended-questionnaire-item";
|
|
3
|
+
import { ResponseValues } from "../types/response-values";
|
|
4
|
+
declare const createAnswerFromValue: (value: ResponseValues[string], item: ExtendedQuestionnaireItem) => QuestionnaireResponseItemAnswer | undefined;
|
|
5
|
+
declare const isQuestionnaireItemAnswered: (value: ResponseValues[string], item: ExtendedQuestionnaireItem) => boolean;
|
|
6
|
+
export { createAnswerFromValue, isQuestionnaireItemAnswered };
|
|
7
|
+
//# sourceMappingURL=create-answer-from-value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-answer-from-value.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/create-answer-from-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AAErE,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAqF1D,QAAA,MAAM,qBAAqB,GACzB,OAAO,cAAc,CAAC,MAAM,CAAC,EAC7B,MAAM,yBAAyB,KAC9B,+BAA+B,GAAG,SAwDpC,CAAC;AAEF,QAAA,MAAM,2BAA2B,GAC/B,OAAO,cAAc,CAAC,MAAM,CAAC,EAC7B,MAAM,yBAAyB,KAC9B,OAA2D,CAAC;AAE/D,OAAO,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ExtendedQuestionnaireItemAnswerOption } from "../../types";
|
|
2
|
-
export declare const getOptionText: (option: ExtendedQuestionnaireItemAnswerOption) => string;
|
|
2
|
+
export declare const getOptionText: (option: ExtendedQuestionnaireItemAnswerOption, locale?: string) => string;
|
|
3
3
|
//# sourceMappingURL=get-option-text.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-option-text.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/questionnaire-response-form/utils/fields/get-option-text.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-option-text.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/questionnaire-response-form/utils/fields/get-option-text.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qCAAqC,EAAE,MAAM,aAAa,CAAC;AAGpE,eAAO,MAAM,aAAa,GACxB,QAAQ,qCAAqC,EAC7C,SAAS,MAAM,KACd,MAgBF,CAAC"}
|
package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/form-utils.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { Questionnaire, QuestionnaireResponseItem } from "@medplum/fhirtypes";
|
|
2
2
|
import { ExtendedQuestionnaireItem } from "../types/extended-questionnaire-item";
|
|
3
|
+
import { QuestionnaireItemRenderer } from "../types/questionnaire-item-render-props";
|
|
3
4
|
import { ResponseValues } from "../types/response-values";
|
|
5
|
+
import { QuestionnaireConstraintResolver, QuestionnaireUnitOptionsResolver } from "./questionnaire-item-constraints";
|
|
4
6
|
export declare const FormUtils: {
|
|
5
7
|
extractPagesFromQuestionnaire: (questionnaire: Questionnaire) => ExtendedQuestionnaireItem[];
|
|
6
|
-
getItemType: (linkId: string, pages: ExtendedQuestionnaireItem[]) => string;
|
|
7
8
|
createQuestionnaireResponseItems: (responses: ResponseValues, pages: ExtendedQuestionnaireItem[]) => QuestionnaireResponseItem[];
|
|
8
9
|
initializeDefaultValues: (pages: ExtendedQuestionnaireItem[]) => ResponseValues;
|
|
10
|
+
getAllQuestionnaireItems: (pages: ExtendedQuestionnaireItem[]) => ExtendedQuestionnaireItem[];
|
|
11
|
+
hasUnansweredRequiredItems: (pages: ExtendedQuestionnaireItem[], responses: ResponseValues, renderItem?: QuestionnaireItemRenderer, resolver?: QuestionnaireConstraintResolver, unitOptionsResolver?: QuestionnaireUnitOptionsResolver) => boolean;
|
|
9
12
|
};
|
|
10
13
|
//# sourceMappingURL=form-utils.d.ts.map
|
package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/form-utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/form-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"form-utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/form-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAM1D,OAAO,EACL,+BAA+B,EAC/B,gCAAgC,EACjC,MAAM,kCAAkC,CAAC;AAoL1C,eAAO,MAAM,SAAS;mDAjLL,aAAa,KAC3B,yBAAyB,EAAE;kDA+EjB,cAAc,SAClB,yBAAyB,EAAE,KACjC,yBAAyB,EAAE;qCAwBrB,yBAAyB,EAAE,KACjC,cAAc;sCA0CR,yBAAyB,EAAE,KACjC,yBAAyB,EAAE;wCAIrB,yBAAyB,EAAE,aACvB,cAAc,eACZ,yBAAyB,aAC3B,+BAA+B,wBACpB,gCAAgC,KACrD,OAAO;CAwBT,CAAC"}
|
package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/form-validation.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { ExtendedQuestionnaireItem } from "../types/extended-questionnaire-item";
|
|
2
|
+
import { QuestionnaireItemRenderer } from "../types/questionnaire-item-render-props";
|
|
2
3
|
import { ResponseValues } from "../types/response-values";
|
|
4
|
+
import { QuestionnaireConstraintResolver, QuestionnaireUnitOptionsResolver } from "./questionnaire-item-constraints";
|
|
3
5
|
export declare const FormValidation: {
|
|
4
|
-
validateRequiredFields: (pages: ExtendedQuestionnaireItem[], responses: ResponseValues) => {
|
|
6
|
+
validateRequiredFields: (pages: ExtendedQuestionnaireItem[], responses: ResponseValues, renderItem?: QuestionnaireItemRenderer, resolver?: QuestionnaireConstraintResolver, unitOptionsResolver?: QuestionnaireUnitOptionsResolver) => {
|
|
5
7
|
isValid: boolean;
|
|
6
8
|
firstUnansweredLocation: {
|
|
7
9
|
pageIndex: number;
|
|
8
10
|
itemIndex: number;
|
|
9
11
|
} | null;
|
|
12
|
+
failureReason?: "required" | "invalid-answer";
|
|
10
13
|
};
|
|
11
14
|
};
|
|
12
15
|
//# sourceMappingURL=form-validation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-validation.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/form-validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"form-validation.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/form-validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAK1D,OAAO,EACL,+BAA+B,EAC/B,gCAAgC,EACjC,MAAM,kCAAkC,CAAC;AAgF1C,eAAO,MAAM,cAAc;oCAtElB,yBAAyB,EAAE,aACvB,cAAc,eACZ,yBAAyB,aAC3B,+BAA+B,wBACpB,gCAAgC,KACrD;QACD,OAAO,EAAE,OAAO,CAAC;QACjB,uBAAuB,EAAE;YAAE,SAAS,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,MAAM,CAAA;SAAE,GAAG,IAAI,CAAC;QACzE,aAAa,CAAC,EAAE,UAAU,GAAG,gBAAgB,CAAC;KAC/C;CA+DA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-answerable-questionnaire-item.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAcvD,eAAO,MAAM,6BAA6B,GACxC,MAAM,iBAAiB,KACtB,OAA+C,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { QuestionnaireItem, QuestionnaireResponseItemAnswer } from "@medplum/fhirtypes";
|
|
2
|
+
declare const ANSWER_VALUE_KEYS: readonly ["valueBoolean", "valueDecimal", "valueInteger", "valueDate", "valueDateTime", "valueTime", "valueString", "valueUri", "valueAttachment", "valueCoding", "valueQuantity", "valueReference"];
|
|
3
|
+
type QuestionnaireAnswerValueKey = (typeof ANSWER_VALUE_KEYS)[number];
|
|
4
|
+
declare const getAnswerValueKey: (value: object) => QuestionnaireAnswerValueKey | undefined;
|
|
5
|
+
declare const createTypedAnswer: (type: QuestionnaireItem["type"], key: QuestionnaireAnswerValueKey, value: unknown) => QuestionnaireResponseItemAnswer | undefined;
|
|
6
|
+
declare const validateAnswerForItem: (answer: QuestionnaireResponseItemAnswer | undefined, type: QuestionnaireItem["type"]) => QuestionnaireResponseItemAnswer | undefined;
|
|
7
|
+
export { createTypedAnswer, getAnswerValueKey, validateAnswerForItem, type QuestionnaireAnswerValueKey, };
|
|
8
|
+
//# sourceMappingURL=is-valid-questionnaire-answer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-valid-questionnaire-answer.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,+BAA+B,EAChC,MAAM,oBAAoB,CAAC;AAE5B,QAAA,MAAM,iBAAiB,sMAab,CAAC;AAEX,KAAK,2BAA2B,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,QAAA,MAAM,iBAAiB,GACrB,OAAO,MAAM,KACZ,2BAA2B,GAAG,SAIhC,CAAC;AAkGF,QAAA,MAAM,iBAAiB,GACrB,MAAM,iBAAiB,CAAC,MAAM,CAAC,EAC/B,KAAK,2BAA2B,EAChC,OAAO,OAAO,KACb,+BAA+B,GAAG,SAMpC,CAAC;AAEF,QAAA,MAAM,qBAAqB,GACzB,QAAQ,+BAA+B,GAAG,SAAS,EACnD,MAAM,iBAAiB,CAAC,MAAM,CAAC,KAC9B,+BAA+B,GAAG,SAepC,CAAC;AAEF,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,KAAK,2BAA2B,GACjC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DateItemType } from "../types/date-item-type";
|
|
2
|
+
declare const parseQuestionnaireDate: (value: number | string | undefined, type: DateItemType, boundary: "minimum" | "maximum") => Date | undefined;
|
|
3
|
+
declare const isQuestionnaireDateOutsideBounds: (value: Date, type: DateItemType, minimumDate?: Date, maximumDate?: Date) => boolean;
|
|
4
|
+
export { isQuestionnaireDateOutsideBounds, parseQuestionnaireDate };
|
|
5
|
+
//# sourceMappingURL=questionnaire-date-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questionnaire-date-utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/questionnaire-date-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,QAAA,MAAM,sBAAsB,GAC1B,OAAO,MAAM,GAAG,MAAM,GAAG,SAAS,EAClC,MAAM,YAAY,EAClB,UAAU,SAAS,GAAG,SAAS,KAC9B,IAAI,GAAG,SAiDT,CAAC;AAEF,QAAA,MAAM,gCAAgC,GACpC,OAAO,IAAI,EACX,MAAM,YAAY,EAClB,cAAc,IAAI,EAClB,cAAc,IAAI,KACjB,OAwDF,CAAC;AAEF,OAAO,EAAE,gCAAgC,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Coding, Extension, Quantity } from "@medplum/fhirtypes";
|
|
2
|
+
import { ExtendedQuestionnaireItem } from "../types/extended-questionnaire-item";
|
|
3
|
+
import { ResponseValues } from "../types/response-values";
|
|
4
|
+
type QuestionnaireConstraintResolver = (constraint: Extension, item: ExtendedQuestionnaireItem, answers: ResponseValues) => unknown;
|
|
5
|
+
type QuestionnaireUnitOptionsResolver = (valueSet: string, item: ExtendedQuestionnaireItem, answers: ResponseValues) => Coding[] | undefined;
|
|
6
|
+
type QuestionnaireItemConstraints = {
|
|
7
|
+
minValue?: number | string;
|
|
8
|
+
maxValue?: number | string;
|
|
9
|
+
minQuantity?: Quantity;
|
|
10
|
+
maxQuantity?: Quantity;
|
|
11
|
+
step?: number;
|
|
12
|
+
minLength?: number;
|
|
13
|
+
maxLength?: number;
|
|
14
|
+
unitOptions: Coding[];
|
|
15
|
+
unitValueSet?: string;
|
|
16
|
+
unitOpen?: string;
|
|
17
|
+
unresolvedUnitValueSet: boolean;
|
|
18
|
+
unresolvedDynamicBounds: Array<"minValue" | "maxValue" | "minQuantity" | "maxQuantity">;
|
|
19
|
+
};
|
|
20
|
+
declare const getQuestionnaireItemConstraints: (item: ExtendedQuestionnaireItem, answers?: ResponseValues, resolver?: QuestionnaireConstraintResolver, unitOptionsResolver?: QuestionnaireUnitOptionsResolver) => QuestionnaireItemConstraints;
|
|
21
|
+
export { getQuestionnaireItemConstraints, type QuestionnaireConstraintResolver, type QuestionnaireItemConstraints, type QuestionnaireUnitOptionsResolver, };
|
|
22
|
+
//# sourceMappingURL=questionnaire-item-constraints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questionnaire-item-constraints.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/questionnaire-item-constraints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAyB1D,KAAK,+BAA+B,GAAG,CACrC,UAAU,EAAE,SAAS,EACrB,IAAI,EAAE,yBAAyB,EAC/B,OAAO,EAAE,cAAc,KACpB,OAAO,CAAC;AAEb,KAAK,gCAAgC,GAAG,CACtC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,yBAAyB,EAC/B,OAAO,EAAE,cAAc,KACpB,MAAM,EAAE,GAAG,SAAS,CAAC;AAE1B,KAAK,4BAA4B,GAAG;IAClC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sBAAsB,EAAE,OAAO,CAAC;IAChC,uBAAuB,EAAE,KAAK,CAC5B,UAAU,GAAG,UAAU,GAAG,aAAa,GAAG,aAAa,CACxD,CAAC;CACH,CAAC;AA+EF,QAAA,MAAM,+BAA+B,GACnC,MAAM,yBAAyB,EAC/B,UAAS,cAAmB,EAC5B,WAAW,+BAA+B,EAC1C,sBAAsB,gCAAgC,KACrD,4BAkGF,CAAC;AAEF,OAAO,EACL,+BAA+B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,4BAA4B,EACjC,KAAK,gCAAgC,GACtC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Quantity } from "@medplum/fhirtypes";
|
|
2
|
+
import { ExtendedQuestionnaireItem } from "../types/extended-questionnaire-item";
|
|
3
|
+
import { ResponseValues } from "../types/response-values";
|
|
4
|
+
import { QuestionnaireItemConstraints } from "./questionnaire-item-constraints";
|
|
5
|
+
type Violation = "invalid-answer" | "out-of-range" | "invalid-step" | "invalid-length" | "invalid-unit";
|
|
6
|
+
declare const validateAnswerLength: (value: ResponseValues[string], answer: unknown, item: ExtendedQuestionnaireItem, constraints: QuestionnaireItemConstraints) => Violation | undefined;
|
|
7
|
+
declare const validateNumberConstraints: (answer: number, constraints: QuestionnaireItemConstraints) => Violation | undefined;
|
|
8
|
+
declare const validateQuantityConstraints: (answer: Quantity, constraints: QuestionnaireItemConstraints) => Violation | undefined;
|
|
9
|
+
export { validateAnswerLength, validateNumberConstraints, validateQuantityConstraints, };
|
|
10
|
+
//# sourceMappingURL=questionnaire-item-value-constraint-validators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questionnaire-item-value-constraint-validators.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAEhF,KAAK,SAAS,GACV,gBAAgB,GAChB,cAAc,GACd,cAAc,GACd,gBAAgB,GAChB,cAAc,CAAC;AAkBnB,QAAA,MAAM,oBAAoB,GACxB,OAAO,cAAc,CAAC,MAAM,CAAC,EAC7B,QAAQ,OAAO,EACf,MAAM,yBAAyB,EAC/B,aAAa,4BAA4B,KACxC,SAAS,GAAG,SAiBd,CAAC;AAEF,QAAA,MAAM,yBAAyB,GAC7B,QAAQ,MAAM,EACd,aAAa,4BAA4B,KACxC,SAAS,GAAG,SAyBd,CAAC;AAEF,QAAA,MAAM,2BAA2B,GAC/B,QAAQ,QAAQ,EAChB,aAAa,4BAA4B,KACxC,SAAS,GAAG,SAuDd,CAAC;AAEF,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,2BAA2B,GAC5B,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ExtendedQuestionnaireItem } from "../types/extended-questionnaire-item";
|
|
2
|
+
import { QuestionnaireItemRenderer } from "../types/questionnaire-item-render-props";
|
|
2
3
|
import { ResponseValues } from "../types/response-values";
|
|
3
4
|
type NavigationResult = {
|
|
4
5
|
hasError?: boolean;
|
|
@@ -8,7 +9,7 @@ type NavigationResult = {
|
|
|
8
9
|
lastItemIndex?: number;
|
|
9
10
|
};
|
|
10
11
|
export declare class QuestionnaireNavigationUtils {
|
|
11
|
-
static handleNext(currentPage: ExtendedQuestionnaireItem | undefined, enabledItems: ExtendedQuestionnaireItem[], currentItem: ExtendedQuestionnaireItem | undefined, currentItemIndex: number, currentPageIndex: number, pages: ExtendedQuestionnaireItem[], responses: ResponseValues): NavigationResult;
|
|
12
|
+
static handleNext(currentPage: ExtendedQuestionnaireItem | undefined, enabledItems: ExtendedQuestionnaireItem[], currentItem: ExtendedQuestionnaireItem | undefined, currentItemIndex: number, currentPageIndex: number, pages: ExtendedQuestionnaireItem[], responses: ResponseValues, renderItem?: QuestionnaireItemRenderer): NavigationResult;
|
|
12
13
|
static handlePrevious(currentItemIndex: number, currentPageIndex: number, pages: ExtendedQuestionnaireItem[], responses: ResponseValues): NavigationResult;
|
|
13
14
|
}
|
|
14
15
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questionnaire-navigation-utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"questionnaire-navigation-utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAM1D,KAAK,gBAAgB,GAAG;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAkBF,qBAAa,4BAA4B;IACvC,MAAM,CAAC,UAAU,CACf,WAAW,EAAE,yBAAyB,GAAG,SAAS,EAClD,YAAY,EAAE,yBAAyB,EAAE,EACzC,WAAW,EAAE,yBAAyB,GAAG,SAAS,EAClD,gBAAgB,EAAE,MAAM,EACxB,gBAAgB,EAAE,MAAM,EACxB,KAAK,EAAE,yBAAyB,EAAE,EAClC,SAAS,EAAE,cAAc,EACzB,UAAU,CAAC,EAAE,yBAAyB,GACrC,gBAAgB;IAqDnB,MAAM,CAAC,cAAc,CACnB,gBAAgB,EAAE,MAAM,EACxB,gBAAgB,EAAE,MAAM,EACxB,KAAK,EAAE,yBAAyB,EAAE,EAClC,SAAS,EAAE,cAAc,GACxB,gBAAgB;CAsCpB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { QuestionnaireResponseItemAnswer } from "@medplum/fhirtypes";
|
|
2
|
+
import { ExtendedQuestionnaireItem } from "../types/extended-questionnaire-item";
|
|
3
|
+
import { QuestionnaireItemConstraints } from "./questionnaire-item-constraints";
|
|
4
|
+
type QuestionnaireAnswerPickerOption = {
|
|
5
|
+
label: string;
|
|
6
|
+
value: QuestionnaireResponseItemAnswer;
|
|
7
|
+
};
|
|
8
|
+
type QuestionnaireNumericPickerOption = {
|
|
9
|
+
label: string;
|
|
10
|
+
value: number;
|
|
11
|
+
};
|
|
12
|
+
declare const getQuestionnaireNumericPickerOptions: (item: ExtendedQuestionnaireItem, constraints: QuestionnaireItemConstraints, locale?: string, maximumOptions?: number) => QuestionnaireNumericPickerOption[];
|
|
13
|
+
declare const getQuestionnaireAnswerPickerOptions: (item: ExtendedQuestionnaireItem, locale?: string) => QuestionnaireAnswerPickerOption[];
|
|
14
|
+
export { getQuestionnaireAnswerPickerOptions, getQuestionnaireNumericPickerOptions, type QuestionnaireAnswerPickerOption, type QuestionnaireNumericPickerOption, };
|
|
15
|
+
//# sourceMappingURL=questionnaire-picker-options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questionnaire-picker-options.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/questionnaire-picker-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,+BAA+B,EAChC,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AAGjF,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAEhF,KAAK,+BAA+B,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,+BAA+B,CAAC;CACxC,CAAC;AAEF,KAAK,gCAAgC,GAAG;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,QAAA,MAAM,oCAAoC,GACxC,MAAM,yBAAyB,EAC/B,aAAa,4BAA4B,EACzC,SAAS,MAAM,EACf,uBAAqB,KACpB,gCAAgC,EAiElC,CAAC;AAoDF,QAAA,MAAM,mCAAmC,GACvC,MAAM,yBAAyB,EAC/B,SAAS,MAAM,KACd,+BAA+B,EAUjC,CAAC;AAEF,OAAO,EACL,mCAAmC,EACnC,oCAAoC,EACpC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,GACtC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ExtendedQuestionnaireItem } from "../types/extended-questionnaire-item";
|
|
2
|
+
import { QuestionnaireItemConstraints } from "./questionnaire-item-constraints";
|
|
3
|
+
declare const validateStringConstraints: (answer: string, item: ExtendedQuestionnaireItem, constraints: QuestionnaireItemConstraints) => "invalid-answer" | "out-of-range" | undefined;
|
|
4
|
+
export { validateStringConstraints };
|
|
5
|
+
//# sourceMappingURL=questionnaire-string-constraint-validator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questionnaire-string-constraint-validator.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AAEjF,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AA8JhF,QAAA,MAAM,yBAAyB,GAC7B,QAAQ,MAAM,EACd,MAAM,yBAAyB,EAC/B,aAAa,4BAA4B,KACxC,gBAAgB,GAAG,cAAc,GAAG,SAUtC,CAAC;AAEF,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { Questionnaire, QuestionnaireResponse } from "@medplum/fhirtypes";
|
|
2
|
+
import type { OvokClient } from "@ovok/core";
|
|
2
3
|
import { ExtendedQuestionnaireItem } from "../types/extended-questionnaire-item";
|
|
4
|
+
import { QuestionnaireItemRenderer } from "../types/questionnaire-item-render-props";
|
|
3
5
|
import { ResponseValues } from "../types/response-values";
|
|
6
|
+
import { QuestionnaireConstraintResolver, QuestionnaireUnitOptionsResolver } from "./questionnaire-item-constraints";
|
|
4
7
|
export declare class QuestionnaireSubmitUtils {
|
|
5
|
-
static
|
|
8
|
+
static questionnaireHasObservationExtraction(questionnaire: Questionnaire): boolean;
|
|
9
|
+
static persistQuestionnaireResponse(client: OvokClient, response: QuestionnaireResponse, extractObservations: boolean): Promise<QuestionnaireResponse>;
|
|
10
|
+
static createQuestionnaireResponse(responses: ResponseValues, pages: ExtendedQuestionnaireItem[], questionnaire: Questionnaire, renderItem?: QuestionnaireItemRenderer, resolver?: QuestionnaireConstraintResolver, unitOptionsResolver?: QuestionnaireUnitOptionsResolver): QuestionnaireResponse;
|
|
6
11
|
}
|
|
7
12
|
//# sourceMappingURL=questionnaire-submit-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questionnaire-submit-utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"questionnaire-submit-utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,aAAa,EAEb,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG1D,OAAO,EACL,+BAA+B,EAC/B,gCAAgC,EACjC,MAAM,kCAAkC,CAAC;AAoB1C,qBAAa,wBAAwB;IACnC,MAAM,CAAC,qCAAqC,CAC1C,aAAa,EAAE,aAAa,GAC3B,OAAO;WAUG,4BAA4B,CACvC,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,qBAAqB,EAC/B,mBAAmB,EAAE,OAAO,GAC3B,OAAO,CAAC,qBAAqB,CAAC;IAuHjC,MAAM,CAAC,2BAA2B,CAChC,SAAS,EAAE,cAAc,EACzB,KAAK,EAAE,yBAAyB,EAAE,EAClC,aAAa,EAAE,aAAa,EAC5B,UAAU,CAAC,EAAE,yBAAyB,EACtC,QAAQ,CAAC,EAAE,+BAA+B,EAC1C,mBAAmB,CAAC,EAAE,gCAAgC,GACrD,qBAAqB;CAwBzB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Element } from "@medplum/fhirtypes";
|
|
2
|
+
/** Resolves the standard FHIR translation extension for a primitive string. */
|
|
3
|
+
export declare const translateFhirText: (value: string | undefined, element: Element | undefined, language: string | undefined) => string;
|
|
4
|
+
//# sourceMappingURL=translate-fhir-text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translate-fhir-text.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/translate-fhir-text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAQ7C,+EAA+E;AAC/E,eAAO,MAAM,iBAAiB,GAC5B,OAAO,MAAM,GAAG,SAAS,EACzB,SAAS,OAAO,GAAG,SAAS,EAC5B,UAAU,MAAM,GAAG,SAAS,KAC3B,MA8BF,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ExtendedQuestionnaireItem } from "../types/extended-questionnaire-item";
|
|
2
|
+
import { ResponseValues } from "../types/response-values";
|
|
3
|
+
import { QuestionnaireConstraintResolver, QuestionnaireUnitOptionsResolver } from "./questionnaire-item-constraints";
|
|
4
|
+
export type QuestionnaireItemValueViolation = "invalid-answer" | "out-of-range" | "invalid-step" | "invalid-length" | "invalid-unit" | "unresolved-constraint";
|
|
5
|
+
export declare const validateQuestionnaireItemValue: (value: ResponseValues[string], item: ExtendedQuestionnaireItem, answers?: ResponseValues, resolver?: QuestionnaireConstraintResolver, unitOptionsResolver?: QuestionnaireUnitOptionsResolver) => QuestionnaireItemValueViolation | undefined;
|
|
6
|
+
//# sourceMappingURL=validate-questionnaire-item-value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-questionnaire-item-value.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAI1D,OAAO,EAEL,+BAA+B,EAC/B,gCAAgC,EACjC,MAAM,kCAAkC,CAAC;AAQ1C,MAAM,MAAM,+BAA+B,GACvC,gBAAgB,GAChB,cAAc,GACd,cAAc,GACd,gBAAgB,GAChB,cAAc,GACd,uBAAuB,CAAC;AAoB5B,eAAO,MAAM,8BAA8B,GACzC,OAAO,cAAc,CAAC,MAAM,CAAC,EAC7B,MAAM,yBAAyB,EAC/B,UAAS,cAAmB,EAC5B,WAAW,+BAA+B,EAC1C,sBAAsB,gCAAgC,KACrD,+BAA+B,GAAG,SA8CpC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type PrerequisiteGateProps<T> = {
|
|
3
|
+
scopeKey: string;
|
|
4
|
+
/** Load account-scoped requirements from the host's authorized data source. */
|
|
5
|
+
check: () => Promise<T | null | undefined>;
|
|
6
|
+
/** Shown while checking. Defaults to nothing, so protected children never flash. */
|
|
7
|
+
pending?: React.ReactNode;
|
|
8
|
+
/** Render the required task and call refresh after its save succeeds. */
|
|
9
|
+
renderRequired: (requirement: T, refresh: () => void) => React.ReactNode;
|
|
10
|
+
/** Check failures fail open; use this callback for logging or telemetry. */
|
|
11
|
+
onError?: (error: unknown) => void;
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Loads host-defined, account-scoped prerequisites before rendering children.
|
|
16
|
+
* This is a UI gate only; backend authorization remains authoritative.
|
|
17
|
+
*/
|
|
18
|
+
export declare const PrerequisiteGate: <T>({ scopeKey, check, pending, renderRequired, onError, children, }: PrerequisiteGateProps<T>) => React.JSX.Element;
|
|
19
|
+
//# sourceMappingURL=prerequisite-gate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prerequisite-gate.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/ui/components/prerequisite-gate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,MAAM,qBAAqB,CAAC,CAAC,IAAI;IACrC,QAAQ,EAAE,MAAM,CAAC;IAEjB,+EAA+E;IAC/E,KAAK,EAAE,MAAM,OAAO,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;IAE3C,oFAAoF;IACpF,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,yEAAyE;IACzE,cAAc,EAAE,CAAC,WAAW,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,IAAI,KAAK,KAAK,CAAC,SAAS,CAAC;IAEzE,4EAA4E;IAC5E,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAEnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAQF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,CAAC,EAAG,kEAOlC,qBAAqB,CAAC,CAAC,CAAC,sBAmD1B,CAAC"}
|
|
@@ -2,6 +2,7 @@ export * from "./types";
|
|
|
2
2
|
export * from "./use-ovok-ui";
|
|
3
3
|
export * from "./components/ecg-strip-viewer";
|
|
4
4
|
export * from "./components/flow-frame";
|
|
5
|
+
export * from "./components/prerequisite-gate";
|
|
5
6
|
export * from "./components/manual-entry-form";
|
|
6
7
|
export * from "./components/supported-devices-catalog-list";
|
|
7
8
|
export * from "./components/bluetooth-state-notice";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { polyfillMedplumWebAPIs as polyfillOvokWebAPIs } from "@medplum/expo-polyfills";
|
|
2
|
+
export { ExpoClientStorage, ExtendedExpoCrypto, IExpoClientStorage, PolyfillEnabledConfig, cleanupMedplumWebAPIs, cleanupMedplumWebAPIs as cleanupOvokNativeRuntime, initWebSocketManager, } from "@medplum/expo-polyfills";
|
|
3
|
+
export { polyfillOvokWebAPIs };
|
|
4
|
+
/** @deprecated Use polyfillOvokWebAPIs instead. */
|
|
5
|
+
export declare const polyfillMedplumWebAPIs: typeof polyfillOvokWebAPIs;
|
|
6
|
+
/** @deprecated Use polyfillOvokWebAPIs instead. */
|
|
7
|
+
export declare const initializeOvokNativeRuntime: typeof polyfillOvokWebAPIs;
|
|
2
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/polyfills/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/polyfills/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,IAAI,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAExF,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,IAAI,wBAAwB,EACjD,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAE/B,mDAAmD;AACnD,eAAO,MAAM,sBAAsB,4BAAsB,CAAC;AAE1D,mDAAmD;AACnD,eAAO,MAAM,2BAA2B,4BAAsB,CAAC"}
|
|
@@ -7,6 +7,19 @@ export declare const defaultTranslation: {
|
|
|
7
7
|
cancel: string;
|
|
8
8
|
delete: string;
|
|
9
9
|
};
|
|
10
|
+
"questionnaire-form": {
|
|
11
|
+
error: {
|
|
12
|
+
"atomic-save-required": string;
|
|
13
|
+
"extraction-failed": string;
|
|
14
|
+
};
|
|
15
|
+
item: {
|
|
16
|
+
unsupported: string;
|
|
17
|
+
};
|
|
18
|
+
picker: {
|
|
19
|
+
increase: string;
|
|
20
|
+
decrease: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
10
23
|
profile: {
|
|
11
24
|
form: {
|
|
12
25
|
error: {
|
|
@@ -24,6 +37,10 @@ export declare const defaultTranslation: {
|
|
|
24
37
|
register: {
|
|
25
38
|
"already-have-account": string;
|
|
26
39
|
button: string;
|
|
40
|
+
errors: {
|
|
41
|
+
network: string;
|
|
42
|
+
generic: string;
|
|
43
|
+
};
|
|
27
44
|
name: string;
|
|
28
45
|
"full-name": string;
|
|
29
46
|
"or-register-with": string;
|
|
@@ -35,6 +52,10 @@ export declare const defaultTranslation: {
|
|
|
35
52
|
"reset-password": {
|
|
36
53
|
accountType: string;
|
|
37
54
|
email: string;
|
|
55
|
+
errors: {
|
|
56
|
+
network: string;
|
|
57
|
+
generic: string;
|
|
58
|
+
};
|
|
38
59
|
patient: string;
|
|
39
60
|
practitioner: string;
|
|
40
61
|
"reset-password": string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-translation.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/default-translation.ts"],"names":[],"mappings":"AAEA,8FAA8F;AAC9F,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"default-translation.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/default-translation.ts"],"names":[],"mappings":"AAEA,8FAA8F;AAC9F,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0F9B,CAAC"}
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import { useClient } from "@ovok/core";
|
|
1
|
+
import { useClient, type OvokSavedAccount } from "@ovok/core";
|
|
2
2
|
import { OvokNativeSession, SessionRevokeOption, SessionStatus } from "../types/session";
|
|
3
3
|
type Client = ReturnType<typeof useClient>;
|
|
4
4
|
type Profile = Awaited<ReturnType<Client["getProfileAsync"]>>;
|
|
5
5
|
interface UseSessionResult {
|
|
6
6
|
status: SessionStatus;
|
|
7
|
+
reason?: "session-ended";
|
|
7
8
|
isAuthenticated: boolean;
|
|
9
|
+
accounts: OvokSavedAccount[];
|
|
8
10
|
profile: Profile;
|
|
9
11
|
sessions: OvokNativeSession[];
|
|
10
12
|
loading: boolean;
|
|
13
|
+
switching: boolean;
|
|
11
14
|
error?: Error;
|
|
12
15
|
refresh: () => Promise<void>;
|
|
13
16
|
refreshSessions: () => Promise<void>;
|
|
17
|
+
switchAccount: (accountId: string) => Promise<void>;
|
|
18
|
+
removeAccount: (accountId: string) => Promise<void>;
|
|
14
19
|
logout: () => Promise<void>;
|
|
15
20
|
revokeSessions: (option: SessionRevokeOption) => Promise<void>;
|
|
16
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-session.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/hooks/use-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"use-session.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/hooks/use-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAM9D,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAE1B,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC3C,KAAK,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAC9D,UAAU,gBAAgB;IACxB,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,eAAe,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,cAAc,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE;AAED,UAAU,iBAAiB;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,gGAAgG;AAChG,QAAA,MAAM,UAAU,GAAI,oDAGjB,iBAAsB,KAAG,gBAoD3B,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/register/components/form/register-form-provider.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AASpE,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CACzC,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"register-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/register/components/form/register-form-provider.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AASpE,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CACzC,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CA4I3C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset-password-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/reset-password/components/form/reset-password-form-provider.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAGhG,eAAO,MAAM,yBAAyB,GAAI,mDAMvC,8BAA8B,
|
|
1
|
+
{"version":3,"file":"reset-password-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/reset-password/components/form/reset-password-form-provider.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAGhG,eAAO,MAAM,yBAAyB,GAAI,mDAMvC,8BAA8B,gCA6DhC,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
interface SessionLogoutClient {
|
|
2
2
|
logout: () => Promise<void>;
|
|
3
3
|
}
|
|
4
|
+
declare const isLogoutInProgress: (client: object) => boolean;
|
|
4
5
|
/** Uses one native/provider logout path for hooks and the built-in logout control. */
|
|
5
|
-
|
|
6
|
+
declare const logoutSession: (client: SessionLogoutClient) => Promise<void>;
|
|
7
|
+
export { isLogoutInProgress, logoutSession, type SessionLogoutClient };
|
|
6
8
|
//# sourceMappingURL=logout-session.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout-session.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/logout-session.ts"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"logout-session.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/logout-session.ts"],"names":[],"mappings":"AAIA,UAAU,mBAAmB;IAC3B,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7B;AAKD,QAAA,MAAM,kBAAkB,GAAI,QAAQ,MAAM,KAAG,OACf,CAAC;AAE/B,sFAAsF;AACtF,QAAA,MAAM,aAAa,GAAI,QAAQ,mBAAmB,KAAG,OAAO,CAAC,IAAI,CAyBhE,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SessionStoreRequestState } from "./session-store-request-state";
|
|
2
|
+
import { type Client, type SessionStore } from "./session-store-types";
|
|
3
|
+
declare const createSessionRefreshActions: (client: Client, requestState: SessionStoreRequestState, getStore: () => SessionStore, notify: () => void) => {
|
|
4
|
+
refresh: (includeSessions: boolean) => Promise<void>;
|
|
5
|
+
refreshSessions: () => Promise<void>;
|
|
6
|
+
};
|
|
7
|
+
export { createSessionRefreshActions };
|
|
8
|
+
//# sourceMappingURL=session-store-refresh.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-store-refresh.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store-refresh.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAEL,KAAK,MAAM,EAEX,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AAE/B,QAAA,MAAM,2BAA2B,GAC/B,QAAQ,MAAM,EACd,cAAc,wBAAwB,EACtC,UAAU,MAAM,YAAY,EAC5B,QAAQ,MAAM,IAAI;+BAEsB,OAAO;;CAmKhD,CAAC;AAEF,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Client, OvokNativeSession, SessionClient } from "./session-store-types";
|
|
2
|
+
declare class SessionStoreRequestState {
|
|
3
|
+
private readonly client;
|
|
4
|
+
private readonly sessionClient;
|
|
5
|
+
private profileRequest?;
|
|
6
|
+
private sessionsRequest?;
|
|
7
|
+
private profileNeedsRefresh;
|
|
8
|
+
private activeAccountId?;
|
|
9
|
+
private hasActiveAccount;
|
|
10
|
+
private authRevision;
|
|
11
|
+
constructor(client: Client, sessionClient: SessionClient);
|
|
12
|
+
getAccounts: () => import("@ovok/core").OvokSavedAccount[];
|
|
13
|
+
private getActiveAccountId;
|
|
14
|
+
syncActiveAccount: () => void;
|
|
15
|
+
invalidate: () => void;
|
|
16
|
+
nextRevision: () => number;
|
|
17
|
+
get revision(): number;
|
|
18
|
+
isCurrent: (revision: number) => boolean;
|
|
19
|
+
getProfileRequest: () => Promise<import("@medplum/core").ProfileResource | undefined>;
|
|
20
|
+
getSessionsRequest: () => Promise<OvokNativeSession[]>;
|
|
21
|
+
}
|
|
22
|
+
export { SessionStoreRequestState };
|
|
23
|
+
//# sourceMappingURL=session-store-request-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-store-request-state.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store-request-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,iBAAiB,EAEjB,aAAa,EACd,MAAM,uBAAuB,CAAC;AAE/B,cAAM,wBAAwB;IAS1B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAThC,OAAO,CAAC,cAAc,CAAC,CAAmB;IAC1C,OAAO,CAAC,eAAe,CAAC,CAA+B;IACvD,OAAO,CAAC,mBAAmB,CAAS;IACpC,OAAO,CAAC,eAAe,CAAC,CAAS;IACjC,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,YAAY,CAAK;gBAGN,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,aAAa;IAG/C,WAAW,gDAA+C;IAE1D,OAAO,CAAC,kBAAkB,CAEyB;IAEnD,iBAAiB,aASf;IAEF,UAAU,aAOR;IAEF,YAAY,eAA6B;IAEzC,IAAI,QAAQ,WAEX;IAED,SAAS,GAAI,UAAU,MAAM,aAAoC;IAEjE,iBAAiB,qEAiCf;IAEF,kBAAkB,qCAYhB;CACH;AAED,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import type { OvokNativeSession, SessionRevokeOption, SessionStatus } from "../types/session";
|
|
2
|
-
import type { useClient } from "@ovok/core";
|
|
2
|
+
import type { OvokSavedAccount, useClient } from "@ovok/core";
|
|
3
3
|
type Client = ReturnType<typeof useClient>;
|
|
4
4
|
type Profile = Awaited<ReturnType<Client["getProfileAsync"]>>;
|
|
5
5
|
interface SessionSnapshot {
|
|
6
6
|
status: SessionStatus;
|
|
7
|
+
reason?: "session-ended";
|
|
8
|
+
switching?: boolean;
|
|
9
|
+
accounts: OvokSavedAccount[];
|
|
7
10
|
profile?: Profile;
|
|
8
11
|
sessions: OvokNativeSession[];
|
|
9
12
|
error?: Error;
|
|
10
13
|
}
|
|
11
14
|
interface SessionClient {
|
|
15
|
+
getSavedAccounts: () => OvokSavedAccount[];
|
|
16
|
+
switchAccount: (accountId: string) => Promise<void>;
|
|
17
|
+
removeAccount: (accountId: string) => Promise<void>;
|
|
12
18
|
logout: () => Promise<void>;
|
|
13
19
|
getSessions: () => Promise<OvokNativeSession[]>;
|
|
14
20
|
revokeSessions: (option: SessionRevokeOption) => Promise<void>;
|
|
@@ -18,10 +24,12 @@ interface SessionStore {
|
|
|
18
24
|
subscribe: (listener: () => void) => () => void;
|
|
19
25
|
refresh: (includeSessions: boolean) => Promise<void>;
|
|
20
26
|
refreshSessions: () => Promise<void>;
|
|
27
|
+
switchAccount: (accountId: string) => Promise<void>;
|
|
28
|
+
removeAccount: (accountId: string) => Promise<void>;
|
|
21
29
|
logout: () => Promise<void>;
|
|
22
30
|
revokeSessions: (option: SessionRevokeOption) => Promise<void>;
|
|
23
31
|
}
|
|
24
32
|
declare const normalizeSession: (session: OvokNativeSession) => OvokNativeSession;
|
|
25
33
|
export { normalizeSession };
|
|
26
|
-
export type { Client, OvokNativeSession, Profile, SessionClient, SessionStore };
|
|
34
|
+
export type { Client, OvokNativeSession, OvokSavedAccount, Profile, SessionClient, SessionSnapshot, SessionStore, };
|
|
27
35
|
//# sourceMappingURL=session-store-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-store-types.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"session-store-types.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE9D,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC3C,KAAK,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAE9D,UAAU,eAAe;IACvB,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,UAAU,aAAa;IACrB,gBAAgB,EAAE,MAAM,gBAAgB,EAAE,CAAC;IAC3C,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,WAAW,EAAE,MAAM,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;IAChD,cAAc,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE;AAED,UAAU,YAAY;IACpB,QAAQ,EAAE,eAAe,CAAC;IAC1B,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;IAChD,OAAO,EAAE,CAAC,eAAe,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,eAAe,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,cAAc,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE;AAED,QAAA,MAAM,gBAAgB,GAAI,SAAS,iBAAiB,KAAG,iBAatD,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,YAAY,EACV,MAAM,EACN,iBAAiB,EACjB,gBAAgB,EAChB,OAAO,EACP,aAAa,EACb,eAAe,EACf,YAAY,GACb,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Client, SessionStore } from "./session-store-types";
|
|
2
2
|
declare const getSessionStore: (client: Client) => SessionStore;
|
|
3
3
|
export { getSessionStore };
|
|
4
4
|
//# sourceMappingURL=session-store.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-store.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"session-store.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,MAAM,EAEN,YAAY,EACb,MAAM,uBAAuB,CAAC;AAgL/B,QAAA,MAAM,eAAe,GAAI,QAAQ,MAAM,KAAG,YAazC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -9,8 +9,9 @@ interface ParsedSignInError {
|
|
|
9
9
|
fieldErrors: ValidationError[];
|
|
10
10
|
}
|
|
11
11
|
declare const isNetworkError: (error: unknown, message?: unknown) => boolean;
|
|
12
|
-
/** Converts transport/server failures to safe, translatable
|
|
12
|
+
/** Converts auth transport/server failures to safe, translatable error keys. */
|
|
13
13
|
declare const parseSignInError: (error: unknown, options?: {
|
|
14
|
+
errorScope?: "register" | "reset-password";
|
|
14
15
|
isMfaVerification?: boolean;
|
|
15
16
|
isSignIn?: boolean;
|
|
16
17
|
}) => ParsedSignInError;
|