@replyke/core 5.1.6-beta.14 → 5.1.6-beta.16

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,18 @@ interface BaseAppNotification {
9
9
  content?: string;
10
10
  createdAt: string;
11
11
  }
12
+ export interface SystemNotification extends BaseAppNotification {
13
+ type: "system";
14
+ action: string | null;
15
+ metadata: {
16
+ title: string;
17
+ content: string;
18
+ buttonData: {
19
+ text: string;
20
+ url: string;
21
+ } | null;
22
+ };
23
+ }
12
24
  export interface EntityCommentNotification extends BaseAppNotification {
13
25
  type: "entity-comment";
14
26
  action: "open-comment";
@@ -113,7 +125,7 @@ export interface NewFollowNotification extends BaseAppNotification {
113
125
  initiatorAvatar: string | null | undefined;
114
126
  };
115
127
  }
116
- export type UnifiedAppNotification = EntityCommentNotification | CommentReplyNotification | EntityMentionNotification | CommentMentionNotification | EntityUpvoteNotification | CommentUpvoteNotification | NewFollowNotification;
128
+ export type UnifiedAppNotification = SystemNotification | EntityCommentNotification | CommentReplyNotification | EntityMentionNotification | CommentMentionNotification | EntityUpvoteNotification | CommentUpvoteNotification | NewFollowNotification;
117
129
  export type NotificationTemplate = {
118
130
  title?: string;
119
131
  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,18 @@ interface BaseAppNotification {
9
9
  content?: string;
10
10
  createdAt: string;
11
11
  }
12
+ export interface SystemNotification extends BaseAppNotification {
13
+ type: "system";
14
+ action: string | null;
15
+ metadata: {
16
+ title: string;
17
+ content: string;
18
+ buttonData: {
19
+ text: string;
20
+ url: string;
21
+ } | null;
22
+ };
23
+ }
12
24
  export interface EntityCommentNotification extends BaseAppNotification {
13
25
  type: "entity-comment";
14
26
  action: "open-comment";
@@ -113,7 +125,7 @@ export interface NewFollowNotification extends BaseAppNotification {
113
125
  initiatorAvatar: string | null | undefined;
114
126
  };
115
127
  }
116
- export type UnifiedAppNotification = EntityCommentNotification | CommentReplyNotification | EntityMentionNotification | CommentMentionNotification | EntityUpvoteNotification | CommentUpvoteNotification | NewFollowNotification;
128
+ export type UnifiedAppNotification = SystemNotification | EntityCommentNotification | CommentReplyNotification | EntityMentionNotification | CommentMentionNotification | EntityUpvoteNotification | CommentUpvoteNotification | NewFollowNotification;
117
129
  export type NotificationTemplate = {
118
130
  title?: string;
119
131
  content?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replyke/core",
3
- "version": "5.1.6-beta.14",
3
+ "version": "5.1.6-beta.16",
4
4
  "private": false,
5
5
  "license": "Apache-2.0",
6
6
  "author": "Replyke, maintained by Yanay Tsabary",