@nocobase/plugin-workflow-test 1.4.0-alpha.20241016035453 → 1.4.0-alpha.20241017164316

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,11 +8,11 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "1.4.0-alpha.20241016035453",
12
- "@nocobase/utils": "1.4.0-alpha.20241016035453",
11
+ "@nocobase/client": "1.4.0-alpha.20241017164316",
12
+ "@nocobase/utils": "1.4.0-alpha.20241017164316",
13
13
  "lodash": "4.17.21",
14
- "@nocobase/test": "1.4.0-alpha.20241016035453",
15
- "@nocobase/server": "1.4.0-alpha.20241016035453",
16
- "@nocobase/data-source-manager": "1.4.0-alpha.20241016035453",
17
- "@nocobase/database": "1.4.0-alpha.20241016035453"
14
+ "@nocobase/test": "1.4.0-alpha.20241017164316",
15
+ "@nocobase/server": "1.4.0-alpha.20241017164316",
16
+ "@nocobase/data-source-manager": "1.4.0-alpha.20241017164316",
17
+ "@nocobase/database": "1.4.0-alpha.20241017164316"
18
18
  };
@@ -14,6 +14,16 @@ declare const _default: {
14
14
  status: number;
15
15
  result: any;
16
16
  };
17
+ test(config?: {}): {
18
+ status: number;
19
+ result: any;
20
+ };
21
+ };
22
+ echoVariable: {
23
+ run({ id, config }: any, job: any, processor: any): {
24
+ status: number;
25
+ result: any;
26
+ };
17
27
  };
18
28
  error: {
19
29
  run(node: any, input: any, processor: any): never;
@@ -22,6 +32,9 @@ declare const _default: {
22
32
  run(node: any, input: any, processor: any): {
23
33
  status: number;
24
34
  };
35
+ test(): {
36
+ status: number;
37
+ };
25
38
  };
26
39
  prompt: {
27
40
  run(node: any, input: any, processor: any): {
@@ -37,6 +37,20 @@ var instructions_default = {
37
37
  status: 1,
38
38
  result: config.path == null ? result : import_utils.lodash.get(result, config.path)
39
39
  };
40
+ },
41
+ test(config = {}) {
42
+ return {
43
+ status: 1,
44
+ result: null
45
+ };
46
+ }
47
+ },
48
+ echoVariable: {
49
+ run({ id, config = {} }, job, processor) {
50
+ return {
51
+ status: 1,
52
+ result: config.variable ? processor.getParsedValue(config.variable, id) : null
53
+ };
40
54
  }
41
55
  },
42
56
  error: {
@@ -49,6 +63,11 @@ var instructions_default = {
49
63
  return {
50
64
  status: 0
51
65
  };
66
+ },
67
+ test() {
68
+ return {
69
+ status: 0
70
+ };
52
71
  }
53
72
  },
54
73
  prompt: {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@nocobase/plugin-workflow-test",
3
3
  "displayName": "Workflow: test kit",
4
4
  "displayName.zh-CN": "工作流:测试工具包",
5
- "version": "1.4.0-alpha.20241016035453",
5
+ "version": "1.4.0-alpha.20241017164316",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "dist/server/index.js",
8
8
  "types": "./dist/server/index.d.ts",
@@ -11,5 +11,5 @@
11
11
  "@nocobase/server": "1.x",
12
12
  "@nocobase/test": "1.x"
13
13
  },
14
- "gitHead": "250828f40ff03e942aff5afaa45b21d2f94703ee"
14
+ "gitHead": "1ea0ac380718e25f9e377ae00badbe50d0f2a0c5"
15
15
  }