@ovok/core 0.4.59-dev.568 → 0.4.59-dev.570
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.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @category wearables
|
|
5
5
|
*/
|
|
6
|
-
export type WearableProvider = "oura" | "whoop" | "strava" | "withings" | "polar" | "suunto" | "garmin" | "ultrahuman";
|
|
6
|
+
export type WearableProvider = "oura" | "whoop" | "strava" | "withings" | "polar" | "suunto" | "garmin" | "ultrahuman" | "huawei";
|
|
7
7
|
/**
|
|
8
8
|
* Error codes returned by the wearables routes.
|
|
9
9
|
*
|
|
@@ -26,7 +26,7 @@ exports.OVOK_CORE_REQUIREMENTS = {
|
|
|
26
26
|
description: "The FHIR surface a server must provide for the @ovok/core client library's own methods to function.",
|
|
27
27
|
software: {
|
|
28
28
|
name: "@ovok/core",
|
|
29
|
-
version: "0.4.59-dev.
|
|
29
|
+
version: "0.4.59-dev.570+dddf6f5",
|
|
30
30
|
},
|
|
31
31
|
fhirVersion: "4.0.1",
|
|
32
32
|
format: ["json"],
|
|
@@ -115,8 +115,9 @@ class AuthResource {
|
|
|
115
115
|
}
|
|
116
116
|
/** Sends a password-reset email. Calls `POST v2/auth/reset-password`. */
|
|
117
117
|
resetPassword(request, options) {
|
|
118
|
-
var _a, _b;
|
|
119
|
-
const
|
|
118
|
+
var _a, _b, _c;
|
|
119
|
+
const clientId = (_b = (_a = request.clientId) !== null && _a !== void 0 ? _a : (request.tenantCode ? undefined : this.clientId)) !== null && _b !== void 0 ? _b : undefined;
|
|
120
|
+
const body = { ...request, clientId, ...(!clientId && { tenantCode: (_c = request.tenantCode) !== null && _c !== void 0 ? _c : this.tenantCode }) };
|
|
120
121
|
return this.http.anonymous().post(RESET_PASSWORD_PATH, body, options);
|
|
121
122
|
}
|
|
122
123
|
/** Sets a new password using the token from the reset email. Calls `POST v2/auth/reset-password/process`. */
|