@nocobase/plugin-workflow-action-trigger 1.7.0-beta.30 → 1.7.0-beta.32
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 +10 -10
- package/dist/locale/en-US.json +14 -7
- package/dist/server/ActionTrigger.js +1 -1
- package/package.json +2 -2
package/dist/externalVersion.js
CHANGED
|
@@ -9,18 +9,18 @@
|
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"@formily/react": "2.3.0",
|
|
12
|
-
"@nocobase/client": "1.7.0-beta.
|
|
13
|
-
"@nocobase/plugin-workflow": "1.7.0-beta.
|
|
12
|
+
"@nocobase/client": "1.7.0-beta.32",
|
|
13
|
+
"@nocobase/plugin-workflow": "1.7.0-beta.32",
|
|
14
14
|
"react": "18.2.0",
|
|
15
15
|
"react-i18next": "11.18.6",
|
|
16
16
|
"lodash": "4.17.21",
|
|
17
17
|
"sequelize": "6.35.2",
|
|
18
|
-
"@nocobase/database": "1.7.0-beta.
|
|
19
|
-
"@nocobase/server": "1.7.0-beta.
|
|
20
|
-
"@nocobase/actions": "1.7.0-beta.
|
|
21
|
-
"@nocobase/plugin-error-handler": "1.7.0-beta.
|
|
22
|
-
"@nocobase/data-source-manager": "1.7.0-beta.
|
|
23
|
-
"@nocobase/plugin-workflow-test": "1.7.0-beta.
|
|
24
|
-
"@nocobase/test": "1.7.0-beta.
|
|
25
|
-
"@nocobase/utils": "1.7.0-beta.
|
|
18
|
+
"@nocobase/database": "1.7.0-beta.32",
|
|
19
|
+
"@nocobase/server": "1.7.0-beta.32",
|
|
20
|
+
"@nocobase/actions": "1.7.0-beta.32",
|
|
21
|
+
"@nocobase/plugin-error-handler": "1.7.0-beta.32",
|
|
22
|
+
"@nocobase/data-source-manager": "1.7.0-beta.32",
|
|
23
|
+
"@nocobase/plugin-workflow-test": "1.7.0-beta.32",
|
|
24
|
+
"@nocobase/test": "1.7.0-beta.32",
|
|
25
|
+
"@nocobase/utils": "1.7.0-beta.32"
|
|
26
26
|
};
|
package/dist/locale/en-US.json
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
2
|
+
"Post-action event": "Post-action event",
|
|
3
|
+
"Triggered after the completion of a request initiated through an action button or API, such as after adding or updating data. Suitable for data processing, sending notifications, etc., after actions are completed.": "Triggered after the completion of a request initiated through an action button or API, such as after adding or updating data. Suitable for data processing, sending notifications, etc., after actions are completed.",
|
|
4
|
+
"Collection": "Collection",
|
|
5
|
+
"The collection to which the triggered data belongs.": "The collection to which the triggered data belongs.",
|
|
6
|
+
"Trigger mode": "Trigger mode",
|
|
7
|
+
"Local mode, triggered after the completion of actions bound to this workflow": "Local mode, triggered after the completion of actions bound to this workflow",
|
|
8
|
+
"Global mode, triggered after the completion of the following actions": "Global mode, triggered after the completion of the following actions",
|
|
9
|
+
"Select actions": "Select actions",
|
|
10
|
+
"Create record action": "Create record action",
|
|
11
|
+
"Update record action": "Update record action",
|
|
6
12
|
"Associations to use": "Associations to use",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
13
|
+
"Trigger data": "Trigger data",
|
|
14
|
+
"User acted": "User acted",
|
|
15
|
+
"Role of user acted": "Role of user acted"
|
|
16
|
+
}
|
|
@@ -100,7 +100,7 @@ class ActionTrigger_default extends import_plugin_workflow.Trigger {
|
|
|
100
100
|
const { currentUser, currentRole } = context.state;
|
|
101
101
|
const { model: UserModel } = this.workflow.db.getCollection("users");
|
|
102
102
|
const userInfo = {
|
|
103
|
-
user: UserModel.build(currentUser).desensitize(),
|
|
103
|
+
user: UserModel.build(currentUser).desensitize().toJSON(),
|
|
104
104
|
roleName: currentRole
|
|
105
105
|
};
|
|
106
106
|
const triggers = triggerWorkflows.split(",").map((trigger) => trigger.split("!"));
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName.zh-CN": "工作流:操作后事件",
|
|
5
5
|
"description": "Triggered after the completion of a request initiated through an action button or API, such as after adding, updating, deleting data, or \"submit to workflow\". Suitable for data processing, sending notifications, etc., after actions are completed.",
|
|
6
6
|
"description.zh-CN": "通过操作按钮或 API 发起请求并在执行完成后触发,比如新增、更新、删除数据或者“提交至工作流”之后。适用于在操作完成后进行数据处理、发送通知等。",
|
|
7
|
-
"version": "1.7.0-beta.
|
|
7
|
+
"version": "1.7.0-beta.32",
|
|
8
8
|
"license": "AGPL-3.0",
|
|
9
9
|
"main": "./dist/server/index.js",
|
|
10
10
|
"homepage": "https://docs.nocobase.com/plugins/workflow-action-trigger",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@nocobase/server": "1.x",
|
|
22
22
|
"@nocobase/test": "1.x"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "d78ca2740143209c6a16002e0c36e3256ed5fd88",
|
|
25
25
|
"keywords": [
|
|
26
26
|
"Workflow"
|
|
27
27
|
]
|