@ovok/core 0.4.49-dev.503 → 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/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/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/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 +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 +51 -12
|
@@ -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
|
}
|
|
@@ -4,6 +4,11 @@ exports.WearablesResource = void 0;
|
|
|
4
4
|
const wearable_connections_resource_1 = require("./wearable-connections-resource");
|
|
5
5
|
const wearable_providers_resource_1 = require("./wearable-providers-resource");
|
|
6
6
|
const WEARABLES_PATH = "v1/wearables";
|
|
7
|
+
/**
|
|
8
|
+
* Wearable providers and the patient's connections to them. Calls routes under `v1/wearables`.
|
|
9
|
+
*
|
|
10
|
+
* @category wearables
|
|
11
|
+
*/
|
|
7
12
|
class WearablesResource {
|
|
8
13
|
constructor(http) {
|
|
9
14
|
const wearables = http.under(WEARABLES_PATH);
|
|
@@ -1,11 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Key-value storage the client keeps sessions in; every method may be sync or async.
|
|
3
|
+
*
|
|
4
|
+
* @category Ovok client
|
|
5
|
+
*/
|
|
1
6
|
export interface OvokStorage {
|
|
7
|
+
/** Returns the stored value, or `null` when the key is absent. */
|
|
2
8
|
getItem(key: string): string | null | Promise<string | null>;
|
|
9
|
+
/** Stores a value under a key. */
|
|
3
10
|
setItem(key: string, value: string): void | Promise<void>;
|
|
11
|
+
/** Deletes a key. */
|
|
4
12
|
removeItem(key: string): void | Promise<void>;
|
|
5
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* In-memory `OvokStorage` that loses its data when the process ends.
|
|
16
|
+
*
|
|
17
|
+
* @category Ovok client
|
|
18
|
+
*/
|
|
6
19
|
export declare class MemoryStorage implements OvokStorage {
|
|
7
20
|
private readonly items;
|
|
21
|
+
/** Returns the stored value, or `null` when the key is absent. */
|
|
8
22
|
getItem(key: string): string | null;
|
|
23
|
+
/** Stores a value under a key. */
|
|
9
24
|
setItem(key: string, value: string): void;
|
|
25
|
+
/** Deletes a key. */
|
|
10
26
|
removeItem(key: string): void;
|
|
11
27
|
}
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MemoryStorage = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* In-memory `OvokStorage` that loses its data when the process ends.
|
|
6
|
+
*
|
|
7
|
+
* @category Ovok client
|
|
8
|
+
*/
|
|
4
9
|
class MemoryStorage {
|
|
5
10
|
constructor() {
|
|
6
11
|
this.items = new Map();
|
|
7
12
|
}
|
|
13
|
+
/** Returns the stored value, or `null` when the key is absent. */
|
|
8
14
|
getItem(key) {
|
|
9
15
|
var _a;
|
|
10
16
|
return (_a = this.items.get(key)) !== null && _a !== void 0 ? _a : null;
|
|
11
17
|
}
|
|
18
|
+
/** Stores a value under a key. */
|
|
12
19
|
setItem(key, value) {
|
|
13
20
|
this.items.set(key, value);
|
|
14
21
|
}
|
|
22
|
+
/** Deletes a key. */
|
|
15
23
|
removeItem(key) {
|
|
16
24
|
this.items.delete(key);
|
|
17
25
|
}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A validation failure reported by a request.
|
|
3
|
+
*
|
|
4
|
+
* @category fhir
|
|
5
|
+
*/
|
|
1
6
|
export type ValidationError = {
|
|
7
|
+
/** Machine-readable error code. */
|
|
2
8
|
code?: string;
|
|
9
|
+
/** Human-readable error message. */
|
|
3
10
|
message: string;
|
|
11
|
+
/** Path to the invalid field. */
|
|
4
12
|
path: string[];
|
|
13
|
+
/** Name of the failed validation rule. */
|
|
5
14
|
validation?: string;
|
|
6
15
|
};
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import { PatchOperation } from "@medplum/core";
|
|
2
|
+
/**
|
|
3
|
+
* Returns the JSON Patch operation that turns `oldValue` into `newValue`, or `undefined` when they are equal.
|
|
4
|
+
*/
|
|
2
5
|
export declare const getPatchOperationType: (oldValue: any, newValue: any) => PatchOperation["op"] | undefined;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getPatchOperationType = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Returns the JSON Patch operation that turns `oldValue` into `newValue`, or `undefined` when they are equal.
|
|
6
|
+
*/
|
|
4
7
|
const getPatchOperationType = (oldValue, newValue) => {
|
|
5
8
|
if (oldValue === newValue) {
|
|
6
9
|
return undefined;
|
package/package.json
CHANGED
|
@@ -1,9 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ovok/core",
|
|
3
|
-
"version": "0.4.49-dev.
|
|
3
|
+
"version": "0.4.49-dev.513+c27f4c3",
|
|
4
4
|
"private": false,
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
5
|
+
"main": "dist/next/index.js",
|
|
6
|
+
"types": "dist/next/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/next/index.d.ts",
|
|
10
|
+
"import": "./dist/next/index.js",
|
|
11
|
+
"require": "./dist/next/index.js",
|
|
12
|
+
"default": "./dist/next/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./next": {
|
|
15
|
+
"types": "./dist/next/index.d.ts",
|
|
16
|
+
"import": "./dist/next/index.js",
|
|
17
|
+
"require": "./dist/next/index.js",
|
|
18
|
+
"default": "./dist/next/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./next/react": {
|
|
21
|
+
"types": "./dist/next/react/index.d.ts",
|
|
22
|
+
"import": "./dist/next/react/index.js",
|
|
23
|
+
"require": "./dist/next/react/index.js",
|
|
24
|
+
"default": "./dist/next/react/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./next/*.js": {
|
|
27
|
+
"types": "./dist/next/*.d.ts",
|
|
28
|
+
"import": "./dist/next/*.js",
|
|
29
|
+
"require": "./dist/next/*.js",
|
|
30
|
+
"default": "./dist/next/*.js"
|
|
31
|
+
},
|
|
32
|
+
"./next/*": {
|
|
33
|
+
"types": "./dist/next/*.d.ts",
|
|
34
|
+
"import": "./dist/next/*.js",
|
|
35
|
+
"require": "./dist/next/*.js",
|
|
36
|
+
"default": "./dist/next/*.js"
|
|
37
|
+
},
|
|
38
|
+
"./dist/*.js": {
|
|
39
|
+
"types": "./dist/*.d.ts",
|
|
40
|
+
"import": "./dist/*.js",
|
|
41
|
+
"require": "./dist/*.js",
|
|
42
|
+
"default": "./dist/*.js"
|
|
43
|
+
},
|
|
44
|
+
"./dist/*": {
|
|
45
|
+
"types": "./dist/*.d.ts",
|
|
46
|
+
"import": "./dist/*.js",
|
|
47
|
+
"require": "./dist/*.js",
|
|
48
|
+
"default": "./dist/*.js"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
7
51
|
"files": [
|
|
8
52
|
"dist",
|
|
9
53
|
"next"
|
|
@@ -12,7 +56,7 @@
|
|
|
12
56
|
"test": "jest",
|
|
13
57
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
14
58
|
"build": "rm -rf dist && tsc",
|
|
15
|
-
"docs:api-reference": "
|
|
59
|
+
"docs:api-reference": "typedoc",
|
|
16
60
|
"verify:package": "node scripts/verify-package.mjs",
|
|
17
61
|
"prepare": "yarn lint && yarn build"
|
|
18
62
|
},
|
|
@@ -51,24 +95,19 @@
|
|
|
51
95
|
"react-test-renderer": "^18.3.1",
|
|
52
96
|
"ts-jest": "^29.2.5",
|
|
53
97
|
"ts-node": "^10.9.2",
|
|
98
|
+
"typedoc": "^0.28.20",
|
|
99
|
+
"typedoc-plugin-markdown": "^4.14.1",
|
|
100
|
+
"typedoc-plugin-missing-exports": "^4.1.4",
|
|
54
101
|
"typescript": "^5.3.3",
|
|
55
102
|
"typescript-eslint": "^8.15.0"
|
|
56
103
|
},
|
|
57
104
|
"peerDependencies": {
|
|
58
|
-
"@medplum/core": ">=3.2.19",
|
|
59
105
|
"@medplum/fhirtypes": ">=3.2.22",
|
|
60
|
-
"@medplum/react-hooks": ">=3.2.19",
|
|
61
106
|
"react": "*"
|
|
62
107
|
},
|
|
63
108
|
"peerDependenciesMeta": {
|
|
64
109
|
"react": {
|
|
65
110
|
"optional": true
|
|
66
|
-
},
|
|
67
|
-
"@medplum/core": {
|
|
68
|
-
"optional": true
|
|
69
|
-
},
|
|
70
|
-
"@medplum/react-hooks": {
|
|
71
|
-
"optional": true
|
|
72
111
|
}
|
|
73
112
|
}
|
|
74
113
|
}
|