hevy-shared 1.0.1133 → 1.0.1135
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/notifications.d.ts +19 -2
- package/built/websocket.d.ts +10 -2
- package/package.json +1 -1
package/built/notifications.d.ts
CHANGED
|
@@ -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' | 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;
|
|
@@ -212,4 +212,21 @@ export interface NewNotificationMobilePushData extends BaseMobilePushData {
|
|
|
212
212
|
notificationDateISO: string;
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
|
-
export
|
|
215
|
+
export interface LiveWorkoutUpdateMobilePushData extends BaseMobilePushData {
|
|
216
|
+
type: 'live-workout-update';
|
|
217
|
+
}
|
|
218
|
+
export interface LiveWorkoutDeleteMobilePushData extends BaseMobilePushData {
|
|
219
|
+
type: 'live-workout-delete';
|
|
220
|
+
additionalHevyData: {
|
|
221
|
+
workoutId: string;
|
|
222
|
+
};
|
|
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
|
+
}
|
|
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 | LiveWorkoutCommentReceived;
|
package/built/websocket.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Program, BaseRoutine } from '.';
|
|
1
|
+
import { Program, BaseRoutine, LiveWorkout } from '.';
|
|
2
2
|
import { NewMessageChatUpdate, MessageDeletedChatUpdate, NewConversationChatUpdate } from './chat';
|
|
3
3
|
export interface PingChatUpdate {
|
|
4
4
|
type: 'websocket-ping';
|
|
@@ -22,9 +22,17 @@ export interface CoachRoutineUpdated {
|
|
|
22
22
|
export interface CoachExerciseLibraryUpdated {
|
|
23
23
|
type: 'coaches-exercise-library-updated';
|
|
24
24
|
}
|
|
25
|
+
export interface LiveWorkoutUpdated {
|
|
26
|
+
type: 'live-workout-updated';
|
|
27
|
+
live_workout: LiveWorkout;
|
|
28
|
+
}
|
|
29
|
+
export interface LiveWorkoutDeleted {
|
|
30
|
+
type: 'live-workout-deleted';
|
|
31
|
+
workout_id: string;
|
|
32
|
+
}
|
|
25
33
|
export interface WebsocketMessageRequest {
|
|
26
34
|
message: HevyWebsocketMessage;
|
|
27
35
|
recipient_user_ids: string[];
|
|
28
36
|
}
|
|
29
|
-
export type HevyWebsocketMessage = NewMessageChatUpdate | MessageDeletedChatUpdate | NewConversationChatUpdate | PingChatUpdate | PongChatUpdate | CoachClientsUpdated | CoachProgramUpdated | CoachRoutineUpdated | CoachExerciseLibraryUpdated;
|
|
37
|
+
export type HevyWebsocketMessage = NewMessageChatUpdate | MessageDeletedChatUpdate | NewConversationChatUpdate | PingChatUpdate | PongChatUpdate | CoachClientsUpdated | CoachProgramUpdated | CoachRoutineUpdated | CoachExerciseLibraryUpdated | LiveWorkoutUpdated | LiveWorkoutDeleted;
|
|
30
38
|
export declare const isHevyWebsocketMessage: (message?: any) => message is HevyWebsocketMessage;
|