@nocobase/plugin-workflow 2.1.0-alpha.4 → 2.1.0-alpha.45
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/618.19af7f84261c815d.js +10 -0
- package/dist/client/67.452743ce8ec30617.js +10 -0
- package/dist/client/964.ffbf5b47ed12bbdc.js +10 -0
- package/dist/client/Branch.d.ts +7 -3
- package/dist/client/BranchContext.d.ts +18 -0
- package/dist/client/components/TimeoutInput.d.ts +11 -0
- package/dist/client/constants.d.ts +13 -0
- package/dist/client/flows/triggerWorkflows.d.ts +14 -1
- 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 +5 -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 +62 -2
- 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/client/utils.d.ts +17 -0
- package/dist/common/collections/executions.d.ts +43 -1
- package/dist/common/collections/executions.js +62 -1
- package/dist/common/collections/jobs.js +7 -0
- package/dist/common/collections/workflows.d.ts +65 -11
- package/dist/common/collections/workflows.js +34 -2
- package/dist/common/constants.d.ts +5 -0
- package/dist/common/constants.js +7 -0
- package/dist/externalVersion.js +15 -13
- package/dist/locale/de-DE.json +4 -0
- package/dist/locale/en-US.json +7 -0
- package/dist/locale/es-ES.json +4 -0
- package/dist/locale/fr-FR.json +4 -0
- package/dist/locale/hu-HU.json +7 -3
- package/dist/locale/id-ID.json +4 -0
- package/dist/locale/it-IT.json +4 -0
- package/dist/locale/ja-JP.json +5 -1
- package/dist/locale/ko-KR.json +4 -0
- package/dist/locale/nl-NL.json +7 -3
- package/dist/locale/pt-BR.json +4 -0
- package/dist/locale/ru-RU.json +4 -0
- package/dist/locale/tr-TR.json +4 -0
- package/dist/locale/uk-UA.json +7 -3
- package/dist/locale/vi-VN.json +7 -3
- package/dist/locale/zh-CN.json +12 -1
- package/dist/locale/zh-TW.json +7 -3
- 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 +9 -6
- package/dist/server/Dispatcher.js +241 -160
- package/dist/server/ExecutionTimeoutManager.d.ts +45 -0
- package/dist/server/ExecutionTimeoutManager.js +312 -0
- package/dist/server/Plugin.d.ts +13 -0
- package/dist/server/Plugin.js +49 -4
- package/dist/server/Processor.d.ts +65 -9
- package/dist/server/Processor.js +285 -33
- package/dist/server/RunningExecutionRegistry.d.ts +18 -0
- package/dist/server/RunningExecutionRegistry.js +48 -0
- package/dist/server/actions/executions.d.ts +4 -3
- package/dist/server/actions/executions.js +42 -21
- package/dist/server/actions/jobs.d.ts +2 -1
- package/dist/server/actions/jobs.js +28 -1
- 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/constants.d.ts +2 -0
- package/dist/server/constants.js +3 -0
- package/dist/server/index.d.ts +2 -0
- package/dist/server/index.js +2 -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 +24 -4
- 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/migrations/20260501120000-workflow-timeout.d.ts +13 -0
- package/dist/server/migrations/20260501120000-workflow-timeout.js +63 -0
- package/dist/server/timeout-errors.d.ts +13 -0
- package/dist/server/timeout-errors.js +47 -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/types/Execution.d.ts +6 -0
- package/dist/server/types/Job.d.ts +3 -3
- package/dist/server/types/Workflow.d.ts +6 -1
- package/dist/server/utils.d.ts +27 -0
- package/dist/server/utils.js +138 -2
- package/dist/swagger/index.d.ts +849 -106
- package/dist/swagger/index.js +969 -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;
|
|
@@ -17,6 +17,7 @@ export type NodeAvailableContext = {
|
|
|
17
17
|
workflow: object;
|
|
18
18
|
upstream: object;
|
|
19
19
|
branchIndex: number;
|
|
20
|
+
syncOnly?: boolean;
|
|
20
21
|
};
|
|
21
22
|
type Config = Record<string, any>;
|
|
22
23
|
type Options = {
|
|
@@ -29,6 +30,7 @@ export declare abstract class Instruction {
|
|
|
29
30
|
group: string;
|
|
30
31
|
description?: string;
|
|
31
32
|
icon?: JSX.Element;
|
|
33
|
+
async?: boolean;
|
|
32
34
|
/**
|
|
33
35
|
* @deprecated migrate to `presetFieldset` instead
|
|
34
36
|
*/
|
|
@@ -107,5 +109,8 @@ export declare function Node({ data }: {
|
|
|
107
109
|
}): React.JSX.Element;
|
|
108
110
|
export declare function RemoveButton(): React.JSX.Element;
|
|
109
111
|
export declare function JobButton(): React.JSX.Element;
|
|
112
|
+
export declare function LogCollapse({ value }: {
|
|
113
|
+
value: any;
|
|
114
|
+
}): React.JSX.Element;
|
|
110
115
|
export declare function NodeDefaultView(props: any): React.JSX.Element;
|
|
111
116
|
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;
|
|
@@ -127,6 +149,26 @@ export declare const executionSchema: {
|
|
|
127
149
|
unique?: undefined;
|
|
128
150
|
onDelete?: undefined;
|
|
129
151
|
defaultValue?: undefined;
|
|
152
|
+
} | {
|
|
153
|
+
type: string;
|
|
154
|
+
name: string;
|
|
155
|
+
uiSchema: {
|
|
156
|
+
title: string;
|
|
157
|
+
type: string;
|
|
158
|
+
'x-component': string;
|
|
159
|
+
'x-decorator': string;
|
|
160
|
+
enum: string;
|
|
161
|
+
'x-component-props'?: undefined;
|
|
162
|
+
'x-read-pretty'?: undefined;
|
|
163
|
+
};
|
|
164
|
+
interface?: undefined;
|
|
165
|
+
primaryKey?: undefined;
|
|
166
|
+
allowNull?: undefined;
|
|
167
|
+
target?: undefined;
|
|
168
|
+
foreignKey?: undefined;
|
|
169
|
+
unique?: undefined;
|
|
170
|
+
onDelete?: undefined;
|
|
171
|
+
defaultValue?: undefined;
|
|
130
172
|
} | {
|
|
131
173
|
type: string;
|
|
132
174
|
name: string;
|
|
@@ -142,7 +184,6 @@ export declare const executionSchema: {
|
|
|
142
184
|
} | {
|
|
143
185
|
type: string;
|
|
144
186
|
name: string;
|
|
145
|
-
interface: string;
|
|
146
187
|
uiSchema: {
|
|
147
188
|
type: string;
|
|
148
189
|
title: string;
|
|
@@ -154,6 +195,7 @@ export declare const executionSchema: {
|
|
|
154
195
|
'x-decorator'?: undefined;
|
|
155
196
|
enum?: undefined;
|
|
156
197
|
};
|
|
198
|
+
interface?: undefined;
|
|
157
199
|
primaryKey?: undefined;
|
|
158
200
|
allowNull?: undefined;
|
|
159
201
|
target?: undefined;
|
|
@@ -171,7 +213,6 @@ export declare const executionSchema: {
|
|
|
171
213
|
resource: string;
|
|
172
214
|
action: string;
|
|
173
215
|
params: {
|
|
174
|
-
appends: string[];
|
|
175
216
|
pageSize: number;
|
|
176
217
|
sort: string[];
|
|
177
218
|
except: string[];
|
|
@@ -189,6 +230,25 @@ export declare const executionSchema: {
|
|
|
189
230
|
};
|
|
190
231
|
};
|
|
191
232
|
properties: {
|
|
233
|
+
filter: {
|
|
234
|
+
type: string;
|
|
235
|
+
title: string;
|
|
236
|
+
'x-action': string;
|
|
237
|
+
'x-component': string;
|
|
238
|
+
'x-use-component-props': string;
|
|
239
|
+
'x-component-props': {
|
|
240
|
+
icon: string;
|
|
241
|
+
nonfilterable: string[];
|
|
242
|
+
};
|
|
243
|
+
'x-align': string;
|
|
244
|
+
default: {
|
|
245
|
+
$and: {
|
|
246
|
+
status: {
|
|
247
|
+
$eq: any;
|
|
248
|
+
};
|
|
249
|
+
}[];
|
|
250
|
+
};
|
|
251
|
+
};
|
|
192
252
|
refresher: {
|
|
193
253
|
type: string;
|
|
194
254
|
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;
|
package/dist/client/utils.d.ts
CHANGED
|
@@ -6,7 +6,24 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
+
import type { BranchContextValue } from './BranchContext';
|
|
9
10
|
export declare function linkNodes(nodes: any): void;
|
|
10
11
|
export declare function traverseSchema(schema: any, fn: any): void;
|
|
11
12
|
export declare function getWorkflowDetailPath(id: string | number): string;
|
|
12
13
|
export declare function getWorkflowExecutionsPath(id: string | number): string;
|
|
14
|
+
type WorkflowCapabilityContext = {
|
|
15
|
+
engine: {
|
|
16
|
+
isWorkflowSync(workflow: any): boolean;
|
|
17
|
+
};
|
|
18
|
+
workflow: any;
|
|
19
|
+
upstream: any;
|
|
20
|
+
branchIndex: number | null;
|
|
21
|
+
syncOnly?: boolean;
|
|
22
|
+
branchContext?: Pick<BranchContextValue, 'syncOnly'> | null;
|
|
23
|
+
};
|
|
24
|
+
type AvailableInstruction = {
|
|
25
|
+
async?: boolean;
|
|
26
|
+
isAvailable?(ctx: WorkflowCapabilityContext): boolean;
|
|
27
|
+
};
|
|
28
|
+
export declare function getInstructionAvailable(instruction: AvailableInstruction, ctx: WorkflowCapabilityContext): string;
|
|
29
|
+
export {};
|
|
@@ -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;
|
|
@@ -116,6 +138,26 @@ declare const _default: {
|
|
|
116
138
|
unique?: undefined;
|
|
117
139
|
onDelete?: undefined;
|
|
118
140
|
defaultValue?: undefined;
|
|
141
|
+
} | {
|
|
142
|
+
type: string;
|
|
143
|
+
name: string;
|
|
144
|
+
uiSchema: {
|
|
145
|
+
title: string;
|
|
146
|
+
type: string;
|
|
147
|
+
'x-component': string;
|
|
148
|
+
'x-decorator': string;
|
|
149
|
+
enum: string;
|
|
150
|
+
'x-component-props'?: undefined;
|
|
151
|
+
'x-read-pretty'?: undefined;
|
|
152
|
+
};
|
|
153
|
+
interface?: undefined;
|
|
154
|
+
primaryKey?: undefined;
|
|
155
|
+
allowNull?: undefined;
|
|
156
|
+
target?: undefined;
|
|
157
|
+
foreignKey?: undefined;
|
|
158
|
+
unique?: undefined;
|
|
159
|
+
onDelete?: undefined;
|
|
160
|
+
defaultValue?: undefined;
|
|
119
161
|
} | {
|
|
120
162
|
type: string;
|
|
121
163
|
name: string;
|
|
@@ -131,7 +173,6 @@ declare const _default: {
|
|
|
131
173
|
} | {
|
|
132
174
|
type: string;
|
|
133
175
|
name: string;
|
|
134
|
-
interface: string;
|
|
135
176
|
uiSchema: {
|
|
136
177
|
type: string;
|
|
137
178
|
title: string;
|
|
@@ -143,6 +184,7 @@ declare const _default: {
|
|
|
143
184
|
'x-decorator'?: undefined;
|
|
144
185
|
enum?: undefined;
|
|
145
186
|
};
|
|
187
|
+
interface?: undefined;
|
|
146
188
|
primaryKey?: undefined;
|
|
147
189
|
allowNull?: undefined;
|
|
148
190
|
target?: undefined;
|
|
@@ -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",
|
|
@@ -101,11 +113,34 @@ var executions_default = {
|
|
|
101
113
|
enum: "{{ExecutionStatusOptions}}"
|
|
102
114
|
}
|
|
103
115
|
},
|
|
116
|
+
{
|
|
117
|
+
type: "string",
|
|
118
|
+
name: "reason",
|
|
119
|
+
uiSchema: {
|
|
120
|
+
title: `{{t("Reason", { ns: "${import_constants.NAMESPACE}" })}}`,
|
|
121
|
+
type: "string",
|
|
122
|
+
"x-component": "Select",
|
|
123
|
+
"x-decorator": "FormItem",
|
|
124
|
+
enum: "{{ExecutionReasonOptions}}"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
104
127
|
{
|
|
105
128
|
type: "boolean",
|
|
106
129
|
name: "dispatched",
|
|
107
130
|
defaultValue: false
|
|
108
131
|
},
|
|
132
|
+
{
|
|
133
|
+
type: "bigInt",
|
|
134
|
+
name: "parentExecutionId",
|
|
135
|
+
interface: "id",
|
|
136
|
+
uiSchema: {
|
|
137
|
+
type: "number",
|
|
138
|
+
title: `{{t("Parent execution ID", { ns: "${import_constants.NAMESPACE}" })}}`,
|
|
139
|
+
"x-component": "InputNumber",
|
|
140
|
+
"x-component-props": {},
|
|
141
|
+
"x-read-pretty": true
|
|
142
|
+
}
|
|
143
|
+
},
|
|
109
144
|
{
|
|
110
145
|
type: "json",
|
|
111
146
|
name: "stack"
|
|
@@ -114,6 +149,28 @@ var executions_default = {
|
|
|
114
149
|
type: "json",
|
|
115
150
|
name: "output"
|
|
116
151
|
},
|
|
152
|
+
{
|
|
153
|
+
type: "datetime",
|
|
154
|
+
name: "startedAt",
|
|
155
|
+
uiSchema: {
|
|
156
|
+
type: "datetime",
|
|
157
|
+
title: `{{t("Started at", { ns: "${import_constants.NAMESPACE}" })}}`,
|
|
158
|
+
"x-component": "DatePicker",
|
|
159
|
+
"x-component-props": {},
|
|
160
|
+
"x-read-pretty": true
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
type: "datetime",
|
|
165
|
+
name: "expiresAt",
|
|
166
|
+
uiSchema: {
|
|
167
|
+
type: "datetime",
|
|
168
|
+
title: `{{t("Expires at", { ns: "${import_constants.NAMESPACE}" })}}`,
|
|
169
|
+
"x-component": "DatePicker",
|
|
170
|
+
"x-component-props": {},
|
|
171
|
+
"x-read-pretty": true
|
|
172
|
+
}
|
|
173
|
+
},
|
|
117
174
|
{
|
|
118
175
|
type: "datetime",
|
|
119
176
|
name: "createdAt",
|
|
@@ -139,5 +196,9 @@ var executions_default = {
|
|
|
139
196
|
}
|
|
140
197
|
}
|
|
141
198
|
],
|
|
142
|
-
indexes: [
|
|
199
|
+
indexes: [
|
|
200
|
+
{ fields: ["dispatched", "id"] },
|
|
201
|
+
{ fields: ["status", "expiresAt"] },
|
|
202
|
+
{ fields: ["parentExecutionId", "status"] }
|
|
203
|
+
]
|
|
143
204
|
};
|
|
@@ -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;
|
|
@@ -156,7 +173,9 @@ declare const _default: {
|
|
|
156
173
|
type: string;
|
|
157
174
|
name: string;
|
|
158
175
|
required: boolean;
|
|
159
|
-
defaultValue: {
|
|
176
|
+
defaultValue: {
|
|
177
|
+
timeout?: undefined;
|
|
178
|
+
};
|
|
160
179
|
primaryKey?: undefined;
|
|
161
180
|
allowNull?: undefined;
|
|
162
181
|
interface?: undefined;
|
|
@@ -215,9 +234,9 @@ declare const _default: {
|
|
|
215
234
|
color: string;
|
|
216
235
|
}[];
|
|
217
236
|
required: boolean;
|
|
218
|
-
default?: undefined;
|
|
219
237
|
'x-component-props'?: undefined;
|
|
220
238
|
'x-read-pretty'?: undefined;
|
|
239
|
+
default?: undefined;
|
|
221
240
|
};
|
|
222
241
|
primaryKey?: undefined;
|
|
223
242
|
allowNull?: undefined;
|
|
@@ -248,7 +267,9 @@ declare const _default: {
|
|
|
248
267
|
} | {
|
|
249
268
|
type: string;
|
|
250
269
|
name: string;
|
|
251
|
-
defaultValue: {
|
|
270
|
+
defaultValue: {
|
|
271
|
+
timeout: number;
|
|
272
|
+
};
|
|
252
273
|
primaryKey?: undefined;
|
|
253
274
|
allowNull?: undefined;
|
|
254
275
|
interface?: undefined;
|
|
@@ -310,6 +331,39 @@ declare const _default: {
|
|
|
310
331
|
defaultValue?: undefined;
|
|
311
332
|
required?: undefined;
|
|
312
333
|
onDelete?: undefined;
|
|
334
|
+
} | {
|
|
335
|
+
type: string;
|
|
336
|
+
name: string;
|
|
337
|
+
target: string;
|
|
338
|
+
foreignKey: string;
|
|
339
|
+
interface: string;
|
|
340
|
+
uiSchema: {
|
|
341
|
+
type: string;
|
|
342
|
+
title: string;
|
|
343
|
+
'x-component': string;
|
|
344
|
+
'x-component-props': {
|
|
345
|
+
fieldNames: {
|
|
346
|
+
label: string;
|
|
347
|
+
value: string;
|
|
348
|
+
color?: undefined;
|
|
349
|
+
};
|
|
350
|
+
multiple?: undefined;
|
|
351
|
+
mode?: undefined;
|
|
352
|
+
};
|
|
353
|
+
'x-read-pretty'?: undefined;
|
|
354
|
+
required?: undefined;
|
|
355
|
+
enum?: undefined;
|
|
356
|
+
default?: undefined;
|
|
357
|
+
};
|
|
358
|
+
primaryKey?: undefined;
|
|
359
|
+
allowNull?: undefined;
|
|
360
|
+
defaultValue?: undefined;
|
|
361
|
+
required?: undefined;
|
|
362
|
+
onDelete?: undefined;
|
|
363
|
+
sourceKey?: undefined;
|
|
364
|
+
constraints?: undefined;
|
|
365
|
+
through?: undefined;
|
|
366
|
+
otherKey?: undefined;
|
|
313
367
|
})[];
|
|
314
368
|
indexes: {
|
|
315
369
|
unique: boolean;
|