@nocobase/plugin-workflow 2.0.0-alpha.8 → 2.1.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/{f68fbc145c3ddec3.js → 80d4cd8911e03c27.js} +1 -1
- package/dist/client/Branch.d.ts +2 -0
- package/dist/client/WorkflowTasks.d.ts +3 -1
- package/dist/client/bfc2a351589613e1.js +10 -0
- package/dist/client/e078314a62391f36.js +10 -0
- package/dist/client/flows/triggerWorkflows.d.ts +15 -42
- package/dist/client/index.js +1 -1
- package/dist/client/nodes/multi-conditions.d.ts +57 -0
- package/dist/client/schemas/executions.d.ts +1 -1
- package/dist/client/variable.d.ts +1 -1
- package/dist/common/collections/executions.d.ts +1 -1
- package/dist/common/collections/executions.js +13 -1
- package/dist/common/collections/jobs.js +4 -0
- package/dist/externalVersion.js +12 -11
- package/dist/locale/de-DE.json +230 -188
- package/dist/locale/en-US.json +233 -188
- package/dist/locale/es-ES.json +238 -78
- package/dist/locale/fr-FR.json +238 -78
- package/dist/locale/hu-HU.json +258 -0
- package/dist/locale/id-ID.json +258 -0
- package/dist/locale/it-IT.json +229 -176
- package/dist/locale/ja-JP.json +236 -164
- package/dist/locale/ko-KR.json +260 -150
- package/dist/locale/nl-NL.json +257 -99
- package/dist/locale/pt-BR.json +238 -78
- package/dist/locale/ru-RU.json +243 -67
- package/dist/locale/tr-TR.json +239 -63
- package/dist/locale/uk-UA.json +258 -0
- package/dist/locale/vi-VN.json +258 -0
- package/dist/locale/zh-CN.json +236 -237
- package/dist/locale/zh-TW.json +258 -0
- package/dist/node_modules/cron-parser/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 +1 -3
- package/dist/server/Dispatcher.js +30 -30
- package/dist/server/Plugin.d.ts +3 -0
- package/dist/server/Plugin.js +55 -20
- package/dist/server/Processor.js +37 -12
- package/dist/server/actions/index.js +3 -0
- package/dist/server/actions/jobs.d.ts +9 -0
- package/dist/server/actions/jobs.js +64 -0
- package/dist/server/actions/nodes.d.ts +1 -0
- package/dist/server/actions/nodes.js +78 -1
- package/dist/server/instructions/MultiConditionsInstruction.d.ts +18 -0
- package/dist/server/instructions/MultiConditionsInstruction.js +118 -0
- package/dist/server/instructions/index.d.ts +3 -1
- package/dist/server/repositories/WorkflowRepository.js +9 -2
- package/dist/server/triggers/CollectionTrigger.d.ts +3 -0
- package/dist/server/triggers/CollectionTrigger.js +31 -3
- package/dist/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.js +8 -0
- package/dist/server/triggers/index.d.ts +3 -1
- package/dist/server/types/Job.d.ts +1 -0
- package/package.json +5 -2
- package/dist/client/248e211bb2d99aee.js +0 -10
- package/dist/client/e7c028a099537ab1.js +0 -10
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
import React from 'react';
|
|
10
|
+
import { Instruction } from '.';
|
|
11
|
+
import { RadioWithTooltip } from '../components/RadioWithTooltip';
|
|
12
|
+
import { useWorkflowVariableOptions, WorkflowVariableTextArea } from '../variable';
|
|
13
|
+
declare function NodeComponent({ data }: {
|
|
14
|
+
data: any;
|
|
15
|
+
}): React.JSX.Element;
|
|
16
|
+
export default class extends Instruction {
|
|
17
|
+
title: string;
|
|
18
|
+
type: string;
|
|
19
|
+
group: string;
|
|
20
|
+
description: string;
|
|
21
|
+
icon: React.JSX.Element;
|
|
22
|
+
fieldset: {
|
|
23
|
+
continueOnNoMatch: {
|
|
24
|
+
type: string;
|
|
25
|
+
title: string;
|
|
26
|
+
'x-decorator': string;
|
|
27
|
+
'x-component': string;
|
|
28
|
+
'x-component-props': {
|
|
29
|
+
options: {
|
|
30
|
+
label: string;
|
|
31
|
+
value: boolean;
|
|
32
|
+
}[];
|
|
33
|
+
};
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
branching: {
|
|
38
|
+
label: string;
|
|
39
|
+
value: number;
|
|
40
|
+
}[];
|
|
41
|
+
scope: {
|
|
42
|
+
renderEngineReference: (key: string) => React.JSX.Element;
|
|
43
|
+
useWorkflowVariableOptions: typeof useWorkflowVariableOptions;
|
|
44
|
+
};
|
|
45
|
+
components: {
|
|
46
|
+
WorkflowVariableTextArea: typeof WorkflowVariableTextArea;
|
|
47
|
+
RadioWithTooltip: typeof RadioWithTooltip;
|
|
48
|
+
};
|
|
49
|
+
Component: typeof NodeComponent;
|
|
50
|
+
createDefaultConfig(): {
|
|
51
|
+
conditions: {
|
|
52
|
+
uid: any;
|
|
53
|
+
}[];
|
|
54
|
+
continueOnNoMatch: boolean;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export {};
|
|
@@ -115,9 +115,9 @@ var executions_default = {
|
|
|
115
115
|
name: "output"
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
|
-
interface: "createdAt",
|
|
119
118
|
type: "datetime",
|
|
120
119
|
name: "createdAt",
|
|
120
|
+
interface: "createdAt",
|
|
121
121
|
uiSchema: {
|
|
122
122
|
type: "datetime",
|
|
123
123
|
title: `{{t("Triggered at", { ns: "${import_constants.NAMESPACE}" })}}`,
|
|
@@ -125,6 +125,18 @@ var executions_default = {
|
|
|
125
125
|
"x-component-props": {},
|
|
126
126
|
"x-read-pretty": true
|
|
127
127
|
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
type: "boolean",
|
|
131
|
+
name: "manually",
|
|
132
|
+
interface: "checkbox",
|
|
133
|
+
uiSchema: {
|
|
134
|
+
type: "boolean",
|
|
135
|
+
title: `{{t("Triggered manually", { ns: "${import_constants.NAMESPACE}" })}}`,
|
|
136
|
+
"x-component": "Checkbox",
|
|
137
|
+
"x-component-props": {},
|
|
138
|
+
"x-read-pretty": true
|
|
139
|
+
}
|
|
128
140
|
}
|
|
129
141
|
],
|
|
130
142
|
indexes: [{ fields: ["dispatched", "id"] }]
|
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.
|
|
15
|
-
"@nocobase/utils": "2.
|
|
14
|
+
"@nocobase/client": "2.1.0-alpha.1",
|
|
15
|
+
"@nocobase/utils": "2.1.0-alpha.1",
|
|
16
16
|
"antd": "5.24.2",
|
|
17
17
|
"@ant-design/icons": "5.6.1",
|
|
18
18
|
"react-router-dom": "6.30.1",
|
|
@@ -20,17 +20,18 @@ module.exports = {
|
|
|
20
20
|
"lodash": "4.17.21",
|
|
21
21
|
"@dnd-kit/core": "6.1.0",
|
|
22
22
|
"@formily/shared": "2.3.7",
|
|
23
|
-
"@nocobase/
|
|
23
|
+
"@nocobase/flow-engine": "2.1.0-alpha.1",
|
|
24
|
+
"@nocobase/plugin-mobile": "2.1.0-alpha.1",
|
|
24
25
|
"sequelize": "6.35.2",
|
|
25
|
-
"@nocobase/
|
|
26
|
-
"@nocobase/
|
|
27
|
-
"@nocobase/data-source-manager": "2.
|
|
28
|
-
"@nocobase/logger": "2.
|
|
29
|
-
"@nocobase/evaluators": "2.
|
|
26
|
+
"@nocobase/server": "2.1.0-alpha.1",
|
|
27
|
+
"@nocobase/database": "2.1.0-alpha.1",
|
|
28
|
+
"@nocobase/data-source-manager": "2.1.0-alpha.1",
|
|
29
|
+
"@nocobase/logger": "2.1.0-alpha.1",
|
|
30
|
+
"@nocobase/evaluators": "2.1.0-alpha.1",
|
|
30
31
|
"@formily/antd-v5": "1.2.3",
|
|
31
32
|
"@formily/reactive": "2.3.7",
|
|
32
|
-
"@nocobase/actions": "2.
|
|
33
|
+
"@nocobase/actions": "2.1.0-alpha.1",
|
|
33
34
|
"dayjs": "1.11.13",
|
|
34
|
-
"@nocobase/plugin-workflow-test": "2.
|
|
35
|
-
"@nocobase/test": "2.
|
|
35
|
+
"@nocobase/plugin-workflow-test": "2.1.0-alpha.1",
|
|
36
|
+
"@nocobase/test": "2.1.0-alpha.1"
|
|
36
37
|
};
|