hevy-shared 1.0.856 → 1.0.858

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/built/index.d.ts CHANGED
@@ -1589,7 +1589,7 @@ export type Sex = 'male' | 'female' | 'other';
1589
1589
  * Used for the chat backend to validate authentication details
1590
1590
  */
1591
1591
  export type UserAuthenticationValidationResponse = 'unauthorized' | 'authorized_user' | 'admin' | 'banned' | 'shadow_banned';
1592
- declare const _validUserWorkoutMetricsTypes: readonly ["duration", "reps"];
1592
+ declare const _validUserWorkoutMetricsTypes: readonly ["duration", "reps", "volume"];
1593
1593
  /**
1594
1594
  * Used for hevy-web for fetching profile metrics and calendar data
1595
1595
  */
@@ -1600,6 +1600,10 @@ interface WorkoutMetricBase {
1600
1600
  start_time: number;
1601
1601
  type: UserWorkoutMetricsType;
1602
1602
  }
1603
+ export interface VolumeWorkoutMetric extends WorkoutMetricBase {
1604
+ type: 'volume';
1605
+ volume: number;
1606
+ }
1603
1607
  export interface RepsWorkoutMetric extends WorkoutMetricBase {
1604
1608
  type: 'reps';
1605
1609
  reps: number;
@@ -1608,7 +1612,7 @@ export interface DurationWorkoutMetric extends WorkoutMetricBase {
1608
1612
  type: 'duration';
1609
1613
  duration_seconds: number;
1610
1614
  }
1611
- export type WorkoutMetric = RepsWorkoutMetric | DurationWorkoutMetric;
1615
+ export type WorkoutMetric = RepsWorkoutMetric | DurationWorkoutMetric | VolumeWorkoutMetric;
1612
1616
  export interface UserCalendarWorkout {
1613
1617
  workout_short_id: string;
1614
1618
  title: string;
@@ -1887,24 +1891,3 @@ export interface FolderLinkPreviewMetadataResponse extends LinkPreviewMetadataRe
1887
1891
  username: string;
1888
1892
  routine_count: number;
1889
1893
  }
1890
- export interface ExerciseSetHistory {
1891
- weight_kg: number | null;
1892
- reps: number | null;
1893
- indicator: string | null;
1894
- duration_seconds: number | null;
1895
- distance_meters: number | null;
1896
- rpe: number | null;
1897
- custom_metric: number | null;
1898
- set_index: number;
1899
- }
1900
- export interface WorkoutExerciseHistory {
1901
- workout_id: string;
1902
- workout_title: string;
1903
- workout_date: Date;
1904
- sets: ExerciseSetHistory[];
1905
- }
1906
- export interface UserExerciseHistoryPagedResponse {
1907
- page: number;
1908
- page_count: number;
1909
- workout_history: WorkoutExerciseHistory[];
1910
- }
package/built/index.js CHANGED
@@ -326,7 +326,7 @@ exports.measurementsList = [
326
326
  ];
327
327
  const isBodyMeasurementKey = (key) => (0, typeUtils_1.isInArray)(key, exports.measurementsList);
328
328
  exports.isBodyMeasurementKey = isBodyMeasurementKey;
329
- const _validUserWorkoutMetricsTypes = ['duration', 'reps'];
329
+ const _validUserWorkoutMetricsTypes = ['duration', 'reps', 'volume'];
330
330
  const isValidUserWorkoutMetricsType = (x) => (0, typeUtils_1.isInArray)(x, _validUserWorkoutMetricsTypes);
331
331
  exports.isValidUserWorkoutMetricsType = isValidUserWorkoutMetricsType;
332
332
  const _suggestedUserSources = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hevy-shared",
3
- "version": "1.0.856",
3
+ "version": "1.0.858",
4
4
  "description": "",
5
5
  "main": "built/index.js",
6
6
  "types": "built/index.d.ts",