hevy-shared 1.0.581 → 1.0.583

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
@@ -688,6 +688,7 @@ export interface WorkoutExerciseSet {
688
688
  type: SetPersonalRecordType;
689
689
  value: number;
690
690
  }[];
691
+ completed_at: string | null;
691
692
  }
692
693
  export interface WorkoutExercise {
693
694
  id: string;
@@ -738,7 +739,6 @@ export interface WorkoutComment {
738
739
  like_count: number;
739
740
  is_liked_by_user: boolean;
740
741
  parent_comment_id?: number;
741
- replying_to_comment_id?: number;
742
742
  }
743
743
  export interface WorkoutImage {
744
744
  type: 'image';
@@ -907,6 +907,7 @@ export interface PostWorkoutRequestSet {
907
907
  duration_seconds?: number;
908
908
  custom_metric?: number;
909
909
  rpe?: RPE;
910
+ completed_at?: string;
910
911
  }
911
912
  /**
912
913
  * Used to update an existing workout. Props that are defined will be used to
@@ -1634,15 +1635,3 @@ export interface GoogleCoachWebSignInRequest {
1634
1635
  code: string;
1635
1636
  invite_short_id?: string;
1636
1637
  }
1637
- export interface UserPushNotificationSettings {
1638
- comment_replies: boolean;
1639
- comment_likes: boolean;
1640
- }
1641
- export interface UserPushNotificationSettingsResponse {
1642
- comment_replies: boolean | null;
1643
- comment_likes: boolean | null;
1644
- }
1645
- export interface UserPushNotificationSettingsUpdate {
1646
- comment_replies?: boolean;
1647
- comment_likes?: boolean;
1648
- }
package/built/index.js CHANGED
@@ -229,10 +229,8 @@ const isWorkoutBiometrics = (x) => {
229
229
  return false;
230
230
  const maybeCalories = x.total_calories;
231
231
  const maybeHeartRateSamples = x.heart_rate_samples;
232
- const caloriesAreValid = maybeCalories === undefined ||
233
- (typeof maybeCalories === 'number' && maybeCalories >= 0);
234
- const heartSamplesAreValid = maybeHeartRateSamples === undefined ||
235
- (0, exports.isHeartRateSamples)(maybeHeartRateSamples);
232
+ const caloriesAreValid = !maybeCalories || (typeof maybeCalories === 'number' && maybeCalories >= 0);
233
+ const heartSamplesAreValid = !maybeHeartRateSamples || (0, exports.isHeartRateSamples)(maybeHeartRateSamples);
236
234
  return caloriesAreValid && heartSamplesAreValid;
237
235
  };
238
236
  exports.isWorkoutBiometrics = isWorkoutBiometrics;
@@ -47,6 +47,7 @@ export interface NormalizedSet {
47
47
  rpe?: RPE;
48
48
  targetRpe?: RPE;
49
49
  completed: boolean;
50
+ completedAt?: string;
50
51
  }
51
52
  export interface NormalizedExercise {
52
53
  title: string;
@@ -7,8 +7,8 @@
7
7
  */
8
8
  import { ClientsCoachData, Program } from '.';
9
9
  import { HevyChatUpdateMobilePushData } from './chat';
10
- export type Notification = WorkoutCompleteNotification | WorkoutMentionNotification | WorkoutCommentNotification | WorkoutCommentMentionNotification | WorkoutCommentReplyNotification | WorkoutCommentDiscussionNotification | WorkoutLikeNotification | WorkoutCommentLikeNotification | FollowNotification | FollowRequestNotification | AcceptFollowRequestNotification | CoachClientInviteNotification | ContactOnHevyNotification;
11
- export type NotificationType = 'workout-complete' | 'workout-mention' | 'workout-comment' | 'workout-comment-mention' | 'workout-comment-reply' | 'workout-comment-reply-v2' | 'workout-like' | 'workout-comment-like' | 'follow' | 'follow-request' | 'accept-follow-request' | 'coach-client-invite' | 'contact-on-hevy';
10
+ export type Notification = WorkoutCompleteNotification | WorkoutMentionNotification | WorkoutCommentNotification | WorkoutCommentReplyNotification | WorkoutCommentMentionNotification | WorkoutLikeNotification | FollowNotification | FollowRequestNotification | AcceptFollowRequestNotification | CoachClientInviteNotification | ContactOnHevyNotification;
11
+ export type NotificationType = 'workout-complete' | 'workout-mention' | 'workout-comment' | 'workout-comment-reply' | 'workout-comment-mention' | 'workout-like' | 'follow' | 'follow-request' | 'accept-follow-request' | 'coach-client-invite' | 'contact-on-hevy';
12
12
  export interface BaseNotification {
13
13
  id: number;
14
14
  type: NotificationType;
@@ -48,13 +48,13 @@ export interface WorkoutCommentNotification extends BaseNotification {
48
48
  export interface WorkoutCommentMobilePushData extends BaseMobilePushData {
49
49
  type: 'workout-comment';
50
50
  }
51
- export interface WorkoutCommentDiscussionNotification extends BaseNotification {
51
+ export interface WorkoutCommentReplyNotification extends BaseNotification {
52
52
  type: 'workout-comment-reply';
53
53
  workout_id: string;
54
54
  workout_title: string;
55
55
  comment: string;
56
56
  }
57
- export interface WorkoutCommentDiscussionMobilePushData extends BaseMobilePushData {
57
+ export interface WorkoutCommentReplyMobilePushData extends BaseMobilePushData {
58
58
  type: 'workout-comment-reply';
59
59
  }
60
60
  export interface WorkoutCommentMentionNotification extends BaseNotification {
@@ -66,15 +66,6 @@ export interface WorkoutCommentMentionNotification extends BaseNotification {
66
66
  export interface WorkoutCommentMentionMobilePushData extends BaseMobilePushData {
67
67
  type: 'workout-comment-mention';
68
68
  }
69
- export interface WorkoutCommentReplyNotification extends BaseNotification {
70
- type: 'workout-comment-reply-v2';
71
- workout_id: string;
72
- workout_title: string;
73
- comment: string;
74
- }
75
- export interface WorkoutCommentReplyMobilePushData extends BaseMobilePushData {
76
- type: 'workout-comment-reply-v2';
77
- }
78
69
  export interface WorkoutLikeNotification extends BaseNotification {
79
70
  type: 'workout-like';
80
71
  workout_id: string;
@@ -83,16 +74,6 @@ export interface WorkoutLikeNotification extends BaseNotification {
83
74
  export interface WorkoutLikeMobilePushData extends BaseMobilePushData {
84
75
  type: 'workout-like';
85
76
  }
86
- export interface WorkoutCommentLikeNotification extends BaseNotification {
87
- type: 'workout-comment-like';
88
- workout_id: string;
89
- workout_title: string;
90
- comment_id: number;
91
- comment: string;
92
- }
93
- export interface WorkoutCommentLikeMobilePushData extends BaseMobilePushData {
94
- type: 'workout-comment-like';
95
- }
96
77
  export interface FollowNotification extends BaseNotification {
97
78
  type: 'follow';
98
79
  }
@@ -192,4 +173,4 @@ export interface MonthlyReportMobilePushData extends BaseMobilePushData {
192
173
  type: 'monthly-report';
193
174
  deeplink: string;
194
175
  }
195
- export type MobilePushData = ChatUpdateMobilePushData | SyncCustomExercisesAndCoachCustomizationsMobilePushData | SyncRoutineFoldersMobilePushData | SyncRoutinesMobilePushData | ProStatusChangedPushMobilePushData | HevyProSubscriptionRenewedMobilePushData | CoachProgramChangedMobilePushData | CoachDataChangedMobilePushData | ContactOnHevyMobilePushData | CoachClientInviteMobilePushData | AcceptFollowRequestMobilePushData | FollowRequestMobilePushData | FollowMobilePushData | WorkoutLikeMobilePushData | WorkoutCommentLikeMobilePushData | WorkoutCommentMentionMobilePushData | WorkoutCommentDiscussionMobilePushData | WorkoutCommentReplyMobilePushData | WorkoutCommentMobilePushData | WorkoutMentionMobilePushData | WorkoutCompleteMobilePushData | CoachProgramFinishesNextWeekMobilePushData | CoachProgramStartsTodayMobilePushData | CoachLoggedYourWorkoutMobilePushData | CoachLoggedYourMeasurementsMobilePushData | MonthlyReportMobilePushData;
176
+ export type MobilePushData = ChatUpdateMobilePushData | SyncCustomExercisesAndCoachCustomizationsMobilePushData | SyncRoutineFoldersMobilePushData | SyncRoutinesMobilePushData | ProStatusChangedPushMobilePushData | HevyProSubscriptionRenewedMobilePushData | CoachProgramChangedMobilePushData | CoachDataChangedMobilePushData | ContactOnHevyMobilePushData | CoachClientInviteMobilePushData | AcceptFollowRequestMobilePushData | FollowRequestMobilePushData | FollowMobilePushData | WorkoutLikeMobilePushData | WorkoutCommentMentionMobilePushData | WorkoutCommentReplyMobilePushData | WorkoutCommentMobilePushData | WorkoutMentionMobilePushData | WorkoutCompleteMobilePushData | CoachProgramFinishesNextWeekMobilePushData | CoachProgramStartsTodayMobilePushData | CoachLoggedYourWorkoutMobilePushData | CoachLoggedYourMeasurementsMobilePushData | MonthlyReportMobilePushData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hevy-shared",
3
- "version": "1.0.581",
3
+ "version": "1.0.583",
4
4
  "description": "",
5
5
  "main": "built/index.js",
6
6
  "types": "built/index.d.ts",