hevy-shared 1.0.778 → 1.0.780

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,14 @@
1
+ export interface ClientAuthToken {
2
+ access_token: string;
3
+ refresh_token: string;
4
+ expires_at: Date;
5
+ }
6
+ export interface ClientRefreshTokenRequest {
7
+ user_id: string;
8
+ refresh_token: string;
9
+ }
10
+ export interface ClientAuthTokenResponse {
11
+ access_token: string;
12
+ refresh_token: string;
13
+ expires_at: string;
14
+ }
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,8 @@
1
+ import { ClientAuthTokenResponse } from './auth';
1
2
  import { Lookup } from './typeUtils';
2
3
  export * from './constants';
3
4
  export * from './utils';
5
+ export * from './auth';
4
6
  export * from './units';
5
7
  export * from './filterExercises';
6
8
  export * from './setIndicatorUtils';
@@ -209,7 +211,7 @@ export interface GoogleSignUpRequest {
209
211
  source?: 'web';
210
212
  gympassUserId?: string;
211
213
  }
212
- export interface SocialLoginResult {
214
+ export interface SocialLoginResult extends ClientAuthTokenResponse {
213
215
  auth_token: string;
214
216
  username: string;
215
217
  user_id: string;
@@ -838,7 +840,6 @@ export interface Workout {
838
840
  logged_by_coach_id?: string;
839
841
  biometrics?: WorkoutBiometrics;
840
842
  is_biometrics_public: boolean;
841
- is_trainer_workout: boolean;
842
843
  }
843
844
  export interface CustomExerciseImage {
844
845
  type: 'image';
@@ -917,7 +918,6 @@ export interface PostWorkoutRequestWorkout {
917
918
  is_private: boolean;
918
919
  biometrics?: WorkoutBiometrics;
919
920
  is_biometrics_public: boolean;
920
- is_trainer_workout: boolean;
921
921
  }
922
922
  export declare const isHeartRateSamples: (x: any) => x is HeartRateSample[];
923
923
  export declare const isWorkoutBiometrics: (x: any) => x is WorkoutBiometrics;
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);
@@ -35,7 +35,6 @@ export interface NormalizedWorkout {
35
35
  };
36
36
  clientId: string;
37
37
  biometrics?: WorkoutBiometrics;
38
- isTrainerWorkout: boolean;
39
38
  }
40
39
  export interface NormalizedSet {
41
40
  index: number;
@@ -153,7 +153,6 @@ class WorkoutBuilder {
153
153
  wearosWatch: false,
154
154
  workoutVisibility: 'public',
155
155
  isWorkoutBiometricsPublic: true,
156
- isTrainerWorkout: false,
157
156
  shareTo: {
158
157
  strava: false,
159
158
  appleHealth: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hevy-shared",
3
- "version": "1.0.778",
3
+ "version": "1.0.780",
4
4
  "description": "",
5
5
  "main": "built/index.js",
6
6
  "types": "built/index.d.ts",