@nocobase/plugin-workflow 2.3.0-alpha.1 → 3.0.0-alpha.1
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/438.8bd46a04ca080a4e.js +10 -0
- package/dist/client/{509.88792f5bd054b2af.js → 509.3a4ac27f10833c75.js} +1 -1
- package/dist/client/{67.56a3d15a55ab7d5c.js → 67.5eb8767a709f27d9.js} +1 -1
- package/dist/client/828.d03ecfc4ac66e0f8.js +10 -0
- package/dist/client/87.b62b1123d4d560fb.js +10 -0
- package/dist/client/WorkflowTasks.d.ts +26 -3
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client-v2/{387.5e61d648d16dbf1b.js → 387.e002f8eb34aa77e3.js} +1 -1
- package/dist/client-v2/438.1459f1a7cd19ea4f.js +10 -0
- package/dist/client-v2/513.18e257b3025d7692.js +10 -0
- package/dist/client-v2/{677.7382807126d9621a.js → 677.7007f4a6a4640165.js} +1 -1
- package/dist/client-v2/canvas/WorkflowVariableInput.d.ts +8 -1
- package/dist/client-v2/canvas/WorkflowVariableTextArea.d.ts +5 -0
- package/dist/client-v2/constants.d.ts +4 -4
- package/dist/client-v2/index.js +1 -1
- package/dist/client-v2/legacySettingsRedirect.d.ts +15 -0
- package/dist/client-v2/plugin.d.ts +1 -1
- package/dist/common/collections/userWorkflowTaskStats.d.ts +54 -0
- package/dist/common/collections/userWorkflowTaskStats.js +87 -0
- package/dist/externalVersion.js +13 -13
- package/dist/locale/en-US.json +4 -0
- package/dist/locale/zh-CN.json +4 -0
- package/dist/node_modules/cron-parser/package.json +1 -1
- package/dist/node_modules/joi/package.json +1 -1
- package/dist/node_modules/lru-cache/package.json +1 -1
- package/dist/node_modules/nodejs-snowflake/package.json +1 -1
- package/dist/server/Dispatcher.d.ts +24 -13
- package/dist/server/Dispatcher.js +160 -143
- package/dist/server/Plugin.d.ts +57 -11
- package/dist/server/Plugin.js +355 -15
- package/dist/server/Processor.d.ts +1 -7
- package/dist/server/Processor.js +11 -7
- package/dist/server/actions/executions.js +3 -6
- package/dist/server/actions/index.js +3 -1
- package/dist/server/actions/jobs.js +1 -2
- package/dist/server/{migrations/20260713000000-remove-workflow-validation.d.ts → actions/userWorkflowTaskStats.d.ts} +2 -5
- package/dist/server/actions/userWorkflowTaskStats.js +112 -0
- package/dist/server/actions/workflows.js +17 -0
- package/dist/server/collections/userWorkflowTaskStats.d.ts +11 -0
- package/dist/server/collections/userWorkflowTaskStats.js +43 -0
- package/dist/server/index.d.ts +1 -0
- package/dist/server/types/Execution.d.ts +2 -0
- package/dist/server/types/Job.d.ts +5 -0
- package/dist/server/utils.d.ts +1 -0
- package/dist/server/utils.js +5 -0
- package/dist/swagger/index.d.ts +68 -1
- package/dist/swagger/index.js +61 -1
- package/package.json +2 -2
- package/dist/client/438.6c6409d821d8c353.js +0 -10
- package/dist/client/828.6880ab21513b1968.js +0 -10
- package/dist/client/87.083467b89aaf3e53.js +0 -10
- package/dist/client-v2/438.b7df0416b66f8f64.js +0 -10
- package/dist/client-v2/513.617697f74783a611.js +0 -10
- package/dist/server/migrations/20260713000000-remove-workflow-validation.js +0 -56
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
type LegacyWorkflowLocation = {
|
|
10
|
+
pathname: string;
|
|
11
|
+
search: string;
|
|
12
|
+
hash: string;
|
|
13
|
+
};
|
|
14
|
+
export declare function buildLegacyWorkflowSettingsTarget(rootPublicPath: string, location: LegacyWorkflowLocation): string;
|
|
15
|
+
export {};
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import { Plugin } from '@nocobase/client-v2';
|
|
10
|
-
import type
|
|
10
|
+
import { type ReactNode } from 'react';
|
|
11
11
|
import type { TaskTypeOptions } from './taskCenter';
|
|
12
12
|
import type { Instruction } from './canvas/Instruction';
|
|
13
13
|
import type { Trigger } from './triggers';
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
declare const _default: {
|
|
10
|
+
dumpRules: {
|
|
11
|
+
group: string;
|
|
12
|
+
};
|
|
13
|
+
migrationRules: string[];
|
|
14
|
+
name: string;
|
|
15
|
+
dataCategory: string;
|
|
16
|
+
shared: boolean;
|
|
17
|
+
fields: ({
|
|
18
|
+
name: string;
|
|
19
|
+
type: string;
|
|
20
|
+
primaryKey: boolean;
|
|
21
|
+
allowNull: boolean;
|
|
22
|
+
foreignKey?: undefined;
|
|
23
|
+
defaultValue?: undefined;
|
|
24
|
+
} | {
|
|
25
|
+
name: string;
|
|
26
|
+
type: string;
|
|
27
|
+
primaryKey?: undefined;
|
|
28
|
+
allowNull?: undefined;
|
|
29
|
+
foreignKey?: undefined;
|
|
30
|
+
defaultValue?: undefined;
|
|
31
|
+
} | {
|
|
32
|
+
name: string;
|
|
33
|
+
type: string;
|
|
34
|
+
foreignKey: string;
|
|
35
|
+
primaryKey?: undefined;
|
|
36
|
+
allowNull?: undefined;
|
|
37
|
+
defaultValue?: undefined;
|
|
38
|
+
} | {
|
|
39
|
+
name: string;
|
|
40
|
+
type: string;
|
|
41
|
+
defaultValue: number;
|
|
42
|
+
primaryKey?: undefined;
|
|
43
|
+
allowNull?: undefined;
|
|
44
|
+
foreignKey?: undefined;
|
|
45
|
+
})[];
|
|
46
|
+
indexes: ({
|
|
47
|
+
unique: boolean;
|
|
48
|
+
fields: string[];
|
|
49
|
+
} | {
|
|
50
|
+
fields: string[];
|
|
51
|
+
unique?: undefined;
|
|
52
|
+
})[];
|
|
53
|
+
};
|
|
54
|
+
export default _default;
|
|
@@ -0,0 +1,87 @@
|
|
|
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 __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var userWorkflowTaskStats_exports = {};
|
|
28
|
+
__export(userWorkflowTaskStats_exports, {
|
|
29
|
+
default: () => userWorkflowTaskStats_default
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(userWorkflowTaskStats_exports);
|
|
32
|
+
var userWorkflowTaskStats_default = {
|
|
33
|
+
dumpRules: {
|
|
34
|
+
group: "log"
|
|
35
|
+
},
|
|
36
|
+
migrationRules: ["schema-only"],
|
|
37
|
+
name: "userWorkflowTaskStats",
|
|
38
|
+
dataCategory: "business",
|
|
39
|
+
shared: true,
|
|
40
|
+
fields: [
|
|
41
|
+
{
|
|
42
|
+
name: "id",
|
|
43
|
+
type: "snowflakeId",
|
|
44
|
+
primaryKey: true,
|
|
45
|
+
allowNull: false
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "userId",
|
|
49
|
+
type: "bigInt"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "user",
|
|
53
|
+
type: "belongsTo",
|
|
54
|
+
foreignKey: "userId"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: "workflowKey",
|
|
58
|
+
type: "string"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: "type",
|
|
62
|
+
type: "string"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: "pending",
|
|
66
|
+
type: "integer",
|
|
67
|
+
defaultValue: 0
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: "all",
|
|
71
|
+
type: "integer",
|
|
72
|
+
defaultValue: 0
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
indexes: [
|
|
76
|
+
{
|
|
77
|
+
unique: true,
|
|
78
|
+
fields: ["userId", "workflowKey", "type"]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
fields: ["userId", "workflowKey"]
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
fields: ["userId", "type"]
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
};
|
package/dist/externalVersion.js
CHANGED
|
@@ -11,33 +11,33 @@ module.exports = {
|
|
|
11
11
|
"react": "18.2.0",
|
|
12
12
|
"@formily/core": "2.3.7",
|
|
13
13
|
"@formily/react": "2.3.7",
|
|
14
|
-
"@nocobase/client": "
|
|
15
|
-
"@nocobase/utils": "
|
|
14
|
+
"@nocobase/client": "3.0.0-alpha.1",
|
|
15
|
+
"@nocobase/utils": "3.0.0-alpha.1",
|
|
16
16
|
"antd": "5.24.2",
|
|
17
17
|
"@ant-design/icons": "5.6.1",
|
|
18
|
-
"@nocobase/flow-engine": "
|
|
18
|
+
"@nocobase/flow-engine": "3.0.0-alpha.1",
|
|
19
19
|
"ahooks": "3.7.8",
|
|
20
20
|
"react-router-dom": "6.30.1",
|
|
21
21
|
"react-i18next": "11.18.6",
|
|
22
22
|
"lodash": "4.18.1",
|
|
23
23
|
"@dnd-kit/core": "6.1.0",
|
|
24
24
|
"@formily/shared": "2.3.7",
|
|
25
|
-
"@nocobase/plugin-mobile": "
|
|
26
|
-
"@nocobase/client-v2": "
|
|
25
|
+
"@nocobase/plugin-mobile": "3.0.0-alpha.1",
|
|
26
|
+
"@nocobase/client-v2": "3.0.0-alpha.1",
|
|
27
27
|
"sequelize": "6.35.2",
|
|
28
|
-
"@nocobase/server": "
|
|
29
|
-
"@nocobase/database": "
|
|
30
|
-
"@nocobase/data-source-manager": "
|
|
31
|
-
"@nocobase/logger": "
|
|
32
|
-
"@nocobase/evaluators": "
|
|
28
|
+
"@nocobase/server": "3.0.0-alpha.1",
|
|
29
|
+
"@nocobase/database": "3.0.0-alpha.1",
|
|
30
|
+
"@nocobase/data-source-manager": "3.0.0-alpha.1",
|
|
31
|
+
"@nocobase/logger": "3.0.0-alpha.1",
|
|
32
|
+
"@nocobase/evaluators": "3.0.0-alpha.1",
|
|
33
33
|
"@formily/antd-v5": "1.2.3",
|
|
34
34
|
"@formily/reactive": "2.3.7",
|
|
35
35
|
"@emotion/css": "11.13.0",
|
|
36
36
|
"@formily/json-schema": "2.3.7",
|
|
37
37
|
"antd-style": "3.7.1",
|
|
38
38
|
"dayjs": "1.11.13",
|
|
39
|
-
"@nocobase/actions": "
|
|
40
|
-
"@nocobase/plugin-workflow-test": "
|
|
41
|
-
"@nocobase/test": "
|
|
39
|
+
"@nocobase/actions": "3.0.0-alpha.1",
|
|
40
|
+
"@nocobase/plugin-workflow-test": "3.0.0-alpha.1",
|
|
41
|
+
"@nocobase/test": "3.0.0-alpha.1",
|
|
42
42
|
"@dnd-kit/sortable": "7.0.2"
|
|
43
43
|
};
|
package/dist/locale/en-US.json
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"After record deleted": "After record deleted",
|
|
20
20
|
"After record updated": "After record updated",
|
|
21
21
|
"All": "All",
|
|
22
|
+
"All workflows": "All workflows",
|
|
22
23
|
"Allow multiple records as result": "Allow multiple records as result",
|
|
23
24
|
"Are you sure you want to cancel the execution?": "Are you sure you want to cancel the execution?",
|
|
24
25
|
"Arithmetic calculation": "Arithmetic calculation",
|
|
@@ -137,6 +138,7 @@
|
|
|
137
138
|
"Keep": "Keep",
|
|
138
139
|
"Learn more": "Learn more",
|
|
139
140
|
"Load failed": "Load failed",
|
|
141
|
+
"Load more": "Load more",
|
|
140
142
|
"Loading": "Loading",
|
|
141
143
|
"Log": "Log",
|
|
142
144
|
"Manual": "Manual",
|
|
@@ -192,6 +194,7 @@
|
|
|
192
194
|
"Result": "Result",
|
|
193
195
|
"Result type": "Result type",
|
|
194
196
|
"Retry needed": "Retry needed",
|
|
197
|
+
"Retry": "Retry",
|
|
195
198
|
"Running of some node was aborted by program flow.": "Running of some node was aborted by program flow.",
|
|
196
199
|
"Schedule event": "Schedule event",
|
|
197
200
|
"Scope variables": "Scope variables",
|
|
@@ -200,6 +203,7 @@
|
|
|
200
203
|
"Select field": "Select field",
|
|
201
204
|
"Select users": "Select users",
|
|
202
205
|
"Select workflow": "Select workflow",
|
|
206
|
+
"Search workflows": "Search workflows",
|
|
203
207
|
"Set output data of this workflow. When this one is executed as a subflow, the output could be used as variables in downstream nodes of super workflow. You can also use this node in an AI employee workflow, to define what to output. If this node is added multiple times, the value of the last executed node prevails.": "Set output data of this workflow. When this one is executed as a subflow, the output could be used as variables in downstream nodes of super workflow. You can also use this node in an AI employee workflow, to define what to output. If this node is added multiple times, the value of the last executed node prevails.",
|
|
204
208
|
"Single record": "Single record",
|
|
205
209
|
"Some node meets error.": "Some node meets error.",
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"After record deleted": "删除数据后",
|
|
21
21
|
"After record updated": "更新数据后",
|
|
22
22
|
"All": "全部",
|
|
23
|
+
"All workflows": "全部工作流",
|
|
23
24
|
"Allow multiple records as result": "允许结果是多条数据",
|
|
24
25
|
"Are you sure you want to cancel the execution?": "确定要取消该执行吗?",
|
|
25
26
|
"Arithmetic calculation": "Arithmetic calculation",
|
|
@@ -141,6 +142,7 @@
|
|
|
141
142
|
"Keep": "保留",
|
|
142
143
|
"Learn more": "了解更多",
|
|
143
144
|
"Load failed": "加载失败",
|
|
145
|
+
"Load more": "加载更多",
|
|
144
146
|
"Loading": "加载中",
|
|
145
147
|
"Log": "日志",
|
|
146
148
|
"Manual": "人工处理",
|
|
@@ -196,6 +198,7 @@
|
|
|
196
198
|
"Result": "结果",
|
|
197
199
|
"Result type": "结果类型",
|
|
198
200
|
"Retry needed": "需重试",
|
|
201
|
+
"Retry": "重试",
|
|
199
202
|
"Running of some node was aborted by program flow.": "某个节点被程序流程终止。",
|
|
200
203
|
"Schedule event": "定时任务",
|
|
201
204
|
"Scope variables": "局域变量",
|
|
@@ -204,6 +207,7 @@
|
|
|
204
207
|
"Select field": "选择字段",
|
|
205
208
|
"Select users": "选择用户",
|
|
206
209
|
"Select workflow": "选择工作流",
|
|
210
|
+
"Search workflows": "搜索工作流",
|
|
207
211
|
"Set output data of this workflow. When this one is executed as a subflow, the output could be used as variables in downstream nodes of super workflow. You can also use this node in an AI employee workflow, to define what to output. If this node is added multiple times, the value of the last executed node prevails.": "设置工作流的输出数据。在作为子流程执行后可以被上级流程后续节点使用。你也可以在 AI 员工工作流中使用此节点,来定义输出内容。如果多次添加此节点,则以最后一个被执行的节点的值为准。",
|
|
208
212
|
"Single record": "单条数据",
|
|
209
213
|
"Some node meets error.": "某个节点出错。",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"cron-parser","version":"4.4.0","description":"Node.js library for parsing crontab instructions","main":"lib/parser.js","types":"index.d.ts","typesVersions":{"<4.1":{"*":["types/ts3/*"]}},"directories":{"test":"test"},"scripts":{"test:tsd":"tsd","test:unit":"TZ=UTC tap ./test/*.js","test:cover":"TZ=UTC tap --coverage-report=html ./test/*.js","lint":"eslint .","lint:fix":"eslint --fix .","test":"npm run lint && npm run test:unit && npm run test:tsd"},"repository":{"type":"git","url":"https://github.com/harrisiirak/cron-parser.git"},"keywords":["cron","crontab","parser"],"author":"Harri Siirak","contributors":["Nicholas Clawson","Daniel Prentis <daniel@salsitasoft.com>","Renault John Lecoultre","Richard Astbury <richard.astbury@gmail.com>","Meaglin Wasabi <Meaglin.wasabi@gmail.com>","Mike Kusold <hello@mikekusold.com>","Alex Kit <alex.kit@atmajs.com>","Santiago Gimeno <santiago.gimeno@gmail.com>","Daniel <darc.tec@gmail.com>","Christian Steininger <christian.steininger.cs@gmail.com>","Mykola Piskovyi <m.piskovyi@gmail.com>","Brian Vaughn <brian.david.vaughn@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Yasuhiroki <yasuhiroki.duck@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Brendan Warkentin <faazshift@gmail.com>","Charlie Fish <fishcharlie.code@gmail.com>","Ian Graves <ian+diskimage@iangrav.es>","Andy Thompson <me@andytson.com>","Regev Brody <regevbr@gmail.com>"],"license":"MIT","dependencies":{"luxon":"^1.28.0"},"devDependencies":{"eslint":"^8.2.0","sinon":"^10.0.0","tap":"^16.0.1","tsd":"^0.19.0"},"engines":{"node":">=0.8"},"browser":{"fs":false},"tap":{"check-coverage":false},"tsd":{"directory":"test","compilerOptions":{"lib":["es2017","dom"]}},"_lastModified":"2026-07-
|
|
1
|
+
{"name":"cron-parser","version":"4.4.0","description":"Node.js library for parsing crontab instructions","main":"lib/parser.js","types":"index.d.ts","typesVersions":{"<4.1":{"*":["types/ts3/*"]}},"directories":{"test":"test"},"scripts":{"test:tsd":"tsd","test:unit":"TZ=UTC tap ./test/*.js","test:cover":"TZ=UTC tap --coverage-report=html ./test/*.js","lint":"eslint .","lint:fix":"eslint --fix .","test":"npm run lint && npm run test:unit && npm run test:tsd"},"repository":{"type":"git","url":"https://github.com/harrisiirak/cron-parser.git"},"keywords":["cron","crontab","parser"],"author":"Harri Siirak","contributors":["Nicholas Clawson","Daniel Prentis <daniel@salsitasoft.com>","Renault John Lecoultre","Richard Astbury <richard.astbury@gmail.com>","Meaglin Wasabi <Meaglin.wasabi@gmail.com>","Mike Kusold <hello@mikekusold.com>","Alex Kit <alex.kit@atmajs.com>","Santiago Gimeno <santiago.gimeno@gmail.com>","Daniel <darc.tec@gmail.com>","Christian Steininger <christian.steininger.cs@gmail.com>","Mykola Piskovyi <m.piskovyi@gmail.com>","Brian Vaughn <brian.david.vaughn@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Yasuhiroki <yasuhiroki.duck@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Brendan Warkentin <faazshift@gmail.com>","Charlie Fish <fishcharlie.code@gmail.com>","Ian Graves <ian+diskimage@iangrav.es>","Andy Thompson <me@andytson.com>","Regev Brody <regevbr@gmail.com>"],"license":"MIT","dependencies":{"luxon":"^1.28.0"},"devDependencies":{"eslint":"^8.2.0","sinon":"^10.0.0","tap":"^16.0.1","tsd":"^0.19.0"},"engines":{"node":">=0.8"},"browser":{"fs":false},"tap":{"check-coverage":false},"tsd":{"directory":"test","compilerOptions":{"lib":["es2017","dom"]}},"_lastModified":"2026-07-30T03:56:41.122Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"joi","description":"Object schema validation","version":"17.13.3","repository":"git://github.com/hapijs/joi","main":"lib/index.js","types":"lib/index.d.ts","browser":"dist/joi-browser.min.js","files":["lib/**/*","dist/*"],"keywords":["schema","validation"],"dependencies":{"@hapi/hoek":"^9.3.0","@hapi/topo":"^5.1.0","@sideway/address":"^4.1.5","@sideway/formula":"^3.0.1","@sideway/pinpoint":"^2.0.0"},"devDependencies":{"@hapi/bourne":"2.x.x","@hapi/code":"8.x.x","@hapi/joi-legacy-test":"npm:@hapi/joi@15.x.x","@hapi/lab":"^25.1.3","@types/node":"^14.18.63","typescript":"4.3.x"},"scripts":{"prepublishOnly":"cd browser && npm install && npm run build","test":"lab -t 100 -a @hapi/code -L -Y","test-cov-html":"lab -r html -o coverage.html -a @hapi/code"},"license":"BSD-3-Clause","_lastModified":"2026-07-
|
|
1
|
+
{"name":"joi","description":"Object schema validation","version":"17.13.3","repository":"git://github.com/hapijs/joi","main":"lib/index.js","types":"lib/index.d.ts","browser":"dist/joi-browser.min.js","files":["lib/**/*","dist/*"],"keywords":["schema","validation"],"dependencies":{"@hapi/hoek":"^9.3.0","@hapi/topo":"^5.1.0","@sideway/address":"^4.1.5","@sideway/formula":"^3.0.1","@sideway/pinpoint":"^2.0.0"},"devDependencies":{"@hapi/bourne":"2.x.x","@hapi/code":"8.x.x","@hapi/joi-legacy-test":"npm:@hapi/joi@15.x.x","@hapi/lab":"^25.1.3","@types/node":"^14.18.63","typescript":"4.3.x"},"scripts":{"prepublishOnly":"cd browser && npm install && npm run build","test":"lab -t 100 -a @hapi/code -L -Y","test-cov-html":"lab -r html -o coverage.html -a @hapi/code"},"license":"BSD-3-Clause","_lastModified":"2026-07-30T03:56:40.879Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"lru-cache","description":"A cache object that deletes the least-recently-used items.","version":"11.3.5","author":"Isaac Z. Schlueter <i@izs.me>","keywords":["mru","lru","cache"],"sideEffects":false,"scripts":{"build":"npm run prepare","prepare":"tshy && bash scripts/build.sh","pretest":"npm run prepare","presnap":"npm run prepare","test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","format":"prettier --write .","typedoc":"typedoc --tsconfig ./.tshy/esm.json ./src/*.ts","benchmark-results-typedoc":"bash scripts/benchmark-results-typedoc.sh","prebenchmark":"npm run prepare","benchmark":"make -C benchmark","preprofile":"npm run prepare","profile":"make -C benchmark profile","lint":"oxlint --fix src test","postsnap":"npm run lint","postlint":"npm run format"},"main":"./dist/commonjs/index.min.js","types":"./dist/commonjs/index.d.ts","tshy":{"esmDialects":["node","browser"],"exports":{"./raw":"./src/index.ts",".":{"import":{"node":{"types":"./dist/esm/node/index.d.ts","default":"./dist/esm/node/index.min.js"},"browser":{"types":"./dist/esm/browser/index.d.ts","default":"./dist/esm/browser/index.min.js"},"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.min.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.min.js"}}},"selfLink":false},"repository":{"type":"git","url":"git+ssh://git@github.com/isaacs/node-lru-cache.git"},"devDependencies":{"benchmark":"^2.1.4","esbuild":"^0.25.9","marked":"^4.2.12","mkdirp":"^3.0.1","oxlint":"^1.58.0","oxlint-tsgolint":"^0.19.0","prettier":"^3.8.1","tap":"^21.6.3","tshy":"^4.1.1","typedoc":"^0.28.18"},"license":"BlueOak-1.0.0","files":["dist"],"engines":{"node":"20 || >=22"},"exports":{"./raw":{"import":{"node":{"types":"./dist/esm/node/index.d.ts","default":"./dist/esm/node/index.js"},"browser":{"types":"./dist/esm/browser/index.d.ts","default":"./dist/esm/browser/index.js"},"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},".":{"import":{"node":{"types":"./dist/esm/node/index.d.ts","default":"./dist/esm/node/index.min.js"},"browser":{"types":"./dist/esm/browser/index.d.ts","default":"./dist/esm/browser/index.min.js"},"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.min.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.min.js"}}},"type":"module","module":"./dist/esm/index.min.js","_lastModified":"2026-07-
|
|
1
|
+
{"name":"lru-cache","description":"A cache object that deletes the least-recently-used items.","version":"11.3.5","author":"Isaac Z. Schlueter <i@izs.me>","keywords":["mru","lru","cache"],"sideEffects":false,"scripts":{"build":"npm run prepare","prepare":"tshy && bash scripts/build.sh","pretest":"npm run prepare","presnap":"npm run prepare","test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","format":"prettier --write .","typedoc":"typedoc --tsconfig ./.tshy/esm.json ./src/*.ts","benchmark-results-typedoc":"bash scripts/benchmark-results-typedoc.sh","prebenchmark":"npm run prepare","benchmark":"make -C benchmark","preprofile":"npm run prepare","profile":"make -C benchmark profile","lint":"oxlint --fix src test","postsnap":"npm run lint","postlint":"npm run format"},"main":"./dist/commonjs/index.min.js","types":"./dist/commonjs/index.d.ts","tshy":{"esmDialects":["node","browser"],"exports":{"./raw":"./src/index.ts",".":{"import":{"node":{"types":"./dist/esm/node/index.d.ts","default":"./dist/esm/node/index.min.js"},"browser":{"types":"./dist/esm/browser/index.d.ts","default":"./dist/esm/browser/index.min.js"},"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.min.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.min.js"}}},"selfLink":false},"repository":{"type":"git","url":"git+ssh://git@github.com/isaacs/node-lru-cache.git"},"devDependencies":{"benchmark":"^2.1.4","esbuild":"^0.25.9","marked":"^4.2.12","mkdirp":"^3.0.1","oxlint":"^1.58.0","oxlint-tsgolint":"^0.19.0","prettier":"^3.8.1","tap":"^21.6.3","tshy":"^4.1.1","typedoc":"^0.28.18"},"license":"BlueOak-1.0.0","files":["dist"],"engines":{"node":"20 || >=22"},"exports":{"./raw":{"import":{"node":{"types":"./dist/esm/node/index.d.ts","default":"./dist/esm/node/index.js"},"browser":{"types":"./dist/esm/browser/index.d.ts","default":"./dist/esm/browser/index.js"},"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},".":{"import":{"node":{"types":"./dist/esm/node/index.d.ts","default":"./dist/esm/node/index.min.js"},"browser":{"types":"./dist/esm/browser/index.d.ts","default":"./dist/esm/browser/index.min.js"},"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.min.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.min.js"}}},"type":"module","module":"./dist/esm/index.min.js","_lastModified":"2026-07-30T03:56:40.233Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"nodejs-snowflake","collaborators":["Utkarsh Srivastava <utkarsh@sagacious.dev>"],"description":"Generate time sortable 64 bits unique ids for distributed systems (inspired from twitter snowflake)","version":"2.0.1","license":"Apache 2.0","repository":{"type":"git","url":"https://github.com/utkarsh-pro/nodejs-snowflake.git"},"files":["nodejs_snowflake_bg.wasm","nodejs_snowflake.js","nodejs_snowflake.d.ts"],"main":"nodejs_snowflake.js","types":"nodejs_snowflake.d.ts","_lastModified":"2026-07-
|
|
1
|
+
{"name":"nodejs-snowflake","collaborators":["Utkarsh Srivastava <utkarsh@sagacious.dev>"],"description":"Generate time sortable 64 bits unique ids for distributed systems (inspired from twitter snowflake)","version":"2.0.1","license":"Apache 2.0","repository":{"type":"git","url":"https://github.com/utkarsh-pro/nodejs-snowflake.git"},"files":["nodejs_snowflake_bg.wasm","nodejs_snowflake.js","nodejs_snowflake.d.ts"],"main":"nodejs_snowflake.js","types":"nodejs_snowflake.d.ts","_lastModified":"2026-07-30T03:56:40.062Z"}
|
|
@@ -9,14 +9,21 @@
|
|
|
9
9
|
import { Transactionable } from 'sequelize';
|
|
10
10
|
import type { QueueEventOptions } from '@nocobase/server';
|
|
11
11
|
import Processor, { ProcessorRerunOptions } from './Processor';
|
|
12
|
-
import type {
|
|
12
|
+
import type { WorkflowModel } from './types';
|
|
13
13
|
import type PluginWorkflowServer from './Plugin';
|
|
14
|
-
type
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
rerun?:
|
|
19
|
-
|
|
14
|
+
type ID = number | string;
|
|
15
|
+
type WorkflowQueueTask = {
|
|
16
|
+
executionId: ID;
|
|
17
|
+
jobId?: never;
|
|
18
|
+
rerun?: never;
|
|
19
|
+
} | {
|
|
20
|
+
executionId: ID;
|
|
21
|
+
jobId: ID;
|
|
22
|
+
rerun?: never;
|
|
23
|
+
} | {
|
|
24
|
+
executionId: ID;
|
|
25
|
+
jobId?: never;
|
|
26
|
+
rerun: ProcessorRerunOptions;
|
|
20
27
|
};
|
|
21
28
|
export type EventOptions = {
|
|
22
29
|
eventKey?: string;
|
|
@@ -33,22 +40,26 @@ export default class Dispatcher {
|
|
|
33
40
|
private readonly plugin;
|
|
34
41
|
private ready;
|
|
35
42
|
private executing;
|
|
43
|
+
private recovering;
|
|
36
44
|
private saving;
|
|
37
|
-
private pending;
|
|
38
45
|
private events;
|
|
39
46
|
private eventsCount;
|
|
40
47
|
get idle(): boolean;
|
|
41
48
|
constructor(plugin: PluginWorkflowServer);
|
|
42
|
-
readonly
|
|
49
|
+
readonly onQueueTask: QueueEventOptions['process'];
|
|
43
50
|
setReady(ready: boolean): void;
|
|
44
51
|
getEventsCount(): number;
|
|
45
52
|
trigger(workflow: WorkflowModel, context: object, options?: EventOptions): void | Promise<Processor | null | void>;
|
|
46
53
|
private saveEvent;
|
|
47
|
-
resume(job: JobModel): Promise<void>;
|
|
48
|
-
start(execution: ExecutionModel): Promise<void>;
|
|
49
54
|
beforeStop(): Promise<void>;
|
|
50
|
-
|
|
51
|
-
|
|
55
|
+
recover(options?: {
|
|
56
|
+
gracePeriod?: number;
|
|
57
|
+
}): Promise<void>;
|
|
58
|
+
private recoverQueueTasks;
|
|
59
|
+
enqueue(task: WorkflowQueueTask): Promise<void>;
|
|
60
|
+
private loadJob;
|
|
61
|
+
private findQueueingExecutions;
|
|
62
|
+
private resolveTask;
|
|
52
63
|
private triggerSync;
|
|
53
64
|
private validateEvent;
|
|
54
65
|
private handleTriggerFail;
|