@ovok/core 0.4.2 → 0.4.4
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 +188 -4
- package/dist/client/auth/errors.d.ts +3 -0
- package/dist/client/auth/errors.js +11 -0
- package/dist/client/auth/methods/index.d.ts +1 -0
- package/dist/client/auth/methods/index.js +1 -0
- package/dist/client/auth/methods/registerPractitioner.d.ts +4 -0
- package/dist/client/auth/methods/registerPractitioner.js +15 -0
- package/dist/client/auth/types/RegisterPractitionerBody.d.ts +2 -0
- package/dist/client/auth/types/RegisterPractitionerBody.js +2 -0
- package/dist/client/email/index.d.ts +2 -0
- package/dist/client/email/index.js +18 -0
- package/dist/client/email/methods.d.ts +3 -0
- package/dist/client/email/methods.js +6 -0
- package/dist/client/email/types.d.ts +21 -0
- package/dist/client/email/types.js +2 -0
- package/dist/client/errors/ovok-error.d.ts +6 -0
- package/dist/client/errors/ovok-error.js +158 -26
- package/dist/client/errors/rate-limit-error.js +4 -0
- package/dist/client/invites/index.d.ts +3 -0
- package/dist/client/invites/index.js +19 -0
- package/dist/client/invites/methods.d.ts +8 -0
- package/dist/client/invites/methods.js +30 -0
- package/dist/client/invites/parse-accept-invite-link.d.ts +3 -0
- package/dist/client/invites/parse-accept-invite-link.js +23 -0
- package/dist/client/invites/types.d.ts +19 -0
- package/dist/client/invites/types.js +8 -0
- package/dist/client/ovok-client.d.ts +3 -1
- package/dist/client/ovok-client.js +4 -0
- package/dist/client/patient-sharing/methods.d.ts +2 -2
- package/dist/client/patient-sharing/methods.js +7 -1
- package/dist/client/patient-sharing/types.d.ts +30 -3
- package/dist/client/platform/methods.d.ts +2 -1
- package/dist/client/platform/methods.js +4 -0
- package/dist/client/platform/types.d.ts +10 -1
- package/dist/client/platform/types.js +15 -2
- package/dist/client/signals/errors.js +4 -104
- package/dist/client/signals/methods.d.ts +7 -1
- package/dist/client/signals/methods.js +9 -0
- package/dist/client/signals/types.d.ts +6 -1
- package/dist/conformance/api-requirements.js +13 -0
- package/dist/conformance/capability-requirements.js +11 -1
- package/dist/hooks/email-hooks.d.ts +3 -0
- package/dist/hooks/email-hooks.js +46 -0
- package/dist/hooks/index.d.ts +4 -2
- package/dist/hooks/index.js +10 -2
- package/dist/hooks/invites-hooks.d.ts +5 -0
- package/dist/hooks/invites-hooks.js +11 -0
- package/dist/hooks/patient-sharing-hooks.d.ts +2 -2
- package/dist/hooks/platform-hooks.d.ts +5 -1
- package/dist/hooks/platform-hooks.js +3 -1
- package/dist/hooks/signals-hooks.d.ts +2 -1
- package/dist/hooks/signals-hooks.js +3 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +3 -0
- package/dist/types/ValidationError.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CreatePatientSharingInvite, PatientSharingInvite, PatientSharingSettings, PatientSharingShare, PatientSharingShares, RedeemPatientSharingInvite } from "../client/patient-sharing";
|
|
1
|
+
import { CreatePatientSharingInvite, PatientSharingInvite, PatientSharingSettings, PatientSharingSettingsUpdate, PatientSharingShare, PatientSharingShares, RedeemPatientSharingInvite } from "../client/patient-sharing";
|
|
2
2
|
import { OvokMutationState, OvokRequestState } from "./api-hooks";
|
|
3
3
|
export declare const usePatientSharing: () => OvokRequestState<PatientSharingShares>;
|
|
4
4
|
export declare const useCreatePatientSharingInvite: () => OvokMutationState<CreatePatientSharingInvite, PatientSharingInvite>;
|
|
5
5
|
export declare const useRedeemPatientSharingInvite: () => OvokMutationState<RedeemPatientSharingInvite, PatientSharingShare>;
|
|
6
6
|
export declare const useRevokePatientSharing: () => OvokMutationState<string, void>;
|
|
7
7
|
export declare const usePatientSharingSettings: () => OvokRequestState<PatientSharingSettings>;
|
|
8
|
-
export declare const useUpdatePatientSharingSettings: () => OvokMutationState<
|
|
8
|
+
export declare const useUpdatePatientSharingSettings: () => OvokMutationState<PatientSharingSettingsUpdate, PatientSharingSettings>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OvokI18nDocument, OvokLocalization, OvokLocalizationQuery, OvokLocalizationUpdate, OvokI18nValue, OvokLocales } from "../client/platform/types";
|
|
1
|
+
import { OvokI18nDocument, OvokLocalization, OvokLocalizationQuery, OvokLocalizationUpdate, OvokI18nValue, OvokLocales, OvokProjectSettings, OvokProjectTextSettingKey } from "../client/platform/types";
|
|
2
2
|
import { OvokMutationState, OvokRequestState } from "./api-hooks";
|
|
3
3
|
export declare const useLocales: () => OvokRequestState<OvokLocales>;
|
|
4
4
|
export declare const useLocalizations: (language: string, params?: OvokLocalizationQuery) => OvokRequestState<{
|
|
@@ -15,3 +15,7 @@ export declare const useUpdateI18nextDocument: () => OvokMutationState<{
|
|
|
15
15
|
language: string;
|
|
16
16
|
document: Record<string, OvokI18nValue>;
|
|
17
17
|
}, void>;
|
|
18
|
+
export declare const useUpdateProjectTextSetting: () => OvokMutationState<{
|
|
19
|
+
key: OvokProjectTextSettingKey;
|
|
20
|
+
value: string | null;
|
|
21
|
+
}, OvokProjectSettings>;
|
|
@@ -34,7 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.useUpdateI18nextDocument = exports.useUpdateLocalization = exports.useI18nextDocument = exports.useLocalizations = exports.useLocales = void 0;
|
|
37
|
+
exports.useUpdateProjectTextSetting = exports.useUpdateI18nextDocument = exports.useUpdateLocalization = exports.useI18nextDocument = exports.useLocalizations = exports.useLocales = void 0;
|
|
38
38
|
const React = __importStar(require("react"));
|
|
39
39
|
const api_hooks_1 = require("./api-hooks");
|
|
40
40
|
const index_1 = require("./index");
|
|
@@ -61,3 +61,5 @@ const useUpdateLocalization = () => (0, api_hooks_1.useOvokMutation)((client, pa
|
|
|
61
61
|
exports.useUpdateLocalization = useUpdateLocalization;
|
|
62
62
|
const useUpdateI18nextDocument = () => (0, api_hooks_1.useOvokMutation)((client, params) => client.updateI18nextDocument(params.language, params.document));
|
|
63
63
|
exports.useUpdateI18nextDocument = useUpdateI18nextDocument;
|
|
64
|
+
const useUpdateProjectTextSetting = () => (0, api_hooks_1.useOvokMutation)((client, params) => client.updateProjectTextSetting(params.key, params.value));
|
|
65
|
+
exports.useUpdateProjectTextSetting = useUpdateProjectTextSetting;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SetSignalsThresholdBody, SignalsAlert, SignalsAlertsQuery, SignalsSettingsPatch, SignalsSettingsResponse, SignalsThreshold, SignalsThresholds } from "../client/signals";
|
|
1
|
+
import { EnableSignalsResponse, SetSignalsThresholdBody, SignalsAlert, SignalsAlertsQuery, SignalsSettingsPatch, SignalsSettingsResponse, SignalsThreshold, SignalsThresholds } from "../client/signals";
|
|
2
2
|
import { OvokMutationState, OvokRequestState } from "./api-hooks";
|
|
3
3
|
type SetSignalsThresholdParams = {
|
|
4
4
|
patientId: string;
|
|
@@ -23,6 +23,7 @@ export type SignalsAlertsHookState = {
|
|
|
23
23
|
hasMore: boolean;
|
|
24
24
|
loadMore: () => Promise<void>;
|
|
25
25
|
};
|
|
26
|
+
export declare const useEnableSignalsForPatient: () => OvokMutationState<string, EnableSignalsResponse>;
|
|
26
27
|
export declare const useSignalsThresholds: (patientId?: string) => OvokRequestState<SignalsThresholds>;
|
|
27
28
|
export declare const useSetSignalsThreshold: () => OvokMutationState<SetSignalsThresholdParams, SignalsThreshold>;
|
|
28
29
|
export declare const useRemoveSignalsThreshold: () => OvokMutationState<RemoveSignalsThresholdParams, void>;
|
|
@@ -34,10 +34,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.useUpdateSignalsSettings = exports.useSignalsSettings = exports.useAcknowledgeSignalsAlert = exports.useSignalsAlert = exports.useSignalsAlerts = exports.useRemoveSignalsThreshold = exports.useSetSignalsThreshold = exports.useSignalsThresholds = void 0;
|
|
37
|
+
exports.useUpdateSignalsSettings = exports.useSignalsSettings = exports.useAcknowledgeSignalsAlert = exports.useSignalsAlert = exports.useSignalsAlerts = exports.useRemoveSignalsThreshold = exports.useSetSignalsThreshold = exports.useSignalsThresholds = exports.useEnableSignalsForPatient = void 0;
|
|
38
38
|
const React = __importStar(require("react"));
|
|
39
39
|
const api_hooks_1 = require("./api-hooks");
|
|
40
40
|
const index_1 = require("./index");
|
|
41
|
+
const useEnableSignalsForPatient = () => (0, api_hooks_1.useOvokMutation)((client, patientId) => client.enableSignalsForPatient(patientId));
|
|
42
|
+
exports.useEnableSignalsForPatient = useEnableSignalsForPatient;
|
|
41
43
|
const useSignalsThresholds = (patientId) => {
|
|
42
44
|
const client = (0, index_1.useClient)();
|
|
43
45
|
const load = React.useCallback(() => client.getSignalsThresholds(patientId), [client, patientId]);
|
package/dist/index.d.ts
CHANGED
|
@@ -925,6 +925,9 @@ export { Medplum };
|
|
|
925
925
|
export { OvokClient } from "./client/ovok-client";
|
|
926
926
|
export * from "./client/errors/rate-limit-error";
|
|
927
927
|
export * from "./client/errors/ovok-error";
|
|
928
|
+
export * from "./client/auth/errors";
|
|
929
|
+
export type { RegisterBody } from "./client/auth/types/RegisterBody";
|
|
930
|
+
export type { RegisterPractitionerBody } from "./client/auth/types/RegisterPractitionerBody";
|
|
928
931
|
export { MAX_CONDITIONAL_OBSERVATION_ENTRIES, MAX_OBSERVATION_BUNDLE_BYTES, } from "./client/ovok-client";
|
|
929
932
|
export type { SaveObservationsResult } from "./client/ovok-client";
|
|
930
933
|
export * from "./client/offline";
|
|
@@ -937,6 +940,8 @@ export * from "./conformance/capability-requirements";
|
|
|
937
940
|
export * from "./conformance/api-requirements";
|
|
938
941
|
export * from "./conformance/capability";
|
|
939
942
|
export * from "./client/platform/types";
|
|
943
|
+
export * from "./client/email";
|
|
944
|
+
export * from "./client/invites";
|
|
940
945
|
export * from "./client/carehub/types";
|
|
941
946
|
export * from "./client/experience/types";
|
|
942
947
|
export * from "./client/patient/types";
|
package/dist/index.js
CHANGED
|
@@ -46,6 +46,7 @@ var ovok_client_1 = require("./client/ovok-client");
|
|
|
46
46
|
Object.defineProperty(exports, "OvokClient", { enumerable: true, get: function () { return ovok_client_1.OvokClient; } });
|
|
47
47
|
__exportStar(require("./client/errors/rate-limit-error"), exports);
|
|
48
48
|
__exportStar(require("./client/errors/ovok-error"), exports);
|
|
49
|
+
__exportStar(require("./client/auth/errors"), exports);
|
|
49
50
|
var ovok_client_2 = require("./client/ovok-client");
|
|
50
51
|
Object.defineProperty(exports, "MAX_CONDITIONAL_OBSERVATION_ENTRIES", { enumerable: true, get: function () { return ovok_client_2.MAX_CONDITIONAL_OBSERVATION_ENTRIES; } });
|
|
51
52
|
Object.defineProperty(exports, "MAX_OBSERVATION_BUNDLE_BYTES", { enumerable: true, get: function () { return ovok_client_2.MAX_OBSERVATION_BUNDLE_BYTES; } });
|
|
@@ -60,6 +61,8 @@ __exportStar(require("./conformance/capability-requirements"), exports);
|
|
|
60
61
|
__exportStar(require("./conformance/api-requirements"), exports);
|
|
61
62
|
__exportStar(require("./conformance/capability"), exports);
|
|
62
63
|
__exportStar(require("./client/platform/types"), exports);
|
|
64
|
+
__exportStar(require("./client/email"), exports);
|
|
65
|
+
__exportStar(require("./client/invites"), exports);
|
|
63
66
|
__exportStar(require("./client/carehub/types"), exports);
|
|
64
67
|
__exportStar(require("./client/experience/types"), exports);
|
|
65
68
|
__exportStar(require("./client/patient/types"), exports);
|