hevy-shared 1.0.566 → 1.0.567
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 +1 -0
- package/built/notifications.d.ts +27 -7
- package/package.json +1 -1
package/built/index.d.ts
CHANGED
package/built/notifications.d.ts
CHANGED
|
@@ -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 |
|
|
11
|
-
export type NotificationType = 'workout-complete' | 'workout-mention' | 'workout-comment' | 'workout-comment-
|
|
10
|
+
export type Notification = WorkoutCompleteNotification | WorkoutMentionNotification | WorkoutCommentNotification | WorkoutCommentDiscussionNotification | WorkoutCommentMentionNotification | WorkoutCommentReplyNotification | WorkoutLikeNotification | WorkoutCommentLikeNotification | FollowNotification | FollowRequestNotification | AcceptFollowRequestNotification | CoachClientInviteNotification | ContactOnHevyNotification;
|
|
11
|
+
export type NotificationType = 'workout-complete' | 'workout-mention' | 'workout-comment' | 'workout-comment-discussion' | 'workout-comment-mention' | 'workout-comment-reply' | 'workout-like' | 'workout-comment-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,14 +48,14 @@ export interface WorkoutCommentNotification extends BaseNotification {
|
|
|
48
48
|
export interface WorkoutCommentMobilePushData extends BaseMobilePushData {
|
|
49
49
|
type: 'workout-comment';
|
|
50
50
|
}
|
|
51
|
-
export interface
|
|
52
|
-
type: 'workout-comment-
|
|
51
|
+
export interface WorkoutCommentDiscussionNotification extends BaseNotification {
|
|
52
|
+
type: 'workout-comment-discussion';
|
|
53
53
|
workout_id: string;
|
|
54
54
|
workout_title: string;
|
|
55
55
|
comment: string;
|
|
56
56
|
}
|
|
57
|
-
export interface
|
|
58
|
-
type: 'workout-comment-
|
|
57
|
+
export interface WorkoutCommentDiscussionMobilePushData extends BaseMobilePushData {
|
|
58
|
+
type: 'workout-comment-discussion';
|
|
59
59
|
}
|
|
60
60
|
export interface WorkoutCommentMentionNotification extends BaseNotification {
|
|
61
61
|
type: 'workout-comment-mention';
|
|
@@ -66,6 +66,16 @@ 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';
|
|
71
|
+
workout_id: string;
|
|
72
|
+
workout_title: string;
|
|
73
|
+
comment_id: number;
|
|
74
|
+
comment: string;
|
|
75
|
+
}
|
|
76
|
+
export interface WorkoutCommentReplyMobilePushData extends BaseMobilePushData {
|
|
77
|
+
type: 'workout-comment-reply';
|
|
78
|
+
}
|
|
69
79
|
export interface WorkoutLikeNotification extends BaseNotification {
|
|
70
80
|
type: 'workout-like';
|
|
71
81
|
workout_id: string;
|
|
@@ -74,6 +84,16 @@ export interface WorkoutLikeNotification extends BaseNotification {
|
|
|
74
84
|
export interface WorkoutLikeMobilePushData extends BaseMobilePushData {
|
|
75
85
|
type: 'workout-like';
|
|
76
86
|
}
|
|
87
|
+
export interface WorkoutCommentLikeNotification extends BaseNotification {
|
|
88
|
+
type: 'workout-comment-like';
|
|
89
|
+
workout_id: string;
|
|
90
|
+
workout_title: string;
|
|
91
|
+
comment_id: number;
|
|
92
|
+
comment: string;
|
|
93
|
+
}
|
|
94
|
+
export interface WorkoutCommentLikeMobilePushData extends BaseMobilePushData {
|
|
95
|
+
type: 'workout-comment-like';
|
|
96
|
+
}
|
|
77
97
|
export interface FollowNotification extends BaseNotification {
|
|
78
98
|
type: 'follow';
|
|
79
99
|
}
|
|
@@ -173,4 +193,4 @@ export interface MonthlyReportMobilePushData extends BaseMobilePushData {
|
|
|
173
193
|
type: 'monthly-report';
|
|
174
194
|
deeplink: string;
|
|
175
195
|
}
|
|
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;
|
|
196
|
+
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;
|