@nocobase/plugin-workflow 2.1.0-beta.15 → 2.1.0-beta.17
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/214.7e602cfe7a8251b8.js +10 -0
- package/dist/client/261.7722d7400942730e.js +10 -0
- package/dist/client/67.f904ef4520868b8a.js +10 -0
- package/dist/client/964.6251d37b35710747.js +10 -0
- package/dist/client/index.js +1 -1
- package/dist/client/nodes/create.d.ts +10 -0
- package/dist/client/nodes/destroy.d.ts +10 -0
- package/dist/client/nodes/index.d.ts +3 -0
- package/dist/client/nodes/query.d.ts +10 -0
- package/dist/client/nodes/update.d.ts +10 -0
- package/dist/client/triggers/collection.d.ts +14 -1
- package/dist/client/triggers/index.d.ts +4 -0
- package/dist/client/triggers/schedule/constants.d.ts +4 -0
- package/dist/client/triggers/schedule/index.d.ts +15 -0
- package/dist/common/collections/jobs.js +7 -0
- package/dist/externalVersion.js +12 -12
- package/dist/locale/zh-CN.json +1 -0
- package/dist/node_modules/cron-parser/lib/parser.js +1 -1
- package/dist/node_modules/cron-parser/package.json +1 -1
- package/dist/node_modules/joi/dist/joi-browser.min.js +1 -0
- package/dist/node_modules/joi/lib/annotate.js +175 -0
- package/dist/node_modules/joi/lib/base.js +1069 -0
- package/dist/node_modules/joi/lib/cache.js +143 -0
- package/dist/node_modules/joi/lib/common.js +216 -0
- package/dist/node_modules/joi/lib/compile.js +283 -0
- package/dist/node_modules/joi/lib/errors.js +271 -0
- package/dist/node_modules/joi/lib/extend.js +312 -0
- package/dist/node_modules/joi/lib/index.d.ts +2365 -0
- package/dist/node_modules/joi/lib/index.js +1 -0
- package/dist/node_modules/joi/lib/manifest.js +476 -0
- package/dist/node_modules/joi/lib/messages.js +178 -0
- package/dist/node_modules/joi/lib/modify.js +267 -0
- package/dist/node_modules/joi/lib/ref.js +414 -0
- package/dist/node_modules/joi/lib/schemas.js +302 -0
- package/dist/node_modules/joi/lib/state.js +166 -0
- package/dist/node_modules/joi/lib/template.js +463 -0
- package/dist/node_modules/joi/lib/trace.js +346 -0
- package/dist/node_modules/joi/lib/types/alternatives.js +364 -0
- package/dist/node_modules/joi/lib/types/any.js +174 -0
- package/dist/node_modules/joi/lib/types/array.js +809 -0
- package/dist/node_modules/joi/lib/types/binary.js +100 -0
- package/dist/node_modules/joi/lib/types/boolean.js +150 -0
- package/dist/node_modules/joi/lib/types/date.js +233 -0
- package/dist/node_modules/joi/lib/types/function.js +93 -0
- package/dist/node_modules/joi/lib/types/keys.js +1067 -0
- package/dist/node_modules/joi/lib/types/link.js +168 -0
- package/dist/node_modules/joi/lib/types/number.js +363 -0
- package/dist/node_modules/joi/lib/types/object.js +22 -0
- package/dist/node_modules/joi/lib/types/string.js +850 -0
- package/dist/node_modules/joi/lib/types/symbol.js +102 -0
- package/dist/node_modules/joi/lib/validator.js +750 -0
- package/dist/node_modules/joi/lib/values.js +263 -0
- package/dist/node_modules/joi/node_modules/@hapi/topo/lib/index.d.ts +60 -0
- package/dist/node_modules/joi/node_modules/@hapi/topo/lib/index.js +225 -0
- package/dist/node_modules/joi/node_modules/@hapi/topo/package.json +30 -0
- package/dist/node_modules/joi/package.json +1 -0
- package/dist/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +5 -0
- package/dist/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +10 -0
- package/dist/node_modules/lru-cache/dist/commonjs/index.d.ts +1381 -0
- package/dist/node_modules/lru-cache/dist/commonjs/index.js +1692 -0
- package/dist/node_modules/lru-cache/dist/commonjs/index.min.js +1 -0
- package/dist/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +5 -0
- package/dist/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
- package/dist/node_modules/lru-cache/dist/esm/browser/index.d.ts +1381 -0
- package/dist/node_modules/lru-cache/dist/{mjs → esm/browser}/index.js +537 -179
- package/dist/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
- package/dist/node_modules/lru-cache/dist/esm/diagnostics-channel.d.ts +5 -0
- package/dist/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
- package/dist/node_modules/lru-cache/dist/esm/index.d.ts +1381 -0
- package/dist/node_modules/lru-cache/dist/{cjs → esm}/index.js +538 -184
- package/dist/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/dist/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +5 -0
- package/dist/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +7 -0
- package/dist/node_modules/lru-cache/dist/esm/node/index.d.ts +1381 -0
- package/dist/node_modules/lru-cache/dist/esm/node/index.js +1688 -0
- package/dist/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
- package/dist/node_modules/lru-cache/package.json +1 -1
- package/dist/node_modules/nodejs-snowflake/nodejs_snowflake.js +1 -1
- package/dist/node_modules/nodejs-snowflake/package.json +1 -1
- package/dist/server/Plugin.d.ts +1 -0
- package/dist/server/Plugin.js +28 -3
- package/dist/server/actions/nodes.d.ts +5 -0
- package/dist/server/actions/nodes.js +38 -5
- package/dist/server/actions/workflows.d.ts +6 -0
- package/dist/server/actions/workflows.js +38 -0
- package/dist/server/instructions/ConditionInstruction.d.ts +2 -0
- package/dist/server/instructions/ConditionInstruction.js +17 -0
- package/dist/server/instructions/CreateInstruction.d.ts +3 -0
- package/dist/server/instructions/CreateInstruction.js +25 -0
- package/dist/server/instructions/DestroyInstruction.d.ts +3 -0
- package/dist/server/instructions/DestroyInstruction.js +25 -0
- package/dist/server/instructions/EndInstruction.d.ts +2 -0
- package/dist/server/instructions/EndInstruction.js +4 -0
- package/dist/server/instructions/MultiConditionsInstruction.d.ts +2 -0
- package/dist/server/instructions/MultiConditionsInstruction.js +23 -0
- package/dist/server/instructions/OutputInstruction.d.ts +2 -0
- package/dist/server/instructions/OutputInstruction.js +14 -0
- package/dist/server/instructions/QueryInstruction.d.ts +3 -0
- package/dist/server/instructions/QueryInstruction.js +30 -0
- package/dist/server/instructions/UpdateInstruction.d.ts +3 -0
- package/dist/server/instructions/UpdateInstruction.js +27 -0
- package/dist/server/instructions/index.d.ts +6 -1
- package/dist/server/instructions/index.js +18 -0
- package/dist/server/triggers/CollectionTrigger.d.ts +3 -0
- package/dist/server/triggers/CollectionTrigger.js +28 -0
- package/dist/server/triggers/ScheduleTrigger/index.d.ts +3 -0
- package/dist/server/triggers/ScheduleTrigger/index.js +18 -3
- package/dist/server/triggers/index.d.ts +3 -0
- package/dist/server/triggers/index.js +18 -0
- package/dist/server/utils.d.ts +2 -0
- package/dist/server/utils.js +22 -2
- package/package.json +4 -3
- package/dist/client/10.54a0831f49cae121.js +0 -10
- package/dist/client/626.7d24ff2a47742f1b.js +0 -10
- package/dist/client/771.5e7be8b4d4ac579f.js +0 -10
- package/dist/client/781.d46db08dcfead1b0.js +0 -10
- package/dist/node_modules/lru-cache/LICENSE +0 -15
- package/dist/node_modules/lru-cache/dist/cjs/index-cjs.d.ts +0 -7
- package/dist/node_modules/lru-cache/dist/cjs/index-cjs.js +0 -1
- package/dist/node_modules/lru-cache/dist/cjs/index.d.ts +0 -807
- package/dist/node_modules/lru-cache/dist/cjs/index.min.js +0 -2
- package/dist/node_modules/lru-cache/dist/mjs/index.d.ts +0 -807
- package/dist/node_modules/lru-cache/dist/mjs/index.min.js +0 -2
- /package/dist/node_modules/lru-cache/dist/{cjs → commonjs}/package.json +0 -0
- /package/dist/node_modules/lru-cache/dist/{mjs → esm}/package.json +0 -0
|
@@ -22,6 +22,16 @@ export default class extends Instruction {
|
|
|
22
22
|
group: string;
|
|
23
23
|
description: string;
|
|
24
24
|
icon: React.JSX.Element;
|
|
25
|
+
presetFieldset: {
|
|
26
|
+
collection: {
|
|
27
|
+
type: string;
|
|
28
|
+
title: string;
|
|
29
|
+
required: boolean;
|
|
30
|
+
'x-reactions': any[];
|
|
31
|
+
'x-decorator': string;
|
|
32
|
+
'x-component': string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
25
35
|
fieldset: {
|
|
26
36
|
collection: {
|
|
27
37
|
'x-disabled': string;
|
|
@@ -16,6 +16,16 @@ export default class extends Instruction {
|
|
|
16
16
|
group: string;
|
|
17
17
|
description: string;
|
|
18
18
|
icon: React.JSX.Element;
|
|
19
|
+
presetFieldset: {
|
|
20
|
+
collection: {
|
|
21
|
+
type: string;
|
|
22
|
+
title: string;
|
|
23
|
+
required: boolean;
|
|
24
|
+
'x-reactions': any[];
|
|
25
|
+
'x-decorator': string;
|
|
26
|
+
'x-component': string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
19
29
|
fieldset: {
|
|
20
30
|
collection: {
|
|
21
31
|
'x-disabled': string;
|
|
@@ -107,5 +107,8 @@ export declare function Node({ data }: {
|
|
|
107
107
|
}): React.JSX.Element;
|
|
108
108
|
export declare function RemoveButton(): React.JSX.Element;
|
|
109
109
|
export declare function JobButton(): React.JSX.Element;
|
|
110
|
+
export declare function LogCollapse({ value }: {
|
|
111
|
+
value: any;
|
|
112
|
+
}): React.JSX.Element;
|
|
110
113
|
export declare function NodeDefaultView(props: any): React.JSX.Element;
|
|
111
114
|
export {};
|
|
@@ -24,6 +24,16 @@ export default class extends Instruction {
|
|
|
24
24
|
group: string;
|
|
25
25
|
description: string;
|
|
26
26
|
icon: React.JSX.Element;
|
|
27
|
+
presetFieldset: {
|
|
28
|
+
collection: {
|
|
29
|
+
type: string;
|
|
30
|
+
title: string;
|
|
31
|
+
required: boolean;
|
|
32
|
+
'x-reactions': any[];
|
|
33
|
+
'x-decorator': string;
|
|
34
|
+
'x-component': string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
27
37
|
fieldset: {
|
|
28
38
|
collection: {
|
|
29
39
|
'x-disabled': string;
|
|
@@ -18,6 +18,16 @@ export default class extends Instruction {
|
|
|
18
18
|
group: string;
|
|
19
19
|
description: string;
|
|
20
20
|
icon: React.JSX.Element;
|
|
21
|
+
presetFieldset: {
|
|
22
|
+
collection: {
|
|
23
|
+
type: string;
|
|
24
|
+
title: string;
|
|
25
|
+
required: boolean;
|
|
26
|
+
'x-reactions': any[];
|
|
27
|
+
'x-decorator': string;
|
|
28
|
+
'x-component': string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
21
31
|
fieldset: {
|
|
22
32
|
collection: {
|
|
23
33
|
'x-disabled': string;
|
|
@@ -16,9 +16,22 @@ declare function useVariables(config: any, options: any): import("../variable").
|
|
|
16
16
|
export default class extends Trigger {
|
|
17
17
|
title: string;
|
|
18
18
|
description: string;
|
|
19
|
+
presetFieldset: {
|
|
20
|
+
collection: {
|
|
21
|
+
'x-component-props': {
|
|
22
|
+
dataSourceFilter(item: any): any;
|
|
23
|
+
};
|
|
24
|
+
type: string;
|
|
25
|
+
title: string;
|
|
26
|
+
required: boolean;
|
|
27
|
+
'x-reactions': any[];
|
|
28
|
+
'x-decorator': string;
|
|
29
|
+
'x-component': string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
19
32
|
fieldset: {
|
|
20
33
|
collection: {
|
|
21
|
-
'x-disabled':
|
|
34
|
+
'x-disabled': boolean;
|
|
22
35
|
'x-component-props': {
|
|
23
36
|
dataSourceFilter(item: any): any;
|
|
24
37
|
};
|
|
@@ -16,6 +16,10 @@ export declare abstract class Trigger {
|
|
|
16
16
|
description?: string;
|
|
17
17
|
useVariables?(config: Record<string, any>, options?: UseVariableOptions): VariableOption[];
|
|
18
18
|
fieldset: Record<string, ISchema>;
|
|
19
|
+
/**
|
|
20
|
+
* @experimental
|
|
21
|
+
*/
|
|
22
|
+
presetFieldset?: Record<string, ISchema>;
|
|
19
23
|
triggerFieldset?: Record<string, ISchema>;
|
|
20
24
|
validate(config: Record<string, any>): boolean;
|
|
21
25
|
view?: ISchema;
|
|
@@ -18,6 +18,21 @@ export default class extends Trigger {
|
|
|
18
18
|
sync: boolean;
|
|
19
19
|
title: string;
|
|
20
20
|
description: string;
|
|
21
|
+
presetFieldset: {
|
|
22
|
+
mode: {
|
|
23
|
+
type: string;
|
|
24
|
+
title: string;
|
|
25
|
+
name: string;
|
|
26
|
+
'x-decorator': string;
|
|
27
|
+
'x-component': string;
|
|
28
|
+
enum: {
|
|
29
|
+
value: number;
|
|
30
|
+
label: string;
|
|
31
|
+
}[];
|
|
32
|
+
required: boolean;
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
21
36
|
fieldset: {
|
|
22
37
|
config: {
|
|
23
38
|
type: string;
|
package/dist/externalVersion.js
CHANGED
|
@@ -11,8 +11,8 @@ 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": "2.1.0-beta.
|
|
15
|
-
"@nocobase/utils": "2.1.0-beta.
|
|
14
|
+
"@nocobase/client": "2.1.0-beta.17",
|
|
15
|
+
"@nocobase/utils": "2.1.0-beta.17",
|
|
16
16
|
"antd": "5.24.2",
|
|
17
17
|
"@ant-design/icons": "5.6.1",
|
|
18
18
|
"react-router-dom": "6.30.1",
|
|
@@ -20,20 +20,20 @@ module.exports = {
|
|
|
20
20
|
"lodash": "4.18.1",
|
|
21
21
|
"@dnd-kit/core": "6.1.0",
|
|
22
22
|
"@formily/shared": "2.3.7",
|
|
23
|
-
"@nocobase/flow-engine": "2.1.0-beta.
|
|
24
|
-
"@nocobase/plugin-mobile": "2.1.0-beta.
|
|
23
|
+
"@nocobase/flow-engine": "2.1.0-beta.17",
|
|
24
|
+
"@nocobase/plugin-mobile": "2.1.0-beta.17",
|
|
25
25
|
"sequelize": "6.35.2",
|
|
26
|
-
"@nocobase/server": "2.1.0-beta.
|
|
27
|
-
"@nocobase/database": "2.1.0-beta.
|
|
28
|
-
"@nocobase/data-source-manager": "2.1.0-beta.
|
|
29
|
-
"@nocobase/logger": "2.1.0-beta.
|
|
30
|
-
"@nocobase/evaluators": "2.1.0-beta.
|
|
26
|
+
"@nocobase/server": "2.1.0-beta.17",
|
|
27
|
+
"@nocobase/database": "2.1.0-beta.17",
|
|
28
|
+
"@nocobase/data-source-manager": "2.1.0-beta.17",
|
|
29
|
+
"@nocobase/logger": "2.1.0-beta.17",
|
|
30
|
+
"@nocobase/evaluators": "2.1.0-beta.17",
|
|
31
31
|
"@formily/antd-v5": "1.2.3",
|
|
32
32
|
"@formily/reactive": "2.3.7",
|
|
33
33
|
"@emotion/css": "11.13.0",
|
|
34
34
|
"@formily/json-schema": "2.3.7",
|
|
35
|
-
"@nocobase/actions": "2.1.0-beta.
|
|
35
|
+
"@nocobase/actions": "2.1.0-beta.17",
|
|
36
36
|
"dayjs": "1.11.13",
|
|
37
|
-
"@nocobase/plugin-workflow-test": "2.1.0-beta.
|
|
38
|
-
"@nocobase/test": "2.1.0-beta.
|
|
37
|
+
"@nocobase/plugin-workflow-test": "2.1.0-beta.17",
|
|
38
|
+
"@nocobase/test": "2.1.0-beta.17"
|
|
39
39
|
};
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -228,6 +228,7 @@
|
|
|
228
228
|
"This type of trigger has not been supported to be executed manually.": "该类型的触发器暂未支持手动执行。",
|
|
229
229
|
"This will perform all the actions configured in the workflow. Are you sure you want to continue?": "将按照工作流中配置的所有操作执行,确定继续吗?",
|
|
230
230
|
"Trigger": "触发器",
|
|
231
|
+
"Trigger configuration": "触发器配置",
|
|
231
232
|
"Trigger data": "触发数据",
|
|
232
233
|
"Trigger data context": "触发数据上下文",
|
|
233
234
|
"Trigger in executed workflow cannot be modified": "已执行的工作流中的触发器无法修改",
|