@nocobase/plugin-workflow 2.1.0-alpha.3 → 2.1.0-alpha.31
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/LICENSE +201 -661
- package/README.md +79 -10
- package/dist/client/214.7e602cfe7a8251b8.js +10 -0
- package/dist/client/261.7722d7400942730e.js +10 -0
- package/dist/client/67.0fc4959e87c6b4da.js +10 -0
- package/dist/client/964.6251d37b35710747.js +10 -0
- package/dist/client/hooks/{useWorkflowFilterActionProps.d.ts → useResourceFilterActionProps.d.ts} +1 -1
- 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 +18 -2
- package/dist/client/nodes/update.d.ts +10 -0
- package/dist/client/schemas/collection.d.ts +8 -2
- package/dist/client/schemas/executions.d.ts +41 -23
- 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/executions.d.ts +22 -22
- package/dist/common/collections/executions.js +12 -0
- package/dist/common/collections/jobs.js +7 -0
- package/dist/common/collections/workflows.d.ts +59 -9
- package/dist/common/collections/workflows.js +31 -1
- package/dist/externalVersion.js +15 -13
- package/dist/locale/zh-CN.json +4 -1
- 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/Dispatcher.d.ts +3 -2
- package/dist/server/Dispatcher.js +74 -61
- 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 +32 -7
- package/dist/server/instructions/UpdateInstruction.d.ts +3 -0
- package/dist/server/instructions/UpdateInstruction.js +27 -0
- package/dist/server/instructions/index.d.ts +15 -2
- package/dist/server/instructions/index.js +18 -0
- package/dist/server/migrations/20260423225800-fill-workflow-created-updated-by.d.ts +13 -0
- package/dist/server/migrations/20260423225800-fill-workflow-created-updated-by.js +57 -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 +17 -0
- package/dist/server/utils.js +51 -2
- package/dist/swagger/index.d.ts +830 -109
- package/dist/swagger/index.js +947 -208
- package/package.json +6 -5
- package/dist/client/27bd65abee87cafa.js +0 -10
- package/dist/client/478692c1637f2742.js +0 -10
- package/dist/client/c1347b9d21f864d9.js +0 -10
- package/dist/client/f39e94207f92e352.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;
|
|
@@ -149,7 +159,10 @@ export default class extends Instruction {
|
|
|
149
159
|
'x-decorator': string;
|
|
150
160
|
'x-component': string;
|
|
151
161
|
'x-component-props': {
|
|
152
|
-
|
|
162
|
+
nullable: boolean;
|
|
163
|
+
useTypedConstant: (string | {
|
|
164
|
+
min: number;
|
|
165
|
+
})[][];
|
|
153
166
|
};
|
|
154
167
|
default: number;
|
|
155
168
|
};
|
|
@@ -165,7 +178,10 @@ export default class extends Instruction {
|
|
|
165
178
|
'x-decorator': string;
|
|
166
179
|
'x-component': string;
|
|
167
180
|
'x-component-props': {
|
|
168
|
-
|
|
181
|
+
nullable: boolean;
|
|
182
|
+
useTypedConstant: (string | {
|
|
183
|
+
min: number;
|
|
184
|
+
})[][];
|
|
169
185
|
};
|
|
170
186
|
default: number;
|
|
171
187
|
};
|
|
@@ -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;
|
|
@@ -121,7 +121,10 @@ export declare const pagination: {
|
|
|
121
121
|
'x-decorator': string;
|
|
122
122
|
'x-component': string;
|
|
123
123
|
'x-component-props': {
|
|
124
|
-
|
|
124
|
+
nullable: boolean;
|
|
125
|
+
useTypedConstant: (string | {
|
|
126
|
+
min: number;
|
|
127
|
+
})[][];
|
|
125
128
|
};
|
|
126
129
|
default: number;
|
|
127
130
|
};
|
|
@@ -137,7 +140,10 @@ export declare const pagination: {
|
|
|
137
140
|
'x-decorator': string;
|
|
138
141
|
'x-component': string;
|
|
139
142
|
'x-component-props': {
|
|
140
|
-
|
|
143
|
+
nullable: boolean;
|
|
144
|
+
useTypedConstant: (string | {
|
|
145
|
+
min: number;
|
|
146
|
+
})[][];
|
|
141
147
|
};
|
|
142
148
|
default: number;
|
|
143
149
|
};
|
|
@@ -46,6 +46,28 @@ export declare const executionSchema: {
|
|
|
46
46
|
unique?: undefined;
|
|
47
47
|
onDelete?: undefined;
|
|
48
48
|
defaultValue?: undefined;
|
|
49
|
+
} | {
|
|
50
|
+
type: string;
|
|
51
|
+
name: string;
|
|
52
|
+
interface: string;
|
|
53
|
+
uiSchema: {
|
|
54
|
+
type: string;
|
|
55
|
+
title: string;
|
|
56
|
+
'x-component': string;
|
|
57
|
+
'x-component-props': {
|
|
58
|
+
fieldNames?: undefined;
|
|
59
|
+
};
|
|
60
|
+
'x-read-pretty': boolean;
|
|
61
|
+
'x-decorator'?: undefined;
|
|
62
|
+
enum?: undefined;
|
|
63
|
+
};
|
|
64
|
+
primaryKey?: undefined;
|
|
65
|
+
allowNull?: undefined;
|
|
66
|
+
target?: undefined;
|
|
67
|
+
foreignKey?: undefined;
|
|
68
|
+
unique?: undefined;
|
|
69
|
+
onDelete?: undefined;
|
|
70
|
+
defaultValue?: undefined;
|
|
49
71
|
} | {
|
|
50
72
|
type: string;
|
|
51
73
|
name: string;
|
|
@@ -139,28 +161,6 @@ export declare const executionSchema: {
|
|
|
139
161
|
foreignKey?: undefined;
|
|
140
162
|
unique?: undefined;
|
|
141
163
|
onDelete?: undefined;
|
|
142
|
-
} | {
|
|
143
|
-
type: string;
|
|
144
|
-
name: string;
|
|
145
|
-
interface: string;
|
|
146
|
-
uiSchema: {
|
|
147
|
-
type: string;
|
|
148
|
-
title: string;
|
|
149
|
-
'x-component': string;
|
|
150
|
-
'x-component-props': {
|
|
151
|
-
fieldNames?: undefined;
|
|
152
|
-
};
|
|
153
|
-
'x-read-pretty': boolean;
|
|
154
|
-
'x-decorator'?: undefined;
|
|
155
|
-
enum?: undefined;
|
|
156
|
-
};
|
|
157
|
-
primaryKey?: undefined;
|
|
158
|
-
allowNull?: undefined;
|
|
159
|
-
target?: undefined;
|
|
160
|
-
foreignKey?: undefined;
|
|
161
|
-
unique?: undefined;
|
|
162
|
-
onDelete?: undefined;
|
|
163
|
-
defaultValue?: undefined;
|
|
164
164
|
})[];
|
|
165
165
|
indexes: {
|
|
166
166
|
fields: string[];
|
|
@@ -171,7 +171,6 @@ export declare const executionSchema: {
|
|
|
171
171
|
resource: string;
|
|
172
172
|
action: string;
|
|
173
173
|
params: {
|
|
174
|
-
appends: string[];
|
|
175
174
|
pageSize: number;
|
|
176
175
|
sort: string[];
|
|
177
176
|
except: string[];
|
|
@@ -189,6 +188,25 @@ export declare const executionSchema: {
|
|
|
189
188
|
};
|
|
190
189
|
};
|
|
191
190
|
properties: {
|
|
191
|
+
filter: {
|
|
192
|
+
type: string;
|
|
193
|
+
title: string;
|
|
194
|
+
'x-action': string;
|
|
195
|
+
'x-component': string;
|
|
196
|
+
'x-use-component-props': string;
|
|
197
|
+
'x-component-props': {
|
|
198
|
+
icon: string;
|
|
199
|
+
nonfilterable: string[];
|
|
200
|
+
};
|
|
201
|
+
'x-align': string;
|
|
202
|
+
default: {
|
|
203
|
+
$and: {
|
|
204
|
+
status: {
|
|
205
|
+
$eq: any;
|
|
206
|
+
};
|
|
207
|
+
}[];
|
|
208
|
+
};
|
|
209
|
+
};
|
|
192
210
|
refresher: {
|
|
193
211
|
type: string;
|
|
194
212
|
title: 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;
|
|
@@ -35,6 +35,28 @@ declare const _default: {
|
|
|
35
35
|
unique?: undefined;
|
|
36
36
|
onDelete?: undefined;
|
|
37
37
|
defaultValue?: undefined;
|
|
38
|
+
} | {
|
|
39
|
+
type: string;
|
|
40
|
+
name: string;
|
|
41
|
+
interface: string;
|
|
42
|
+
uiSchema: {
|
|
43
|
+
type: string;
|
|
44
|
+
title: string;
|
|
45
|
+
'x-component': string;
|
|
46
|
+
'x-component-props': {
|
|
47
|
+
fieldNames?: undefined;
|
|
48
|
+
};
|
|
49
|
+
'x-read-pretty': boolean;
|
|
50
|
+
'x-decorator'?: undefined;
|
|
51
|
+
enum?: undefined;
|
|
52
|
+
};
|
|
53
|
+
primaryKey?: undefined;
|
|
54
|
+
allowNull?: undefined;
|
|
55
|
+
target?: undefined;
|
|
56
|
+
foreignKey?: undefined;
|
|
57
|
+
unique?: undefined;
|
|
58
|
+
onDelete?: undefined;
|
|
59
|
+
defaultValue?: undefined;
|
|
38
60
|
} | {
|
|
39
61
|
type: string;
|
|
40
62
|
name: string;
|
|
@@ -128,28 +150,6 @@ declare const _default: {
|
|
|
128
150
|
foreignKey?: undefined;
|
|
129
151
|
unique?: undefined;
|
|
130
152
|
onDelete?: undefined;
|
|
131
|
-
} | {
|
|
132
|
-
type: string;
|
|
133
|
-
name: string;
|
|
134
|
-
interface: string;
|
|
135
|
-
uiSchema: {
|
|
136
|
-
type: string;
|
|
137
|
-
title: string;
|
|
138
|
-
'x-component': string;
|
|
139
|
-
'x-component-props': {
|
|
140
|
-
fieldNames?: undefined;
|
|
141
|
-
};
|
|
142
|
-
'x-read-pretty': boolean;
|
|
143
|
-
'x-decorator'?: undefined;
|
|
144
|
-
enum?: undefined;
|
|
145
|
-
};
|
|
146
|
-
primaryKey?: undefined;
|
|
147
|
-
allowNull?: undefined;
|
|
148
|
-
target?: undefined;
|
|
149
|
-
foreignKey?: undefined;
|
|
150
|
-
unique?: undefined;
|
|
151
|
-
onDelete?: undefined;
|
|
152
|
-
defaultValue?: undefined;
|
|
153
153
|
})[];
|
|
154
154
|
indexes: {
|
|
155
155
|
fields: string[];
|
|
@@ -52,6 +52,18 @@ var executions_default = {
|
|
|
52
52
|
primaryKey: true,
|
|
53
53
|
allowNull: false
|
|
54
54
|
},
|
|
55
|
+
{
|
|
56
|
+
type: "bigInt",
|
|
57
|
+
name: "workflowId",
|
|
58
|
+
interface: "id",
|
|
59
|
+
uiSchema: {
|
|
60
|
+
type: "number",
|
|
61
|
+
title: `{{t("Version ID", { ns: "${import_constants.NAMESPACE}" })}}`,
|
|
62
|
+
"x-component": "InputNumber",
|
|
63
|
+
"x-component-props": {},
|
|
64
|
+
"x-read-pretty": true
|
|
65
|
+
}
|
|
66
|
+
},
|
|
55
67
|
{
|
|
56
68
|
type: "belongsTo",
|
|
57
69
|
name: "workflow",
|
|
@@ -12,13 +12,30 @@ declare const _default: {
|
|
|
12
12
|
name: string;
|
|
13
13
|
shared: boolean;
|
|
14
14
|
repository: string;
|
|
15
|
+
createdBy: boolean;
|
|
16
|
+
updatedBy: boolean;
|
|
17
|
+
createdAt: boolean;
|
|
18
|
+
updatedAt: boolean;
|
|
15
19
|
fields: ({
|
|
16
20
|
name: string;
|
|
17
21
|
type: string;
|
|
18
22
|
primaryKey: boolean;
|
|
19
23
|
allowNull: boolean;
|
|
20
|
-
interface
|
|
21
|
-
uiSchema
|
|
24
|
+
interface: string;
|
|
25
|
+
uiSchema: {
|
|
26
|
+
type: string;
|
|
27
|
+
title: string;
|
|
28
|
+
'x-component': string;
|
|
29
|
+
'x-component-props': {
|
|
30
|
+
multiple?: undefined;
|
|
31
|
+
fieldNames?: undefined;
|
|
32
|
+
mode?: undefined;
|
|
33
|
+
};
|
|
34
|
+
'x-read-pretty': boolean;
|
|
35
|
+
required?: undefined;
|
|
36
|
+
enum?: undefined;
|
|
37
|
+
default?: undefined;
|
|
38
|
+
};
|
|
22
39
|
defaultValue?: undefined;
|
|
23
40
|
required?: undefined;
|
|
24
41
|
target?: undefined;
|
|
@@ -53,10 +70,10 @@ declare const _default: {
|
|
|
53
70
|
type: string;
|
|
54
71
|
'x-component': string;
|
|
55
72
|
required: boolean;
|
|
56
|
-
enum?: undefined;
|
|
57
|
-
default?: undefined;
|
|
58
73
|
'x-component-props'?: undefined;
|
|
59
74
|
'x-read-pretty'?: undefined;
|
|
75
|
+
enum?: undefined;
|
|
76
|
+
default?: undefined;
|
|
60
77
|
};
|
|
61
78
|
primaryKey?: undefined;
|
|
62
79
|
allowNull?: undefined;
|
|
@@ -88,9 +105,9 @@ declare const _default: {
|
|
|
88
105
|
})[];
|
|
89
106
|
'x-component': string;
|
|
90
107
|
default: boolean;
|
|
91
|
-
required?: undefined;
|
|
92
108
|
'x-component-props'?: undefined;
|
|
93
109
|
'x-read-pretty'?: undefined;
|
|
110
|
+
required?: undefined;
|
|
94
111
|
};
|
|
95
112
|
primaryKey?: undefined;
|
|
96
113
|
allowNull?: undefined;
|
|
@@ -110,11 +127,11 @@ declare const _default: {
|
|
|
110
127
|
title: string;
|
|
111
128
|
type: string;
|
|
112
129
|
'x-component': string;
|
|
130
|
+
'x-component-props'?: undefined;
|
|
131
|
+
'x-read-pretty'?: undefined;
|
|
113
132
|
required?: undefined;
|
|
114
133
|
enum?: undefined;
|
|
115
134
|
default?: undefined;
|
|
116
|
-
'x-component-props'?: undefined;
|
|
117
|
-
'x-read-pretty'?: undefined;
|
|
118
135
|
};
|
|
119
136
|
primaryKey?: undefined;
|
|
120
137
|
allowNull?: undefined;
|
|
@@ -138,9 +155,9 @@ declare const _default: {
|
|
|
138
155
|
'x-component': string;
|
|
139
156
|
enum: string;
|
|
140
157
|
required: boolean;
|
|
141
|
-
default?: undefined;
|
|
142
158
|
'x-component-props'?: undefined;
|
|
143
159
|
'x-read-pretty'?: undefined;
|
|
160
|
+
default?: undefined;
|
|
144
161
|
};
|
|
145
162
|
primaryKey?: undefined;
|
|
146
163
|
allowNull?: undefined;
|
|
@@ -215,9 +232,9 @@ declare const _default: {
|
|
|
215
232
|
color: string;
|
|
216
233
|
}[];
|
|
217
234
|
required: boolean;
|
|
218
|
-
default?: undefined;
|
|
219
235
|
'x-component-props'?: undefined;
|
|
220
236
|
'x-read-pretty'?: undefined;
|
|
237
|
+
default?: undefined;
|
|
221
238
|
};
|
|
222
239
|
primaryKey?: undefined;
|
|
223
240
|
allowNull?: undefined;
|
|
@@ -310,6 +327,39 @@ declare const _default: {
|
|
|
310
327
|
defaultValue?: undefined;
|
|
311
328
|
required?: undefined;
|
|
312
329
|
onDelete?: undefined;
|
|
330
|
+
} | {
|
|
331
|
+
type: string;
|
|
332
|
+
name: string;
|
|
333
|
+
target: string;
|
|
334
|
+
foreignKey: string;
|
|
335
|
+
interface: string;
|
|
336
|
+
uiSchema: {
|
|
337
|
+
type: string;
|
|
338
|
+
title: string;
|
|
339
|
+
'x-component': string;
|
|
340
|
+
'x-component-props': {
|
|
341
|
+
fieldNames: {
|
|
342
|
+
label: string;
|
|
343
|
+
value: string;
|
|
344
|
+
color?: undefined;
|
|
345
|
+
};
|
|
346
|
+
multiple?: undefined;
|
|
347
|
+
mode?: undefined;
|
|
348
|
+
};
|
|
349
|
+
'x-read-pretty'?: undefined;
|
|
350
|
+
required?: undefined;
|
|
351
|
+
enum?: undefined;
|
|
352
|
+
default?: undefined;
|
|
353
|
+
};
|
|
354
|
+
primaryKey?: undefined;
|
|
355
|
+
allowNull?: undefined;
|
|
356
|
+
defaultValue?: undefined;
|
|
357
|
+
required?: undefined;
|
|
358
|
+
onDelete?: undefined;
|
|
359
|
+
sourceKey?: undefined;
|
|
360
|
+
constraints?: undefined;
|
|
361
|
+
through?: undefined;
|
|
362
|
+
otherKey?: undefined;
|
|
313
363
|
})[];
|
|
314
364
|
indexes: {
|
|
315
365
|
unique: boolean;
|
|
@@ -36,12 +36,24 @@ var workflows_default = {
|
|
|
36
36
|
name: "workflows",
|
|
37
37
|
shared: true,
|
|
38
38
|
repository: "WorkflowRepository",
|
|
39
|
+
createdBy: true,
|
|
40
|
+
updatedBy: true,
|
|
41
|
+
createdAt: true,
|
|
42
|
+
updatedAt: true,
|
|
39
43
|
fields: [
|
|
40
44
|
{
|
|
41
45
|
name: "id",
|
|
42
46
|
type: "snowflakeId",
|
|
43
47
|
primaryKey: true,
|
|
44
|
-
allowNull: false
|
|
48
|
+
allowNull: false,
|
|
49
|
+
interface: "id",
|
|
50
|
+
uiSchema: {
|
|
51
|
+
type: "number",
|
|
52
|
+
title: '{{t("ID")}}',
|
|
53
|
+
"x-component": "InputNumber",
|
|
54
|
+
"x-component-props": {},
|
|
55
|
+
"x-read-pretty": true
|
|
56
|
+
}
|
|
45
57
|
},
|
|
46
58
|
{
|
|
47
59
|
name: "key",
|
|
@@ -237,6 +249,24 @@ var workflows_default = {
|
|
|
237
249
|
},
|
|
238
250
|
"x-read-pretty": true
|
|
239
251
|
}
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
type: "belongsTo",
|
|
255
|
+
name: "createdBy",
|
|
256
|
+
target: "users",
|
|
257
|
+
foreignKey: "createdById",
|
|
258
|
+
interface: "m2o",
|
|
259
|
+
uiSchema: {
|
|
260
|
+
type: "number",
|
|
261
|
+
title: `{{t("Created by")}}`,
|
|
262
|
+
"x-component": "AssociationField",
|
|
263
|
+
"x-component-props": {
|
|
264
|
+
fieldNames: {
|
|
265
|
+
label: "nickname",
|
|
266
|
+
value: "id"
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
240
270
|
}
|
|
241
271
|
],
|
|
242
272
|
// NOTE: use unique index for avoiding deadlock in mysql when setCurrent
|
package/dist/externalVersion.js
CHANGED
|
@@ -11,27 +11,29 @@ 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-alpha.
|
|
15
|
-
"@nocobase/utils": "2.1.0-alpha.
|
|
14
|
+
"@nocobase/client": "2.1.0-alpha.31",
|
|
15
|
+
"@nocobase/utils": "2.1.0-alpha.31",
|
|
16
16
|
"antd": "5.24.2",
|
|
17
17
|
"@ant-design/icons": "5.6.1",
|
|
18
18
|
"react-router-dom": "6.30.1",
|
|
19
19
|
"react-i18next": "11.18.6",
|
|
20
|
-
"lodash": "4.
|
|
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-alpha.
|
|
24
|
-
"@nocobase/plugin-mobile": "2.1.0-alpha.
|
|
23
|
+
"@nocobase/flow-engine": "2.1.0-alpha.31",
|
|
24
|
+
"@nocobase/plugin-mobile": "2.1.0-alpha.31",
|
|
25
25
|
"sequelize": "6.35.2",
|
|
26
|
-
"@nocobase/server": "2.1.0-alpha.
|
|
27
|
-
"@nocobase/database": "2.1.0-alpha.
|
|
28
|
-
"@nocobase/data-source-manager": "2.1.0-alpha.
|
|
29
|
-
"@nocobase/logger": "2.1.0-alpha.
|
|
30
|
-
"@nocobase/evaluators": "2.1.0-alpha.
|
|
26
|
+
"@nocobase/server": "2.1.0-alpha.31",
|
|
27
|
+
"@nocobase/database": "2.1.0-alpha.31",
|
|
28
|
+
"@nocobase/data-source-manager": "2.1.0-alpha.31",
|
|
29
|
+
"@nocobase/logger": "2.1.0-alpha.31",
|
|
30
|
+
"@nocobase/evaluators": "2.1.0-alpha.31",
|
|
31
31
|
"@formily/antd-v5": "1.2.3",
|
|
32
32
|
"@formily/reactive": "2.3.7",
|
|
33
|
-
"@
|
|
33
|
+
"@emotion/css": "11.13.0",
|
|
34
|
+
"@formily/json-schema": "2.3.7",
|
|
35
|
+
"@nocobase/actions": "2.1.0-alpha.31",
|
|
34
36
|
"dayjs": "1.11.13",
|
|
35
|
-
"@nocobase/plugin-workflow-test": "2.1.0-alpha.
|
|
36
|
-
"@nocobase/test": "2.1.0-alpha.
|
|
37
|
+
"@nocobase/plugin-workflow-test": "2.1.0-alpha.31",
|
|
38
|
+
"@nocobase/test": "2.1.0-alpha.31"
|
|
37
39
|
};
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
"Duplicate": "复制",
|
|
90
90
|
"Duplicate to new workflow": "复制为新工作流",
|
|
91
91
|
"Edit category": "编辑分类",
|
|
92
|
+
"Enabled": "启用",
|
|
92
93
|
"End": "结束",
|
|
93
94
|
"End as failed": "以失败结束",
|
|
94
95
|
"End process": "结束流程",
|
|
@@ -223,12 +224,14 @@
|
|
|
223
224
|
"The workflow tasks page has already been created.": "工作流待办页面已创建。",
|
|
224
225
|
"This is a main version, delete it will cause the whole workflow to be deleted (including all other revisions).": "当前是主版本,删除将导致整个流程被删除(包括所有其他版本)。",
|
|
225
226
|
"This node contains branches, deleting will also be preformed to them, are you sure?": "节点包含分支,将同时删除其所有分支下的子节点,确定继续?",
|
|
227
|
+
"This type of node can not be used in current type of workflow or execute mode.": "该类型的节点在当前类型的工作流或执行模式中不可用。",
|
|
226
228
|
"This type of trigger has not been supported to be executed manually.": "该类型的触发器暂未支持手动执行。",
|
|
227
229
|
"This will perform all the actions configured in the workflow. Are you sure you want to continue?": "将按照工作流中配置的所有操作执行,确定继续吗?",
|
|
228
230
|
"Trigger": "触发器",
|
|
231
|
+
"Trigger configuration": "触发器配置",
|
|
229
232
|
"Trigger data": "触发数据",
|
|
230
233
|
"Trigger data context": "触发数据上下文",
|
|
231
|
-
"Trigger in executed workflow cannot be modified": "
|
|
234
|
+
"Trigger in executed workflow cannot be modified": "已执行的工作流中的触发器无法修改",
|
|
232
235
|
"Trigger mode": "触发模式",
|
|
233
236
|
"Trigger on": "触发时机",
|
|
234
237
|
"Trigger time": "触发时间",
|