@nocobase/plugin-workflow 1.9.0-beta.8 → 2.0.0-alpha.2

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.
Files changed (37) hide show
  1. package/dist/client/{9e124936e3877c66.js → 27bd65abee87cafa.js} +1 -1
  2. package/dist/client/4985975bcaea35eb.js +10 -0
  3. package/dist/client/91bf4b18d5aad6a7.js +10 -0
  4. package/dist/client/components/TriggerWorkflowSelect.d.ts +10 -0
  5. package/dist/client/components/index.d.ts +1 -0
  6. package/dist/client/{2a8332e23037d42f.js → f68fbc145c3ddec3.js} +1 -1
  7. package/dist/client/flows/triggerWorkflows.d.ts +120 -0
  8. package/dist/client/index.d.ts +1 -0
  9. package/dist/client/index.js +1 -1
  10. package/dist/client/schemas/executions.d.ts +8 -8
  11. package/dist/client/triggers/index.d.ts +1 -1
  12. package/dist/common/collections/executions.d.ts +8 -8
  13. package/dist/common/collections/executions.js +2 -2
  14. package/dist/common/collections/flow_nodes.d.ts +21 -0
  15. package/dist/common/collections/flow_nodes.js +6 -0
  16. package/dist/common/collections/userWorkflowTasks.d.ts +13 -0
  17. package/dist/common/collections/userWorkflowTasks.js +6 -0
  18. package/dist/common/collections/workflowCategories.d.ts +21 -0
  19. package/dist/common/collections/workflowCategories.js +6 -0
  20. package/dist/common/collections/workflows.d.ts +42 -0
  21. package/dist/common/collections/workflows.js +6 -0
  22. package/dist/externalVersion.js +16 -16
  23. package/dist/node_modules/cron-parser/package.json +1 -1
  24. package/dist/node_modules/lru-cache/package.json +1 -1
  25. package/dist/node_modules/nodejs-snowflake/package.json +1 -1
  26. package/dist/server/Dispatcher.d.ts +47 -1
  27. package/dist/server/Dispatcher.js +368 -1
  28. package/dist/server/Plugin.d.ts +4 -24
  29. package/dist/server/Plugin.js +16 -316
  30. package/dist/server/index.d.ts +2 -1
  31. package/dist/server/index.js +0 -2
  32. package/dist/server/triggers/CollectionTrigger.d.ts +1 -1
  33. package/dist/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.d.ts +5 -5
  34. package/dist/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.js +33 -13
  35. package/package.json +16 -16
  36. package/dist/client/3b0762a72796b5f8.js +0 -10
  37. package/dist/client/48fc0fadf459229d.js +0 -10
@@ -40,7 +40,7 @@ export declare const executionSchema: {
40
40
  enum?: undefined;
41
41
  };
42
42
  primaryKey: boolean;
43
- autoIncrement: boolean;
43
+ allowNull: boolean;
44
44
  target?: undefined;
45
45
  foreignKey?: undefined;
46
46
  unique?: undefined;
@@ -67,7 +67,7 @@ export declare const executionSchema: {
67
67
  enum?: undefined;
68
68
  };
69
69
  primaryKey?: undefined;
70
- autoIncrement?: undefined;
70
+ allowNull?: undefined;
71
71
  unique?: undefined;
72
72
  onDelete?: undefined;
73
73
  defaultValue?: undefined;
