@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.
@@ -16,4 +16,6 @@ export interface ResetPasswordBody {
16
16
  * The client ID to use for the request
17
17
  */
18
18
  clientId?: string;
19
+ /** Tenant of the patient or related person; defaults to the configured tenant when no client ID is supplied. */
20
+ tenantCode?: string;
19
21
  }
@@ -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.568+f0114d4",
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 body = { ...request, clientId: (_b = (_a = request.clientId) !== null && _a !== void 0 ? _a : this.clientId) !== null && _b !== void 0 ? _b : undefined };
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`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ovok/core",
3
- "version": "0.4.59-dev.568+f0114d4",
3
+ "version": "0.4.59-dev.570+dddf6f5",
4
4
  "private": false,
5
5
  "main": "dist/next/index.js",
6
6
  "types": "dist/next/index.d.ts",