@ovok/core 0.4.49-rc.1 → 0.4.49-rc.3
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 +27 -79
- package/dist/client/observation/measurement-fields.d.ts +1 -1
- package/dist/client/observation/methods/observationsToMeasurements.d.ts +1 -1
- package/dist/client/observation/methods/observationsToMeasurements.js +59 -59
- package/dist/client/observation/services/base-observation-service.d.ts +1 -1
- package/dist/client/observation/services/blood-oxygen.d.ts +1 -1
- package/dist/client/observation/services/blood-oxygen.js +7 -7
- package/dist/client/observation/services/blood-pressure.d.ts +1 -1
- package/dist/client/observation/services/blood-pressure.js +16 -16
- package/dist/client/observation/services/component-observation-services.d.ts +1 -1
- package/dist/client/observation/services/component-observation-services.js +3 -3
- package/dist/client/observation/services/creator.d.ts +1 -1
- package/dist/client/observation/services/creator.js +10 -10
- package/dist/client/observation/services/ecg-observation-fragments.d.ts +1 -1
- package/dist/client/observation/services/ecg.d.ts +1 -1
- package/dist/client/observation/services/ecg.js +10 -10
- package/dist/client/observation/services/lipid-panel.d.ts +1 -1
- package/dist/client/observation/services/lipid-panel.js +13 -13
- package/dist/client/observation/services/single-value-services.d.ts +1 -1
- package/dist/client/observation/services/single-value-services.js +19 -19
- package/dist/client/observation/services/step-count.d.ts +1 -1
- package/dist/client/observation/services/step-count.js +5 -5
- package/dist/client/observation/services/uric-acid-service.d.ts +1 -1
- package/dist/client/observation/services/uric-acid-service.js +7 -7
- package/dist/client/offline/offline-measurement-queue.d.ts +1 -2
- package/dist/client/signals/methods.d.ts +2 -23
- package/dist/client/signals/methods.js +10 -93
- package/dist/client/signals/types.d.ts +6 -132
- package/dist/client/wearables/types.d.ts +5 -0
- package/dist/conformance/api-requirements.js +2 -9
- package/dist/conformance/capability-requirements.js +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +1 -9
- package/dist/hooks/notification-invalidation.d.ts +0 -7
- package/dist/hooks/signals-hooks.d.ts +2 -23
- package/dist/hooks/signals-hooks.js +1 -15
- package/dist/next/auth/access-token.d.ts +9 -0
- package/dist/next/auth/access-token.js +18 -0
- package/dist/next/auth/client-credentials.d.ts +16 -0
- package/dist/next/auth/client-credentials.js +40 -0
- package/dist/next/auth/credentials.d.ts +5 -0
- package/dist/next/auth/credentials.js +7 -0
- package/dist/next/auth/saved-accounts-store.d.ts +26 -0
- package/dist/next/auth/saved-accounts-store.js +93 -0
- package/dist/next/auth/session-store.d.ts +12 -0
- package/dist/next/auth/session-store.js +33 -0
- package/dist/next/auth/session.d.ts +28 -0
- package/dist/next/auth/session.js +27 -0
- package/dist/next/auth/token-endpoint.d.ts +12 -0
- package/dist/next/auth/token-endpoint.js +28 -0
- package/dist/next/auth/user-session.d.ts +39 -0
- package/dist/next/auth/user-session.js +183 -0
- package/dist/next/config/ovok-config.d.ts +42 -0
- package/dist/next/config/ovok-config.js +2 -0
- package/dist/next/config/settings.d.ts +6 -0
- package/dist/next/config/settings.js +74 -0
- package/dist/next/errors/error-from-response.d.ts +2 -0
- package/dist/next/errors/error-from-response.js +35 -0
- package/dist/next/errors/ovok-account-error.d.ts +5 -0
- package/dist/next/errors/ovok-account-error.js +13 -0
- package/dist/next/errors/ovok-errors.d.ts +42 -0
- package/dist/next/errors/ovok-errors.js +74 -0
- package/dist/next/http/http-client.d.ts +36 -0
- package/dist/next/http/http-client.js +116 -0
- package/dist/next/http/retry-after.d.ts +1 -0
- package/dist/next/http/retry-after.js +16 -0
- package/dist/next/http/retry-policy.d.ts +13 -0
- package/dist/next/http/retry-policy.js +27 -0
- package/dist/next/http/transmit.d.ts +14 -0
- package/dist/next/http/transmit.js +57 -0
- package/dist/next/http/url.d.ts +6 -0
- package/dist/next/http/url.js +22 -0
- package/dist/next/index.d.ts +77 -0
- package/dist/next/index.js +35 -0
- package/dist/next/ovok.d.ts +56 -0
- package/dist/next/ovok.js +86 -0
- package/dist/next/paging/bundle-page.d.ts +4 -0
- package/dist/next/paging/bundle-page.js +25 -0
- package/dist/next/paging/cursor-pages.d.ts +7 -0
- package/dist/next/paging/cursor-pages.js +14 -0
- package/dist/next/paging/numbered-pages.d.ts +15 -0
- package/dist/next/paging/numbered-pages.js +20 -0
- package/dist/next/paging/page.d.ts +12 -0
- package/dist/next/paging/page.js +17 -0
- package/dist/next/react/context.d.ts +4 -0
- package/dist/{hooks/signals-alert-item-hooks.js → next/react/context.js} +10 -26
- package/dist/next/react/index.d.ts +14 -0
- package/dist/next/react/index.js +68 -0
- package/dist/next/react/query-hooks.d.ts +31 -0
- package/dist/next/react/query-hooks.js +160 -0
- package/dist/next/resources/accounts/accounts-resource.d.ts +8 -0
- package/dist/next/resources/accounts/accounts-resource.js +13 -0
- package/dist/next/resources/ai/ai-chat-resource.d.ts +8 -0
- package/dist/next/resources/ai/ai-chat-resource.js +12 -0
- package/dist/next/resources/ai/ai-resource.d.ts +16 -0
- package/dist/next/resources/ai/ai-resource.js +19 -0
- package/dist/next/resources/ai/chat-messages-resource.d.ts +9 -0
- package/dist/next/resources/ai/chat-messages-resource.js +18 -0
- package/dist/next/resources/ai/chat-sessions-resource.d.ts +14 -0
- package/dist/next/resources/ai/chat-sessions-resource.js +23 -0
- package/dist/next/resources/auth/auth-sessions-resource.d.ts +13 -0
- package/dist/next/resources/auth/auth-sessions-resource.js +25 -0
- package/dist/next/resources/auth/registration.d.ts +35 -0
- package/dist/next/resources/auth/registration.js +24 -0
- package/dist/next/resources/auth/social-login.d.ts +8 -0
- package/dist/next/resources/auth/social-login.js +7 -0
- package/dist/next/resources/auth-resource.d.ts +63 -0
- package/dist/next/resources/auth-resource.js +119 -0
- package/dist/next/resources/bots/bots-resource.d.ts +10 -0
- package/dist/next/resources/bots/bots-resource.js +15 -0
- package/dist/next/resources/cms/cms-delivery.d.ts +22 -0
- package/dist/next/resources/cms/cms-delivery.js +36 -0
- package/dist/next/resources/cms/cms-documents-resource.d.ts +11 -0
- package/dist/next/resources/cms/cms-documents-resource.js +17 -0
- package/dist/next/resources/cms/cms-resource.d.ts +17 -0
- package/dist/next/resources/cms/cms-resource.js +38 -0
- package/dist/next/resources/cms/payload-pages.d.ts +6 -0
- package/dist/next/resources/cms/payload-pages.js +15 -0
- package/dist/next/resources/cms/release-notes-resource.d.ts +10 -0
- package/dist/next/resources/cms/release-notes-resource.js +15 -0
- package/dist/next/resources/cms/translation-tree.d.ts +3 -0
- package/dist/next/resources/cms/translation-tree.js +45 -0
- package/dist/next/resources/consent/consent-resource.d.ts +23 -0
- package/dist/next/resources/consent/consent-resource.js +43 -0
- package/dist/next/resources/content/content-resource.d.ts +19 -0
- package/dist/next/resources/content/content-resource.js +41 -0
- package/dist/next/resources/documents/documents-resource.d.ts +26 -0
- package/dist/next/resources/documents/documents-resource.js +41 -0
- package/dist/next/resources/email/email-resource.d.ts +6 -0
- package/dist/next/resources/email/email-resource.js +10 -0
- package/dist/next/resources/email/email-templates-resource.d.ts +8 -0
- package/dist/next/resources/email/email-templates-resource.js +13 -0
- package/dist/next/resources/fhir-resource.d.ts +28 -0
- package/dist/next/resources/fhir-resource.js +64 -0
- package/dist/next/resources/health-resource.d.ts +17 -0
- package/dist/next/resources/health-resource.js +14 -0
- package/dist/next/resources/invites/invite-flow-resource.d.ts +12 -0
- package/dist/next/resources/invites/invite-flow-resource.js +19 -0
- package/dist/next/resources/invites/invites-resource.d.ts +22 -0
- package/dist/next/resources/invites/invites-resource.js +29 -0
- package/dist/next/resources/localization/i18next-resource.d.ts +10 -0
- package/dist/next/resources/localization/i18next-resource.js +18 -0
- package/dist/next/resources/localization/locales-resource.d.ts +9 -0
- package/dist/next/resources/localization/locales-resource.js +16 -0
- package/dist/next/resources/localization/localizations-resource.d.ts +17 -0
- package/dist/next/resources/localization/localizations-resource.js +27 -0
- package/dist/next/resources/measurements/measurements-resource.d.ts +68 -0
- package/dist/next/resources/measurements/measurements-resource.js +116 -0
- package/dist/next/resources/measurements/observation-builder.d.ts +5 -0
- package/dist/next/resources/measurements/observation-builder.js +57 -0
- package/dist/next/resources/measurements/offline-measurement-queue-types.d.ts +22 -0
- package/dist/next/resources/measurements/offline-measurement-queue-types.js +2 -0
- package/dist/next/resources/measurements/offline-measurement-queue.d.ts +25 -0
- package/dist/next/resources/measurements/offline-measurement-queue.js +154 -0
- package/dist/next/resources/measurements/save-error.d.ts +5 -0
- package/dist/next/resources/measurements/save-error.js +18 -0
- package/dist/next/resources/measurements/signed-in-account.d.ts +11 -0
- package/dist/next/resources/measurements/signed-in-account.js +26 -0
- package/dist/next/resources/patient/fhir-records.d.ts +19 -0
- package/dist/next/resources/patient/fhir-records.js +33 -0
- package/dist/next/resources/patient/patient-resource.d.ts +21 -0
- package/dist/next/resources/patient/patient-resource.js +38 -0
- package/dist/next/resources/projects/project-features-resource.d.ts +9 -0
- package/dist/next/resources/projects/project-features-resource.js +17 -0
- package/dist/next/resources/projects/project-members-resource.d.ts +19 -0
- package/dist/next/resources/projects/project-members-resource.js +25 -0
- package/dist/next/resources/projects/project-settings-resource.d.ts +10 -0
- package/dist/next/resources/projects/project-settings-resource.js +21 -0
- package/dist/next/resources/projects/projects-resource.d.ts +20 -0
- package/dist/next/resources/projects/projects-resource.js +21 -0
- package/dist/next/resources/questionnaires/questionnaires-resource.d.ts +18 -0
- package/dist/next/resources/questionnaires/questionnaires-resource.js +36 -0
- package/dist/next/resources/realtime/realtime-binding.d.ts +7 -0
- package/dist/next/resources/realtime/realtime-binding.js +44 -0
- package/dist/next/resources/realtime/realtime-connection.d.ts +38 -0
- package/dist/next/resources/realtime/realtime-connection.js +167 -0
- package/dist/next/resources/realtime/realtime-resource.d.ts +13 -0
- package/dist/next/resources/realtime/realtime-resource.js +39 -0
- package/dist/next/resources/realtime/realtime-socket.d.ts +23 -0
- package/dist/next/resources/realtime/realtime-socket.js +152 -0
- package/dist/next/resources/realtime/realtime-types.d.ts +6 -0
- package/dist/next/resources/realtime/realtime-types.js +2 -0
- package/dist/next/resources/session/saved-accounts-resource.d.ts +13 -0
- package/dist/next/resources/session/saved-accounts-resource.js +44 -0
- package/dist/next/resources/session/session-resource.d.ts +12 -0
- package/dist/next/resources/session/session-resource.js +19 -0
- package/dist/next/resources/sharing/sharing-invites-resource.d.ts +9 -0
- package/dist/next/resources/sharing/sharing-invites-resource.js +17 -0
- package/dist/next/resources/sharing/sharing-resource.d.ts +10 -0
- package/dist/next/resources/sharing/sharing-resource.js +14 -0
- package/dist/next/resources/sharing/sharing-settings-resource.d.ts +9 -0
- package/dist/next/resources/sharing/sharing-settings-resource.js +16 -0
- package/dist/next/resources/sharing/sharing-shares-resource.d.ts +9 -0
- package/dist/next/resources/sharing/sharing-shares-resource.js +27 -0
- package/dist/next/resources/signals/signals-gateway-resource.d.ts +14 -0
- package/dist/next/resources/signals/signals-gateway-resource.js +44 -0
- package/dist/next/resources/signals/signals-resource.d.ts +13 -0
- package/dist/next/resources/signals/signals-resource.js +19 -0
- package/dist/next/resources/signals/undeliverable-resource.d.ts +26 -0
- package/dist/next/resources/signals/undeliverable-resource.js +18 -0
- package/dist/next/resources/slim/live-reads.d.ts +13 -0
- package/dist/next/resources/slim/live-reads.js +87 -0
- package/dist/next/resources/slim/slim-alarms-resource.d.ts +13 -0
- package/dist/next/resources/slim/slim-alarms-resource.js +25 -0
- package/dist/next/resources/slim/slim-change-history-resource.d.ts +9 -0
- package/dist/next/resources/slim/slim-change-history-resource.js +19 -0
- package/dist/next/resources/slim/slim-child-projects-resource.d.ts +17 -0
- package/dist/next/resources/slim/slim-child-projects-resource.js +22 -0
- package/dist/next/resources/slim/slim-devices-resource.d.ts +29 -0
- package/dist/next/resources/slim/slim-devices-resource.js +81 -0
- package/dist/next/resources/slim/slim-exports-resource.d.ts +8 -0
- package/dist/next/resources/slim/slim-exports-resource.js +14 -0
- package/dist/next/resources/slim/slim-locations-resource.d.ts +14 -0
- package/dist/next/resources/slim/slim-locations-resource.js +30 -0
- package/dist/next/resources/slim/slim-medical-notifications-resource.d.ts +18 -0
- package/dist/next/resources/slim/slim-medical-notifications-resource.js +46 -0
- package/dist/next/resources/slim/slim-notification-notes-resource.d.ts +12 -0
- package/dist/next/resources/slim/slim-notification-notes-resource.js +34 -0
- package/dist/next/resources/slim/slim-notifications-resource.d.ts +19 -0
- package/dist/next/resources/slim/slim-notifications-resource.js +26 -0
- package/dist/next/resources/slim/slim-organizations-resource.d.ts +11 -0
- package/dist/next/resources/slim/slim-organizations-resource.js +25 -0
- package/dist/next/resources/slim/slim-out-of-bed-resource.d.ts +13 -0
- package/dist/next/resources/slim/slim-out-of-bed-resource.js +20 -0
- package/dist/next/resources/slim/slim-paths.d.ts +6 -0
- package/dist/next/resources/slim/slim-paths.js +9 -0
- package/dist/next/resources/slim/slim-patient-thresholds-resource.d.ts +10 -0
- package/dist/next/resources/slim/slim-patient-thresholds-resource.js +20 -0
- package/dist/next/resources/slim/slim-patients-resource.d.ts +20 -0
- package/dist/next/resources/slim/slim-patients-resource.js +39 -0
- package/dist/next/resources/slim/slim-policies-resource.d.ts +12 -0
- package/dist/next/resources/slim/slim-policies-resource.js +29 -0
- package/dist/next/resources/slim/slim-practitioners-resource.d.ts +8 -0
- package/dist/next/resources/slim/slim-practitioners-resource.js +14 -0
- package/dist/next/resources/slim/slim-projects-resource.d.ts +16 -0
- package/dist/next/resources/slim/slim-projects-resource.js +35 -0
- package/dist/next/resources/slim/slim-queries.d.ts +34 -0
- package/dist/next/resources/slim/slim-queries.js +2 -0
- package/dist/next/resources/slim/slim-resource.d.ts +39 -0
- package/dist/next/resources/slim/slim-resource.js +44 -0
- package/dist/next/resources/slim/slim-sleep-resource.d.ts +9 -0
- package/dist/next/resources/slim/slim-sleep-resource.js +15 -0
- package/dist/next/resources/slim/slim-thresholds-resource.d.ts +11 -0
- package/dist/next/resources/slim/slim-thresholds-resource.js +18 -0
- package/dist/next/resources/slim/slim-trends-resource.d.ts +11 -0
- package/dist/next/resources/slim/slim-trends-resource.js +19 -0
- package/dist/next/resources/slim/slim-users-resource.d.ts +11 -0
- package/dist/next/resources/slim/slim-users-resource.js +15 -0
- package/dist/next/resources/slim/slim-zones-resource.d.ts +12 -0
- package/dist/next/resources/slim/slim-zones-resource.js +24 -0
- package/dist/next/resources/video-calls/video-call-access-resource.d.ts +11 -0
- package/dist/next/resources/video-calls/video-call-access-resource.js +19 -0
- package/dist/next/resources/video-calls/video-call-appointments-resource.d.ts +10 -0
- package/dist/next/resources/video-calls/video-call-appointments-resource.js +21 -0
- package/dist/next/resources/video-calls/video-call-emails-resource.d.ts +10 -0
- package/dist/next/resources/video-calls/video-call-emails-resource.js +19 -0
- package/dist/next/resources/video-calls/video-calls-resource.d.ts +14 -0
- package/dist/next/resources/video-calls/video-calls-resource.js +20 -0
- package/dist/next/resources/wearables/wearable-connections-resource.d.ts +12 -0
- package/dist/next/resources/wearables/wearable-connections-resource.js +25 -0
- package/dist/next/resources/wearables/wearable-providers-resource.d.ts +12 -0
- package/dist/next/resources/wearables/wearable-providers-resource.js +27 -0
- package/dist/next/resources/wearables/wearables-resource.d.ts +8 -0
- package/dist/next/resources/wearables/wearables-resource.js +14 -0
- package/dist/next/storage/ovok-storage.d.ts +11 -0
- package/dist/next/storage/ovok-storage.js +19 -0
- package/dist/types/MeasurementTypes.d.ts +5 -0
- package/dist/types/MeasurementTypes.js +21 -0
- package/dist/types/index.d.ts +1 -5
- package/dist/types/index.js +1 -5
- package/next/index.d.ts +1 -0
- package/next/index.js +3 -0
- package/next/react/index.d.ts +1 -0
- package/next/react/index.js +1 -0
- package/package.json +14 -2
- package/dist/hooks/signals-alert-hooks.d.ts +0 -22
- package/dist/hooks/signals-alert-hooks.js +0 -166
- package/dist/hooks/signals-alert-item-hooks.d.ts +0 -19
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SlimTrends } from "../../../client/slim/types";
|
|
2
|
+
import { HttpClient } from "../../http/http-client";
|
|
3
|
+
import { RequestOptions } from "../../http/transmit";
|
|
4
|
+
import { SlimRealtimeTrendsQuery, SlimTrendsQuery } from "./slim-queries";
|
|
5
|
+
export declare class SlimTrendsResource {
|
|
6
|
+
private readonly http;
|
|
7
|
+
constructor(http: HttpClient);
|
|
8
|
+
graphs(params: SlimTrendsQuery, options?: RequestOptions): Promise<SlimTrends>;
|
|
9
|
+
/** At most 20 calls per minute per caller: load once per view and wait retryAfterMs after a 503. */
|
|
10
|
+
realtime(params: SlimRealtimeTrendsQuery, options?: RequestOptions): Promise<SlimTrends>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SlimTrendsResource = void 0;
|
|
4
|
+
const query_string_1 = require("../../../client/query-string");
|
|
5
|
+
const slim_paths_1 = require("./slim-paths");
|
|
6
|
+
const TRENDS_PATH = `${slim_paths_1.SLIM_PATH}/trends`;
|
|
7
|
+
class SlimTrendsResource {
|
|
8
|
+
constructor(http) {
|
|
9
|
+
this.http = http;
|
|
10
|
+
}
|
|
11
|
+
graphs(params, options) {
|
|
12
|
+
return this.http.get(`${TRENDS_PATH}/graphs${(0, query_string_1.toQueryString)(params)}`, options);
|
|
13
|
+
}
|
|
14
|
+
/** At most 20 calls per minute per caller: load once per view and wait retryAfterMs after a 503. */
|
|
15
|
+
realtime(params, options) {
|
|
16
|
+
return this.http.get(`${TRENDS_PATH}/realtime${(0, query_string_1.toQueryString)(params)}`, options);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.SlimTrendsResource = SlimTrendsResource;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SlimUserProfileType } from "../../../client/slim/types";
|
|
2
|
+
import { HttpClient } from "../../http/http-client";
|
|
3
|
+
import { RequestOptions } from "../../http/transmit";
|
|
4
|
+
export type SlimUserDeleted = {
|
|
5
|
+
success: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare class SlimUsersResource {
|
|
8
|
+
private readonly http;
|
|
9
|
+
constructor(http: HttpClient);
|
|
10
|
+
delete(profileType: SlimUserProfileType, profileId: string, options?: RequestOptions): Promise<SlimUserDeleted>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SlimUsersResource = void 0;
|
|
4
|
+
const url_1 = require("../../http/url");
|
|
5
|
+
const slim_paths_1 = require("./slim-paths");
|
|
6
|
+
const USERS_PATH = `${slim_paths_1.SLIM_PATH}/user`;
|
|
7
|
+
class SlimUsersResource {
|
|
8
|
+
constructor(http) {
|
|
9
|
+
this.http = http;
|
|
10
|
+
}
|
|
11
|
+
delete(profileType, profileId, options) {
|
|
12
|
+
return this.http.delete(`${USERS_PATH}/${(0, url_1.pathSegment)(profileType)}/${(0, url_1.pathSegment)(profileId)}`, options);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.SlimUsersResource = SlimUsersResource;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SlimZone, SlimZoneDetail } from "../../../client/slim/types";
|
|
2
|
+
import { HttpClient } from "../../http/http-client";
|
|
3
|
+
import { RequestOptions } from "../../http/transmit";
|
|
4
|
+
import { PagePromise } from "../../paging/page";
|
|
5
|
+
import { SlimZoneDeviceCountsQuery, SlimZoneListQuery } from "./slim-queries";
|
|
6
|
+
export declare class SlimZonesResource {
|
|
7
|
+
private readonly http;
|
|
8
|
+
constructor(http: HttpClient);
|
|
9
|
+
list(params?: SlimZoneListQuery, options?: RequestOptions): PagePromise<SlimZone>;
|
|
10
|
+
retrieve(zoneId: string, options?: RequestOptions): Promise<SlimZoneDetail>;
|
|
11
|
+
deviceCounts(params?: SlimZoneDeviceCountsQuery, options?: RequestOptions): Promise<Record<string, unknown>>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SlimZonesResource = void 0;
|
|
4
|
+
const query_string_1 = require("../../../client/query-string");
|
|
5
|
+
const url_1 = require("../../http/url");
|
|
6
|
+
const numbered_pages_1 = require("../../paging/numbered-pages");
|
|
7
|
+
const slim_paths_1 = require("./slim-paths");
|
|
8
|
+
const ZONES_PATH = `${slim_paths_1.SLIM_PATH}/zones`;
|
|
9
|
+
const DEVICE_COUNTS_PATH = `${ZONES_PATH}/device-counts`;
|
|
10
|
+
class SlimZonesResource {
|
|
11
|
+
constructor(http) {
|
|
12
|
+
this.http = http;
|
|
13
|
+
}
|
|
14
|
+
list(params = {}, options) {
|
|
15
|
+
return (0, numbered_pages_1.numberedRoutePages)((path) => this.http.get(path, options), ZONES_PATH, params);
|
|
16
|
+
}
|
|
17
|
+
retrieve(zoneId, options) {
|
|
18
|
+
return this.http.get(`${ZONES_PATH}/${(0, url_1.pathSegment)(zoneId)}`, options);
|
|
19
|
+
}
|
|
20
|
+
deviceCounts(params = {}, options) {
|
|
21
|
+
return this.http.get(`${DEVICE_COUNTS_PATH}${(0, query_string_1.toQueryString)(params)}`, options);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.SlimZonesResource = SlimZonesResource;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { OvokVideoCallAccess, OvokVideoCallGuestAccess } from "../../../client/experience/types";
|
|
2
|
+
import { HttpClient } from "../../http/http-client";
|
|
3
|
+
import { RequestOptions } from "../../http/transmit";
|
|
4
|
+
export type VideoCallAccessPermission = Record<string, unknown>;
|
|
5
|
+
export declare class VideoCallAccessResource {
|
|
6
|
+
private readonly livekit;
|
|
7
|
+
constructor(livekit: HttpClient);
|
|
8
|
+
permission(appointmentId: string, options?: RequestOptions): Promise<VideoCallAccessPermission>;
|
|
9
|
+
createGuest(appointmentId: string, body: OvokVideoCallGuestAccess, options?: RequestOptions): Promise<OvokVideoCallAccess>;
|
|
10
|
+
createUser(appointmentId: string, options?: RequestOptions): Promise<OvokVideoCallAccess>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VideoCallAccessResource = void 0;
|
|
4
|
+
const url_1 = require("../../http/url");
|
|
5
|
+
class VideoCallAccessResource {
|
|
6
|
+
constructor(livekit) {
|
|
7
|
+
this.livekit = livekit;
|
|
8
|
+
}
|
|
9
|
+
permission(appointmentId, options) {
|
|
10
|
+
return this.livekit.get(`access-permission/${(0, url_1.pathSegment)(appointmentId)}`, options);
|
|
11
|
+
}
|
|
12
|
+
createGuest(appointmentId, body, options) {
|
|
13
|
+
return this.livekit.post(`guest-access/${(0, url_1.pathSegment)(appointmentId)}`, body, options);
|
|
14
|
+
}
|
|
15
|
+
createUser(appointmentId, options) {
|
|
16
|
+
return this.livekit.post(`user-access/${(0, url_1.pathSegment)(appointmentId)}`, undefined, options);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.VideoCallAccessResource = VideoCallAccessResource;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { OvokVideoCallAppointment, OvokVideoCallAppointmentInput, OvokVideoCallAppointmentQuery } from "../../../client/experience/types";
|
|
2
|
+
import { HttpClient } from "../../http/http-client";
|
|
3
|
+
import { RequestOptions } from "../../http/transmit";
|
|
4
|
+
export declare class VideoCallAppointmentsResource {
|
|
5
|
+
private readonly livekit;
|
|
6
|
+
constructor(livekit: HttpClient);
|
|
7
|
+
list(params?: OvokVideoCallAppointmentQuery, options?: RequestOptions): Promise<OvokVideoCallAppointment[]>;
|
|
8
|
+
create(body: OvokVideoCallAppointmentInput, options?: RequestOptions): Promise<OvokVideoCallAppointment>;
|
|
9
|
+
update(appointmentId: string, body: OvokVideoCallAppointmentInput, options?: RequestOptions): Promise<OvokVideoCallAppointment>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VideoCallAppointmentsResource = void 0;
|
|
4
|
+
const query_string_1 = require("../../../client/query-string");
|
|
5
|
+
const url_1 = require("../../http/url");
|
|
6
|
+
const APPOINTMENT_PATH = "appointment";
|
|
7
|
+
class VideoCallAppointmentsResource {
|
|
8
|
+
constructor(livekit) {
|
|
9
|
+
this.livekit = livekit;
|
|
10
|
+
}
|
|
11
|
+
list(params = {}, options) {
|
|
12
|
+
return this.livekit.get(`${APPOINTMENT_PATH}${(0, query_string_1.toQueryString)(params)}`, options);
|
|
13
|
+
}
|
|
14
|
+
create(body, options) {
|
|
15
|
+
return this.livekit.post(APPOINTMENT_PATH, body, options);
|
|
16
|
+
}
|
|
17
|
+
update(appointmentId, body, options) {
|
|
18
|
+
return this.livekit.put(`${APPOINTMENT_PATH}/${(0, url_1.pathSegment)(appointmentId)}`, body, options);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.VideoCallAppointmentsResource = VideoCallAppointmentsResource;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { OvokVideoCallMailRequest, OvokVideoCallMailResponse } from "../../../client/experience/types";
|
|
2
|
+
import { HttpClient } from "../../http/http-client";
|
|
3
|
+
import { RequestOptions } from "../../http/transmit";
|
|
4
|
+
export declare class VideoCallEmailsResource {
|
|
5
|
+
private readonly livekit;
|
|
6
|
+
constructor(livekit: HttpClient);
|
|
7
|
+
invite(body: OvokVideoCallMailRequest, options?: RequestOptions): Promise<OvokVideoCallMailResponse>;
|
|
8
|
+
update(body: OvokVideoCallMailRequest, options?: RequestOptions): Promise<OvokVideoCallMailResponse>;
|
|
9
|
+
cancel(body: OvokVideoCallMailRequest, options?: RequestOptions): Promise<OvokVideoCallMailResponse>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VideoCallEmailsResource = void 0;
|
|
4
|
+
const MAIL_PATH = "mail";
|
|
5
|
+
class VideoCallEmailsResource {
|
|
6
|
+
constructor(livekit) {
|
|
7
|
+
this.livekit = livekit;
|
|
8
|
+
}
|
|
9
|
+
invite(body, options) {
|
|
10
|
+
return this.livekit.post(`${MAIL_PATH}/invite`, body, options);
|
|
11
|
+
}
|
|
12
|
+
update(body, options) {
|
|
13
|
+
return this.livekit.post(`${MAIL_PATH}/update`, body, options);
|
|
14
|
+
}
|
|
15
|
+
cancel(body, options) {
|
|
16
|
+
return this.livekit.post(`${MAIL_PATH}/cancel`, body, options);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.VideoCallEmailsResource = VideoCallEmailsResource;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HttpClient } from "../../http/http-client";
|
|
2
|
+
import { RequestOptions } from "../../http/transmit";
|
|
3
|
+
import { VideoCallAccessResource } from "./video-call-access-resource";
|
|
4
|
+
import { VideoCallAppointmentsResource } from "./video-call-appointments-resource";
|
|
5
|
+
import { VideoCallEmailsResource } from "./video-call-emails-resource";
|
|
6
|
+
export type ActiveCallNotification = Record<string, unknown>;
|
|
7
|
+
export declare class VideoCallsResource {
|
|
8
|
+
readonly appointments: VideoCallAppointmentsResource;
|
|
9
|
+
readonly access: VideoCallAccessResource;
|
|
10
|
+
readonly emails: VideoCallEmailsResource;
|
|
11
|
+
private readonly livekit;
|
|
12
|
+
constructor(http: HttpClient);
|
|
13
|
+
notifyActive(appointmentId: string, options?: RequestOptions): Promise<ActiveCallNotification>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VideoCallsResource = void 0;
|
|
4
|
+
const url_1 = require("../../http/url");
|
|
5
|
+
const video_call_access_resource_1 = require("./video-call-access-resource");
|
|
6
|
+
const video_call_appointments_resource_1 = require("./video-call-appointments-resource");
|
|
7
|
+
const video_call_emails_resource_1 = require("./video-call-emails-resource");
|
|
8
|
+
const LIVEKIT_PATH = "video-call/livekit";
|
|
9
|
+
class VideoCallsResource {
|
|
10
|
+
constructor(http) {
|
|
11
|
+
this.livekit = http.under(LIVEKIT_PATH);
|
|
12
|
+
this.appointments = new video_call_appointments_resource_1.VideoCallAppointmentsResource(this.livekit);
|
|
13
|
+
this.access = new video_call_access_resource_1.VideoCallAccessResource(this.livekit);
|
|
14
|
+
this.emails = new video_call_emails_resource_1.VideoCallEmailsResource(this.livekit);
|
|
15
|
+
}
|
|
16
|
+
notifyActive(appointmentId, options) {
|
|
17
|
+
return this.livekit.post(`notification/active-call/${(0, url_1.pathSegment)(appointmentId)}`, undefined, options);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.VideoCallsResource = VideoCallsResource;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { WearableConnectionAuthorization, WearableConnections, WearableProvider, WearableSyncResult } from "../../../client/wearables/types";
|
|
2
|
+
import { HttpClient } from "../../http/http-client";
|
|
3
|
+
import { RequestOptions } from "../../http/transmit";
|
|
4
|
+
export declare class WearableConnectionsResource {
|
|
5
|
+
private readonly wearables;
|
|
6
|
+
constructor(wearables: HttpClient);
|
|
7
|
+
list(options?: RequestOptions): Promise<WearableConnections>;
|
|
8
|
+
/** The provider's one-time consent page, where the patient grants access. */
|
|
9
|
+
authorize(provider: WearableProvider, options?: RequestOptions): Promise<WearableConnectionAuthorization>;
|
|
10
|
+
sync(provider: WearableProvider, options?: RequestOptions): Promise<WearableSyncResult>;
|
|
11
|
+
delete(provider: WearableProvider, options?: RequestOptions): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WearableConnectionsResource = void 0;
|
|
4
|
+
const url_1 = require("../../http/url");
|
|
5
|
+
const CONNECTIONS_PATH = "connections";
|
|
6
|
+
const connectionPath = (provider) => `${CONNECTIONS_PATH}/${(0, url_1.pathSegment)(provider)}`;
|
|
7
|
+
class WearableConnectionsResource {
|
|
8
|
+
constructor(wearables) {
|
|
9
|
+
this.wearables = wearables;
|
|
10
|
+
}
|
|
11
|
+
list(options) {
|
|
12
|
+
return this.wearables.get(CONNECTIONS_PATH, options);
|
|
13
|
+
}
|
|
14
|
+
/** The provider's one-time consent page, where the patient grants access. */
|
|
15
|
+
authorize(provider, options) {
|
|
16
|
+
return this.wearables.post(`${connectionPath(provider)}/authorize`, undefined, options);
|
|
17
|
+
}
|
|
18
|
+
sync(provider, options) {
|
|
19
|
+
return this.wearables.post(`${connectionPath(provider)}/sync`, undefined, options);
|
|
20
|
+
}
|
|
21
|
+
delete(provider, options) {
|
|
22
|
+
return this.wearables.delete(connectionPath(provider), options);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.WearableConnectionsResource = WearableConnectionsResource;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CreateWearableProviderRequest, UpdateWearableProviderRequest, WearableProvider, WearableProviderSettings, WearableProviderSettingsList } from "../../../client/wearables/types";
|
|
2
|
+
import { HttpClient } from "../../http/http-client";
|
|
3
|
+
import { RequestOptions } from "../../http/transmit";
|
|
4
|
+
export declare class WearableProvidersResource {
|
|
5
|
+
private readonly wearables;
|
|
6
|
+
constructor(wearables: HttpClient);
|
|
7
|
+
list(options?: RequestOptions): Promise<WearableProviderSettingsList>;
|
|
8
|
+
retrieve(provider: WearableProvider, options?: RequestOptions): Promise<WearableProviderSettings>;
|
|
9
|
+
create(body: CreateWearableProviderRequest, options?: RequestOptions): Promise<WearableProviderSettings>;
|
|
10
|
+
patch(provider: WearableProvider, body: UpdateWearableProviderRequest, options?: RequestOptions): Promise<WearableProviderSettings>;
|
|
11
|
+
delete(provider: WearableProvider, options?: RequestOptions): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WearableProvidersResource = void 0;
|
|
4
|
+
const url_1 = require("../../http/url");
|
|
5
|
+
const PROVIDERS_PATH = "providers";
|
|
6
|
+
const providerPath = (provider) => `${PROVIDERS_PATH}/${(0, url_1.pathSegment)(provider)}`;
|
|
7
|
+
class WearableProvidersResource {
|
|
8
|
+
constructor(wearables) {
|
|
9
|
+
this.wearables = wearables;
|
|
10
|
+
}
|
|
11
|
+
list(options) {
|
|
12
|
+
return this.wearables.get(PROVIDERS_PATH, options);
|
|
13
|
+
}
|
|
14
|
+
retrieve(provider, options) {
|
|
15
|
+
return this.wearables.get(providerPath(provider), options);
|
|
16
|
+
}
|
|
17
|
+
create(body, options) {
|
|
18
|
+
return this.wearables.post(PROVIDERS_PATH, body, options);
|
|
19
|
+
}
|
|
20
|
+
patch(provider, body, options) {
|
|
21
|
+
return this.wearables.patch(providerPath(provider), body, options);
|
|
22
|
+
}
|
|
23
|
+
delete(provider, options) {
|
|
24
|
+
return this.wearables.delete(providerPath(provider), options);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.WearableProvidersResource = WearableProvidersResource;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HttpClient } from "../../http/http-client";
|
|
2
|
+
import { WearableConnectionsResource } from "./wearable-connections-resource";
|
|
3
|
+
import { WearableProvidersResource } from "./wearable-providers-resource";
|
|
4
|
+
export declare class WearablesResource {
|
|
5
|
+
readonly providers: WearableProvidersResource;
|
|
6
|
+
readonly connections: WearableConnectionsResource;
|
|
7
|
+
constructor(http: HttpClient);
|
|
8
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WearablesResource = void 0;
|
|
4
|
+
const wearable_connections_resource_1 = require("./wearable-connections-resource");
|
|
5
|
+
const wearable_providers_resource_1 = require("./wearable-providers-resource");
|
|
6
|
+
const WEARABLES_PATH = "v1/wearables";
|
|
7
|
+
class WearablesResource {
|
|
8
|
+
constructor(http) {
|
|
9
|
+
const wearables = http.under(WEARABLES_PATH);
|
|
10
|
+
this.providers = new wearable_providers_resource_1.WearableProvidersResource(wearables);
|
|
11
|
+
this.connections = new wearable_connections_resource_1.WearableConnectionsResource(wearables);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.WearablesResource = WearablesResource;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface OvokStorage {
|
|
2
|
+
getItem(key: string): string | null | Promise<string | null>;
|
|
3
|
+
setItem(key: string, value: string): void | Promise<void>;
|
|
4
|
+
removeItem(key: string): void | Promise<void>;
|
|
5
|
+
}
|
|
6
|
+
export declare class MemoryStorage implements OvokStorage {
|
|
7
|
+
private readonly items;
|
|
8
|
+
getItem(key: string): string | null;
|
|
9
|
+
setItem(key: string, value: string): void;
|
|
10
|
+
removeItem(key: string): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MemoryStorage = void 0;
|
|
4
|
+
class MemoryStorage {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.items = new Map();
|
|
7
|
+
}
|
|
8
|
+
getItem(key) {
|
|
9
|
+
var _a;
|
|
10
|
+
return (_a = this.items.get(key)) !== null && _a !== void 0 ? _a : null;
|
|
11
|
+
}
|
|
12
|
+
setItem(key, value) {
|
|
13
|
+
this.items.set(key, value);
|
|
14
|
+
}
|
|
15
|
+
removeItem(key) {
|
|
16
|
+
this.items.delete(key);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.MemoryStorage = MemoryStorage;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from "../client/observation/types/MeasurementTypeKey";
|
|
2
|
+
export * from "../client/observation/types/ObservationCode";
|
|
3
|
+
export * from "../client/observation/types/UrineAnalytes";
|
|
4
|
+
export * from "../client/observation/types/measurement";
|
|
5
|
+
export * from "../client/observation/types/generate-measurement/Sample";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("../client/observation/types/MeasurementTypeKey"), exports);
|
|
18
|
+
__exportStar(require("../client/observation/types/ObservationCode"), exports);
|
|
19
|
+
__exportStar(require("../client/observation/types/UrineAnalytes"), exports);
|
|
20
|
+
__exportStar(require("../client/observation/types/measurement"), exports);
|
|
21
|
+
__exportStar(require("../client/observation/types/generate-measurement/Sample"), exports);
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8,11 +8,7 @@ export * from "../client/auth/types/ChangePasswordResponse";
|
|
|
8
8
|
export * from "../client/auth/types/RequestDeleteUserBody";
|
|
9
9
|
export * from "../client/auth/types/ResetPasswordBody";
|
|
10
10
|
export * from "../client/auth/types/Session";
|
|
11
|
-
export * from "
|
|
12
|
-
export * from "../client/observation/types/ObservationCode";
|
|
13
|
-
export * from "../client/observation/types/UrineAnalytes";
|
|
14
|
-
export * from "../client/observation/types/measurement";
|
|
15
|
-
export * from "../client/observation/types/generate-measurement/Sample";
|
|
11
|
+
export * from "./MeasurementTypes";
|
|
16
12
|
export * from "../client/observation/types/GetLatestObservationsByCodeParams";
|
|
17
13
|
export * from "../client/chat/ai/types/CreateAiSessionProps";
|
|
18
14
|
export * from "../client/chat/ai/types/SessionMessagesResponse";
|
package/dist/types/index.js
CHANGED
|
@@ -26,11 +26,7 @@ __exportStar(require("../client/auth/types/RequestDeleteUserBody"), exports);
|
|
|
26
26
|
__exportStar(require("../client/auth/types/ResetPasswordBody"), exports);
|
|
27
27
|
__exportStar(require("../client/auth/types/Session"), exports);
|
|
28
28
|
// Measurement types
|
|
29
|
-
__exportStar(require("
|
|
30
|
-
__exportStar(require("../client/observation/types/ObservationCode"), exports);
|
|
31
|
-
__exportStar(require("../client/observation/types/UrineAnalytes"), exports);
|
|
32
|
-
__exportStar(require("../client/observation/types/measurement"), exports);
|
|
33
|
-
__exportStar(require("../client/observation/types/generate-measurement/Sample"), exports);
|
|
29
|
+
__exportStar(require("./MeasurementTypes"), exports);
|
|
34
30
|
// Observation types
|
|
35
31
|
__exportStar(require("../client/observation/types/GetLatestObservationsByCodeParams"), exports);
|
|
36
32
|
// Chat types
|
package/next/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../dist/next/index";
|
package/next/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../dist/next/react";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../dist/next/react/index.js");
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ovok/core",
|
|
3
|
-
"version": "0.4.49-rc.
|
|
3
|
+
"version": "0.4.49-rc.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
|
-
"dist"
|
|
8
|
+
"dist",
|
|
9
|
+
"next"
|
|
9
10
|
],
|
|
10
11
|
"scripts": {
|
|
11
12
|
"test": "jest",
|
|
@@ -58,5 +59,16 @@
|
|
|
58
59
|
"@medplum/fhirtypes": ">=3.2.22",
|
|
59
60
|
"@medplum/react-hooks": ">=3.2.19",
|
|
60
61
|
"react": "*"
|
|
62
|
+
},
|
|
63
|
+
"peerDependenciesMeta": {
|
|
64
|
+
"react": {
|
|
65
|
+
"optional": true
|
|
66
|
+
},
|
|
67
|
+
"@medplum/core": {
|
|
68
|
+
"optional": true
|
|
69
|
+
},
|
|
70
|
+
"@medplum/react-hooks": {
|
|
71
|
+
"optional": true
|
|
72
|
+
}
|
|
61
73
|
}
|
|
62
74
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { SignalsAlert, SignalsAlertsQuery, SignalsRawAlert, SignalsRawAlertsQuery } from "../client/signals";
|
|
2
|
-
export { useAcknowledgeSignalsAlert, useSignalsAlert } from "./signals-alert-item-hooks";
|
|
3
|
-
export type { SignalsAlertGrain } from "./signals-alert-item-hooks";
|
|
4
|
-
type SignalsAlertsHookQuery = Omit<SignalsAlertsQuery, "cursor"> & {
|
|
5
|
-
episodes?: true;
|
|
6
|
-
};
|
|
7
|
-
type SignalsRawAlertsHookQuery = Omit<SignalsRawAlertsQuery, "cursor"> & {
|
|
8
|
-
episodes: false;
|
|
9
|
-
};
|
|
10
|
-
export type SignalsAlertsHookState<TAlert = SignalsAlert> = {
|
|
11
|
-
items: TAlert[];
|
|
12
|
-
dataUpdatedAt: number | undefined;
|
|
13
|
-
loading: boolean;
|
|
14
|
-
isRefreshing: boolean;
|
|
15
|
-
isStale: boolean;
|
|
16
|
-
error: Error | undefined;
|
|
17
|
-
reload: () => void;
|
|
18
|
-
hasMore: boolean;
|
|
19
|
-
loadMore: () => Promise<void>;
|
|
20
|
-
};
|
|
21
|
-
export declare function useSignalsAlerts(query: SignalsRawAlertsHookQuery): SignalsAlertsHookState<SignalsRawAlert>;
|
|
22
|
-
export declare function useSignalsAlerts(query?: SignalsAlertsHookQuery): SignalsAlertsHookState<SignalsAlert>;
|