@nocobase/plugin-workflow-manual 2.2.32 → 2.2.33

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.
@@ -8,7 +8,7 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "2.2.32",
11
+ "@nocobase/client": "2.2.33",
12
12
  "react": "18.2.0",
13
13
  "react-router-dom": "6.30.1",
14
14
  "@formily/react": "2.3.7",
@@ -19,16 +19,16 @@ module.exports = {
19
19
  "dayjs": "1.11.13",
20
20
  "react-i18next": "11.18.6",
21
21
  "lodash": "4.18.1",
22
- "@nocobase/plugin-workflow": "2.2.32",
23
- "@nocobase/plugin-mobile": "2.2.32",
24
- "@nocobase/flow-engine": "2.2.32",
25
- "@nocobase/client-v2": "2.2.32",
26
- "@nocobase/utils": "2.2.32",
27
- "@nocobase/server": "2.2.32",
28
- "@nocobase/database": "2.2.32",
29
- "@nocobase/actions": "2.2.32",
30
- "@nocobase/test": "2.2.32",
31
- "@nocobase/plugin-workflow-test": "2.2.32",
22
+ "@nocobase/plugin-workflow": "2.2.33",
23
+ "@nocobase/plugin-mobile": "2.2.33",
24
+ "@nocobase/flow-engine": "2.2.33",
25
+ "@nocobase/client-v2": "2.2.33",
26
+ "@nocobase/utils": "2.2.33",
27
+ "@nocobase/server": "2.2.33",
28
+ "@nocobase/database": "2.2.33",
29
+ "@nocobase/actions": "2.2.33",
30
+ "@nocobase/test": "2.2.33",
31
+ "@nocobase/plugin-workflow-test": "2.2.33",
32
32
  "@formily/core": "2.3.7",
33
33
  "sequelize": "6.35.2"
34
34
  };
@@ -1 +1 @@
1
- {"name":"joi","description":"Object schema validation","version":"17.13.8","repository":"git://github.com/hapijs/joi","main":"lib/index.js","types":"lib/index.d.ts","browser":"dist/joi-browser.min.js","files":["lib/**/*","dist/*"],"keywords":["schema","validation"],"dependencies":{"@hapi/hoek":"^9.3.0","@hapi/topo":"^5.1.0","@sideway/address":"^4.1.5","@sideway/formula":"^3.0.1","@sideway/pinpoint":"^2.0.0"},"devDependencies":{"@hapi/bourne":"2.x.x","@hapi/code":"8.x.x","@hapi/joi-legacy-test":"npm:@hapi/joi@15.x.x","@hapi/lab":"^25.1.3","@types/node":"^14.18.63","typescript":"4.3.x"},"scripts":{"prepublishOnly":"cd browser && npm install && npm run build","test":"lab -t 100 -a @hapi/code -L -Y","test-cov-html":"lab -r html -o coverage.html -a @hapi/code"},"license":"BSD-3-Clause","_lastModified":"2026-10-25T06:49:44.221Z"}
1
+ {"name":"joi","description":"Object schema validation","version":"17.13.8","repository":"git://github.com/hapijs/joi","main":"lib/index.js","types":"lib/index.d.ts","browser":"dist/joi-browser.min.js","files":["lib/**/*","dist/*"],"keywords":["schema","validation"],"dependencies":{"@hapi/hoek":"^9.3.0","@hapi/topo":"^5.1.0","@sideway/address":"^4.1.5","@sideway/formula":"^3.0.1","@sideway/pinpoint":"^2.0.0"},"devDependencies":{"@hapi/bourne":"2.x.x","@hapi/code":"8.x.x","@hapi/joi-legacy-test":"npm:@hapi/joi@15.x.x","@hapi/lab":"^25.1.3","@types/node":"^14.18.63","typescript":"4.3.x"},"scripts":{"prepublishOnly":"cd browser && npm install && npm run build","test":"lab -t 100 -a @hapi/code -L -Y","test-cov-html":"lab -r html -o coverage.html -a @hapi/code"},"license":"BSD-3-Clause","_lastModified":"2026-10-25T12:53:22.801Z"}
@@ -8,4 +8,5 @@
8
8
  */
9
9
  import { Context } from '@nocobase/actions';
10
10
  export declare function submit(context: Context, next: any): Promise<never>;
11
+ export declare function get(context: Context, next: any): Promise<void>;
11
12
  export declare function listMine(context: Context, next: any): Promise<void>;
@@ -36,6 +36,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
36
36
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
37
37
  var actions_exports = {};
38
38
  __export(actions_exports, {
39
+ get: () => get,
39
40
  listMine: () => listMine,
40
41
  submit: () => submit
41
42
  });
@@ -227,7 +228,15 @@ async function submit(context, next) {
227
228
  plugin.getLogger(task.execution.workflowId).info(`manual node (${task.nodeId}) action trigger execution (${task.execution.id}) to resume`);
228
229
  plugin.resume(task.job).catch(() => void 0);
229
230
  }
231
+ async function get(context, next) {
232
+ (0, import_plugin_workflow.sanitizeWorkflowTaskReadParams)(context);
233
+ context.action.mergeParams({
234
+ filter: { userId: context.state.currentUser.id }
235
+ });
236
+ return import_actions.default.get(context, next);
237
+ }
230
238
  async function listMine(context, next) {
239
+ (0, import_plugin_workflow.sanitizeWorkflowTaskReadParams)(context);
231
240
  context.action.mergeParams({
232
241
  filter: {
233
242
  $and: [
@@ -252,6 +261,7 @@ async function listMine(context, next) {
252
261
  }
253
262
  // Annotate the CommonJS export names for ESM import in node:
254
263
  0 && (module.exports = {
264
+ get,
255
265
  listMine,
256
266
  submit
257
267
  });
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "description": "Could be used for workflows which some of decisions are made by users.",
7
7
  "description.ru-RU": "Может использоваться в рабочих процессах, где какие-то решения принимаются пользователями.",
8
8
  "description.zh-CN": "用于人工控制部分决策的流程。",
9
- "version": "2.2.32",
9
+ "version": "2.2.33",
10
10
  "license": "Apache-2.0",
11
11
  "main": "./dist/server/index.js",
12
12
  "homepage": "https://docs.nocobase.com/handbook/workflow-manual",
@@ -37,7 +37,7 @@
37
37
  "@nocobase/test": "2.x",
38
38
  "@nocobase/utils": "2.x"
39
39
  },
40
- "gitHead": "04fa0d6f0fbc637f59a1c8a40a7ce038e13d267c",
40
+ "gitHead": "3d7743a6d841bb9370c3f969fe2c34ec84a7e712",
41
41
  "keywords": [
42
42
  "Workflow"
43
43
  ]