hevy-shared 1.0.1126 → 1.0.1127

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.
@@ -141,7 +141,7 @@ export type NotificationMobilePushDataType = NotificationType | 'chat-update' |
141
141
  * For iOS/Apple see https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/pushing_background_updates_to_your_app
142
142
  * For Android see https://firebase.google.com/docs/cloud-messaging/concept-options#data_messages
143
143
  */
144
- export type DataOnlyMobilePushDataType = 'coach-data-changed' | 'coach-program-changed' | 'sync-workouts' | 'sync-routines' | 'sync-routine-folders' | 'sync-exercise-templates-and-customizations' | 'sync-account' | 'hevy-pro-status-changed' | 'hevy-pro-subscription-renewed' | 'new-notification' | 'live-workout-update' | 'live-workout-delete' | never;
144
+ export type DataOnlyMobilePushDataType = 'coach-data-changed' | 'coach-program-changed' | 'sync-workouts' | 'sync-routines' | 'sync-routine-folders' | 'sync-exercise-templates-and-customizations' | 'sync-account' | 'hevy-pro-status-changed' | 'hevy-pro-subscription-renewed' | 'new-notification' | 'live-workout-update' | 'live-workout-delete' | 'live-workout-comment-received' | never;
145
145
  export interface CoachDataChangedMobilePushData extends BaseMobilePushData {
146
146
  type: 'coach-data-changed';
147
147
  additionalHevyData: ClientsCoachData;
@@ -221,4 +221,12 @@ export interface LiveWorkoutDeleteMobilePushData extends BaseMobilePushData {
221
221
  workoutId: string;
222
222
  };
223
223
  }
224
+ export interface LiveWorkoutCommentReceived extends BaseMobilePushData {
225
+ type: 'live-workout-comment-received';
226
+ additionalHevyData: {
227
+ username: string;
228
+ profile_image: string | null;
229
+ comment: string;
230
+ };
231
+ }
224
232
  export type MobilePushData = ChatUpdateMobilePushData | SyncCustomExercisesAndCoachCustomizationsMobilePushData | SyncWorkoutsMobilePushData | SyncRoutineFoldersMobilePushData | SyncRoutinesMobilePushData | SyncAccountMobilePushData | ProStatusChangedPushMobilePushData | HevyProSubscriptionRenewedMobilePushData | CoachProgramChangedMobilePushData | CoachDataChangedMobilePushData | ContactOnHevyMobilePushData | CoachClientInviteMobilePushData | AcceptFollowRequestMobilePushData | FollowRequestMobilePushData | FollowMobilePushData | WorkoutLikeMobilePushData | WorkoutCommentLikeMobilePushData | WorkoutCommentMentionMobilePushData | WorkoutCommentDiscussionMobilePushData | WorkoutCommentReplyMobilePushData | WorkoutCommentMobilePushData | WorkoutMentionMobilePushData | WorkoutCompleteMobilePushData | CoachProgramFinishesNextWeekMobilePushData | CoachProgramStartsTodayMobilePushData | CoachLoggedYourWorkoutMobilePushData | CoachLoggedYourMeasurementsMobilePushData | MonthlyReportMobilePushData | GracePeriodEnterMobilePushData | GracePeriodResolveMobilePushData | NewNotificationMobilePushData | LiveWorkoutUpdateMobilePushData | LiveWorkoutDeleteMobilePushData;
@@ -34,12 +34,8 @@ export interface PostWorkoutRequestWorkout {
34
34
  is_biometrics_public: boolean;
35
35
  trainer_program_id: string | undefined;
36
36
  trainer_workout_template_id: string | undefined;
37
- gym: {
38
- type: 'commercial';
39
- gym_id: string;
40
- } | {
41
- type: 'home';
42
- } | null;
37
+ gym_id: string | null;
38
+ is_home_gym: boolean;
43
39
  }
44
40
  export interface PostWorkoutRequestExercise {
45
41
  title: string;
@@ -73,6 +69,6 @@ export interface PostWorkoutRequestSet {
73
69
  * update the corresponding values of the workout in the database, and those
74
70
  * that are undefined will not be changed.
75
71
  */
76
- export type UpdateWorkoutRequestWorkout = Partial<Pick<PostWorkoutRequestWorkout, 'title' | 'description' | 'media' | 'exercises' | 'is_private' | 'is_biometrics_public' | 'gym'>> & {
72
+ export type UpdateWorkoutRequestWorkout = Partial<Pick<PostWorkoutRequestWorkout, 'title' | 'description' | 'media' | 'exercises' | 'is_private' | 'is_biometrics_public' | 'gym_id' | 'is_home_gym'>> & {
77
73
  start_and_end_time?: Required<Pick<PostWorkoutRequestWorkout, 'start_time' | 'end_time'>>;
78
74
  };
@@ -38,6 +38,7 @@ export interface UserWorkout {
38
38
  biometrics?: WorkoutBiometrics;
39
39
  is_biometrics_public: boolean;
40
40
  gym: UserWorkoutGym | undefined;
41
+ is_home_gym: boolean;
41
42
  }
42
43
  export interface UserWorkoutExercise extends LocalizedExerciseTitles {
43
44
  id: string;
@@ -87,8 +88,5 @@ type CommercialGym = {
87
88
  name: string;
88
89
  city: string;
89
90
  };
90
- type HomeGym = {
91
- type: 'home';
92
- };
93
- export type UserWorkoutGym = CommercialGym | HomeGym;
91
+ export type UserWorkoutGym = CommercialGym;
94
92
  export {};
@@ -29,12 +29,8 @@ export interface OwnedWorkout {
29
29
  biometrics?: WorkoutBiometrics;
30
30
  is_biometrics_public: boolean;
31
31
  trainer_workout_template_id: string | undefined;
32
- gym: {
33
- type: 'commercial';
34
- gym_id: string;
35
- } | {
36
- type: 'home';
37
- } | null;
32
+ gym_id: string | undefined;
33
+ is_home_gym: boolean;
38
34
  }
39
35
  export interface TrainerWorkout extends OwnedWorkout {
40
36
  trainer_workout_template_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hevy-shared",
3
- "version": "1.0.1126",
3
+ "version": "1.0.1127",
4
4
  "description": "",
5
5
  "main": "built/index.js",
6
6
  "types": "built/index.d.ts",