@icanbwell/bwell-sdk-ts 1.55.0 → 1.56.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 +3 -19
- 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 +1 -2
- package/dist/api/base/activity/activity-manager.d.ts +25 -18
- package/dist/api/base/activity/get-tasks-request.d.ts +49 -29
- package/dist/api/base/activity/get-tasks-request.js +15 -42
- package/dist/api/base/activity/index.d.ts +4 -2
- package/dist/api/base/activity/index.js +1 -0
- package/dist/api/base/activity/types.d.ts +3 -0
- package/dist/api/base/activity/types.js +5 -0
- package/dist/api/base/activity/update-task-status-request.d.ts +18 -0
- package/dist/api/base/activity/update-task-status-request.js +15 -0
- package/dist/api/base/api-provider.d.ts +14 -12
- package/dist/api/base/connection/connection-manager.d.ts +51 -68
- package/dist/api/base/connection/connection-manager.js +0 -3
- package/dist/api/base/connection/connection-request.d.ts +1 -15
- package/dist/api/base/connection/connection-request.js +0 -8
- package/dist/api/base/connection/index.d.ts +1 -1
- package/dist/api/base/device/device-manager.d.ts +12 -34
- package/dist/api/base/device/device-manager.js +5 -1
- package/dist/api/base/device/device-request.d.ts +42 -35
- package/dist/api/base/device/device-request.js +42 -30
- package/dist/api/base/device/index.d.ts +2 -2
- package/dist/api/base/device/index.js +2 -2
- package/dist/api/base/event/event-manager.d.ts +16 -0
- package/dist/api/base/event/event-request.d.ts +35 -0
- package/dist/api/base/event/event-request.js +64 -0
- package/dist/api/base/event/index.d.ts +2 -0
- package/dist/api/base/event/index.js +1 -0
- package/dist/api/base/financial/coverage-request.d.ts +6 -5
- package/dist/api/base/financial/coverage-request.js +7 -7
- package/dist/api/base/financial/{explanation-of-benefit-request.d.ts → explanation-of-benefit.d.ts} +9 -15
- package/dist/api/base/financial/{explanation-of-benefit-request.js → explanation-of-benefit.js} +18 -8
- package/dist/api/base/financial/financial-manager.d.ts +14 -46
- package/dist/api/base/financial/index.d.ts +2 -3
- package/dist/api/base/financial/index.js +2 -2
- package/dist/api/base/health-data/health-data-request.d.ts +8 -116
- package/dist/api/base/health-data/health-data-request.js +2 -83
- package/dist/api/base/health-data/health-manager.d.ts +243 -293
- package/dist/api/base/health-data/index.d.ts +3 -2
- package/dist/api/base/health-data/index.js +2 -0
- package/dist/api/base/health-data/lab-knowledge-request.d.ts +0 -9
- package/dist/api/base/health-data/lab-knowledge-request.js +0 -3
- package/dist/api/base/health-data/medication-knowledge-request.d.ts +0 -9
- package/dist/api/base/health-data/medication-knowledge-request.js +0 -3
- package/dist/api/base/health-data/medication-pricing-request.d.ts +21 -0
- package/dist/api/base/health-data/medication-pricing-request.js +26 -0
- package/dist/api/base/health-data/medication-statement-request.d.ts +29 -0
- package/dist/api/base/health-data/medication-statement-request.js +35 -0
- package/dist/api/base/health-space/add-care-team-member-request.d.ts +33 -0
- package/dist/api/base/health-space/add-care-team-member-request.js +36 -0
- package/dist/api/base/health-space/add-care-team-members-request.d.ts +35 -0
- package/dist/api/base/health-space/add-care-team-members-request.js +61 -0
- package/dist/api/base/health-space/appointments-request.d.ts +0 -9
- package/dist/api/base/health-space/appointments-request.js +0 -3
- package/dist/api/base/health-space/cancel-appointment-request.d.ts +1 -8
- package/dist/api/base/health-space/cancel-appointment-request.js +0 -4
- package/dist/api/base/health-space/cancelationReasons-request.d.ts +16 -0
- package/dist/api/base/health-space/{cancellation-reasons-request.js → cancelationReasons-request.js} +4 -10
- package/dist/api/base/health-space/care-team-members-request.d.ts +31 -0
- package/dist/api/base/health-space/care-team-members-request.js +33 -0
- package/dist/api/base/health-space/health-space-manager.d.ts +116 -29
- package/dist/api/base/health-space/index.d.ts +7 -2
- package/dist/api/base/health-space/index.js +6 -1
- package/dist/api/base/health-space/remove-care-team-member-request.d.ts +34 -0
- package/dist/api/base/health-space/remove-care-team-member-request.js +36 -0
- package/dist/api/base/health-space/update-care-team-member-request.d.ts +55 -0
- package/dist/api/base/health-space/update-care-team-member-request.js +71 -0
- package/dist/api/base/identity/identity-manager.d.ts +11 -98
- package/dist/api/base/index.d.ts +3 -1
- package/dist/api/base/index.js +3 -2
- package/dist/api/base/questionnaire/index.d.ts +4 -1
- package/dist/api/base/questionnaire/index.js +3 -0
- package/dist/api/base/questionnaire/next-question-request.d.ts +2 -8
- package/dist/api/base/questionnaire/next-question-request.js +1 -4
- package/dist/api/base/questionnaire/questionnaire-manager.d.ts +42 -24
- package/dist/api/base/questionnaire/questionnaire-responses-request.d.ts +30 -0
- package/dist/api/base/questionnaire/questionnaire-responses-request.js +49 -0
- package/dist/api/base/questionnaire/questionnaires-request.d.ts +18 -0
- package/dist/api/base/questionnaire/questionnaires-request.js +42 -0
- package/dist/api/base/questionnaire/save-questionnaire-response-request.d.ts +22 -0
- package/dist/api/base/questionnaire/save-questionnaire-response-request.js +33 -0
- package/dist/api/base/requests/index.d.ts +0 -2
- package/dist/api/base/requests/search-date.d.ts +0 -12
- package/dist/api/base/requests/search-reference.d.ts +1 -9
- package/dist/api/base/requests/search-string.d.ts +0 -6
- package/dist/api/base/requests/search-token.d.ts +0 -18
- package/dist/api/base/requests/search-token.js +17 -17
- package/dist/api/base/search/index.d.ts +5 -3
- package/dist/api/base/search/index.js +3 -1
- package/dist/api/base/search/request-connection-request.d.ts +24 -0
- package/dist/api/base/search/request-connection-request.js +3 -0
- package/dist/api/base/search/search-health-resources-request.d.ts +44 -33
- package/dist/api/base/search/search-health-resources-request.js +0 -3
- package/dist/api/base/search/search-manager.d.ts +42 -39
- package/dist/api/base/search/search-request.d.ts +84 -0
- package/dist/api/base/search/search-request.js +78 -0
- package/dist/api/base/support/create-support-comment-request.d.ts +13 -0
- package/dist/api/base/support/create-support-comment-request.js +18 -0
- package/dist/api/base/support/create-support-request-request.d.ts +22 -0
- package/dist/api/base/support/create-support-request-request.js +20 -0
- package/dist/api/base/support/delete-support-attachment-request.d.ts +11 -0
- package/dist/api/base/support/delete-support-attachment-request.js +14 -0
- package/dist/api/base/support/get-support-articles-request.d.ts +14 -0
- package/dist/api/base/support/get-support-articles-request.js +12 -0
- package/dist/api/base/support/get-support-attachment-request.d.ts +14 -0
- package/dist/api/base/support/get-support-attachment-request.js +18 -0
- package/dist/api/base/support/get-support-comments-request.d.ts +14 -0
- package/dist/api/base/support/get-support-comments-request.js +15 -0
- package/dist/api/base/support/get-support-requests-request.d.ts +16 -0
- package/dist/api/base/support/get-support-requests-request.js +14 -0
- package/dist/api/base/support/index.d.ts +9 -0
- package/dist/api/base/support/index.js +9 -0
- package/dist/api/base/support/support-manager.d.ts +78 -0
- package/dist/api/base/support/upload-support-attachment-request.d.ts +25 -0
- package/dist/api/base/support/upload-support-attachment-request.js +27 -0
- package/dist/api/base/user/create-consent-request.d.ts +1 -13
- package/dist/api/base/user/create-consent-request.js +5 -10
- package/dist/api/base/user/create-data-export-direct-download-url-request.d.ts +0 -9
- package/dist/api/base/user/create-data-export-direct-download-url-request.js +0 -3
- package/dist/api/base/user/create-verification-url-request.d.ts +0 -12
- package/dist/api/base/user/create-verification-url-request.js +0 -6
- package/dist/api/base/user/get-consents-request.d.ts +1 -19
- package/dist/api/base/user/get-consents-request.js +1 -13
- package/dist/api/base/user/index.d.ts +2 -1
- package/dist/api/base/user/types.d.ts +9 -0
- package/dist/api/base/user/types.js +17 -0
- package/dist/api/base/user/update-profile-request.d.ts +3 -11
- package/dist/api/base/user/update-profile-request.js +3 -5
- package/dist/api/base/user/user-manager.d.ts +49 -100
- package/dist/api/graphql-api/activity/{get-tasks-request-factory.d.ts → activity-request-factories.d.ts} +7 -0
- package/dist/api/graphql-api/activity/activity-request-factories.js +70 -0
- package/dist/api/graphql-api/activity/graphql-activity-manager.d.ts +8 -6
- package/dist/api/graphql-api/activity/graphql-activity-manager.js +30 -19
- 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/graphql-connection-manager.d.ts +9 -9
- package/dist/api/graphql-api/connection/graphql-connection-manager.js +5 -7
- package/dist/api/graphql-api/connection/graphql-get-member-connections-bwell-response-factory.d.ts +18 -0
- package/dist/api/graphql-api/connection/graphql-get-member-connections-bwell-response-factory.js +40 -0
- package/dist/api/graphql-api/connection/index.d.ts +1 -0
- package/dist/api/graphql-api/connection/index.js +1 -1
- package/dist/api/graphql-api/device/graphql-device-manager.d.ts +1 -2
- package/dist/api/graphql-api/device/graphql-device-manager.js +2 -4
- package/dist/api/graphql-api/errors/errors.js +1 -1
- package/dist/api/graphql-api/event/event-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/event/event-request-factory.js +11 -0
- package/dist/api/graphql-api/event/graphql-event-manager.d.ts +15 -0
- package/dist/api/graphql-api/event/graphql-event-manager.js +65 -0
- package/dist/api/graphql-api/event/index.d.ts +1 -0
- package/dist/api/graphql-api/event/index.js +1 -0
- package/dist/api/graphql-api/financial/graphql-coverages-bwell-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/financial/graphql-coverages-bwell-request-factory.js +17 -0
- package/dist/api/graphql-api/financial/{explanation-of-benefit-request-factory.d.ts → graphql-explanation-of-benefits-factory.d.ts} +3 -3
- package/dist/api/graphql-api/financial/graphql-explanation-of-benefits-factory.js +23 -0
- package/dist/api/graphql-api/financial/graphql-financial-manager.d.ts +12 -4
- package/dist/api/graphql-api/financial/graphql-financial-manager.js +19 -32
- package/dist/api/graphql-api/financial/index.d.ts +1 -3
- package/dist/api/graphql-api/financial/index.js +1 -3
- package/dist/api/graphql-api/graphql-api-provider.d.ts +14 -6
- package/dist/api/graphql-api/graphql-api-provider.js +7 -6
- package/dist/api/graphql-api/health-space/add-care-team-member-request-factory.d.ts +20 -0
- package/dist/api/graphql-api/health-space/add-care-team-member-request-factory.js +29 -0
- package/dist/api/graphql-api/health-space/add-care-team-members-request-factory.d.ts +16 -0
- package/dist/api/graphql-api/health-space/add-care-team-members-request-factory.js +23 -0
- package/dist/api/graphql-api/health-space/cancel-appointment-request-factory.js +2 -1
- package/dist/api/graphql-api/health-space/care-team-factory-utils.d.ts +23 -0
- package/dist/api/graphql-api/health-space/care-team-factory-utils.js +30 -0
- package/dist/api/graphql-api/health-space/care-team-members-request-factory.d.ts +12 -0
- package/dist/api/graphql-api/health-space/care-team-members-request-factory.js +17 -0
- package/dist/api/graphql-api/health-space/graphql-health-space-manager.d.ts +62 -5
- package/dist/api/graphql-api/health-space/graphql-health-space-manager.js +163 -9
- package/dist/api/graphql-api/health-space/index.d.ts +4 -0
- package/dist/api/graphql-api/health-space/index.js +4 -0
- package/dist/api/graphql-api/health-space/remove-care-team-member-request-factory.d.ts +16 -0
- package/dist/api/graphql-api/health-space/remove-care-team-member-request-factory.js +24 -0
- package/dist/api/graphql-api/health-space/update-care-team-member-request-factory.d.ts +16 -0
- package/dist/api/graphql-api/health-space/update-care-team-member-request-factory.js +20 -0
- package/dist/api/graphql-api/healthdata/graphql-diagnostic-reports-bwell-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/healthdata/graphql-diagnostic-reports-bwell-request-factory.js +12 -0
- package/dist/api/graphql-api/healthdata/graphql-get-medication-dispense-bwell-response-factory.d.ts +10 -0
- package/dist/api/graphql-api/healthdata/graphql-get-medication-dispense-bwell-response-factory.js +35 -0
- package/dist/api/graphql-api/healthdata/graphql-get-medication-request-bwell-response-factory.d.ts +10 -0
- package/dist/api/graphql-api/healthdata/graphql-get-medication-request-bwell-response-factory.js +35 -0
- package/dist/api/graphql-api/healthdata/graphql-health-manager.d.ts +41 -30
- package/dist/api/graphql-api/healthdata/graphql-health-manager.js +256 -311
- package/dist/api/graphql-api/healthdata/graphql-update-medication-statement-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/healthdata/graphql-update-medication-statement-request-factory.js +11 -0
- package/dist/api/graphql-api/identity/graphql-identity-manager.d.ts +1 -2
- package/dist/api/graphql-api/identity/graphql-identity-manager.js +3 -5
- package/dist/api/graphql-api/questionnaire/get-questionnaire-responses-request-factory.d.ts +9 -0
- package/dist/api/graphql-api/questionnaire/get-questionnaire-responses-request-factory.js +22 -0
- package/dist/api/graphql-api/questionnaire/get-questionnaires-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/questionnaire/get-questionnaires-request-factory.js +16 -0
- package/dist/api/graphql-api/questionnaire/graphql-questionnaire-manager.d.ts +22 -4
- package/dist/api/graphql-api/questionnaire/graphql-questionnaire-manager.js +69 -4
- package/dist/api/graphql-api/questionnaire/index.d.ts +2 -0
- package/dist/api/graphql-api/questionnaire/index.js +2 -0
- package/dist/api/graphql-api/search/connection-search-request-factory.d.ts +7 -0
- package/dist/api/graphql-api/search/connection-search-request-factory.js +21 -0
- package/dist/api/graphql-api/search/graphql-search-manager.d.ts +6 -4
- package/dist/api/graphql-api/search/graphql-search-manager.js +71 -9
- package/dist/api/graphql-api/search/index.d.ts +1 -0
- package/dist/api/graphql-api/search/index.js +1 -0
- package/dist/api/graphql-api/search/provider-search-request-factory.d.ts +7 -0
- package/dist/api/graphql-api/search/provider-search-request-factory.js +21 -0
- package/dist/api/graphql-api/search/request-connection-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/search/{submit-provider-for-review-request-factory.js → request-connection-request-factory.js} +1 -1
- package/dist/api/graphql-api/search/search-health-resources-request-factory.js +11 -12
- package/dist/api/graphql-api/search/search-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/search/search-request-factory.js +44 -0
- package/dist/api/graphql-api/support/create-support-comment-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/support/create-support-comment-request-factory.js +12 -0
- package/dist/api/graphql-api/support/create-support-request-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/support/create-support-request-request-factory.js +19 -0
- package/dist/api/graphql-api/support/delete-support-attachment-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/support/delete-support-attachment-request-factory.js +10 -0
- package/dist/api/graphql-api/support/get-support-articles-bwell-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/support/get-support-articles-bwell-request-factory.js +15 -0
- package/dist/api/graphql-api/support/get-support-attachment-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/support/get-support-attachment-request-factory.js +11 -0
- package/dist/api/graphql-api/support/get-support-comments-bwell-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/support/get-support-comments-bwell-request-factory.js +14 -0
- package/dist/api/graphql-api/support/get-support-requests-bwell-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/support/get-support-requests-bwell-request-factory.js +16 -0
- package/dist/api/graphql-api/support/graphql-support-manager.d.ts +28 -0
- package/dist/api/graphql-api/support/graphql-support-manager.js +210 -0
- package/dist/api/graphql-api/support/index.d.ts +1 -0
- package/dist/api/graphql-api/support/index.js +1 -0
- package/dist/api/graphql-api/support/upload-support-attachment-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/support/upload-support-attachment-request-factory.js +11 -0
- package/dist/api/graphql-api/user/create-data-export-direct-download-url-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/user/create-data-export-direct-download-url-request-factory.js +9 -0
- package/dist/api/graphql-api/user/get-consent-request-factory.d.ts +2 -1
- package/dist/api/graphql-api/user/get-consent-request-factory.js +1 -5
- package/dist/api/graphql-api/user/graphql-user-manager.d.ts +11 -10
- package/dist/api/graphql-api/user/graphql-user-manager.js +10 -11
- package/dist/api/graphql-api/user/update-profile-request-factory.js +2 -1
- package/dist/api/identity-manager-factory.js +1 -1
- package/dist/auth/auth-code-strategy.d.ts +1 -2
- 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 +1 -2
- package/dist/auth/username-password-strategy.d.ts +1 -2
- package/dist/auth/username-password-strategy.js +2 -2
- package/dist/bwell-sdk/bwell-sdk.d.ts +48 -319
- package/dist/bwell-sdk/bwell-sdk.js +53 -368
- package/dist/config/bwell-config.d.ts +12 -12
- package/dist/config/bwell-config.js +5 -2
- package/dist/config/sdk-config.d.ts +3 -2
- package/dist/config/sdk-config.js +6 -4
- package/dist/errors/authentication-error.d.ts +0 -7
- package/dist/errors/authentication-error.js +0 -7
- package/dist/errors/bwell-error.d.ts +2 -12
- package/dist/errors/bwell-error.js +2 -5
- package/dist/errors/illegal-argument-error.d.ts +0 -7
- package/dist/errors/illegal-argument-error.js +0 -7
- package/dist/errors/illegal-state-error.d.ts +0 -7
- package/dist/errors/illegal-state-error.js +0 -7
- package/dist/errors/invalid-client-key-error.d.ts +0 -7
- package/dist/errors/invalid-client-key-error.js +0 -7
- package/dist/errors/invalid-credentials-type-error.d.ts +0 -7
- package/dist/errors/invalid-credentials-type-error.js +0 -7
- package/dist/errors/invalid-token-error.d.ts +1 -4
- package/dist/errors/invalid-token-error.js +1 -4
- package/dist/errors/network-error.d.ts +0 -7
- package/dist/errors/network-error.js +0 -7
- package/dist/errors/operation-outcome-error.d.ts +1 -8
- package/dist/errors/operation-outcome-error.js +0 -7
- package/dist/errors/unknown-error.d.ts +0 -7
- package/dist/errors/unknown-error.js +0 -7
- package/dist/errors/validation-error.d.ts +0 -7
- package/dist/errors/validation-error.js +0 -7
- package/dist/graphql/operations/index.d.ts +315 -116
- package/dist/graphql/operations/index.js +2235 -1815
- package/dist/graphql/operations/types.d.ts +17800 -15757
- package/dist/graphql/schema.d.ts +5904 -68232
- package/dist/graphql/schema.js +484 -1
- package/dist/index.d.ts +5 -7
- package/dist/index.js +4 -5
- package/dist/language/language-manager.d.ts +10 -25
- package/dist/language/language-manager.js +0 -5
- package/dist/models/coding.d.ts +5 -0
- package/dist/models/fhir-error.d.ts +9 -0
- package/dist/models/index.d.ts +4 -12
- package/dist/models/index.js +4 -12
- package/dist/models/user.d.ts +4 -0
- package/dist/requests/paged-request.d.ts +0 -35
- package/dist/requests/paged-request.js +0 -22
- package/dist/requests/request.d.ts +0 -16
- package/dist/requests/request.js +0 -8
- package/dist/requests/validator.d.ts +0 -15
- package/dist/requests/validator.js +0 -7
- package/dist/results/bwell-query-result.d.ts +0 -5
- package/dist/results/bwell-query-result.js +0 -5
- package/dist/results/bwell-transaction-result.d.ts +3 -17
- package/dist/results/bwell-transaction-result.js +1 -15
- package/dist/results/index.d.ts +0 -1
- package/dist/results/index.js +0 -1
- package/dist/telemetry/open-telemetry-instrumentation.js +4 -1
- package/dist/tokens/index.d.ts +0 -2
- package/dist/tokens/index.js +0 -2
- package/dist/tokens/jwt-token-manager.d.ts +7 -3
- package/dist/tokens/jwt-token-manager.js +8 -9
- package/dist/tokens/token-storage.d.ts +0 -20
- package/dist/tokens/token-storage.js +0 -19
- package/dist/utils/date-utils.d.ts +6 -0
- package/dist/utils/date-utils.js +8 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/parsing-utils.d.ts +1 -11
- package/dist/utils/parsing-utils.js +1 -33
- package/package.json +19 -23
- package/dist/api/base/device/constants.d.ts +0 -3
- package/dist/api/base/device/constants.js +0 -3
- package/dist/api/base/health-data/health-data-response-factory.d.ts +0 -27
- package/dist/api/base/health-space/cancellation-reasons-request.d.ts +0 -28
- package/dist/api/base/requests/field-sort-order.d.ts +0 -11
- package/dist/api/base/search/submit-provider-for-review-request.d.ts +0 -33
- package/dist/api/base/search/submit-provider-for-review-request.js +0 -9
- package/dist/api/base/user/validators.d.ts +0 -5
- package/dist/api/base/user/validators.js +0 -13
- package/dist/api/graphql-api/activity/get-tasks-request-factory.js +0 -56
- package/dist/api/graphql-api/connection/connection-response-factory.d.ts +0 -7
- package/dist/api/graphql-api/connection/connection-response-factory.js +0 -101
- package/dist/api/graphql-api/financial/coverage-request-factory.d.ts +0 -9
- package/dist/api/graphql-api/financial/coverage-request-factory.js +0 -19
- package/dist/api/graphql-api/financial/explanation-of-benefit-request-factory.js +0 -19
- package/dist/api/graphql-api/healthdata/get-encounters-request-factory.d.ts +0 -7
- package/dist/api/graphql-api/healthdata/get-encounters-request-factory.js +0 -76
- package/dist/api/graphql-api/healthdata/get-medication-dispenses-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/healthdata/get-medication-dispenses-request-factory.js +0 -25
- package/dist/api/graphql-api/healthdata/health-data-request-factory.d.ts +0 -18
- package/dist/api/graphql-api/healthdata/health-data-request-factory.js +0 -25
- package/dist/api/graphql-api/healthdata/health-data-response-factory.d.ts +0 -8
- package/dist/api/graphql-api/healthdata/health-data-response-factory.js +0 -58
- package/dist/api/graphql-api/search/submit-provider-for-review-request-factory.d.ts +0 -6
- package/dist/models/activity/index.d.ts +0 -1
- package/dist/models/activity/task.d.ts +0 -77
- package/dist/models/activity/task.js +0 -1
- package/dist/models/common/address.d.ts +0 -41
- package/dist/models/common/address.js +0 -1
- package/dist/models/common/annotation.d.ts +0 -18
- package/dist/models/common/annotation.js +0 -1
- package/dist/models/common/attachment.d.ts +0 -18
- package/dist/models/common/attachment.js +0 -1
- package/dist/models/common/bundle.d.ts +0 -83
- package/dist/models/common/bundle.js +0 -1
- package/dist/models/common/codeable-concept.d.ts +0 -17
- package/dist/models/common/codeable-concept.js +0 -1
- package/dist/models/common/coding.d.ts +0 -18
- package/dist/models/common/component.d.ts +0 -23
- package/dist/models/common/component.js +0 -1
- package/dist/models/common/contact-point.d.ts +0 -32
- package/dist/models/common/contact-point.js +0 -1
- package/dist/models/common/dispense-request.d.ts +0 -67
- package/dist/models/common/dispense-request.js +0 -1
- package/dist/models/common/dosage.d.ts +0 -68
- package/dist/models/common/dosage.js +0 -1
- package/dist/models/common/endpoint.d.ts +0 -23
- package/dist/models/common/endpoint.js +0 -1
- package/dist/models/common/expression.d.ts +0 -20
- package/dist/models/common/expression.js +0 -1
- package/dist/models/common/extension.d.ts +0 -49
- package/dist/models/common/extension.js +0 -1
- package/dist/models/common/fhir-error.d.ts +0 -23
- package/dist/models/common/human-name.d.ts +0 -20
- package/dist/models/common/human-name.js +0 -1
- package/dist/models/common/identifier.d.ts +0 -19
- package/dist/models/common/identifier.js +0 -1
- package/dist/models/common/index.d.ts +0 -38
- package/dist/models/common/index.js +0 -2
- package/dist/models/common/location.d.ts +0 -51
- package/dist/models/common/location.js +0 -1
- package/dist/models/common/medication.d.ts +0 -42
- package/dist/models/common/medication.js +0 -1
- package/dist/models/common/meta.d.ts +0 -21
- package/dist/models/common/meta.js +0 -1
- package/dist/models/common/money.d.ts +0 -15
- package/dist/models/common/money.js +0 -1
- package/dist/models/common/narrative.d.ts +0 -14
- package/dist/models/common/narrative.js +0 -1
- package/dist/models/common/operation-outcome.d.ts +0 -48
- package/dist/models/common/operation-outcome.js +0 -1
- package/dist/models/common/organization.d.ts +0 -46
- package/dist/models/common/organization.js +0 -1
- package/dist/models/common/paging-info.d.ts +0 -18
- package/dist/models/common/paging-info.js +0 -1
- package/dist/models/common/patient.d.ts +0 -13
- package/dist/models/common/patient.js +0 -1
- package/dist/models/common/period.d.ts +0 -14
- package/dist/models/common/period.js +0 -1
- package/dist/models/common/practitioner-role.d.ts +0 -42
- package/dist/models/common/practitioner-role.js +0 -1
- package/dist/models/common/practitioner.d.ts +0 -17
- package/dist/models/common/practitioner.js +0 -1
- package/dist/models/common/quantity.d.ts +0 -20
- package/dist/models/common/quantity.js +0 -1
- package/dist/models/common/range.d.ts +0 -15
- package/dist/models/common/range.js +0 -1
- package/dist/models/common/ratio.d.ts +0 -15
- package/dist/models/common/ratio.js +0 -1
- package/dist/models/common/reference-range.d.ts +0 -13
- package/dist/models/common/reference-range.js +0 -1
- package/dist/models/common/reference.d.ts +0 -27
- package/dist/models/common/reference.js +0 -1
- package/dist/models/common/related-person.d.ts +0 -34
- package/dist/models/common/related-person.js +0 -1
- package/dist/models/common/score.d.ts +0 -16
- package/dist/models/common/score.js +0 -1
- package/dist/models/common/service-request.d.ts +0 -21
- package/dist/models/common/service-request.js +0 -1
- package/dist/models/common/specimen.d.ts +0 -30
- package/dist/models/common/specimen.js +0 -7
- package/dist/models/common/timing.d.ts +0 -107
- package/dist/models/common/timing.js +0 -1
- package/dist/models/common/value.d.ts +0 -22
- package/dist/models/common/value.js +0 -1
- package/dist/models/connection/base-connection.d.ts +0 -27
- package/dist/models/connection/base-connection.js +0 -1
- package/dist/models/connection/connection-status.d.ts +0 -15
- package/dist/models/connection/connection-status.js +0 -1
- package/dist/models/connection/connection.d.ts +0 -32
- package/dist/models/connection/connection.js +0 -1
- package/dist/models/connection/data-source.d.ts +0 -27
- package/dist/models/connection/data-source.js +0 -1
- package/dist/models/connection/index.d.ts +0 -6
- package/dist/models/connection/index.js +0 -1
- package/dist/models/connection/member-connection.d.ts +0 -37
- package/dist/models/connection/member-connection.js +0 -1
- package/dist/models/connection/oauth-url.d.ts +0 -12
- package/dist/models/connection/oauth-url.js +0 -1
- package/dist/models/device/device-registration-results.d.ts +0 -12
- package/dist/models/device/device-registration-results.js +0 -1
- package/dist/models/device/index.d.ts +0 -1
- package/dist/models/device/index.js +0 -1
- package/dist/models/enums/category-code.d.ts +0 -11
- package/dist/models/enums/category-code.js +0 -13
- package/dist/models/enums/connection-category.d.ts +0 -9
- package/dist/models/enums/connection-category.js +0 -1
- package/dist/models/enums/consent-provision-type.d.ts +0 -11
- package/dist/models/enums/consent-provision-type.js +0 -2
- package/dist/models/enums/consent-status.d.ts +0 -11
- package/dist/models/enums/consent-status.js +0 -9
- package/dist/models/enums/data-connection-status.d.ts +0 -9
- package/dist/models/enums/data-connection-status.js +0 -1
- package/dist/models/enums/data-connection-type.d.ts +0 -9
- package/dist/models/enums/data-connection-type.js +0 -1
- package/dist/models/enums/data-set.d.ts +0 -10
- package/dist/models/enums/data-set.js +0 -1
- package/dist/models/enums/device-platform.d.ts +0 -11
- package/dist/models/enums/device-platform.js +0 -2
- package/dist/models/enums/endpoint-status.d.ts +0 -9
- package/dist/models/enums/endpoint-status.js +0 -1
- package/dist/models/enums/filter-field.d.ts +0 -9
- package/dist/models/enums/filter-field.js +0 -1
- package/dist/models/enums/gender.d.ts +0 -9
- package/dist/models/enums/gender.js +0 -1
- package/dist/models/enums/index.d.ts +0 -18
- package/dist/models/enums/index.js +0 -5
- package/dist/models/enums/log-level.d.ts +0 -8
- package/dist/models/enums/log-level.js +0 -1
- package/dist/models/enums/person-gender.d.ts +0 -11
- package/dist/models/enums/person-gender.js +0 -7
- package/dist/models/enums/search-context.d.ts +0 -10
- package/dist/models/enums/search-context.js +0 -1
- package/dist/models/enums/search-result-type.d.ts +0 -9
- package/dist/models/enums/search-result-type.js +0 -1
- package/dist/models/enums/sort-field.d.ts +0 -10
- package/dist/models/enums/sort-field.js +0 -1
- package/dist/models/enums/sort-order.d.ts +0 -9
- package/dist/models/enums/sort-order.js +0 -1
- package/dist/models/enums/sync-status.d.ts +0 -9
- package/dist/models/enums/sync-status.js +0 -1
- package/dist/models/financial/coverage-bundle.d.ts +0 -18
- package/dist/models/financial/coverage-bundle.js +0 -1
- package/dist/models/financial/coverage.d.ts +0 -65
- package/dist/models/financial/coverage.js +0 -1
- package/dist/models/financial/explanation-of-benefit-bundle.d.ts +0 -26
- package/dist/models/financial/explanation-of-benefit-bundle.js +0 -1
- package/dist/models/financial/explanation-of-benefit.d.ts +0 -274
- package/dist/models/financial/explanation-of-benefit.js +0 -1
- package/dist/models/financial/index.d.ts +0 -4
- package/dist/models/financial/index.js +0 -4
- package/dist/models/health-data/allergy-intolerance-bundle.d.ts +0 -11
- package/dist/models/health-data/allergy-intolerance-bundle.js +0 -1
- package/dist/models/health-data/allergy-intolerance-group.d.ts +0 -44
- package/dist/models/health-data/allergy-intolerance-group.js +0 -1
- package/dist/models/health-data/allergy-intolerance-reaction.d.ts +0 -23
- package/dist/models/health-data/allergy-intolerance-reaction.js +0 -1
- package/dist/models/health-data/allergy-intolerance.d.ts +0 -54
- package/dist/models/health-data/allergy-intolerance.js +0 -1
- package/dist/models/health-data/care-plan-group.d.ts +0 -42
- package/dist/models/health-data/care-plan-group.js +0 -1
- package/dist/models/health-data/care-plan.d.ts +0 -134
- package/dist/models/health-data/care-plan.js +0 -1
- package/dist/models/health-data/care-team.d.ts +0 -77
- package/dist/models/health-data/care-team.js +0 -1
- package/dist/models/health-data/condition-group.d.ts +0 -42
- package/dist/models/health-data/condition-group.js +0 -1
- package/dist/models/health-data/condition.d.ts +0 -104
- package/dist/models/health-data/condition.js +0 -1
- package/dist/models/health-data/diagnostic-report-lab-group.d.ts +0 -45
- package/dist/models/health-data/diagnostic-report-lab-group.js +0 -1
- package/dist/models/health-data/diagnostic-report.d.ts +0 -90
- package/dist/models/health-data/diagnostic-report.js +0 -1
- package/dist/models/health-data/encounter-group.d.ts +0 -48
- package/dist/models/health-data/encounter-group.js +0 -1
- package/dist/models/health-data/encounter.d.ts +0 -79
- package/dist/models/health-data/encounter.js +0 -1
- package/dist/models/health-data/health-summary.d.ts +0 -18
- package/dist/models/health-data/health-summary.js +0 -1
- package/dist/models/health-data/immunization-group.d.ts +0 -41
- package/dist/models/health-data/immunization-group.js +0 -1
- package/dist/models/health-data/immunization.d.ts +0 -150
- package/dist/models/health-data/immunization.js +0 -1
- package/dist/models/health-data/index.d.ts +0 -30
- package/dist/models/health-data/index.js +0 -1
- package/dist/models/health-data/lab-bundle.d.ts +0 -26
- package/dist/models/health-data/lab-bundle.js +0 -1
- package/dist/models/health-data/lab-group.d.ts +0 -51
- package/dist/models/health-data/lab-group.js +0 -1
- package/dist/models/health-data/lab-knowledge.d.ts +0 -28
- package/dist/models/health-data/lab-knowledge.js +0 -1
- package/dist/models/health-data/medication-dispense.d.ts +0 -108
- package/dist/models/health-data/medication-dispense.js +0 -1
- package/dist/models/health-data/medication-group.d.ts +0 -43
- package/dist/models/health-data/medication-group.js +0 -1
- package/dist/models/health-data/medication-knowledge.d.ts +0 -30
- package/dist/models/health-data/medication-knowledge.js +0 -1
- package/dist/models/health-data/medication-pricing.d.ts +0 -28
- package/dist/models/health-data/medication-pricing.js +0 -1
- package/dist/models/health-data/medication-request.d.ts +0 -107
- package/dist/models/health-data/medication-request.js +0 -1
- package/dist/models/health-data/medication-statement.d.ts +0 -68
- package/dist/models/health-data/medication-statement.js +0 -1
- package/dist/models/health-data/observation.d.ts +0 -102
- package/dist/models/health-data/observation.js +0 -1
- package/dist/models/health-data/procedure-group.d.ts +0 -43
- package/dist/models/health-data/procedure-group.js +0 -1
- package/dist/models/health-data/procedure.d.ts +0 -84
- package/dist/models/health-data/procedure.js +0 -1
- package/dist/models/health-data/vital-sign-bundle.d.ts +0 -18
- package/dist/models/health-data/vital-sign-bundle.js +0 -1
- package/dist/models/health-data/vital-sign-group.d.ts +0 -51
- package/dist/models/health-data/vital-sign-group.js +0 -1
- package/dist/models/health-space/appointment-bundle.d.ts +0 -11
- package/dist/models/health-space/appointment-bundle.js +0 -1
- package/dist/models/health-space/appointment-participant.d.ts +0 -17
- package/dist/models/health-space/appointment-participant.js +0 -1
- package/dist/models/health-space/appointment-update.d.ts +0 -14
- package/dist/models/health-space/appointment-update.js +0 -1
- package/dist/models/health-space/appointment.d.ts +0 -30
- package/dist/models/health-space/appointment.js +0 -1
- package/dist/models/health-space/cancellation-reasons.d.ts +0 -32
- package/dist/models/health-space/cancellation-reasons.js +0 -1
- package/dist/models/health-space/index.d.ts +0 -5
- package/dist/models/health-space/index.js +0 -1
- package/dist/models/identity/auth-tokens.d.ts +0 -25
- package/dist/models/identity/auth-tokens.js +0 -1
- package/dist/models/identity/create-guest-access-token-results.d.ts +0 -12
- package/dist/models/identity/create-guest-access-token-results.js +0 -1
- package/dist/models/identity/index.d.ts +0 -4
- package/dist/models/identity/index.js +0 -1
- package/dist/models/identity/refresh-token-results.d.ts +0 -8
- package/dist/models/identity/refresh-token-results.js +0 -1
- package/dist/models/identity/sdk-configuration-result.d.ts +0 -26
- package/dist/models/identity/sdk-configuration-result.js +0 -1
- package/dist/models/questionnaire/index.d.ts +0 -5
- package/dist/models/questionnaire/index.js +0 -1
- package/dist/models/questionnaire/questionnaire-item.d.ts +0 -38
- package/dist/models/questionnaire/questionnaire-item.js +0 -1
- package/dist/models/questionnaire/questionnaire-response-answer.d.ts +0 -33
- package/dist/models/questionnaire/questionnaire-response-answer.js +0 -1
- package/dist/models/questionnaire/questionnaire-response-item.d.ts +0 -19
- package/dist/models/questionnaire/questionnaire-response-item.js +0 -1
- package/dist/models/questionnaire/questionnaire-response.d.ts +0 -29
- package/dist/models/questionnaire/questionnaire-response.js +0 -1
- package/dist/models/questionnaire/questionnaire.d.ts +0 -30
- package/dist/models/questionnaire/questionnaire.js +0 -1
- package/dist/models/search/health-resources.d.ts +0 -133
- package/dist/models/search/health-resources.js +0 -1
- package/dist/models/search/index.d.ts +0 -2
- package/dist/models/search/index.js +0 -1
- package/dist/models/search/provider-review-result.d.ts +0 -15
- package/dist/models/search/provider-review-result.js +0 -1
- package/dist/models/user/consent.d.ts +0 -100
- package/dist/models/user/consent.js +0 -1
- package/dist/models/user/index.d.ts +0 -4
- package/dist/models/user/index.js +0 -1
- package/dist/models/user/person.d.ts +0 -43
- package/dist/models/user/person.js +0 -1
- package/dist/models/user/user.d.ts +0 -12
- package/dist/models/user/user.js +0 -1
- package/dist/models/user/verification-result.d.ts +0 -30
- package/dist/models/user/verification-result.js +0 -1
- package/dist/tokens/load-auth-tokens.d.ts +0 -6
- package/dist/tokens/load-auth-tokens.js +0 -43
- package/dist/tokens/token-manager.d.ts +0 -12
- package/dist/tokens/token-manager.js +0 -5
- package/dist/utils/search-token-utils.d.ts +0 -8
- package/dist/utils/search-token-utils.js +0 -23
- /package/dist/api/base/{health-data/health-data-response-factory.js → event/event-manager.js} +0 -0
- /package/dist/api/base/{requests/field-sort-order.js → support/support-manager.js} +0 -0
- /package/dist/models/{common/coding.js → coding.js} +0 -0
- /package/dist/models/{common/fhir-error.js → fhir-error.js} +0 -0
- /package/dist/{results → models}/operation-outcome.d.ts +0 -0
- /package/dist/{results → models}/operation-outcome.js +0 -0
- /package/dist/models/{activity/index.js → user.js} +0 -0
|
@@ -1,58 +1,145 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AddCareTeamMemberMutationResults, AddCareTeamMembersMutationResults, AppointmentsQueryResults, CancelAppointmentMutationResults, CancelationReasonsQueryResults, CareTeamMembersQueryResults, RemoveCareTeamMemberMutationResults, UpdateCareTeamMemberMutationResults } from "../../../graphql/operations/types.js";
|
|
2
2
|
import { BWellQueryResult, BWellTransactionResult } from "../../../results/index.js";
|
|
3
3
|
import { BaseManagerError } from "../errors.js";
|
|
4
|
+
import { AddCareTeamMemberRequest } from "./add-care-team-member-request.js";
|
|
5
|
+
import { AddCareTeamMembersRequest } from "./add-care-team-members-request.js";
|
|
4
6
|
import { AppointmentsRequest } from "./appointments-request.js";
|
|
5
7
|
import { CancelAppointmentRequest } from "./cancel-appointment-request.js";
|
|
6
|
-
import {
|
|
8
|
+
import { CancelationReasonsRequest } from "./cancelationReasons-request.js";
|
|
9
|
+
import { CareTeamMembersRequest } from "./care-team-members-request.js";
|
|
10
|
+
import { RemoveCareTeamMemberRequest } from "./remove-care-team-member-request.js";
|
|
11
|
+
import { UpdateCareTeamMemberRequest } from "./update-care-team-member-request.js";
|
|
12
|
+
export type AppointmentsResults = AppointmentsQueryResults["appointments"];
|
|
13
|
+
export type CancelAppointmentResults = CancelAppointmentMutationResults["updateAppointment"];
|
|
14
|
+
export type CancelationReasonsResults = CancelationReasonsQueryResults["cancelationReasons"];
|
|
15
|
+
export type CareTeamMembersResults = CareTeamMembersQueryResults["careTeamMembers"];
|
|
7
16
|
/**
|
|
8
|
-
*
|
|
9
|
-
* Provides methods for managing appointments and cancelation handling.
|
|
10
|
-
* @title HealthSpaceManager
|
|
11
|
-
* @excerpt Health Space Manager for appointments, scheduling, and healthcare facility management
|
|
12
|
-
* @category Managers
|
|
17
|
+
* Interface representing a manager for handling operations related to health spaces.
|
|
13
18
|
*/
|
|
14
19
|
export interface HealthSpaceManager {
|
|
15
20
|
/**
|
|
16
|
-
* Retrieves appointment information
|
|
17
|
-
*
|
|
21
|
+
* Retrieves appointment information based on the provided request.
|
|
22
|
+
*
|
|
23
|
+
* @param request - The request object containing parameters for fetching appointments.
|
|
24
|
+
* @returns A promise that resolves to a `BWellQueryResult` containing the appointment results
|
|
25
|
+
* or an error of type `BaseManagerError`.
|
|
26
|
+
*/
|
|
27
|
+
getAppointments(request: AppointmentsRequest): Promise<BWellQueryResult<AppointmentsResults, BaseManagerError>>;
|
|
28
|
+
/**
|
|
29
|
+
* Cancels an appointment based on the provided request.
|
|
30
|
+
*
|
|
31
|
+
* @param request - The request object containing parameters for canceling an appointment.
|
|
32
|
+
* @returns A promise that resolves to a `BWellQueryResult` containing the result of canceling
|
|
33
|
+
* the appointment or an error of type `BaseManagerError`.
|
|
34
|
+
*/
|
|
35
|
+
cancelAppointment(request: CancelAppointmentRequest): Promise<BWellTransactionResult<CancelAppointmentResults, BaseManagerError>>;
|
|
36
|
+
/**
|
|
37
|
+
* Retrieves cancelation reasons based on the provided request.
|
|
38
|
+
*
|
|
39
|
+
* @param request - The request object containing parameters for fetching cancelation reasons.
|
|
40
|
+
* @returns A promise that resolves to a `BWellQueryResult` containing the cancelation reasons results
|
|
41
|
+
* or an error of type `BaseManagerError`.
|
|
42
|
+
*/
|
|
43
|
+
getCancelationReasons(request: CancelationReasonsRequest): Promise<BWellQueryResult<CancelationReasonsResults, BaseManagerError>>;
|
|
44
|
+
/**
|
|
45
|
+
* Adds a single care team member to a care team.
|
|
46
|
+
*
|
|
47
|
+
* @param request - AddCareTeamMemberRequest with id, type, and role (string array)
|
|
48
|
+
* @returns Promise resolving to mutation result with updated CareTeam resource
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```typescript
|
|
52
|
+
* const result = await sdk.healthSpace.addCareTeamMember(
|
|
53
|
+
* new AddCareTeamMemberRequest({
|
|
54
|
+
* id: "practitioner-123",
|
|
55
|
+
* type: "Practitioner",
|
|
56
|
+
* role: ["Primary care physician"]
|
|
57
|
+
* })
|
|
58
|
+
* );
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
addCareTeamMember(request: AddCareTeamMemberRequest): Promise<BWellTransactionResult<AddCareTeamMemberMutationResults, BaseManagerError>>;
|
|
62
|
+
/**
|
|
63
|
+
* Adds multiple care team members in a single operation.
|
|
64
|
+
*
|
|
65
|
+
* @param request - AddCareTeamMembersRequest with members array (each with id, type, and role)
|
|
66
|
+
* @returns Promise resolving to array of mutation results with updated CareTeam resources
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```typescript
|
|
70
|
+
* const result = await sdk.healthSpace.addCareTeamMembers(
|
|
71
|
+
* new AddCareTeamMembersRequest({
|
|
72
|
+
* members: [
|
|
73
|
+
* {
|
|
74
|
+
* id: "practitioner-123",
|
|
75
|
+
* type: "Practitioner",
|
|
76
|
+
* role: ["Primary care physician"]
|
|
77
|
+
* },
|
|
78
|
+
* {
|
|
79
|
+
* id: "nurse-456",
|
|
80
|
+
* type: "Practitioner",
|
|
81
|
+
* role: ["Registered Nurse"]
|
|
82
|
+
* }
|
|
83
|
+
* ]
|
|
84
|
+
* })
|
|
85
|
+
* );
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
addCareTeamMembers(request: AddCareTeamMembersRequest): Promise<BWellTransactionResult<AddCareTeamMembersMutationResults, BaseManagerError>>;
|
|
89
|
+
/**
|
|
90
|
+
* Removes a care team member from a care team.
|
|
91
|
+
*
|
|
92
|
+
* @param request - RemoveCareTeamMemberRequest with id and type
|
|
93
|
+
* @returns Promise resolving to mutation result with updated CareTeam resource
|
|
94
|
+
*
|
|
18
95
|
* @example
|
|
19
96
|
* ```typescript
|
|
20
|
-
* const
|
|
21
|
-
* new
|
|
22
|
-
*
|
|
97
|
+
* const result = await sdk.healthSpace.removeCareTeamMember(
|
|
98
|
+
* new RemoveCareTeamMemberRequest({
|
|
99
|
+
* id: "practitioner-123",
|
|
100
|
+
* type: "Practitioner",
|
|
23
101
|
* })
|
|
24
102
|
* );
|
|
25
103
|
* ```
|
|
26
104
|
*/
|
|
27
|
-
|
|
105
|
+
removeCareTeamMember(request: RemoveCareTeamMemberRequest): Promise<BWellTransactionResult<RemoveCareTeamMemberMutationResults, BaseManagerError>>;
|
|
28
106
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
107
|
+
* This operation overwrites the member's role(s) with the provided value(s).
|
|
108
|
+
* If you need to preserve existing roles, include them in the role here.
|
|
109
|
+
*
|
|
110
|
+
* @param request - UpdateCareTeamMemberRequest with id, type, and role (string array)
|
|
111
|
+
* @returns Promise resolving to mutation result with updated CareTeam resource
|
|
112
|
+
*
|
|
31
113
|
* @example
|
|
32
114
|
* ```typescript
|
|
33
|
-
* await sdk.healthSpace.
|
|
34
|
-
* new
|
|
35
|
-
* id:
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* coding: [{ code: 'conflict' }]
|
|
39
|
-
* }
|
|
115
|
+
* const result = await sdk.healthSpace.updateCareTeamMember(
|
|
116
|
+
* new UpdateCareTeamMemberRequest({
|
|
117
|
+
* id: "practitioner-123",
|
|
118
|
+
* type: "Practitioner",
|
|
119
|
+
* role: ["Specialist"] // overwrites existing role(s)
|
|
40
120
|
* })
|
|
41
121
|
* );
|
|
42
122
|
* ```
|
|
43
123
|
*/
|
|
44
|
-
|
|
124
|
+
updateCareTeamMember(request: UpdateCareTeamMemberRequest): Promise<BWellTransactionResult<UpdateCareTeamMemberMutationResults, BaseManagerError>>;
|
|
45
125
|
/**
|
|
46
|
-
* Retrieves
|
|
47
|
-
*
|
|
126
|
+
* Retrieves all care team members associated with the user.
|
|
127
|
+
*
|
|
128
|
+
* @param request - Optional CareTeamMembersRequest with pagination configuration
|
|
129
|
+
* @returns Promise resolving to query result with care team members data
|
|
130
|
+
*
|
|
48
131
|
* @example
|
|
49
132
|
* ```typescript
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
133
|
+
* // Get all care team members
|
|
134
|
+
* const result = await sdk.healthSpace.getCareTeamMembers();
|
|
135
|
+
*
|
|
136
|
+
* // Get care team members with pagination
|
|
137
|
+
* const result = await sdk.healthSpace.getCareTeamMembers(
|
|
138
|
+
* new CareTeamMembersRequest({
|
|
139
|
+
* pagingInfo: { pageSize: 10, pageNumber: 1 }
|
|
53
140
|
* })
|
|
54
141
|
* );
|
|
55
142
|
* ```
|
|
56
143
|
*/
|
|
57
|
-
|
|
144
|
+
getCareTeamMembers(request?: CareTeamMembersRequest): Promise<BWellQueryResult<CareTeamMembersResults, BaseManagerError>>;
|
|
58
145
|
}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
export { HealthSpaceManager } from "./health-space-manager.js";
|
|
1
|
+
export { AppointmentsResults, CancelAppointmentResults, HealthSpaceManager, CancelationReasonsResults, CareTeamMembersResults, } from "./health-space-manager.js";
|
|
2
2
|
export { AppointmentsRequest, AppointmentsRequestInput, } from "./appointments-request.js";
|
|
3
3
|
export { CancelAppointmentRequest, CancelAppointmentRequestInput, } from "./cancel-appointment-request.js";
|
|
4
|
-
export {
|
|
4
|
+
export { CancelationReasonsRequest, CancelationReasonsRequestInput, } from "./cancelationReasons-request.js";
|
|
5
|
+
export { RemoveCareTeamMemberRequest, RemoveCareTeamMemberInput, } from "./remove-care-team-member-request.js";
|
|
6
|
+
export { AddCareTeamMemberInput, AddCareTeamMemberRequest, } from "./add-care-team-member-request.js";
|
|
7
|
+
export { AddCareTeamMembersRequest, AddCareTeamMembersInput, } from "./add-care-team-members-request.js";
|
|
8
|
+
export { UpdateCareTeamMemberRequest, UpdateCareTeamMemberInput, UpdateCareTeamMemberType, } from "./update-care-team-member-request.js";
|
|
9
|
+
export { CareTeamMembersRequest, CareTeamMembersRequestInput, } from "./care-team-members-request.js";
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
export { AppointmentsRequest, } from "./appointments-request.js";
|
|
2
2
|
export { CancelAppointmentRequest, } from "./cancel-appointment-request.js";
|
|
3
|
-
export {
|
|
3
|
+
export { CancelationReasonsRequest, } from "./cancelationReasons-request.js";
|
|
4
|
+
export { RemoveCareTeamMemberRequest, } from "./remove-care-team-member-request.js";
|
|
5
|
+
export { AddCareTeamMemberRequest, } from "./add-care-team-member-request.js";
|
|
6
|
+
export { AddCareTeamMembersRequest, } from "./add-care-team-members-request.js";
|
|
7
|
+
export { UpdateCareTeamMemberRequest, } from "./update-care-team-member-request.js";
|
|
8
|
+
export { CareTeamMembersRequest, } from "./care-team-members-request.js";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ErrorsCollector, ValidationRequest } from "../../../requests/index.js";
|
|
2
|
+
import { UpdateCareTeamMemberInput } from "./update-care-team-member-request.js";
|
|
3
|
+
/**
|
|
4
|
+
* Input type for removing care team members.
|
|
5
|
+
* Same structure as UpdateCareTeamMemberInput since we only need id, type, and role to identify the member.
|
|
6
|
+
*/
|
|
7
|
+
export type RemoveCareTeamMemberInput = UpdateCareTeamMemberInput;
|
|
8
|
+
/**
|
|
9
|
+
* Validator class for removing a single care team member.
|
|
10
|
+
* This class reuses the UpdateCareTeamMemberRequestValidator validation logic with optional roles.
|
|
11
|
+
*/
|
|
12
|
+
declare class RemoveCareTeamMemberRequestValidator {
|
|
13
|
+
private updateValidator;
|
|
14
|
+
/**
|
|
15
|
+
* Validates the provided `RemoveCareTeamMemberInput` data with roles optional.
|
|
16
|
+
*
|
|
17
|
+
* @param data - The input data to validate, containing member details to remove.
|
|
18
|
+
* @param errors - An instance of `ErrorsCollector` to collect validation errors.
|
|
19
|
+
*/
|
|
20
|
+
validate(data: RemoveCareTeamMemberInput, errors: ErrorsCollector): void;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Represents a request for removing a single care team member.
|
|
24
|
+
* This class reuses the validation logic from UpdateCareTeamMemberRequest.
|
|
25
|
+
*
|
|
26
|
+
* @extends ValidationRequest<RemoveCareTeamMemberInput>
|
|
27
|
+
* @category Requests
|
|
28
|
+
* @title RemoveCareTeamMemberRequest
|
|
29
|
+
* @excerpt Request class for removing a single care team member
|
|
30
|
+
*/
|
|
31
|
+
export declare class RemoveCareTeamMemberRequest extends ValidationRequest<RemoveCareTeamMemberInput> {
|
|
32
|
+
protected validator: RemoveCareTeamMemberRequestValidator;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ValidationRequest } from "../../../requests/index.js";
|
|
2
|
+
import { UpdateCareTeamMemberRequestValidator, } from "./update-care-team-member-request.js";
|
|
3
|
+
/**
|
|
4
|
+
* Validator class for removing a single care team member.
|
|
5
|
+
* This class reuses the UpdateCareTeamMemberRequestValidator validation logic with optional roles.
|
|
6
|
+
*/
|
|
7
|
+
class RemoveCareTeamMemberRequestValidator {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.updateValidator = new UpdateCareTeamMemberRequestValidator();
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Validates the provided `RemoveCareTeamMemberInput` data with roles optional.
|
|
13
|
+
*
|
|
14
|
+
* @param data - The input data to validate, containing member details to remove.
|
|
15
|
+
* @param errors - An instance of `ErrorsCollector` to collect validation errors.
|
|
16
|
+
*/
|
|
17
|
+
validate(data, errors) {
|
|
18
|
+
// Delegate to the update validator with requireRole: false for remove operations
|
|
19
|
+
this.updateValidator.validate(data, errors, { requireRole: false });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Represents a request for removing a single care team member.
|
|
24
|
+
* This class reuses the validation logic from UpdateCareTeamMemberRequest.
|
|
25
|
+
*
|
|
26
|
+
* @extends ValidationRequest<RemoveCareTeamMemberInput>
|
|
27
|
+
* @category Requests
|
|
28
|
+
* @title RemoveCareTeamMemberRequest
|
|
29
|
+
* @excerpt Request class for removing a single care team member
|
|
30
|
+
*/
|
|
31
|
+
export class RemoveCareTeamMemberRequest extends ValidationRequest {
|
|
32
|
+
constructor() {
|
|
33
|
+
super(...arguments);
|
|
34
|
+
this.validator = new RemoveCareTeamMemberRequestValidator();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { CodeableConceptFieldsFragment } from "../../../graphql/operations/types.js";
|
|
2
|
+
import { ErrorsCollector, ValidationRequest } from "../../../requests/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* Supported care team member types based on FHIR resource types.
|
|
5
|
+
*/
|
|
6
|
+
export type UpdateCareTeamMemberType = "Practitioner" | "PractitionerRole" | "Patient" | "RelatedPerson" | "Organization" | "CareTeam";
|
|
7
|
+
/**
|
|
8
|
+
* FHIR CodeableConcept structure for roles (using GraphQL generated types)
|
|
9
|
+
*/
|
|
10
|
+
export type CodeableConcept = CodeableConceptFieldsFragment;
|
|
11
|
+
/**
|
|
12
|
+
* Input type for updating a single care team member.
|
|
13
|
+
* role in the input is expected to be a list of strings (e.g. ["Primary care physician"]).
|
|
14
|
+
*/
|
|
15
|
+
export type UpdateCareTeamMemberInput = {
|
|
16
|
+
/** Resource ID of the care team member */
|
|
17
|
+
id: string;
|
|
18
|
+
/** FHIR resource type of the member */
|
|
19
|
+
type: UpdateCareTeamMemberType;
|
|
20
|
+
/** Array of role strings (preferred) */
|
|
21
|
+
role?: string[];
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Shared validator class for care team member operations.
|
|
25
|
+
* This class provides the core validation logic that can be reused by other request types.
|
|
26
|
+
*/
|
|
27
|
+
export declare class UpdateCareTeamMemberRequestValidator {
|
|
28
|
+
/**
|
|
29
|
+
* Validates the provided `UpdateCareTeamMemberInput` data and collects any validation errors.
|
|
30
|
+
*
|
|
31
|
+
* @param data - The input data to validate, containing member details.
|
|
32
|
+
* @param errors - An instance of `ErrorsCollector` to collect validation errors.
|
|
33
|
+
* @param options - Validation options to customize behavior.
|
|
34
|
+
* @param options.requireRole - Whether the role field is required (default: true).
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* - The `id` field is required and must be a non-empty string.
|
|
38
|
+
* - The `type` field is required and must be a valid UpdateCareTeamMemberType.
|
|
39
|
+
* - The `role` field validation depends on the `requireRole` option.
|
|
40
|
+
*/
|
|
41
|
+
validate(data: UpdateCareTeamMemberInput, errors: ErrorsCollector, options?: {
|
|
42
|
+
requireRole?: boolean;
|
|
43
|
+
}): void;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Represents a request for updating a single care team member.
|
|
47
|
+
*
|
|
48
|
+
* @extends ValidationRequest<UpdateCareTeamMemberInput>
|
|
49
|
+
* @category Requests
|
|
50
|
+
* @title UpdateCareTeamMemberRequest
|
|
51
|
+
* @excerpt Core request class for single care team member operations
|
|
52
|
+
*/
|
|
53
|
+
export declare class UpdateCareTeamMemberRequest extends ValidationRequest<UpdateCareTeamMemberInput> {
|
|
54
|
+
protected validator: UpdateCareTeamMemberRequestValidator;
|
|
55
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ValidationRequest } from "../../../requests/index.js";
|
|
2
|
+
import { isBlank, isNotNullOrUndefined } from "../../../utils/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* Shared validator class for care team member operations.
|
|
5
|
+
* This class provides the core validation logic that can be reused by other request types.
|
|
6
|
+
*/
|
|
7
|
+
export class UpdateCareTeamMemberRequestValidator {
|
|
8
|
+
/**
|
|
9
|
+
* Validates the provided `UpdateCareTeamMemberInput` data and collects any validation errors.
|
|
10
|
+
*
|
|
11
|
+
* @param data - The input data to validate, containing member details.
|
|
12
|
+
* @param errors - An instance of `ErrorsCollector` to collect validation errors.
|
|
13
|
+
* @param options - Validation options to customize behavior.
|
|
14
|
+
* @param options.requireRole - Whether the role field is required (default: true).
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* - The `id` field is required and must be a non-empty string.
|
|
18
|
+
* - The `type` field is required and must be a valid UpdateCareTeamMemberType.
|
|
19
|
+
* - The `role` field validation depends on the `requireRole` option.
|
|
20
|
+
*/
|
|
21
|
+
validate(data, errors, options = {}) {
|
|
22
|
+
const { requireRole = true } = options;
|
|
23
|
+
// Validate id
|
|
24
|
+
if (!isNotNullOrUndefined(data.id)) {
|
|
25
|
+
errors.add("Member id is required");
|
|
26
|
+
}
|
|
27
|
+
else if (isBlank(data.id)) {
|
|
28
|
+
errors.add("Member id cannot be empty");
|
|
29
|
+
}
|
|
30
|
+
else if (data.id.length > 255) {
|
|
31
|
+
errors.add("Member id cannot exceed 255 characters");
|
|
32
|
+
}
|
|
33
|
+
// Validate type
|
|
34
|
+
if (!isNotNullOrUndefined(data.type)) {
|
|
35
|
+
errors.add("Member type is required");
|
|
36
|
+
}
|
|
37
|
+
else if (isBlank(data.type)) {
|
|
38
|
+
errors.add("Member type cannot be empty");
|
|
39
|
+
}
|
|
40
|
+
// Validate role (must be array of non-blank strings when required or provided)
|
|
41
|
+
const roleProvided = isNotNullOrUndefined(data.role);
|
|
42
|
+
if (requireRole && !roleProvided) {
|
|
43
|
+
errors.add("Member role is required");
|
|
44
|
+
}
|
|
45
|
+
if (roleProvided && data.role) {
|
|
46
|
+
for (let roleIndex = 0; roleIndex < data.role.length; roleIndex++) {
|
|
47
|
+
const roleItem = data.role[roleIndex];
|
|
48
|
+
if (!isNotNullOrUndefined(roleItem)) {
|
|
49
|
+
errors.add(`Role ${roleIndex}: Cannot be null or undefined`);
|
|
50
|
+
}
|
|
51
|
+
else if (isBlank(roleItem)) {
|
|
52
|
+
errors.add(`Role ${roleIndex}: Cannot be blank`);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Represents a request for updating a single care team member.
|
|
60
|
+
*
|
|
61
|
+
* @extends ValidationRequest<UpdateCareTeamMemberInput>
|
|
62
|
+
* @category Requests
|
|
63
|
+
* @title UpdateCareTeamMemberRequest
|
|
64
|
+
* @excerpt Core request class for single care team member operations
|
|
65
|
+
*/
|
|
66
|
+
export class UpdateCareTeamMemberRequest extends ValidationRequest {
|
|
67
|
+
constructor() {
|
|
68
|
+
super(...arguments);
|
|
69
|
+
this.validator = new UpdateCareTeamMemberRequestValidator();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -1,129 +1,42 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CreateGuestAccessTokenMutationResults, InitializeQueryResults, RefreshTokensQueryResults } from "../../../graphql/operations/types.js";
|
|
2
2
|
import type { BWellTransactionResult } from "../../../results/index.js";
|
|
3
3
|
import type { BaseManagerError } from "../errors.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* @title CreateGuestAccessTokenRequest
|
|
8
|
-
* @excerpt Request for creating guest access tokens
|
|
9
|
-
*/
|
|
4
|
+
export type SdkConfigurationResult = InitializeQueryResults["initSdk"];
|
|
5
|
+
export type RefreshTokenResults = RefreshTokensQueryResults["refresh"];
|
|
6
|
+
export type CreateGuestAccessTokenResults = CreateGuestAccessTokenMutationResults["createGuestAccessToken"];
|
|
10
7
|
export type CreateGuestAccessTokenRequest = {
|
|
11
8
|
clientKey: string;
|
|
12
9
|
};
|
|
13
|
-
/**
|
|
14
|
-
* Request for OAuth authentication
|
|
15
|
-
* @category Requests
|
|
16
|
-
* @title OauthAuthenticateRequest
|
|
17
|
-
* @excerpt Request for OAuth authentication
|
|
18
|
-
*/
|
|
19
10
|
export type OauthAuthenticateRequest = {
|
|
20
11
|
clientKey: string;
|
|
21
12
|
jweToken: string;
|
|
22
13
|
};
|
|
23
|
-
/**
|
|
24
|
-
* Request for username/password authentication
|
|
25
|
-
* @category Requests
|
|
26
|
-
* @title UsernamePasswordAuthenticateRequest
|
|
27
|
-
* @excerpt Request for username/password authentication
|
|
28
|
-
*/
|
|
29
14
|
export type UsernamePasswordAuthenticateRequest = {
|
|
30
15
|
clientKey: string;
|
|
31
|
-
|
|
16
|
+
email: string;
|
|
32
17
|
password: string;
|
|
33
18
|
};
|
|
34
|
-
/**
|
|
35
|
-
* Request for authorization code authentication
|
|
36
|
-
* @category Requests
|
|
37
|
-
* @title AuthCodeAuthenticateRequest
|
|
38
|
-
* @excerpt Request for authorization code authentication
|
|
39
|
-
*/
|
|
40
19
|
export type AuthCodeAuthenticateRequest = {
|
|
41
20
|
clientKey: string;
|
|
42
21
|
authCode: string;
|
|
43
22
|
};
|
|
44
|
-
/**
|
|
45
|
-
* Request for refreshing authentication tokens
|
|
46
|
-
* @category Requests
|
|
47
|
-
* @title RefreshTokensRequest
|
|
48
|
-
* @excerpt Request for refreshing authentication tokens
|
|
49
|
-
*/
|
|
50
23
|
export type RefreshTokensRequest = {
|
|
51
24
|
refreshToken: string;
|
|
52
25
|
clientKey: string;
|
|
53
26
|
};
|
|
27
|
+
export type AuthTokens = {
|
|
28
|
+
accessToken: string;
|
|
29
|
+
idToken: string;
|
|
30
|
+
refreshToken: string;
|
|
31
|
+
};
|
|
54
32
|
/**
|
|
55
|
-
*
|
|
56
|
-
* Provides methods for initializing the SDK and managing authentication flows.
|
|
57
|
-
* @category Managers
|
|
33
|
+
* The IdentityManager interface provides methods for initializing and authenticating the SDK.
|
|
58
34
|
*/
|
|
59
35
|
export interface IdentityManager {
|
|
60
|
-
/**
|
|
61
|
-
* Initializes the SDK configuration.
|
|
62
|
-
* Sets up the SDK with the provided client key and validates access.
|
|
63
|
-
* @example
|
|
64
|
-
* ```typescript
|
|
65
|
-
* await identityManager.initialize('your-client-key');
|
|
66
|
-
* ```
|
|
67
|
-
*/
|
|
68
36
|
initialize(clientKey: string): Promise<BWellTransactionResult<SdkConfigurationResult, BaseManagerError>>;
|
|
69
|
-
/**
|
|
70
|
-
* Authenticates using OAuth tokens.
|
|
71
|
-
* Validates OAuth credentials and establishes authenticated session.
|
|
72
|
-
* @example
|
|
73
|
-
* ```typescript
|
|
74
|
-
* const tokens = await identityManager.authenticateWithOauth({
|
|
75
|
-
* clientKey: 'your-client-key',
|
|
76
|
-
* jweToken: 'oauth-token'
|
|
77
|
-
* });
|
|
78
|
-
* ```
|
|
79
|
-
*/
|
|
80
37
|
authenticateWithOauth(authenticateRequest: OauthAuthenticateRequest): Promise<BWellTransactionResult<AuthTokens, BaseManagerError>>;
|
|
81
|
-
/**
|
|
82
|
-
* Authenticates using username and password.
|
|
83
|
-
* Validates user credentials and establishes authenticated session.
|
|
84
|
-
* @example
|
|
85
|
-
* ```typescript
|
|
86
|
-
* const tokens = await identityManager.authenticateWithUsernamePassword({
|
|
87
|
-
* clientKey: 'your-client-key',
|
|
88
|
-
* username: 'user@example.com',
|
|
89
|
-
* password: 'secure-password'
|
|
90
|
-
* });
|
|
91
|
-
* ```
|
|
92
|
-
*/
|
|
93
38
|
authenticateWithUsernamePassword(authenticateRequest: UsernamePasswordAuthenticateRequest): Promise<BWellTransactionResult<AuthTokens, BaseManagerError>>;
|
|
94
|
-
/**
|
|
95
|
-
* Authenticates using authorization code.
|
|
96
|
-
* Exchanges authorization code for access tokens.
|
|
97
|
-
* @example
|
|
98
|
-
* ```typescript
|
|
99
|
-
* const tokens = await identityManager.authenticateWithAuthCode({
|
|
100
|
-
* clientKey: 'your-client-key',
|
|
101
|
-
* authCode: 'authorization-code'
|
|
102
|
-
* });
|
|
103
|
-
* ```
|
|
104
|
-
*/
|
|
105
39
|
authenticateWithAuthCode(authenticateRequest: AuthCodeAuthenticateRequest): Promise<BWellTransactionResult<AuthTokens, BaseManagerError>>;
|
|
106
|
-
/**
|
|
107
|
-
* Refreshes access tokens using refresh token.
|
|
108
|
-
* Obtains new access tokens without re-authentication.
|
|
109
|
-
* @example
|
|
110
|
-
* ```typescript
|
|
111
|
-
* const newTokens = await identityManager.refreshAccessToken({
|
|
112
|
-
* clientKey: 'your-client-key',
|
|
113
|
-
* refreshToken: 'refresh-token'
|
|
114
|
-
* });
|
|
115
|
-
* ```
|
|
116
|
-
*/
|
|
117
40
|
refreshAccessToken(refreshTokensRequest: RefreshTokensRequest): Promise<BWellTransactionResult<RefreshTokenResults, BaseManagerError>>;
|
|
118
|
-
/**
|
|
119
|
-
* Creates a guest access token.
|
|
120
|
-
* Generates limited-access tokens for guest users.
|
|
121
|
-
* @example
|
|
122
|
-
* ```typescript
|
|
123
|
-
* const guestToken = await identityManager.createGuestAccessToken({
|
|
124
|
-
* clientKey: 'your-client-key'
|
|
125
|
-
* });
|
|
126
|
-
* ```
|
|
127
|
-
*/
|
|
128
41
|
createGuestAccessToken(createGuestAccessTokenRequest: CreateGuestAccessTokenRequest): Promise<BWellTransactionResult<CreateGuestAccessTokenResults, BaseManagerError>>;
|
|
129
42
|
}
|
package/dist/api/base/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export * from "./requests/index.js";
|
|
2
2
|
export * from "./user/index.js";
|
|
3
3
|
export * from "./health-data/index.js";
|
|
4
|
-
export * from "./financial/index.js";
|
|
5
4
|
export * from "./activity/index.js";
|
|
6
5
|
export * from "./search/index.js";
|
|
7
6
|
export * from "./connection/index.js";
|
|
8
7
|
export * from "./device/index.js";
|
|
8
|
+
export * from "./event/index.js";
|
|
9
|
+
export * from "./financial/index.js";
|
|
9
10
|
export * from "./health-space/index.js";
|
|
10
11
|
export * from "./questionnaire/index.js";
|
|
12
|
+
export * from "./support/index.js";
|
package/dist/api/base/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export * from "./requests/index.js";
|
|
2
2
|
export * from "./user/index.js";
|
|
3
3
|
export * from "./health-data/index.js";
|
|
4
|
-
export * from "./financial/index.js";
|
|
5
4
|
export * from "./activity/index.js";
|
|
6
5
|
export * from "./search/index.js";
|
|
7
6
|
export * from "./connection/index.js";
|
|
8
7
|
export * from "./device/index.js";
|
|
9
|
-
|
|
8
|
+
export * from "./event/index.js";
|
|
9
|
+
export * from "./financial/index.js";
|
|
10
10
|
export * from "./health-space/index.js";
|
|
11
11
|
export * from "./questionnaire/index.js";
|
|
12
|
+
export * from "./support/index.js";
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
export { NextQuestionRequest, NextQuestionRequestInput, } from "./next-question-request.js";
|
|
2
|
-
export {
|
|
2
|
+
export { SaveQuestionnaireResponseRequest, SaveQuestionnaireResponseRequestInput, } from "./save-questionnaire-response-request.js";
|
|
3
|
+
export { NextQuestionResults, QuestionnaireManager, QuestionnaireResponsesResults, SaveQuestionnaireResponseResults, } from "./questionnaire-manager.js";
|
|
4
|
+
export { QuestionnaireResponsesRequest, QuestionnaireResponsesRequestInput, } from "./questionnaire-responses-request.js";
|
|
5
|
+
export { QuestionnairesRequest, QuestionnairesRequestInput, } from "./questionnaires-request.js";
|
|
@@ -1 +1,4 @@
|
|
|
1
1
|
export { NextQuestionRequest, } from "./next-question-request.js";
|
|
2
|
+
export { SaveQuestionnaireResponseRequest, } from "./save-questionnaire-response-request.js";
|
|
3
|
+
export { QuestionnaireResponsesRequest, } from "./questionnaire-responses-request.js";
|
|
4
|
+
export { QuestionnairesRequest, } from "./questionnaires-request.js";
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { NextQuestionMutationVariables } from "../../../graphql/operations/types.js";
|
|
2
2
|
import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
|
|
3
3
|
/**
|
|
4
|
-
* Input type for the `nextQuestion` mutation.
|
|
5
|
-
* @title NextQuestionRequestInput
|
|
6
|
-
* @excerpt Input for navigating through questionnaire questions
|
|
4
|
+
* Input type for the `nextQuestion` mutation.
|
|
7
5
|
* @experimental This class is experimental and may change in future releases.
|
|
8
|
-
* @category Inputs
|
|
9
6
|
*/
|
|
10
7
|
export type NextQuestionRequestInput = NextQuestionMutationVariables;
|
|
11
8
|
declare class NextQuestionRequestValidator implements Validator<NextQuestionRequestInput> {
|
|
12
9
|
validate(data: NextQuestionRequestInput, errors: ErrorsCollector): void;
|
|
13
10
|
}
|
|
14
11
|
/**
|
|
15
|
-
* Request
|
|
12
|
+
* Request class for handling next question mutations.
|
|
16
13
|
* @experimental This class is experimental and may change in future releases.
|
|
17
|
-
* @category Requests
|
|
18
|
-
* @title NextQuestionRequest
|
|
19
|
-
* @excerpt Request object for handling next question mutations
|
|
20
14
|
*/
|
|
21
15
|
export declare class NextQuestionRequest extends ValidationRequest<NextQuestionRequestInput> {
|
|
22
16
|
protected validator: NextQuestionRequestValidator;
|
|
@@ -44,11 +44,8 @@ class NextQuestionRequestValidator {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
|
-
* Request
|
|
47
|
+
* Request class for handling next question mutations.
|
|
48
48
|
* @experimental This class is experimental and may change in future releases.
|
|
49
|
-
* @category Requests
|
|
50
|
-
* @title NextQuestionRequest
|
|
51
|
-
* @excerpt Request object for handling next question mutations
|
|
52
49
|
*/
|
|
53
50
|
export class NextQuestionRequest extends ValidationRequest {
|
|
54
51
|
constructor() {
|