@nocobase/plugin-notification-in-app-message 1.6.0-alpha.3 → 1.6.0-alpha.30
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/externalVersion.js
CHANGED
|
@@ -9,23 +9,23 @@
|
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"react": "18.2.0",
|
|
12
|
-
"@nocobase/client": "1.6.0-alpha.
|
|
13
|
-
"@nocobase/plugin-notification-manager": "1.6.0-alpha.
|
|
14
|
-
"@nocobase/plugin-mobile": "1.6.0-alpha.
|
|
15
|
-
"@nocobase/utils": "1.6.0-alpha.
|
|
12
|
+
"@nocobase/client": "1.6.0-alpha.30",
|
|
13
|
+
"@nocobase/plugin-notification-manager": "1.6.0-alpha.30",
|
|
14
|
+
"@nocobase/plugin-mobile": "1.6.0-alpha.30",
|
|
15
|
+
"@nocobase/utils": "1.6.0-alpha.30",
|
|
16
16
|
"react-i18next": "11.18.6",
|
|
17
|
-
"@nocobase/server": "1.6.0-alpha.
|
|
17
|
+
"@nocobase/server": "1.6.0-alpha.30",
|
|
18
18
|
"sequelize": "6.35.2",
|
|
19
|
-
"@nocobase/database": "1.6.0-alpha.
|
|
19
|
+
"@nocobase/database": "1.6.0-alpha.30",
|
|
20
20
|
"antd": "5.12.8",
|
|
21
21
|
"@formily/reactive-react": "2.3.0",
|
|
22
22
|
"@formily/reactive": "2.3.0",
|
|
23
|
-
"@ant-design/icons": "5.
|
|
23
|
+
"@ant-design/icons": "5.6.1",
|
|
24
24
|
"antd-style": "3.7.1",
|
|
25
|
-
"@emotion/css": "11.13.0",
|
|
26
|
-
"react-router-dom": "6.21.0",
|
|
27
25
|
"@formily/react": "2.3.0",
|
|
26
|
+
"@emotion/css": "11.13.0",
|
|
27
|
+
"react-router-dom": "6.28.1",
|
|
28
28
|
"@formily/core": "2.3.0",
|
|
29
|
-
"@nocobase/plugin-workflow": "1.6.0-alpha.
|
|
29
|
+
"@nocobase/plugin-workflow": "1.6.0-alpha.30",
|
|
30
30
|
"@formily/shared": "2.3.2"
|
|
31
31
|
};
|
|
@@ -73,6 +73,7 @@ function defineMyInAppChannels({ app }) {
|
|
|
73
73
|
FROM ${messagesTableName} AS messages
|
|
74
74
|
WHERE
|
|
75
75
|
messages.${messagesFieldName.channelName} = ${channelsTableAliasName}.${channelsFieldName.name}
|
|
76
|
+
AND messages.${messagesFieldName.userId} = ${userId}
|
|
76
77
|
ORDER BY messages.${messagesFieldName.receiveTimestamp} DESC
|
|
77
78
|
LIMIT 1
|
|
78
79
|
)`;
|
|
@@ -88,6 +89,7 @@ function defineMyInAppChannels({ app }) {
|
|
|
88
89
|
SELECT messages.${messagesFieldName.channelName}
|
|
89
90
|
FROM ${messagesTableName} AS messages
|
|
90
91
|
WHERE messages.${messagesFieldName.status} = '${status}'
|
|
92
|
+
AND messages.${messagesFieldName.userId} = ${userId}
|
|
91
93
|
)`);
|
|
92
94
|
return { name: { [import_sequelize.Op.in]: sql } };
|
|
93
95
|
};
|
|
@@ -128,6 +130,7 @@ function defineMyInAppChannels({ app }) {
|
|
|
128
130
|
FROM ${messagesTableName} AS messages
|
|
129
131
|
WHERE
|
|
130
132
|
messages.${messagesFieldName.channelName} = ${channelsTableAliasName}.${channelsFieldName.name}
|
|
133
|
+
AND messages.${messagesFieldName.userId} = ${userId}
|
|
131
134
|
ORDER BY messages.${messagesFieldName.receiveTimestamp} DESC
|
|
132
135
|
LIMIT 1
|
|
133
136
|
)`),
|
package/dist/types/messages.js
CHANGED
|
@@ -33,6 +33,7 @@ var import_index = require("./index");
|
|
|
33
33
|
const messageCollection = {
|
|
34
34
|
name: import_index.InAppMessagesDefinition.name,
|
|
35
35
|
title: "in-app messages",
|
|
36
|
+
migrationRules: ["schema-only"],
|
|
36
37
|
fields: [
|
|
37
38
|
{
|
|
38
39
|
name: import_index.InAppMessagesDefinition.fieldNameMap.id,
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-notification-in-app-message",
|
|
3
|
-
"version": "1.6.0-alpha.
|
|
3
|
+
"version": "1.6.0-alpha.30",
|
|
4
4
|
"displayName": "Notification: In-app message",
|
|
5
5
|
"displayName.zh-CN": "通知:站内信",
|
|
6
6
|
"description": "It supports users in receiving real-time message notifications within the NocoBase application.",
|
|
7
7
|
"description.zh-CN": "支持用户在 NocoBase 应用内实时接收消息通知。",
|
|
8
|
+
"homepage": "https://docs.nocobase.com/handbook/notification-in-app-message",
|
|
9
|
+
"homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/notification-in-app-message",
|
|
8
10
|
"keywords": [
|
|
9
11
|
"Notification"
|
|
10
12
|
],
|
|
@@ -24,5 +26,5 @@
|
|
|
24
26
|
"@nocobase/test": "1.x",
|
|
25
27
|
"react-router-dom": "^6.x"
|
|
26
28
|
},
|
|
27
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "4d092cae372fada3df9b57c55705ea3b7dfa6786"
|
|
28
30
|
}
|