@ovok/native 1.10.3 → 1.10.4
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 +17 -0
- package/lib/commonjs/modules/auth/default-translation.js.map +1 -1
- package/lib/commonjs/modules/auth/hooks/use-session.js +3 -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/session-store-refresh.js +125 -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 +36 -115
- 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/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 +59 -20
- 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 +37 -11
- 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 +2 -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 +17 -0
- package/lib/module/modules/auth/default-translation.js.map +1 -1
- package/lib/module/modules/auth/hooks/use-session.js +3 -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/session-store-refresh.js +121 -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 +36 -115
- 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/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 +59 -20
- 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 +37 -11
- 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 +2 -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 +17 -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 +4 -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/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 +8 -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/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 +3 -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 +17 -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 +4 -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/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 +8 -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/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 +3 -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 +3 -3
|
@@ -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,9 @@
|
|
|
1
1
|
import { Questionnaire, QuestionnaireResponse } 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 class QuestionnaireSubmitUtils {
|
|
5
|
-
static createQuestionnaireResponse(responses: ResponseValues, pages: ExtendedQuestionnaireItem[], questionnaire: Questionnaire): QuestionnaireResponse;
|
|
7
|
+
static createQuestionnaireResponse(responses: ResponseValues, pages: ExtendedQuestionnaireItem[], questionnaire: Questionnaire, renderItem?: QuestionnaireItemRenderer, resolver?: QuestionnaireConstraintResolver, unitOptionsResolver?: QuestionnaireUnitOptionsResolver): QuestionnaireResponse;
|
|
6
8
|
}
|
|
7
9
|
//# 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,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
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,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE1E,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;AAE1C,qBAAa,wBAAwB;IACnC,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,15 @@ export declare const defaultTranslation: {
|
|
|
7
7
|
cancel: string;
|
|
8
8
|
delete: string;
|
|
9
9
|
};
|
|
10
|
+
"questionnaire-form": {
|
|
11
|
+
item: {
|
|
12
|
+
unsupported: string;
|
|
13
|
+
};
|
|
14
|
+
picker: {
|
|
15
|
+
increase: string;
|
|
16
|
+
decrease: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
10
19
|
profile: {
|
|
11
20
|
form: {
|
|
12
21
|
error: {
|
|
@@ -24,6 +33,10 @@ export declare const defaultTranslation: {
|
|
|
24
33
|
register: {
|
|
25
34
|
"already-have-account": string;
|
|
26
35
|
button: string;
|
|
36
|
+
errors: {
|
|
37
|
+
network: string;
|
|
38
|
+
generic: string;
|
|
39
|
+
};
|
|
27
40
|
name: string;
|
|
28
41
|
"full-name": string;
|
|
29
42
|
"or-register-with": string;
|
|
@@ -35,6 +48,10 @@ export declare const defaultTranslation: {
|
|
|
35
48
|
"reset-password": {
|
|
36
49
|
accountType: string;
|
|
37
50
|
email: string;
|
|
51
|
+
errors: {
|
|
52
|
+
network: string;
|
|
53
|
+
generic: string;
|
|
54
|
+
};
|
|
38
55
|
patient: string;
|
|
39
56
|
practitioner: string;
|
|
40
57
|
"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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoF9B,CAAC"}
|
|
@@ -1,16 +1,19 @@
|
|
|
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
7
|
isAuthenticated: boolean;
|
|
8
|
+
accounts: OvokSavedAccount[];
|
|
8
9
|
profile: Profile;
|
|
9
10
|
sessions: OvokNativeSession[];
|
|
10
11
|
loading: boolean;
|
|
11
12
|
error?: Error;
|
|
12
13
|
refresh: () => Promise<void>;
|
|
13
14
|
refreshSessions: () => Promise<void>;
|
|
15
|
+
switchAccount: (accountId: string) => Promise<void>;
|
|
16
|
+
removeAccount: (accountId: string) => Promise<void>;
|
|
14
17
|
logout: () => Promise<void>;
|
|
15
18
|
revokeSessions: (option: SessionRevokeOption) => Promise<void>;
|
|
16
19
|
}
|
|
@@ -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,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,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,gBAkD3B,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"}
|
|
@@ -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;;CAgKhD,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,18 @@
|
|
|
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
|
+
accounts: OvokSavedAccount[];
|
|
7
8
|
profile?: Profile;
|
|
8
9
|
sessions: OvokNativeSession[];
|
|
9
10
|
error?: Error;
|
|
10
11
|
}
|
|
11
12
|
interface SessionClient {
|
|
13
|
+
getSavedAccounts: () => OvokSavedAccount[];
|
|
14
|
+
switchAccount: (accountId: string) => Promise<void>;
|
|
15
|
+
removeAccount: (accountId: string) => Promise<void>;
|
|
12
16
|
logout: () => Promise<void>;
|
|
13
17
|
getSessions: () => Promise<OvokNativeSession[]>;
|
|
14
18
|
revokeSessions: (option: SessionRevokeOption) => Promise<void>;
|
|
@@ -18,10 +22,12 @@ interface SessionStore {
|
|
|
18
22
|
subscribe: (listener: () => void) => () => void;
|
|
19
23
|
refresh: (includeSessions: boolean) => Promise<void>;
|
|
20
24
|
refreshSessions: () => Promise<void>;
|
|
25
|
+
switchAccount: (accountId: string) => Promise<void>;
|
|
26
|
+
removeAccount: (accountId: string) => Promise<void>;
|
|
21
27
|
logout: () => Promise<void>;
|
|
22
28
|
revokeSessions: (option: SessionRevokeOption) => Promise<void>;
|
|
23
29
|
}
|
|
24
30
|
declare const normalizeSession: (session: OvokNativeSession) => OvokNativeSession;
|
|
25
31
|
export { normalizeSession };
|
|
26
|
-
export type { Client, OvokNativeSession, Profile, SessionClient, SessionStore };
|
|
32
|
+
export type { Client, OvokNativeSession, OvokSavedAccount, Profile, SessionClient, SessionSnapshot, SessionStore, };
|
|
27
33
|
//# 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,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;AAiI/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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sign-in-error.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/utils/sign-in-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,KAAK,WAAW,GAAG,KAAK,GAAG;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,UAAU,iBAAiB;IACzB,KAAK,EAAE,WAAW,CAAC;IACnB,WAAW,EAAE,eAAe,EAAE,CAAC;CAChC;AA4DD,QAAA,MAAM,cAAc,GAAI,OAAO,OAAO,EAAE,UAAU,OAAO,YAYxD,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"sign-in-error.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/utils/sign-in-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,KAAK,WAAW,GAAG,KAAK,GAAG;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,UAAU,iBAAiB;IACzB,KAAK,EAAE,WAAW,CAAC;IACnB,WAAW,EAAE,eAAe,EAAE,CAAC;CAChC;AA4DD,QAAA,MAAM,cAAc,GAAI,OAAO,OAAO,EAAE,UAAU,OAAO,YAYxD,CAAC;AAEF,gFAAgF;AAChF,QAAA,MAAM,gBAAgB,GACpB,OAAO,OAAO,EACd,UAAS;IACP,UAAU,CAAC,EAAE,UAAU,GAAG,gBAAgB,CAAC;IAC3C,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACf,KACL,iBAoEF,CAAC;AAEF,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,KAAK,iBAAiB,EACtB,KAAK,WAAW,GACjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apple-health-authorization-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/components/apple/apple-health-authorization-provider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"apple-health-authorization-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/components/apple/apple-health-authorization-provider.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,qCAAqC,EAAE,MAAM,uDAAuD,CAAC;AAM9G,eAAO,MAAM,gCAAgC,sKAUxC,KAAK,CAAC,iBAAiB,CAAC,qCAAqC,CAAC,uBAyNlE,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare const useListenChanges: (dataToSync: AppleHealthSyncProps["dataToSync"], onChange: (sample: HKSampleTypeIdentifier) => void, backgroundDelivery?: AppleHealthSyncProps["backgroundDelivery"], onError?: (error: Error) => void) => void;
|
|
1
|
+
import { AppleHealthDataTypeIdentifier, AppleHealthSyncProps } from "../types/apple-health-sync-props";
|
|
2
|
+
export declare const useListenChanges: (dataToSync: AppleHealthSyncProps["dataToSync"], onChange: (sample: AppleHealthDataTypeIdentifier) => void, backgroundDelivery?: AppleHealthSyncProps["backgroundDelivery"], onError?: (error: Error) => void) => void;
|
|
4
3
|
//# sourceMappingURL=use-listen-changes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-listen-changes.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/hooks/use-listen-changes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-listen-changes.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/hooks/use-listen-changes.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,6BAA6B,EAC7B,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAE1C,eAAO,MAAM,gBAAgB,GAC3B,YAAY,oBAAoB,CAAC,YAAY,CAAC,EAC9C,UAAU,CAAC,MAAM,EAAE,6BAA6B,KAAK,IAAI,EACzD,qBAAqB,oBAAoB,CAAC,oBAAoB,CAAC,EAC/D,UAAU,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,SAwGjC,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { HKSampleTypeIdentifier } from "@kingstinct/react-native-healthkit";
|
|
2
1
|
import { Observation } from "@medplum/fhirtypes";
|
|
3
|
-
import { AppleHealthSyncProps } from "../types/apple-health-sync-props";
|
|
2
|
+
import { AppleHealthDataTypeIdentifier, AppleHealthSyncProps } from "../types/apple-health-sync-props";
|
|
4
3
|
import { BaseServiceProps } from "../types/base-service-props";
|
|
5
4
|
import { ConvertDataProps } from "../types/convert-data-props";
|
|
6
5
|
import { DataFromProviderResult } from "../types/data-from-provider-result";
|
|
@@ -9,11 +8,11 @@ import { GetTotalCountProps } from "../types/get-total-count-props";
|
|
|
9
8
|
import { HealthProvider } from "../types/health-provider";
|
|
10
9
|
import { BaseHealthSyncService } from "./base-health-sync-service";
|
|
11
10
|
type AppleHealthSyncServiceProps = BaseServiceProps<AppleHealthSyncProps["dataToSync"]>;
|
|
12
|
-
export declare class AppleHealthSyncService extends BaseHealthSyncService<AppleHealthSyncProps["dataToSync"],
|
|
11
|
+
export declare class AppleHealthSyncService extends BaseHealthSyncService<AppleHealthSyncProps["dataToSync"], AppleHealthDataTypeIdentifier, unknown> {
|
|
13
12
|
private constructor();
|
|
14
13
|
protected getProviderName(): HealthProvider;
|
|
15
|
-
protected getTotalCountsFunction(): (props: GetTotalCountProps<
|
|
16
|
-
protected getDataFromProviderFunction(): (props: GetDataFromProviderProps<
|
|
14
|
+
protected getTotalCountsFunction(): (props: GetTotalCountProps<AppleHealthDataTypeIdentifier>) => Promise<number>;
|
|
15
|
+
protected getDataFromProviderFunction(): (props: GetDataFromProviderProps<AppleHealthDataTypeIdentifier>) => Promise<DataFromProviderResult<unknown, AppleHealthDataTypeIdentifier>>;
|
|
17
16
|
protected getConverterFunction(): (props: ConvertDataProps<unknown>) => Promise<Observation[]>;
|
|
18
17
|
static getInstance(props: AppleHealthSyncServiceProps): AppleHealthSyncService;
|
|
19
18
|
}
|
package/lib/typescript/module/src/modules/data-sync/services/apple-health-sync-service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apple-health-sync-service.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/services/apple-health-sync-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"apple-health-sync-service.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/services/apple-health-sync-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EACL,6BAA6B,EAC7B,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAK1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,KAAK,2BAA2B,GAAG,gBAAgB,CACjD,oBAAoB,CAAC,YAAY,CAAC,CACnC,CAAC;AAEF,qBAAa,sBAAuB,SAAQ,qBAAqB,CAC/D,oBAAoB,CAAC,YAAY,CAAC,EAClC,6BAA6B,EAC7B,OAAO,CACR;IACC,OAAO;IAIP,SAAS,CAAC,eAAe,IAAI,cAAc;IAI3C,SAAS,CAAC,sBAAsB,IAAI,CAClC,KAAK,EAAE,kBAAkB,CAAC,6BAA6B,CAAC,KACrD,OAAO,CAAC,MAAM,CAAC;IAIpB,SAAS,CAAC,2BAA2B,IAAI,CACvC,KAAK,EAAE,wBAAwB,CAAC,6BAA6B,CAAC,KAC3D,OAAO,CACV,sBAAsB,CACpB,OAAO,EACP,6BAA6B,CAC9B,CACF;IAID,SAAS,CAAC,oBAAoB,IAAI,CAChC,KAAK,EAAE,gBAAgB,CAAC,OAAO,CAAC,KAC7B,OAAO,CAAC,WAAW,EAAE,CAAC;IAI3B,MAAM,CAAC,WAAW,CAChB,KAAK,EAAE,2BAA2B,GACjC,sBAAsB;CAO1B"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { HKSampleTypeIdentifier } from "@kingstinct/react-native-healthkit";
|
|
2
|
-
import { AppleHealthSyncProps } from "./apple-health-sync-props";
|
|
2
|
+
import { AppleHealthDataTypeIdentifier, AppleHealthSyncProps } from "./apple-health-sync-props";
|
|
3
3
|
import { HealthAuthorizationProviderProps } from "./health-authorization-provider-props";
|
|
4
4
|
import { AppleHealthAuthorizationStatus } from "./health-authorization-status";
|
|
5
|
-
export type AppleHealthAuthorizationProviderProps = HealthAuthorizationProviderProps<
|
|
5
|
+
export type AppleHealthAuthorizationProviderProps = HealthAuthorizationProviderProps<AppleHealthDataTypeIdentifier> & {
|
|
6
|
+
/** HealthKit types the app may write; sleep apnea events are read-only. */
|
|
7
|
+
writeIdentifiers?: HKSampleTypeIdentifier[];
|
|
6
8
|
/** Maps HealthKit identifiers back to the app's configured measurement types. */
|
|
7
9
|
dataToSync?: AppleHealthSyncProps["dataToSync"];
|
|
8
10
|
/** Receives the authorization state and any HealthKit types still unanswered. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apple-health-authorization-provider-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/apple-health-authorization-provider-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAE5E,OAAO,
|
|
1
|
+
{"version":3,"file":"apple-health-authorization-provider-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/apple-health-authorization-provider-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAE5E,OAAO,EACL,6BAA6B,EAC7B,oBAAoB,EACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAE/E,MAAM,MAAM,qCAAqC,GAC/C,gCAAgC,CAAC,6BAA6B,CAAC,GAAG;IAEhE,2EAA2E;IAC3E,gBAAgB,CAAC,EAAE,sBAAsB,EAAE,CAAC;IAE5C,iFAAiF;IACjF,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAEhD,iFAAiF;IACjF,2BAA2B,CAAC,EAAE,CAC5B,MAAM,EAAE,8BAA8B,KACnC,IAAI,CAAC;CACX,CAAC"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { HKSampleTypeIdentifier, HKUpdateFrequency } from "@kingstinct/react-native-healthkit";
|
|
2
2
|
import { HealthSyncProps } from "./health-sync-props";
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* HealthKit identifiers supported by the SDK. The pinned wrapper accepts
|
|
5
|
+
* arbitrary category identifiers at runtime, even before its enum adds them.
|
|
6
|
+
*/
|
|
7
|
+
type AppleHealthDataTypeIdentifier = HKSampleTypeIdentifier | "HKCategoryTypeIdentifierSleepApneaEvent";
|
|
8
|
+
type AppleHealthSyncProps = HealthSyncProps<AppleHealthDataTypeIdentifier> & {
|
|
4
9
|
/** Enables HealthKit observer delivery while the app is in the background. */
|
|
5
10
|
backgroundDelivery?: {
|
|
6
11
|
frequency?: HKUpdateFrequency;
|
|
7
12
|
};
|
|
8
13
|
};
|
|
14
|
+
export { AppleHealthDataTypeIdentifier, AppleHealthSyncProps };
|
|
9
15
|
//# sourceMappingURL=apple-health-sync-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apple-health-sync-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/apple-health-sync-props.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,
|
|
1
|
+
{"version":3,"file":"apple-health-sync-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/apple-health-sync-props.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD;;;GAGG;AACH,KAAK,6BAA6B,GAC9B,sBAAsB,GACtB,yCAAyC,CAAC;AAE9C,KAAK,oBAAoB,GAAG,eAAe,CAAC,6BAA6B,CAAC,GAAG;IAE3E,8EAA8E;IAC9E,kBAAkB,CAAC,EAAE;QACnB,SAAS,CAAC,EAAE,iBAAiB,CAAC;KAC/B,CAAC;CACH,CAAC;AAEF,OAAO,EAAE,6BAA6B,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { HKSampleTypeIdentifier } from "@kingstinct/react-native-healthkit";
|
|
2
|
+
import { AppleHealthDataTypeIdentifier } from "./apple-health-sync-props";
|
|
2
3
|
import { HealthSyncKey } from "./health-sync-keys";
|
|
3
4
|
type AppleHealthAuthorizationStatus = {
|
|
4
5
|
state: "unknown" | "shouldRequest" | "requesting" | "ready" | "error";
|
|
5
6
|
/** HealthKit types that still need to be answered in Settings. */
|
|
6
|
-
notRequestedReadIdentifiers:
|
|
7
|
+
notRequestedReadIdentifiers: AppleHealthDataTypeIdentifier[];
|
|
7
8
|
/** HealthKit write types that still need to be answered in Settings. */
|
|
8
9
|
notRequestedWriteIdentifiers: HKSampleTypeIdentifier[];
|
|
9
10
|
/** Configured measurement types with at least one unanswered read identifier. */
|
package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"health-authorization-status.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/health-authorization-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAE5E,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,KAAK,8BAA8B,GAAG;IACpC,KAAK,EAAE,SAAS,GAAG,eAAe,GAAG,YAAY,GAAG,OAAO,GAAG,OAAO,CAAC;IAEtE,kEAAkE;IAClE,2BAA2B,EAAE,
|
|
1
|
+
{"version":3,"file":"health-authorization-status.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/health-authorization-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAE5E,OAAO,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,KAAK,8BAA8B,GAAG;IACpC,KAAK,EAAE,SAAS,GAAG,eAAe,GAAG,YAAY,GAAG,OAAO,GAAG,OAAO,CAAC;IAEtE,kEAAkE;IAClE,2BAA2B,EAAE,6BAA6B,EAAE,CAAC;IAE7D,wEAAwE;IACxE,4BAA4B,EAAE,sBAAsB,EAAE,CAAC;IAEvD,iFAAiF;IACjF,4BAA4B,EAAE,aAAa,EAAE,CAAC;IAC9C,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,KAAK,uCAAuC,GAAG;IAC7C,KAAK,EACD,SAAS,GACT,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,SAAS,GACT,OAAO,CAAC;IACZ,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAEjC,sFAAsF;IACtF,gBAAgB,CAAC,EAAE,YAAY,GAAG,eAAe,GAAG,SAAS,GAAG,aAAa,CAAC;CAC/E,CAAC;AAEF,YAAY,EACV,uCAAuC,EACvC,8BAA8B,GAC/B,CAAC"}
|
|
@@ -4,6 +4,7 @@ import { HealthDataMode } from "../types/health-sync-keys";
|
|
|
4
4
|
type GenericHealthDataProps = ConvertDataProps<unknown> & {
|
|
5
5
|
mode: HealthDataMode;
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
declare const convertGenericHealthDataToObservation: ({ data, patientId, mode, typeIdentifier: configuredTypeIdentifier, typeIdentifierCodes, typeIdentifierCodeSystems, typeIdentifierCodeDisplays, }: GenericHealthDataProps) => Promise<Observation[]>;
|
|
8
|
+
declare const getUcumCode: (unit: string, typeIdentifier?: string) => string | undefined;
|
|
9
|
+
export { convertGenericHealthDataToObservation, getUcumCode };
|
|
9
10
|
//# sourceMappingURL=convert-generic-health-data.d.ts.map
|