@ovok/core 0.4.49-rc.3 → 0.4.49-rc.5
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 +23 -666
- package/dist/client/ai-fhir/methods/AIFhirResources.d.ts +3 -1
- package/dist/client/ai-fhir/methods/AIFhirResources.js +3 -1
- package/dist/client/ai-fhir/types/AIFhirPlan.d.ts +8 -0
- package/dist/client/ai-fhir/types/AIFhirPlanRequest.d.ts +8 -0
- package/dist/client/ai-fhir/types/AIFhirRequest.d.ts +5 -0
- package/dist/client/ai-fhir/types/AIFhirResponse.d.ts +6 -0
- package/dist/client/auth/errors.d.ts +15 -2
- package/dist/client/auth/errors.js +12 -2
- package/dist/client/auth/methods/appleLogin.d.ts +1 -0
- package/dist/client/auth/methods/appleLogin.js +1 -0
- package/dist/client/auth/methods/changePassword.d.ts +1 -0
- package/dist/client/auth/methods/changePassword.js +1 -0
- package/dist/client/auth/methods/googleLogin.d.ts +1 -0
- package/dist/client/auth/methods/googleLogin.js +1 -0
- package/dist/client/auth/methods/login.d.ts +6 -0
- package/dist/client/auth/methods/login.js +6 -0
- package/dist/client/auth/methods/register.d.ts +5 -0
- package/dist/client/auth/methods/register.js +5 -0
- package/dist/client/auth/methods/registerPractitioner.d.ts +5 -0
- package/dist/client/auth/methods/registerPractitioner.js +5 -0
- package/dist/client/auth/methods/reloadSession.d.ts +3 -0
- package/dist/client/auth/methods/requestDeleteUser.d.ts +4 -5
- package/dist/client/auth/methods/requestDeleteUser.js +4 -5
- package/dist/client/auth/methods/setPasswordFromReset.d.ts +1 -0
- package/dist/client/auth/methods/setPasswordFromReset.js +1 -0
- package/dist/client/auth/session-fetch.d.ts +11 -0
- package/dist/client/auth/types/Account.d.ts +8 -1
- package/dist/client/auth/types/AppleLoginBody.d.ts +16 -0
- package/dist/client/auth/types/AppleLoginBody.js +5 -0
- package/dist/client/auth/types/AuthResponse.d.ts +12 -0
- package/dist/client/auth/types/ChangePasswordBody.d.ts +7 -0
- package/dist/client/auth/types/ChangePasswordResponse.d.ts +5 -0
- package/dist/client/auth/types/CompletePasswordResetBody.d.ts +8 -0
- package/dist/client/auth/types/GoogleLoginBody.d.ts +5 -0
- package/dist/client/auth/types/LoginBody.d.ts +15 -1
- package/dist/client/auth/types/LoginError.d.ts +21 -2
- package/dist/client/auth/types/LoginError.js +8 -2
- package/dist/client/auth/types/LoginResponse.d.ts +8 -1
- package/dist/client/auth/types/RegisterBody.d.ts +12 -0
- package/dist/client/auth/types/RegisterPractitionerBody.d.ts +5 -0
- package/dist/client/auth/types/RegisterResponse.d.ts +7 -0
- package/dist/client/auth/types/RequestDeleteUserBody.d.ts +7 -7
- package/dist/client/auth/types/RequestDeleteUserResponse.d.ts +14 -0
- package/dist/client/auth/types/ResetPasswordBody.d.ts +5 -0
- package/dist/client/auth/types/Session.d.ts +14 -2
- package/dist/client/change-history/methods.d.ts +6 -0
- package/dist/client/change-history/methods.js +6 -0
- package/dist/client/change-history/types.d.ts +82 -0
- package/dist/client/chat/ai/methods/createAiSession.d.ts +6 -0
- package/dist/client/chat/ai/methods/createAiSession.js +6 -0
- package/dist/client/chat/ai/types/CreateAiSessionResponse.d.ts +17 -0
- package/dist/client/chat/ai/types/SessionMessagesResponse.d.ts +9 -0
- package/dist/client/cms/locale.d.ts +12 -2
- package/dist/client/cms/locale.js +9 -2
- package/dist/client/cms/methods.d.ts +6 -2
- package/dist/client/cms/methods.js +7 -3
- package/dist/client/cms/types.d.ts +44 -4
- package/dist/client/consent/methods.d.ts +16 -0
- package/dist/client/consent/methods.js +16 -0
- package/dist/client/consent/types.d.ts +53 -1
- package/dist/client/consent/types.js +10 -1
- package/dist/client/email/methods.d.ts +3 -0
- package/dist/client/email/methods.js +3 -0
- package/dist/client/email/types.d.ts +33 -0
- package/dist/client/errors/field-errors.d.ts +3 -0
- package/dist/client/errors/field-errors.js +3 -0
- package/dist/client/errors/ovok-error-utils.d.ts +6 -0
- package/dist/client/errors/ovok-error-utils.js +6 -0
- package/dist/client/errors/ovok-error.d.ts +36 -4
- package/dist/client/errors/ovok-error.js +15 -4
- package/dist/client/errors/rate-limit-error.d.ts +11 -2
- package/dist/client/errors/rate-limit-error.js +10 -2
- package/dist/client/errors/sign-in-required-error.d.ts +5 -2
- package/dist/client/errors/sign-in-required-error.js +5 -2
- package/dist/client/experience/methods.d.ts +38 -0
- package/dist/client/experience/methods.js +35 -0
- package/dist/client/experience/types.d.ts +316 -0
- package/dist/client/experience/types.js +1 -0
- package/dist/client/invites/methods.d.ts +27 -9
- package/dist/client/invites/methods.js +27 -9
- package/dist/client/invites/parse-accept-invite-link.d.ts +3 -1
- package/dist/client/invites/parse-accept-invite-link.js +3 -1
- package/dist/client/invites/types.d.ts +55 -0
- package/dist/client/invites/types.js +12 -0
- package/dist/client/notifications/methods.d.ts +15 -0
- package/dist/client/notifications/methods.js +15 -0
- package/dist/client/notifications/types.d.ts +249 -2
- package/dist/client/observation/bundle-entry-status.d.ts +3 -0
- package/dist/client/observation/bundle-entry-status.js +13 -0
- package/dist/client/observation/fhir-systems.d.ts +7 -0
- package/dist/client/observation/fhir-systems.js +8 -1
- package/dist/client/observation/methods/generateObservationBodiesByMeasurement.d.ts +3 -0
- package/dist/client/observation/methods/generateObservationBodiesByMeasurement.js +10 -65
- package/dist/client/observation/methods/getLatestObservationsByCodes.d.ts +3 -0
- package/dist/client/observation/methods/getLatestObservationsByCodes.js +3 -0
- package/dist/client/observation/methods/observationsToMeasurements.d.ts +23 -1
- package/dist/client/observation/methods/observationsToMeasurements.js +72 -12
- package/dist/client/observation/methods/saveMeasurement.d.ts +3 -1
- package/dist/client/observation/methods/saveMeasurement.js +3 -1
- package/dist/client/observation/observation-bundle-utils.d.ts +11 -7
- package/dist/client/observation/observation-bundle-utils.js +61 -71
- package/dist/client/observation/observation-coding.d.ts +12 -0
- package/dist/client/observation/observation-coding.js +69 -0
- package/dist/client/observation/observation-groups.d.ts +12 -0
- package/dist/client/observation/observation-groups.js +51 -0
- package/dist/client/observation/reading-group-backfill.d.ts +13 -0
- package/dist/client/observation/reading-group-backfill.js +79 -0
- package/dist/client/observation/reading-group.d.ts +14 -0
- package/dist/client/observation/reading-group.js +85 -0
- package/dist/client/observation/series.d.ts +28 -5
- package/dist/client/observation/series.js +16 -6
- package/dist/client/observation/services/base-observation-service.d.ts +1 -1
- package/dist/client/observation/services/base-observation-service.js +6 -12
- package/dist/client/observation/services/blood-pressure.d.ts +2 -0
- package/dist/client/observation/services/blood-pressure.js +9 -5
- package/dist/client/observation/services/component-observation-services.js +2 -2
- package/dist/client/observation/services/creator.d.ts +5 -0
- package/dist/client/observation/services/creator.js +5 -0
- package/dist/client/observation/services/ecg-observation-fragments.d.ts +4 -0
- package/dist/client/observation/services/ecg-observation-fragments.js +30 -37
- package/dist/client/observation/services/ecg.d.ts +3 -1
- package/dist/client/observation/services/ecg.js +19 -19
- package/dist/client/observation/services/uric-acid-service.js +2 -13
- package/dist/client/observation/services/urine-analyte-values.d.ts +4 -0
- package/dist/client/observation/services/urine-analyte-values.js +27 -0
- package/dist/client/observation/types/GetLatestObservationsByCodeParams.d.ts +10 -0
- package/dist/client/observation/types/MeasurementTypeKey.d.ts +26 -0
- package/dist/client/observation/types/MeasurementTypeKey.js +26 -0
- package/dist/client/observation/types/ObservationCode.d.ts +64 -1
- package/dist/client/observation/types/ObservationCode.js +64 -1
- package/dist/client/observation/types/UrineAnalytes.d.ts +29 -0
- package/dist/client/observation/types/UrineAnalytes.js +18 -9
- package/dist/client/observation/types/generate-measurement/Sample.d.ts +33 -0
- package/dist/client/observation/types/generate-observation-body/GenerateObservationBodyParams.d.ts +9 -0
- package/dist/client/observation/types/measurement/BabySleepMeasurement.d.ts +3 -0
- package/dist/client/observation/types/measurement/BloodGlucoseMeasurement.d.ts +7 -0
- package/dist/client/observation/types/measurement/BloodPressureMeasurement.d.ts +10 -0
- package/dist/client/observation/types/measurement/BloodPressureStates.d.ts +10 -0
- package/dist/client/observation/types/measurement/BloodPressureStates.js +10 -0
- package/dist/client/observation/types/measurement/BodyTemperatureMeasurement.d.ts +7 -0
- package/dist/client/observation/types/measurement/BodyWeightMeasurmement.d.ts +8 -0
- package/dist/client/observation/types/measurement/EcgDiagnosticFlag.d.ts +18 -0
- package/dist/client/observation/types/measurement/EcgDiagnosticFlag.js +18 -0
- package/dist/client/observation/types/measurement/EcgMeasurement.d.ts +9 -0
- package/dist/client/observation/types/measurement/HeartRateMeasurement.d.ts +7 -0
- package/dist/client/observation/types/measurement/HeartRateVariabilityMeasurement.d.ts +7 -0
- package/dist/client/observation/types/measurement/LipidPanelMeasurement.d.ts +12 -0
- package/dist/client/observation/types/measurement/Measurement.d.ts +9 -0
- package/dist/client/observation/types/measurement/MeasurementDevice.d.ts +10 -0
- package/dist/client/observation/types/measurement/MeasurementSeries.d.ts +2 -0
- package/dist/client/observation/types/measurement/PulseOximeterMeasurement.d.ts +10 -0
- package/dist/client/observation/types/measurement/RespiratoryRateMeasurement.d.ts +7 -0
- package/dist/client/observation/types/measurement/RespiratoryTherapyMeasurement.d.ts +3 -0
- package/dist/client/observation/types/measurement/RestingHeartRateMeasurement.d.ts +7 -0
- package/dist/client/observation/types/measurement/SpirometryMeasurement.d.ts +23 -0
- package/dist/client/observation/types/measurement/StepCountMeasurement.d.ts +9 -0
- package/dist/client/observation/types/measurement/UrineAnalyzeMeasurement.d.ts +29 -0
- package/dist/client/observation/types/measurement/Vo2MaxMeasurement.d.ts +7 -0
- package/dist/client/observation/types/measurement/WalkingHeartRateAverageMeasurement.d.ts +7 -0
- package/dist/client/observation/types/service/MeasurementField.d.ts +5 -1
- package/dist/client/observation/utils/getDeviceObject.js +15 -32
- package/dist/client/observation/utils/getObservationValueDisplay.d.ts +2 -0
- package/dist/client/offline/offline-measurement-queue.d.ts +56 -1
- package/dist/client/offline/offline-measurement-queue.js +23 -8
- package/dist/client/offline/shared-measurement-queue.d.ts +16 -1
- package/dist/client/offline/shared-measurement-queue.js +3 -1
- package/dist/client/ovok-client.d.ts +28 -6
- package/dist/client/ovok-client.js +19 -11
- package/dist/client/patient/methods.d.ts +21 -0
- package/dist/client/patient/methods.js +21 -0
- package/dist/client/patient/types.d.ts +131 -0
- package/dist/client/patient-sharing/methods.d.ts +18 -0
- package/dist/client/patient-sharing/methods.js +18 -0
- package/dist/client/patient-sharing/types.d.ts +89 -1
- package/dist/client/platform/methods.d.ts +22 -0
- package/dist/client/platform/methods.js +20 -0
- package/dist/client/platform/types.d.ts +194 -1
- package/dist/client/platform/types.js +24 -0
- package/dist/client/questionnaire-response/methods/createQuestionnaireResponseWithObservations.d.ts +3 -0
- package/dist/client/questionnaire-response/methods/createQuestionnaireResponseWithObservations.js +3 -0
- package/dist/client/questionnaire-response/methods/extractQuestionnaireObservations.d.ts +3 -0
- package/dist/client/questionnaire-response/methods/extractQuestionnaireObservations.js +3 -0
- package/dist/client/questionnaire-response/methods/populateQuestionnaire.d.ts +3 -0
- package/dist/client/questionnaire-response/methods/populateQuestionnaire.js +3 -0
- package/dist/client/questionnaire-response/methods/submitQuestionnaireResponse.d.ts +3 -0
- package/dist/client/questionnaire-response/methods/submitQuestionnaireResponse.js +3 -0
- package/dist/client/questionnaire-response/types.d.ts +6 -0
- package/dist/client/signals/errors.d.ts +13 -2
- package/dist/client/signals/errors.js +9 -2
- package/dist/client/signals/methods.d.ts +9 -0
- package/dist/client/signals/methods.js +9 -0
- package/dist/client/signals/types.d.ts +31 -0
- package/dist/client/slim/methods.d.ts +268 -21
- package/dist/client/slim/methods.js +264 -21
- package/dist/client/slim/paging.d.ts +22 -2
- package/dist/client/slim/paging.js +6 -2
- package/dist/client/slim/types.d.ts +920 -1
- package/dist/client/storage.d.ts +15 -1
- package/dist/client/storage.js +7 -1
- package/dist/client/wearables/methods.d.ts +24 -0
- package/dist/client/wearables/methods.js +24 -0
- package/dist/client/wearables/types.d.ts +74 -0
- package/dist/conformance/api-requirements.d.ts +31 -5
- package/dist/conformance/api-requirements.js +47 -10
- package/dist/conformance/capability-requirements.d.ts +4 -26
- package/dist/conformance/capability-requirements.js +5 -27
- package/dist/conformance/capability.d.ts +9 -1
- package/dist/conformance/capability.js +3 -1
- package/dist/hooks/account-hooks.d.ts +35 -0
- package/dist/hooks/account-hooks.js +33 -0
- package/dist/hooks/api-hooks.d.ts +74 -4
- package/dist/hooks/api-hooks.js +56 -4
- package/dist/hooks/cms-hooks.d.ts +9 -3
- package/dist/hooks/cms-hooks.js +9 -3
- package/dist/hooks/email-hooks.d.ts +3 -0
- package/dist/hooks/email-hooks.js +3 -0
- package/dist/hooks/experience-hooks.d.ts +26 -0
- package/dist/hooks/experience-hooks.js +24 -0
- package/dist/hooks/index.d.ts +18 -0
- package/dist/hooks/index.js +18 -0
- package/dist/hooks/invites-hooks.d.ts +21 -2
- package/dist/hooks/invites-hooks.js +21 -2
- package/dist/hooks/notification-ack-hooks.d.ts +6 -2
- package/dist/hooks/notification-ack-hooks.js +6 -2
- package/dist/hooks/notification-hooks.d.ts +27 -3
- package/dist/hooks/notification-hooks.js +27 -3
- package/dist/hooks/notification-note-hooks.d.ts +41 -0
- package/dist/hooks/notification-note-hooks.js +33 -0
- package/dist/hooks/observation-hooks.d.ts +30 -0
- package/dist/hooks/observation-hooks.js +26 -3
- package/dist/hooks/patient-hooks.d.ts +53 -0
- package/dist/hooks/patient-hooks.js +48 -0
- package/dist/hooks/patient-sharing-hooks.d.ts +18 -0
- package/dist/hooks/patient-sharing-hooks.js +18 -0
- package/dist/hooks/platform-hooks.d.ts +32 -0
- package/dist/hooks/platform-hooks.js +23 -0
- package/dist/hooks/poll-hooks.d.ts +17 -1
- package/dist/hooks/poll-hooks.js +3 -1
- package/dist/hooks/signals-hooks.d.ts +3 -0
- package/dist/hooks/signals-hooks.js +3 -0
- package/dist/hooks/wearables-hooks.d.ts +23 -0
- package/dist/hooks/wearables-hooks.js +21 -0
- package/dist/index.d.ts +1 -965
- package/dist/index.js +1 -71
- package/dist/next/auth/saved-accounts-store.d.ts +10 -0
- package/dist/next/auth/session.d.ts +17 -0
- package/dist/next/auth/user-session.d.ts +5 -0
- package/dist/next/config/ovok-config.d.ts +45 -0
- package/dist/next/errors/ovok-account-error.d.ts +14 -1
- package/dist/next/errors/ovok-account-error.js +8 -1
- package/dist/next/errors/ovok-errors.d.ts +88 -0
- package/dist/next/errors/ovok-errors.js +67 -0
- package/dist/next/http/http-client.d.ts +5 -0
- package/dist/next/http/transmit.d.ts +7 -0
- package/dist/next/http/url.d.ts +10 -0
- package/dist/next/ovok.d.ts +31 -1
- package/dist/next/ovok.js +5 -1
- package/dist/next/paging/page.d.ts +13 -1
- package/dist/next/react/context.d.ts +7 -0
- package/dist/next/react/context.js +7 -0
- package/dist/next/react/index.d.ts +24 -0
- package/dist/next/react/index.js +18 -0
- package/dist/next/react/query-hooks.d.ts +69 -0
- package/dist/next/react/query-hooks.js +31 -0
- package/dist/next/resources/accounts/accounts-resource.d.ts +6 -0
- package/dist/next/resources/accounts/accounts-resource.js +6 -0
- package/dist/next/resources/ai/ai-chat-resource.d.ts +7 -0
- package/dist/next/resources/ai/ai-chat-resource.js +5 -0
- package/dist/next/resources/ai/ai-resource.d.ts +13 -0
- package/dist/next/resources/ai/ai-resource.js +6 -0
- package/dist/next/resources/ai/chat-messages-resource.d.ts +7 -0
- package/dist/next/resources/ai/chat-messages-resource.js +7 -0
- package/dist/next/resources/ai/chat-sessions-resource.d.ts +14 -0
- package/dist/next/resources/ai/chat-sessions-resource.js +8 -0
- package/dist/next/resources/auth/auth-sessions-resource.d.ts +6 -1
- package/dist/next/resources/auth/auth-sessions-resource.js +6 -1
- package/dist/next/resources/auth/registration.d.ts +18 -1
- package/dist/next/resources/auth/social-login.d.ts +12 -0
- package/dist/next/resources/auth-resource.d.ts +54 -1
- package/dist/next/resources/auth-resource.js +23 -0
- package/dist/next/resources/bots/bots-resource.d.ts +15 -0
- package/dist/next/resources/bots/bots-resource.js +5 -0
- package/dist/next/resources/cms/cms-delivery.d.ts +14 -2
- package/dist/next/resources/cms/cms-documents-resource.d.ts +7 -1
- package/dist/next/resources/cms/cms-documents-resource.js +7 -1
- package/dist/next/resources/cms/cms-resource.d.ts +7 -0
- package/dist/next/resources/cms/cms-resource.js +5 -0
- package/dist/next/resources/cms/release-notes-resource.d.ts +6 -0
- package/dist/next/resources/cms/release-notes-resource.js +6 -0
- package/dist/next/resources/consent/consent-resource.d.ts +22 -0
- package/dist/next/resources/consent/consent-resource.js +20 -0
- package/dist/next/resources/content/content-resource.d.ts +18 -0
- package/dist/next/resources/content/content-resource.js +12 -0
- package/dist/next/resources/documents/documents-resource.d.ts +24 -0
- package/dist/next/resources/documents/documents-resource.js +10 -0
- package/dist/next/resources/email/email-resource.d.ts +6 -0
- package/dist/next/resources/email/email-resource.js +5 -0
- package/dist/next/resources/email/email-templates-resource.d.ts +6 -0
- package/dist/next/resources/email/email-templates-resource.js +6 -0
- package/dist/next/resources/fhir-resource.d.ts +36 -0
- package/dist/next/resources/fhir-resource.js +21 -0
- package/dist/next/resources/health-resource.d.ts +16 -0
- package/dist/next/resources/health-resource.js +5 -0
- package/dist/next/resources/invites/invite-flow-resource.d.ts +7 -1
- package/dist/next/resources/invites/invite-flow-resource.js +7 -1
- package/dist/next/resources/invites/invites-resource.d.ts +15 -0
- package/dist/next/resources/invites/invites-resource.js +5 -0
- package/dist/next/resources/localization/i18next-resource.d.ts +6 -0
- package/dist/next/resources/localization/i18next-resource.js +6 -0
- package/dist/next/resources/localization/locales-resource.d.ts +7 -0
- package/dist/next/resources/localization/locales-resource.js +7 -0
- package/dist/next/resources/localization/localizations-resource.d.ts +17 -0
- package/dist/next/resources/localization/localizations-resource.js +9 -0
- package/dist/next/resources/measurements/measurements-resource.d.ts +64 -3
- package/dist/next/resources/measurements/measurements-resource.js +45 -6
- package/dist/next/resources/measurements/observation-builder.d.ts +6 -1
- package/dist/next/resources/measurements/observation-builder.js +16 -7
- package/dist/next/resources/measurements/offline-measurement-queue-types.d.ts +32 -0
- package/dist/next/resources/measurements/save-error.js +3 -4
- package/dist/next/resources/patient/fhir-records.d.ts +19 -1
- package/dist/next/resources/patient/fhir-records.js +19 -1
- package/dist/next/resources/patient/patient-resource.d.ts +15 -0
- package/dist/next/resources/patient/patient-resource.js +6 -0
- package/dist/next/resources/projects/project-features-resource.d.ts +7 -0
- package/dist/next/resources/projects/project-features-resource.js +7 -0
- package/dist/next/resources/projects/project-members-resource.d.ts +19 -0
- package/dist/next/resources/projects/project-members-resource.js +9 -0
- package/dist/next/resources/projects/project-settings-resource.d.ts +8 -0
- package/dist/next/resources/projects/project-settings-resource.js +8 -0
- package/dist/next/resources/projects/projects-resource.d.ts +15 -0
- package/dist/next/resources/projects/projects-resource.js +5 -0
- package/dist/next/resources/questionnaires/questionnaires-resource.d.ts +13 -0
- package/dist/next/resources/questionnaires/questionnaires-resource.js +13 -0
- package/dist/next/resources/realtime/realtime-resource.d.ts +11 -0
- package/dist/next/resources/realtime/realtime-resource.js +11 -0
- package/dist/next/resources/realtime/realtime-socket.js +12 -5
- package/dist/next/resources/realtime/realtime-types.d.ts +19 -1
- package/dist/next/resources/session/saved-accounts-resource.d.ts +16 -0
- package/dist/next/resources/session/saved-accounts-resource.js +16 -0
- package/dist/next/resources/session/session-resource.d.ts +8 -0
- package/dist/next/resources/session/session-resource.js +7 -0
- package/dist/next/resources/sharing/sharing-invites-resource.d.ts +7 -0
- package/dist/next/resources/sharing/sharing-invites-resource.js +7 -0
- package/dist/next/resources/sharing/sharing-resource.d.ts +8 -0
- package/dist/next/resources/sharing/sharing-resource.js +5 -0
- package/dist/next/resources/sharing/sharing-settings-resource.d.ts +7 -0
- package/dist/next/resources/sharing/sharing-settings-resource.js +7 -0
- package/dist/next/resources/sharing/sharing-shares-resource.d.ts +7 -0
- package/dist/next/resources/sharing/sharing-shares-resource.js +7 -0
- package/dist/next/resources/signals/signals-gateway-resource.d.ts +15 -0
- package/dist/next/resources/signals/signals-gateway-resource.js +6 -0
- package/dist/next/resources/signals/signals-resource.d.ts +7 -0
- package/dist/next/resources/signals/signals-resource.js +5 -0
- package/dist/next/resources/signals/undeliverable-resource.d.ts +35 -0
- package/dist/next/resources/signals/undeliverable-resource.js +6 -0
- package/dist/next/resources/slim/slim-alarms-resource.d.ts +7 -0
- package/dist/next/resources/slim/slim-alarms-resource.js +7 -0
- package/dist/next/resources/slim/slim-change-history-resource.d.ts +6 -0
- package/dist/next/resources/slim/slim-change-history-resource.js +6 -0
- package/dist/next/resources/slim/slim-child-projects-resource.d.ts +21 -0
- package/dist/next/resources/slim/slim-child-projects-resource.js +8 -0
- package/dist/next/resources/slim/slim-devices-resource.d.ts +31 -0
- package/dist/next/resources/slim/slim-devices-resource.js +16 -0
- package/dist/next/resources/slim/slim-exports-resource.d.ts +6 -0
- package/dist/next/resources/slim/slim-exports-resource.js +6 -0
- package/dist/next/resources/slim/slim-locations-resource.d.ts +9 -0
- package/dist/next/resources/slim/slim-locations-resource.js +9 -0
- package/dist/next/resources/slim/slim-medical-notifications-resource.d.ts +6 -0
- package/dist/next/resources/slim/slim-medical-notifications-resource.js +6 -0
- package/dist/next/resources/slim/slim-notification-notes-resource.d.ts +10 -0
- package/dist/next/resources/slim/slim-notification-notes-resource.js +10 -0
- package/dist/next/resources/slim/slim-notifications-resource.d.ts +10 -0
- package/dist/next/resources/slim/slim-notifications-resource.js +6 -0
- package/dist/next/resources/slim/slim-organizations-resource.d.ts +9 -0
- package/dist/next/resources/slim/slim-organizations-resource.js +9 -0
- package/dist/next/resources/slim/slim-out-of-bed-resource.d.ts +12 -0
- package/dist/next/resources/slim/slim-out-of-bed-resource.js +7 -0
- package/dist/next/resources/slim/slim-patient-thresholds-resource.d.ts +6 -0
- package/dist/next/resources/slim/slim-patient-thresholds-resource.js +6 -0
- package/dist/next/resources/slim/slim-patients-resource.d.ts +11 -0
- package/dist/next/resources/slim/slim-patients-resource.js +10 -0
- package/dist/next/resources/slim/slim-policies-resource.d.ts +10 -0
- package/dist/next/resources/slim/slim-policies-resource.js +10 -0
- package/dist/next/resources/slim/slim-practitioners-resource.d.ts +6 -0
- package/dist/next/resources/slim/slim-practitioners-resource.js +6 -0
- package/dist/next/resources/slim/slim-projects-resource.d.ts +12 -0
- package/dist/next/resources/slim/slim-projects-resource.js +11 -0
- package/dist/next/resources/slim/slim-queries.d.ts +51 -0
- package/dist/next/resources/slim/slim-resource.d.ts +21 -0
- package/dist/next/resources/slim/slim-resource.js +6 -0
- package/dist/next/resources/slim/slim-sleep-resource.d.ts +6 -0
- package/dist/next/resources/slim/slim-sleep-resource.js +6 -0
- package/dist/next/resources/slim/slim-thresholds-resource.d.ts +5 -0
- package/dist/next/resources/slim/slim-thresholds-resource.js +5 -0
- package/dist/next/resources/slim/slim-trends-resource.d.ts +6 -0
- package/dist/next/resources/slim/slim-trends-resource.js +6 -0
- package/dist/next/resources/slim/slim-users-resource.d.ts +12 -0
- package/dist/next/resources/slim/slim-users-resource.js +6 -0
- package/dist/next/resources/slim/slim-zones-resource.d.ts +8 -0
- package/dist/next/resources/slim/slim-zones-resource.js +8 -0
- package/dist/next/resources/video-calls/video-call-access-resource.d.ts +13 -0
- package/dist/next/resources/video-calls/video-call-access-resource.js +8 -0
- package/dist/next/resources/video-calls/video-call-appointments-resource.d.ts +8 -0
- package/dist/next/resources/video-calls/video-call-appointments-resource.js +8 -0
- package/dist/next/resources/video-calls/video-call-emails-resource.d.ts +8 -0
- package/dist/next/resources/video-calls/video-call-emails-resource.js +8 -0
- package/dist/next/resources/video-calls/video-calls-resource.d.ts +14 -0
- package/dist/next/resources/video-calls/video-calls-resource.js +6 -0
- package/dist/next/resources/wearables/wearable-connections-resource.d.ts +8 -0
- package/dist/next/resources/wearables/wearable-connections-resource.js +8 -0
- package/dist/next/resources/wearables/wearable-providers-resource.d.ts +10 -0
- package/dist/next/resources/wearables/wearable-providers-resource.js +10 -0
- package/dist/next/resources/wearables/wearables-resource.d.ts +7 -0
- package/dist/next/resources/wearables/wearables-resource.js +5 -0
- package/dist/next/storage/ovok-storage.d.ts +16 -0
- package/dist/next/storage/ovok-storage.js +8 -0
- package/dist/types/ValidationError.d.ts +9 -0
- package/dist/utils/patch/getPatchOperationType.d.ts +3 -0
- package/dist/utils/patch/getPatchOperationType.js +3 -0
- package/package.json +52 -13
|
@@ -1,34 +1,85 @@
|
|
|
1
1
|
import type { SlimGraphType, SlimHistoricalGraphType } from "../../../client/slim/types";
|
|
2
|
+
/**
|
|
3
|
+
* How many recent items to return.
|
|
4
|
+
*
|
|
5
|
+
* @category slim
|
|
6
|
+
*/
|
|
2
7
|
export type SlimRecentQuery = {
|
|
8
|
+
/** Most items to return. */
|
|
3
9
|
count?: number;
|
|
4
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* Selects the patient, date range and graph types for historical trends.
|
|
13
|
+
*
|
|
14
|
+
* @category slim
|
|
15
|
+
*/
|
|
5
16
|
export type SlimTrendsQuery = {
|
|
17
|
+
/** Patient to read trends for. */
|
|
6
18
|
patientId: string;
|
|
19
|
+
/** First day of the range. */
|
|
7
20
|
startDate: string;
|
|
21
|
+
/** Last day of the range. */
|
|
8
22
|
endDate: string;
|
|
23
|
+
/** Graph type or types to return. */
|
|
9
24
|
graphType: SlimHistoricalGraphType | readonly SlimHistoricalGraphType[];
|
|
10
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* Selects the patient, time range and graph types for realtime trends.
|
|
28
|
+
*
|
|
29
|
+
* @category slim
|
|
30
|
+
*/
|
|
11
31
|
export type SlimRealtimeTrendsQuery = {
|
|
32
|
+
/** Patient to read trends for. */
|
|
12
33
|
patientId: string;
|
|
34
|
+
/** Start of the range, as a timestamp. */
|
|
13
35
|
startTime: string;
|
|
36
|
+
/** End of the range, as a timestamp. */
|
|
14
37
|
endTime: string;
|
|
38
|
+
/** Graph type or types to return. */
|
|
15
39
|
graphType: SlimGraphType | readonly SlimGraphType[];
|
|
16
40
|
};
|
|
41
|
+
/**
|
|
42
|
+
* Selects the patient and period for sleep statistics.
|
|
43
|
+
*
|
|
44
|
+
* @category slim
|
|
45
|
+
*/
|
|
17
46
|
export type SlimSleepStatisticsQuery = {
|
|
47
|
+
/** Last day of the period. */
|
|
18
48
|
endDate: string;
|
|
49
|
+
/** How many days back from `endDate` to include. */
|
|
19
50
|
lastDayCount?: number;
|
|
51
|
+
/** Patient to read statistics for. */
|
|
20
52
|
patientId: string;
|
|
21
53
|
};
|
|
54
|
+
/**
|
|
55
|
+
* Paging, sorting and search for listing zones.
|
|
56
|
+
*
|
|
57
|
+
* @category slim
|
|
58
|
+
*/
|
|
22
59
|
export type SlimZoneListQuery = {
|
|
60
|
+
/** Page number to fetch. */
|
|
23
61
|
page?: number;
|
|
62
|
+
/** Zones per page. */
|
|
24
63
|
count?: number;
|
|
64
|
+
/** Field to sort by. */
|
|
25
65
|
sortBy?: string;
|
|
66
|
+
/** Sort direction. */
|
|
26
67
|
orderBy?: "ASC" | "DESC";
|
|
68
|
+
/** Text to search for in zone names. */
|
|
27
69
|
search?: string;
|
|
28
70
|
};
|
|
71
|
+
/**
|
|
72
|
+
* Options for counting devices per zone.
|
|
73
|
+
*
|
|
74
|
+
* @category slim
|
|
75
|
+
*/
|
|
29
76
|
export type SlimZoneDeviceCountsQuery = {
|
|
77
|
+
/** Count across all zones rather than only the current page. */
|
|
30
78
|
all?: boolean;
|
|
79
|
+
/** Only devices with this effective sleep status. */
|
|
31
80
|
effectiveSleepStatus?: string;
|
|
81
|
+
/** Also count devices not assigned to a zone. */
|
|
32
82
|
includeUnassigned?: boolean;
|
|
83
|
+
/** Also list zones that have no devices. */
|
|
33
84
|
includeEmpty?: boolean;
|
|
34
85
|
};
|
|
@@ -17,23 +17,44 @@ import { SlimThresholdsResource } from "./slim-thresholds-resource";
|
|
|
17
17
|
import { SlimTrendsResource } from "./slim-trends-resource";
|
|
18
18
|
import { SlimUsersResource } from "./slim-users-resource";
|
|
19
19
|
import { SlimZonesResource } from "./slim-zones-resource";
|
|
20
|
+
/**
|
|
21
|
+
* Care-home resources: residents, devices, notifications, thresholds, trends, sleep, places and staff. Calls routes under `v1/slim`.
|
|
22
|
+
*
|
|
23
|
+
* @category slim
|
|
24
|
+
*/
|
|
20
25
|
export declare class SlimResource {
|
|
21
26
|
private readonly http;
|
|
27
|
+
/** Residents. */
|
|
22
28
|
readonly patients: SlimPatientsResource;
|
|
29
|
+
/** Devices. */
|
|
23
30
|
readonly devices: SlimDevicesResource;
|
|
31
|
+
/** Alarms, out-of-bed and medical notifications. */
|
|
24
32
|
readonly notifications: SlimNotificationsResource;
|
|
33
|
+
/** Alert thresholds. */
|
|
25
34
|
readonly thresholds: SlimThresholdsResource;
|
|
35
|
+
/** Historical and realtime trends. */
|
|
26
36
|
readonly trends: SlimTrendsResource;
|
|
37
|
+
/** Sleep statistics. */
|
|
27
38
|
readonly sleep: SlimSleepResource;
|
|
39
|
+
/** Locations. */
|
|
28
40
|
readonly locations: SlimLocationsResource;
|
|
41
|
+
/** Zones. */
|
|
29
42
|
readonly zones: SlimZonesResource;
|
|
43
|
+
/** Report exports. */
|
|
30
44
|
readonly exports: SlimExportsResource;
|
|
45
|
+
/** The change history. */
|
|
31
46
|
readonly changeHistory: SlimChangeHistoryResource;
|
|
47
|
+
/** Projects. */
|
|
32
48
|
readonly projects: SlimProjectsResource;
|
|
49
|
+
/** Access policies. */
|
|
33
50
|
readonly policies: SlimPoliciesResource;
|
|
51
|
+
/** Organizations. */
|
|
34
52
|
readonly organizations: SlimOrganizationsResource;
|
|
53
|
+
/** Practitioners. */
|
|
35
54
|
readonly practitioners: SlimPractitionersResource;
|
|
55
|
+
/** Users. */
|
|
36
56
|
readonly users: SlimUsersResource;
|
|
37
57
|
constructor(http: HttpClient, session?: UserSession | null);
|
|
58
|
+
/** Checks the slim API health. Calls `GET v1/slim/health`. */
|
|
38
59
|
health(options?: RequestOptions): Promise<SlimHealth>;
|
|
39
60
|
}
|
|
@@ -18,6 +18,11 @@ const slim_trends_resource_1 = require("./slim-trends-resource");
|
|
|
18
18
|
const slim_users_resource_1 = require("./slim-users-resource");
|
|
19
19
|
const slim_zones_resource_1 = require("./slim-zones-resource");
|
|
20
20
|
const HEALTH_PATH = `${slim_paths_1.SLIM_PATH}/health`;
|
|
21
|
+
/**
|
|
22
|
+
* Care-home resources: residents, devices, notifications, thresholds, trends, sleep, places and staff. Calls routes under `v1/slim`.
|
|
23
|
+
*
|
|
24
|
+
* @category slim
|
|
25
|
+
*/
|
|
21
26
|
class SlimResource {
|
|
22
27
|
constructor(http, session = null) {
|
|
23
28
|
this.http = http;
|
|
@@ -37,6 +42,7 @@ class SlimResource {
|
|
|
37
42
|
this.practitioners = new slim_practitioners_resource_1.SlimPractitionersResource(http);
|
|
38
43
|
this.users = new slim_users_resource_1.SlimUsersResource(http);
|
|
39
44
|
}
|
|
45
|
+
/** Checks the slim API health. Calls `GET v1/slim/health`. */
|
|
40
46
|
health(options) {
|
|
41
47
|
return this.http.get(HEALTH_PATH, options);
|
|
42
48
|
}
|
|
@@ -2,8 +2,14 @@ import type { SlimSleepStatistics } from "../../../client/slim/types";
|
|
|
2
2
|
import { HttpClient } from "../../http/http-client";
|
|
3
3
|
import { RequestOptions } from "../../http/transmit";
|
|
4
4
|
import { SlimSleepStatisticsQuery } from "./slim-queries";
|
|
5
|
+
/**
|
|
6
|
+
* Sleep data.
|
|
7
|
+
*
|
|
8
|
+
* @category slim
|
|
9
|
+
*/
|
|
5
10
|
export declare class SlimSleepResource {
|
|
6
11
|
private readonly http;
|
|
7
12
|
constructor(http: HttpClient);
|
|
13
|
+
/** Fetches sleep statistics. Calls `GET v1/slim/sleep/statistics`. */
|
|
8
14
|
statistics(params: SlimSleepStatisticsQuery, options?: RequestOptions): Promise<SlimSleepStatistics>;
|
|
9
15
|
}
|
|
@@ -4,10 +4,16 @@ exports.SlimSleepResource = void 0;
|
|
|
4
4
|
const query_string_1 = require("../../../client/query-string");
|
|
5
5
|
const slim_paths_1 = require("./slim-paths");
|
|
6
6
|
const SLEEP_STATISTICS_PATH = `${slim_paths_1.SLIM_PATH}/sleep/statistics`;
|
|
7
|
+
/**
|
|
8
|
+
* Sleep data.
|
|
9
|
+
*
|
|
10
|
+
* @category slim
|
|
11
|
+
*/
|
|
7
12
|
class SlimSleepResource {
|
|
8
13
|
constructor(http) {
|
|
9
14
|
this.http = http;
|
|
10
15
|
}
|
|
16
|
+
/** Fetches sleep statistics. Calls `GET v1/slim/sleep/statistics`. */
|
|
11
17
|
statistics(params, options) {
|
|
12
18
|
return this.http.get(`${SLEEP_STATISTICS_PATH}${(0, query_string_1.toQueryString)(params)}`, options);
|
|
13
19
|
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { SlimThresholdV2, SlimThresholdV2Update } from "../../../client/slim/types";
|
|
2
2
|
import { HttpClient } from "../../http/http-client";
|
|
3
3
|
import { RequestOptions } from "../../http/transmit";
|
|
4
|
+
/**
|
|
5
|
+
* Vital-sign thresholds of the current project.
|
|
6
|
+
*
|
|
7
|
+
* @category slim
|
|
8
|
+
*/
|
|
4
9
|
export declare class SlimThresholdsResource {
|
|
5
10
|
private readonly http;
|
|
6
11
|
constructor(http: HttpClient);
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SlimThresholdsResource = void 0;
|
|
4
4
|
const slim_paths_1 = require("./slim-paths");
|
|
5
|
+
/**
|
|
6
|
+
* Vital-sign thresholds of the current project.
|
|
7
|
+
*
|
|
8
|
+
* @category slim
|
|
9
|
+
*/
|
|
5
10
|
class SlimThresholdsResource {
|
|
6
11
|
constructor(http) {
|
|
7
12
|
this.http = http;
|
|
@@ -2,9 +2,15 @@ import type { SlimTrends } from "../../../client/slim/types";
|
|
|
2
2
|
import { HttpClient } from "../../http/http-client";
|
|
3
3
|
import { RequestOptions } from "../../http/transmit";
|
|
4
4
|
import { SlimRealtimeTrendsQuery, SlimTrendsQuery } from "./slim-queries";
|
|
5
|
+
/**
|
|
6
|
+
* Vital-sign trends.
|
|
7
|
+
*
|
|
8
|
+
* @category slim
|
|
9
|
+
*/
|
|
5
10
|
export declare class SlimTrendsResource {
|
|
6
11
|
private readonly http;
|
|
7
12
|
constructor(http: HttpClient);
|
|
13
|
+
/** Fetches trend graphs. Calls `GET v1/slim/trends/graphs`. */
|
|
8
14
|
graphs(params: SlimTrendsQuery, options?: RequestOptions): Promise<SlimTrends>;
|
|
9
15
|
/** At most 20 calls per minute per caller: load once per view and wait retryAfterMs after a 503. */
|
|
10
16
|
realtime(params: SlimRealtimeTrendsQuery, options?: RequestOptions): Promise<SlimTrends>;
|
|
@@ -4,10 +4,16 @@ exports.SlimTrendsResource = void 0;
|
|
|
4
4
|
const query_string_1 = require("../../../client/query-string");
|
|
5
5
|
const slim_paths_1 = require("./slim-paths");
|
|
6
6
|
const TRENDS_PATH = `${slim_paths_1.SLIM_PATH}/trends`;
|
|
7
|
+
/**
|
|
8
|
+
* Vital-sign trends.
|
|
9
|
+
*
|
|
10
|
+
* @category slim
|
|
11
|
+
*/
|
|
7
12
|
class SlimTrendsResource {
|
|
8
13
|
constructor(http) {
|
|
9
14
|
this.http = http;
|
|
10
15
|
}
|
|
16
|
+
/** Fetches trend graphs. Calls `GET v1/slim/trends/graphs`. */
|
|
11
17
|
graphs(params, options) {
|
|
12
18
|
return this.http.get(`${TRENDS_PATH}/graphs${(0, query_string_1.toQueryString)(params)}`, options);
|
|
13
19
|
}
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
import type { SlimUserProfileType } from "../../../client/slim/types";
|
|
2
2
|
import { HttpClient } from "../../http/http-client";
|
|
3
3
|
import { RequestOptions } from "../../http/transmit";
|
|
4
|
+
/**
|
|
5
|
+
* Result of deleting a user.
|
|
6
|
+
*
|
|
7
|
+
* @category slim
|
|
8
|
+
*/
|
|
4
9
|
export type SlimUserDeleted = {
|
|
10
|
+
/** Whether the user was deleted. */
|
|
5
11
|
success: boolean;
|
|
6
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* Users.
|
|
15
|
+
*
|
|
16
|
+
* @category slim
|
|
17
|
+
*/
|
|
7
18
|
export declare class SlimUsersResource {
|
|
8
19
|
private readonly http;
|
|
9
20
|
constructor(http: HttpClient);
|
|
21
|
+
/** Deletes a user by profile type and id. Calls `DELETE v1/slim/user/{profileType}/{profileId}`. */
|
|
10
22
|
delete(profileType: SlimUserProfileType, profileId: string, options?: RequestOptions): Promise<SlimUserDeleted>;
|
|
11
23
|
}
|
|
@@ -4,10 +4,16 @@ exports.SlimUsersResource = void 0;
|
|
|
4
4
|
const url_1 = require("../../http/url");
|
|
5
5
|
const slim_paths_1 = require("./slim-paths");
|
|
6
6
|
const USERS_PATH = `${slim_paths_1.SLIM_PATH}/user`;
|
|
7
|
+
/**
|
|
8
|
+
* Users.
|
|
9
|
+
*
|
|
10
|
+
* @category slim
|
|
11
|
+
*/
|
|
7
12
|
class SlimUsersResource {
|
|
8
13
|
constructor(http) {
|
|
9
14
|
this.http = http;
|
|
10
15
|
}
|
|
16
|
+
/** Deletes a user by profile type and id. Calls `DELETE v1/slim/user/{profileType}/{profileId}`. */
|
|
11
17
|
delete(profileType, profileId, options) {
|
|
12
18
|
return this.http.delete(`${USERS_PATH}/${(0, url_1.pathSegment)(profileType)}/${(0, url_1.pathSegment)(profileId)}`, options);
|
|
13
19
|
}
|
|
@@ -3,10 +3,18 @@ import { HttpClient } from "../../http/http-client";
|
|
|
3
3
|
import { RequestOptions } from "../../http/transmit";
|
|
4
4
|
import { PagePromise } from "../../paging/page";
|
|
5
5
|
import { SlimZoneDeviceCountsQuery, SlimZoneListQuery } from "./slim-queries";
|
|
6
|
+
/**
|
|
7
|
+
* Zones.
|
|
8
|
+
*
|
|
9
|
+
* @category slim
|
|
10
|
+
*/
|
|
6
11
|
export declare class SlimZonesResource {
|
|
7
12
|
private readonly http;
|
|
8
13
|
constructor(http: HttpClient);
|
|
14
|
+
/** Lists zones. Calls `GET v1/slim/zones`. */
|
|
9
15
|
list(params?: SlimZoneListQuery, options?: RequestOptions): PagePromise<SlimZone>;
|
|
16
|
+
/** Reads one zone. Calls `GET v1/slim/zones/{zoneId}`. */
|
|
10
17
|
retrieve(zoneId: string, options?: RequestOptions): Promise<SlimZoneDetail>;
|
|
18
|
+
/** Counts devices per zone. Calls `GET v1/slim/zones/device-counts`. */
|
|
11
19
|
deviceCounts(params?: SlimZoneDeviceCountsQuery, options?: RequestOptions): Promise<Record<string, unknown>>;
|
|
12
20
|
}
|
|
@@ -7,16 +7,24 @@ const numbered_pages_1 = require("../../paging/numbered-pages");
|
|
|
7
7
|
const slim_paths_1 = require("./slim-paths");
|
|
8
8
|
const ZONES_PATH = `${slim_paths_1.SLIM_PATH}/zones`;
|
|
9
9
|
const DEVICE_COUNTS_PATH = `${ZONES_PATH}/device-counts`;
|
|
10
|
+
/**
|
|
11
|
+
* Zones.
|
|
12
|
+
*
|
|
13
|
+
* @category slim
|
|
14
|
+
*/
|
|
10
15
|
class SlimZonesResource {
|
|
11
16
|
constructor(http) {
|
|
12
17
|
this.http = http;
|
|
13
18
|
}
|
|
19
|
+
/** Lists zones. Calls `GET v1/slim/zones`. */
|
|
14
20
|
list(params = {}, options) {
|
|
15
21
|
return (0, numbered_pages_1.numberedRoutePages)((path) => this.http.get(path, options), ZONES_PATH, params);
|
|
16
22
|
}
|
|
23
|
+
/** Reads one zone. Calls `GET v1/slim/zones/{zoneId}`. */
|
|
17
24
|
retrieve(zoneId, options) {
|
|
18
25
|
return this.http.get(`${ZONES_PATH}/${(0, url_1.pathSegment)(zoneId)}`, options);
|
|
19
26
|
}
|
|
27
|
+
/** Counts devices per zone. Calls `GET v1/slim/zones/device-counts`. */
|
|
20
28
|
deviceCounts(params = {}, options) {
|
|
21
29
|
return this.http.get(`${DEVICE_COUNTS_PATH}${(0, query_string_1.toQueryString)(params)}`, options);
|
|
22
30
|
}
|
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
import type { OvokVideoCallAccess, OvokVideoCallGuestAccess } from "../../../client/experience/types";
|
|
2
2
|
import { HttpClient } from "../../http/http-client";
|
|
3
3
|
import { RequestOptions } from "../../http/transmit";
|
|
4
|
+
/**
|
|
5
|
+
* Whether and how the caller may join a call, as the server describes it.
|
|
6
|
+
*
|
|
7
|
+
* @category videoCalls
|
|
8
|
+
*/
|
|
4
9
|
export type VideoCallAccessPermission = Record<string, unknown>;
|
|
10
|
+
/**
|
|
11
|
+
* Access to video calls.
|
|
12
|
+
*
|
|
13
|
+
* @category videoCalls
|
|
14
|
+
*/
|
|
5
15
|
export declare class VideoCallAccessResource {
|
|
6
16
|
private readonly livekit;
|
|
7
17
|
constructor(livekit: HttpClient);
|
|
18
|
+
/** Checks how the caller may join a call. Calls `GET access-permission/{appointmentId}`. */
|
|
8
19
|
permission(appointmentId: string, options?: RequestOptions): Promise<VideoCallAccessPermission>;
|
|
20
|
+
/** Creates guest access to a call. Calls `POST guest-access/{appointmentId}`. */
|
|
9
21
|
createGuest(appointmentId: string, body: OvokVideoCallGuestAccess, options?: RequestOptions): Promise<OvokVideoCallAccess>;
|
|
22
|
+
/** Creates access to a call for the signed-in user. Calls `POST user-access/{appointmentId}`. */
|
|
10
23
|
createUser(appointmentId: string, options?: RequestOptions): Promise<OvokVideoCallAccess>;
|
|
11
24
|
}
|
|
@@ -2,16 +2,24 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VideoCallAccessResource = void 0;
|
|
4
4
|
const url_1 = require("../../http/url");
|
|
5
|
+
/**
|
|
6
|
+
* Access to video calls.
|
|
7
|
+
*
|
|
8
|
+
* @category videoCalls
|
|
9
|
+
*/
|
|
5
10
|
class VideoCallAccessResource {
|
|
6
11
|
constructor(livekit) {
|
|
7
12
|
this.livekit = livekit;
|
|
8
13
|
}
|
|
14
|
+
/** Checks how the caller may join a call. Calls `GET access-permission/{appointmentId}`. */
|
|
9
15
|
permission(appointmentId, options) {
|
|
10
16
|
return this.livekit.get(`access-permission/${(0, url_1.pathSegment)(appointmentId)}`, options);
|
|
11
17
|
}
|
|
18
|
+
/** Creates guest access to a call. Calls `POST guest-access/{appointmentId}`. */
|
|
12
19
|
createGuest(appointmentId, body, options) {
|
|
13
20
|
return this.livekit.post(`guest-access/${(0, url_1.pathSegment)(appointmentId)}`, body, options);
|
|
14
21
|
}
|
|
22
|
+
/** Creates access to a call for the signed-in user. Calls `POST user-access/{appointmentId}`. */
|
|
15
23
|
createUser(appointmentId, options) {
|
|
16
24
|
return this.livekit.post(`user-access/${(0, url_1.pathSegment)(appointmentId)}`, undefined, options);
|
|
17
25
|
}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import type { OvokVideoCallAppointment, OvokVideoCallAppointmentInput, OvokVideoCallAppointmentQuery } from "../../../client/experience/types";
|
|
2
2
|
import { HttpClient } from "../../http/http-client";
|
|
3
3
|
import { RequestOptions } from "../../http/transmit";
|
|
4
|
+
/**
|
|
5
|
+
* Video call appointments.
|
|
6
|
+
*
|
|
7
|
+
* @category videoCalls
|
|
8
|
+
*/
|
|
4
9
|
export declare class VideoCallAppointmentsResource {
|
|
5
10
|
private readonly livekit;
|
|
6
11
|
constructor(livekit: HttpClient);
|
|
12
|
+
/** Lists appointments. Calls `GET appointment`. */
|
|
7
13
|
list(params?: OvokVideoCallAppointmentQuery, options?: RequestOptions): Promise<OvokVideoCallAppointment[]>;
|
|
14
|
+
/** Creates an appointment. Calls `POST appointment`. */
|
|
8
15
|
create(body: OvokVideoCallAppointmentInput, options?: RequestOptions): Promise<OvokVideoCallAppointment>;
|
|
16
|
+
/** Replaces an appointment. Calls `PUT appointment/{appointmentId}`. */
|
|
9
17
|
update(appointmentId: string, body: OvokVideoCallAppointmentInput, options?: RequestOptions): Promise<OvokVideoCallAppointment>;
|
|
10
18
|
}
|
|
@@ -4,16 +4,24 @@ exports.VideoCallAppointmentsResource = void 0;
|
|
|
4
4
|
const query_string_1 = require("../../../client/query-string");
|
|
5
5
|
const url_1 = require("../../http/url");
|
|
6
6
|
const APPOINTMENT_PATH = "appointment";
|
|
7
|
+
/**
|
|
8
|
+
* Video call appointments.
|
|
9
|
+
*
|
|
10
|
+
* @category videoCalls
|
|
11
|
+
*/
|
|
7
12
|
class VideoCallAppointmentsResource {
|
|
8
13
|
constructor(livekit) {
|
|
9
14
|
this.livekit = livekit;
|
|
10
15
|
}
|
|
16
|
+
/** Lists appointments. Calls `GET appointment`. */
|
|
11
17
|
list(params = {}, options) {
|
|
12
18
|
return this.livekit.get(`${APPOINTMENT_PATH}${(0, query_string_1.toQueryString)(params)}`, options);
|
|
13
19
|
}
|
|
20
|
+
/** Creates an appointment. Calls `POST appointment`. */
|
|
14
21
|
create(body, options) {
|
|
15
22
|
return this.livekit.post(APPOINTMENT_PATH, body, options);
|
|
16
23
|
}
|
|
24
|
+
/** Replaces an appointment. Calls `PUT appointment/{appointmentId}`. */
|
|
17
25
|
update(appointmentId, body, options) {
|
|
18
26
|
return this.livekit.put(`${APPOINTMENT_PATH}/${(0, url_1.pathSegment)(appointmentId)}`, body, options);
|
|
19
27
|
}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import type { OvokVideoCallMailRequest, OvokVideoCallMailResponse } from "../../../client/experience/types";
|
|
2
2
|
import { HttpClient } from "../../http/http-client";
|
|
3
3
|
import { RequestOptions } from "../../http/transmit";
|
|
4
|
+
/**
|
|
5
|
+
* Emails about video calls.
|
|
6
|
+
*
|
|
7
|
+
* @category videoCalls
|
|
8
|
+
*/
|
|
4
9
|
export declare class VideoCallEmailsResource {
|
|
5
10
|
private readonly livekit;
|
|
6
11
|
constructor(livekit: HttpClient);
|
|
12
|
+
/** Emails a call invitation. Calls `POST mail/invite`. */
|
|
7
13
|
invite(body: OvokVideoCallMailRequest, options?: RequestOptions): Promise<OvokVideoCallMailResponse>;
|
|
14
|
+
/** Emails a call update. Calls `POST mail/update`. */
|
|
8
15
|
update(body: OvokVideoCallMailRequest, options?: RequestOptions): Promise<OvokVideoCallMailResponse>;
|
|
16
|
+
/** Emails a call cancellation. Calls `POST mail/cancel`. */
|
|
9
17
|
cancel(body: OvokVideoCallMailRequest, options?: RequestOptions): Promise<OvokVideoCallMailResponse>;
|
|
10
18
|
}
|
|
@@ -2,16 +2,24 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VideoCallEmailsResource = void 0;
|
|
4
4
|
const MAIL_PATH = "mail";
|
|
5
|
+
/**
|
|
6
|
+
* Emails about video calls.
|
|
7
|
+
*
|
|
8
|
+
* @category videoCalls
|
|
9
|
+
*/
|
|
5
10
|
class VideoCallEmailsResource {
|
|
6
11
|
constructor(livekit) {
|
|
7
12
|
this.livekit = livekit;
|
|
8
13
|
}
|
|
14
|
+
/** Emails a call invitation. Calls `POST mail/invite`. */
|
|
9
15
|
invite(body, options) {
|
|
10
16
|
return this.livekit.post(`${MAIL_PATH}/invite`, body, options);
|
|
11
17
|
}
|
|
18
|
+
/** Emails a call update. Calls `POST mail/update`. */
|
|
12
19
|
update(body, options) {
|
|
13
20
|
return this.livekit.post(`${MAIL_PATH}/update`, body, options);
|
|
14
21
|
}
|
|
22
|
+
/** Emails a call cancellation. Calls `POST mail/cancel`. */
|
|
15
23
|
cancel(body, options) {
|
|
16
24
|
return this.livekit.post(`${MAIL_PATH}/cancel`, body, options);
|
|
17
25
|
}
|
|
@@ -3,12 +3,26 @@ import { RequestOptions } from "../../http/transmit";
|
|
|
3
3
|
import { VideoCallAccessResource } from "./video-call-access-resource";
|
|
4
4
|
import { VideoCallAppointmentsResource } from "./video-call-appointments-resource";
|
|
5
5
|
import { VideoCallEmailsResource } from "./video-call-emails-resource";
|
|
6
|
+
/**
|
|
7
|
+
* The server's response to an active-call notification.
|
|
8
|
+
*
|
|
9
|
+
* @category videoCalls
|
|
10
|
+
*/
|
|
6
11
|
export type ActiveCallNotification = Record<string, unknown>;
|
|
12
|
+
/**
|
|
13
|
+
* Video-call appointments, access and emails. Calls routes under `video-call/livekit`.
|
|
14
|
+
*
|
|
15
|
+
* @category videoCalls
|
|
16
|
+
*/
|
|
7
17
|
export declare class VideoCallsResource {
|
|
18
|
+
/** Video-call appointments. */
|
|
8
19
|
readonly appointments: VideoCallAppointmentsResource;
|
|
20
|
+
/** Access to a call. */
|
|
9
21
|
readonly access: VideoCallAccessResource;
|
|
22
|
+
/** Call invitation emails. */
|
|
10
23
|
readonly emails: VideoCallEmailsResource;
|
|
11
24
|
private readonly livekit;
|
|
12
25
|
constructor(http: HttpClient);
|
|
26
|
+
/** Notifies that a call is active. Calls `POST video-call/livekit/notification/active-call/{appointmentId}`. */
|
|
13
27
|
notifyActive(appointmentId: string, options?: RequestOptions): Promise<ActiveCallNotification>;
|
|
14
28
|
}
|
|
@@ -6,6 +6,11 @@ const video_call_access_resource_1 = require("./video-call-access-resource");
|
|
|
6
6
|
const video_call_appointments_resource_1 = require("./video-call-appointments-resource");
|
|
7
7
|
const video_call_emails_resource_1 = require("./video-call-emails-resource");
|
|
8
8
|
const LIVEKIT_PATH = "video-call/livekit";
|
|
9
|
+
/**
|
|
10
|
+
* Video-call appointments, access and emails. Calls routes under `video-call/livekit`.
|
|
11
|
+
*
|
|
12
|
+
* @category videoCalls
|
|
13
|
+
*/
|
|
9
14
|
class VideoCallsResource {
|
|
10
15
|
constructor(http) {
|
|
11
16
|
this.livekit = http.under(LIVEKIT_PATH);
|
|
@@ -13,6 +18,7 @@ class VideoCallsResource {
|
|
|
13
18
|
this.access = new video_call_access_resource_1.VideoCallAccessResource(this.livekit);
|
|
14
19
|
this.emails = new video_call_emails_resource_1.VideoCallEmailsResource(this.livekit);
|
|
15
20
|
}
|
|
21
|
+
/** Notifies that a call is active. Calls `POST video-call/livekit/notification/active-call/{appointmentId}`. */
|
|
16
22
|
notifyActive(appointmentId, options) {
|
|
17
23
|
return this.livekit.post(`notification/active-call/${(0, url_1.pathSegment)(appointmentId)}`, undefined, options);
|
|
18
24
|
}
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import type { WearableConnectionAuthorization, WearableConnections, WearableProvider, WearableSyncResult } from "../../../client/wearables/types";
|
|
2
2
|
import { HttpClient } from "../../http/http-client";
|
|
3
3
|
import { RequestOptions } from "../../http/transmit";
|
|
4
|
+
/**
|
|
5
|
+
* Wearable provider connections.
|
|
6
|
+
*
|
|
7
|
+
* @category wearables
|
|
8
|
+
*/
|
|
4
9
|
export declare class WearableConnectionsResource {
|
|
5
10
|
private readonly wearables;
|
|
6
11
|
constructor(wearables: HttpClient);
|
|
12
|
+
/** Lists the wearable connections. Calls `GET connections`. */
|
|
7
13
|
list(options?: RequestOptions): Promise<WearableConnections>;
|
|
8
14
|
/** The provider's one-time consent page, where the patient grants access. */
|
|
9
15
|
authorize(provider: WearableProvider, options?: RequestOptions): Promise<WearableConnectionAuthorization>;
|
|
16
|
+
/** Syncs data from a provider. Calls `POST connections/{provider}/sync`. */
|
|
10
17
|
sync(provider: WearableProvider, options?: RequestOptions): Promise<WearableSyncResult>;
|
|
18
|
+
/** Disconnects a provider. Calls `DELETE connections/{provider}`. */
|
|
11
19
|
delete(provider: WearableProvider, options?: RequestOptions): Promise<void>;
|
|
12
20
|
}
|
|
@@ -4,10 +4,16 @@ exports.WearableConnectionsResource = void 0;
|
|
|
4
4
|
const url_1 = require("../../http/url");
|
|
5
5
|
const CONNECTIONS_PATH = "connections";
|
|
6
6
|
const connectionPath = (provider) => `${CONNECTIONS_PATH}/${(0, url_1.pathSegment)(provider)}`;
|
|
7
|
+
/**
|
|
8
|
+
* Wearable provider connections.
|
|
9
|
+
*
|
|
10
|
+
* @category wearables
|
|
11
|
+
*/
|
|
7
12
|
class WearableConnectionsResource {
|
|
8
13
|
constructor(wearables) {
|
|
9
14
|
this.wearables = wearables;
|
|
10
15
|
}
|
|
16
|
+
/** Lists the wearable connections. Calls `GET connections`. */
|
|
11
17
|
list(options) {
|
|
12
18
|
return this.wearables.get(CONNECTIONS_PATH, options);
|
|
13
19
|
}
|
|
@@ -15,9 +21,11 @@ class WearableConnectionsResource {
|
|
|
15
21
|
authorize(provider, options) {
|
|
16
22
|
return this.wearables.post(`${connectionPath(provider)}/authorize`, undefined, options);
|
|
17
23
|
}
|
|
24
|
+
/** Syncs data from a provider. Calls `POST connections/{provider}/sync`. */
|
|
18
25
|
sync(provider, options) {
|
|
19
26
|
return this.wearables.post(`${connectionPath(provider)}/sync`, undefined, options);
|
|
20
27
|
}
|
|
28
|
+
/** Disconnects a provider. Calls `DELETE connections/{provider}`. */
|
|
21
29
|
delete(provider, options) {
|
|
22
30
|
return this.wearables.delete(connectionPath(provider), options);
|
|
23
31
|
}
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
import type { CreateWearableProviderRequest, UpdateWearableProviderRequest, WearableProvider, WearableProviderSettings, WearableProviderSettingsList } from "../../../client/wearables/types";
|
|
2
2
|
import { HttpClient } from "../../http/http-client";
|
|
3
3
|
import { RequestOptions } from "../../http/transmit";
|
|
4
|
+
/**
|
|
5
|
+
* Wearable provider settings.
|
|
6
|
+
*
|
|
7
|
+
* @category wearables
|
|
8
|
+
*/
|
|
4
9
|
export declare class WearableProvidersResource {
|
|
5
10
|
private readonly wearables;
|
|
6
11
|
constructor(wearables: HttpClient);
|
|
12
|
+
/** Lists provider settings. Calls `GET providers`. */
|
|
7
13
|
list(options?: RequestOptions): Promise<WearableProviderSettingsList>;
|
|
14
|
+
/** Fetches one provider's settings. Calls `GET providers/{provider}`. */
|
|
8
15
|
retrieve(provider: WearableProvider, options?: RequestOptions): Promise<WearableProviderSettings>;
|
|
16
|
+
/** Creates provider settings. Calls `POST providers`. */
|
|
9
17
|
create(body: CreateWearableProviderRequest, options?: RequestOptions): Promise<WearableProviderSettings>;
|
|
18
|
+
/** Updates provider settings. Calls `PATCH providers/{provider}`. */
|
|
10
19
|
patch(provider: WearableProvider, body: UpdateWearableProviderRequest, options?: RequestOptions): Promise<WearableProviderSettings>;
|
|
20
|
+
/** Deletes provider settings. Calls `DELETE providers/{provider}`. */
|
|
11
21
|
delete(provider: WearableProvider, options?: RequestOptions): Promise<void>;
|
|
12
22
|
}
|
|
@@ -4,22 +4,32 @@ exports.WearableProvidersResource = void 0;
|
|
|
4
4
|
const url_1 = require("../../http/url");
|
|
5
5
|
const PROVIDERS_PATH = "providers";
|
|
6
6
|
const providerPath = (provider) => `${PROVIDERS_PATH}/${(0, url_1.pathSegment)(provider)}`;
|
|
7
|
+
/**
|
|
8
|
+
* Wearable provider settings.
|
|
9
|
+
*
|
|
10
|
+
* @category wearables
|
|
11
|
+
*/
|
|
7
12
|
class WearableProvidersResource {
|
|
8
13
|
constructor(wearables) {
|
|
9
14
|
this.wearables = wearables;
|
|
10
15
|
}
|
|
16
|
+
/** Lists provider settings. Calls `GET providers`. */
|
|
11
17
|
list(options) {
|
|
12
18
|
return this.wearables.get(PROVIDERS_PATH, options);
|
|
13
19
|
}
|
|
20
|
+
/** Fetches one provider's settings. Calls `GET providers/{provider}`. */
|
|
14
21
|
retrieve(provider, options) {
|
|
15
22
|
return this.wearables.get(providerPath(provider), options);
|
|
16
23
|
}
|
|
24
|
+
/** Creates provider settings. Calls `POST providers`. */
|
|
17
25
|
create(body, options) {
|
|
18
26
|
return this.wearables.post(PROVIDERS_PATH, body, options);
|
|
19
27
|
}
|
|
28
|
+
/** Updates provider settings. Calls `PATCH providers/{provider}`. */
|
|
20
29
|
patch(provider, body, options) {
|
|
21
30
|
return this.wearables.patch(providerPath(provider), body, options);
|
|
22
31
|
}
|
|
32
|
+
/** Deletes provider settings. Calls `DELETE providers/{provider}`. */
|
|
23
33
|
delete(provider, options) {
|
|
24
34
|
return this.wearables.delete(providerPath(provider), options);
|
|
25
35
|
}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { HttpClient } from "../../http/http-client";
|
|
2
2
|
import { WearableConnectionsResource } from "./wearable-connections-resource";
|
|
3
3
|
import { WearableProvidersResource } from "./wearable-providers-resource";
|
|
4
|
+
/**
|
|
5
|
+
* Wearable providers and the patient's connections to them. Calls routes under `v1/wearables`.
|
|
6
|
+
*
|
|
7
|
+
* @category wearables
|
|
8
|
+
*/
|
|
4
9
|
export declare class WearablesResource {
|
|
10
|
+
/** Supported wearable providers. */
|
|
5
11
|
readonly providers: WearableProvidersResource;
|
|
12
|
+
/** Wearable connections. */
|
|
6
13
|
readonly connections: WearableConnectionsResource;
|
|
7
14
|
constructor(http: HttpClient);
|
|
8
15
|
}
|