@replyke/core 5.1.5-beta.8 → 5.1.5-beta.9
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/dist/cjs/helpers/addNotificationsMessages.js +7 -9
- package/dist/cjs/helpers/addNotificationsMessages.js.map +1 -1
- package/dist/cjs/store/api/appNotificationsApi.js +17 -14
- package/dist/cjs/store/api/appNotificationsApi.js.map +1 -1
- package/dist/esm/helpers/addNotificationsMessages.js +7 -9
- package/dist/esm/helpers/addNotificationsMessages.js.map +1 -1
- package/dist/esm/store/api/appNotificationsApi.js +17 -14
- package/dist/esm/store/api/appNotificationsApi.js.map +1 -1
- package/package.json +1 -1
|
@@ -22,17 +22,15 @@ var replaceTemplateVariables = function (template, variables) {
|
|
|
22
22
|
// Centralized logic to build variable replacements
|
|
23
23
|
var getReplacementVariables = function (notification) {
|
|
24
24
|
return {
|
|
25
|
-
|
|
25
|
+
initiatorName: (0, getUserName_1.getUserName)({
|
|
26
26
|
id: notification.metadata.initiatorId,
|
|
27
27
|
name: notification.metadata.initiatorName,
|
|
28
28
|
username: notification.metadata.initiatorUsername,
|
|
29
|
-
avatar: notification.metadata.initiatorAvatar,
|
|
30
29
|
}, "name"),
|
|
31
|
-
|
|
30
|
+
initiatorUsername: (0, getUserName_1.getUserName)({
|
|
32
31
|
id: notification.metadata.initiatorId,
|
|
33
32
|
name: notification.metadata.initiatorName,
|
|
34
33
|
username: notification.metadata.initiatorUsername,
|
|
35
|
-
avatar: notification.metadata.initiatorAvatar,
|
|
36
34
|
}, "username"),
|
|
37
35
|
entityTitle: notification.metadata.entityTitle || "",
|
|
38
36
|
entityContent: notification.metadata.entityContent || "",
|
|
@@ -60,22 +58,22 @@ exports.default = (function (notifications, notificationTemplates) {
|
|
|
60
58
|
var content;
|
|
61
59
|
switch (notification.type) {
|
|
62
60
|
case "entity-comment":
|
|
63
|
-
(_a = configureMessage(notification, "$userName commented on your post
|
|
61
|
+
(_a = configureMessage(notification, "$userName commented on your post", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityComment), title = _a.title, content = _a.content);
|
|
64
62
|
break;
|
|
65
63
|
case "comment-reply":
|
|
66
|
-
(_b = configureMessage(notification, "$userName replied to your comment
|
|
64
|
+
(_b = configureMessage(notification, "$userName replied to your comment", "$replyContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentReply), title = _b.title, content = _b.content);
|
|
67
65
|
break;
|
|
68
66
|
case "entity-mention":
|
|
69
67
|
(_c = configureMessage(notification, "$userName mentioned you in their post", "$entityTitle", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityMention), title = _c.title, content = _c.content);
|
|
70
68
|
break;
|
|
71
69
|
case "comment-mention":
|
|
72
|
-
(_d = configureMessage(notification, "$userName mentioned you in their comment
|
|
70
|
+
(_d = configureMessage(notification, "$userName mentioned you in their comment", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentMention), title = _d.title, content = _d.content);
|
|
73
71
|
break;
|
|
74
72
|
case "entity-upvote":
|
|
75
|
-
(_e = configureMessage(notification, "$userName upvoted your post
|
|
73
|
+
(_e = configureMessage(notification, "$userName upvoted your post", "", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityUpvote), title = _e.title, content = _e.content);
|
|
76
74
|
break;
|
|
77
75
|
case "comment-upvote":
|
|
78
|
-
(_f = configureMessage(notification, "$userName upvoted your comment on
|
|
76
|
+
(_f = configureMessage(notification, "$userName upvoted your comment on", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentUpvote), title = _f.title, content = _f.content);
|
|
79
77
|
break;
|
|
80
78
|
case "new-follow":
|
|
81
79
|
(_g = configureMessage(notification, "$userName started following you", "", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.newFollow), title = _g.title, content = _g.content);
|
|
@@ -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;IAEjC,OAAO,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,MAAM,CACrC,UAAC,MAAM,EAAE,EAAY;YAAX,GAAG,QAAA,EAAE,KAAK,QAAA;QAClB,OAAA,MAAM,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,aAAM,GAAG,CAAE,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC;IAAnD,CAAmD,EACrD,QAAQ,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,mDAAmD;AACnD,IAAM,uBAAuB,GAAG,UAAC,YAAiB;IAChD,OAAO;QACL,
|
|
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;IAEjC,OAAO,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,MAAM,CACrC,UAAC,MAAM,EAAE,EAAY;YAAX,GAAG,QAAA,EAAE,KAAK,QAAA;QAClB,OAAA,MAAM,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,aAAM,GAAG,CAAE,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC;IAAnD,CAAmD,EACrD,QAAQ,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,mDAAmD;AACnD,IAAM,uBAAuB,GAAG,UAAC,YAAiB;IAChD,OAAO;QACL,aAAa,EAAE,IAAA,yBAAW,EACxB;YACE,EAAE,EAAE,YAAY,CAAC,QAAQ,CAAC,WAAW;YACrC,IAAI,EAAE,YAAY,CAAC,QAAQ,CAAC,aAAa;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OAAO,aAAA,CAKf,CAAC;gBACH,MAAM;YACR,KAAK,gBAAgB;gBACnB,CAAC,KAAqB,gBAAgB,CACpC,YAAY,EACZ,mCAAmC,EACnC,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,iCAAiC,EACjC,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"}
|
|
@@ -57,7 +57,7 @@ exports.appNotificationsApi = baseApi_1.baseApi.injectEndpoints({
|
|
|
57
57
|
var projectId = _a.projectId, page = _a.page, limit = _a.limit;
|
|
58
58
|
return ({
|
|
59
59
|
url: "/".concat(projectId, "/app-notifications"),
|
|
60
|
-
method:
|
|
60
|
+
method: "GET",
|
|
61
61
|
params: {
|
|
62
62
|
page: page,
|
|
63
63
|
limit: limit,
|
|
@@ -68,10 +68,13 @@ exports.appNotificationsApi = baseApi_1.baseApi.injectEndpoints({
|
|
|
68
68
|
var _b;
|
|
69
69
|
var projectId = _a.projectId;
|
|
70
70
|
return __spreadArray([
|
|
71
|
-
{ type:
|
|
71
|
+
{ type: "AppNotification", id: "".concat(projectId, "-LIST") }
|
|
72
72
|
], ((_b = result === null || result === void 0 ? void 0 : result.map(function (_a) {
|
|
73
73
|
var id = _a.id;
|
|
74
|
-
return ({
|
|
74
|
+
return ({
|
|
75
|
+
type: "AppNotification",
|
|
76
|
+
id: id,
|
|
77
|
+
});
|
|
75
78
|
})) !== null && _b !== void 0 ? _b : []), true);
|
|
76
79
|
},
|
|
77
80
|
}),
|
|
@@ -81,7 +84,7 @@ exports.appNotificationsApi = baseApi_1.baseApi.injectEndpoints({
|
|
|
81
84
|
var projectId = _a.projectId, notificationId = _a.notificationId;
|
|
82
85
|
return ({
|
|
83
86
|
url: "/".concat(projectId, "/app-notifications/").concat(notificationId, "/mark-as-read"),
|
|
84
|
-
method:
|
|
87
|
+
method: "PATCH",
|
|
85
88
|
body: {},
|
|
86
89
|
});
|
|
87
90
|
},
|
|
@@ -95,7 +98,7 @@ exports.appNotificationsApi = baseApi_1.baseApi.injectEndpoints({
|
|
|
95
98
|
switch (_f.label) {
|
|
96
99
|
case 0:
|
|
97
100
|
patches = [];
|
|
98
|
-
dispatch(exports.appNotificationsApi.util.updateQueryData(
|
|
101
|
+
dispatch(exports.appNotificationsApi.util.updateQueryData("fetchAppNotifications",
|
|
99
102
|
// We need to find all queries for this projectId - this is a simplified approach
|
|
100
103
|
{ projectId: projectId, page: 1, limit: 10 }, // This should be more dynamic in practice
|
|
101
104
|
function (draft) {
|
|
@@ -124,8 +127,8 @@ exports.appNotificationsApi = baseApi_1.baseApi.injectEndpoints({
|
|
|
124
127
|
invalidatesTags: function (result, error, _a) {
|
|
125
128
|
var projectId = _a.projectId, notificationId = _a.notificationId;
|
|
126
129
|
return [
|
|
127
|
-
{ type:
|
|
128
|
-
{ type:
|
|
130
|
+
{ type: "AppNotification", id: notificationId },
|
|
131
|
+
{ type: "AppNotification", id: "".concat(projectId, "-LIST") },
|
|
129
132
|
];
|
|
130
133
|
},
|
|
131
134
|
}),
|
|
@@ -135,13 +138,13 @@ exports.appNotificationsApi = baseApi_1.baseApi.injectEndpoints({
|
|
|
135
138
|
var projectId = _a.projectId;
|
|
136
139
|
return ({
|
|
137
140
|
url: "/".concat(projectId, "/app-notifications/count"),
|
|
138
|
-
method:
|
|
141
|
+
method: "GET",
|
|
139
142
|
});
|
|
140
143
|
},
|
|
141
144
|
providesTags: function (result, error, _a) {
|
|
142
145
|
var projectId = _a.projectId;
|
|
143
146
|
return [
|
|
144
|
-
{ type:
|
|
147
|
+
{ type: "AppNotification", id: "".concat(projectId, "-COUNT") },
|
|
145
148
|
];
|
|
146
149
|
},
|
|
147
150
|
}),
|
|
@@ -151,7 +154,7 @@ exports.appNotificationsApi = baseApi_1.baseApi.injectEndpoints({
|
|
|
151
154
|
var projectId = _a.projectId;
|
|
152
155
|
return ({
|
|
153
156
|
url: "/".concat(projectId, "/app-notifications/mark-all-as-read"),
|
|
154
|
-
method:
|
|
157
|
+
method: "PATCH",
|
|
155
158
|
body: {},
|
|
156
159
|
});
|
|
157
160
|
},
|
|
@@ -166,7 +169,7 @@ exports.appNotificationsApi = baseApi_1.baseApi.injectEndpoints({
|
|
|
166
169
|
case 0:
|
|
167
170
|
patches = [];
|
|
168
171
|
// Update all notifications to be marked as read
|
|
169
|
-
dispatch(exports.appNotificationsApi.util.updateQueryData(
|
|
172
|
+
dispatch(exports.appNotificationsApi.util.updateQueryData("fetchAppNotifications",
|
|
170
173
|
// We need to find all queries for this projectId - this is a simplified approach
|
|
171
174
|
{ projectId: projectId, page: 1, limit: 10 }, // This should be more dynamic in practice
|
|
172
175
|
function (draft) {
|
|
@@ -175,7 +178,7 @@ exports.appNotificationsApi = baseApi_1.baseApi.injectEndpoints({
|
|
|
175
178
|
});
|
|
176
179
|
}));
|
|
177
180
|
// Update unread count to 0
|
|
178
|
-
dispatch(exports.appNotificationsApi.util.updateQueryData(
|
|
181
|
+
dispatch(exports.appNotificationsApi.util.updateQueryData("countUnreadNotifications", { projectId: projectId }, function () { return 0; }));
|
|
179
182
|
_f.label = 1;
|
|
180
183
|
case 1:
|
|
181
184
|
_f.trys.push([1, 3, , 4]);
|
|
@@ -196,8 +199,8 @@ exports.appNotificationsApi = baseApi_1.baseApi.injectEndpoints({
|
|
|
196
199
|
invalidatesTags: function (result, error, _a) {
|
|
197
200
|
var projectId = _a.projectId;
|
|
198
201
|
return [
|
|
199
|
-
{ type:
|
|
200
|
-
{ type:
|
|
202
|
+
{ type: "AppNotification", id: "".concat(projectId, "-LIST") },
|
|
203
|
+
{ type: "AppNotification", id: "".concat(projectId, "-COUNT") },
|
|
201
204
|
];
|
|
202
205
|
},
|
|
203
206
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appNotificationsApi.js","sourceRoot":"","sources":["../../../../src/store/api/appNotificationsApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAoC;AAuBpC,gDAAgD;AACnC,QAAA,mBAAmB,GAAG,iBAAO,CAAC,eAAe,CAAC;IACzD,SAAS,EAAE,UAAC,OAAO,IAAK,OAAA,CAAC;QACvB,oCAAoC;QACpC,qBAAqB,EAAE,OAAO,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"appNotificationsApi.js","sourceRoot":"","sources":["../../../../src/store/api/appNotificationsApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAoC;AAuBpC,gDAAgD;AACnC,QAAA,mBAAmB,GAAG,iBAAO,CAAC,eAAe,CAAC;IACzD,SAAS,EAAE,UAAC,OAAO,IAAK,OAAA,CAAC;QACvB,oCAAoC;QACpC,qBAAqB,EAAE,OAAO,CAAC,KAAK,CAGlC;YACA,KAAK,EAAE,UAAC,EAA0B;oBAAxB,SAAS,eAAA,EAAE,IAAI,UAAA,EAAE,KAAK,WAAA;gBAAO,OAAA,CAAC;oBACtC,GAAG,EAAE,WAAI,SAAS,uBAAoB;oBACtC,MAAM,EAAE,KAAK;oBACb,MAAM,EAAE;wBACN,IAAI,MAAA;wBACJ,KAAK,OAAA;qBACN;iBACF,CAAC;YAPqC,CAOrC;YACF,YAAY,EAAE,UAAC,MAAM,EAAE,KAAK,EAAE,EAAa;;oBAAX,SAAS,eAAA;gBAAO;oBAC9C,EAAE,IAAI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2BAAmB,mCADrB,QAAA,oCAAoC,GAClC,2BAAmB,sCAAC;AAExB,qCAAqC;AAEnC,QAAA,qBAAqB,IADV,KAKT,2BAAmB,CAAC,SAAS,6BAH/B,QAAA,sBAAsB,8BACtB,QAAA,0BAA0B,kCAC1B,QAAA,wBAAwB,+BACQ"}
|
|
@@ -20,17 +20,15 @@ var replaceTemplateVariables = function (template, variables) {
|
|
|
20
20
|
// Centralized logic to build variable replacements
|
|
21
21
|
var getReplacementVariables = function (notification) {
|
|
22
22
|
return {
|
|
23
|
-
|
|
23
|
+
initiatorName: getUserName({
|
|
24
24
|
id: notification.metadata.initiatorId,
|
|
25
25
|
name: notification.metadata.initiatorName,
|
|
26
26
|
username: notification.metadata.initiatorUsername,
|
|
27
|
-
avatar: notification.metadata.initiatorAvatar,
|
|
28
27
|
}, "name"),
|
|
29
|
-
|
|
28
|
+
initiatorUsername: getUserName({
|
|
30
29
|
id: notification.metadata.initiatorId,
|
|
31
30
|
name: notification.metadata.initiatorName,
|
|
32
31
|
username: notification.metadata.initiatorUsername,
|
|
33
|
-
avatar: notification.metadata.initiatorAvatar,
|
|
34
32
|
}, "username"),
|
|
35
33
|
entityTitle: notification.metadata.entityTitle || "",
|
|
36
34
|
entityContent: notification.metadata.entityContent || "",
|
|
@@ -58,22 +56,22 @@ export default (function (notifications, notificationTemplates) {
|
|
|
58
56
|
var content;
|
|
59
57
|
switch (notification.type) {
|
|
60
58
|
case "entity-comment":
|
|
61
|
-
(_a = configureMessage(notification, "$userName commented on your post
|
|
59
|
+
(_a = configureMessage(notification, "$userName commented on your post", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityComment), title = _a.title, content = _a.content);
|
|
62
60
|
break;
|
|
63
61
|
case "comment-reply":
|
|
64
|
-
(_b = configureMessage(notification, "$userName replied to your comment
|
|
62
|
+
(_b = configureMessage(notification, "$userName replied to your comment", "$replyContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentReply), title = _b.title, content = _b.content);
|
|
65
63
|
break;
|
|
66
64
|
case "entity-mention":
|
|
67
65
|
(_c = configureMessage(notification, "$userName mentioned you in their post", "$entityTitle", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityMention), title = _c.title, content = _c.content);
|
|
68
66
|
break;
|
|
69
67
|
case "comment-mention":
|
|
70
|
-
(_d = configureMessage(notification, "$userName mentioned you in their comment
|
|
68
|
+
(_d = configureMessage(notification, "$userName mentioned you in their comment", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentMention), title = _d.title, content = _d.content);
|
|
71
69
|
break;
|
|
72
70
|
case "entity-upvote":
|
|
73
|
-
(_e = configureMessage(notification, "$userName upvoted your post
|
|
71
|
+
(_e = configureMessage(notification, "$userName upvoted your post", "", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityUpvote), title = _e.title, content = _e.content);
|
|
74
72
|
break;
|
|
75
73
|
case "comment-upvote":
|
|
76
|
-
(_f = configureMessage(notification, "$userName upvoted your comment on
|
|
74
|
+
(_f = configureMessage(notification, "$userName upvoted your comment on", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentUpvote), title = _f.title, content = _f.content);
|
|
77
75
|
break;
|
|
78
76
|
case "new-follow":
|
|
79
77
|
(_g = configureMessage(notification, "$userName started following you", "", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.newFollow), title = _g.title, content = _g.content);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addNotificationsMessages.js","sourceRoot":"","sources":["../../../src/helpers/addNotificationsMessages.ts"],"names":[],"mappings":";;;;;;;;;;;AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,sDAAsD;AACtD,IAAM,wBAAwB,GAAG,UAC/B,QAAgB,EAChB,SAAiC;IAEjC,OAAO,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,MAAM,CACrC,UAAC,MAAM,EAAE,EAAY;YAAX,GAAG,QAAA,EAAE,KAAK,QAAA;QAClB,OAAA,MAAM,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,aAAM,GAAG,CAAE,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC;IAAnD,CAAmD,EACrD,QAAQ,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,mDAAmD;AACnD,IAAM,uBAAuB,GAAG,UAAC,YAAiB;IAChD,OAAO;QACL,
|
|
1
|
+
{"version":3,"file":"addNotificationsMessages.js","sourceRoot":"","sources":["../../../src/helpers/addNotificationsMessages.ts"],"names":[],"mappings":";;;;;;;;;;;AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,sDAAsD;AACtD,IAAM,wBAAwB,GAAG,UAC/B,QAAgB,EAChB,SAAiC;IAEjC,OAAO,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,MAAM,CACrC,UAAC,MAAM,EAAE,EAAY;YAAX,GAAG,QAAA,EAAE,KAAK,QAAA;QAClB,OAAA,MAAM,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,aAAM,GAAG,CAAE,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC;IAAnD,CAAmD,EACrD,QAAQ,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,mDAAmD;AACnD,IAAM,uBAAuB,GAAG,UAAC,YAAiB;IAChD,OAAO;QACL,aAAa,EAAE,WAAW,CACxB;YACE,EAAE,EAAE,YAAY,CAAC,QAAQ,CAAC,WAAW;YACrC,IAAI,EAAE,YAAY,CAAC,QAAQ,CAAC,aAAa;YACzC,QAAQ,EAAE,YAAY,CAAC,QAAQ,CAAC,iBAAiB;SAClD,EACD,MAAM,CACP;QACD,iBAAiB,EAAE,WAAW,CAC5B;YACE,EAAE,EAAE,YAAY,CAAC,QAAQ,CAAC,WAAW;YACrC,IAAI,EAAE,YAAY,CAAC,QAAQ,CAAC,aAAa;YACzC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aAAA,CAKf,CAAC;gBACH,MAAM;YACR,KAAK,YAAY;gBACf,CAAC,KAAqB,gBAAgB,CACpC,YAAY,EACZ,iCAAiC,EACjC,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"}
|
|
@@ -54,7 +54,7 @@ export var appNotificationsApi = baseApi.injectEndpoints({
|
|
|
54
54
|
var projectId = _a.projectId, page = _a.page, limit = _a.limit;
|
|
55
55
|
return ({
|
|
56
56
|
url: "/".concat(projectId, "/app-notifications"),
|
|
57
|
-
method:
|
|
57
|
+
method: "GET",
|
|
58
58
|
params: {
|
|
59
59
|
page: page,
|
|
60
60
|
limit: limit,
|
|
@@ -65,10 +65,13 @@ export var appNotificationsApi = baseApi.injectEndpoints({
|
|
|
65
65
|
var _b;
|
|
66
66
|
var projectId = _a.projectId;
|
|
67
67
|
return __spreadArray([
|
|
68
|
-
{ type:
|
|
68
|
+
{ type: "AppNotification", id: "".concat(projectId, "-LIST") }
|
|
69
69
|
], ((_b = result === null || result === void 0 ? void 0 : result.map(function (_a) {
|
|
70
70
|
var id = _a.id;
|
|
71
|
-
return ({
|
|
71
|
+
return ({
|
|
72
|
+
type: "AppNotification",
|
|
73
|
+
id: id,
|
|
74
|
+
});
|
|
72
75
|
})) !== null && _b !== void 0 ? _b : []), true);
|
|
73
76
|
},
|
|
74
77
|
}),
|
|
@@ -78,7 +81,7 @@ export var appNotificationsApi = baseApi.injectEndpoints({
|
|
|
78
81
|
var projectId = _a.projectId, notificationId = _a.notificationId;
|
|
79
82
|
return ({
|
|
80
83
|
url: "/".concat(projectId, "/app-notifications/").concat(notificationId, "/mark-as-read"),
|
|
81
|
-
method:
|
|
84
|
+
method: "PATCH",
|
|
82
85
|
body: {},
|
|
83
86
|
});
|
|
84
87
|
},
|
|
@@ -92,7 +95,7 @@ export var appNotificationsApi = baseApi.injectEndpoints({
|
|
|
92
95
|
switch (_f.label) {
|
|
93
96
|
case 0:
|
|
94
97
|
patches = [];
|
|
95
|
-
dispatch(appNotificationsApi.util.updateQueryData(
|
|
98
|
+
dispatch(appNotificationsApi.util.updateQueryData("fetchAppNotifications",
|
|
96
99
|
// We need to find all queries for this projectId - this is a simplified approach
|
|
97
100
|
{ projectId: projectId, page: 1, limit: 10 }, // This should be more dynamic in practice
|
|
98
101
|
function (draft) {
|
|
@@ -121,8 +124,8 @@ export var appNotificationsApi = baseApi.injectEndpoints({
|
|
|
121
124
|
invalidatesTags: function (result, error, _a) {
|
|
122
125
|
var projectId = _a.projectId, notificationId = _a.notificationId;
|
|
123
126
|
return [
|
|
124
|
-
{ type:
|
|
125
|
-
{ type:
|
|
127
|
+
{ type: "AppNotification", id: notificationId },
|
|
128
|
+
{ type: "AppNotification", id: "".concat(projectId, "-LIST") },
|
|
126
129
|
];
|
|
127
130
|
},
|
|
128
131
|
}),
|
|
@@ -132,13 +135,13 @@ export var appNotificationsApi = baseApi.injectEndpoints({
|
|
|
132
135
|
var projectId = _a.projectId;
|
|
133
136
|
return ({
|
|
134
137
|
url: "/".concat(projectId, "/app-notifications/count"),
|
|
135
|
-
method:
|
|
138
|
+
method: "GET",
|
|
136
139
|
});
|
|
137
140
|
},
|
|
138
141
|
providesTags: function (result, error, _a) {
|
|
139
142
|
var projectId = _a.projectId;
|
|
140
143
|
return [
|
|
141
|
-
{ type:
|
|
144
|
+
{ type: "AppNotification", id: "".concat(projectId, "-COUNT") },
|
|
142
145
|
];
|
|
143
146
|
},
|
|
144
147
|
}),
|
|
@@ -148,7 +151,7 @@ export var appNotificationsApi = baseApi.injectEndpoints({
|
|
|
148
151
|
var projectId = _a.projectId;
|
|
149
152
|
return ({
|
|
150
153
|
url: "/".concat(projectId, "/app-notifications/mark-all-as-read"),
|
|
151
|
-
method:
|
|
154
|
+
method: "PATCH",
|
|
152
155
|
body: {},
|
|
153
156
|
});
|
|
154
157
|
},
|
|
@@ -163,7 +166,7 @@ export var appNotificationsApi = baseApi.injectEndpoints({
|
|
|
163
166
|
case 0:
|
|
164
167
|
patches = [];
|
|
165
168
|
// Update all notifications to be marked as read
|
|
166
|
-
dispatch(appNotificationsApi.util.updateQueryData(
|
|
169
|
+
dispatch(appNotificationsApi.util.updateQueryData("fetchAppNotifications",
|
|
167
170
|
// We need to find all queries for this projectId - this is a simplified approach
|
|
168
171
|
{ projectId: projectId, page: 1, limit: 10 }, // This should be more dynamic in practice
|
|
169
172
|
function (draft) {
|
|
@@ -172,7 +175,7 @@ export var appNotificationsApi = baseApi.injectEndpoints({
|
|
|
172
175
|
});
|
|
173
176
|
}));
|
|
174
177
|
// Update unread count to 0
|
|
175
|
-
dispatch(appNotificationsApi.util.updateQueryData(
|
|
178
|
+
dispatch(appNotificationsApi.util.updateQueryData("countUnreadNotifications", { projectId: projectId }, function () { return 0; }));
|
|
176
179
|
_f.label = 1;
|
|
177
180
|
case 1:
|
|
178
181
|
_f.trys.push([1, 3, , 4]);
|
|
@@ -193,8 +196,8 @@ export var appNotificationsApi = baseApi.injectEndpoints({
|
|
|
193
196
|
invalidatesTags: function (result, error, _a) {
|
|
194
197
|
var projectId = _a.projectId;
|
|
195
198
|
return [
|
|
196
|
-
{ type:
|
|
197
|
-
{ type:
|
|
199
|
+
{ type: "AppNotification", id: "".concat(projectId, "-LIST") },
|
|
200
|
+
{ type: "AppNotification", id: "".concat(projectId, "-COUNT") },
|
|
198
201
|
];
|
|
199
202
|
},
|
|
200
203
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appNotificationsApi.js","sourceRoot":"","sources":["../../../../src/store/api/appNotificationsApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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