@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,23 +0,0 @@
|
|
|
1
|
-
import { getCurrentDateTime } from "../../../utils/index.js";
|
|
2
|
-
import { buildCareTeamParticipant } from "./care-team-factory-utils.js";
|
|
3
|
-
/**
|
|
4
|
-
* Factory class for transforming AddCareTeamMembersRequest objects into GraphQL mutation variables.
|
|
5
|
-
*/
|
|
6
|
-
export class AddCareTeamMembersRequestFactory {
|
|
7
|
-
/**
|
|
8
|
-
* Creates GraphQL mutation variables from an AddCareTeamMembersRequest.
|
|
9
|
-
* Sets the start date to the current time for all members being added.
|
|
10
|
-
*
|
|
11
|
-
* @param request - The AddCareTeamMembersRequest to transform
|
|
12
|
-
* @returns AddCareTeamMembersMutationVariables suitable for the GraphQL mutation
|
|
13
|
-
*/
|
|
14
|
-
create(request) {
|
|
15
|
-
const input = request.data();
|
|
16
|
-
const currentDateTime = getCurrentDateTime();
|
|
17
|
-
const participants = input.members.map((member) => buildCareTeamParticipant(member, { start: currentDateTime, end: null }));
|
|
18
|
-
// Return with participant array structure expected by GraphQL
|
|
19
|
-
return {
|
|
20
|
-
participant: participants,
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared utility functions for CareTeam request factories.
|
|
3
|
-
* Provides common participant-building logic used across add/update/remove operations.
|
|
4
|
-
*/
|
|
5
|
-
import { CareTeamParticipantInput } from "../../../graphql/schema.js";
|
|
6
|
-
/**
|
|
7
|
-
* Builds a participant object for CareTeam mutations.
|
|
8
|
-
* Used by add, update, and remove care team member factories.
|
|
9
|
-
*
|
|
10
|
-
* @param input - Member input containing id, type, and optional role
|
|
11
|
-
* @param period - Optional period object. If undefined, period is omitted (for update operations).
|
|
12
|
-
* For add: { start: currentDateTime, end: null }
|
|
13
|
-
* For remove: { end: currentDateTime }
|
|
14
|
-
* @returns Participant object formatted for GraphQL mutation
|
|
15
|
-
*/
|
|
16
|
-
export declare function buildCareTeamParticipant(input: {
|
|
17
|
-
id: string;
|
|
18
|
-
type: string;
|
|
19
|
-
role?: string[];
|
|
20
|
-
}, period?: {
|
|
21
|
-
start?: string | null;
|
|
22
|
-
end?: string | null;
|
|
23
|
-
} | null): CareTeamParticipantInput;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared utility functions for CareTeam request factories.
|
|
3
|
-
* Provides common participant-building logic used across add/update/remove operations.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Builds a participant object for CareTeam mutations.
|
|
7
|
-
* Used by add, update, and remove care team member factories.
|
|
8
|
-
*
|
|
9
|
-
* @param input - Member input containing id, type, and optional role
|
|
10
|
-
* @param period - Optional period object. If undefined, period is omitted (for update operations).
|
|
11
|
-
* For add: { start: currentDateTime, end: null }
|
|
12
|
-
* For remove: { end: currentDateTime }
|
|
13
|
-
* @returns Participant object formatted for GraphQL mutation
|
|
14
|
-
*/
|
|
15
|
-
export function buildCareTeamParticipant(input, period) {
|
|
16
|
-
const roleCodeableConcepts = (input.role || []).map((r) => ({
|
|
17
|
-
text: r,
|
|
18
|
-
}));
|
|
19
|
-
const participant = {
|
|
20
|
-
id: input.id,
|
|
21
|
-
member: {
|
|
22
|
-
reference: `${input.type}/${input.id}`,
|
|
23
|
-
},
|
|
24
|
-
role: roleCodeableConcepts,
|
|
25
|
-
};
|
|
26
|
-
if (period !== undefined) {
|
|
27
|
-
participant.period = period;
|
|
28
|
-
}
|
|
29
|
-
return participant;
|
|
30
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CareTeamMembersQueryVariables } from "../../../graphql/operations/types.js";
|
|
2
|
-
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
-
import { CareTeamMembersRequest } from "../../base/health-space/index.js";
|
|
4
|
-
/**
|
|
5
|
-
* A factory class for creating `CareTeamMembersQueryVariables` objects from `CareTeamMembersRequest` objects.
|
|
6
|
-
* Implements the `RequestFactory` interface.
|
|
7
|
-
*
|
|
8
|
-
* @implements RequestFactory<CareTeamMembersRequest, CareTeamMembersQueryVariables>
|
|
9
|
-
*/
|
|
10
|
-
export declare class CareTeamMembersRequestFactory implements RequestFactory<CareTeamMembersRequest, CareTeamMembersQueryVariables> {
|
|
11
|
-
create(request: CareTeamMembersRequest): CareTeamMembersQueryVariables;
|
|
12
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { DEFAULT_PAGE_SIZE } from "../../../requests/index.js";
|
|
2
|
-
/**
|
|
3
|
-
* A factory class for creating `CareTeamMembersQueryVariables` objects from `CareTeamMembersRequest` objects.
|
|
4
|
-
* Implements the `RequestFactory` interface.
|
|
5
|
-
*
|
|
6
|
-
* @implements RequestFactory<CareTeamMembersRequest, CareTeamMembersQueryVariables>
|
|
7
|
-
*/
|
|
8
|
-
export class CareTeamMembersRequestFactory {
|
|
9
|
-
create(request) {
|
|
10
|
-
var _a, _b;
|
|
11
|
-
const input = request.data();
|
|
12
|
-
return {
|
|
13
|
-
pageNumber: (_a = input.page) !== null && _a !== void 0 ? _a : 0,
|
|
14
|
-
pageSize: (_b = input.pageSize) !== null && _b !== void 0 ? _b : DEFAULT_PAGE_SIZE,
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { RemoveCareTeamMemberMutationVariables } from "../../../graphql/operations/types.js";
|
|
2
|
-
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
-
import { RemoveCareTeamMemberRequest } from "../../base/health-space/remove-care-team-member-request.js";
|
|
4
|
-
/**
|
|
5
|
-
* Factory class for transforming RemoveCareTeamMemberRequest objects into GraphQL mutation variables.
|
|
6
|
-
*/
|
|
7
|
-
export declare class RemoveCareTeamMemberRequestFactory implements RequestFactory<RemoveCareTeamMemberRequest, RemoveCareTeamMemberMutationVariables> {
|
|
8
|
-
/**
|
|
9
|
-
* Creates GraphQL mutation variables from a RemoveCareTeamMemberRequest.
|
|
10
|
-
* Sets the end date to the current time to mark membership termination.
|
|
11
|
-
*
|
|
12
|
-
* @param request - The RemoveCareTeamMemberRequest to transform
|
|
13
|
-
* @returns RemoveCareTeamMemberMutationVariables suitable for the GraphQL mutation
|
|
14
|
-
*/
|
|
15
|
-
create(request: RemoveCareTeamMemberRequest): RemoveCareTeamMemberMutationVariables;
|
|
16
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { getCurrentDateTime } from "../../../utils/index.js";
|
|
2
|
-
import { buildCareTeamParticipant } from "./care-team-factory-utils.js";
|
|
3
|
-
/**
|
|
4
|
-
* Factory class for transforming RemoveCareTeamMemberRequest objects into GraphQL mutation variables.
|
|
5
|
-
*/
|
|
6
|
-
export class RemoveCareTeamMemberRequestFactory {
|
|
7
|
-
/**
|
|
8
|
-
* Creates GraphQL mutation variables from a RemoveCareTeamMemberRequest.
|
|
9
|
-
* Sets the end date to the current time to mark membership termination.
|
|
10
|
-
*
|
|
11
|
-
* @param request - The RemoveCareTeamMemberRequest to transform
|
|
12
|
-
* @returns RemoveCareTeamMemberMutationVariables suitable for the GraphQL mutation
|
|
13
|
-
*/
|
|
14
|
-
create(request) {
|
|
15
|
-
const input = request.data();
|
|
16
|
-
// Use shared participant builder with period.end for remove operation
|
|
17
|
-
const participant = buildCareTeamParticipant(input, {
|
|
18
|
-
end: getCurrentDateTime(),
|
|
19
|
-
});
|
|
20
|
-
return {
|
|
21
|
-
participant,
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { UpdateCareTeamMemberMutationVariables } from "../../../graphql/operations/types.js";
|
|
2
|
-
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
-
import { UpdateCareTeamMemberRequest } from "../../base/health-space/update-care-team-member-request.js";
|
|
4
|
-
/**
|
|
5
|
-
* Factory class for transforming UpdateCareTeamMemberRequest objects into GraphQL mutation variables.
|
|
6
|
-
*/
|
|
7
|
-
export declare class UpdateCareTeamMemberRequestFactory implements RequestFactory<UpdateCareTeamMemberRequest, UpdateCareTeamMemberMutationVariables> {
|
|
8
|
-
/**
|
|
9
|
-
* Creates GraphQL mutation variables from an UpdateCareTeamMemberRequest.
|
|
10
|
-
* Preserves existing period information while updating participant details.
|
|
11
|
-
*
|
|
12
|
-
* @param request - The UpdateCareTeamMemberRequest to transform
|
|
13
|
-
* @returns UpdateCareTeamMemberMutationVariables suitable for the GraphQL mutation
|
|
14
|
-
*/
|
|
15
|
-
create(request: UpdateCareTeamMemberRequest): UpdateCareTeamMemberMutationVariables;
|
|
16
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { buildCareTeamParticipant } from "./care-team-factory-utils.js";
|
|
2
|
-
/**
|
|
3
|
-
* Factory class for transforming UpdateCareTeamMemberRequest objects into GraphQL mutation variables.
|
|
4
|
-
*/
|
|
5
|
-
export class UpdateCareTeamMemberRequestFactory {
|
|
6
|
-
/**
|
|
7
|
-
* Creates GraphQL mutation variables from an UpdateCareTeamMemberRequest.
|
|
8
|
-
* Preserves existing period information while updating participant details.
|
|
9
|
-
*
|
|
10
|
-
* @param request - The UpdateCareTeamMemberRequest to transform
|
|
11
|
-
* @returns UpdateCareTeamMemberMutationVariables suitable for the GraphQL mutation
|
|
12
|
-
*/
|
|
13
|
-
create(request) {
|
|
14
|
-
const input = request.data();
|
|
15
|
-
const participant = buildCareTeamParticipant(input);
|
|
16
|
-
return {
|
|
17
|
-
participant,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
}
|
package/dist/api/graphql-api/healthdata/graphql-diagnostic-reports-bwell-request-factory.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as Types from "../../../graphql/operations/types.js";
|
|
2
|
-
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
-
import * as health from "../../base/health-data/index.js";
|
|
4
|
-
export declare class GraphQLGetDiagnosticReportRequestFactory implements RequestFactory<health.DiagnosticReportsRequest, Types.GetDiagnosticReportsQueryVariables> {
|
|
5
|
-
create(request?: health.DiagnosticReportsRequest): Types.GetDiagnosticReportsQueryVariables;
|
|
6
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export class GraphQLGetDiagnosticReportRequestFactory {
|
|
2
|
-
create(request) {
|
|
3
|
-
var _a;
|
|
4
|
-
const { id, page, pageSize, sort } = (_a = request === null || request === void 0 ? void 0 : request.data()) !== null && _a !== void 0 ? _a : {};
|
|
5
|
-
return {
|
|
6
|
-
id: id ? { values: id } : null,
|
|
7
|
-
pageSize: pageSize !== null && pageSize !== void 0 ? pageSize : null,
|
|
8
|
-
page: page !== null && page !== void 0 ? page : null,
|
|
9
|
-
sort: sort !== null && sort !== void 0 ? sort : null,
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
}
|
package/dist/api/graphql-api/healthdata/graphql-get-medication-dispense-bwell-response-factory.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { GetMedicationDispenseQueryResults } from "../../../graphql/operations/types.js";
|
|
2
|
-
import { BWellQueryResult, BWellQueryResultFactory } from "../../../results/index.js";
|
|
3
|
-
import { RenameKey } from "./graphql-health-manager.js";
|
|
4
|
-
export type MedicationDispenseResultsType = RenameKey<GetMedicationDispenseQueryResults["getMedicationDispense"], "itemReferenceResource", "resource">;
|
|
5
|
-
/**
|
|
6
|
-
* Factory to map the GraphQL GetMedicationDispenseResults object to a BWellQueryResult using the expected shape
|
|
7
|
-
*/
|
|
8
|
-
export declare class GraphQLGetMedicationDispenseBWellResponseFactory implements BWellQueryResultFactory<BWellQueryResult<GetMedicationDispenseQueryResults>, BWellQueryResult<MedicationDispenseResultsType>> {
|
|
9
|
-
create(queryResult: BWellQueryResult<GetMedicationDispenseQueryResults>): BWellQueryResult<MedicationDispenseResultsType>;
|
|
10
|
-
}
|
package/dist/api/graphql-api/healthdata/graphql-get-medication-dispense-bwell-response-factory.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { BWellQueryResult, } from "../../../results/index.js";
|
|
2
|
-
/**
|
|
3
|
-
* Factory to map the GraphQL GetMedicationDispenseResults object to a BWellQueryResult using the expected shape
|
|
4
|
-
*/
|
|
5
|
-
export class GraphQLGetMedicationDispenseBWellResponseFactory {
|
|
6
|
-
create(queryResult) {
|
|
7
|
-
var _a;
|
|
8
|
-
// Extract data from query result
|
|
9
|
-
const resultData = (_a = queryResult.data) === null || _a === void 0 ? void 0 : _a.getMedicationDispense;
|
|
10
|
-
if (!resultData) {
|
|
11
|
-
return new BWellQueryResult(undefined, queryResult.error);
|
|
12
|
-
}
|
|
13
|
-
// Augment result to conform to expected data type
|
|
14
|
-
const augmentedResult = Object.assign(Object.assign({}, resultData), ((resultData === null || resultData === void 0 ? void 0 : resultData.resources) && {
|
|
15
|
-
resources: resultData === null || resultData === void 0 ? void 0 : resultData.resources.map((resource) => {
|
|
16
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
17
|
-
return (Object.assign(Object.assign({}, resource), (resource.medication && {
|
|
18
|
-
medication: Object.assign(Object.assign({}, resource.medication), (((_a = resource.medication) === null || _a === void 0 ? void 0 : _a.resource) && {
|
|
19
|
-
resource: Object.assign(Object.assign({}, (_b = resource.medication) === null || _b === void 0 ? void 0 : _b.resource), (((_d = (_c = resource.medication) === null || _c === void 0 ? void 0 : _c.resource) === null || _d === void 0 ? void 0 : _d.ingredient) && {
|
|
20
|
-
ingredient: (_g = (_f = (_e = resource.medication) === null || _e === void 0 ? void 0 : _e.resource) === null || _f === void 0 ? void 0 : _f.ingredient) === null || _g === void 0 ? void 0 : _g.map((ingredient) => {
|
|
21
|
-
var _a, _b;
|
|
22
|
-
return (Object.assign(Object.assign({}, ingredient), (((_a = ingredient === null || ingredient === void 0 ? void 0 : ingredient.itemReference) === null || _a === void 0 ? void 0 : _a.itemReferenceResource) && {
|
|
23
|
-
itemReference: {
|
|
24
|
-
resource: (_b = ingredient === null || ingredient === void 0 ? void 0 : ingredient.itemReference) === null || _b === void 0 ? void 0 : _b.itemReferenceResource,
|
|
25
|
-
},
|
|
26
|
-
})));
|
|
27
|
-
}),
|
|
28
|
-
})),
|
|
29
|
-
})),
|
|
30
|
-
})));
|
|
31
|
-
}),
|
|
32
|
-
}));
|
|
33
|
-
return new BWellQueryResult(augmentedResult, queryResult.error);
|
|
34
|
-
}
|
|
35
|
-
}
|
package/dist/api/graphql-api/healthdata/graphql-get-medication-request-bwell-response-factory.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { GetMedicationRequestQueryResults } from "../../../graphql/operations/types.js";
|
|
2
|
-
import { BWellQueryResult, BWellQueryResultFactory } from "../../../results/index.js";
|
|
3
|
-
import { RenameKey } from "./graphql-health-manager.js";
|
|
4
|
-
export type MedicationRequestResultsType = RenameKey<GetMedicationRequestQueryResults["getMedicationRequest"], "itemReferenceResource", "resource">;
|
|
5
|
-
/**
|
|
6
|
-
* Factory to map the GraphQL GetMedicationRequestResults object to a BWellQueryResult using the expected shape
|
|
7
|
-
*/
|
|
8
|
-
export declare class GraphQLGetMedicationRequestBWellResponseFactory implements BWellQueryResultFactory<BWellQueryResult<GetMedicationRequestQueryResults>, BWellQueryResult<MedicationRequestResultsType>> {
|
|
9
|
-
create(queryResult: BWellQueryResult<GetMedicationRequestQueryResults>): BWellQueryResult<MedicationRequestResultsType>;
|
|
10
|
-
}
|
package/dist/api/graphql-api/healthdata/graphql-get-medication-request-bwell-response-factory.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { BWellQueryResult, } from "../../../results/index.js";
|
|
2
|
-
/**
|
|
3
|
-
* Factory to map the GraphQL GetMedicationRequestResults object to a BWellQueryResult using the expected shape
|
|
4
|
-
*/
|
|
5
|
-
export class GraphQLGetMedicationRequestBWellResponseFactory {
|
|
6
|
-
create(queryResult) {
|
|
7
|
-
var _a;
|
|
8
|
-
// Extract data from query result
|
|
9
|
-
const resultData = (_a = queryResult.data) === null || _a === void 0 ? void 0 : _a.getMedicationRequest;
|
|
10
|
-
// Augment result to conform to expected data type
|
|
11
|
-
if (!resultData) {
|
|
12
|
-
return new BWellQueryResult(undefined, queryResult.error);
|
|
13
|
-
}
|
|
14
|
-
const augmentedResult = Object.assign(Object.assign({}, resultData), ((resultData === null || resultData === void 0 ? void 0 : resultData.resources) && {
|
|
15
|
-
resources: resultData === null || resultData === void 0 ? void 0 : resultData.resources.map((resource) => {
|
|
16
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
17
|
-
return (Object.assign(Object.assign({}, resource), (resource.medication && {
|
|
18
|
-
medication: Object.assign(Object.assign({}, resource.medication), (((_a = resource.medication) === null || _a === void 0 ? void 0 : _a.resource) && {
|
|
19
|
-
resource: Object.assign(Object.assign({}, (_b = resource.medication) === null || _b === void 0 ? void 0 : _b.resource), (((_d = (_c = resource.medication) === null || _c === void 0 ? void 0 : _c.resource) === null || _d === void 0 ? void 0 : _d.ingredient) && {
|
|
20
|
-
ingredient: (_g = (_f = (_e = resource.medication) === null || _e === void 0 ? void 0 : _e.resource) === null || _f === void 0 ? void 0 : _f.ingredient) === null || _g === void 0 ? void 0 : _g.map((ingredient) => {
|
|
21
|
-
var _a, _b;
|
|
22
|
-
return (Object.assign(Object.assign({}, ingredient), (((_a = ingredient === null || ingredient === void 0 ? void 0 : ingredient.itemReference) === null || _a === void 0 ? void 0 : _a.itemReferenceResource) && {
|
|
23
|
-
itemReference: {
|
|
24
|
-
resource: (_b = ingredient === null || ingredient === void 0 ? void 0 : ingredient.itemReference) === null || _b === void 0 ? void 0 : _b.itemReferenceResource,
|
|
25
|
-
},
|
|
26
|
-
})));
|
|
27
|
-
}),
|
|
28
|
-
})),
|
|
29
|
-
})),
|
|
30
|
-
})));
|
|
31
|
-
}),
|
|
32
|
-
}));
|
|
33
|
-
return new BWellQueryResult(augmentedResult, queryResult.error);
|
|
34
|
-
}
|
|
35
|
-
}
|
package/dist/api/graphql-api/healthdata/graphql-update-medication-statement-request-factory.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as Types from "../../../graphql/operations/types.js";
|
|
2
|
-
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
-
import { UpdateMedicationStatementRequest } from "../../base/index.js";
|
|
4
|
-
export declare class GraphqlUpdateMedicationStatementRequestFactory implements RequestFactory<UpdateMedicationStatementRequest, Types.UpdateMedicationStatementMutationVariables> {
|
|
5
|
-
create(request: UpdateMedicationStatementRequest): Types.UpdateMedicationStatementMutationVariables;
|
|
6
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { GetQuestionnaireResponsesQueryVariables } from "../../../graphql/operations/types.js";
|
|
2
|
-
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
-
import { QuestionnaireResponsesRequest } from "../../base/index.js";
|
|
4
|
-
/**
|
|
5
|
-
* Factory to create GraphQL query variables from a QuestionnaireResponsesRequest
|
|
6
|
-
*/
|
|
7
|
-
export declare class QuestionnaireResponsesRequestFactory implements RequestFactory<QuestionnaireResponsesRequest, GetQuestionnaireResponsesQueryVariables> {
|
|
8
|
-
create(request: QuestionnaireResponsesRequest): GetQuestionnaireResponsesQueryVariables;
|
|
9
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { DEFAULT_PAGE_SIZE } from "../../../requests/index.js";
|
|
2
|
-
/**
|
|
3
|
-
* Factory to create GraphQL query variables from a QuestionnaireResponsesRequest
|
|
4
|
-
*/
|
|
5
|
-
export class QuestionnaireResponsesRequestFactory {
|
|
6
|
-
create(request) {
|
|
7
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
8
|
-
const input = request.data();
|
|
9
|
-
return {
|
|
10
|
-
id: (_a = input.id) !== null && _a !== void 0 ? _a : null,
|
|
11
|
-
lastUpdated: (_b = input.lastUpdated) !== null && _b !== void 0 ? _b : null,
|
|
12
|
-
sort: (_c = input.sort) !== null && _c !== void 0 ? _c : null,
|
|
13
|
-
pageSize: (_d = input.pageSize) !== null && _d !== void 0 ? _d : DEFAULT_PAGE_SIZE,
|
|
14
|
-
page: input.page,
|
|
15
|
-
questionnaire: (_e = input.questionnaire) !== null && _e !== void 0 ? _e : null,
|
|
16
|
-
status: (_f = input.status) !== null && _f !== void 0 ? _f : null,
|
|
17
|
-
patient: (_g = input.patient) !== null && _g !== void 0 ? _g : null,
|
|
18
|
-
tag: (_h = input.tag) !== null && _h !== void 0 ? _h : null,
|
|
19
|
-
total: (_j = input.total) !== null && _j !== void 0 ? _j : null,
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { QuestionnairesRequest } from "../../../api/base/questionnaire/questionnaires-request.js";
|
|
2
|
-
import { GetQuestionnairesQueryVariables } from "../../../graphql/operations/types.js";
|
|
3
|
-
import { RequestFactory } from "../../../requests/index.js";
|
|
4
|
-
export declare class QuestionnairesRequestFactory implements RequestFactory<QuestionnairesRequest, GetQuestionnairesQueryVariables> {
|
|
5
|
-
create(request: QuestionnairesRequest): GetQuestionnairesQueryVariables;
|
|
6
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export class QuestionnairesRequestFactory {
|
|
2
|
-
create(request) {
|
|
3
|
-
var _a, _b, _c, _d, _e, _f;
|
|
4
|
-
const input = request.data();
|
|
5
|
-
return {
|
|
6
|
-
page: input.page,
|
|
7
|
-
pageSize: input.pageSize,
|
|
8
|
-
id: (_a = input.id) !== null && _a !== void 0 ? _a : null,
|
|
9
|
-
sort: (_b = input.sort) !== null && _b !== void 0 ? _b : null,
|
|
10
|
-
context: (_c = input.context) !== null && _c !== void 0 ? _c : null,
|
|
11
|
-
identifier: (_d = input.identifier) !== null && _d !== void 0 ? _d : null,
|
|
12
|
-
security: (_e = input.security) !== null && _e !== void 0 ? _e : null,
|
|
13
|
-
tag: (_f = input.tag) !== null && _f !== void 0 ? _f : null,
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ProviderSearchQueryVariables } from "../../../graphql/operations/types.js";
|
|
2
|
-
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
-
import { SearchRequest } from "../../base/search/index.js";
|
|
4
|
-
export declare class ConnectionSearchRequestFactory implements RequestFactory<SearchRequest, ProviderSearchQueryVariables> {
|
|
5
|
-
#private;
|
|
6
|
-
create(request: SearchRequest): ProviderSearchQueryVariables;
|
|
7
|
-
}
|
|
@@ -1,21 +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 _ConnectionSearchRequestFactory_searchRequestFactory;
|
|
7
|
-
import { DataSets } from "../../../graphql/schema.js";
|
|
8
|
-
import { SearchRequestFactory } from "./search-request-factory.js";
|
|
9
|
-
export class ConnectionSearchRequestFactory {
|
|
10
|
-
constructor() {
|
|
11
|
-
_ConnectionSearchRequestFactory_searchRequestFactory.set(this, new SearchRequestFactory());
|
|
12
|
-
}
|
|
13
|
-
create(request) {
|
|
14
|
-
const data = __classPrivateFieldGet(this, _ConnectionSearchRequestFactory_searchRequestFactory, "f").create(request);
|
|
15
|
-
data.client = {
|
|
16
|
-
data_sets: [DataSets.Connecthub],
|
|
17
|
-
};
|
|
18
|
-
return data;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
_ConnectionSearchRequestFactory_searchRequestFactory = new WeakMap();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./graphql-search-manager.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./graphql-search-manager.js";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ProviderSearchQueryVariables } from "../../../graphql/operations/types.js";
|
|
2
|
-
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
-
import { SearchRequest } from "../../base/search/index.js";
|
|
4
|
-
export declare class ProviderSearchRequestFactory implements RequestFactory<SearchRequest, ProviderSearchQueryVariables> {
|
|
5
|
-
#private;
|
|
6
|
-
create(request: SearchRequest): ProviderSearchQueryVariables;
|
|
7
|
-
}
|
|
@@ -1,21 +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 _ProviderSearchRequestFactory_searchRequestFactory;
|
|
7
|
-
import { DataSets } from "../../../graphql/schema.js";
|
|
8
|
-
import { SearchRequestFactory } from "./search-request-factory.js";
|
|
9
|
-
export class ProviderSearchRequestFactory {
|
|
10
|
-
constructor() {
|
|
11
|
-
_ProviderSearchRequestFactory_searchRequestFactory.set(this, new SearchRequestFactory());
|
|
12
|
-
}
|
|
13
|
-
create(request) {
|
|
14
|
-
const data = __classPrivateFieldGet(this, _ProviderSearchRequestFactory_searchRequestFactory, "f").create(request);
|
|
15
|
-
data.client = {
|
|
16
|
-
data_sets: [DataSets.Nppes],
|
|
17
|
-
};
|
|
18
|
-
return data;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
_ProviderSearchRequestFactory_searchRequestFactory = new WeakMap();
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { RequestConnectionMutationVariables } from "../../../graphql/operations/types.js";
|
|
2
|
-
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
-
import { RequestConnectionRequest } from "../../base/search/index.js";
|
|
4
|
-
export declare class RequestConnectionRequestFactory implements RequestFactory<RequestConnectionRequest, RequestConnectionMutationVariables> {
|
|
5
|
-
create(request: RequestConnectionRequest): RequestConnectionMutationVariables;
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ProviderSearchQueryVariables } from "../../../graphql/operations/types.js";
|
|
2
|
-
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
-
import type { SearchRequest } from "../../base/index.js";
|
|
4
|
-
export declare class SearchRequestFactory implements RequestFactory<SearchRequest, ProviderSearchQueryVariables> {
|
|
5
|
-
create(request: SearchRequest): ProviderSearchQueryVariables;
|
|
6
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { isNotUndefined } from "../../../utils/index.js";
|
|
2
|
-
export class SearchRequestFactory {
|
|
3
|
-
create(request) {
|
|
4
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
5
|
-
const input = request.data();
|
|
6
|
-
/**
|
|
7
|
-
* client should not be set
|
|
8
|
-
* @see ATC-4980
|
|
9
|
-
*/
|
|
10
|
-
const client = null;
|
|
11
|
-
// All the properties must be provided but can be null.
|
|
12
|
-
const searchTerm = (_a = input.searchTerm) !== null && _a !== void 0 ? _a : null;
|
|
13
|
-
const specialtyFilters = (_b = input.specialtyFilters) !== null && _b !== void 0 ? _b : null;
|
|
14
|
-
const includePopulatedPROAonly = (_c = input.includePopulatedPROAonly) !== null && _c !== void 0 ? _c : false;
|
|
15
|
-
const organizationTypeFilters = (_d = input.organizationTypeFilters) !== null && _d !== void 0 ? _d : null;
|
|
16
|
-
const gender = (_e = input.gender) !== null && _e !== void 0 ? _e : null;
|
|
17
|
-
const location = (_f = input.location) !== null && _f !== void 0 ? _f : null;
|
|
18
|
-
let sortBy = null;
|
|
19
|
-
// Remaps the type to the correct graphql enums
|
|
20
|
-
if (isNotUndefined(input.sortBy)) {
|
|
21
|
-
sortBy = {
|
|
22
|
-
field: (_g = input.sortBy.field) !== null && _g !== void 0 ? _g : null,
|
|
23
|
-
order: (_h = input.sortBy.order) !== null && _h !== void 0 ? _h : null,
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
const filterFields = (_j = input.filterFields) !== null && _j !== void 0 ? _j : null;
|
|
27
|
-
const page = input.page;
|
|
28
|
-
const pageSize = input.pageSize;
|
|
29
|
-
const data = {
|
|
30
|
-
client,
|
|
31
|
-
searchTerm,
|
|
32
|
-
specialtyFilters,
|
|
33
|
-
includePopulatedPROAonly,
|
|
34
|
-
organizationTypeFilters,
|
|
35
|
-
gender,
|
|
36
|
-
location,
|
|
37
|
-
sortBy,
|
|
38
|
-
filterFields,
|
|
39
|
-
page,
|
|
40
|
-
pageSize,
|
|
41
|
-
};
|
|
42
|
-
return data;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { CreateSupportRequestMutationVariables } from "../../../graphql/operations/types.js";
|
|
2
|
-
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
-
import { CreateSupportRequestRequest } from "../../base/support/create-support-request-request.js";
|
|
4
|
-
export declare class GraphQLCreateSupportRequestRequestFactory implements RequestFactory<CreateSupportRequestRequest, CreateSupportRequestMutationVariables> {
|
|
5
|
-
create(request: CreateSupportRequestRequest): CreateSupportRequestMutationVariables;
|
|
6
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export class GraphQLCreateSupportRequestRequestFactory {
|
|
2
|
-
create(request) {
|
|
3
|
-
const data = request.data();
|
|
4
|
-
return {
|
|
5
|
-
input: {
|
|
6
|
-
subject: data.subject,
|
|
7
|
-
comment: {
|
|
8
|
-
body: data.comment.body,
|
|
9
|
-
uploads: data.comment.uploads,
|
|
10
|
-
},
|
|
11
|
-
fields: {
|
|
12
|
-
category: data.fields.category,
|
|
13
|
-
},
|
|
14
|
-
email: data.email,
|
|
15
|
-
name: data.name,
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { DeleteSupportAttachmentMutationVariables } from "../../../graphql/operations/types.js";
|
|
2
|
-
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
-
import { DeleteSupportAttachmentRequest } from "../../base/support/delete-support-attachment-request.js";
|
|
4
|
-
export declare class GraphQLDeleteSupportAttachmentRequestFactory implements RequestFactory<DeleteSupportAttachmentRequest, DeleteSupportAttachmentMutationVariables> {
|
|
5
|
-
create(request: DeleteSupportAttachmentRequest): DeleteSupportAttachmentMutationVariables;
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as Types from "../../../graphql/operations/types.js";
|
|
2
|
-
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
-
import { GetSupportRequestsRequest } from "../../base/support/get-support-requests-request.js";
|
|
4
|
-
export declare class GraphQLGetSupportRequestsBwellRequestFactory implements RequestFactory<GetSupportRequestsRequest, Types.GetSupportRequestsQueryVariables> {
|
|
5
|
-
create(request?: GetSupportRequestsRequest): Types.GetSupportRequestsQueryVariables;
|
|
6
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export class GraphQLGetSupportRequestsBwellRequestFactory {
|
|
2
|
-
create(request) {
|
|
3
|
-
var _a, _b, _c, _d, _e, _f;
|
|
4
|
-
const data = request === null || request === void 0 ? void 0 : request.data();
|
|
5
|
-
return {
|
|
6
|
-
input: {
|
|
7
|
-
page: (_a = data === null || data === void 0 ? void 0 : data.page) !== null && _a !== void 0 ? _a : null,
|
|
8
|
-
pageSize: (_b = data === null || data === void 0 ? void 0 : data.pageSize) !== null && _b !== void 0 ? _b : null,
|
|
9
|
-
search: (_c = data === null || data === void 0 ? void 0 : data.search) !== null && _c !== void 0 ? _c : null,
|
|
10
|
-
sortBy: (_d = data === null || data === void 0 ? void 0 : data.sortBy) !== null && _d !== void 0 ? _d : null,
|
|
11
|
-
sortOrder: (_e = data === null || data === void 0 ? void 0 : data.sortOrder) !== null && _e !== void 0 ? _e : null,
|
|
12
|
-
status: (_f = data === null || data === void 0 ? void 0 : data.status) !== null && _f !== void 0 ? _f : [],
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { CreateSupportRequestMutationVariables, DeleteSupportAttachmentMutationVariables, GetSupportRequestsQueryVariables, UploadSupportAttachmentMutationVariables } from "../../../graphql/operations/types.js";
|
|
2
|
-
import { LoggerProvider } from "../../../logger/index.js";
|
|
3
|
-
import { RequestFactory } from "../../../requests/index.js";
|
|
4
|
-
import { BWellQueryResult, BWellTransactionResult } from "../../../results/index.js";
|
|
5
|
-
import { BaseManagerError } from "../../base/errors.js";
|
|
6
|
-
import { CreateSupportRequestRequest } from "../../base/support/create-support-request-request.js";
|
|
7
|
-
import { DeleteSupportAttachmentRequest } from "../../base/support/delete-support-attachment-request.js";
|
|
8
|
-
import { GetSupportRequestsRequest } from "../../base/support/get-support-requests-request.js";
|
|
9
|
-
import type { SupportManager } from "../../base/support/support-manager.js";
|
|
10
|
-
import { CreateSupportRequestResults, DeleteSupportAttachmentResults, GetSupportCategoriesResults, GetSupportRequestsResults, UploadSupportAttachmentResults } from "../../base/support/support-manager.js";
|
|
11
|
-
import { UploadSupportAttachmentRequest } from "../../base/support/upload-support-attachment-request.js";
|
|
12
|
-
import { GraphQLManager } from "../graphql-manager/index.js";
|
|
13
|
-
import type { GraphQLSdk } from "../graphql-sdk/index.js";
|
|
14
|
-
export declare class GraphQLSupportManager extends GraphQLManager implements SupportManager {
|
|
15
|
-
#private;
|
|
16
|
-
constructor(sdk: GraphQLSdk, loggerProvider?: LoggerProvider, getSupportRequestsRequestFactory?: RequestFactory<GetSupportRequestsRequest, GetSupportRequestsQueryVariables>, uploadSupportAttachmentRequestFactory?: RequestFactory<UploadSupportAttachmentRequest, UploadSupportAttachmentMutationVariables>, deleteSupportAttachmentRequestFactory?: RequestFactory<DeleteSupportAttachmentRequest, DeleteSupportAttachmentMutationVariables>, createSupportRequestRequestFactory?: RequestFactory<CreateSupportRequestRequest, CreateSupportRequestMutationVariables>);
|
|
17
|
-
getSupportRequests(request: GetSupportRequestsRequest): Promise<BWellQueryResult<GetSupportRequestsResults, BaseManagerError>>;
|
|
18
|
-
uploadSupportAttachment(request: UploadSupportAttachmentRequest): Promise<BWellTransactionResult<UploadSupportAttachmentResults, BaseManagerError>>;
|
|
19
|
-
deleteSupportAttachment(request: DeleteSupportAttachmentRequest): Promise<BWellTransactionResult<DeleteSupportAttachmentResults, BaseManagerError>>;
|
|
20
|
-
createSupportRequest(request: CreateSupportRequestRequest): Promise<BWellTransactionResult<CreateSupportRequestResults, BaseManagerError>>;
|
|
21
|
-
getSupportCategories(): Promise<BWellQueryResult<GetSupportCategoriesResults, BaseManagerError>>;
|
|
22
|
-
}
|