@nocobase/plugin-workflow-manual 2.3.0-alpha.1 → 3.0.0-alpha.2
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/client/WorkflowTodo.d.ts +1 -1
- package/dist/client/index.js +1 -1
- package/dist/externalVersion.js +11 -11
- package/dist/node_modules/joi/package.json +1 -1
- package/dist/server/ManualInstruction.d.ts +4 -3
- package/dist/server/ManualInstruction.js +1 -87
- package/dist/server/Plugin.d.ts +4 -0
- package/dist/server/Plugin.js +137 -150
- package/dist/server/actions.js +140 -34
- package/dist/server/forms/create.d.ts +2 -2
- package/dist/server/forms/create.js +3 -3
- package/dist/server/forms/index.d.ts +2 -2
- package/dist/server/forms/update.d.ts +2 -2
- package/dist/server/forms/update.js +4 -4
- package/dist/server/migrations/20260723120000-rebuild-workflow-task-stats.d.ts +13 -0
- package/dist/server/migrations/20260723120000-rebuild-workflow-task-stats.js +51 -0
- package/package.json +2 -2
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __create = Object.create;
|
|
11
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
15
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
+
var __export = (target, all) => {
|
|
17
|
+
for (var name in all)
|
|
18
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(from))
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
+
mod
|
|
35
|
+
));
|
|
36
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
|
+
var rebuild_workflow_task_stats_exports = {};
|
|
38
|
+
__export(rebuild_workflow_task_stats_exports, {
|
|
39
|
+
default: () => rebuild_workflow_task_stats_default
|
|
40
|
+
});
|
|
41
|
+
module.exports = __toCommonJS(rebuild_workflow_task_stats_exports);
|
|
42
|
+
var import_plugin_workflow = __toESM(require("@nocobase/plugin-workflow"));
|
|
43
|
+
var import_server = require("@nocobase/server");
|
|
44
|
+
var import_constants = require("../../common/constants");
|
|
45
|
+
class rebuild_workflow_task_stats_default extends import_server.Migration {
|
|
46
|
+
on = "afterLoad";
|
|
47
|
+
async up() {
|
|
48
|
+
const workflowPlugin = this.pm.get(import_plugin_workflow.default);
|
|
49
|
+
await workflowPlugin.repairTaskStats({ types: [import_constants.TASK_TYPE_MANUAL], silent: true });
|
|
50
|
+
}
|
|
51
|
+
}
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"description": "Could be used for workflows which some of decisions are made by users.",
|
|
7
7
|
"description.ru-RU": "Может использоваться в рабочих процессах, где какие-то решения принимаются пользователями.",
|
|
8
8
|
"description.zh-CN": "用于人工控制部分决策的流程。",
|
|
9
|
-
"version": "
|
|
9
|
+
"version": "3.0.0-alpha.2",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"main": "./dist/server/index.js",
|
|
12
12
|
"homepage": "https://docs.nocobase.com/handbook/workflow-manual",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@nocobase/test": "2.x",
|
|
38
38
|
"@nocobase/utils": "2.x"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "a3faea21082b30989301de04591ee1b91fd4e6a5",
|
|
41
41
|
"keywords": [
|
|
42
42
|
"Workflow"
|
|
43
43
|
]
|