@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,22 +0,0 @@
|
|
|
1
|
-
import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
|
|
2
|
-
export type CommentInput = {
|
|
3
|
-
body: string;
|
|
4
|
-
uploads?: string[];
|
|
5
|
-
};
|
|
6
|
-
export type SupportRequestFieldsInput = {
|
|
7
|
-
category: string;
|
|
8
|
-
};
|
|
9
|
-
export type CreateSupportRequestRequestInput = {
|
|
10
|
-
comment: CommentInput;
|
|
11
|
-
email?: string;
|
|
12
|
-
fields: SupportRequestFieldsInput;
|
|
13
|
-
name?: string;
|
|
14
|
-
subject: string;
|
|
15
|
-
};
|
|
16
|
-
declare class CreateSupportRequestRequestValidator implements Validator<CreateSupportRequestRequestInput> {
|
|
17
|
-
validate(data: CreateSupportRequestRequestInput, errors: ErrorsCollector): void;
|
|
18
|
-
}
|
|
19
|
-
export declare class CreateSupportRequestRequest extends ValidationRequest<CreateSupportRequestRequestInput> {
|
|
20
|
-
protected validator: CreateSupportRequestRequestValidator;
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ValidationRequest, } from "../../../requests/index.js";
|
|
2
|
-
class CreateSupportRequestRequestValidator {
|
|
3
|
-
validate(data, errors) {
|
|
4
|
-
if (!data.subject.trim()) {
|
|
5
|
-
errors.add("Subject is required");
|
|
6
|
-
}
|
|
7
|
-
if (!data.comment.body.trim()) {
|
|
8
|
-
errors.add("Comment body is required");
|
|
9
|
-
}
|
|
10
|
-
if (!data.fields.category.trim()) {
|
|
11
|
-
errors.add("Category is required");
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export class CreateSupportRequestRequest extends ValidationRequest {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.validator = new CreateSupportRequestRequestValidator();
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
|
|
2
|
-
export type DeleteSupportAttachmentRequestInput = {
|
|
3
|
-
attachmentId: string;
|
|
4
|
-
};
|
|
5
|
-
declare class DeleteSupportAttachmentRequestValidator implements Validator<DeleteSupportAttachmentRequestInput> {
|
|
6
|
-
validate(data: DeleteSupportAttachmentRequestInput, errors: ErrorsCollector): void;
|
|
7
|
-
}
|
|
8
|
-
export declare class DeleteSupportAttachmentRequest extends ValidationRequest<DeleteSupportAttachmentRequestInput> {
|
|
9
|
-
protected validator: DeleteSupportAttachmentRequestValidator;
|
|
10
|
-
}
|
|
11
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ValidationRequest, } from "../../../requests/index.js";
|
|
2
|
-
class DeleteSupportAttachmentRequestValidator {
|
|
3
|
-
validate(data, errors) {
|
|
4
|
-
if (!data.attachmentId.trim()) {
|
|
5
|
-
errors.add("Attachment ID is required");
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
export class DeleteSupportAttachmentRequest extends ValidationRequest {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
this.validator = new DeleteSupportAttachmentRequestValidator();
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { RequestStatus, SortBy, SortOrderEnum } from "../../../graphql/schema.js";
|
|
2
|
-
import { PagedRequest, PagedRequestInput, PagedRequestValidator } from "../../../requests/paged-request.js";
|
|
3
|
-
import { ErrorsCollector } from "../../../requests/validator.js";
|
|
4
|
-
export { RequestStatus, SortBy, SortOrderEnum };
|
|
5
|
-
export type GetSupportRequestsRequestInput = PagedRequestInput & {
|
|
6
|
-
search?: string;
|
|
7
|
-
sortBy?: SortBy;
|
|
8
|
-
sortOrder?: SortOrderEnum;
|
|
9
|
-
status?: RequestStatus[];
|
|
10
|
-
};
|
|
11
|
-
declare class GetSupportRequestsRequestValidator extends PagedRequestValidator<GetSupportRequestsRequestInput> {
|
|
12
|
-
validate(data: GetSupportRequestsRequestInput, errors: ErrorsCollector): void;
|
|
13
|
-
}
|
|
14
|
-
export declare class GetSupportRequestsRequest extends PagedRequest<GetSupportRequestsRequestInput> {
|
|
15
|
-
protected validator: GetSupportRequestsRequestValidator;
|
|
16
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { RequestStatus, SortBy, SortOrderEnum, } from "../../../graphql/schema.js";
|
|
2
|
-
import { PagedRequest, PagedRequestValidator, } from "../../../requests/paged-request.js";
|
|
3
|
-
export { RequestStatus, SortBy, SortOrderEnum };
|
|
4
|
-
class GetSupportRequestsRequestValidator extends PagedRequestValidator {
|
|
5
|
-
validate(data, errors) {
|
|
6
|
-
super.validate(data, errors);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
export class GetSupportRequestsRequest extends PagedRequest {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
this.validator = new GetSupportRequestsRequestValidator();
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { CreateSupportRequestMutationResults, DeleteSupportAttachmentMutationResults, GetSupportCategoriesQueryResults, GetSupportRequestsQueryResults, UploadSupportAttachmentMutationResults } from "../../../graphql/operations/types.js";
|
|
2
|
-
import type { BWellQueryResult, BWellTransactionResult } from "../../../results/index.js";
|
|
3
|
-
import type { BaseManagerError } from "../errors.js";
|
|
4
|
-
import { CreateSupportRequestRequest } from "./create-support-request-request.js";
|
|
5
|
-
import { DeleteSupportAttachmentRequest } from "./delete-support-attachment-request.js";
|
|
6
|
-
import { GetSupportRequestsRequest } from "./get-support-requests-request.js";
|
|
7
|
-
import { UploadSupportAttachmentRequest } from "./upload-support-attachment-request.js";
|
|
8
|
-
export type GetSupportRequestsResults = GetSupportRequestsQueryResults["getSupportRequests"];
|
|
9
|
-
export type UploadSupportAttachmentResults = UploadSupportAttachmentMutationResults["uploadSupportAttachment"];
|
|
10
|
-
export type DeleteSupportAttachmentResults = DeleteSupportAttachmentMutationResults["deleteSupportAttachment"];
|
|
11
|
-
export type CreateSupportRequestResults = CreateSupportRequestMutationResults["createSupportRequest"];
|
|
12
|
-
export type GetSupportCategoriesResults = GetSupportCategoriesQueryResults["getSupportCategories"];
|
|
13
|
-
/**
|
|
14
|
-
* The SupportManager interface provides methods for managing support requests.
|
|
15
|
-
*/
|
|
16
|
-
export interface SupportManager {
|
|
17
|
-
/**
|
|
18
|
-
* Retrieves support requests based on the provided filters.
|
|
19
|
-
* @param request The request containing pagination, search, and filter parameters.
|
|
20
|
-
* @returns A promise that resolves to a query result with the support requests data.
|
|
21
|
-
*/
|
|
22
|
-
getSupportRequests(request: GetSupportRequestsRequest): Promise<BWellQueryResult<GetSupportRequestsResults, BaseManagerError>>;
|
|
23
|
-
/**
|
|
24
|
-
* Uploads an attachment for a support request.
|
|
25
|
-
* @param request The request containing the file content as a data URI (data:<MIME-type>;base64,<base64-data>) and file name.
|
|
26
|
-
* @returns A promise that resolves to a transaction result with the uploaded attachment data.
|
|
27
|
-
*/
|
|
28
|
-
uploadSupportAttachment(request: UploadSupportAttachmentRequest): Promise<BWellTransactionResult<UploadSupportAttachmentResults, BaseManagerError>>;
|
|
29
|
-
/**
|
|
30
|
-
* Deletes an attachment from a support request.
|
|
31
|
-
* @param request The request containing the attachment ID to delete.
|
|
32
|
-
* @returns A promise that resolves to a transaction result with the deletion status.
|
|
33
|
-
*/
|
|
34
|
-
deleteSupportAttachment(request: DeleteSupportAttachmentRequest): Promise<BWellTransactionResult<DeleteSupportAttachmentResults, BaseManagerError>>;
|
|
35
|
-
/**
|
|
36
|
-
* Creates a new support request.
|
|
37
|
-
* @param request The request containing the support request details (subject, comment, category, etc.).
|
|
38
|
-
* @returns A promise that resolves to a transaction result with the created support request data.
|
|
39
|
-
*/
|
|
40
|
-
createSupportRequest(request: CreateSupportRequestRequest): Promise<BWellTransactionResult<CreateSupportRequestResults, BaseManagerError>>;
|
|
41
|
-
/**
|
|
42
|
-
* Retrieves available support request categories.
|
|
43
|
-
* @returns A promise that resolves to a query result with the list of support categories.
|
|
44
|
-
*/
|
|
45
|
-
getSupportCategories(): Promise<BWellQueryResult<GetSupportCategoriesResults, BaseManagerError>>;
|
|
46
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
|
|
2
|
-
/**
|
|
3
|
-
* Input for uploading a support attachment.
|
|
4
|
-
*/
|
|
5
|
-
export type UploadSupportAttachmentRequestInput = {
|
|
6
|
-
/**
|
|
7
|
-
* The file content as a data URI with base64 encoding and MIME type.
|
|
8
|
-
* Format: data:<MIME-type>;base64,<base64-encoded-data>
|
|
9
|
-
* Example: "data:application/pdf;base64,JVBERi0xLjQKJeLjz9MK..."
|
|
10
|
-
*/
|
|
11
|
-
file: string;
|
|
12
|
-
fileName: string;
|
|
13
|
-
};
|
|
14
|
-
declare class UploadSupportAttachmentRequestValidator implements Validator<UploadSupportAttachmentRequestInput> {
|
|
15
|
-
private readonly dataURIRegex;
|
|
16
|
-
validate(data: UploadSupportAttachmentRequestInput, errors: ErrorsCollector): void;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Request class for uploading support attachments.
|
|
20
|
-
* Validates that the file is provided as a data URI with base64 encoding and a MIME type.
|
|
21
|
-
*/
|
|
22
|
-
export declare class UploadSupportAttachmentRequest extends ValidationRequest<UploadSupportAttachmentRequestInput> {
|
|
23
|
-
protected validator: UploadSupportAttachmentRequestValidator;
|
|
24
|
-
}
|
|
25
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ValidationRequest, } from "../../../requests/index.js";
|
|
2
|
-
class UploadSupportAttachmentRequestValidator {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.dataURIRegex = /^data:[a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+;base64,([A-Za-z0-9+/]*={0,2})$/;
|
|
5
|
-
}
|
|
6
|
-
validate(data, errors) {
|
|
7
|
-
if (!data.file.trim()) {
|
|
8
|
-
errors.add("File content is required");
|
|
9
|
-
}
|
|
10
|
-
if (data.file.trim() && !this.dataURIRegex.test(data.file)) {
|
|
11
|
-
errors.add("File must be a valid data URI with base64 encoding (e.g., data:image/png;base64,...)");
|
|
12
|
-
}
|
|
13
|
-
if (!data.fileName.trim()) {
|
|
14
|
-
errors.add("File name is required");
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Request class for uploading support attachments.
|
|
20
|
-
* Validates that the file is provided as a data URI with base64 encoding and a MIME type.
|
|
21
|
-
*/
|
|
22
|
-
export class UploadSupportAttachmentRequest extends ValidationRequest {
|
|
23
|
-
constructor() {
|
|
24
|
-
super(...arguments);
|
|
25
|
-
this.validator = new UploadSupportAttachmentRequestValidator();
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { CategoryCode as GraphQLCategoryCode, ConsentProvisionType as GraphQLConsentProvisionType, ConsentStatus as GraphQLConsentStatus, FhirPersonGender as GraphQLFhirPersonGender } from "../../../graphql/schema.js";
|
|
2
|
-
export type PersonGender = `${GraphQLFhirPersonGender}`;
|
|
3
|
-
export type ConsentStatus = `${GraphQLConsentStatus}`;
|
|
4
|
-
export type CategoryCode = `${GraphQLCategoryCode}`;
|
|
5
|
-
export type ConsentProvisionType = `${GraphQLConsentProvisionType}`;
|
|
6
|
-
export declare function isValidPersonGender(gender: string): gender is GraphQLFhirPersonGender;
|
|
7
|
-
export declare function isValidConsentStatus(status: string): status is GraphQLConsentStatus;
|
|
8
|
-
export declare function isValidCategoryCode(categoryCode: string): categoryCode is GraphQLCategoryCode;
|
|
9
|
-
export declare function isValidConsentProvisionType(type: string): type is GraphQLConsentProvisionType;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { CategoryCode as GraphQLCategoryCode, ConsentProvisionType as GraphQLConsentProvisionType, ConsentStatus as GraphQLConsentStatus, FhirPersonGender as GraphQLFhirPersonGender, } from "../../../graphql/schema.js";
|
|
2
|
-
const genderValueCache = new Set(Object.values(GraphQLFhirPersonGender));
|
|
3
|
-
export function isValidPersonGender(gender) {
|
|
4
|
-
return genderValueCache.has(gender);
|
|
5
|
-
}
|
|
6
|
-
const consentStatusCache = new Set(Object.values(GraphQLConsentStatus));
|
|
7
|
-
export function isValidConsentStatus(status) {
|
|
8
|
-
return consentStatusCache.has(status);
|
|
9
|
-
}
|
|
10
|
-
const categoryCodeValueCache = new Set(Object.values(GraphQLCategoryCode));
|
|
11
|
-
export function isValidCategoryCode(categoryCode) {
|
|
12
|
-
return categoryCodeValueCache.has(categoryCode);
|
|
13
|
-
}
|
|
14
|
-
const consentProvisionTypeCache = new Set(Object.values(GraphQLConsentProvisionType));
|
|
15
|
-
export function isValidConsentProvisionType(type) {
|
|
16
|
-
return consentProvisionTypeCache.has(type);
|
|
17
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
-
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");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
|
-
var _GetTasksRequestFactory_instances, _GetTasksRequestFactory_toSearchToken;
|
|
7
|
-
import { isNotUndefined } from "../../../utils/index.js";
|
|
8
|
-
export var ActivitySystem;
|
|
9
|
-
(function (ActivitySystem) {
|
|
10
|
-
ActivitySystem["ACTIVITY_CONTENT"] = "https://www.icanbwell.com/contentDescription";
|
|
11
|
-
ActivitySystem["ACTIVITY_ID"] = "https://www.icanbwell.com/activityId";
|
|
12
|
-
ActivitySystem["ACTIVITY_TOPIC"] = "https://www.icanbwell.com/activityTopic";
|
|
13
|
-
ActivitySystem["ACTIVITY_TYPE"] = "https://www.icanbwell.com/activityType";
|
|
14
|
-
ActivitySystem["PERFORMER_TYPE"] = "https://www.icanbwell.com/performerType";
|
|
15
|
-
})(ActivitySystem || (ActivitySystem = {}));
|
|
16
|
-
export class GetTasksRequestFactory {
|
|
17
|
-
constructor() {
|
|
18
|
-
_GetTasksRequestFactory_instances.add(this);
|
|
19
|
-
}
|
|
20
|
-
create(request) {
|
|
21
|
-
var _a;
|
|
22
|
-
const input = request.data();
|
|
23
|
-
const data = {
|
|
24
|
-
page: input.page,
|
|
25
|
-
pageSize: input.pageSize,
|
|
26
|
-
};
|
|
27
|
-
if (isNotUndefined(input.id)) {
|
|
28
|
-
data.id = __classPrivateFieldGet(this, _GetTasksRequestFactory_instances, "m", _GetTasksRequestFactory_toSearchToken).call(this, input.id);
|
|
29
|
-
}
|
|
30
|
-
if (isNotUndefined(input.activityId)) {
|
|
31
|
-
data.identifier = __classPrivateFieldGet(this, _GetTasksRequestFactory_instances, "m", _GetTasksRequestFactory_toSearchToken).call(this, input.activityId, ActivitySystem.ACTIVITY_ID);
|
|
32
|
-
}
|
|
33
|
-
if (isNotUndefined(input.activityType)) {
|
|
34
|
-
data.code = __classPrivateFieldGet(this, _GetTasksRequestFactory_instances, "m", _GetTasksRequestFactory_toSearchToken).call(this, input.activityType, ActivitySystem.ACTIVITY_TYPE);
|
|
35
|
-
}
|
|
36
|
-
if (isNotUndefined(input.activityTopic)) {
|
|
37
|
-
data.tag = __classPrivateFieldGet(this, _GetTasksRequestFactory_instances, "m", _GetTasksRequestFactory_toSearchToken).call(this, input.activityTopic, ActivitySystem.ACTIVITY_TOPIC);
|
|
38
|
-
}
|
|
39
|
-
if (isNotUndefined(input.status)) {
|
|
40
|
-
data.status = __classPrivateFieldGet(this, _GetTasksRequestFactory_instances, "m", _GetTasksRequestFactory_toSearchToken).call(this, input.status);
|
|
41
|
-
}
|
|
42
|
-
if (isNotUndefined(input.subject)) {
|
|
43
|
-
data.subject = __classPrivateFieldGet(this, _GetTasksRequestFactory_instances, "m", _GetTasksRequestFactory_toSearchToken).call(this, input.subject);
|
|
44
|
-
}
|
|
45
|
-
if (isNotUndefined(input.performerType)) {
|
|
46
|
-
data.performer = __classPrivateFieldGet(this, _GetTasksRequestFactory_instances, "m", _GetTasksRequestFactory_toSearchToken).call(this, input.performerType, ActivitySystem.PERFORMER_TYPE);
|
|
47
|
-
}
|
|
48
|
-
data.sortMethod = input.smartSort === true ? "smartSort" : "";
|
|
49
|
-
if (isNotUndefined(input.enrichContent)) {
|
|
50
|
-
data.enrichContent = input.enrichContent;
|
|
51
|
-
}
|
|
52
|
-
// default to english
|
|
53
|
-
data.contentLanguage = (_a = input.contentLanguage) !== null && _a !== void 0 ? _a : "en";
|
|
54
|
-
return {
|
|
55
|
-
request: data,
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
_GetTasksRequestFactory_instances = new WeakSet(), _GetTasksRequestFactory_toSearchToken = function _GetTasksRequestFactory_toSearchToken(value, system) {
|
|
60
|
-
const valueArr = Array.isArray(value) ? value : [value];
|
|
61
|
-
const searchTokenValues = {
|
|
62
|
-
value: valueArr.join(","),
|
|
63
|
-
};
|
|
64
|
-
if (isNotUndefined(system)) {
|
|
65
|
-
searchTokenValues.system = system;
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
values: [searchTokenValues],
|
|
69
|
-
};
|
|
70
|
-
};
|
package/dist/api/graphql-api/connection/graphql-get-member-connections-bwell-response-factory.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { CodeableConceptFieldsFragment, GetMemberConnectionsQueryResults } from "../../../graphql/operations/types.js";
|
|
2
|
-
import { BWellQueryResult, BWellQueryResultFactory } from "../../../results/index.js";
|
|
3
|
-
/**
|
|
4
|
-
* Custom type representing a member's data connection
|
|
5
|
-
*/
|
|
6
|
-
export type MemberConnection = GetMemberConnectionsQueryResults["getMemberConnections"][number] & {
|
|
7
|
-
syncErrors: Array<CodeableConceptFieldsFragment | null> | null;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Custom type representing a member's data connections
|
|
11
|
-
*/
|
|
12
|
-
export type MemberConnectionResults = Array<MemberConnection>;
|
|
13
|
-
/**
|
|
14
|
-
* Factory to map the GraphQL GetMemberConnectionResults object to a BWellQueryResult using the expected shape
|
|
15
|
-
*/
|
|
16
|
-
export declare class GraphQLGetMemberConnectionsBWellResponseFactory implements BWellQueryResultFactory<BWellQueryResult<GetMemberConnectionsQueryResults>, BWellQueryResult<MemberConnectionResults>> {
|
|
17
|
-
create(result: BWellQueryResult<GetMemberConnectionsQueryResults>): BWellQueryResult<MemberConnectionResults>;
|
|
18
|
-
}
|
package/dist/api/graphql-api/connection/graphql-get-member-connections-bwell-response-factory.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { BWellQueryResult, } from "../../../results/index.js";
|
|
2
|
-
import { isNotNullOrUndefined, isNullOrUndefined, } from "../../../utils/type-utils.js";
|
|
3
|
-
import { MEMBER_CONNECTION_SUBSCRIPTION_STATUS_EXTENSION_ID } from "../../base/connection/index.js";
|
|
4
|
-
/**
|
|
5
|
-
* Factory to map the GraphQL GetMemberConnectionResults object to a BWellQueryResult using the expected shape
|
|
6
|
-
*/
|
|
7
|
-
export class GraphQLGetMemberConnectionsBWellResponseFactory {
|
|
8
|
-
create(result) {
|
|
9
|
-
var _a, _b, _c, _d, _e, _f;
|
|
10
|
-
// map subscription status to service slug, which corresponds to connection.id
|
|
11
|
-
const subscriptionStatusMap = new Map();
|
|
12
|
-
const subscriptionStatuseEntries = (_c = (_b = (_a = result.data) === null || _a === void 0 ? void 0 : _a.subscription_subscription) === null || _b === void 0 ? void 0 : _b.entry) !== null && _c !== void 0 ? _c : [];
|
|
13
|
-
for (const entry of subscriptionStatuseEntries) {
|
|
14
|
-
if (isNotNullOrUndefined((_d = entry === null || entry === void 0 ? void 0 : entry.resource) === null || _d === void 0 ? void 0 : _d.service_slug) &&
|
|
15
|
-
isNotNullOrUndefined(entry === null || entry === void 0 ? void 0 : entry.resource.subscriptionStatus)) {
|
|
16
|
-
for (const subStatus of entry.resource.subscriptionStatus) {
|
|
17
|
-
subscriptionStatusMap.set(entry.resource.service_slug, {
|
|
18
|
-
error: subStatus === null || subStatus === void 0 ? void 0 : subStatus.error,
|
|
19
|
-
extension: subStatus === null || subStatus === void 0 ? void 0 : subStatus.extension,
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
// Make sure getMemberConnections is an array and not undefined
|
|
25
|
-
const getMemberConnections = (_f = (_e = result.data) === null || _e === void 0 ? void 0 : _e.getMemberConnections) !== null && _f !== void 0 ? _f : [];
|
|
26
|
-
return new BWellQueryResult(
|
|
27
|
-
// map subscription status info on to member connections
|
|
28
|
-
getMemberConnections.map((connection) => {
|
|
29
|
-
var _a;
|
|
30
|
-
const subscriptionStatus = subscriptionStatusMap.get(connection.id);
|
|
31
|
-
if (isNullOrUndefined(subscriptionStatus)) {
|
|
32
|
-
return Object.assign(Object.assign({}, connection), { syncErrors: [] });
|
|
33
|
-
}
|
|
34
|
-
const extension = (_a = subscriptionStatus.extension) === null || _a === void 0 ? void 0 : _a.find((e) => (e === null || e === void 0 ? void 0 : e.id) === MEMBER_CONNECTION_SUBSCRIPTION_STATUS_EXTENSION_ID);
|
|
35
|
-
return Object.assign(Object.assign({}, connection), { syncErrors: subscriptionStatus.error, syncStatus: (extension
|
|
36
|
-
? extension.valueString
|
|
37
|
-
: connection.syncStatus) });
|
|
38
|
-
}), result.error);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { PublishEventMutationVariables } from "../../../graphql/operations/types.js";
|
|
2
|
-
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
-
import { HandleNotificationRequest } from "../../base/event/index.js";
|
|
4
|
-
export declare class HandleNotificationRequestFactory implements RequestFactory<HandleNotificationRequest, PublishEventMutationVariables> {
|
|
5
|
-
create(input: HandleNotificationRequest): PublishEventMutationVariables;
|
|
6
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { EventType } from "../../../graphql/schema.js";
|
|
2
|
-
export class HandleNotificationRequestFactory {
|
|
3
|
-
create(input) {
|
|
4
|
-
const notification = JSON.parse(input.data().serializedNotification);
|
|
5
|
-
return {
|
|
6
|
-
notificationId: notification.notification_id,
|
|
7
|
-
messageId: notification.itbl.messageId,
|
|
8
|
-
eventType: EventType.MobilePushOpen,
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { PublishEventMutationVariables } from "../../../graphql/operations/types.js";
|
|
2
|
-
import { LoggerProvider } from "../../../logger/index.js";
|
|
3
|
-
import { RequestFactory } from "../../../requests/index.js";
|
|
4
|
-
import { BWellTransactionResult } from "../../../results/index.js";
|
|
5
|
-
import { BaseManagerError } from "../../base/errors.js";
|
|
6
|
-
import type { EventManager } from "../../base/event/event-manager.js";
|
|
7
|
-
import { HandleNotificationRequest, HandleNotificationResults } from "../../base/event/index.js";
|
|
8
|
-
import "../../base/index.js";
|
|
9
|
-
import { GraphQLManager } from "../graphql-manager/index.js";
|
|
10
|
-
import type { GraphQLSdk } from "../graphql-sdk/index.js";
|
|
11
|
-
export declare class GraphQLEventManager extends GraphQLManager implements EventManager {
|
|
12
|
-
#private;
|
|
13
|
-
constructor(sdk: GraphQLSdk, loggerProvider?: LoggerProvider, handleNotificationRequestFactory?: RequestFactory<HandleNotificationRequest, PublishEventMutationVariables>);
|
|
14
|
-
handleNotification(request: HandleNotificationRequest): Promise<BWellTransactionResult<HandleNotificationResults, BaseManagerError>>;
|
|
15
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
11
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
12
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
13
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
14
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
15
|
-
};
|
|
16
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
17
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
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
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
20
|
-
};
|
|
21
|
-
var _GraphQLEventManager_sdk, _GraphQLEventManager_logger, _GraphQLEventManager_handleNotificationRequestFactory;
|
|
22
|
-
import { UnknownError } from "../../../errors/unknown-error.js";
|
|
23
|
-
import { ConsoleLoggerProvider, } from "../../../logger/index.js";
|
|
24
|
-
import { BWellTransactionResult } from "../../../results/index.js";
|
|
25
|
-
import "../../base/index.js";
|
|
26
|
-
import { GraphQLManager } from "../graphql-manager/index.js";
|
|
27
|
-
import { HandleNotificationRequestFactory } from "./event-request-factory.js";
|
|
28
|
-
export class GraphQLEventManager extends GraphQLManager {
|
|
29
|
-
constructor(sdk, loggerProvider = new ConsoleLoggerProvider(), handleNotificationRequestFactory = new HandleNotificationRequestFactory()) {
|
|
30
|
-
super();
|
|
31
|
-
_GraphQLEventManager_sdk.set(this, void 0);
|
|
32
|
-
_GraphQLEventManager_logger.set(this, void 0);
|
|
33
|
-
_GraphQLEventManager_handleNotificationRequestFactory.set(this, void 0);
|
|
34
|
-
__classPrivateFieldSet(this, _GraphQLEventManager_sdk, sdk, "f");
|
|
35
|
-
__classPrivateFieldSet(this, _GraphQLEventManager_logger, loggerProvider.getLogger("GraphQLEventManager"), "f");
|
|
36
|
-
__classPrivateFieldSet(this, _GraphQLEventManager_handleNotificationRequestFactory, handleNotificationRequestFactory, "f");
|
|
37
|
-
}
|
|
38
|
-
handleNotification(request) {
|
|
39
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
const validationResults = this.validateRequest(request);
|
|
41
|
-
if (validationResults.failure()) {
|
|
42
|
-
return validationResults.intoFailure();
|
|
43
|
-
}
|
|
44
|
-
__classPrivateFieldGet(this, _GraphQLEventManager_logger, "f").debug("Calling publishEvent");
|
|
45
|
-
let sdkRequest;
|
|
46
|
-
//handle the possibility that JSON.parse throws an error in the request factory
|
|
47
|
-
try {
|
|
48
|
-
sdkRequest = __classPrivateFieldGet(this, _GraphQLEventManager_handleNotificationRequestFactory, "f").create(request);
|
|
49
|
-
}
|
|
50
|
-
catch (error) {
|
|
51
|
-
__classPrivateFieldGet(this, _GraphQLEventManager_logger, "f").error("Error creating publishEvent request", error);
|
|
52
|
-
return BWellTransactionResult.failure(new UnknownError("Error creating publishEvent request"));
|
|
53
|
-
}
|
|
54
|
-
const result = yield this.handleTransaction(__classPrivateFieldGet(this, _GraphQLEventManager_sdk, "f").publishEvent(sdkRequest));
|
|
55
|
-
__classPrivateFieldGet(this, _GraphQLEventManager_logger, "f").debug("publishEvent completed");
|
|
56
|
-
if (result.failure()) {
|
|
57
|
-
__classPrivateFieldGet(this, _GraphQLEventManager_logger, "f").error("publishEvent mutation error", result);
|
|
58
|
-
return result.intoFailure();
|
|
59
|
-
}
|
|
60
|
-
__classPrivateFieldGet(this, _GraphQLEventManager_logger, "f").info("publishEvent mutation success");
|
|
61
|
-
return BWellTransactionResult.success(result.data().publishEvent);
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
_GraphQLEventManager_sdk = new WeakMap(), _GraphQLEventManager_logger = new WeakMap(), _GraphQLEventManager_handleNotificationRequestFactory = new WeakMap();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./graphql-event-manager.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./graphql-event-manager.js";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as Types from "../../../graphql/operations/types.js";
|
|
2
|
-
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
-
import { CoveragesRequest } from "../../base/financial/coverage-request.js";
|
|
4
|
-
export declare class GraphQLGetCoveragesRequestFactory implements RequestFactory<CoveragesRequest, Types.GetCoveragesQueryVariables> {
|
|
5
|
-
create(request?: CoveragesRequest): Types.GetCoveragesQueryVariables;
|
|
6
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { TotalType } from "../../../graphql/schema.js";
|
|
2
|
-
export class GraphQLGetCoveragesRequestFactory {
|
|
3
|
-
create(request) {
|
|
4
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
5
|
-
const data = request === null || request === void 0 ? void 0 : request.data();
|
|
6
|
-
return {
|
|
7
|
-
id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
|
|
8
|
-
lastUpdated: (_b = data === null || data === void 0 ? void 0 : data.lastUpdated) !== null && _b !== void 0 ? _b : null,
|
|
9
|
-
sort: (_c = data === null || data === void 0 ? void 0 : data.sort) !== null && _c !== void 0 ? _c : null,
|
|
10
|
-
page: (_d = data === null || data === void 0 ? void 0 : data.page) !== null && _d !== void 0 ? _d : null,
|
|
11
|
-
pageSize: (_e = data === null || data === void 0 ? void 0 : data.pageSize) !== null && _e !== void 0 ? _e : null,
|
|
12
|
-
patient: (_f = data === null || data === void 0 ? void 0 : data.patient) !== null && _f !== void 0 ? _f : null,
|
|
13
|
-
beneficiary: (_g = data === null || data === void 0 ? void 0 : data.beneficiary) !== null && _g !== void 0 ? _g : null,
|
|
14
|
-
total: (_h = data === null || data === void 0 ? void 0 : data.total) !== null && _h !== void 0 ? _h : TotalType.Accurate,
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { TotalType } from "../../../graphql/schema.js";
|
|
2
|
-
/**
|
|
3
|
-
* Factory to create ExplanationOfBenefit GraphQL variables from ExplanationOfBenefitsRequest.
|
|
4
|
-
*/
|
|
5
|
-
export class ExplanationOfBenefitsRequestFactory {
|
|
6
|
-
create(request) {
|
|
7
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
8
|
-
const input = request === null || request === void 0 ? void 0 : request.data();
|
|
9
|
-
return {
|
|
10
|
-
page: (_a = input === null || input === void 0 ? void 0 : input.page) !== null && _a !== void 0 ? _a : null,
|
|
11
|
-
pageSize: (_b = input === null || input === void 0 ? void 0 : input.pageSize) !== null && _b !== void 0 ? _b : null,
|
|
12
|
-
id: (_c = input === null || input === void 0 ? void 0 : input.id) !== null && _c !== void 0 ? _c : null,
|
|
13
|
-
lastUpdated: (_d = input === null || input === void 0 ? void 0 : input.lastUpdated) !== null && _d !== void 0 ? _d : null,
|
|
14
|
-
patient: (_e = input === null || input === void 0 ? void 0 : input.patient) !== null && _e !== void 0 ? _e : null,
|
|
15
|
-
provider: (_f = input === null || input === void 0 ? void 0 : input.provider) !== null && _f !== void 0 ? _f : null,
|
|
16
|
-
coverage: (_g = input === null || input === void 0 ? void 0 : input.coverage) !== null && _g !== void 0 ? _g : null,
|
|
17
|
-
status: (_h = input === null || input === void 0 ? void 0 : input.status) !== null && _h !== void 0 ? _h : null,
|
|
18
|
-
created: (_j = input === null || input === void 0 ? void 0 : input.created) !== null && _j !== void 0 ? _j : null,
|
|
19
|
-
sort: (_k = input === null || input === void 0 ? void 0 : input.sort) !== null && _k !== void 0 ? _k : null,
|
|
20
|
-
total: TotalType.Accurate,
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { AddCareTeamMemberMutationVariables } from "../../../graphql/operations/types.js";
|
|
2
|
-
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
-
import { AddCareTeamMemberRequest } from "../../base/health-space/add-care-team-member-request.js";
|
|
4
|
-
/**
|
|
5
|
-
* Factory class for transforming AddCareTeamMemberRequest objects into GraphQL mutation variables.
|
|
6
|
-
* Handles the conversion between the SDK's domain model and the GraphQL API format.
|
|
7
|
-
* Automatically sets the start date to the current time for active membership.
|
|
8
|
-
*
|
|
9
|
-
* @implements RequestFactory<AddCareTeamMemberRequest, AddCareTeamMemberMutationVariables>
|
|
10
|
-
*/
|
|
11
|
-
export declare class AddCareTeamMemberRequestFactory implements RequestFactory<AddCareTeamMemberRequest, AddCareTeamMemberMutationVariables> {
|
|
12
|
-
/**
|
|
13
|
-
* Creates GraphQL mutation variables from an AddCareTeamMemberRequest.
|
|
14
|
-
* Sets the start date to the current time for active membership.
|
|
15
|
-
*
|
|
16
|
-
* @param request - The AddCareTeamMemberRequest to transform
|
|
17
|
-
* @returns AddCareTeamMemberMutationVariables suitable for the GraphQL mutation
|
|
18
|
-
*/
|
|
19
|
-
create(request: AddCareTeamMemberRequest): AddCareTeamMemberMutationVariables;
|
|
20
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { getCurrentDateTime } from "../../../utils/index.js";
|
|
2
|
-
import { buildCareTeamParticipant } from "./care-team-factory-utils.js";
|
|
3
|
-
/**
|
|
4
|
-
* Factory class for transforming AddCareTeamMemberRequest objects into GraphQL mutation variables.
|
|
5
|
-
* Handles the conversion between the SDK's domain model and the GraphQL API format.
|
|
6
|
-
* Automatically sets the start date to the current time for active membership.
|
|
7
|
-
*
|
|
8
|
-
* @implements RequestFactory<AddCareTeamMemberRequest, AddCareTeamMemberMutationVariables>
|
|
9
|
-
*/
|
|
10
|
-
export class AddCareTeamMemberRequestFactory {
|
|
11
|
-
/**
|
|
12
|
-
* Creates GraphQL mutation variables from an AddCareTeamMemberRequest.
|
|
13
|
-
* Sets the start date to the current time for active membership.
|
|
14
|
-
*
|
|
15
|
-
* @param request - The AddCareTeamMemberRequest to transform
|
|
16
|
-
* @returns AddCareTeamMemberMutationVariables suitable for the GraphQL mutation
|
|
17
|
-
*/
|
|
18
|
-
create(request) {
|
|
19
|
-
const input = request.data();
|
|
20
|
-
// Use shared participant builder with period for add operation
|
|
21
|
-
const participant = buildCareTeamParticipant(input, {
|
|
22
|
-
start: getCurrentDateTime(),
|
|
23
|
-
end: null,
|
|
24
|
-
});
|
|
25
|
-
return {
|
|
26
|
-
participant,
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AddCareTeamMembersMutationVariables } from "../../../graphql/operations/types.js";
|
|
2
|
-
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
-
import { AddCareTeamMembersRequest } from "../../base/health-space/add-care-team-members-request.js";
|
|
4
|
-
/**
|
|
5
|
-
* Factory class for transforming AddCareTeamMembersRequest objects into GraphQL mutation variables.
|
|
6
|
-
*/
|
|
7
|
-
export declare class AddCareTeamMembersRequestFactory implements RequestFactory<AddCareTeamMembersRequest, AddCareTeamMembersMutationVariables> {
|
|
8
|
-
/**
|
|
9
|
-
* Creates GraphQL mutation variables from an AddCareTeamMembersRequest.
|
|
10
|
-
* Sets the start date to the current time for all members being added.
|
|
11
|
-
*
|
|
12
|
-
* @param request - The AddCareTeamMembersRequest to transform
|
|
13
|
-
* @returns AddCareTeamMembersMutationVariables suitable for the GraphQL mutation
|
|
14
|
-
*/
|
|
15
|
-
create(request: AddCareTeamMembersRequest): AddCareTeamMembersMutationVariables;
|
|
16
|
-
}
|