@@ -77,7 +77,7 @@ export declare const executionSchema: {
77
77
  interface?: undefined;
78
78
  uiSchema?: undefined;
79
79
  primaryKey?: undefined;
80
- autoIncrement?: undefined;
80
+ allowNull?: undefined;
81
81
  target?: undefined;
82
82
  foreignKey?: undefined;
83
83
  unique?: undefined;
@@ -90,7 +90,7 @@ export declare const executionSchema: {
90
90
  interface?: undefined;
91
91
  uiSchema?: undefined;
92
92
  primaryKey?: undefined;
93
- autoIncrement?: undefined;
93
+ allowNull?: undefined;
94
94
  target?: undefined;
95
95
  foreignKey?: undefined;
96
96
  onDelete?: undefined;
@@ -102,7 +102,7 @@ export declare const executionSchema: {
102
102
  interface?: undefined;
103
103
  uiSchema?: undefined;
104
104
  primaryKey?: undefined;
105
- autoIncrement?: undefined;
105
+ allowNull?: undefined;
106
106
  target?: undefined;
107
107
  foreignKey?: undefined;
108
108
  unique?: undefined;
@@ -121,7 +121,7 @@ export declare const executionSchema: {
121
121
  'x-read-pretty'?: undefined;
122
122
  };
123
123
  primaryKey?: undefined;
124
- autoIncrement?: undefined;
124
+ allowNull?: undefined;
125
125
  target?: undefined;
126
126
  foreignKey?: undefined;
127
127
  unique?: undefined;
@@ -134,7 +134,7 @@ export declare const executionSchema: {
134
134
  interface?: undefined;
135
135
  uiSchema?: undefined;
136
136
  primaryKey?: undefined;
137
- autoIncrement?: undefined;
137
+ allowNull?: undefined;
138
138
  target?: undefined;
139
139
  foreignKey?: undefined;
140
140
  unique?: undefined;
@@ -155,7 +155,7 @@ export declare const executionSchema: {
155
155
  enum?: undefined;
156
156
  };
157
157
  primaryKey?: undefined;
158
- autoIncrement?: undefined;
158
+ allowNull?: undefined;
159
159
  target?: undefined;
160
160
  foreignKey?: undefined;
161
161
  unique?: undefined;
@@ -27,7 +27,7 @@ export declare abstract class Trigger {
27
27
  };
28
28
  useInitializers?(config: any): SchemaInitializerItemType | null;
29
29
  initializers?: any;
30
- isActionTriggerable?: boolean | ((config: object, context?: object) => boolean);
30
+ isActionTriggerable_deprecated?: boolean | ((config: object, context?: object) => boolean);
31
31
  }
32
32
  export declare const TriggerConfig: () => React.JSX.Element;
33
33
  /**
@@ -29,7 +29,7 @@ declare const _default: {
29
29
  enum?: undefined;
30
30
  };
31
31
  primaryKey: boolean;
32
- autoIncrement: boolean;
32
+ allowNull: boolean;
33
33
  target?: undefined;
34
34
  foreignKey?: undefined;
35
35
  unique?: undefined;
@@ -56,7 +56,7 @@ declare const _default: {
56
56
  enum?: undefined;
57
57
  };
58
58
  primaryKey?: undefined;
59
- autoIncrement?: undefined;
59
+ allowNull?: undefined;
60
60
  unique?: undefined;
61
61
  onDelete?: undefined;
62
62
  defaultValue?: undefined;
@@ -66,7 +66,7 @@ declare const _default: {
66
66
  interface?: undefined;
67
67
  uiSchema?: undefined;
68
68
  primaryKey?: undefined;
69
- autoIncrement?: undefined;
69
+ allowNull?: undefined;
70
70
  target?: undefined;
71
71
  foreignKey?: undefined;
72
72
  unique?: undefined;
@@ -79,7 +79,7 @@ declare const _default: {
79
79
  interface?: undefined;
80
80
  uiSchema?: undefined;
81
81
  primaryKey?: undefined;
82
- autoIncrement?: undefined;
82
+ allowNull?: undefined;
83
83
  target?: undefined;
84
84
  foreignKey?: undefined;
85
85
  onDelete?: undefined;
@@ -91,7 +91,7 @@ declare const _default: {
91
91
  interface?: undefined;
92
92
  uiSchema?: undefined;
93
93
  primaryKey?: undefined;
94
- autoIncrement?: undefined;
94
+ allowNull?: undefined;
95
95
  target?: undefined;
96
96
  foreignKey?: undefined;
97
97
  unique?: undefined;
@@ -110,7 +110,7 @@ declare const _default: {
110
110
  'x-read-pretty'?: undefined;
111
111
  };
112
112
  primaryKey?: undefined;
113
- autoIncrement?: undefined;
113
+ allowNull?: undefined;
114
114
  target?: undefined;
115
115
  foreignKey?: undefined;
116
116
  unique?: undefined;
@@ -123,7 +123,7 @@ declare const _default: {
123
123
  interface?: undefined;
124
124
  uiSchema?: undefined;
125
125
  primaryKey?: undefined;
126
- autoIncrement?: undefined;
126
+ allowNull?: undefined;
127
127
  target?: undefined;
128
128
  foreignKey?: undefined;
129
129
  unique?: undefined;
@@ -144,7 +144,7 @@ declare const _default: {
144
144
  enum?: undefined;
145
145
  };
146
146
  primaryKey?: undefined;
147
- autoIncrement?: undefined;
147
+ allowNull?: undefined;
148
148
  target?: undefined;
149
149
  foreignKey?: undefined;
150
150
  unique?: undefined;
@@ -39,7 +39,7 @@ var executions_default = {
39
39
  shared: true,
40
40
  fields: [
41
41
  {
42
- type: "bigInt",
42
+ type: "snowflakeId",
43
43
  name: "id",
44
44
  interface: "id",
45
45
  uiSchema: {
@@ -50,7 +50,7 @@ var executions_default = {
50
50
  "x-read-pretty": true
51
51
  },
52
52
  primaryKey: true,
53
- autoIncrement: true
53
+ allowNull: false
54
54
  },
55
55
  {
56
56
  type: "belongsTo",
@@ -12,8 +12,21 @@ declare const _default: {
12
12
  name: string;
13
13
  shared: boolean;
14
14
  fields: ({
15
+ name: string;
16
+ type: string;
17
+ primaryKey: boolean;
18
+ allowNull: boolean;
19
+ interface?: undefined;
20
+ uiSchema?: undefined;
21
+ target?: undefined;
22
+ sourceKey?: undefined;
23
+ foreignKey?: undefined;
24
+ defaultValue?: undefined;
25
+ } | {
15
26
  type: string;
16
27
  name: string;
28
+ primaryKey?: undefined;
29
+ allowNull?: undefined;
17
30
  interface?: undefined;
18
31
  uiSchema?: undefined;
19
32
  target?: undefined;
@@ -29,6 +42,8 @@ declare const _default: {
29
42
  title: string;
30
43
  'x-component': string;
31
44
  };
45
+ primaryKey?: undefined;
46
+ allowNull?: undefined;
32
47
  target?: undefined;
33
48
  sourceKey?: undefined;
34
49
  foreignKey?: undefined;
@@ -37,6 +52,8 @@ declare const _default: {
37
52
  name: string;
38
53
  type: string;
39
54
  target: string;
55
+ primaryKey?: undefined;
56
+ allowNull?: undefined;
40
57
  interface?: undefined;
41
58
  uiSchema?: undefined;
42
59
  sourceKey?: undefined;
@@ -48,6 +65,8 @@ declare const _default: {
48
65
  target: string;
49
66
  sourceKey: string;
50
67
  foreignKey: string;
68
+ primaryKey?: undefined;
69
+ allowNull?: undefined;
51
70
  interface?: undefined;
52
71
  uiSchema?: undefined;
53
72
  defaultValue?: undefined;
@@ -55,6 +74,8 @@ declare const _default: {
55
74
  type: string;
56
75
  name: string;
57
76
  defaultValue: {};
77
+ primaryKey?: undefined;
78
+ allowNull?: undefined;
58
79
  interface?: undefined;
59
80
  uiSchema?: undefined;
60
81
  target?: undefined;
@@ -35,6 +35,12 @@ var flow_nodes_default = {
35
35
  name: "flow_nodes",
36
36
  shared: true,
37
37
  fields: [
38
+ {
39
+ name: "id",
40
+ type: "snowflakeId",
41
+ primaryKey: true,
42
+ allowNull: false
43
+ },
38
44
  {
39
45
  type: "uid",
40
46
  name: "key"
@@ -16,17 +16,30 @@ declare const _default: {
16
16
  fields: ({
17
17
  name: string;
18
18
  type: string;
19
+ primaryKey: boolean;
20
+ allowNull: boolean;
21
+ foreignKey?: undefined;
22
+ defaultValue?: undefined;
23
+ } | {
24
+ name: string;
25
+ type: string;
26
+ primaryKey?: undefined;
27
+ allowNull?: undefined;
19
28
  foreignKey?: undefined;
20
29
  defaultValue?: undefined;
21
30
  } | {
22
31
  name: string;
23
32
  type: string;
24
33
  foreignKey: string;
34
+ primaryKey?: undefined;
35
+ allowNull?: undefined;
25
36
  defaultValue?: undefined;
26
37
  } | {
27
38
  type: string;
28
39
  name: string;
29
40
  defaultValue: {};
41
+ primaryKey?: undefined;
42
+ allowNull?: undefined;
30
43
  foreignKey?: undefined;
31
44
  })[];
32
45
  indexes: {
@@ -37,6 +37,12 @@ var userWorkflowTasks_default = {
37
37
  name: "userWorkflowTasks",
38
38
  shared: true,
39
39
  fields: [
40
+ {
41
+ name: "id",
42
+ type: "snowflakeId",
43
+ primaryKey: true,
44
+ allowNull: false
45
+ },
40
46
  {
41
47
  name: "userId",
42
48
  type: "bigInt"
@@ -12,6 +12,19 @@ declare const _default: {
12
12
  name: string;
13
13
  shared: boolean;
14
14
  fields: ({
15
+ name: string;
16
+ type: string;
17
+ primaryKey: boolean;
18
+ allowNull: boolean;
19
+ interface?: undefined;
20
+ uiSchema?: undefined;
21
+ defaultValue?: undefined;
22
+ target?: undefined;
23
+ foreignKey?: undefined;
24
+ otherKey?: undefined;
25
+ targetKey?: undefined;
26
+ through?: undefined;
27
+ } | {
15
28
  type: string;
16
29
  name: string;
17
30
  interface: string;
@@ -21,6 +34,8 @@ declare const _default: {
21
34
  'x-component': string;
22
35
  required: boolean;
23
36
  };
37
+ primaryKey?: undefined;
38
+ allowNull?: undefined;
24
39
  defaultValue?: undefined;
25
40
  target?: undefined;
26
41
  foreignKey?: undefined;
@@ -31,6 +46,8 @@ declare const _default: {
31
46
  type: string;
32
47
  name: string;
33
48
  defaultValue: string;
49
+ primaryKey?: undefined;
50
+ allowNull?: undefined;
34
51
  interface?: undefined;
35
52
  uiSchema?: undefined;
36
53
  target?: undefined;
@@ -46,12 +63,16 @@ declare const _default: {
46
63
  otherKey: string;
47
64
  targetKey: string;
48
65
  through: string;
66
+ primaryKey?: undefined;
67
+ allowNull?: undefined;
49
68
  interface?: undefined;
50
69
  uiSchema?: undefined;
51
70
  defaultValue?: undefined;
52
71
  } | {
53
72
  type: string;
54
73
  name: string;
74
+ primaryKey?: undefined;
75
+ allowNull?: undefined;
55
76
  interface?: undefined;
56
77
  uiSchema?: undefined;
57
78
  defaultValue?: undefined;
@@ -35,6 +35,12 @@ var workflowCategories_default = {
35
35
  name: "workflowCategories",
36
36
  shared: true,
37
37
  fields: [
38
+ {
39
+ name: "id",
40
+ type: "snowflakeId",
41
+ primaryKey: true,
42
+ allowNull: false
43
+ },
38
44
  {
39
45
  type: "string",
40
46
  name: "title",
@@ -15,6 +15,24 @@ declare const _default: {
15
15
  fields: ({
16
16
  name: string;
17
17
  type: string;
18
+ primaryKey: boolean;
19
+ allowNull: boolean;
20
+ interface?: undefined;
21
+ uiSchema?: undefined;
22
+ defaultValue?: undefined;
23
+ required?: undefined;
24
+ target?: undefined;
25
+ onDelete?: undefined;
26
+ foreignKey?: undefined;
27
+ sourceKey?: undefined;
28
+ constraints?: undefined;
29
+ through?: undefined;
30
+ otherKey?: undefined;
31
+ } | {
32
+ name: string;
33
+ type: string;
34
+ primaryKey?: undefined;
35
+ allowNull?: undefined;
18
36
  interface?: undefined;
19
37
  uiSchema?: undefined;
20
38
  defaultValue?: undefined;
@@ -40,6 +58,8 @@ declare const _default: {
40
58
  'x-component-props'?: undefined;
41
59
  'x-read-pretty'?: undefined;
42
60
  };
61
+ primaryKey?: undefined;
62
+ allowNull?: undefined;
43
63
  defaultValue?: undefined;
44
64
  required?: undefined;
45
65
  target?: undefined;
@@ -72,6 +92,8 @@ declare const _default: {
72
92
  'x-component-props'?: undefined;
73
93
  'x-read-pretty'?: undefined;
74
94
  };
95
+ primaryKey?: undefined;
96
+ allowNull?: undefined;
75
97
  required?: undefined;
76
98
  target?: undefined;
77
99
  onDelete?: undefined;
@@ -94,6 +116,8 @@ declare const _default: {
94
116
  'x-component-props'?: undefined;
95
117
  'x-read-pretty'?: undefined;
96
118
  };
119
+ primaryKey?: undefined;
120
+ allowNull?: undefined;
97
121
  defaultValue?: undefined;
98
122
  required?: undefined;
99
123
  target?: undefined;
@@ -118,6 +142,8 @@ declare const _default: {
118
142
  'x-component-props'?: undefined;
119
143
  'x-read-pretty'?: undefined;
120
144
  };
145
+ primaryKey?: undefined;
146
+ allowNull?: undefined;
121
147
  defaultValue?: undefined;
122
148
  target?: undefined;
123
149
  onDelete?: undefined;
@@ -131,6 +157,8 @@ declare const _default: {
131
157
  name: string;
132
158
  required: boolean;
133
159
  defaultValue: {};
160
+ primaryKey?: undefined;
161
+ allowNull?: undefined;
134
162
  interface?: undefined;
135
163
  uiSchema?: undefined;
136
164
  target?: undefined;
@@ -145,6 +173,8 @@ declare const _default: {
145
173
  name: string;
146
174
  target: string;
147
175
  onDelete: string;
176
+ primaryKey?: undefined;
177
+ allowNull?: undefined;
148
178
  interface?: undefined;
149
179
  uiSchema?: undefined;
150
180
  defaultValue?: undefined;
@@ -158,6 +188,8 @@ declare const _default: {
158
188
  type: string;
159
189
  name: string;
160
190
  defaultValue: number;
191
+ primaryKey?: undefined;
192
+ allowNull?: undefined;
161
193
  interface?: undefined;
162
194
  uiSchema?: undefined;
163
195
  required?: undefined;
@@ -187,6 +219,8 @@ declare const _default: {
187
219
  'x-component-props'?: undefined;
188
220
  'x-read-pretty'?: undefined;
189
221
  };
222
+ primaryKey?: undefined;
223
+ allowNull?: undefined;
190
224
  required?: undefined;
191
225
  target?: undefined;
192
226
  onDelete?: undefined;
@@ -203,6 +237,8 @@ declare const _default: {
203
237
  sourceKey: string;
204
238
  constraints: boolean;
205
239
  onDelete: string;
240
+ primaryKey?: undefined;
241
+ allowNull?: undefined;
206
242
  interface?: undefined;
207
243
  uiSchema?: undefined;
208
244
  defaultValue?: undefined;
@@ -213,6 +249,8 @@ declare const _default: {
213
249
  type: string;
214
250
  name: string;
215
251
  defaultValue: {};
252
+ primaryKey?: undefined;
253
+ allowNull?: undefined;
216
254
  interface?: undefined;
217
255
  uiSchema?: undefined;
218
256
  required?: undefined;
@@ -230,6 +268,8 @@ declare const _default: {
230
268
  foreignKey: string;
231
269
  sourceKey: string;
232
270
  constraints: boolean;
271
+ primaryKey?: undefined;
272
+ allowNull?: undefined;
233
273
  interface?: undefined;
234
274
  uiSchema?: undefined;
235
275
  defaultValue?: undefined;
@@ -265,6 +305,8 @@ declare const _default: {
265
305
  enum?: undefined;
266
306
  default?: undefined;
267
307
  };
308
+ primaryKey?: undefined;
309
+ allowNull?: undefined;
268
310
  defaultValue?: undefined;
269
311
  required?: undefined;
270
312
  onDelete?: undefined;
@@ -37,6 +37,12 @@ var workflows_default = {
37
37
  shared: true,
38
38
  repository: "WorkflowRepository",
39
39
  fields: [
40
+ {
41
+ name: "id",
42
+ type: "snowflakeId",
43
+ primaryKey: true,
44
+ allowNull: false
45
+ },
40
46
  {
41
47
  name: "key",
42
48
  type: "uid"
@@ -9,28 +9,28 @@
9
9
 
10
10
  module.exports = {
11
11
  "react": "18.2.0",
12
- "@formily/core": "2.3.0",
13
- "@formily/react": "2.3.0",
14
- "@nocobase/client": "1.9.0-beta.8",
15
- "@nocobase/utils": "1.9.0-beta.8",
12
+ "@formily/core": "2.3.7",
13
+ "@formily/react": "2.3.7",
14
+ "@nocobase/client": "2.0.0-alpha.2",
15
+ "@nocobase/utils": "2.0.0-alpha.2",
16
16
  "antd": "5.24.2",
17
17
  "@ant-design/icons": "5.6.1",
18
- "react-router-dom": "6.28.1",
18
+ "react-router-dom": "6.30.1",
19
19
  "react-i18next": "11.18.6",
20
20
  "lodash": "4.17.21",
21
21
  "@dnd-kit/core": "6.1.0",
22
- "@formily/shared": "2.3.2",
23
- "@nocobase/plugin-mobile": "1.9.0-beta.8",
22
+ "@formily/shared": "2.3.7",
23
+ "@nocobase/plugin-mobile": "2.0.0-alpha.2",
24
24
  "sequelize": "6.35.2",
25
- "@nocobase/database": "1.9.0-beta.8",
26
- "@nocobase/server": "1.9.0-beta.8",
27
- "@nocobase/data-source-manager": "1.9.0-beta.8",
28
- "@nocobase/logger": "1.9.0-beta.8",
29
- "@nocobase/evaluators": "1.9.0-beta.8",
25
+ "@nocobase/database": "2.0.0-alpha.2",
26
+ "@nocobase/server": "2.0.0-alpha.2",
27
+ "@nocobase/data-source-manager": "2.0.0-alpha.2",
28
+ "@nocobase/logger": "2.0.0-alpha.2",
29
+ "@nocobase/evaluators": "2.0.0-alpha.2",
30
30
  "@formily/antd-v5": "1.2.3",
31
- "@formily/reactive": "2.3.0",
32
- "@nocobase/actions": "1.9.0-beta.8",
31
+ "@formily/reactive": "2.3.7",
32
+ "@nocobase/actions": "2.0.0-alpha.2",
33
33
  "dayjs": "1.11.13",
34
- "@nocobase/plugin-workflow-test": "1.9.0-beta.8",
35
- "@nocobase/test": "1.9.0-beta.8"
34
+ "@nocobase/plugin-workflow-test": "2.0.0-alpha.2",
35
+ "@nocobase/test": "2.0.0-alpha.2"
36
36
  };
@@ -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":"2025-09-20T15:40:04.967Z"}
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":"2025-09-30T13:22:03.535Z"}
@@ -1 +1 @@
1
- {"name":"lru-cache","description":"A cache object that deletes the least-recently-used items.","version":"8.0.5","author":"Isaac Z. Schlueter <i@izs.me>","keywords":["mru","lru","cache"],"sideEffects":false,"scripts":{"build":"npm run prepare","preprepare":"rm -rf dist","prepare":"tsc -p tsconfig.json && tsc -p tsconfig-esm.json","postprepare":"bash fixup.sh","pretest":"npm run prepare","presnap":"npm run prepare","test":"c8 tap","snap":"c8 tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","format":"prettier --write .","typedoc":"typedoc --tsconfig tsconfig-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"},"main":"./dist/cjs/index-cjs.js","module":"./dist/mjs/index.js","types":"./dist/mjs/index.d.ts","exports":{"./min":{"import":{"types":"./dist/mjs/index.d.ts","default":"./dist/mjs/index.min.js"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.min.js"}},".":{"import":{"types":"./dist/mjs/index.d.ts","default":"./dist/mjs/index.js"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index-cjs.js"}}},"repository":"git://github.com/isaacs/node-lru-cache.git","devDependencies":{"@size-limit/preset-small-lib":"^7.0.8","@types/node":"^17.0.31","@types/tap":"^15.0.6","benchmark":"^2.1.4","c8":"^7.11.2","clock-mock":"^1.0.6","esbuild":"^0.17.11","eslint-config-prettier":"^8.5.0","marked":"^4.2.12","mkdirp":"^2.1.5","prettier":"^2.6.2","size-limit":"^7.0.8","tap":"^16.3.4","ts-node":"^10.7.0","tslib":"^2.4.0","typedoc":"^0.23.24","typescript":"^4.6.4"},"license":"ISC","files":["dist"],"engines":{"node":">=16.14"},"prettier":{"semi":false,"printWidth":70,"tabWidth":2,"useTabs":false,"singleQuote":true,"jsxSingleQuote":false,"bracketSameLine":true,"arrowParens":"avoid","endOfLine":"lf"},"tap":{"coverage":false,"node-arg":["--expose-gc","--no-warnings","--loader","ts-node/esm"],"ts":false},"size-limit":[{"path":"./dist/mjs/index.js"}],"_lastModified":"2025-09-20T15:40:04.614Z"}
1
+ {"name":"lru-cache","description":"A cache object that deletes the least-recently-used items.","version":"8.0.5","author":"Isaac Z. Schlueter <i@izs.me>","keywords":["mru","lru","cache"],"sideEffects":false,"scripts":{"build":"npm run prepare","preprepare":"rm -rf dist","prepare":"tsc -p tsconfig.json && tsc -p tsconfig-esm.json","postprepare":"bash fixup.sh","pretest":"npm run prepare","presnap":"npm run prepare","test":"c8 tap","snap":"c8 tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","format":"prettier --write .","typedoc":"typedoc --tsconfig tsconfig-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"},"main":"./dist/cjs/index-cjs.js","module":"./dist/mjs/index.js","types":"./dist/mjs/index.d.ts","exports":{"./min":{"import":{"types":"./dist/mjs/index.d.ts","default":"./dist/mjs/index.min.js"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.min.js"}},".":{"import":{"types":"./dist/mjs/index.d.ts","default":"./dist/mjs/index.js"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index-cjs.js"}}},"repository":"git://github.com/isaacs/node-lru-cache.git","devDependencies":{"@size-limit/preset-small-lib":"^7.0.8","@types/node":"^17.0.31","@types/tap":"^15.0.6","benchmark":"^2.1.4","c8":"^7.11.2","clock-mock":"^1.0.6","esbuild":"^0.17.11","eslint-config-prettier":"^8.5.0","marked":"^4.2.12","mkdirp":"^2.1.5","prettier":"^2.6.2","size-limit":"^7.0.8","tap":"^16.3.4","ts-node":"^10.7.0","tslib":"^2.4.0","typedoc":"^0.23.24","typescript":"^4.6.4"},"license":"ISC","files":["dist"],"engines":{"node":">=16.14"},"prettier":{"semi":false,"printWidth":70,"tabWidth":2,"useTabs":false,"singleQuote":true,"jsxSingleQuote":false,"bracketSameLine":true,"arrowParens":"avoid","endOfLine":"lf"},"tap":{"coverage":false,"node-arg":["--expose-gc","--no-warnings","--loader","ts-node/esm"],"ts":false},"size-limit":[{"path":"./dist/mjs/index.js"}],"_lastModified":"2025-09-30T13:22:03.146Z"}
@@ -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":"2025-09-20T15:40:04.134Z"}
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":"2025-09-30T13:22:02.929Z"}
@@ -6,6 +6,52 @@
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 { Transactionable } from 'sequelize';
10
+ import type { QueueEventOptions } from '@nocobase/server';
11
+ import Processor from './Processor';
12
+ import type { ExecutionModel, JobModel, WorkflowModel } from './types';
13
+ import type PluginWorkflowServer from './Plugin';
14
+ type Pending = {
15
+ execution: ExecutionModel;
16
+ job?: JobModel;
17
+ force?: boolean;
18
+ };
19
+ export type EventOptions = {
20
+ eventKey?: string;
21
+ context?: any;
22
+ deferred?: boolean;
23
+ manually?: boolean;
24
+ force?: boolean;
25
+ stack?: Array<number | string>;
26
+ onTriggerFail?: Function;
27
+ [key: string]: any;
28
+ } & Transactionable;
29
+ export declare const WORKER_JOB_WORKFLOW_PROCESS = "workflow:process";
9
30
  export default class Dispatcher {
10
- constructor();
31
+ private readonly plugin;
32
+ private ready;
33
+ private executing;
34
+ private pending;
35
+ private events;
36
+ private eventsCount;
37
+ get idle(): boolean;
38
+ constructor(plugin: PluginWorkflowServer);
39
+ readonly onQueueExecution: QueueEventOptions['process'];
40
+ setReady(ready: boolean): void;
41
+ isReady(): boolean;
42
+ getEventsCount(): number;
43
+ trigger(workflow: WorkflowModel, context: object, options?: EventOptions): void | Promise<Processor | null>;
44
+ resume(job: any): Promise<void>;
45
+ start(execution: ExecutionModel): Promise<void>;
46
+ beforeStop(): Promise<void>;
47
+ dispatch(): Promise<void>;
48
+ run(pending: Pending): Promise<void>;
49
+ private triggerSync;
50
+ private validateEvent;
51
+ private createExecution;
52
+ private prepare;
53
+ private acquirePendingExecution;
54
+ private acquireQueueingExecution;
55
+ private process;
11
56
  }
57
+ export {};