@replyke/core 5.1.6-beta.14 → 5.1.6-beta.15
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type AppNotificationType = "entity-comment" | "comment-reply" | "entity-mention" | "comment-mention" | "entity-upvote" | "comment-upvote" | "new-follow";
|
|
1
|
+
type AppNotificationType = "system" | "entity-comment" | "comment-reply" | "entity-mention" | "comment-mention" | "entity-upvote" | "comment-upvote" | "new-follow";
|
|
2
2
|
interface BaseAppNotification {
|
|
3
3
|
id: string;
|
|
4
4
|
userId: string;
|
|
@@ -9,6 +9,14 @@ interface BaseAppNotification {
|
|
|
9
9
|
content?: string;
|
|
10
10
|
createdAt: string;
|
|
11
11
|
}
|
|
12
|
+
export interface SystemNotification extends BaseAppNotification {
|
|
13
|
+
type: "system";
|
|
14
|
+
action: "custom";
|
|
15
|
+
metadata: {
|
|
16
|
+
customAction: string;
|
|
17
|
+
actionData: Record<string, any>;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
12
20
|
export interface EntityCommentNotification extends BaseAppNotification {
|
|
13
21
|
type: "entity-comment";
|
|
14
22
|
action: "open-comment";
|
|
@@ -113,7 +121,7 @@ export interface NewFollowNotification extends BaseAppNotification {
|
|
|
113
121
|
initiatorAvatar: string | null | undefined;
|
|
114
122
|
};
|
|
115
123
|
}
|
|
116
|
-
export type UnifiedAppNotification = EntityCommentNotification | CommentReplyNotification | EntityMentionNotification | CommentMentionNotification | EntityUpvoteNotification | CommentUpvoteNotification | NewFollowNotification;
|
|
124
|
+
export type UnifiedAppNotification = SystemNotification | EntityCommentNotification | CommentReplyNotification | EntityMentionNotification | CommentMentionNotification | EntityUpvoteNotification | CommentUpvoteNotification | NewFollowNotification;
|
|
117
125
|
export type NotificationTemplate = {
|
|
118
126
|
title?: string;
|
|
119
127
|
content?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type AppNotificationType = "entity-comment" | "comment-reply" | "entity-mention" | "comment-mention" | "entity-upvote" | "comment-upvote" | "new-follow";
|
|
1
|
+
type AppNotificationType = "system" | "entity-comment" | "comment-reply" | "entity-mention" | "comment-mention" | "entity-upvote" | "comment-upvote" | "new-follow";
|
|
2
2
|
interface BaseAppNotification {
|
|
3
3
|
id: string;
|
|
4
4
|
userId: string;
|
|
@@ -9,6 +9,14 @@ interface BaseAppNotification {
|
|
|
9
9
|
content?: string;
|
|
10
10
|
createdAt: string;
|
|
11
11
|
}
|
|
12
|
+
export interface SystemNotification extends BaseAppNotification {
|
|
13
|
+
type: "system";
|
|
14
|
+
action: "custom";
|
|
15
|
+
metadata: {
|
|
16
|
+
customAction: string;
|
|
17
|
+
actionData: Record<string, any>;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
12
20
|
export interface EntityCommentNotification extends BaseAppNotification {
|
|
13
21
|
type: "entity-comment";
|
|
14
22
|
action: "open-comment";
|
|
@@ -113,7 +121,7 @@ export interface NewFollowNotification extends BaseAppNotification {
|
|
|
113
121
|
initiatorAvatar: string | null | undefined;
|
|
114
122
|
};
|
|
115
123
|
}
|
|
116
|
-
export type UnifiedAppNotification = EntityCommentNotification | CommentReplyNotification | EntityMentionNotification | CommentMentionNotification | EntityUpvoteNotification | CommentUpvoteNotification | NewFollowNotification;
|
|
124
|
+
export type UnifiedAppNotification = SystemNotification | EntityCommentNotification | CommentReplyNotification | EntityMentionNotification | CommentMentionNotification | EntityUpvoteNotification | CommentUpvoteNotification | NewFollowNotification;
|
|
117
125
|
export type NotificationTemplate = {
|
|
118
126
|
title?: string;
|
|
119
127
|
content?: string;
|