@icanbwell/bwell-sdk-ts 1.54.0-rc.1766515022 → 1.55.0
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/README.md +19 -3
- package/dist/__version__.d.ts +1 -1
- package/dist/__version__.js +1 -1
- package/dist/api/api-provider-factory.d.ts +1 -1
- package/dist/api/api-provider-factory.js +2 -1
- package/dist/api/base/activity/activity-manager.d.ts +18 -25
- package/dist/api/base/activity/get-tasks-request.d.ts +29 -49
- package/dist/api/base/activity/get-tasks-request.js +42 -15
- package/dist/api/base/activity/index.d.ts +2 -4
- package/dist/api/base/activity/index.js +0 -1
- package/dist/api/base/api-provider.d.ts +12 -14
- package/dist/api/base/connection/connection-manager.d.ts +68 -51
- package/dist/api/base/connection/connection-manager.js +3 -0
- package/dist/api/base/connection/connection-request.d.ts +15 -1
- package/dist/api/base/connection/connection-request.js +8 -0
- package/dist/api/base/connection/index.d.ts +1 -1
- package/dist/api/base/device/constants.d.ts +3 -0
- package/dist/api/base/device/constants.js +3 -0
- package/dist/api/base/device/device-manager.d.ts +34 -12
- package/dist/api/base/device/device-manager.js +1 -5
- package/dist/api/base/device/device-request.d.ts +35 -42
- package/dist/api/base/device/device-request.js +30 -42
- package/dist/api/base/device/index.d.ts +2 -2
- package/dist/api/base/device/index.js +2 -2
- package/dist/api/base/financial/coverage-request.d.ts +5 -6
- package/dist/api/base/financial/coverage-request.js +7 -7
- package/dist/api/base/financial/{explanation-of-benefit.d.ts → explanation-of-benefit-request.d.ts} +15 -9
- package/dist/api/base/financial/{explanation-of-benefit.js → explanation-of-benefit-request.js} +8 -18
- package/dist/api/base/financial/financial-manager.d.ts +46 -14
- package/dist/api/base/financial/index.d.ts +3 -2
- package/dist/api/base/financial/index.js +2 -2
- package/dist/api/base/health-data/health-data-request.d.ts +116 -8
- package/dist/api/base/health-data/health-data-request.js +83 -2
- package/dist/api/base/health-data/health-data-response-factory.d.ts +27 -0
- package/dist/api/base/health-data/health-manager.d.ts +293 -243
- package/dist/api/base/health-data/index.d.ts +2 -3
- package/dist/api/base/health-data/index.js +0 -2
- package/dist/api/base/health-data/lab-knowledge-request.d.ts +9 -0
- package/dist/api/base/health-data/lab-knowledge-request.js +3 -0
- package/dist/api/base/health-data/medication-knowledge-request.d.ts +9 -0
- package/dist/api/base/health-data/medication-knowledge-request.js +3 -0
- package/dist/api/base/health-space/appointments-request.d.ts +9 -0
- package/dist/api/base/health-space/appointments-request.js +3 -0
- package/dist/api/base/health-space/cancel-appointment-request.d.ts +8 -1
- package/dist/api/base/health-space/cancel-appointment-request.js +4 -0
- package/dist/api/base/health-space/cancellation-reasons-request.d.ts +28 -0
- package/dist/api/base/health-space/{cancelationReasons-request.js → cancellation-reasons-request.js} +10 -4
- package/dist/api/base/health-space/health-space-manager.d.ts +29 -116
- package/dist/api/base/health-space/index.d.ts +2 -7
- package/dist/api/base/health-space/index.js +1 -6
- package/dist/api/base/identity/identity-manager.d.ts +98 -11
- package/dist/api/base/index.d.ts +1 -3
- package/dist/api/base/index.js +2 -3
- package/dist/api/base/questionnaire/index.d.ts +1 -4
- package/dist/api/base/questionnaire/index.js +0 -3
- package/dist/api/base/questionnaire/next-question-request.d.ts +8 -2
- package/dist/api/base/questionnaire/next-question-request.js +4 -1
- package/dist/api/base/questionnaire/questionnaire-manager.d.ts +24 -42
- package/dist/api/base/requests/field-sort-order.d.ts +11 -0
- package/dist/api/base/requests/index.d.ts +2 -0
- package/dist/api/base/requests/search-date.d.ts +12 -0
- package/dist/api/base/requests/search-reference.d.ts +9 -1
- package/dist/api/base/requests/search-string.d.ts +6 -0
- package/dist/api/base/requests/search-token.d.ts +18 -0
- package/dist/api/base/requests/search-token.js +17 -17
- package/dist/api/base/search/index.d.ts +3 -5
- package/dist/api/base/search/index.js +1 -3
- package/dist/api/base/search/search-health-resources-request.d.ts +33 -44
- package/dist/api/base/search/search-health-resources-request.js +3 -0
- package/dist/api/base/search/search-manager.d.ts +39 -42
- package/dist/api/base/search/submit-provider-for-review-request.d.ts +33 -0
- package/dist/api/base/search/submit-provider-for-review-request.js +9 -0
- package/dist/api/base/user/create-consent-request.d.ts +13 -1
- package/dist/api/base/user/create-consent-request.js +10 -5
- package/dist/api/base/user/create-data-export-direct-download-url-request.d.ts +9 -0
- package/dist/api/base/user/create-data-export-direct-download-url-request.js +3 -0
- package/dist/api/base/user/create-verification-url-request.d.ts +12 -0
- package/dist/api/base/user/create-verification-url-request.js +6 -0
- package/dist/api/base/user/get-consents-request.d.ts +19 -1
- package/dist/api/base/user/get-consents-request.js +13 -1
- package/dist/api/base/user/index.d.ts +1 -2
- package/dist/api/base/user/update-profile-request.d.ts +11 -3
- package/dist/api/base/user/update-profile-request.js +5 -3
- package/dist/api/base/user/user-manager.d.ts +100 -49
- package/dist/api/base/user/validators.d.ts +5 -0
- package/dist/api/base/user/validators.js +13 -0
- package/dist/api/graphql-api/activity/{activity-request-factories.d.ts → get-tasks-request-factory.d.ts} +0 -7
- package/dist/api/graphql-api/activity/get-tasks-request-factory.js +56 -0
- package/dist/api/graphql-api/activity/graphql-activity-manager.d.ts +6 -8
- package/dist/api/graphql-api/activity/graphql-activity-manager.js +19 -30
- package/dist/api/graphql-api/activity/index.d.ts +1 -1
- package/dist/api/graphql-api/activity/index.js +1 -1
- package/dist/api/graphql-api/connection/connection-response-factory.d.ts +7 -0
- package/dist/api/graphql-api/connection/connection-response-factory.js +101 -0
- package/dist/api/graphql-api/connection/graphql-connection-manager.d.ts +9 -9
- package/dist/api/graphql-api/connection/graphql-connection-manager.js +7 -5
- package/dist/api/graphql-api/connection/index.d.ts +0 -1
- package/dist/api/graphql-api/connection/index.js +1 -1
- package/dist/api/graphql-api/device/graphql-device-manager.d.ts +2 -1
- package/dist/api/graphql-api/device/graphql-device-manager.js +4 -2
- package/dist/api/graphql-api/errors/errors.js +1 -1
- package/dist/api/graphql-api/financial/coverage-request-factory.d.ts +9 -0
- package/dist/api/graphql-api/financial/coverage-request-factory.js +19 -0
- package/dist/api/graphql-api/financial/{graphql-explanation-of-benefits-factory.d.ts → explanation-of-benefit-request-factory.d.ts} +3 -3
- package/dist/api/graphql-api/financial/explanation-of-benefit-request-factory.js +19 -0
- package/dist/api/graphql-api/financial/graphql-financial-manager.d.ts +4 -12
- package/dist/api/graphql-api/financial/graphql-financial-manager.js +32 -19
- package/dist/api/graphql-api/financial/index.d.ts +3 -1
- package/dist/api/graphql-api/financial/index.js +3 -1
- package/dist/api/graphql-api/graphql-api-provider.d.ts +6 -14
- package/dist/api/graphql-api/graphql-api-provider.js +6 -7
- package/dist/api/graphql-api/health-space/cancel-appointment-request-factory.js +1 -2
- package/dist/api/graphql-api/health-space/graphql-health-space-manager.d.ts +5 -62
- package/dist/api/graphql-api/health-space/graphql-health-space-manager.js +9 -163
- package/dist/api/graphql-api/health-space/index.d.ts +0 -4
- package/dist/api/graphql-api/health-space/index.js +0 -4
- package/dist/api/graphql-api/healthdata/get-encounters-request-factory.d.ts +7 -0
- package/dist/api/graphql-api/healthdata/get-encounters-request-factory.js +76 -0
- package/dist/api/graphql-api/healthdata/get-medication-dispenses-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/healthdata/get-medication-dispenses-request-factory.js +25 -0
- package/dist/api/graphql-api/healthdata/graphql-health-manager.d.ts +30 -41
- package/dist/api/graphql-api/healthdata/graphql-health-manager.js +311 -256
- package/dist/api/graphql-api/healthdata/health-data-request-factory.d.ts +18 -0
- package/dist/api/graphql-api/healthdata/health-data-request-factory.js +25 -0
- package/dist/api/graphql-api/healthdata/health-data-response-factory.d.ts +8 -0
- package/dist/api/graphql-api/healthdata/health-data-response-factory.js +58 -0
- package/dist/api/graphql-api/identity/graphql-identity-manager.d.ts +2 -1
- package/dist/api/graphql-api/identity/graphql-identity-manager.js +5 -3
- package/dist/api/graphql-api/questionnaire/graphql-questionnaire-manager.d.ts +4 -22
- package/dist/api/graphql-api/questionnaire/graphql-questionnaire-manager.js +4 -69
- package/dist/api/graphql-api/questionnaire/index.d.ts +0 -2
- package/dist/api/graphql-api/questionnaire/index.js +0 -2
- package/dist/api/graphql-api/search/graphql-search-manager.d.ts +4 -6
- package/dist/api/graphql-api/search/graphql-search-manager.js +9 -71
- package/dist/api/graphql-api/search/search-health-resources-request-factory.js +12 -11
- package/dist/api/graphql-api/search/submit-provider-for-review-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/search/{request-connection-request-factory.js → submit-provider-for-review-request-factory.js} +1 -1
- package/dist/api/graphql-api/user/get-consent-request-factory.d.ts +1 -2
- package/dist/api/graphql-api/user/get-consent-request-factory.js +5 -1
- package/dist/api/graphql-api/user/graphql-user-manager.d.ts +10 -11
- package/dist/api/graphql-api/user/graphql-user-manager.js +11 -10
- package/dist/api/graphql-api/user/update-profile-request-factory.js +1 -2
- package/dist/api/identity-manager-factory.js +1 -1
- package/dist/auth/auth-code-strategy.d.ts +2 -1
- package/dist/auth/auth-strategy.d.ts +1 -1
- package/dist/auth/credentials.d.ts +1 -1
- package/dist/auth/credentials.js +2 -2
- package/dist/auth/oauth-strategy.d.ts +2 -1
- package/dist/auth/username-password-strategy.d.ts +2 -1
- package/dist/auth/username-password-strategy.js +2 -2
- package/dist/bwell-sdk/bwell-sdk.d.ts +319 -48
- package/dist/bwell-sdk/bwell-sdk.js +368 -53
- package/dist/config/bwell-config.d.ts +12 -12
- package/dist/config/bwell-config.js +2 -5
- package/dist/config/sdk-config.d.ts +2 -3
- package/dist/config/sdk-config.js +4 -6
- package/dist/errors/authentication-error.d.ts +7 -0
- package/dist/errors/authentication-error.js +7 -0
- package/dist/errors/bwell-error.d.ts +12 -2
- package/dist/errors/bwell-error.js +5 -2
- package/dist/errors/illegal-argument-error.d.ts +7 -0
- package/dist/errors/illegal-argument-error.js +7 -0
- package/dist/errors/illegal-state-error.d.ts +7 -0
- package/dist/errors/illegal-state-error.js +7 -0
- package/dist/errors/invalid-client-key-error.d.ts +7 -0
- package/dist/errors/invalid-client-key-error.js +7 -0
- package/dist/errors/invalid-credentials-type-error.d.ts +7 -0
- package/dist/errors/invalid-credentials-type-error.js +7 -0
- package/dist/errors/invalid-token-error.d.ts +4 -1
- package/dist/errors/invalid-token-error.js +4 -1
- package/dist/errors/network-error.d.ts +7 -0
- package/dist/errors/network-error.js +7 -0
- package/dist/errors/operation-outcome-error.d.ts +8 -1
- package/dist/errors/operation-outcome-error.js +7 -0
- package/dist/errors/unknown-error.d.ts +7 -0
- package/dist/errors/unknown-error.js +7 -0
- package/dist/errors/validation-error.d.ts +7 -0
- package/dist/errors/validation-error.js +7 -0
- package/dist/graphql/operations/index.d.ts +116 -315
- package/dist/graphql/operations/index.js +1891 -2311
- package/dist/graphql/operations/types.d.ts +16893 -18936
- package/dist/graphql/schema.d.ts +68323 -5995
- package/dist/graphql/schema.js +1 -484
- package/dist/index.d.ts +7 -5
- package/dist/index.js +5 -4
- package/dist/language/language-manager.d.ts +25 -10
- package/dist/language/language-manager.js +5 -0
- package/dist/models/activity/index.d.ts +1 -0
- package/dist/models/activity/task.d.ts +77 -0
- package/dist/models/common/address.d.ts +41 -0
- package/dist/models/common/annotation.d.ts +18 -0
- package/dist/models/common/annotation.js +1 -0
- package/dist/models/common/attachment.d.ts +18 -0
- package/dist/models/common/attachment.js +1 -0
- package/dist/models/common/bundle.d.ts +83 -0
- package/dist/models/common/bundle.js +1 -0
- package/dist/models/common/codeable-concept.d.ts +17 -0
- package/dist/models/common/codeable-concept.js +1 -0
- package/dist/models/common/coding.d.ts +18 -0
- package/dist/models/common/coding.js +1 -0
- package/dist/models/common/component.d.ts +23 -0
- package/dist/models/common/component.js +1 -0
- package/dist/models/common/contact-point.d.ts +32 -0
- package/dist/models/common/contact-point.js +1 -0
- package/dist/models/common/dispense-request.d.ts +67 -0
- package/dist/models/common/dispense-request.js +1 -0
- package/dist/models/common/dosage.d.ts +68 -0
- package/dist/models/common/dosage.js +1 -0
- package/dist/models/common/endpoint.d.ts +23 -0
- package/dist/models/common/endpoint.js +1 -0
- package/dist/models/common/expression.d.ts +20 -0
- package/dist/models/common/expression.js +1 -0
- package/dist/models/common/extension.d.ts +49 -0
- package/dist/models/common/extension.js +1 -0
- package/dist/models/common/fhir-error.d.ts +23 -0
- package/dist/models/common/fhir-error.js +1 -0
- package/dist/models/common/human-name.d.ts +20 -0
- package/dist/models/common/human-name.js +1 -0
- package/dist/models/common/identifier.d.ts +19 -0
- package/dist/models/common/identifier.js +1 -0
- package/dist/models/common/index.d.ts +38 -0
- package/dist/models/common/index.js +2 -0
- package/dist/models/common/location.d.ts +51 -0
- package/dist/models/common/location.js +1 -0
- package/dist/models/common/medication.d.ts +42 -0
- package/dist/models/common/medication.js +1 -0
- package/dist/models/common/meta.d.ts +21 -0
- package/dist/models/common/meta.js +1 -0
- package/dist/models/common/money.d.ts +15 -0
- package/dist/models/common/money.js +1 -0
- package/dist/models/common/narrative.d.ts +14 -0
- package/dist/models/common/narrative.js +1 -0
- package/dist/models/common/operation-outcome.d.ts +48 -0
- package/dist/models/common/operation-outcome.js +1 -0
- package/dist/models/common/organization.d.ts +46 -0
- package/dist/models/common/organization.js +1 -0
- package/dist/models/common/paging-info.d.ts +18 -0
- package/dist/models/common/paging-info.js +1 -0
- package/dist/models/common/patient.d.ts +13 -0
- package/dist/models/common/patient.js +1 -0
- package/dist/models/common/period.d.ts +14 -0
- package/dist/models/common/period.js +1 -0
- package/dist/models/common/practitioner-role.d.ts +42 -0
- package/dist/models/common/practitioner-role.js +1 -0
- package/dist/models/common/practitioner.d.ts +17 -0
- package/dist/models/common/practitioner.js +1 -0
- package/dist/models/common/quantity.d.ts +20 -0
- package/dist/models/common/quantity.js +1 -0
- package/dist/models/common/range.d.ts +15 -0
- package/dist/models/common/range.js +1 -0
- package/dist/models/common/ratio.d.ts +15 -0
- package/dist/models/common/ratio.js +1 -0
- package/dist/models/common/reference-range.d.ts +13 -0
- package/dist/models/common/reference-range.js +1 -0
- package/dist/models/common/reference.d.ts +27 -0
- package/dist/models/common/reference.js +1 -0
- package/dist/models/common/related-person.d.ts +34 -0
- package/dist/models/common/related-person.js +1 -0
- package/dist/models/common/score.d.ts +16 -0
- package/dist/models/common/score.js +1 -0
- package/dist/models/common/service-request.d.ts +21 -0
- package/dist/models/common/service-request.js +1 -0
- package/dist/models/common/specimen.d.ts +30 -0
- package/dist/models/common/specimen.js +7 -0
- package/dist/models/common/timing.d.ts +107 -0
- package/dist/models/common/timing.js +1 -0
- package/dist/models/common/value.d.ts +22 -0
- package/dist/models/common/value.js +1 -0
- package/dist/models/connection/base-connection.d.ts +27 -0
- package/dist/models/connection/base-connection.js +1 -0
- package/dist/models/connection/connection-status.d.ts +15 -0
- package/dist/models/connection/connection-status.js +1 -0
- package/dist/models/connection/connection.d.ts +32 -0
- package/dist/models/connection/connection.js +1 -0
- package/dist/models/connection/data-source.d.ts +27 -0
- package/dist/models/connection/data-source.js +1 -0
- package/dist/models/connection/index.d.ts +6 -0
- package/dist/models/connection/index.js +1 -0
- package/dist/models/connection/member-connection.d.ts +37 -0
- package/dist/models/connection/member-connection.js +1 -0
- package/dist/models/connection/oauth-url.d.ts +12 -0
- package/dist/models/connection/oauth-url.js +1 -0
- package/dist/models/device/device-registration-results.d.ts +12 -0
- package/dist/models/device/device-registration-results.js +1 -0
- package/dist/models/device/index.d.ts +1 -0
- package/dist/models/device/index.js +1 -0
- package/dist/models/enums/category-code.d.ts +11 -0
- package/dist/models/enums/category-code.js +13 -0
- package/dist/models/enums/connection-category.d.ts +9 -0
- package/dist/models/enums/connection-category.js +1 -0
- package/dist/models/enums/consent-provision-type.d.ts +11 -0
- package/dist/models/enums/consent-provision-type.js +2 -0
- package/dist/models/enums/consent-status.d.ts +11 -0
- package/dist/models/enums/consent-status.js +9 -0
- package/dist/models/enums/data-connection-status.d.ts +9 -0
- package/dist/models/enums/data-connection-status.js +1 -0
- package/dist/models/enums/data-connection-type.d.ts +9 -0
- package/dist/models/enums/data-connection-type.js +1 -0
- package/dist/models/enums/data-set.d.ts +10 -0
- package/dist/models/enums/data-set.js +1 -0
- package/dist/models/enums/device-platform.d.ts +11 -0
- package/dist/models/enums/device-platform.js +2 -0
- package/dist/models/enums/endpoint-status.d.ts +9 -0
- package/dist/models/enums/endpoint-status.js +1 -0
- package/dist/models/enums/filter-field.d.ts +9 -0
- package/dist/models/enums/filter-field.js +1 -0
- package/dist/models/enums/gender.d.ts +9 -0
- package/dist/models/enums/gender.js +1 -0
- package/dist/models/enums/index.d.ts +18 -0
- package/dist/models/enums/index.js +5 -0
- package/dist/models/enums/log-level.d.ts +8 -0
- package/dist/models/enums/log-level.js +1 -0
- package/dist/models/enums/person-gender.d.ts +11 -0
- package/dist/models/enums/person-gender.js +7 -0
- package/dist/models/enums/search-context.d.ts +10 -0
- package/dist/models/enums/search-context.js +1 -0
- package/dist/models/enums/search-result-type.d.ts +9 -0
- package/dist/models/enums/search-result-type.js +1 -0
- package/dist/models/enums/sort-field.d.ts +10 -0
- package/dist/models/enums/sort-field.js +1 -0
- package/dist/models/enums/sort-order.d.ts +9 -0
- package/dist/models/enums/sort-order.js +1 -0
- package/dist/models/enums/sync-status.d.ts +9 -0
- package/dist/models/enums/sync-status.js +1 -0
- package/dist/models/financial/coverage-bundle.d.ts +18 -0
- package/dist/models/financial/coverage-bundle.js +1 -0
- package/dist/models/financial/coverage.d.ts +65 -0
- package/dist/models/financial/coverage.js +1 -0
- package/dist/models/financial/explanation-of-benefit-bundle.d.ts +26 -0
- package/dist/models/financial/explanation-of-benefit-bundle.js +1 -0
- package/dist/models/financial/explanation-of-benefit.d.ts +274 -0
- package/dist/models/financial/explanation-of-benefit.js +1 -0
- package/dist/models/financial/index.d.ts +4 -0
- package/dist/models/financial/index.js +4 -0
- package/dist/models/health-data/allergy-intolerance-bundle.d.ts +11 -0
- package/dist/models/health-data/allergy-intolerance-bundle.js +1 -0
- package/dist/models/health-data/allergy-intolerance-group.d.ts +44 -0
- package/dist/models/health-data/allergy-intolerance-group.js +1 -0
- package/dist/models/health-data/allergy-intolerance-reaction.d.ts +23 -0
- package/dist/models/health-data/allergy-intolerance-reaction.js +1 -0
- package/dist/models/health-data/allergy-intolerance.d.ts +54 -0
- package/dist/models/health-data/allergy-intolerance.js +1 -0
- package/dist/models/health-data/care-plan-group.d.ts +42 -0
- package/dist/models/health-data/care-plan-group.js +1 -0
- package/dist/models/health-data/care-plan.d.ts +134 -0
- package/dist/models/health-data/care-plan.js +1 -0
- package/dist/models/health-data/care-team.d.ts +77 -0
- package/dist/models/health-data/care-team.js +1 -0
- package/dist/models/health-data/condition-group.d.ts +42 -0
- package/dist/models/health-data/condition-group.js +1 -0
- package/dist/models/health-data/condition.d.ts +104 -0
- package/dist/models/health-data/condition.js +1 -0
- package/dist/models/health-data/diagnostic-report-lab-group.d.ts +45 -0
- package/dist/models/health-data/diagnostic-report-lab-group.js +1 -0
- package/dist/models/health-data/diagnostic-report.d.ts +90 -0
- package/dist/models/health-data/diagnostic-report.js +1 -0
- package/dist/models/health-data/encounter-group.d.ts +48 -0
- package/dist/models/health-data/encounter-group.js +1 -0
- package/dist/models/health-data/encounter.d.ts +79 -0
- package/dist/models/health-data/encounter.js +1 -0
- package/dist/models/health-data/health-summary.d.ts +18 -0
- package/dist/models/health-data/health-summary.js +1 -0
- package/dist/models/health-data/immunization-group.d.ts +41 -0
- package/dist/models/health-data/immunization-group.js +1 -0
- package/dist/models/health-data/immunization.d.ts +150 -0
- package/dist/models/health-data/immunization.js +1 -0
- package/dist/models/health-data/index.d.ts +30 -0
- package/dist/models/health-data/index.js +1 -0
- package/dist/models/health-data/lab-bundle.d.ts +26 -0
- package/dist/models/health-data/lab-bundle.js +1 -0
- package/dist/models/health-data/lab-group.d.ts +51 -0
- package/dist/models/health-data/lab-group.js +1 -0
- package/dist/models/health-data/lab-knowledge.d.ts +28 -0
- package/dist/models/health-data/lab-knowledge.js +1 -0
- package/dist/models/health-data/medication-dispense.d.ts +108 -0
- package/dist/models/health-data/medication-dispense.js +1 -0
- package/dist/models/health-data/medication-group.d.ts +43 -0
- package/dist/models/health-data/medication-group.js +1 -0
- package/dist/models/health-data/medication-knowledge.d.ts +30 -0
- package/dist/models/health-data/medication-knowledge.js +1 -0
- package/dist/models/health-data/medication-pricing.d.ts +28 -0
- package/dist/models/health-data/medication-pricing.js +1 -0
- package/dist/models/health-data/medication-request.d.ts +107 -0
- package/dist/models/health-data/medication-request.js +1 -0
- package/dist/models/health-data/medication-statement.d.ts +68 -0
- package/dist/models/health-data/medication-statement.js +1 -0
- package/dist/models/health-data/observation.d.ts +102 -0
- package/dist/models/health-data/observation.js +1 -0
- package/dist/models/health-data/procedure-group.d.ts +43 -0
- package/dist/models/health-data/procedure-group.js +1 -0
- package/dist/models/health-data/procedure.d.ts +84 -0
- package/dist/models/health-data/procedure.js +1 -0
- package/dist/models/health-data/vital-sign-bundle.d.ts +18 -0
- package/dist/models/health-data/vital-sign-bundle.js +1 -0
- package/dist/models/health-data/vital-sign-group.d.ts +51 -0
- package/dist/models/health-data/vital-sign-group.js +1 -0
- package/dist/models/health-space/appointment-bundle.d.ts +11 -0
- package/dist/models/health-space/appointment-bundle.js +1 -0
- package/dist/models/health-space/appointment-participant.d.ts +17 -0
- package/dist/models/health-space/appointment-participant.js +1 -0
- package/dist/models/health-space/appointment-update.d.ts +14 -0
- package/dist/models/health-space/appointment-update.js +1 -0
- package/dist/models/health-space/appointment.d.ts +30 -0
- package/dist/models/health-space/appointment.js +1 -0
- package/dist/models/health-space/cancellation-reasons.d.ts +32 -0
- package/dist/models/health-space/cancellation-reasons.js +1 -0
- package/dist/models/health-space/index.d.ts +5 -0
- package/dist/models/health-space/index.js +1 -0
- package/dist/models/identity/auth-tokens.d.ts +25 -0
- package/dist/models/identity/auth-tokens.js +1 -0
- package/dist/models/identity/create-guest-access-token-results.d.ts +12 -0
- package/dist/models/identity/create-guest-access-token-results.js +1 -0
- package/dist/models/identity/index.d.ts +4 -0
- package/dist/models/identity/index.js +1 -0
- package/dist/models/identity/refresh-token-results.d.ts +8 -0
- package/dist/models/identity/refresh-token-results.js +1 -0
- package/dist/models/identity/sdk-configuration-result.d.ts +26 -0
- package/dist/models/identity/sdk-configuration-result.js +1 -0
- package/dist/models/index.d.ts +12 -4
- package/dist/models/index.js +12 -4
- package/dist/models/questionnaire/index.d.ts +5 -0
- package/dist/models/questionnaire/index.js +1 -0
- package/dist/models/questionnaire/questionnaire-item.d.ts +38 -0
- package/dist/models/questionnaire/questionnaire-item.js +1 -0
- package/dist/models/questionnaire/questionnaire-response-answer.d.ts +33 -0
- package/dist/models/questionnaire/questionnaire-response-answer.js +1 -0
- package/dist/models/questionnaire/questionnaire-response-item.d.ts +19 -0
- package/dist/models/questionnaire/questionnaire-response-item.js +1 -0
- package/dist/models/questionnaire/questionnaire-response.d.ts +29 -0
- package/dist/models/questionnaire/questionnaire-response.js +1 -0
- package/dist/models/questionnaire/questionnaire.d.ts +30 -0
- package/dist/models/questionnaire/questionnaire.js +1 -0
- package/dist/models/search/health-resources.d.ts +133 -0
- package/dist/models/search/health-resources.js +1 -0
- package/dist/models/search/index.d.ts +2 -0
- package/dist/models/search/index.js +1 -0
- package/dist/models/search/provider-review-result.d.ts +15 -0
- package/dist/models/search/provider-review-result.js +1 -0
- package/dist/models/user/consent.d.ts +100 -0
- package/dist/models/user/consent.js +1 -0
- package/dist/models/user/index.d.ts +4 -0
- package/dist/models/user/index.js +1 -0
- package/dist/models/user/person.d.ts +43 -0
- package/dist/models/user/person.js +1 -0
- package/dist/models/user/user.d.ts +12 -0
- package/dist/models/user/user.js +1 -0
- package/dist/models/user/verification-result.d.ts +30 -0
- package/dist/models/user/verification-result.js +1 -0
- package/dist/requests/paged-request.d.ts +35 -0
- package/dist/requests/paged-request.js +22 -0
- package/dist/requests/request.d.ts +16 -0
- package/dist/requests/request.js +8 -0
- package/dist/requests/validator.d.ts +15 -0
- package/dist/requests/validator.js +7 -0
- package/dist/results/bwell-query-result.d.ts +5 -0
- package/dist/results/bwell-query-result.js +5 -0
- package/dist/results/bwell-transaction-result.d.ts +17 -3
- package/dist/results/bwell-transaction-result.js +15 -1
- package/dist/results/index.d.ts +1 -0
- package/dist/results/index.js +1 -0
- package/dist/telemetry/open-telemetry-instrumentation.js +1 -4
- package/dist/tokens/index.d.ts +2 -0
- package/dist/tokens/index.js +2 -0
- package/dist/tokens/jwt-token-manager.d.ts +3 -7
- package/dist/tokens/jwt-token-manager.js +9 -8
- package/dist/tokens/load-auth-tokens.d.ts +6 -0
- package/dist/tokens/load-auth-tokens.js +43 -0
- package/dist/tokens/token-manager.d.ts +12 -0
- package/dist/tokens/token-manager.js +5 -0
- package/dist/tokens/token-storage.d.ts +20 -0
- package/dist/tokens/token-storage.js +19 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/parsing-utils.d.ts +11 -1
- package/dist/utils/parsing-utils.js +33 -1
- package/dist/utils/search-token-utils.d.ts +8 -0
- package/dist/utils/search-token-utils.js +23 -0
- package/package.json +23 -19
- package/dist/api/base/activity/types.d.ts +0 -3
- package/dist/api/base/activity/types.js +0 -5
- package/dist/api/base/activity/update-task-status-request.d.ts +0 -18
- package/dist/api/base/activity/update-task-status-request.js +0 -15
- package/dist/api/base/event/event-manager.d.ts +0 -16
- package/dist/api/base/event/event-request.d.ts +0 -35
- package/dist/api/base/event/event-request.js +0 -64
- package/dist/api/base/event/index.d.ts +0 -2
- package/dist/api/base/event/index.js +0 -1
- package/dist/api/base/health-data/medication-pricing-request.d.ts +0 -21
- package/dist/api/base/health-data/medication-pricing-request.js +0 -26
- package/dist/api/base/health-data/medication-statement-request.d.ts +0 -29
- package/dist/api/base/health-data/medication-statement-request.js +0 -35
- package/dist/api/base/health-space/add-care-team-member-request.d.ts +0 -33
- package/dist/api/base/health-space/add-care-team-member-request.js +0 -36
- package/dist/api/base/health-space/add-care-team-members-request.d.ts +0 -35
- package/dist/api/base/health-space/add-care-team-members-request.js +0 -61
- package/dist/api/base/health-space/cancelationReasons-request.d.ts +0 -16
- package/dist/api/base/health-space/care-team-members-request.d.ts +0 -31
- package/dist/api/base/health-space/care-team-members-request.js +0 -33
- package/dist/api/base/health-space/remove-care-team-member-request.d.ts +0 -34
- package/dist/api/base/health-space/remove-care-team-member-request.js +0 -36
- package/dist/api/base/health-space/update-care-team-member-request.d.ts +0 -55
- package/dist/api/base/health-space/update-care-team-member-request.js +0 -71
- package/dist/api/base/questionnaire/questionnaire-responses-request.d.ts +0 -30
- package/dist/api/base/questionnaire/questionnaire-responses-request.js +0 -49
- package/dist/api/base/questionnaire/questionnaires-request.d.ts +0 -18
- package/dist/api/base/questionnaire/questionnaires-request.js +0 -42
- package/dist/api/base/questionnaire/save-questionnaire-response-request.d.ts +0 -22
- package/dist/api/base/questionnaire/save-questionnaire-response-request.js +0 -33
- package/dist/api/base/search/request-connection-request.d.ts +0 -24
- package/dist/api/base/search/request-connection-request.js +0 -3
- package/dist/api/base/search/search-request.d.ts +0 -84
- package/dist/api/base/search/search-request.js +0 -78
- package/dist/api/base/support/create-support-comment-request.d.ts +0 -13
- package/dist/api/base/support/create-support-comment-request.js +0 -18
- package/dist/api/base/support/create-support-request-request.d.ts +0 -22
- package/dist/api/base/support/create-support-request-request.js +0 -20
- package/dist/api/base/support/delete-support-attachment-request.d.ts +0 -11
- package/dist/api/base/support/delete-support-attachment-request.js +0 -14
- package/dist/api/base/support/get-support-articles-request.d.ts +0 -14
- package/dist/api/base/support/get-support-articles-request.js +0 -12
- package/dist/api/base/support/get-support-attachment-request.d.ts +0 -14
- package/dist/api/base/support/get-support-attachment-request.js +0 -18
- package/dist/api/base/support/get-support-comments-request.d.ts +0 -14
- package/dist/api/base/support/get-support-comments-request.js +0 -15
- package/dist/api/base/support/get-support-requests-request.d.ts +0 -16
- package/dist/api/base/support/get-support-requests-request.js +0 -14
- package/dist/api/base/support/index.d.ts +0 -9
- package/dist/api/base/support/index.js +0 -9
- package/dist/api/base/support/support-manager.d.ts +0 -78
- package/dist/api/base/support/upload-support-attachment-request.d.ts +0 -25
- package/dist/api/base/support/upload-support-attachment-request.js +0 -27
- package/dist/api/base/user/types.d.ts +0 -9
- package/dist/api/base/user/types.js +0 -17
- package/dist/api/graphql-api/activity/activity-request-factories.js +0 -70
- package/dist/api/graphql-api/connection/graphql-get-member-connections-bwell-response-factory.d.ts +0 -18
- package/dist/api/graphql-api/connection/graphql-get-member-connections-bwell-response-factory.js +0 -40
- package/dist/api/graphql-api/event/event-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/event/event-request-factory.js +0 -11
- package/dist/api/graphql-api/event/graphql-event-manager.d.ts +0 -15
- package/dist/api/graphql-api/event/graphql-event-manager.js +0 -65
- package/dist/api/graphql-api/event/index.d.ts +0 -1
- package/dist/api/graphql-api/event/index.js +0 -1
- package/dist/api/graphql-api/financial/graphql-coverages-bwell-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/financial/graphql-coverages-bwell-request-factory.js +0 -17
- package/dist/api/graphql-api/financial/graphql-explanation-of-benefits-factory.js +0 -23
- package/dist/api/graphql-api/health-space/add-care-team-member-request-factory.d.ts +0 -20
- package/dist/api/graphql-api/health-space/add-care-team-member-request-factory.js +0 -29
- package/dist/api/graphql-api/health-space/add-care-team-members-request-factory.d.ts +0 -16
- package/dist/api/graphql-api/health-space/add-care-team-members-request-factory.js +0 -23
- package/dist/api/graphql-api/health-space/care-team-factory-utils.d.ts +0 -23
- package/dist/api/graphql-api/health-space/care-team-factory-utils.js +0 -30
- package/dist/api/graphql-api/health-space/care-team-members-request-factory.d.ts +0 -12
- package/dist/api/graphql-api/health-space/care-team-members-request-factory.js +0 -17
- package/dist/api/graphql-api/health-space/remove-care-team-member-request-factory.d.ts +0 -16
- package/dist/api/graphql-api/health-space/remove-care-team-member-request-factory.js +0 -24
- package/dist/api/graphql-api/health-space/update-care-team-member-request-factory.d.ts +0 -16
- package/dist/api/graphql-api/health-space/update-care-team-member-request-factory.js +0 -20
- package/dist/api/graphql-api/healthdata/graphql-diagnostic-reports-bwell-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/healthdata/graphql-diagnostic-reports-bwell-request-factory.js +0 -12
- package/dist/api/graphql-api/healthdata/graphql-get-medication-dispense-bwell-response-factory.d.ts +0 -10
- package/dist/api/graphql-api/healthdata/graphql-get-medication-dispense-bwell-response-factory.js +0 -35
- package/dist/api/graphql-api/healthdata/graphql-get-medication-request-bwell-response-factory.d.ts +0 -10
- package/dist/api/graphql-api/healthdata/graphql-get-medication-request-bwell-response-factory.js +0 -35
- package/dist/api/graphql-api/healthdata/graphql-update-medication-statement-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/healthdata/graphql-update-medication-statement-request-factory.js +0 -11
- package/dist/api/graphql-api/questionnaire/get-questionnaire-responses-request-factory.d.ts +0 -9
- package/dist/api/graphql-api/questionnaire/get-questionnaire-responses-request-factory.js +0 -22
- package/dist/api/graphql-api/questionnaire/get-questionnaires-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/questionnaire/get-questionnaires-request-factory.js +0 -16
- package/dist/api/graphql-api/search/connection-search-request-factory.d.ts +0 -7
- package/dist/api/graphql-api/search/connection-search-request-factory.js +0 -21
- package/dist/api/graphql-api/search/index.d.ts +0 -1
- package/dist/api/graphql-api/search/index.js +0 -1
- package/dist/api/graphql-api/search/provider-search-request-factory.d.ts +0 -7
- package/dist/api/graphql-api/search/provider-search-request-factory.js +0 -21
- package/dist/api/graphql-api/search/request-connection-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/search/search-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/search/search-request-factory.js +0 -44
- package/dist/api/graphql-api/support/create-support-comment-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/support/create-support-comment-request-factory.js +0 -12
- package/dist/api/graphql-api/support/create-support-request-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/support/create-support-request-request-factory.js +0 -19
- package/dist/api/graphql-api/support/delete-support-attachment-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/support/delete-support-attachment-request-factory.js +0 -10
- package/dist/api/graphql-api/support/get-support-articles-bwell-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/support/get-support-articles-bwell-request-factory.js +0 -15
- package/dist/api/graphql-api/support/get-support-attachment-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/support/get-support-attachment-request-factory.js +0 -11
- package/dist/api/graphql-api/support/get-support-comments-bwell-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/support/get-support-comments-bwell-request-factory.js +0 -14
- package/dist/api/graphql-api/support/get-support-requests-bwell-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/support/get-support-requests-bwell-request-factory.js +0 -16
- package/dist/api/graphql-api/support/graphql-support-manager.d.ts +0 -28
- package/dist/api/graphql-api/support/graphql-support-manager.js +0 -210
- package/dist/api/graphql-api/support/index.d.ts +0 -1
- package/dist/api/graphql-api/support/index.js +0 -1
- package/dist/api/graphql-api/support/upload-support-attachment-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/support/upload-support-attachment-request-factory.js +0 -11
- package/dist/api/graphql-api/user/create-data-export-direct-download-url-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/user/create-data-export-direct-download-url-request-factory.js +0 -9
- package/dist/models/coding.d.ts +0 -5
- package/dist/models/fhir-error.d.ts +0 -9
- package/dist/models/user.d.ts +0 -4
- package/dist/utils/date-utils.d.ts +0 -6
- package/dist/utils/date-utils.js +0 -8
- /package/dist/api/base/{event/event-manager.js → health-data/health-data-response-factory.js} +0 -0
- /package/dist/api/base/{support/support-manager.js → requests/field-sort-order.js} +0 -0
- /package/dist/models/{coding.js → activity/index.js} +0 -0
- /package/dist/models/{fhir-error.js → activity/task.js} +0 -0
- /package/dist/models/{user.js → common/address.js} +0 -0
- /package/dist/{models → results}/operation-outcome.d.ts +0 -0
- /package/dist/{models → results}/operation-outcome.js +0 -0
|
@@ -18,12 +18,11 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
18
18
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
19
19
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
20
20
|
};
|
|
21
|
-
var _GraphQLUserManager_sdk, _GraphQLUserManager_logger, _GraphQLUserManager_createConsentRequestFactory, _GraphQLUserManager_updateProfileRequestFactory, _GraphQLUserManager_getConsentRequestFactory,
|
|
21
|
+
var _GraphQLUserManager_sdk, _GraphQLUserManager_logger, _GraphQLUserManager_createConsentRequestFactory, _GraphQLUserManager_updateProfileRequestFactory, _GraphQLUserManager_getConsentRequestFactory, _GraphQLUserManager_createVerificationUrlRequestFactory;
|
|
22
22
|
import { ConsoleLoggerProvider, } from "../../../logger/index.js";
|
|
23
23
|
import { BWellQueryResult, BWellTransactionResult, } from "../../../results/index.js";
|
|
24
24
|
import { GraphQLManager } from "../graphql-manager/index.js";
|
|
25
25
|
import { CreateConsentRequestFactory } from "./create-consent-request-factory.js";
|
|
26
|
-
import { CreateDataExportDirectDownloadUrlRequestFactory } from "./create-data-export-direct-download-url-request-factory.js";
|
|
27
26
|
import { CreateVerificationUrlRequestFactory } from "./create-verification-url-request-factory.js";
|
|
28
27
|
import { GetConsentRequestFactory } from "./get-consent-request-factory.js";
|
|
29
28
|
import { UpdateProfileRequestFactory } from "./update-profile-request-factory.js";
|
|
@@ -35,7 +34,6 @@ export class GraphQLUserManager extends GraphQLManager {
|
|
|
35
34
|
_GraphQLUserManager_createConsentRequestFactory.set(this, new CreateConsentRequestFactory());
|
|
36
35
|
_GraphQLUserManager_updateProfileRequestFactory.set(this, new UpdateProfileRequestFactory());
|
|
37
36
|
_GraphQLUserManager_getConsentRequestFactory.set(this, new GetConsentRequestFactory());
|
|
38
|
-
_GraphQLUserManager_createDataExportDirectDownloadUrlRequestFactory.set(this, new CreateDataExportDirectDownloadUrlRequestFactory());
|
|
39
37
|
_GraphQLUserManager_createVerificationUrlRequestFactory.set(this, new CreateVerificationUrlRequestFactory());
|
|
40
38
|
__classPrivateFieldSet(this, _GraphQLUserManager_sdk, sdk, "f");
|
|
41
39
|
__classPrivateFieldSet(this, _GraphQLUserManager_logger, loggerProvider.getLogger("GraphQLUserManager"), "f");
|
|
@@ -78,7 +76,8 @@ export class GraphQLUserManager extends GraphQLManager {
|
|
|
78
76
|
return result.intoFailure();
|
|
79
77
|
}
|
|
80
78
|
__classPrivateFieldGet(this, _GraphQLUserManager_logger, "f").info("updateUserProfile success");
|
|
81
|
-
return BWellTransactionResult.success(result.data()
|
|
79
|
+
return BWellTransactionResult.success(result.data()
|
|
80
|
+
.updateUserProfile);
|
|
82
81
|
});
|
|
83
82
|
}
|
|
84
83
|
getConsents(request) {
|
|
@@ -101,14 +100,14 @@ export class GraphQLUserManager extends GraphQLManager {
|
|
|
101
100
|
else {
|
|
102
101
|
__classPrivateFieldGet(this, _GraphQLUserManager_logger, "f").info("successfully called consent search query");
|
|
103
102
|
}
|
|
104
|
-
return new BWellQueryResult((_a = result.data) === null || _a === void 0 ? void 0 : _a.
|
|
103
|
+
return new BWellQueryResult((_a = result.data) === null || _a === void 0 ? void 0 : _a.consents, result.error);
|
|
105
104
|
});
|
|
106
105
|
}
|
|
107
106
|
createConsent(request) {
|
|
108
107
|
return __awaiter(this, void 0, void 0, function* () {
|
|
109
108
|
const validationResult = request.validate();
|
|
110
109
|
if (validationResult.failure()) {
|
|
111
|
-
return validationResult;
|
|
110
|
+
return validationResult.intoFailure();
|
|
112
111
|
}
|
|
113
112
|
__classPrivateFieldGet(this, _GraphQLUserManager_logger, "f").verbose("calling createConsent mutation...");
|
|
114
113
|
const result = yield this.handleTransaction(__classPrivateFieldGet(this, _GraphQLUserManager_sdk, "f").createConsent(__classPrivateFieldGet(this, _GraphQLUserManager_createConsentRequestFactory, "f").create(request)));
|
|
@@ -118,7 +117,8 @@ export class GraphQLUserManager extends GraphQLManager {
|
|
|
118
117
|
return result.intoFailure();
|
|
119
118
|
}
|
|
120
119
|
__classPrivateFieldGet(this, _GraphQLUserManager_logger, "f").info("createConsent mutation success");
|
|
121
|
-
return BWellTransactionResult.success(result.data()
|
|
120
|
+
return BWellTransactionResult.success(result.data()
|
|
121
|
+
.createConsent);
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
createDataExportDirectDownloadUrl(request) {
|
|
@@ -128,7 +128,7 @@ export class GraphQLUserManager extends GraphQLManager {
|
|
|
128
128
|
return validationResult;
|
|
129
129
|
}
|
|
130
130
|
__classPrivateFieldGet(this, _GraphQLUserManager_logger, "f").verbose("calling createDataExportDirectDownloadUrl mutation...");
|
|
131
|
-
const result = yield this.handleTransaction(__classPrivateFieldGet(this, _GraphQLUserManager_sdk, "f").CreateDataExportDirectDownloadUrl(
|
|
131
|
+
const result = yield this.handleTransaction(__classPrivateFieldGet(this, _GraphQLUserManager_sdk, "f").CreateDataExportDirectDownloadUrl(request.data()));
|
|
132
132
|
__classPrivateFieldGet(this, _GraphQLUserManager_logger, "f").verbose("createDataExportDirectDownloadUrl mutation complete");
|
|
133
133
|
if (result.failure()) {
|
|
134
134
|
__classPrivateFieldGet(this, _GraphQLUserManager_logger, "f").error("createDataExportDirectDownloadUrl mutation error", result);
|
|
@@ -148,7 +148,8 @@ export class GraphQLUserManager extends GraphQLManager {
|
|
|
148
148
|
return result.intoFailure();
|
|
149
149
|
}
|
|
150
150
|
__classPrivateFieldGet(this, _GraphQLUserManager_logger, "f").info("createVerificationUrl success");
|
|
151
|
-
return BWellTransactionResult.success(result.data()
|
|
151
|
+
return BWellTransactionResult.success(result.data()
|
|
152
|
+
.createVerificationUrl);
|
|
152
153
|
});
|
|
153
154
|
}
|
|
154
155
|
getVerificationStatus() {
|
|
@@ -165,4 +166,4 @@ export class GraphQLUserManager extends GraphQLManager {
|
|
|
165
166
|
});
|
|
166
167
|
}
|
|
167
168
|
}
|
|
168
|
-
_GraphQLUserManager_sdk = new WeakMap(), _GraphQLUserManager_logger = new WeakMap(), _GraphQLUserManager_createConsentRequestFactory = new WeakMap(), _GraphQLUserManager_updateProfileRequestFactory = new WeakMap(), _GraphQLUserManager_getConsentRequestFactory = new WeakMap(),
|
|
169
|
+
_GraphQLUserManager_sdk = new WeakMap(), _GraphQLUserManager_logger = new WeakMap(), _GraphQLUserManager_createConsentRequestFactory = new WeakMap(), _GraphQLUserManager_updateProfileRequestFactory = new WeakMap(), _GraphQLUserManager_getConsentRequestFactory = new WeakMap(), _GraphQLUserManager_createVerificationUrlRequestFactory = new WeakMap();
|
|
@@ -4,7 +4,6 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _UpdateProfileRequestFactory_instances, _UpdateProfileRequestFactory_transformScalarInput, _UpdateProfileRequestFactory_transformNameInput, _UpdateProfileRequestFactory_transformAddressInput, _UpdateProfileRequestFactory_transformGenderInput, _UpdateProfileRequestFactory_transformTelecomInput;
|
|
7
|
-
import { FhirPersonResourceType, } from "../../../graphql/schema.js";
|
|
8
7
|
import { isNotNullOrUndefined, isUndefined } from "../../../utils/index.js";
|
|
9
8
|
export class UpdateProfileRequestFactory {
|
|
10
9
|
constructor() {
|
|
@@ -13,7 +12,7 @@ export class UpdateProfileRequestFactory {
|
|
|
13
12
|
create(request) {
|
|
14
13
|
const input = request.data();
|
|
15
14
|
const data = {
|
|
16
|
-
resourceType:
|
|
15
|
+
resourceType: "Person",
|
|
17
16
|
};
|
|
18
17
|
__classPrivateFieldGet(this, _UpdateProfileRequestFactory_instances, "m", _UpdateProfileRequestFactory_transformScalarInput).call(this, "id", input.id, data);
|
|
19
18
|
__classPrivateFieldGet(this, _UpdateProfileRequestFactory_instances, "m", _UpdateProfileRequestFactory_transformScalarInput).call(this, "birthDate", input.birthDate, data);
|
|
@@ -2,7 +2,7 @@ import { graphQLSDKFactory } from "./graphql-api/graphql-sdk/index.js";
|
|
|
2
2
|
import { GraphQLIdentityManager } from "./graphql-api/identity/index.js";
|
|
3
3
|
export class IdentityManagerFactory {
|
|
4
4
|
createIdentityManager(config, loggerProvider) {
|
|
5
|
-
const { sdk } = graphQLSDKFactory(config.graphQL.
|
|
5
|
+
const { sdk } = graphQLSDKFactory(config.graphQL.apiUrl);
|
|
6
6
|
return new GraphQLIdentityManager(sdk, loggerProvider);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IdentityManager } from "../api/base/identity/index.js";
|
|
2
2
|
import { SdkConfig } from "../config/index.js";
|
|
3
3
|
import { LoggerProvider } from "../logger/index.js";
|
|
4
|
+
import { AuthTokens } from "../models/identity/index.js";
|
|
4
5
|
import { BWellTransactionResult } from "../results/index.js";
|
|
5
6
|
import { AuthenticateErrors, AuthStrategy } from "./auth-strategy.js";
|
|
6
7
|
import { Credentials } from "./credentials.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BaseManagerError } from "../api/base/errors.js";
|
|
2
|
-
import type { AuthTokens } from "../api/base/identity/index.js";
|
|
3
2
|
import type { InvalidCredentialsTypeError } from "../errors/index.js";
|
|
3
|
+
import type { AuthTokens } from "../models/identity/auth-tokens.js";
|
|
4
4
|
import type { BWellTransactionResult } from "../results/index.js";
|
|
5
5
|
import type { Credentials } from "./credentials.js";
|
|
6
6
|
export type AuthenticateErrors = InvalidCredentialsTypeError | BaseManagerError;
|
package/dist/auth/credentials.js
CHANGED
|
@@ -7,9 +7,9 @@ export function isOauthCredentials(credentials) {
|
|
|
7
7
|
return "token" in credentials && hasOnlyKeys(credentials, ["token"]);
|
|
8
8
|
}
|
|
9
9
|
export function isUserPassCredentials(credentials) {
|
|
10
|
-
return ("
|
|
10
|
+
return ("username" in credentials &&
|
|
11
11
|
"password" in credentials &&
|
|
12
|
-
hasOnlyKeys(credentials, ["
|
|
12
|
+
hasOnlyKeys(credentials, ["username", "password"]));
|
|
13
13
|
}
|
|
14
14
|
export function isAuthCodeCredentials(credentials) {
|
|
15
15
|
return "authCode" in credentials && hasOnlyKeys(credentials, ["authCode"]);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IdentityManager } from "../api/base/identity/index.js";
|
|
2
2
|
import { SdkConfig } from "../config/index.js";
|
|
3
3
|
import { LoggerProvider } from "../logger/index.js";
|
|
4
|
+
import { AuthTokens } from "../models/identity/index.js";
|
|
4
5
|
import { BWellTransactionResult } from "../results/index.js";
|
|
5
6
|
import { AuthenticateErrors, AuthStrategy } from "./auth-strategy.js";
|
|
6
7
|
import { Credentials } from "./credentials.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IdentityManager } from "../api/base/identity/identity-manager.js";
|
|
2
2
|
import { SdkConfig } from "../config/index.js";
|
|
3
3
|
import { LoggerProvider } from "../logger/index.js";
|
|
4
|
+
import { AuthTokens } from "../models/identity/index.js";
|
|
4
5
|
import { BWellTransactionResult } from "../results/index.js";
|
|
5
6
|
import { AuthStrategy } from "./auth-strategy.js";
|
|
6
7
|
import type { AuthenticateErrors } from "./auth-strategy.js";
|
|
@@ -41,10 +41,10 @@ export class UsernamePasswordStrategy {
|
|
|
41
41
|
__classPrivateFieldGet(this, _UsernamePasswordStrategy_logger, "f").verbose("authenticating via UsernamePassword strategy...");
|
|
42
42
|
const authResults = yield __classPrivateFieldGet(this, _UsernamePasswordStrategy_identityManager, "f").authenticateWithUsernamePassword({
|
|
43
43
|
clientKey: __classPrivateFieldGet(this, _UsernamePasswordStrategy_sdkConfig, "f").context.clientKey,
|
|
44
|
-
|
|
44
|
+
username: credentials.username,
|
|
45
45
|
password: credentials.password,
|
|
46
46
|
});
|
|
47
|
-
__classPrivateFieldGet(this, _UsernamePasswordStrategy_logger, "f").verbose("finished
|
|
47
|
+
__classPrivateFieldGet(this, _UsernamePasswordStrategy_logger, "f").verbose("finished via UsernamePassword authentication");
|
|
48
48
|
return authResults;
|
|
49
49
|
});
|
|
50
50
|
}
|
|
@@ -1,100 +1,371 @@
|
|
|
1
|
-
import type { ActivityManager } from "../api/base/activity/activity-manager.js";
|
|
2
|
-
import type { ConnectionManager } from "../api/base/connection/connection-manager.js";
|
|
3
|
-
import type { DeviceManager } from "../api/base/device/device-manager.js";
|
|
4
1
|
import { BaseManagerError } from "../api/base/errors.js";
|
|
5
|
-
import
|
|
6
|
-
import type { FinancialManager } from "../api/base/financial/financial-manager.js";
|
|
7
|
-
import type { HealthManager } from "../api/base/health-data/health-manager.js";
|
|
8
|
-
import type { AuthTokens, CreateGuestAccessTokenResults } from "../api/base/identity/index.js";
|
|
9
|
-
import { QuestionnaireManager } from "../api/base/questionnaire/questionnaire-manager.js";
|
|
10
|
-
import type { SearchManager } from "../api/base/search/search-manager.js";
|
|
11
|
-
import type { SupportManager } from "../api/base/support/support-manager.js";
|
|
12
|
-
import type { UserManager } from "../api/base/user/user-manager.js";
|
|
13
|
-
import { HealthSpaceManager } from "../api/index.js";
|
|
2
|
+
import { HealthManager } from "../api/base/health-data/index.js";
|
|
14
3
|
import { type Credentials } from "../auth/index.js";
|
|
15
4
|
import { type BWellConfig } from "../config/index.js";
|
|
16
|
-
import { type AuthenticationError, type InvalidClientKeyError, type InvalidTokenError, type OperationOutcomeError } from "../errors/index.js";
|
|
5
|
+
import { BWellError, type AuthenticationError, type InvalidClientKeyError, type InvalidTokenError, type OperationOutcomeError } from "../errors/index.js";
|
|
6
|
+
import { ActivityManager, ConnectionManager, DeviceManager, FinancialManager, HealthSpaceManager, QuestionnaireManager, SearchManager, UserManager } from "../index.js";
|
|
7
|
+
import { type LanguageManager } from "../language/index.js";
|
|
8
|
+
import { AuthTokens, CreateGuestAccessTokenResults } from "../models/identity/index.js";
|
|
17
9
|
import { BWellTransactionResult } from "../results/index.js";
|
|
18
|
-
export { AuthTokens } from "../api/base/identity/index.js";
|
|
19
10
|
/**
|
|
20
|
-
*
|
|
11
|
+
* # b.well SDK
|
|
21
12
|
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
13
|
+
* The b.well SDK is the main entry point for interacting with the b.well Connected Health platform.
|
|
14
|
+
*
|
|
15
|
+
* Provides a comprehensive TypeScript/JavaScript interface with organized manager categories for:
|
|
16
|
+
* - Health data access (conditions, medications, labs, procedures)
|
|
17
|
+
* - User management (profiles, consent, identity verification)
|
|
18
|
+
* - Appointment management (scheduling, viewing, canceling)
|
|
19
|
+
* - Connection management (external healthcare providers)
|
|
20
|
+
* - Device management (push notifications, device registration)
|
|
21
|
+
* - Search operations (healthcare provider and resource discovery)
|
|
22
|
+
* - Questionnaire processing (dynamic forms and responses)
|
|
23
|
+
*
|
|
24
|
+
* ## Basic Usage
|
|
24
25
|
*
|
|
25
|
-
* @example
|
|
26
|
-
* Simple initialization with oauth authentication and only required config properties.
|
|
27
|
-
* Note that the SDK must be initialized and authenticated for most data accessx
|
|
28
|
-
* methods to work properly.
|
|
29
26
|
* ```typescript
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
27
|
+
* import { BWellSDK } from '@bwell/sdk';
|
|
28
|
+
*
|
|
29
|
+
* const sdk = new BWellSDK({ clientKey: "YOUR_CLIENT_KEY" });
|
|
30
|
+
* await sdk.initialize();
|
|
31
|
+
* await sdk.authenticate({ token: "YOUR_TOKEN" });
|
|
32
|
+
*
|
|
33
|
+
* // Access health data
|
|
34
|
+
* const conditions = await sdk.health.getConditions();
|
|
35
|
+
* const profile = await sdk.user.getProfile();
|
|
34
36
|
* ```
|
|
37
|
+
*
|
|
38
|
+
* @see {@link HealthManager} for health data operations
|
|
39
|
+
* @see {@link UserManager} for user management operations
|
|
40
|
+
* @see {@link HealthSpaceManager} for appointment management
|
|
41
|
+
* @see {@link ConnectionManager} for provider connections
|
|
42
|
+
* @see {@link DeviceManager} for device management operations
|
|
43
|
+
* @see {@link SearchManager} for search operations
|
|
44
|
+
* @see {@link QuestionnaireManager} for questionnaire processing
|
|
45
|
+
*
|
|
46
|
+
|
|
47
|
+
* @class BWellSDK
|
|
48
|
+
* @category Core
|
|
49
|
+
* @title BWellSDK
|
|
50
|
+
* @excerpt Main entry point for interacting with the b.well Connected Health platform
|
|
35
51
|
*/
|
|
36
52
|
export declare class BWellSDK {
|
|
37
53
|
#private;
|
|
38
54
|
constructor(config: BWellConfig);
|
|
39
55
|
/**
|
|
40
|
-
*
|
|
41
|
-
*
|
|
56
|
+
* ## Initialize SDK
|
|
57
|
+
*
|
|
58
|
+
* Initializes the SDK with the provided configuration. This method must be called
|
|
59
|
+
* before using any other SDK functionality.
|
|
60
|
+
*
|
|
61
|
+
* **Prerequisites:**
|
|
62
|
+
* - Valid `clientKey` must be provided in the constructor
|
|
63
|
+
* - Network connectivity to b.well services
|
|
64
|
+
*
|
|
65
|
+
* **Post-initialization:**
|
|
66
|
+
* - SDK configuration is validated and loaded
|
|
67
|
+
* - Base dependencies are initialized
|
|
68
|
+
* - Ready for authentication
|
|
69
|
+
*
|
|
70
|
+
* @returns {Promise<BWellTransactionResult<null, InvalidClientKeyError | OperationOutcomeError>>}
|
|
71
|
+
* A promise that resolves to a BWellTransactionResult with:
|
|
72
|
+
* - `null` data on success
|
|
73
|
+
* - `InvalidClientKeyError` if client credentials are invalid
|
|
74
|
+
* - `OperationOutcomeError` if server-side initialization fails
|
|
75
|
+
*
|
|
42
76
|
* @example
|
|
43
77
|
* ```typescript
|
|
44
78
|
* const sdk = new BWellSDK({
|
|
45
|
-
*
|
|
46
|
-
* clientSecret: "YOUR_CLIENT_SECRET",
|
|
79
|
+
* clientKey: "YOUR_CLIENT_KEY",
|
|
47
80
|
* });
|
|
48
81
|
*
|
|
49
|
-
* await sdk.initialize();
|
|
82
|
+
* const initResult = await sdk.initialize();
|
|
83
|
+
* if (initResult.success()) {
|
|
84
|
+
* console.log("SDK initialized successfully");
|
|
85
|
+
* } else {
|
|
86
|
+
* console.error("Failed to initialize SDK:", initResult.error().message);
|
|
87
|
+
* }
|
|
50
88
|
* ```
|
|
51
89
|
*/
|
|
52
90
|
initialize(): Promise<BWellTransactionResult<null, InvalidClientKeyError | OperationOutcomeError>>;
|
|
53
91
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
92
|
+
* ## Authenticate User
|
|
93
|
+
*
|
|
94
|
+
* Authenticates the user with the provided credentials and prepares the SDK for
|
|
95
|
+
* data access operations.
|
|
96
|
+
*
|
|
97
|
+
* **Prerequisites:**
|
|
98
|
+
* - SDK must be initialized via `initialize()`
|
|
99
|
+
* - Valid authentication credentials
|
|
100
|
+
*
|
|
101
|
+
* **Authentication Flow:**
|
|
102
|
+
* 1. Validates credentials with authentication strategy
|
|
103
|
+
* 2. Bootstraps authentication tokens
|
|
104
|
+
* 3. Initializes token management
|
|
105
|
+
* 4. Prepares API providers for authenticated requests
|
|
106
|
+
*
|
|
107
|
+
* **Supported Credential Types:**
|
|
108
|
+
* - Token-based authentication
|
|
109
|
+
* - OAuth credentials (depending on configuration)
|
|
110
|
+
*
|
|
111
|
+
* @param {Credentials} credentials - The credentials to be used for authentication
|
|
112
|
+
* @returns {Promise<BWellTransactionResult<null, AuthenticationError | InvalidTokenError>>}
|
|
113
|
+
* A promise that resolves to a BWellTransactionResult with:
|
|
114
|
+
* - `null` data on success
|
|
115
|
+
* - `AuthenticationError` if authentication fails
|
|
116
|
+
* - `InvalidTokenError` if provided tokens are invalid
|
|
117
|
+
*
|
|
57
118
|
* @example
|
|
58
119
|
* ```typescript
|
|
59
120
|
* const sdk = new BWellSDK({
|
|
60
|
-
*
|
|
61
|
-
* clientSecret: "YOUR_CLIENT_SECRET",
|
|
121
|
+
* clientKey: "YOUR_CLIENT_KEY",
|
|
62
122
|
* });
|
|
63
123
|
*
|
|
64
124
|
* await sdk.initialize();
|
|
65
125
|
*
|
|
66
|
-
* await sdk.authenticate({
|
|
67
|
-
* token: "
|
|
126
|
+
* const authResult = await sdk.authenticate({
|
|
127
|
+
* token: "YOUR_ACCESS_TOKEN",
|
|
68
128
|
* });
|
|
129
|
+
*
|
|
130
|
+
* if (authResult.success()) {
|
|
131
|
+
* console.log("Authentication successful");
|
|
132
|
+
* // Now you can use all SDK functionality
|
|
133
|
+
* const profile = await sdk.user.getProfile();
|
|
134
|
+
* } else {
|
|
135
|
+
* console.error("Authentication failed:", authResult.error().message);
|
|
136
|
+
* }
|
|
69
137
|
* ```
|
|
70
138
|
*/
|
|
71
139
|
authenticate(credentials: Credentials): Promise<BWellTransactionResult<null, AuthenticationError | InvalidTokenError>>;
|
|
72
140
|
/**
|
|
73
|
-
*
|
|
74
|
-
*
|
|
141
|
+
* ## Set Authentication Tokens
|
|
142
|
+
*
|
|
143
|
+
* Sets auth tokens for a pre-authenticated user. This method performs token validation
|
|
144
|
+
* and can be used in place of `authenticate()` when tokens are obtained through
|
|
145
|
+
* external means.
|
|
146
|
+
*
|
|
147
|
+
* **Use Cases:**
|
|
148
|
+
* - Integration with existing authentication systems
|
|
149
|
+
* - Server-side token management
|
|
150
|
+
* - Custom authentication flows
|
|
75
151
|
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
152
|
+
* **Token Validation:**
|
|
153
|
+
* - Validates token format and structure
|
|
154
|
+
* - Parses user information from ID token
|
|
155
|
+
* - Initializes token refresh mechanisms
|
|
156
|
+
*
|
|
157
|
+
* @param {AuthTokens} authTokens - Auth tokens for pre-authenticated user containing:
|
|
158
|
+
* - `accessToken` - Access token for API requests
|
|
159
|
+
* - `idToken` - ID token containing user information
|
|
160
|
+
* - `refreshToken` - Refresh token for token renewal
|
|
78
161
|
*
|
|
79
|
-
* @param {AuthTokens} authTokens - Auth tokens for pre-authenticated user
|
|
80
162
|
* @returns {Promise<BWellTransactionResult<null, OperationOutcomeError | InvalidTokenError>>}
|
|
163
|
+
* A promise that resolves to a BWellTransactionResult with:
|
|
164
|
+
* - `null` data on success
|
|
165
|
+
* - `OperationOutcomeError` if server-side validation fails
|
|
166
|
+
* - `InvalidTokenError` if provided tokens are invalid or expired
|
|
167
|
+
*
|
|
168
|
+
* @example
|
|
169
|
+
* ```typescript
|
|
170
|
+
* const sdk = new BWellSDK({
|
|
171
|
+
* clientKey: "YOUR_CLIENT_KEY",
|
|
172
|
+
* });
|
|
173
|
+
*
|
|
174
|
+
* await sdk.initialize();
|
|
175
|
+
*
|
|
176
|
+
* // Use tokens obtained from external authentication
|
|
177
|
+
* const tokenResult = await sdk.setAuthTokens({
|
|
178
|
+
* accessToken: "your-access-token",
|
|
179
|
+
* idToken: "your-id-token",
|
|
180
|
+
* refreshToken: "your-refresh-token"
|
|
181
|
+
* });
|
|
182
|
+
*
|
|
183
|
+
* if (tokenResult.success()) {
|
|
184
|
+
* console.log("Tokens set successfully");
|
|
185
|
+
* // SDK is now ready for use
|
|
186
|
+
* }
|
|
187
|
+
* ```
|
|
81
188
|
*/
|
|
82
189
|
setAuthTokens(authTokens: AuthTokens): Promise<BWellTransactionResult<null, OperationOutcomeError | InvalidTokenError>>;
|
|
83
190
|
/**
|
|
84
|
-
*
|
|
85
|
-
*
|
|
191
|
+
* ## Authenticate From Storage
|
|
192
|
+
*
|
|
193
|
+
* Authenticates the user using tokens previously stored in the configured token storage.
|
|
194
|
+
* This method provides a convenient way to restore user sessions without requiring
|
|
195
|
+
* manual credential input.
|
|
196
|
+
*
|
|
197
|
+
* **Prerequisites:**
|
|
198
|
+
* - SDK must be initialized via `initialize()`
|
|
199
|
+
* - `tokenStorage` must be configured in the BWell config
|
|
200
|
+
* - Valid tokens must exist in the configured storage
|
|
201
|
+
*
|
|
202
|
+
* **Authentication Flow:**
|
|
203
|
+
* 1. Loads tokens from the configured token storage
|
|
204
|
+
* 2. Validates and bootstraps the loaded tokens
|
|
205
|
+
* 3. Refreshes access token to ensure validity
|
|
206
|
+
* 4. Prepares API providers for authenticated requests
|
|
207
|
+
*
|
|
208
|
+
* **Storage Integration:**
|
|
209
|
+
* - Supports various storage backends (localStorage, secure storage, etc.)
|
|
210
|
+
* - Handles storage errors gracefully
|
|
211
|
+
* - Automatically validates token integrity
|
|
212
|
+
*
|
|
213
|
+
* @returns {Promise<BWellTransactionResult<null, AuthenticationError | InvalidTokenError | BWellError>>}
|
|
214
|
+
* A promise that resolves to a BWellTransactionResult with:
|
|
215
|
+
* - `null` data on success
|
|
216
|
+
* - `AuthenticationError` if authentication process fails
|
|
217
|
+
* - `InvalidTokenError` if stored tokens are invalid or expired
|
|
218
|
+
* - `BWellError` if token storage is not configured
|
|
219
|
+
*
|
|
220
|
+
* @example
|
|
221
|
+
* ```typescript
|
|
222
|
+
* const sdk = new BWellSDK({
|
|
223
|
+
* clientKey: "YOUR_CLIENT_KEY",
|
|
224
|
+
* tokenStorage: new LocalStorageTokenStorage() // or your storage implementation
|
|
225
|
+
* });
|
|
226
|
+
*
|
|
227
|
+
* await sdk.initialize();
|
|
228
|
+
*
|
|
229
|
+
* // Attempt to authenticate from stored tokens
|
|
230
|
+
* const authResult = await sdk.authenticateFromStorage();
|
|
231
|
+
*
|
|
232
|
+
* if (authResult.success()) {
|
|
233
|
+
* console.log("Authentication from storage successful");
|
|
234
|
+
* // SDK is ready for use with restored session
|
|
235
|
+
* const profile = await sdk.user.getProfile();
|
|
236
|
+
* } else {
|
|
237
|
+
* console.error("Authentication from storage failed:", authResult.error().message);
|
|
238
|
+
* // Fall back to manual authentication
|
|
239
|
+
* await sdk.authenticate({ token: "USER_PROVIDED_TOKEN" });
|
|
240
|
+
* }
|
|
241
|
+
* ```
|
|
242
|
+
*/
|
|
243
|
+
authenticateFromStorage(): Promise<BWellTransactionResult<null, AuthenticationError | InvalidTokenError | BWellError>>;
|
|
244
|
+
/**
|
|
245
|
+
* ## Create Guest Access Token
|
|
246
|
+
*
|
|
247
|
+
* Creates a guest access token that allows limited, anonymous access to certain
|
|
248
|
+
* b.well platform features without requiring user authentication. Guest tokens
|
|
249
|
+
* provide restricted access to public resources and non-sensitive operations.
|
|
250
|
+
*
|
|
251
|
+
* **Prerequisites:**
|
|
252
|
+
* - SDK must be initialized via `initialize()`
|
|
253
|
+
* - Valid client key must be configured
|
|
254
|
+
* - Client must have guest access permissions enabled
|
|
255
|
+
*
|
|
256
|
+
* **Guest Access Capabilities:**
|
|
257
|
+
* - Access to public health resources
|
|
258
|
+
* - Limited questionnaire functionality
|
|
259
|
+
* - Anonymous data queries (where permitted)
|
|
260
|
+
* - Public provider directory access
|
|
261
|
+
*
|
|
262
|
+
* **Limitations:**
|
|
263
|
+
* - No access to personal health records
|
|
264
|
+
* - Cannot perform user-specific operations
|
|
265
|
+
* - Limited to read-only operations on public data
|
|
266
|
+
* - Tokens have shorter expiration times
|
|
267
|
+
*
|
|
268
|
+
* @returns {Promise<BWellTransactionResult<CreateGuestAccessTokenResults, BaseManagerError>>}
|
|
269
|
+
* A promise that resolves to a BWellTransactionResult with:
|
|
270
|
+
* - `CreateGuestAccessTokenResults` containing the guest access token and metadata
|
|
271
|
+
* - `BaseManagerError` if token creation fails due to client configuration or server issues
|
|
272
|
+
*
|
|
273
|
+
* @example
|
|
274
|
+
* ```typescript
|
|
275
|
+
* const sdk = new BWellSDK({
|
|
276
|
+
* clientKey: "YOUR_CLIENT_KEY",
|
|
277
|
+
* });
|
|
278
|
+
*
|
|
279
|
+
* await sdk.initialize();
|
|
280
|
+
*
|
|
281
|
+
* // Create a guest access token for anonymous access
|
|
282
|
+
* const guestTokenResult = await sdk.createGuestAccessToken();
|
|
283
|
+
*
|
|
284
|
+
* if (guestTokenResult.success()) {
|
|
285
|
+
* const guestToken = guestTokenResult.data();
|
|
286
|
+
* console.log("Guest token created:", guestToken.accessToken);
|
|
287
|
+
*
|
|
288
|
+
* // Use the guest token for limited operations
|
|
289
|
+
* // Note: This doesn't automatically authenticate the SDK
|
|
290
|
+
* // You may need to use setAuthTokens() with appropriate tokens
|
|
291
|
+
* } else {
|
|
292
|
+
* console.error("Failed to create guest token:", guestTokenResult.error().message);
|
|
293
|
+
* }
|
|
294
|
+
* ```
|
|
86
295
|
*/
|
|
87
296
|
createGuestAccessToken(): Promise<BWellTransactionResult<CreateGuestAccessTokenResults, BaseManagerError>>;
|
|
297
|
+
/**
|
|
298
|
+
* Financial manager for insurance coverage and financial data access.
|
|
299
|
+
*
|
|
300
|
+
* @see {@link FinancialManager} - Complete financial data operations and examples
|
|
301
|
+
* @returns {FinancialManager} The financial manager instance
|
|
302
|
+
* @category Managers
|
|
303
|
+
*/
|
|
304
|
+
get financial(): FinancialManager;
|
|
305
|
+
/**
|
|
306
|
+
* Health data manager for patient health records and clinical data access.
|
|
307
|
+
*
|
|
308
|
+
* @see {@link HealthManager} - Complete health data operations and examples
|
|
309
|
+
* @returns {HealthManager} The health data manager instance
|
|
310
|
+
* @category Managers
|
|
311
|
+
*/
|
|
88
312
|
get health(): HealthManager;
|
|
313
|
+
/**
|
|
314
|
+
* Health space manager for appointments, scheduling, and healthcare facility management.
|
|
315
|
+
*
|
|
316
|
+
* @see {@link HealthSpaceManager} - Complete appointment management operations and examples
|
|
317
|
+
* @returns {HealthSpaceManager} The health space manager instance
|
|
318
|
+
* @category Managers
|
|
319
|
+
*/
|
|
89
320
|
get healthSpace(): HealthSpaceManager;
|
|
321
|
+
/**
|
|
322
|
+
* User manager for profile management, consent handling, and identity verification.
|
|
323
|
+
*
|
|
324
|
+
* @see {@link UserManager} - Complete user management operations and examples
|
|
325
|
+
* @returns {UserManager} The user manager instance
|
|
326
|
+
* @category Managers
|
|
327
|
+
*/
|
|
90
328
|
get user(): UserManager;
|
|
329
|
+
/**
|
|
330
|
+
* Connection manager for data source connections and OAuth management.
|
|
331
|
+
*
|
|
332
|
+
* @see {@link ConnectionManager} - Complete connection management operations and examples
|
|
333
|
+
* @returns {ConnectionManager} The connection manager instance
|
|
334
|
+
* @category Managers
|
|
335
|
+
*/
|
|
91
336
|
get connection(): ConnectionManager;
|
|
92
337
|
get activity(): ActivityManager;
|
|
338
|
+
/**
|
|
339
|
+
* Device manager for push notification registration and device management.
|
|
340
|
+
*
|
|
341
|
+
* @see {@link DeviceManager} - Complete device management operations and examples
|
|
342
|
+
* @returns {DeviceManager} The device manager instance
|
|
343
|
+
* @category Managers
|
|
344
|
+
*/
|
|
93
345
|
get device(): DeviceManager;
|
|
94
|
-
|
|
346
|
+
/**
|
|
347
|
+
* Search manager for healthcare provider and resource discovery.
|
|
348
|
+
*
|
|
349
|
+
* @see {@link SearchManager} - Complete search operations and examples
|
|
350
|
+
* @returns {SearchManager} The search manager instance
|
|
351
|
+
* @category Managers
|
|
352
|
+
*/
|
|
95
353
|
get search(): SearchManager;
|
|
96
|
-
|
|
97
|
-
|
|
354
|
+
/**
|
|
355
|
+
* Language manager for language and localization utilities.
|
|
356
|
+
*
|
|
357
|
+
* @see {@link LanguageManager} - Complete language and localization operations
|
|
358
|
+
* @returns {LanguageManager} The language manager instance
|
|
359
|
+
* @category Managers
|
|
360
|
+
*/
|
|
361
|
+
get language(): LanguageManager;
|
|
362
|
+
/**
|
|
363
|
+
* Questionnaire manager for dynamic questionnaire processing and response handling.
|
|
364
|
+
*
|
|
365
|
+
* @experimental This manager and its methods are experimental and may change in future releases.
|
|
366
|
+
* @see {@link QuestionnaireManager} - Complete questionnaire processing operations and examples
|
|
367
|
+
* @returns {QuestionnaireManager} The questionnaire manager instance
|
|
368
|
+
* @category Managers
|
|
369
|
+
*/
|
|
98
370
|
get questionnaire(): QuestionnaireManager;
|
|
99
|
-
get support(): SupportManager;
|
|
100
371
|
}
|