hevy-shared 1.0.660 → 1.0.662

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
@@ -444,7 +444,6 @@ export interface UserHevyProSubcription {
444
444
  managing_store: UserHevyProSubcriptionStore;
445
445
  type: 'monthly' | 'yearly' | 'lifetime' | 'custom';
446
446
  expires_date?: string;
447
- grace_period_expires_date?: string | null;
448
447
  /**
449
448
  * Set if the user has paused/cancelled their subscription
450
449
  */
@@ -763,16 +762,11 @@ export interface WorkoutComment {
763
762
  is_liked_by_user: boolean;
764
763
  parent_comment_id?: number;
765
764
  }
766
- export interface WorkoutImage {
767
- type: 'image';
768
- url: string;
769
- }
770
- export interface WorkoutVideo {
771
- type: 'video';
765
+ export interface WorkoutMedia {
766
+ type: 'image' | 'video';
772
767
  url: string;
773
- thumbnail_url: string;
768
+ thumbnail_url?: string;
774
769
  }
775
- export type WorkoutMedia = WorkoutImage | WorkoutVideo;
776
770
  export type PreviewWorkoutLike = {
777
771
  username: string;
778
772
  profile_pic: string;
@@ -1535,21 +1529,14 @@ export interface WeeklyActiveClients {
1535
1529
  active_client_ids: string[];
1536
1530
  inactive_client_ids: string[];
1537
1531
  }
1538
- interface UserWorkoutBaseMedia {
1532
+ export interface UserWorkoutMedia {
1539
1533
  workout_id: string;
1540
1534
  workout_name: string;
1541
1535
  workout_index: number;
1542
- }
1543
- export interface UserWorkoutImage extends UserWorkoutBaseMedia {
1544
- type: 'image';
1545
- url: string;
1546
- }
1547
- export interface UserWorkoutVideo extends UserWorkoutBaseMedia {
1548
- type: 'video';
1536
+ type: 'image' | 'video';
1549
1537
  url: string;
1550
1538
  thumbnail_url: string;
1551
1539
  }
1552
- export type UserWorkoutMedia = UserWorkoutImage | UserWorkoutVideo;
1553
1540
  export type RepInputType = 'reps' | 'rep-range';
1554
1541
  export type ShareToPlatform = 'strava' | 'appleHealth' | 'healthConnect';
1555
1542
  export type WorkoutVisibility = 'public' | 'private' | 'default';
@@ -134,7 +134,7 @@ export type MobilePushDataType = NotificationMobilePushDataType | DataOnlyMobile
134
134
  * These types will have an alert/title, and will only be delivered if the user has given the notification
135
135
  * permission to the App
136
136
  */
137
- export type NotificationMobilePushDataType = NotificationType | 'chat-update' | 'coach-program-finishes-next-week' | 'coach-program-starts-today' | 'coach-logged-your-workout' | 'coach-logged-your-measurements' | 'monthly-report' | 'grace-period';
137
+ export type NotificationMobilePushDataType = NotificationType | 'chat-update' | 'coach-program-finishes-next-week' | 'coach-program-starts-today' | 'coach-logged-your-workout' | 'coach-logged-your-measurements' | 'monthly-report';
138
138
  /**
139
139
  * These types CAN NOT have an alert/title, but may be delivered even if the user has not given the notification
140
140
  * permission and even if Hevy isn't running, although these should be treated as best effort
@@ -195,8 +195,4 @@ export interface MonthlyReportMobilePushData extends BaseMobilePushData {
195
195
  type: 'monthly-report';
196
196
  deeplink: string;
197
197
  }
198
- export interface GracePeriodStatusMobilePushData extends BaseMobilePushData {
199
- type: 'grace-period';
200
- deeplink: string;
201
- }
202
- export type MobilePushData = ChatUpdateMobilePushData | SyncCustomExercisesAndCoachCustomizationsMobilePushData | SyncWorkoutsMobilePushData | SyncRoutineFoldersMobilePushData | SyncRoutinesMobilePushData | ProStatusChangedPushMobilePushData | HevyProSubscriptionRenewedMobilePushData | CoachProgramChangedMobilePushData | CoachDataChangedMobilePushData | ContactOnHevyMobilePushData | CoachClientInviteMobilePushData | AcceptFollowRequestMobilePushData | FollowRequestMobilePushData | FollowMobilePushData | WorkoutLikeMobilePushData | WorkoutCommentLikeMobilePushData | WorkoutCommentMentionMobilePushData | WorkoutCommentDiscussionMobilePushData | WorkoutCommentReplyMobilePushData | WorkoutCommentMobilePushData | WorkoutMentionMobilePushData | WorkoutCompleteMobilePushData | CoachProgramFinishesNextWeekMobilePushData | CoachProgramStartsTodayMobilePushData | CoachLoggedYourWorkoutMobilePushData | CoachLoggedYourMeasurementsMobilePushData | MonthlyReportMobilePushData | GracePeriodStatusMobilePushData;
198
+ export type MobilePushData = ChatUpdateMobilePushData | SyncCustomExercisesAndCoachCustomizationsMobilePushData | SyncWorkoutsMobilePushData | SyncRoutineFoldersMobilePushData | SyncRoutinesMobilePushData | ProStatusChangedPushMobilePushData | HevyProSubscriptionRenewedMobilePushData | CoachProgramChangedMobilePushData | CoachDataChangedMobilePushData | ContactOnHevyMobilePushData | CoachClientInviteMobilePushData | AcceptFollowRequestMobilePushData | FollowRequestMobilePushData | FollowMobilePushData | WorkoutLikeMobilePushData | WorkoutCommentLikeMobilePushData | WorkoutCommentMentionMobilePushData | WorkoutCommentDiscussionMobilePushData | 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.660",
3
+ "version": "1.0.662",
4
4
  "description": "",
5
5
  "main": "built/index.js",
6
6
  "types": "built/index.d.ts",