hevy-shared 1.0.784 → 1.0.785

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.
@@ -0,0 +1,13 @@
1
+ export interface ClientAuthToken {
2
+ access_token: string;
3
+ refresh_token: string;
4
+ expires_at: Date;
5
+ }
6
+ export interface ClientRefreshTokenRequest {
7
+ refresh_token: string;
8
+ }
9
+ export interface ClientAuthTokenResponse {
10
+ access_token: string;
11
+ refresh_token: string;
12
+ expires_at: string;
13
+ }
package/built/auth.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/built/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { Lookup } from './typeUtils';
2
2
  export * from './constants';
3
3
  export * from './utils';
4
+ export * from './auth';
4
5
  export * from './units';
5
6
  export * from './filterExercises';
6
7
  export * from './setIndicatorUtils';
@@ -1230,7 +1231,7 @@ export interface PostHevyTrainerProgramRequestBody {
1230
1231
  next_workout_index?: number;
1231
1232
  };
1232
1233
  }
1233
- export declare const measurementsList: readonly ["weight_kg", "lean_mass_kg", "fat_percent", "neck_cm", "shoulder_cm", "chest_cm", "left_bicep_cm", "right_bicep_cm", "left_forearm_cm", "right_forearm_cm", "abdomen", "waist", "hips", "left_thigh", "right_thigh", "left_calf", "right_calf"];
1234
+ export declare const measurementsList: readonly ["weight_kg", "fat_percent", "neck_cm", "shoulder_cm", "chest_cm", "left_bicep_cm", "right_bicep_cm", "left_forearm_cm", "right_forearm_cm", "abdomen", "waist", "hips", "left_thigh", "right_thigh", "left_calf", "right_calf"];
1234
1235
  type MeasurementProperties = {
1235
1236
  [key in typeof measurementsList[number]]?: number;
1236
1237
  };
package/built/index.js CHANGED
@@ -19,6 +19,7 @@ exports.isSuggestedUserSource = exports.isValidUserWorkoutMetricsType = exports.
19
19
  const typeUtils_1 = require("./typeUtils");
20
20
  __exportStar(require("./constants"), exports);
21
21
  __exportStar(require("./utils"), exports);
22
+ __exportStar(require("./auth"), exports);
22
23
  __exportStar(require("./units"), exports);
23
24
  __exportStar(require("./filterExercises"), exports);
24
25
  __exportStar(require("./setIndicatorUtils"), exports);
@@ -291,7 +292,6 @@ const isHevyTrainerRoutine = (routine) => routine.hevy_trainer_program_id !== nu
291
292
  exports.isHevyTrainerRoutine = isHevyTrainerRoutine;
292
293
  exports.measurementsList = [
293
294
  'weight_kg',
294
- 'lean_mass_kg',
295
295
  'fat_percent',
296
296
  'neck_cm',
297
297
  'shoulder_cm',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hevy-shared",
3
- "version": "1.0.784",
3
+ "version": "1.0.785",
4
4
  "description": "",
5
5
  "main": "built/index.js",
6
6
  "types": "built/index.d.ts",