hevy-shared 1.0.1133 → 1.0.1134
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/websocket.d.ts +10 -2
- package/package.json +1 -1
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;
|