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

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.
@@ -51,32 +51,35 @@ var configureMessage = function (notification, defaultTitleTemplate, defaultCont
51
51
  // Main notification mapping logic
52
52
  exports.default = (function (notifications, notificationTemplates) {
53
53
  return notifications.map(function (notification) {
54
- var _a, _b, _c, _d, _e, _f, _g;
54
+ var _a, _b, _c, _d, _e, _f, _g, _h;
55
55
  if (notification.title)
56
56
  return notification;
57
57
  var title = "";
58
58
  var content;
59
59
  switch (notification.type) {
60
+ case "system":
61
+ (_a = notification.metadata, title = _a.title, content = _a.content);
62
+ break;
60
63
  case "entity-comment":
61
- (_a = configureMessage(notification, "$initiatorUsername commented on your post", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityComment), title = _a.title, content = _a.content);
64
+ (_b = configureMessage(notification, "$initiatorUsername commented on your post", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityComment), title = _b.title, content = _b.content);
62
65
  break;
63
66
  case "comment-reply":
64
- (_b = configureMessage(notification, "$initiatorUsername replied to your comment", "$replyContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentReply), title = _b.title, content = _b.content);
67
+ (_c = configureMessage(notification, "$initiatorUsername replied to your comment", "$replyContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentReply), title = _c.title, content = _c.content);
65
68
  break;
66
69
  case "entity-mention":
67
- (_c = configureMessage(notification, "$initiatorUsername mentioned you in their post", "$entityTitle", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityMention), title = _c.title, content = _c.content);
70
+ (_d = configureMessage(notification, "$initiatorUsername mentioned you in their post", "$entityTitle", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityMention), title = _d.title, content = _d.content);
68
71
  break;
69
72
  case "comment-mention":
70
- (_d = configureMessage(notification, "$initiatorUsername mentioned you in their comment", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentMention), title = _d.title, content = _d.content);
73
+ (_e = configureMessage(notification, "$initiatorUsername mentioned you in their comment", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentMention), title = _e.title, content = _e.content);
71
74
  break;
72
75
  case "entity-upvote":
73
- (_e = configureMessage(notification, "$initiatorUsername upvoted your post", "", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityUpvote), title = _e.title, content = _e.content);
76
+ (_f = configureMessage(notification, "$initiatorUsername upvoted your post", "", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityUpvote), title = _f.title, content = _f.content);
74
77
  break;
75
78
  case "comment-upvote":
76
- (_f = configureMessage(notification, "$initiatorUsername upvoted your comment", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentUpvote), title = _f.title, content = _f.content);
79
+ (_g = configureMessage(notification, "$initiatorUsername upvoted your comment", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentUpvote), title = _g.title, content = _g.content);
77
80
  break;
78
81
  case "new-follow":
79
- (_g = configureMessage(notification, "$initiatorUsername started following you", "", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.newFollow), title = _g.title, content = _g.content);
82
+ (_h = configureMessage(notification, "$initiatorUsername started following you", "", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.newFollow), title = _h.title, content = _h.content);
80
83
  break;
81
84
  default:
82
85
  break;
@@ -1 +1 @@
1
- {"version":3,"file":"addNotificationsMessages.js","sourceRoot":"","sources":["../../../src/helpers/addNotificationsMessages.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAKA,6CAA4C;AAE5C,sDAAsD;AACtD,IAAM,wBAAwB,GAAG,UAC/B,QAAgB,EAChB,SAAiC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BAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,aAAa,CACrC,EALE,KAAK,WAAA,EAAE,OAAO,aAAA,CAKf,CAAC;gBACH,MAAM;YACR,KAAK,iBAAiB;gBACpB,CAAC,KAAqB,gBAAgB,CACpC,YAAY,EACZ,mDAAmD,EACnD,iBAAiB,EACjB,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,cAAc,CACtC,EALE,KAAK,WAAA,EAAE,OAAO,aAAA,CAKf,CAAC;gBACH,MAAM;YACR,KAAK,eAAe;gBAClB,CAAC,KAAqB,gBAAgB,CACpC,YAAY,EACZ,sCAAsC,EACtC,EAAE,EACF,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,YAAY,CACpC,EALE,KAAK,WAAA,EAAE,OAAO,aAAA,CAKf,CAAC;gBACH,MAAM;YACR,KAAK,gBAAgB;gBACnB,CAAC,KAAqB,gBAAgB,CACpC,YAAY,EACZ,yCAAyC,EACzC,iBAAiB,EACjB,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,aAAa,CACrC,EALE,KAAK,WAAA,EAAE,OAAO,aAAA,CAKf,CAAC;gBACH,MAAM;YACR,KAAK,YAAY;gBACf,CAAC,KAAqB,gBAAgB,CACpC,YAAY,EACZ,0CAA0C,EAC1C,EAAE,EACF,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,SAAS,CACjC,EALE,KAAK,WAAA,EAAE,OAAO,aAAA,CAKf,CAAC;gBACH,MAAM;YACR;gBACE,MAAM;QACV,CAAC;QAED,OAAO,sBACF,YAAY,KACf,KAAK,OAAA,EACL,OAAO,SAAA,GACkB,CAAC;IAC9B,CAAC,CAAC,CAAC;AACL,CAAC,EAAC"}
1
+ {"version":3,"file":"addNotificationsMessages.js","sourceRoot":"","sources":["../../../src/helpers/addNotificationsMessages.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAKA,6CAA4C;AAE5C,sDAAsD;AACtD,IAAM,wB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AAC,EAAC"}
@@ -12,14 +12,10 @@ interface BaseAppNotification {
12
12
  export interface SystemNotification extends BaseAppNotification {
13
13
  type: "system";
14
14
  action: string | null;
15
- metadata: {
16
- title: string;
17
- content: string;
18
- buttonData: {
19
- text: string;
20
- url: string;
21
- } | null;
22
- };
15
+ buttonData: {
16
+ text: string;
17
+ url: string;
18
+ } | null;
23
19
  }
24
20
  export interface EntityCommentNotification extends BaseAppNotification {
25
21
  type: "entity-comment";
@@ -49,32 +49,35 @@ var configureMessage = function (notification, defaultTitleTemplate, defaultCont
49
49
  // Main notification mapping logic
50
50
  export default (function (notifications, notificationTemplates) {
51
51
  return notifications.map(function (notification) {
52
- var _a, _b, _c, _d, _e, _f, _g;
52
+ var _a, _b, _c, _d, _e, _f, _g, _h;
53
53
  if (notification.title)
54
54
  return notification;
55
55
  var title = "";
56
56
  var content;
57
57
  switch (notification.type) {
58
+ case "system":
59
+ (_a = notification.metadata, title = _a.title, content = _a.content);
60
+ break;
58
61
  case "entity-comment":
59
- (_a = configureMessage(notification, "$initiatorUsername commented on your post", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityComment), title = _a.title, content = _a.content);
62
+ (_b = configureMessage(notification, "$initiatorUsername commented on your post", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityComment), title = _b.title, content = _b.content);
60
63
  break;
61
64
  case "comment-reply":
62
- (_b = configureMessage(notification, "$initiatorUsername replied to your comment", "$replyContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentReply), title = _b.title, content = _b.content);
65
+ (_c = configureMessage(notification, "$initiatorUsername replied to your comment", "$replyContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentReply), title = _c.title, content = _c.content);
63
66
  break;
64
67
  case "entity-mention":
65
- (_c = configureMessage(notification, "$initiatorUsername mentioned you in their post", "$entityTitle", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityMention), title = _c.title, content = _c.content);
68
+ (_d = configureMessage(notification, "$initiatorUsername mentioned you in their post", "$entityTitle", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityMention), title = _d.title, content = _d.content);
66
69
  break;
67
70
  case "comment-mention":
68
- (_d = configureMessage(notification, "$initiatorUsername mentioned you in their comment", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentMention), title = _d.title, content = _d.content);
71
+ (_e = configureMessage(notification, "$initiatorUsername mentioned you in their comment", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentMention), title = _e.title, content = _e.content);
69
72
  break;
70
73
  case "entity-upvote":
71
- (_e = configureMessage(notification, "$initiatorUsername upvoted your post", "", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityUpvote), title = _e.title, content = _e.content);
74
+ (_f = configureMessage(notification, "$initiatorUsername upvoted your post", "", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityUpvote), title = _f.title, content = _f.content);
72
75
  break;
73
76
  case "comment-upvote":
74
- (_f = configureMessage(notification, "$initiatorUsername upvoted your comment", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentUpvote), title = _f.title, content = _f.content);
77
+ (_g = configureMessage(notification, "$initiatorUsername upvoted your comment", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentUpvote), title = _g.title, content = _g.content);
75
78
  break;
76
79
  case "new-follow":
77
- (_g = configureMessage(notification, "$initiatorUsername started following you", "", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.newFollow), title = _g.title, content = _g.content);
80
+ (_h = configureMessage(notification, "$initiatorUsername started following you", "", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.newFollow), title = _h.title, content = _h.content);
78
81
  break;
79
82
  default:
80
83
  break;
@@ -1 +1 @@
1
- {"version":3,"file":"addN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,SAAS,CACjC,EALE,KAAK,WAAA,EAAE,OAAO,aAAA,CAKf,CAAC;gBACH,MAAM;YACR;gBACE,MAAM;QACV,CAAC;QAED,OAAO,sBACF,YAAY,KACf,KAAK,OAAA,EACL,OAAO,SAAA,GACkB,CAAC;IAC9B,CAAC,CAAC,CAAC;AACL,CAAC,EAAC"}
@@ -12,14 +12,10 @@ interface BaseAppNotification {
12
12
  export interface SystemNotification extends BaseAppNotification {
13
13
  type: "system";
14
14
  action: string | null;
15
- metadata: {
16
- title: string;
17
- content: string;
18
- buttonData: {
19
- text: string;
20
- url: string;
21
- } | null;
22
- };
15
+ buttonData: {
16
+ text: string;
17
+ url: string;
18
+ } | null;
23
19
  }
24
20
  export interface EntityCommentNotification extends BaseAppNotification {
25
21
  type: "entity-comment";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replyke/core",
3
- "version": "5.1.6-beta.16",
3
+ "version": "5.1.6-beta.17",
4
4
  "private": false,
5
5
  "license": "Apache-2.0",
6
6
  "author": "Replyke, maintained by Yanay Tsabary",