@icanbwell/bwell-sdk-ts 1.54.0 → 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 -36
- 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/graphql-manager/graphql-manager.d.ts +1 -0
- 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 -10
- 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 -283
- package/dist/graphql/operations/index.js +1767 -2095
- package/dist/graphql/operations/types.d.ts +16471 -18430
- 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 +24 -20
- 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-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-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 -5
- package/dist/api/base/support/index.js +0 -5
- package/dist/api/base/support/support-manager.d.ts +0 -46
- 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-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-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 -22
- package/dist/api/graphql-api/support/graphql-support-manager.js +0 -129
- 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
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { HealthDataRequestInput, AllergyIntolerancesRequest, AllergyIntoleranceGroupsRequest, BinaryRequest, ConditionsRequest, ConditionGroupsRequest, DiagnosticReportsRequest, DocumentReferencesRequest, LabsRequest, LabGroupsRequest, CarePlansRequest, CarePlanGroupsRequest, CareTeamsRequest, EncountersRequest, EncounterGroupsRequest, ImmunizationsRequest, ImmunizationGroupsRequest, ProceduresRequest, ProcedureGroupsRequest, VitalSignsRequest, VitalSignGroupsRequest, MedicationDispenseRequest, MedicationRequestRequest, MedicationStatementsRequest, MedicationGroupsRequest, HealthDataRequest, DiagnosticReportLabGroupsRequest, } from "./health-data-request.js";
|
|
2
|
-
export { MedicationPricingRequest, MedicationPricingRequestInput, } from "./medication-pricing-request.js";
|
|
3
2
|
export { MedicationKnowledgeRequest, MedicationKnowledgeRequestInput, } from "./medication-knowledge-request.js";
|
|
4
3
|
export { LabKnowledgeRequest, LabKnowledgeRequestInput, } from "./lab-knowledge-request.js";
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
4
|
+
export { HealthManager } from "./health-manager.js";
|
|
5
|
+
export { HealthDataResponseFactory } from "./health-data-response-factory.js";
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
export { AllergyIntolerancesRequest, AllergyIntoleranceGroupsRequest, BinaryRequest, ConditionsRequest, ConditionGroupsRequest, DiagnosticReportsRequest, DocumentReferencesRequest, LabsRequest, LabGroupsRequest, CarePlansRequest, CarePlanGroupsRequest, CareTeamsRequest, EncountersRequest, EncounterGroupsRequest, ImmunizationsRequest, ImmunizationGroupsRequest, ProceduresRequest, ProcedureGroupsRequest, VitalSignsRequest, VitalSignGroupsRequest, MedicationDispenseRequest, MedicationRequestRequest, MedicationStatementsRequest, MedicationGroupsRequest, HealthDataRequest, DiagnosticReportLabGroupsRequest, } from "./health-data-request.js";
|
|
2
|
-
export { MedicationPricingRequest, } from "./medication-pricing-request.js";
|
|
3
2
|
export { MedicationKnowledgeRequest, } from "./medication-knowledge-request.js";
|
|
4
3
|
export { LabKnowledgeRequest, } from "./lab-knowledge-request.js";
|
|
5
|
-
export { UpdateMedicationStatementRequest, UpdateMedicationStatementStatus, } from "./medication-statement-request.js";
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { ErrorsCollector, PagedRequest, PagedRequestInput, PagedRequestValidator } from "../../../requests/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Input type for lab knowledge requests. Used to fetch knowledge about specific labs.
|
|
4
|
+
* @category Inputs
|
|
5
|
+
* @title LabKnowledgeRequestInput
|
|
6
|
+
* @excerpt Input for fetching lab knowledge by lab ID
|
|
7
|
+
*/
|
|
2
8
|
export type LabKnowledgeRequestInput = PagedRequestInput & {
|
|
3
9
|
labId: string;
|
|
4
10
|
};
|
|
@@ -15,6 +21,9 @@ export declare class LabKnowledgeRequestValidator extends PagedRequestValidator<
|
|
|
15
21
|
}
|
|
16
22
|
/**
|
|
17
23
|
* Request object for fetching lab knowledge data.
|
|
24
|
+
* @category Requests
|
|
25
|
+
* @title LabKnowledgeRequest
|
|
26
|
+
* @excerpt Request object for fetching lab knowledge data
|
|
18
27
|
*/
|
|
19
28
|
export declare class LabKnowledgeRequest extends PagedRequest<LabKnowledgeRequestInput> {
|
|
20
29
|
protected validator: LabKnowledgeRequestValidator;
|
|
@@ -18,6 +18,9 @@ export class LabKnowledgeRequestValidator extends PagedRequestValidator {
|
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Request object for fetching lab knowledge data.
|
|
21
|
+
* @category Requests
|
|
22
|
+
* @title LabKnowledgeRequest
|
|
23
|
+
* @excerpt Request object for fetching lab knowledge data
|
|
21
24
|
*/
|
|
22
25
|
export class LabKnowledgeRequest extends PagedRequest {
|
|
23
26
|
constructor() {
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { ErrorsCollector, PagedRequest, PagedRequestInput, PagedRequestValidator } from "../../../requests/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Input type for medication knowledge requests. Used to fetch knowledge about specific medications.
|
|
4
|
+
* @category Inputs
|
|
5
|
+
* @title MedicationKnowledgeRequestInput
|
|
6
|
+
* @excerpt Input for fetching medication knowledge by statement ID
|
|
7
|
+
*/
|
|
2
8
|
export type MedicationKnowledgeRequestInput = PagedRequestInput & {
|
|
3
9
|
medicationStatementId: string;
|
|
4
10
|
};
|
|
@@ -15,6 +21,9 @@ export declare class MedicationKnowledgeRequestValidator extends PagedRequestVal
|
|
|
15
21
|
}
|
|
16
22
|
/**
|
|
17
23
|
* Request object for fetching medication knowledge data.
|
|
24
|
+
* @category Requests
|
|
25
|
+
* @title MedicationKnowledgeRequest
|
|
26
|
+
* @excerpt Request object for fetching medication knowledge data
|
|
18
27
|
*/
|
|
19
28
|
export declare class MedicationKnowledgeRequest extends PagedRequest<MedicationKnowledgeRequestInput> {
|
|
20
29
|
protected validator: MedicationKnowledgeRequestValidator;
|
|
@@ -18,6 +18,9 @@ export class MedicationKnowledgeRequestValidator extends PagedRequestValidator {
|
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Request object for fetching medication knowledge data.
|
|
21
|
+
* @category Requests
|
|
22
|
+
* @title MedicationKnowledgeRequest
|
|
23
|
+
* @excerpt Request object for fetching medication knowledge data
|
|
21
24
|
*/
|
|
22
25
|
export class MedicationKnowledgeRequest extends PagedRequest {
|
|
23
26
|
constructor() {
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { SearchReference } from "../../../graphql/schema.js";
|
|
2
2
|
import { ErrorsCollector, ValidationRequest } from "../../../requests/index.js";
|
|
3
3
|
import { SearchDate, SearchString, SearchToken } from "../requests/index.js";
|
|
4
|
+
/**
|
|
5
|
+
* Input type for appointment requests. Used to specify filters and search criteria for appointments.
|
|
6
|
+
* @category Inputs
|
|
7
|
+
* @title AppointmentsRequestInput
|
|
8
|
+
* @excerpt Input for appointment searches with filters
|
|
9
|
+
*/
|
|
4
10
|
export type AppointmentsRequestInput = {
|
|
5
11
|
/**
|
|
6
12
|
* The source[s] of the appointments to search for
|
|
@@ -67,6 +73,9 @@ declare class AppointmentsRequestValidator {
|
|
|
67
73
|
* for appointment-related input data.
|
|
68
74
|
*
|
|
69
75
|
* @extends ValidationRequest<AppointmentsRequestInput>
|
|
76
|
+
* @category Requests
|
|
77
|
+
* @title AppointmentsRequest
|
|
78
|
+
* @excerpt Represents a request for appointments within the health space
|
|
70
79
|
*/
|
|
71
80
|
export declare class AppointmentsRequest extends ValidationRequest<AppointmentsRequestInput> {
|
|
72
81
|
protected validator: AppointmentsRequestValidator;
|
|
@@ -69,6 +69,9 @@ _AppointmentsRequestValidator_searchDateValidator = new WeakMap(), _Appointments
|
|
|
69
69
|
* for appointment-related input data.
|
|
70
70
|
*
|
|
71
71
|
* @extends ValidationRequest<AppointmentsRequestInput>
|
|
72
|
+
* @category Requests
|
|
73
|
+
* @title AppointmentsRequest
|
|
74
|
+
* @excerpt Represents a request for appointments within the health space
|
|
72
75
|
*/
|
|
73
76
|
export class AppointmentsRequest extends ValidationRequest {
|
|
74
77
|
constructor() {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { CodeableConcept, Scalars } from "../../../graphql/schema.js";
|
|
2
2
|
import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
|
|
3
3
|
/**
|
|
4
|
-
* Input type for canceling an appointment.
|
|
4
|
+
* Input type for canceling an appointment. Requires the appointment ID and optionally a cancellation reason.
|
|
5
|
+
* @category Inputs
|
|
6
|
+
* @title CancelAppointmentRequestInput
|
|
7
|
+
* @excerpt Input for canceling appointments with optional reason
|
|
5
8
|
* @property id - The unique identifier of the appointment to be canceled.
|
|
6
9
|
* @property cancelationReason - The reason for canceling the appointment (optional, FHIR CodeableConcept).
|
|
7
10
|
*/
|
|
@@ -42,6 +45,10 @@ declare class CancelAppointmentRequestValidator implements Validator<CancelAppoi
|
|
|
42
45
|
* Usage:
|
|
43
46
|
* const req = new CancelAppointmentRequest(input);
|
|
44
47
|
* const validation = req.validate();
|
|
48
|
+
*
|
|
49
|
+
* @category Requests
|
|
50
|
+
* @title CancelAppointmentRequest
|
|
51
|
+
* @excerpt Represents a request for canceling an appointment within the health space
|
|
45
52
|
*/
|
|
46
53
|
export declare class CancelAppointmentRequest extends ValidationRequest<CancelAppointmentRequestInput> {
|
|
47
54
|
/**
|
|
@@ -45,6 +45,10 @@ class CancelAppointmentRequestValidator {
|
|
|
45
45
|
* Usage:
|
|
46
46
|
* const req = new CancelAppointmentRequest(input);
|
|
47
47
|
* const validation = req.validate();
|
|
48
|
+
*
|
|
49
|
+
* @category Requests
|
|
50
|
+
* @title CancelAppointmentRequest
|
|
51
|
+
* @excerpt Represents a request for canceling an appointment within the health space
|
|
48
52
|
*/
|
|
49
53
|
export class CancelAppointmentRequest extends ValidationRequest {
|
|
50
54
|
constructor() {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SearchReference } from "../../../graphql/schema.js";
|
|
2
|
+
import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* Input type for fetching cancellation reasons. Requires organization reference to get applicable reasons.
|
|
5
|
+
* @category Inputs
|
|
6
|
+
* @title CancellationReasonsRequestInput
|
|
7
|
+
* @excerpt Input for fetching cancellation reasons by organization
|
|
8
|
+
*/
|
|
9
|
+
export type CancellationReasonsRequestInput = {
|
|
10
|
+
organization: SearchReference;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Validator for CancellationReasonsRequestInput.
|
|
14
|
+
* Ensures that organization is present and has a non-empty value.
|
|
15
|
+
*/
|
|
16
|
+
declare class CancellationReasonsRequestValidator implements Validator<CancellationReasonsRequestInput> {
|
|
17
|
+
validate(data: CancellationReasonsRequestInput, errors: ErrorsCollector): void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Request object for fetching cancellation reasons.
|
|
21
|
+
* @category Requests
|
|
22
|
+
* @title CancellationReasonsRequest
|
|
23
|
+
* @excerpt Request object for fetching cancellation reasons
|
|
24
|
+
*/
|
|
25
|
+
export declare class CancellationReasonsRequest extends ValidationRequest<CancellationReasonsRequestInput> {
|
|
26
|
+
protected validator: CancellationReasonsRequestValidator;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
package/dist/api/base/health-space/{cancelationReasons-request.js → cancellation-reasons-request.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ValidationRequest, } from "../../../requests/index.js";
|
|
2
2
|
import { isNullOrUndefinedOrEmptyString } from "../../../utils/type-utils.js";
|
|
3
3
|
/**
|
|
4
|
-
* Validator for
|
|
4
|
+
* Validator for CancellationReasonsRequestInput.
|
|
5
5
|
* Ensures that organization is present and has a non-empty value.
|
|
6
6
|
*/
|
|
7
|
-
class
|
|
7
|
+
class CancellationReasonsRequestValidator {
|
|
8
8
|
validate(data, errors) {
|
|
9
9
|
var _a;
|
|
10
10
|
if (isNullOrUndefinedOrEmptyString((_a = data.organization.value) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
@@ -12,9 +12,15 @@ class CancelationReasonsRequestValidator {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Request object for fetching cancellation reasons.
|
|
17
|
+
* @category Requests
|
|
18
|
+
* @title CancellationReasonsRequest
|
|
19
|
+
* @excerpt Request object for fetching cancellation reasons
|
|
20
|
+
*/
|
|
21
|
+
export class CancellationReasonsRequest extends ValidationRequest {
|
|
16
22
|
constructor() {
|
|
17
23
|
super(...arguments);
|
|
18
|
-
this.validator = new
|
|
24
|
+
this.validator = new CancellationReasonsRequestValidator();
|
|
19
25
|
}
|
|
20
26
|
}
|
|
@@ -1,145 +1,58 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AppointmentBundle, AppointmentUpdate, CancellationReasons } from "../../../models/health-space/index.js";
|
|
2
2
|
import { BWellQueryResult, BWellTransactionResult } from "../../../results/index.js";
|
|
3
3
|
import { BaseManagerError } from "../errors.js";
|
|
4
|
-
import { AddCareTeamMemberRequest } from "./add-care-team-member-request.js";
|
|
5
|
-
import { AddCareTeamMembersRequest } from "./add-care-team-members-request.js";
|
|
6
4
|
import { AppointmentsRequest } from "./appointments-request.js";
|
|
7
5
|
import { CancelAppointmentRequest } from "./cancel-appointment-request.js";
|
|
8
|
-
import {
|
|
9
|
-
import { CareTeamMembersRequest } from "./care-team-members-request.js";
|
|
10
|
-
import { RemoveCareTeamMemberRequest } from "./remove-care-team-member-request.js";
|
|
11
|
-
import { UpdateCareTeamMemberRequest } from "./update-care-team-member-request.js";
|
|
12
|
-
export type AppointmentsResults = AppointmentsQueryResults["appointments"];
|
|
13
|
-
export type CancelAppointmentResults = CancelAppointmentMutationResults["updateAppointment"];
|
|
14
|
-
export type CancelationReasonsResults = CancelationReasonsQueryResults["cancelationReasons"];
|
|
15
|
-
export type CareTeamMembersResults = CareTeamMembersQueryResults["careTeamMembers"];
|
|
6
|
+
import { CancellationReasonsRequest } from "./cancellation-reasons-request.js";
|
|
16
7
|
/**
|
|
17
|
-
*
|
|
8
|
+
* Health Space Manager for appointments, scheduling, and healthcare facility management.
|
|
9
|
+
* Provides methods for managing appointments and cancelation handling.
|
|
10
|
+
* @title HealthSpaceManager
|
|
11
|
+
* @excerpt Health Space Manager for appointments, scheduling, and healthcare facility management
|
|
12
|
+
* @category Managers
|
|
18
13
|
*/
|
|
19
14
|
export interface HealthSpaceManager {
|
|
20
15
|
/**
|
|
21
|
-
* Retrieves appointment information
|
|
22
|
-
*
|
|
23
|
-
* @param request - The request object containing parameters for fetching appointments.
|
|
24
|
-
* @returns A promise that resolves to a `BWellQueryResult` containing the appointment results
|
|
25
|
-
* or an error of type `BaseManagerError`.
|
|
26
|
-
*/
|
|
27
|
-
getAppointments(request: AppointmentsRequest): Promise<BWellQueryResult<AppointmentsResults, BaseManagerError>>;
|
|
28
|
-
/**
|
|
29
|
-
* Cancels an appointment based on the provided request.
|
|
30
|
-
*
|
|
31
|
-
* @param request - The request object containing parameters for canceling an appointment.
|
|
32
|
-
* @returns A promise that resolves to a `BWellQueryResult` containing the result of canceling
|
|
33
|
-
* the appointment or an error of type `BaseManagerError`.
|
|
34
|
-
*/
|
|
35
|
-
cancelAppointment(request: CancelAppointmentRequest): Promise<BWellTransactionResult<CancelAppointmentResults, BaseManagerError>>;
|
|
36
|
-
/**
|
|
37
|
-
* Retrieves cancelation reasons based on the provided request.
|
|
38
|
-
*
|
|
39
|
-
* @param request - The request object containing parameters for fetching cancelation reasons.
|
|
40
|
-
* @returns A promise that resolves to a `BWellQueryResult` containing the cancelation reasons results
|
|
41
|
-
* or an error of type `BaseManagerError`.
|
|
42
|
-
*/
|
|
43
|
-
getCancelationReasons(request: CancelationReasonsRequest): Promise<BWellQueryResult<CancelationReasonsResults, BaseManagerError>>;
|
|
44
|
-
/**
|
|
45
|
-
* Adds a single care team member to a care team.
|
|
46
|
-
*
|
|
47
|
-
* @param request - AddCareTeamMemberRequest with id, type, and role (string array)
|
|
48
|
-
* @returns Promise resolving to mutation result with updated CareTeam resource
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* ```typescript
|
|
52
|
-
* const result = await sdk.healthSpace.addCareTeamMember(
|
|
53
|
-
* new AddCareTeamMemberRequest({
|
|
54
|
-
* id: "practitioner-123",
|
|
55
|
-
* type: "Practitioner",
|
|
56
|
-
* role: ["Primary care physician"]
|
|
57
|
-
* })
|
|
58
|
-
* );
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
addCareTeamMember(request: AddCareTeamMemberRequest): Promise<BWellTransactionResult<AddCareTeamMemberMutationResults, BaseManagerError>>;
|
|
62
|
-
/**
|
|
63
|
-
* Adds multiple care team members in a single operation.
|
|
64
|
-
*
|
|
65
|
-
* @param request - AddCareTeamMembersRequest with members array (each with id, type, and role)
|
|
66
|
-
* @returns Promise resolving to array of mutation results with updated CareTeam resources
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* ```typescript
|
|
70
|
-
* const result = await sdk.healthSpace.addCareTeamMembers(
|
|
71
|
-
* new AddCareTeamMembersRequest({
|
|
72
|
-
* members: [
|
|
73
|
-
* {
|
|
74
|
-
* id: "practitioner-123",
|
|
75
|
-
* type: "Practitioner",
|
|
76
|
-
* role: ["Primary care physician"]
|
|
77
|
-
* },
|
|
78
|
-
* {
|
|
79
|
-
* id: "nurse-456",
|
|
80
|
-
* type: "Practitioner",
|
|
81
|
-
* role: ["Registered Nurse"]
|
|
82
|
-
* }
|
|
83
|
-
* ]
|
|
84
|
-
* })
|
|
85
|
-
* );
|
|
86
|
-
* ```
|
|
87
|
-
*/
|
|
88
|
-
addCareTeamMembers(request: AddCareTeamMembersRequest): Promise<BWellTransactionResult<AddCareTeamMembersMutationResults, BaseManagerError>>;
|
|
89
|
-
/**
|
|
90
|
-
* Removes a care team member from a care team.
|
|
91
|
-
*
|
|
92
|
-
* @param request - RemoveCareTeamMemberRequest with id and type
|
|
93
|
-
* @returns Promise resolving to mutation result with updated CareTeam resource
|
|
94
|
-
*
|
|
16
|
+
* Retrieves appointment information for the user.
|
|
17
|
+
* Gets scheduled appointments based on search criteria.
|
|
95
18
|
* @example
|
|
96
19
|
* ```typescript
|
|
97
|
-
* const
|
|
98
|
-
* new
|
|
99
|
-
*
|
|
100
|
-
* type: "Practitioner",
|
|
20
|
+
* const appointments = await sdk.healthSpace.getAppointments(
|
|
21
|
+
* new AppointmentsRequest({
|
|
22
|
+
* date: { value: '2024-01-01', prefix: 'ge' }
|
|
101
23
|
* })
|
|
102
24
|
* );
|
|
103
25
|
* ```
|
|
104
26
|
*/
|
|
105
|
-
|
|
27
|
+
getAppointments(request: AppointmentsRequest): Promise<BWellQueryResult<AppointmentBundle, BaseManagerError>>;
|
|
106
28
|
/**
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
* @param request - UpdateCareTeamMemberRequest with id, type, and role (string array)
|
|
111
|
-
* @returns Promise resolving to mutation result with updated CareTeam resource
|
|
112
|
-
*
|
|
29
|
+
* Cancels an existing appointment.
|
|
30
|
+
* Marks an appointment as canceled with optional reason.
|
|
113
31
|
* @example
|
|
114
32
|
* ```typescript
|
|
115
|
-
*
|
|
116
|
-
* new
|
|
117
|
-
* id:
|
|
118
|
-
*
|
|
119
|
-
*
|
|
33
|
+
* await sdk.healthSpace.cancelAppointment(
|
|
34
|
+
* new CancelAppointmentRequest({
|
|
35
|
+
* id: '123',
|
|
36
|
+
* cancelationReason: {
|
|
37
|
+
* text: 'Schedule conflict',
|
|
38
|
+
* coding: [{ code: 'conflict' }]
|
|
39
|
+
* }
|
|
120
40
|
* })
|
|
121
41
|
* );
|
|
122
42
|
* ```
|
|
123
43
|
*/
|
|
124
|
-
|
|
44
|
+
cancelAppointment(request: CancelAppointmentRequest): Promise<BWellTransactionResult<AppointmentUpdate, BaseManagerError>>;
|
|
125
45
|
/**
|
|
126
|
-
* Retrieves
|
|
127
|
-
*
|
|
128
|
-
* @param request - Optional CareTeamMembersRequest with pagination configuration
|
|
129
|
-
* @returns Promise resolving to query result with care team members data
|
|
130
|
-
*
|
|
46
|
+
* Retrieves available cancellation reasons.
|
|
47
|
+
* Gets predefined reasons for appointment cancellation.
|
|
131
48
|
* @example
|
|
132
49
|
* ```typescript
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
* // Get care team members with pagination
|
|
137
|
-
* const result = await sdk.healthSpace.getCareTeamMembers(
|
|
138
|
-
* new CareTeamMembersRequest({
|
|
139
|
-
* pagingInfo: { pageSize: 10, pageNumber: 1 }
|
|
50
|
+
* const reasons = await sdk.healthSpace.getCancellationReasons(
|
|
51
|
+
* new CancellationReasonsRequest({
|
|
52
|
+
* organization: { value: 'Organization/123' }
|
|
140
53
|
* })
|
|
141
54
|
* );
|
|
142
55
|
* ```
|
|
143
56
|
*/
|
|
144
|
-
|
|
57
|
+
getCancellationReasons(request: CancellationReasonsRequest): Promise<BWellQueryResult<CancellationReasons, BaseManagerError>>;
|
|
145
58
|
}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { HealthSpaceManager } from "./health-space-manager.js";
|
|
2
2
|
export { AppointmentsRequest, AppointmentsRequestInput, } from "./appointments-request.js";
|
|
3
3
|
export { CancelAppointmentRequest, CancelAppointmentRequestInput, } from "./cancel-appointment-request.js";
|
|
4
|
-
export {
|
|
5
|
-
export { RemoveCareTeamMemberRequest, RemoveCareTeamMemberInput, } from "./remove-care-team-member-request.js";
|
|
6
|
-
export { AddCareTeamMemberInput, AddCareTeamMemberRequest, } from "./add-care-team-member-request.js";
|
|
7
|
-
export { AddCareTeamMembersRequest, AddCareTeamMembersInput, } from "./add-care-team-members-request.js";
|
|
8
|
-
export { UpdateCareTeamMemberRequest, UpdateCareTeamMemberInput, UpdateCareTeamMemberType, } from "./update-care-team-member-request.js";
|
|
9
|
-
export { CareTeamMembersRequest, CareTeamMembersRequestInput, } from "./care-team-members-request.js";
|
|
4
|
+
export { CancellationReasonsRequest, CancellationReasonsRequestInput, } from "./cancellation-reasons-request.js";
|
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
export { AppointmentsRequest, } from "./appointments-request.js";
|
|
2
2
|
export { CancelAppointmentRequest, } from "./cancel-appointment-request.js";
|
|
3
|
-
export {
|
|
4
|
-
export { RemoveCareTeamMemberRequest, } from "./remove-care-team-member-request.js";
|
|
5
|
-
export { AddCareTeamMemberRequest, } from "./add-care-team-member-request.js";
|
|
6
|
-
export { AddCareTeamMembersRequest, } from "./add-care-team-members-request.js";
|
|
7
|
-
export { UpdateCareTeamMemberRequest, } from "./update-care-team-member-request.js";
|
|
8
|
-
export { CareTeamMembersRequest, } from "./care-team-members-request.js";
|
|
3
|
+
export { CancellationReasonsRequest, } from "./cancellation-reasons-request.js";
|
|
@@ -1,42 +1,129 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { AuthTokens, CreateGuestAccessTokenResults, RefreshTokenResults, SdkConfigurationResult } from "../../../models/identity/index.js";
|
|
2
2
|
import type { BWellTransactionResult } from "../../../results/index.js";
|
|
3
3
|
import type { BaseManagerError } from "../errors.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Request for creating guest access tokens
|
|
6
|
+
* @category Requests
|
|
7
|
+
* @title CreateGuestAccessTokenRequest
|
|
8
|
+
* @excerpt Request for creating guest access tokens
|
|
9
|
+
*/
|
|
7
10
|
export type CreateGuestAccessTokenRequest = {
|
|
8
11
|
clientKey: string;
|
|
9
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* Request for OAuth authentication
|
|
15
|
+
* @category Requests
|
|
16
|
+
* @title OauthAuthenticateRequest
|
|
17
|
+
* @excerpt Request for OAuth authentication
|
|
18
|
+
*/
|
|
10
19
|
export type OauthAuthenticateRequest = {
|
|
11
20
|
clientKey: string;
|
|
12
21
|
jweToken: string;
|
|
13
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* Request for username/password authentication
|
|
25
|
+
* @category Requests
|
|
26
|
+
* @title UsernamePasswordAuthenticateRequest
|
|
27
|
+
* @excerpt Request for username/password authentication
|
|
28
|
+
*/
|
|
14
29
|
export type UsernamePasswordAuthenticateRequest = {
|
|
15
30
|
clientKey: string;
|
|
16
|
-
|
|
31
|
+
username: string;
|
|
17
32
|
password: string;
|
|
18
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
* Request for authorization code authentication
|
|
36
|
+
* @category Requests
|
|
37
|
+
* @title AuthCodeAuthenticateRequest
|
|
38
|
+
* @excerpt Request for authorization code authentication
|
|
39
|
+
*/
|
|
19
40
|
export type AuthCodeAuthenticateRequest = {
|
|
20
41
|
clientKey: string;
|
|
21
42
|
authCode: string;
|
|
22
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* Request for refreshing authentication tokens
|
|
46
|
+
* @category Requests
|
|
47
|
+
* @title RefreshTokensRequest
|
|
48
|
+
* @excerpt Request for refreshing authentication tokens
|
|
49
|
+
*/
|
|
23
50
|
export type RefreshTokensRequest = {
|
|
24
51
|
refreshToken: string;
|
|
25
52
|
clientKey: string;
|
|
26
53
|
};
|
|
27
|
-
export type AuthTokens = {
|
|
28
|
-
accessToken: string;
|
|
29
|
-
idToken: string;
|
|
30
|
-
refreshToken: string;
|
|
31
|
-
};
|
|
32
54
|
/**
|
|
33
|
-
*
|
|
55
|
+
* Identity Manager for SDK initialization and authentication.
|
|
56
|
+
* Provides methods for initializing the SDK and managing authentication flows.
|
|
57
|
+
* @category Managers
|
|
34
58
|
*/
|
|
35
59
|
export interface IdentityManager {
|
|
60
|
+
/**
|
|
61
|
+
* Initializes the SDK configuration.
|
|
62
|
+
* Sets up the SDK with the provided client key and validates access.
|
|
63
|
+
* @example
|
|
64
|
+
* ```typescript
|
|
65
|
+
* await identityManager.initialize('your-client-key');
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
36
68
|
initialize(clientKey: string): Promise<BWellTransactionResult<SdkConfigurationResult, BaseManagerError>>;
|
|
69
|
+
/**
|
|
70
|
+
* Authenticates using OAuth tokens.
|
|
71
|
+
* Validates OAuth credentials and establishes authenticated session.
|
|
72
|
+
* @example
|
|
73
|
+
* ```typescript
|
|
74
|
+
* const tokens = await identityManager.authenticateWithOauth({
|
|
75
|
+
* clientKey: 'your-client-key',
|
|
76
|
+
* jweToken: 'oauth-token'
|
|
77
|
+
* });
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
37
80
|
authenticateWithOauth(authenticateRequest: OauthAuthenticateRequest): Promise<BWellTransactionResult<AuthTokens, BaseManagerError>>;
|
|
81
|
+
/**
|
|
82
|
+
* Authenticates using username and password.
|
|
83
|
+
* Validates user credentials and establishes authenticated session.
|
|
84
|
+
* @example
|
|
85
|
+
* ```typescript
|
|
86
|
+
* const tokens = await identityManager.authenticateWithUsernamePassword({
|
|
87
|
+
* clientKey: 'your-client-key',
|
|
88
|
+
* username: 'user@example.com',
|
|
89
|
+
* password: 'secure-password'
|
|
90
|
+
* });
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
38
93
|
authenticateWithUsernamePassword(authenticateRequest: UsernamePasswordAuthenticateRequest): Promise<BWellTransactionResult<AuthTokens, BaseManagerError>>;
|
|
94
|
+
/**
|
|
95
|
+
* Authenticates using authorization code.
|
|
96
|
+
* Exchanges authorization code for access tokens.
|
|
97
|
+
* @example
|
|
98
|
+
* ```typescript
|
|
99
|
+
* const tokens = await identityManager.authenticateWithAuthCode({
|
|
100
|
+
* clientKey: 'your-client-key',
|
|
101
|
+
* authCode: 'authorization-code'
|
|
102
|
+
* });
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
39
105
|
authenticateWithAuthCode(authenticateRequest: AuthCodeAuthenticateRequest): Promise<BWellTransactionResult<AuthTokens, BaseManagerError>>;
|
|
106
|
+
/**
|
|
107
|
+
* Refreshes access tokens using refresh token.
|
|
108
|
+
* Obtains new access tokens without re-authentication.
|
|
109
|
+
* @example
|
|
110
|
+
* ```typescript
|
|
111
|
+
* const newTokens = await identityManager.refreshAccessToken({
|
|
112
|
+
* clientKey: 'your-client-key',
|
|
113
|
+
* refreshToken: 'refresh-token'
|
|
114
|
+
* });
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
40
117
|
refreshAccessToken(refreshTokensRequest: RefreshTokensRequest): Promise<BWellTransactionResult<RefreshTokenResults, BaseManagerError>>;
|
|
118
|
+
/**
|
|
119
|
+
* Creates a guest access token.
|
|
120
|
+
* Generates limited-access tokens for guest users.
|
|
121
|
+
* @example
|
|
122
|
+
* ```typescript
|
|
123
|
+
* const guestToken = await identityManager.createGuestAccessToken({
|
|
124
|
+
* clientKey: 'your-client-key'
|
|
125
|
+
* });
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
41
128
|
createGuestAccessToken(createGuestAccessTokenRequest: CreateGuestAccessTokenRequest): Promise<BWellTransactionResult<CreateGuestAccessTokenResults, BaseManagerError>>;
|
|
42
129
|
}
|
package/dist/api/base/index.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
export * from "./requests/index.js";
|
|
2
2
|
export * from "./user/index.js";
|
|
3
3
|
export * from "./health-data/index.js";
|
|
4
|
+
export * from "./financial/index.js";
|
|
4
5
|
export * from "./activity/index.js";
|
|
5
6
|
export * from "./search/index.js";
|
|
6
7
|
export * from "./connection/index.js";
|
|
7
8
|
export * from "./device/index.js";
|
|
8
|
-
export * from "./event/index.js";
|
|
9
|
-
export * from "./financial/index.js";
|
|
10
9
|
export * from "./health-space/index.js";
|
|
11
10
|
export * from "./questionnaire/index.js";
|
|
12
|
-
export * from "./support/index.js";
|
package/dist/api/base/index.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
export * from "./requests/index.js";
|
|
2
2
|
export * from "./user/index.js";
|
|
3
3
|
export * from "./health-data/index.js";
|
|
4
|
+
export * from "./financial/index.js";
|
|
4
5
|
export * from "./activity/index.js";
|
|
5
6
|
export * from "./search/index.js";
|
|
6
7
|
export * from "./connection/index.js";
|
|
7
8
|
export * from "./device/index.js";
|
|
8
|
-
export * from "./event/index.js";
|
|
9
|
-
export * from "./financial/index.js";
|
|
9
|
+
// export * from "./event/index.js";
|
|
10
10
|
export * from "./health-space/index.js";
|
|
11
11
|
export * from "./questionnaire/index.js";
|
|
12
|
-
export * from "./support/index.js";
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
export { NextQuestionRequest, NextQuestionRequestInput, } from "./next-question-request.js";
|
|
2
|
-
export {
|
|
3
|
-
export { NextQuestionResults, QuestionnaireManager, QuestionnaireResponsesResults, SaveQuestionnaireResponseResults, } from "./questionnaire-manager.js";
|
|
4
|
-
export { QuestionnaireResponsesRequest, QuestionnaireResponsesRequestInput, } from "./questionnaire-responses-request.js";
|
|
5
|
-
export { QuestionnairesRequest, QuestionnairesRequestInput, } from "./questionnaires-request.js";
|
|
2
|
+
export { QuestionnaireManager } from "./questionnaire-manager.js";
|
|
@@ -1,4 +1 @@
|
|
|
1
1
|
export { NextQuestionRequest, } from "./next-question-request.js";
|
|
2
|
-
export { SaveQuestionnaireResponseRequest, } from "./save-questionnaire-response-request.js";
|
|
3
|
-
export { QuestionnaireResponsesRequest, } from "./questionnaire-responses-request.js";
|
|
4
|
-
export { QuestionnairesRequest, } from "./questionnaires-request.js";
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import { NextQuestionMutationVariables } from "../../../graphql/operations/types.js";
|
|
2
2
|
import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
|
|
3
3
|
/**
|
|
4
|
-
* Input type for the `nextQuestion` mutation.
|
|
4
|
+
* Input type for the `nextQuestion` mutation. Used to navigate through questionnaire questions.
|
|
5
|
+
* @title NextQuestionRequestInput
|
|
6
|
+
* @excerpt Input for navigating through questionnaire questions
|
|
5
7
|
* @experimental This class is experimental and may change in future releases.
|
|
8
|
+
* @category Inputs
|
|
6
9
|
*/
|
|
7
10
|
export type NextQuestionRequestInput = NextQuestionMutationVariables;
|
|
8
11
|
declare class NextQuestionRequestValidator implements Validator<NextQuestionRequestInput> {
|
|
9
12
|
validate(data: NextQuestionRequestInput, errors: ErrorsCollector): void;
|
|
10
13
|
}
|
|
11
14
|
/**
|
|
12
|
-
* Request
|
|
15
|
+
* Request object for handling next question mutations.
|
|
13
16
|
* @experimental This class is experimental and may change in future releases.
|
|
17
|
+
* @category Requests
|
|
18
|
+
* @title NextQuestionRequest
|
|
19
|
+
* @excerpt Request object for handling next question mutations
|
|
14
20
|
*/
|
|
15
21
|
export declare class NextQuestionRequest extends ValidationRequest<NextQuestionRequestInput> {
|
|
16
22
|
protected validator: NextQuestionRequestValidator;
|
|
@@ -44,8 +44,11 @@ class NextQuestionRequestValidator {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
|
-
* Request
|
|
47
|
+
* Request object for handling next question mutations.
|
|
48
48
|
* @experimental This class is experimental and may change in future releases.
|
|
49
|
+
* @category Requests
|
|
50
|
+
* @title NextQuestionRequest
|
|
51
|
+
* @excerpt Request object for handling next question mutations
|
|
49
52
|
*/
|
|
50
53
|
export class NextQuestionRequest extends ValidationRequest {
|
|
51
54
|
constructor() {
|