hevy-shared 1.0.591 → 1.0.592

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
@@ -294,7 +294,6 @@ export interface BackofficeAccountUpdate {
294
294
  notes?: string;
295
295
  /** `null` means we're unlinking the user's Gympass account */
296
296
  gympass_email?: string | null;
297
- gympass_subscription_active?: boolean;
298
297
  hide_from_suggested_users?: boolean;
299
298
  delete_profile_pic?: boolean;
300
299
  delete_link?: boolean;
@@ -1372,7 +1371,6 @@ export interface UserMetadataRequest {
1372
1371
  platformVersion: string;
1373
1372
  appVersion: string;
1374
1373
  securityId?: string;
1375
- networkType?: NetworkType;
1376
1374
  }
1377
1375
  export type NetworkType = 'wifi' | 'cellular' | 'unknown';
1378
1376
  export interface UserMetadataResponse {
@@ -1387,6 +1385,9 @@ export interface UserMetadataResponse {
1387
1385
  geoip_timezone: string | null;
1388
1386
  security_id: string | null;
1389
1387
  }
1388
+ export interface NetworkInfoRequest {
1389
+ networkType: NetworkType;
1390
+ }
1390
1391
  export interface StripePrice {
1391
1392
  product_id: string;
1392
1393
  billing_period: 'month' | 'year' | 'pay-once';
@@ -1636,11 +1637,3 @@ export interface GoogleCoachWebSignInRequest {
1636
1637
  code: string;
1637
1638
  invite_short_id?: string;
1638
1639
  }
1639
- export interface UserPushNotificationSettings {
1640
- comment_replies: boolean;
1641
- comment_likes: boolean;
1642
- }
1643
- export interface UserPushNotificationSettingsUpdate {
1644
- comment_replies?: boolean;
1645
- comment_likes?: boolean;
1646
- }
@@ -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
  }
@@ -141,7 +122,7 @@ export type NotificationMobilePushDataType = NotificationType | 'chat-update' |
141
122
  * For iOS/Apple see https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/pushing_background_updates_to_your_app
142
123
  * For Android see https://firebase.google.com/docs/cloud-messaging/concept-options#data_messages
143
124
  */
144
- export type DataOnlyMobilePushDataType = 'coach-data-changed' | 'coach-program-changed' | 'sync-workouts' | 'sync-routines' | 'sync-routine-folders' | 'sync-exercise-templates-and-customizations' | 'hevy-pro-status-changed' | 'hevy-pro-subscription-renewed';
125
+ export type DataOnlyMobilePushDataType = 'coach-data-changed' | 'coach-program-changed' | 'sync-routines' | 'sync-routine-folders' | 'sync-exercise-templates-and-customizations' | 'hevy-pro-status-changed' | 'hevy-pro-subscription-renewed';
145
126
  export interface CoachDataChangedMobilePushData extends BaseMobilePushData {
146
127
  type: 'coach-data-changed';
147
128
  additionalHevyData: ClientsCoachData;
@@ -158,9 +139,6 @@ export interface HevyProSubscriptionRenewedMobilePushData extends BaseMobilePush
158
139
  export interface ProStatusChangedPushMobilePushData extends BaseMobilePushData {
159
140
  type: 'hevy-pro-status-changed';
160
141
  }
161
- export interface SyncWorkoutsMobilePushData extends BaseMobilePushData {
162
- type: 'sync-workouts';
163
- }
164
142
  export interface SyncRoutinesMobilePushData extends BaseMobilePushData {
165
143
  type: 'sync-routines';
166
144
  }
@@ -195,4 +173,4 @@ export interface MonthlyReportMobilePushData extends BaseMobilePushData {
195
173
  type: 'monthly-report';
196
174
  deeplink: string;
197
175
  }
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;
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.591",
3
+ "version": "1.0.592",
4
4
  "description": "",
5
5
  "main": "built/index.js",
6
6
  "types": "built/index.d.ts",