@nocobase/plugin-workflow-notification 1.6.0-beta.1 → 1.6.0-beta.3
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
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"react": "18.2.0",
|
|
12
12
|
"@ant-design/icons": "5.2.6",
|
|
13
|
-
"@nocobase/plugin-workflow": "1.6.0-beta.
|
|
14
|
-
"@nocobase/plugin-notification-manager": "1.6.0-beta.
|
|
15
|
-
"@nocobase/client": "1.6.0-beta.
|
|
13
|
+
"@nocobase/plugin-workflow": "1.6.0-beta.3",
|
|
14
|
+
"@nocobase/plugin-notification-manager": "1.6.0-beta.3",
|
|
15
|
+
"@nocobase/client": "1.6.0-beta.3",
|
|
16
16
|
"react-i18next": "11.18.6",
|
|
17
|
-
"@nocobase/server": "1.6.0-beta.
|
|
17
|
+
"@nocobase/server": "1.6.0-beta.3"
|
|
18
18
|
};
|
|
@@ -44,7 +44,13 @@ var import_plugin_workflow = require("@nocobase/plugin-workflow");
|
|
|
44
44
|
class NotificationInstruction_default extends import_plugin_workflow.Instruction {
|
|
45
45
|
async run(node, prevJob, processor) {
|
|
46
46
|
const options = processor.getParsedValue(node.config, node.id);
|
|
47
|
-
const
|
|
47
|
+
const scope = processor.getScope(node.id);
|
|
48
|
+
const sendParams = {
|
|
49
|
+
channelName: options.channelName,
|
|
50
|
+
message: { ...options, content: node.config.content },
|
|
51
|
+
triggerFrom: "workflow",
|
|
52
|
+
data: scope
|
|
53
|
+
};
|
|
48
54
|
const notificationServer = this.workflow.pm.get(import_plugin_notification_manager.default);
|
|
49
55
|
const { workflow } = processor.execution;
|
|
50
56
|
const sync = this.workflow.isWorkflowSync(workflow);
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName.zh-CN": "工作流:通知节点",
|
|
5
5
|
"description": "Send notification in workflow.",
|
|
6
6
|
"description.zh-CN": "可用于在工作流中发送各类通知。",
|
|
7
|
-
"version": "1.6.0-beta.
|
|
7
|
+
"version": "1.6.0-beta.3",
|
|
8
8
|
"license": "AGPL-3.0",
|
|
9
9
|
"main": "./dist/server/index.js",
|
|
10
10
|
"homepage": "https://docs.nocobase.com/handbook/workflow-smtp-mailer",
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"keywords": [
|
|
24
24
|
"Workflow"
|
|
25
25
|
],
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "19a659c49d7eedd3d57e46f9df2e8540f55c99b7"
|
|
27
27
|
}
|