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.
- package/built/auth.d.ts +14 -0
- package/built/auth.js +2 -0
- package/built/index.d.ts +3 -3
- package/built/index.js +1 -0
- package/built/normalizedWorkoutUtils.d.ts +0 -1
- package/built/tests/testUtils.js +0 -1
- package/package.json +1 -1
package/built/auth.d.ts
ADDED
|
@@ -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
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);
|
package/built/tests/testUtils.js
CHANGED