@ovok/core 0.4.49-dev.504 → 0.4.49-dev.513
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/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/methods/generateObservationBodiesByMeasurement.d.ts +3 -0
- package/dist/client/observation/methods/generateObservationBodiesByMeasurement.js +3 -0
- 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 +8 -1
- 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 +6 -0
- package/dist/client/observation/observation-bundle-utils.js +6 -0
- package/dist/client/observation/series.d.ts +25 -3
- package/dist/client/observation/series.js +6 -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/uric-acid-service.js +0 -1
- 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 +14 -0
- package/dist/client/observation/types/UrineAnalytes.js +1 -0
- 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/getObservationValueDisplay.d.ts +2 -0
- package/dist/client/offline/offline-measurement-queue.d.ts +56 -1
- package/dist/client/offline/offline-measurement-queue.js +21 -0
- 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 +27 -6
- package/dist/client/ovok-client.js +8 -5
- 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 +29 -0
- package/dist/hooks/observation-hooks.js +23 -1
- 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/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 +53 -1
- package/dist/next/resources/measurements/measurements-resource.js +14 -0
- package/dist/next/resources/measurements/observation-builder.d.ts +5 -0
- package/dist/next/resources/measurements/offline-measurement-queue-types.d.ts +32 -0
- 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-types.d.ts +16 -0
- 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 +5 -2
|
@@ -6,10 +6,16 @@ const url_1 = require("../../http/url");
|
|
|
6
6
|
const GATEWAY_PATH = "v1/signals/api";
|
|
7
7
|
const CONTROL_CHARACTER_RANGE_END = 0x1f;
|
|
8
8
|
const DELETE_CHARACTER_CODE = 0x7f;
|
|
9
|
+
/**
|
|
10
|
+
* Gateway to the Signals API.
|
|
11
|
+
*
|
|
12
|
+
* @category signals
|
|
13
|
+
*/
|
|
9
14
|
class SignalsGatewayResource {
|
|
10
15
|
constructor(http) {
|
|
11
16
|
this.http = http;
|
|
12
17
|
}
|
|
18
|
+
/** Forwards a request to `v1/signals/api/{path}`. */
|
|
13
19
|
request(request, options) {
|
|
14
20
|
var _a;
|
|
15
21
|
const path = pathFor(request.path);
|
|
@@ -3,9 +3,16 @@ import { HttpClient } from "../../http/http-client";
|
|
|
3
3
|
import { RequestOptions } from "../../http/transmit";
|
|
4
4
|
import { SignalsGatewayResource } from "./signals-gateway-resource";
|
|
5
5
|
import { UndeliverableResource } from "./undeliverable-resource";
|
|
6
|
+
/**
|
|
7
|
+
* Access to Signals: forwarded API calls and delivery repair.
|
|
8
|
+
*
|
|
9
|
+
* @category signals
|
|
10
|
+
*/
|
|
6
11
|
export declare class SignalsResource {
|
|
7
12
|
private readonly http;
|
|
13
|
+
/** Sends requests to the Signals API through Ovok. */
|
|
8
14
|
readonly gateway: SignalsGatewayResource;
|
|
15
|
+
/** Residents whose limits could not be delivered to Signals. */
|
|
9
16
|
readonly undeliverable: UndeliverableResource;
|
|
10
17
|
constructor(http: HttpClient);
|
|
11
18
|
/** Idempotent: retry after 409 or 503. Readings saved through Ovok reach Signals without a second submit. */
|
|
@@ -5,6 +5,11 @@ const url_1 = require("../../http/url");
|
|
|
5
5
|
const signals_gateway_resource_1 = require("./signals-gateway-resource");
|
|
6
6
|
const undeliverable_resource_1 = require("./undeliverable-resource");
|
|
7
7
|
const enableSignalsPath = (patientId) => `fhir/Patient/${(0, url_1.pathSegment)(patientId)}/$enable-signals`;
|
|
8
|
+
/**
|
|
9
|
+
* Access to Signals: forwarded API calls and delivery repair.
|
|
10
|
+
*
|
|
11
|
+
* @category signals
|
|
12
|
+
*/
|
|
8
13
|
class SignalsResource {
|
|
9
14
|
constructor(http) {
|
|
10
15
|
this.http = http;
|
|
@@ -1,25 +1,60 @@
|
|
|
1
1
|
import { HttpClient } from "../../http/http-client";
|
|
2
2
|
import { RequestOptions } from "../../http/transmit";
|
|
3
|
+
/**
|
|
4
|
+
* A resident whose limits could not be delivered to Signals.
|
|
5
|
+
*
|
|
6
|
+
* @category signals
|
|
7
|
+
*/
|
|
3
8
|
export type SignalsUndeliverableResident = {
|
|
9
|
+
/** Patient id of the resident. */
|
|
4
10
|
patientId: string;
|
|
5
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* Residents whose limits could not be delivered to Signals.
|
|
14
|
+
*
|
|
15
|
+
* @category signals
|
|
16
|
+
*/
|
|
6
17
|
export type SignalsUndeliverable = {
|
|
18
|
+
/** Number of residents. */
|
|
7
19
|
count: number;
|
|
20
|
+
/** The affected residents. */
|
|
8
21
|
residents: SignalsUndeliverableResident[];
|
|
9
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* Request body for repairing delivery.
|
|
25
|
+
*
|
|
26
|
+
* @category signals
|
|
27
|
+
*/
|
|
10
28
|
export type SignalsDeliveryRepair = {
|
|
29
|
+
/** Only repair these patients; omit to repair all listed residents. */
|
|
11
30
|
patientIds?: string[];
|
|
12
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* Outcome of a repair run.
|
|
34
|
+
*
|
|
35
|
+
* @category signals
|
|
36
|
+
*/
|
|
13
37
|
export type SignalsDeliveryRepairResult = {
|
|
38
|
+
/** Residents the repair tried. */
|
|
14
39
|
attempted: number;
|
|
40
|
+
/** Residents now delivered. */
|
|
15
41
|
repaired: number;
|
|
42
|
+
/** Residents that still could not be delivered. */
|
|
16
43
|
stillUndeliverable: number;
|
|
44
|
+
/** Residents skipped. */
|
|
17
45
|
skipped: number;
|
|
46
|
+
/** Residents not reached before the run ended. */
|
|
18
47
|
notReached: number;
|
|
19
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* Residents whose limits could not be delivered to Signals.
|
|
51
|
+
*
|
|
52
|
+
* @category signals
|
|
53
|
+
*/
|
|
20
54
|
export declare class UndeliverableResource {
|
|
21
55
|
private readonly http;
|
|
22
56
|
constructor(http: HttpClient);
|
|
57
|
+
/** Lists undeliverable residents. Calls `GET signals/config/undeliverable`. */
|
|
23
58
|
list(options?: RequestOptions): Promise<SignalsUndeliverable>;
|
|
24
59
|
/** Without `patientIds`, repairs the residents `list` shows. */
|
|
25
60
|
repair(request?: SignalsDeliveryRepair, options?: RequestOptions): Promise<SignalsDeliveryRepairResult>;
|
|
@@ -3,10 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UndeliverableResource = void 0;
|
|
4
4
|
const UNDELIVERABLE_PATH = "signals/config/undeliverable";
|
|
5
5
|
const REPAIR_PATH = `${UNDELIVERABLE_PATH}/repair`;
|
|
6
|
+
/**
|
|
7
|
+
* Residents whose limits could not be delivered to Signals.
|
|
8
|
+
*
|
|
9
|
+
* @category signals
|
|
10
|
+
*/
|
|
6
11
|
class UndeliverableResource {
|
|
7
12
|
constructor(http) {
|
|
8
13
|
this.http = http;
|
|
9
14
|
}
|
|
15
|
+
/** Lists undeliverable residents. Calls `GET signals/config/undeliverable`. */
|
|
10
16
|
list(options) {
|
|
11
17
|
return this.http.get(UNDELIVERABLE_PATH, options);
|
|
12
18
|
}
|
|
@@ -3,10 +3,17 @@ import type { SlimNotification } from "../../../client/slim/types";
|
|
|
3
3
|
import { HttpClient } from "../../http/http-client";
|
|
4
4
|
import { RequestOptions } from "../../http/transmit";
|
|
5
5
|
import { SlimRecentQuery } from "./slim-queries";
|
|
6
|
+
/**
|
|
7
|
+
* Alarm notifications.
|
|
8
|
+
*
|
|
9
|
+
* @category slim
|
|
10
|
+
*/
|
|
6
11
|
export declare class SlimAlarmsResource {
|
|
7
12
|
private readonly http;
|
|
8
13
|
constructor(http: HttpClient);
|
|
14
|
+
/** Lists alarm notifications. Calls `GET v1/slim/notifications/alarms`. */
|
|
9
15
|
list(params?: SlimAlarmQuery, options?: RequestOptions): Promise<SlimAlarmsPage>;
|
|
16
|
+
/** Reads the recent alarms. Calls `GET v1/slim/notifications/recent/alarms`. */
|
|
10
17
|
recent(params?: SlimRecentQuery, options?: RequestOptions): Promise<SlimRecentAlarms>;
|
|
11
18
|
/** Can take about 12 s; the server makes it safe to repeat, so a 503 is retried. */
|
|
12
19
|
acknowledge(notificationId: string, options?: RequestOptions): Promise<SlimNotification>;
|
|
@@ -6,13 +6,20 @@ const url_1 = require("../../http/url");
|
|
|
6
6
|
const slim_paths_1 = require("./slim-paths");
|
|
7
7
|
const ALARMS_PATH = `${slim_paths_1.NOTIFICATIONS_PATH}/alarms`;
|
|
8
8
|
const RECENT_ALARMS_PATH = `${slim_paths_1.RECENT_NOTIFICATIONS_PATH}/alarms`;
|
|
9
|
+
/**
|
|
10
|
+
* Alarm notifications.
|
|
11
|
+
*
|
|
12
|
+
* @category slim
|
|
13
|
+
*/
|
|
9
14
|
class SlimAlarmsResource {
|
|
10
15
|
constructor(http) {
|
|
11
16
|
this.http = http;
|
|
12
17
|
}
|
|
18
|
+
/** Lists alarm notifications. Calls `GET v1/slim/notifications/alarms`. */
|
|
13
19
|
list(params = {}, options) {
|
|
14
20
|
return this.http.get(`${ALARMS_PATH}${(0, query_string_1.toQueryString)(params)}`, options);
|
|
15
21
|
}
|
|
22
|
+
/** Reads the recent alarms. Calls `GET v1/slim/notifications/recent/alarms`. */
|
|
16
23
|
recent(params = {}, options) {
|
|
17
24
|
return this.http.get(`${RECENT_ALARMS_PATH}${(0, query_string_1.toQueryString)(params)}`, options);
|
|
18
25
|
}
|
|
@@ -2,8 +2,14 @@ import type { ChangeHistoryQuery, ChangeHistoryRow } from "../../../client/chang
|
|
|
2
2
|
import { HttpClient } from "../../http/http-client";
|
|
3
3
|
import { RequestOptions } from "../../http/transmit";
|
|
4
4
|
import { PagePromise } from "../../paging/page";
|
|
5
|
+
/**
|
|
6
|
+
* Change history of slim records.
|
|
7
|
+
*
|
|
8
|
+
* @category slim
|
|
9
|
+
*/
|
|
5
10
|
export declare class SlimChangeHistoryResource {
|
|
6
11
|
private readonly http;
|
|
7
12
|
constructor(http: HttpClient);
|
|
13
|
+
/** Lists change-history rows page by page. Calls `GET v1/slim/change-history`. */
|
|
8
14
|
list(params?: ChangeHistoryQuery, options?: RequestOptions): PagePromise<ChangeHistoryRow>;
|
|
9
15
|
}
|
|
@@ -6,10 +6,16 @@ const numbered_pages_1 = require("../../paging/numbered-pages");
|
|
|
6
6
|
const slim_paths_1 = require("./slim-paths");
|
|
7
7
|
const CHANGE_HISTORY_PATH = `${slim_paths_1.SLIM_PATH}/change-history`;
|
|
8
8
|
const TYPES_LIST_KEY = "types[]";
|
|
9
|
+
/**
|
|
10
|
+
* Change history of slim records.
|
|
11
|
+
*
|
|
12
|
+
* @category slim
|
|
13
|
+
*/
|
|
9
14
|
class SlimChangeHistoryResource {
|
|
10
15
|
constructor(http) {
|
|
11
16
|
this.http = http;
|
|
12
17
|
}
|
|
18
|
+
/** Lists change-history rows page by page. Calls `GET v1/slim/change-history`. */
|
|
13
19
|
list(params = {}, options) {
|
|
14
20
|
return (0, numbered_pages_1.numberedPages)((page) => this.http.get(`${CHANGE_HISTORY_PATH}${changeHistoryQuery({ ...params, page })}`, options), params.page);
|
|
15
21
|
}
|
|
@@ -1,17 +1,38 @@
|
|
|
1
1
|
import type { SlimChildProjectInput, SlimProjectRelationshipsV2 } from "../../../client/slim/types";
|
|
2
2
|
import { HttpClient } from "../../http/http-client";
|
|
3
3
|
import { RequestOptions } from "../../http/transmit";
|
|
4
|
+
/**
|
|
5
|
+
* Result of creating a child project.
|
|
6
|
+
*
|
|
7
|
+
* @category slim
|
|
8
|
+
*/
|
|
4
9
|
export type SlimChildProjectCreated = {
|
|
10
|
+
/** Id of the new child project. */
|
|
5
11
|
projectId: string;
|
|
12
|
+
/** Always true on success. */
|
|
6
13
|
success: true;
|
|
7
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* Result of deleting a child project.
|
|
17
|
+
*
|
|
18
|
+
* @category slim
|
|
19
|
+
*/
|
|
8
20
|
export type SlimChildProjectDeleted = {
|
|
21
|
+
/** Always true on success. */
|
|
9
22
|
success: true;
|
|
10
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* Child projects of the current project.
|
|
26
|
+
*
|
|
27
|
+
* @category slim
|
|
28
|
+
*/
|
|
11
29
|
export declare class SlimChildProjectsResource {
|
|
12
30
|
private readonly http;
|
|
13
31
|
constructor(http: HttpClient);
|
|
32
|
+
/** Lists the project's relationships. Calls `GET v2/slim/project/child`. */
|
|
14
33
|
list(options?: RequestOptions): Promise<SlimProjectRelationshipsV2>;
|
|
34
|
+
/** Creates a child project. Calls `POST v1/slim/project/child`. */
|
|
15
35
|
create(body: SlimChildProjectInput, options?: RequestOptions): Promise<SlimChildProjectCreated>;
|
|
36
|
+
/** Deletes a child project. Calls `DELETE v1/slim/project/child/{subProjectId}`. */
|
|
16
37
|
delete(subProjectId: string, options?: RequestOptions): Promise<SlimChildProjectDeleted>;
|
|
17
38
|
}
|
|
@@ -5,16 +5,24 @@ const url_1 = require("../../http/url");
|
|
|
5
5
|
const slim_paths_1 = require("./slim-paths");
|
|
6
6
|
const CHILD_PROJECTS_PATH = `${slim_paths_1.PROJECT_PATH}/child`;
|
|
7
7
|
const CHILD_PROJECTS_V2_PATH = `${slim_paths_1.SLIM_V2_PATH}/project/child`;
|
|
8
|
+
/**
|
|
9
|
+
* Child projects of the current project.
|
|
10
|
+
*
|
|
11
|
+
* @category slim
|
|
12
|
+
*/
|
|
8
13
|
class SlimChildProjectsResource {
|
|
9
14
|
constructor(http) {
|
|
10
15
|
this.http = http;
|
|
11
16
|
}
|
|
17
|
+
/** Lists the project's relationships. Calls `GET v2/slim/project/child`. */
|
|
12
18
|
list(options) {
|
|
13
19
|
return this.http.get(CHILD_PROJECTS_V2_PATH, options);
|
|
14
20
|
}
|
|
21
|
+
/** Creates a child project. Calls `POST v1/slim/project/child`. */
|
|
15
22
|
create(body, options) {
|
|
16
23
|
return this.http.post(CHILD_PROJECTS_PATH, body, options);
|
|
17
24
|
}
|
|
25
|
+
/** Deletes a child project. Calls `DELETE v1/slim/project/child/{subProjectId}`. */
|
|
18
26
|
delete(subProjectId, options) {
|
|
19
27
|
return this.http.delete(`${CHILD_PROJECTS_PATH}/${(0, url_1.pathSegment)(subProjectId)}`, options);
|
|
20
28
|
}
|
|
@@ -3,27 +3,58 @@ import type { UserSession } from "../../auth/user-session";
|
|
|
3
3
|
import { HttpClient } from "../../http/http-client";
|
|
4
4
|
import { RequestOptions } from "../../http/transmit";
|
|
5
5
|
import { PagePromise } from "../../paging/page";
|
|
6
|
+
/**
|
|
7
|
+
* One row of the live device list; the shape is defined by the server.
|
|
8
|
+
*
|
|
9
|
+
* @category slim
|
|
10
|
+
*/
|
|
6
11
|
export type SlimLiveDevice = Record<string, unknown>;
|
|
12
|
+
/**
|
|
13
|
+
* Observation IDs of one device, without the batch ID.
|
|
14
|
+
*
|
|
15
|
+
* @category slim
|
|
16
|
+
*/
|
|
7
17
|
export type SlimDeviceObservationIds = Omit<SlimObservationIds, "batch">;
|
|
18
|
+
/**
|
|
19
|
+
* Observation IDs keyed by device ID.
|
|
20
|
+
*
|
|
21
|
+
* @category slim
|
|
22
|
+
*/
|
|
8
23
|
export type SlimObservationIdsByDevice = Record<string, SlimObservationIds>;
|
|
24
|
+
/**
|
|
25
|
+
* Devices of the project, with live values and telemetry.
|
|
26
|
+
*
|
|
27
|
+
* @category slim
|
|
28
|
+
*/
|
|
9
29
|
export declare class SlimDevicesResource {
|
|
10
30
|
private readonly http;
|
|
11
31
|
private readonly liveReads;
|
|
12
32
|
constructor(http: HttpClient, session?: UserSession | null);
|
|
33
|
+
/** Lists devices. Calls `GET v1/slim/device`. */
|
|
13
34
|
list(params?: SlimDeviceListQuery, options?: RequestOptions): PagePromise<SlimDeviceListItem>;
|
|
35
|
+
/** Reads one device. Calls `GET v1/slim/device/{deviceId}`. */
|
|
14
36
|
retrieve(deviceId: string, options?: RequestOptions): Promise<SlimDevice>;
|
|
15
37
|
/** 409 when another customer holds the serial; 422 when this project already uses it. */
|
|
16
38
|
create(body: SlimCreateDevice, options?: RequestOptions): Promise<SlimDevice>;
|
|
17
39
|
/** Renaming moves the serial: live values return only after a reading under the new serial. */
|
|
18
40
|
update(deviceId: string, body: SlimUpdateDevice, options?: RequestOptions): Promise<SlimDevice>;
|
|
41
|
+
/** Deletes a device. Calls `DELETE v1/slim/device/{deviceId}`. */
|
|
19
42
|
delete(deviceId: string, options?: RequestOptions): Promise<void>;
|
|
43
|
+
/** Assigns a device to a project. Calls `PUT v1/slim/device/assign/project`. */
|
|
20
44
|
assignToProject(body: SlimAssignDevice, options?: RequestOptions): Promise<SlimDevice>;
|
|
45
|
+
/** Lists devices with live values. Calls `GET v1/slim/device/live`; `count` is 1 to 100. */
|
|
21
46
|
live(params?: SlimLiveQuery, options?: RequestOptions): PagePromise<SlimLiveDevice>;
|
|
47
|
+
/** Reads live telemetry keyed by device. Calls `GET v1/slim/device/live/telemetry`; `count` is 1 to 100. */
|
|
22
48
|
liveTelemetry(params?: SlimLiveQuery, options?: RequestOptions): Promise<SlimLiveTelemetry>;
|
|
49
|
+
/** Reads the telemetry of one device. Calls `GET v1/slim/telemetry/{deviceId}`. */
|
|
23
50
|
telemetry(deviceId: string, options?: RequestOptions): Promise<SlimDeviceTelemetry>;
|
|
51
|
+
/** Reads the effective observation IDs of a device. Calls `GET v1/slim/telemetry/{deviceId}/effectiveIds`. */
|
|
24
52
|
effectiveObservationIds(deviceId: string, options?: RequestOptions): Promise<SlimDeviceObservationIds>;
|
|
53
|
+
/** Reads the effective observation IDs of every device. Calls `GET v1/slim/telemetry/effectiveIds`. */
|
|
25
54
|
effectiveObservationIdsByDevice(options?: RequestOptions): Promise<SlimObservationIdsByDevice>;
|
|
55
|
+
/** Reads the last observation IDs of a device. Calls `GET v1/slim/telemetry/{deviceId}/lastIds`. */
|
|
26
56
|
lastObservationIds(deviceId: string, options?: RequestOptions): Promise<SlimObservationIds>;
|
|
57
|
+
/** Reads the last observation IDs of every device. Calls `GET v1/slim/telemetry/lastIds`. */
|
|
27
58
|
lastObservationIdsByDevice(options?: RequestOptions): Promise<SlimObservationIdsByDevice>;
|
|
28
59
|
private readLive;
|
|
29
60
|
}
|
|
@@ -19,15 +19,22 @@ const MAX_LIVE_COUNT = 100;
|
|
|
19
19
|
const LIVE_COUNT_MESSAGE = `count must be an integer from ${MIN_LIVE_COUNT} to ${MAX_LIVE_COUNT}.`;
|
|
20
20
|
const devicePath = (deviceId) => `${DEVICES_PATH}/${(0, url_1.pathSegment)(deviceId)}`;
|
|
21
21
|
const telemetryPath = (deviceId) => `${TELEMETRY_PATH}/${(0, url_1.pathSegment)(deviceId)}`;
|
|
22
|
+
/**
|
|
23
|
+
* Devices of the project, with live values and telemetry.
|
|
24
|
+
*
|
|
25
|
+
* @category slim
|
|
26
|
+
*/
|
|
22
27
|
class SlimDevicesResource {
|
|
23
28
|
constructor(http, session = null) {
|
|
24
29
|
this.http = http;
|
|
25
30
|
this.liveReads = new live_reads_1.LiveReads(http);
|
|
26
31
|
session === null || session === void 0 ? void 0 : session.onChange(() => this.liveReads.clear());
|
|
27
32
|
}
|
|
33
|
+
/** Lists devices. Calls `GET v1/slim/device`. */
|
|
28
34
|
list(params = {}, options) {
|
|
29
35
|
return (0, numbered_pages_1.numberedRoutePages)((path) => this.http.get(path, options), DEVICES_PATH, params);
|
|
30
36
|
}
|
|
37
|
+
/** Reads one device. Calls `GET v1/slim/device/{deviceId}`. */
|
|
31
38
|
retrieve(deviceId, options) {
|
|
32
39
|
return this.http.get(devicePath(deviceId), options);
|
|
33
40
|
}
|
|
@@ -39,30 +46,39 @@ class SlimDevicesResource {
|
|
|
39
46
|
update(deviceId, body, options) {
|
|
40
47
|
return this.http.put(devicePath(deviceId), body, options);
|
|
41
48
|
}
|
|
49
|
+
/** Deletes a device. Calls `DELETE v1/slim/device/{deviceId}`. */
|
|
42
50
|
delete(deviceId, options) {
|
|
43
51
|
return this.http.delete(devicePath(deviceId), options);
|
|
44
52
|
}
|
|
53
|
+
/** Assigns a device to a project. Calls `PUT v1/slim/device/assign/project`. */
|
|
45
54
|
assignToProject(body, options) {
|
|
46
55
|
return this.http.put(ASSIGN_TO_PROJECT_PATH, body, options);
|
|
47
56
|
}
|
|
57
|
+
/** Lists devices with live values. Calls `GET v1/slim/device/live`; `count` is 1 to 100. */
|
|
48
58
|
live(params = {}, options) {
|
|
49
59
|
return (0, numbered_pages_1.numberedRoutePages)((path) => this.readLive(path, params, options), LIVE_PATH, params);
|
|
50
60
|
}
|
|
61
|
+
/** Reads live telemetry keyed by device. Calls `GET v1/slim/device/live/telemetry`; `count` is 1 to 100. */
|
|
51
62
|
liveTelemetry(params = {}, options) {
|
|
52
63
|
return this.readLive(`${LIVE_TELEMETRY_PATH}${(0, query_string_1.toQueryString)(params)}`, params, options);
|
|
53
64
|
}
|
|
65
|
+
/** Reads the telemetry of one device. Calls `GET v1/slim/telemetry/{deviceId}`. */
|
|
54
66
|
telemetry(deviceId, options) {
|
|
55
67
|
return this.liveReads.get(telemetryPath(deviceId), options);
|
|
56
68
|
}
|
|
69
|
+
/** Reads the effective observation IDs of a device. Calls `GET v1/slim/telemetry/{deviceId}/effectiveIds`. */
|
|
57
70
|
effectiveObservationIds(deviceId, options) {
|
|
58
71
|
return this.http.get(`${telemetryPath(deviceId)}/${EFFECTIVE_IDS}`, options);
|
|
59
72
|
}
|
|
73
|
+
/** Reads the effective observation IDs of every device. Calls `GET v1/slim/telemetry/effectiveIds`. */
|
|
60
74
|
effectiveObservationIdsByDevice(options) {
|
|
61
75
|
return this.http.get(`${TELEMETRY_PATH}/${EFFECTIVE_IDS}`, options);
|
|
62
76
|
}
|
|
77
|
+
/** Reads the last observation IDs of a device. Calls `GET v1/slim/telemetry/{deviceId}/lastIds`. */
|
|
63
78
|
lastObservationIds(deviceId, options) {
|
|
64
79
|
return this.http.get(`${telemetryPath(deviceId)}/${LAST_IDS}`, options);
|
|
65
80
|
}
|
|
81
|
+
/** Reads the last observation IDs of every device. Calls `GET v1/slim/telemetry/lastIds`. */
|
|
66
82
|
lastObservationIdsByDevice(options) {
|
|
67
83
|
return this.http.get(`${TELEMETRY_PATH}/${LAST_IDS}`, options);
|
|
68
84
|
}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import type { SlimExportPdf, SlimExportPdfRequest } from "../../../client/slim/types";
|
|
2
2
|
import { HttpClient } from "../../http/http-client";
|
|
3
3
|
import { RequestOptions } from "../../http/transmit";
|
|
4
|
+
/**
|
|
5
|
+
* Exports of slim data.
|
|
6
|
+
*
|
|
7
|
+
* @category slim
|
|
8
|
+
*/
|
|
4
9
|
export declare class SlimExportsResource {
|
|
5
10
|
private readonly http;
|
|
6
11
|
constructor(http: HttpClient);
|
|
12
|
+
/** Generates a patient PDF export. Calls `POST v1/slim/export/pdf`. */
|
|
7
13
|
patientPdf(body: SlimExportPdfRequest, options?: RequestOptions): Promise<SlimExportPdf>;
|
|
8
14
|
}
|
|
@@ -3,10 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SlimExportsResource = void 0;
|
|
4
4
|
const slim_paths_1 = require("./slim-paths");
|
|
5
5
|
const PATIENT_PDF_PATH = `${slim_paths_1.SLIM_PATH}/export/pdf`;
|
|
6
|
+
/**
|
|
7
|
+
* Exports of slim data.
|
|
8
|
+
*
|
|
9
|
+
* @category slim
|
|
10
|
+
*/
|
|
6
11
|
class SlimExportsResource {
|
|
7
12
|
constructor(http) {
|
|
8
13
|
this.http = http;
|
|
9
14
|
}
|
|
15
|
+
/** Generates a patient PDF export. Calls `POST v1/slim/export/pdf`. */
|
|
10
16
|
patientPdf(body, options) {
|
|
11
17
|
return this.http.post(PATIENT_PDF_PATH, body, options);
|
|
12
18
|
}
|
|
@@ -2,13 +2,22 @@ import type { SlimCreateLocation, SlimLocation, SlimLocationQuery, SlimUpdateLoc
|
|
|
2
2
|
import { HttpClient } from "../../http/http-client";
|
|
3
3
|
import { RequestOptions } from "../../http/transmit";
|
|
4
4
|
import { PagePromise } from "../../paging/page";
|
|
5
|
+
/**
|
|
6
|
+
* Locations such as rooms and zones.
|
|
7
|
+
*
|
|
8
|
+
* @category slim
|
|
9
|
+
*/
|
|
5
10
|
export declare class SlimLocationsResource {
|
|
6
11
|
private readonly http;
|
|
7
12
|
constructor(http: HttpClient);
|
|
13
|
+
/** Lists locations page by page. Calls `GET v1/slim/location`. */
|
|
8
14
|
list(params?: SlimLocationQuery, options?: RequestOptions): PagePromise<SlimLocation>;
|
|
15
|
+
/** Fetches one location. Calls `GET v1/slim/location/{locationId}`. */
|
|
9
16
|
retrieve(locationId: string, options?: RequestOptions): Promise<SlimLocation>;
|
|
17
|
+
/** Creates a location. Calls `POST v1/slim/location`. */
|
|
10
18
|
create(body: SlimCreateLocation, options?: RequestOptions): Promise<SlimLocation>;
|
|
11
19
|
/** A 422 "Device not found" means the requested device is unreadable and nothing was saved. */
|
|
12
20
|
update(locationId: string, body: SlimUpdateLocation, options?: RequestOptions): Promise<SlimLocation>;
|
|
21
|
+
/** Deletes a location. Calls `DELETE v1/slim/location/{locationId}`. */
|
|
13
22
|
delete(locationId: string, options?: RequestOptions): Promise<void>;
|
|
14
23
|
}
|
|
@@ -6,16 +6,24 @@ const numbered_pages_1 = require("../../paging/numbered-pages");
|
|
|
6
6
|
const slim_paths_1 = require("./slim-paths");
|
|
7
7
|
const LOCATIONS_PATH = `${slim_paths_1.SLIM_PATH}/location`;
|
|
8
8
|
const locationPath = (locationId) => `${LOCATIONS_PATH}/${(0, url_1.pathSegment)(locationId)}`;
|
|
9
|
+
/**
|
|
10
|
+
* Locations such as rooms and zones.
|
|
11
|
+
*
|
|
12
|
+
* @category slim
|
|
13
|
+
*/
|
|
9
14
|
class SlimLocationsResource {
|
|
10
15
|
constructor(http) {
|
|
11
16
|
this.http = http;
|
|
12
17
|
}
|
|
18
|
+
/** Lists locations page by page. Calls `GET v1/slim/location`. */
|
|
13
19
|
list(params = {}, options) {
|
|
14
20
|
return (0, numbered_pages_1.numberedRoutePages)((path) => this.http.get(path, options), LOCATIONS_PATH, params);
|
|
15
21
|
}
|
|
22
|
+
/** Fetches one location. Calls `GET v1/slim/location/{locationId}`. */
|
|
16
23
|
retrieve(locationId, options) {
|
|
17
24
|
return this.http.get(locationPath(locationId), options);
|
|
18
25
|
}
|
|
26
|
+
/** Creates a location. Calls `POST v1/slim/location`. */
|
|
19
27
|
create(body, options) {
|
|
20
28
|
return this.http.post(LOCATIONS_PATH, body, options);
|
|
21
29
|
}
|
|
@@ -23,6 +31,7 @@ class SlimLocationsResource {
|
|
|
23
31
|
update(locationId, body, options) {
|
|
24
32
|
return this.http.put(locationPath(locationId), body, options);
|
|
25
33
|
}
|
|
34
|
+
/** Deletes a location. Calls `DELETE v1/slim/location/{locationId}`. */
|
|
26
35
|
delete(locationId, options) {
|
|
27
36
|
return this.http.delete(locationPath(locationId), options);
|
|
28
37
|
}
|
|
@@ -4,6 +4,11 @@ import { HttpClient } from "../../http/http-client";
|
|
|
4
4
|
import { RequestOptions } from "../../http/transmit";
|
|
5
5
|
import { PagePromise } from "../../paging/page";
|
|
6
6
|
import { SlimRecentQuery } from "./slim-queries";
|
|
7
|
+
/**
|
|
8
|
+
* Medical notification episodes.
|
|
9
|
+
*
|
|
10
|
+
* @category slim
|
|
11
|
+
*/
|
|
7
12
|
export declare class SlimMedicalNotificationsResource {
|
|
8
13
|
private readonly http;
|
|
9
14
|
constructor(http: HttpClient);
|
|
@@ -11,6 +16,7 @@ export declare class SlimMedicalNotificationsResource {
|
|
|
11
16
|
list(params?: SlimMedicalNotificationsQuery, options?: RequestOptions): PagePromise<SlimMedicalNotificationRow>;
|
|
12
17
|
/** During a Signals outage this may answer the last good page from up to 10 minutes ago. */
|
|
13
18
|
recent(params?: SlimRecentQuery, options?: RequestOptions): Promise<SlimRecentNotificationsResponse>;
|
|
19
|
+
/** Reads one medical notification episode. Calls `GET v1/slim/notifications/medical/{episodeId}`. */
|
|
14
20
|
retrieve(episodeId: string, options?: RequestOptions): Promise<SlimMedicalNotificationDetail>;
|
|
15
21
|
/** Can take about 12 s; the server makes it safe to repeat, so a 503 is retried. */
|
|
16
22
|
acknowledge(episodeId: string, options?: RequestOptions): Promise<SlimMedicalNotificationRow>;
|
|
@@ -12,6 +12,11 @@ const MEDICAL_CODE = /^(?:\d{1,7}-\d|PI)$/;
|
|
|
12
12
|
const MAX_MEDICAL_CODES = 32;
|
|
13
13
|
const MEDICAL_CODES_MESSAGE = `codes must contain at most ${MAX_MEDICAL_CODES} valid LOINC codes or PI.`;
|
|
14
14
|
const episodePath = (episodeId) => `${MEDICAL_PATH}/${(0, url_1.pathSegment)(episodeId)}`;
|
|
15
|
+
/**
|
|
16
|
+
* Medical notification episodes.
|
|
17
|
+
*
|
|
18
|
+
* @category slim
|
|
19
|
+
*/
|
|
15
20
|
class SlimMedicalNotificationsResource {
|
|
16
21
|
constructor(http) {
|
|
17
22
|
this.http = http;
|
|
@@ -24,6 +29,7 @@ class SlimMedicalNotificationsResource {
|
|
|
24
29
|
recent(params = {}, options) {
|
|
25
30
|
return this.http.get(`${RECENT_MEDICAL_PATH}${(0, query_string_1.toQueryString)(params)}`, options);
|
|
26
31
|
}
|
|
32
|
+
/** Reads one medical notification episode. Calls `GET v1/slim/notifications/medical/{episodeId}`. */
|
|
27
33
|
retrieve(episodeId, options) {
|
|
28
34
|
return this.http.get(episodePath(episodeId), options);
|
|
29
35
|
}
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
import type { CreateNotificationNote, NotificationNote, NotificationNotes, NotificationTargetKind, UpdateNotificationNote } from "../../../client/notifications/types";
|
|
2
2
|
import { HttpClient } from "../../http/http-client";
|
|
3
3
|
import { RequestOptions } from "../../http/transmit";
|
|
4
|
+
/**
|
|
5
|
+
* Notes attached to notifications.
|
|
6
|
+
*
|
|
7
|
+
* @category slim
|
|
8
|
+
*/
|
|
4
9
|
export declare class SlimNotificationNotesResource {
|
|
5
10
|
private readonly http;
|
|
6
11
|
constructor(http: HttpClient);
|
|
12
|
+
/** Lists the notes of a notification. Calls `GET v1/slim/notifications/{kind}/{targetId}/notes`. */
|
|
7
13
|
list(kind: NotificationTargetKind, targetId: string, options?: RequestOptions): Promise<NotificationNotes>;
|
|
14
|
+
/** Adds a note. Calls `POST v1/slim/notifications/notes`. */
|
|
8
15
|
create(body: CreateNotificationNote, options?: RequestOptions): Promise<NotificationNote>;
|
|
16
|
+
/** Replaces a note. Calls `PUT v1/slim/notifications/notes/{noteId}`. */
|
|
9
17
|
update(noteId: string, body: UpdateNotificationNote, options?: RequestOptions): Promise<NotificationNote>;
|
|
18
|
+
/** Updates part of a note. Calls `PATCH v1/slim/notifications/notes/{noteId}`. */
|
|
10
19
|
patch(noteId: string, body: UpdateNotificationNote, options?: RequestOptions): Promise<NotificationNote>;
|
|
20
|
+
/** Deletes a note. Calls `DELETE v1/slim/notifications/notes/{noteId}`. */
|
|
11
21
|
delete(noteId: string, options?: RequestOptions): Promise<void>;
|
|
12
22
|
}
|
|
@@ -11,22 +11,32 @@ const TARGET_SEGMENT = {
|
|
|
11
11
|
alert: "raw-alerts",
|
|
12
12
|
};
|
|
13
13
|
const notePath = (noteId) => `${NOTES_PATH}/${(0, url_1.pathSegment)(noteId)}`;
|
|
14
|
+
/**
|
|
15
|
+
* Notes attached to notifications.
|
|
16
|
+
*
|
|
17
|
+
* @category slim
|
|
18
|
+
*/
|
|
14
19
|
class SlimNotificationNotesResource {
|
|
15
20
|
constructor(http) {
|
|
16
21
|
this.http = http;
|
|
17
22
|
}
|
|
23
|
+
/** Lists the notes of a notification. Calls `GET v1/slim/notifications/{kind}/{targetId}/notes`. */
|
|
18
24
|
list(kind, targetId, options) {
|
|
19
25
|
return this.http.get(`${slim_paths_1.NOTIFICATIONS_PATH}/${TARGET_SEGMENT[kind]}/${(0, url_1.pathSegment)(targetId)}/notes`, options);
|
|
20
26
|
}
|
|
27
|
+
/** Adds a note. Calls `POST v1/slim/notifications/notes`. */
|
|
21
28
|
create(body, options) {
|
|
22
29
|
return this.http.post(NOTES_PATH, body, options);
|
|
23
30
|
}
|
|
31
|
+
/** Replaces a note. Calls `PUT v1/slim/notifications/notes/{noteId}`. */
|
|
24
32
|
update(noteId, body, options) {
|
|
25
33
|
return this.http.put(notePath(noteId), body, options);
|
|
26
34
|
}
|
|
35
|
+
/** Updates part of a note. Calls `PATCH v1/slim/notifications/notes/{noteId}`. */
|
|
27
36
|
patch(noteId, body, options) {
|
|
28
37
|
return this.http.patch(notePath(noteId), body, options);
|
|
29
38
|
}
|
|
39
|
+
/** Deletes a note. Calls `DELETE v1/slim/notifications/notes/{noteId}`. */
|
|
30
40
|
delete(noteId, options) {
|
|
31
41
|
return this.http.delete(notePath(noteId), options);
|
|
32
42
|
}
|
|
@@ -6,14 +6,24 @@ import { SlimMedicalNotificationsResource } from "./slim-medical-notifications-r
|
|
|
6
6
|
import { SlimNotificationNotesResource } from "./slim-notification-notes-resource";
|
|
7
7
|
import { SlimOutOfBedResource } from "./slim-out-of-bed-resource";
|
|
8
8
|
import { SlimRecentQuery } from "./slim-queries";
|
|
9
|
+
/**
|
|
10
|
+
* Notifications, by kind.
|
|
11
|
+
*
|
|
12
|
+
* @category slim
|
|
13
|
+
*/
|
|
9
14
|
export declare class SlimNotificationsResource {
|
|
10
15
|
private readonly http;
|
|
16
|
+
/** Alarm notifications. */
|
|
11
17
|
readonly alarms: SlimAlarmsResource;
|
|
18
|
+
/** Out-of-bed notifications. */
|
|
12
19
|
readonly outOfBed: SlimOutOfBedResource;
|
|
20
|
+
/** Medical notification episodes. */
|
|
13
21
|
readonly medical: SlimMedicalNotificationsResource;
|
|
22
|
+
/** Notes on notifications. */
|
|
14
23
|
readonly notes: SlimNotificationNotesResource;
|
|
15
24
|
constructor(http: HttpClient);
|
|
16
25
|
/** @deprecated Use outOfBed.list, alarms.list or medical.list. */
|
|
17
26
|
list(params?: SlimNotificationsQuery, options?: RequestOptions): Promise<SlimNotificationsResponse>;
|
|
27
|
+
/** Reads the recent notifications. Calls `GET v1/slim/notifications/recent`. */
|
|
18
28
|
recent(params?: SlimRecentQuery, options?: RequestOptions): Promise<SlimRecentNotificationsResponse>;
|
|
19
29
|
}
|
|
@@ -7,6 +7,11 @@ const slim_medical_notifications_resource_1 = require("./slim-medical-notificati
|
|
|
7
7
|
const slim_notification_notes_resource_1 = require("./slim-notification-notes-resource");
|
|
8
8
|
const slim_out_of_bed_resource_1 = require("./slim-out-of-bed-resource");
|
|
9
9
|
const slim_paths_1 = require("./slim-paths");
|
|
10
|
+
/**
|
|
11
|
+
* Notifications, by kind.
|
|
12
|
+
*
|
|
13
|
+
* @category slim
|
|
14
|
+
*/
|
|
10
15
|
class SlimNotificationsResource {
|
|
11
16
|
constructor(http) {
|
|
12
17
|
this.http = http;
|
|
@@ -19,6 +24,7 @@ class SlimNotificationsResource {
|
|
|
19
24
|
list(params = {}, options) {
|
|
20
25
|
return this.http.get(`${slim_paths_1.NOTIFICATIONS_PATH}${(0, query_string_1.toQueryString)(params)}`, options);
|
|
21
26
|
}
|
|
27
|
+
/** Reads the recent notifications. Calls `GET v1/slim/notifications/recent`. */
|
|
22
28
|
recent(params = {}, options) {
|
|
23
29
|
return this.http.get(`${slim_paths_1.RECENT_NOTIFICATIONS_PATH}${(0, query_string_1.toQueryString)(params)}`, options);
|
|
24
30
|
}
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import type { SlimOrganization, SlimOrganizationInput } from "../../../client/slim/types";
|
|
2
2
|
import { HttpClient } from "../../http/http-client";
|
|
3
3
|
import { RequestOptions } from "../../http/transmit";
|
|
4
|
+
/**
|
|
5
|
+
* Organizations.
|
|
6
|
+
*
|
|
7
|
+
* @category slim
|
|
8
|
+
*/
|
|
4
9
|
export declare class SlimOrganizationsResource {
|
|
5
10
|
private readonly http;
|
|
6
11
|
constructor(http: HttpClient);
|
|
12
|
+
/** Fetches one organization. Calls `GET v1/slim/organization/{organizationId}`. */
|
|
7
13
|
retrieve(organizationId: string, options?: RequestOptions): Promise<SlimOrganization>;
|
|
14
|
+
/** Creates an organization. Calls `POST v1/slim/organization`. */
|
|
8
15
|
create(body: SlimOrganizationInput, options?: RequestOptions): Promise<SlimOrganization>;
|
|
16
|
+
/** Replaces an organization. Calls `PUT v1/slim/organization/{organizationId}`. */
|
|
9
17
|
update(organizationId: string, body: SlimOrganizationInput, options?: RequestOptions): Promise<SlimOrganization>;
|
|
18
|
+
/** Deletes an organization. Calls `DELETE v1/slim/organization/{organizationId}`. */
|
|
10
19
|
delete(organizationId: string, options?: RequestOptions): Promise<void>;
|
|
11
20
|
}
|