@nocobase/plugin-workflow 2.1.0-beta.15 → 2.1.0-beta.16

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 (125) hide show
  1. package/dist/client/214.7e602cfe7a8251b8.js +10 -0
  2. package/dist/client/261.7722d7400942730e.js +10 -0
  3. package/dist/client/67.f904ef4520868b8a.js +10 -0
  4. package/dist/client/964.6251d37b35710747.js +10 -0
  5. package/dist/client/index.js +1 -1
  6. package/dist/client/nodes/create.d.ts +10 -0
  7. package/dist/client/nodes/destroy.d.ts +10 -0
  8. package/dist/client/nodes/index.d.ts +3 -0
  9. package/dist/client/nodes/query.d.ts +10 -0
  10. package/dist/client/nodes/update.d.ts +10 -0
  11. package/dist/client/triggers/collection.d.ts +14 -1
  12. package/dist/client/triggers/index.d.ts +4 -0
  13. package/dist/client/triggers/schedule/constants.d.ts +4 -0
  14. package/dist/client/triggers/schedule/index.d.ts +15 -0
  15. package/dist/common/collections/jobs.js +7 -0
  16. package/dist/externalVersion.js +12 -12
  17. package/dist/locale/zh-CN.json +1 -0
  18. package/dist/node_modules/cron-parser/lib/parser.js +1 -1
  19. package/dist/node_modules/cron-parser/package.json +1 -1
  20. package/dist/node_modules/joi/dist/joi-browser.min.js +1 -0
  21. package/dist/node_modules/joi/lib/annotate.js +175 -0
  22. package/dist/node_modules/joi/lib/base.js +1069 -0
  23. package/dist/node_modules/joi/lib/cache.js +143 -0
  24. package/dist/node_modules/joi/lib/common.js +216 -0
  25. package/dist/node_modules/joi/lib/compile.js +283 -0
  26. package/dist/node_modules/joi/lib/errors.js +271 -0
  27. package/dist/node_modules/joi/lib/extend.js +312 -0
  28. package/dist/node_modules/joi/lib/index.d.ts +2365 -0
  29. package/dist/node_modules/joi/lib/index.js +1 -0
  30. package/dist/node_modules/joi/lib/manifest.js +476 -0
  31. package/dist/node_modules/joi/lib/messages.js +178 -0
  32. package/dist/node_modules/joi/lib/modify.js +267 -0
  33. package/dist/node_modules/joi/lib/ref.js +414 -0
  34. package/dist/node_modules/joi/lib/schemas.js +302 -0
  35. package/dist/node_modules/joi/lib/state.js +166 -0
  36. package/dist/node_modules/joi/lib/template.js +463 -0
  37. package/dist/node_modules/joi/lib/trace.js +346 -0
  38. package/dist/node_modules/joi/lib/types/alternatives.js +364 -0
  39. package/dist/node_modules/joi/lib/types/any.js +174 -0
  40. package/dist/node_modules/joi/lib/types/array.js +809 -0
  41. package/dist/node_modules/joi/lib/types/binary.js +100 -0
  42. package/dist/node_modules/joi/lib/types/boolean.js +150 -0
  43. package/dist/node_modules/joi/lib/types/date.js +233 -0
  44. package/dist/node_modules/joi/lib/types/function.js +93 -0
  45. package/dist/node_modules/joi/lib/types/keys.js +1067 -0
  46. package/dist/node_modules/joi/lib/types/link.js +168 -0
  47. package/dist/node_modules/joi/lib/types/number.js +363 -0
  48. package/dist/node_modules/joi/lib/types/object.js +22 -0
  49. package/dist/node_modules/joi/lib/types/string.js +850 -0
  50. package/dist/node_modules/joi/lib/types/symbol.js +102 -0
  51. package/dist/node_modules/joi/lib/validator.js +750 -0
  52. package/dist/node_modules/joi/lib/values.js +263 -0
  53. package/dist/node_modules/joi/node_modules/@hapi/topo/lib/index.d.ts +60 -0
  54. package/dist/node_modules/joi/node_modules/@hapi/topo/lib/index.js +225 -0
  55. package/dist/node_modules/joi/node_modules/@hapi/topo/package.json +30 -0
  56. package/dist/node_modules/joi/package.json +1 -0
  57. package/dist/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +5 -0
  58. package/dist/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +10 -0
  59. package/dist/node_modules/lru-cache/dist/commonjs/index.d.ts +1381 -0
  60. package/dist/node_modules/lru-cache/dist/commonjs/index.js +1692 -0
  61. package/dist/node_modules/lru-cache/dist/commonjs/index.min.js +1 -0
  62. package/dist/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +5 -0
  63. package/dist/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
  64. package/dist/node_modules/lru-cache/dist/esm/browser/index.d.ts +1381 -0
  65. package/dist/node_modules/lru-cache/dist/{mjs → esm/browser}/index.js +537 -179
  66. package/dist/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
  67. package/dist/node_modules/lru-cache/dist/esm/diagnostics-channel.d.ts +5 -0
  68. package/dist/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
  69. package/dist/node_modules/lru-cache/dist/esm/index.d.ts +1381 -0
  70. package/dist/node_modules/lru-cache/dist/{cjs → esm}/index.js +538 -184
  71. package/dist/node_modules/lru-cache/dist/esm/index.min.js +2 -0
  72. package/dist/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +5 -0
  73. package/dist/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +7 -0
  74. package/dist/node_modules/lru-cache/dist/esm/node/index.d.ts +1381 -0
  75. package/dist/node_modules/lru-cache/dist/esm/node/index.js +1688 -0
  76. package/dist/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
  77. package/dist/node_modules/lru-cache/package.json +1 -1
  78. package/dist/node_modules/nodejs-snowflake/nodejs_snowflake.js +1 -1
  79. package/dist/node_modules/nodejs-snowflake/package.json +1 -1
  80. package/dist/server/Plugin.d.ts +1 -0
  81. package/dist/server/Plugin.js +28 -3
  82. package/dist/server/actions/nodes.d.ts +5 -0
  83. package/dist/server/actions/nodes.js +38 -5
  84. package/dist/server/actions/workflows.d.ts +6 -0
  85. package/dist/server/actions/workflows.js +38 -0
  86. package/dist/server/instructions/ConditionInstruction.d.ts +2 -0
  87. package/dist/server/instructions/ConditionInstruction.js +17 -0
  88. package/dist/server/instructions/CreateInstruction.d.ts +3 -0
  89. package/dist/server/instructions/CreateInstruction.js +25 -0
  90. package/dist/server/instructions/DestroyInstruction.d.ts +3 -0
  91. package/dist/server/instructions/DestroyInstruction.js +25 -0
  92. package/dist/server/instructions/EndInstruction.d.ts +2 -0
  93. package/dist/server/instructions/EndInstruction.js +4 -0
  94. package/dist/server/instructions/MultiConditionsInstruction.d.ts +2 -0
  95. package/dist/server/instructions/MultiConditionsInstruction.js +23 -0
  96. package/dist/server/instructions/OutputInstruction.d.ts +2 -0
  97. package/dist/server/instructions/OutputInstruction.js +14 -0
  98. package/dist/server/instructions/QueryInstruction.d.ts +3 -0
  99. package/dist/server/instructions/QueryInstruction.js +30 -0
  100. package/dist/server/instructions/UpdateInstruction.d.ts +3 -0
  101. package/dist/server/instructions/UpdateInstruction.js +27 -0
  102. package/dist/server/instructions/index.d.ts +6 -1
  103. package/dist/server/instructions/index.js +18 -0
  104. package/dist/server/triggers/CollectionTrigger.d.ts +3 -0
  105. package/dist/server/triggers/CollectionTrigger.js +28 -0
  106. package/dist/server/triggers/ScheduleTrigger/index.d.ts +3 -0
  107. package/dist/server/triggers/ScheduleTrigger/index.js +18 -3
  108. package/dist/server/triggers/index.d.ts +3 -0
  109. package/dist/server/triggers/index.js +18 -0
  110. package/dist/server/utils.d.ts +2 -0
  111. package/dist/server/utils.js +22 -2
  112. package/package.json +4 -3
  113. package/dist/client/10.54a0831f49cae121.js +0 -10
  114. package/dist/client/626.7d24ff2a47742f1b.js +0 -10
  115. package/dist/client/771.5e7be8b4d4ac579f.js +0 -10
  116. package/dist/client/781.d46db08dcfead1b0.js +0 -10
  117. package/dist/node_modules/lru-cache/LICENSE +0 -15
  118. package/dist/node_modules/lru-cache/dist/cjs/index-cjs.d.ts +0 -7
  119. package/dist/node_modules/lru-cache/dist/cjs/index-cjs.js +0 -1
  120. package/dist/node_modules/lru-cache/dist/cjs/index.d.ts +0 -807
  121. package/dist/node_modules/lru-cache/dist/cjs/index.min.js +0 -2
  122. package/dist/node_modules/lru-cache/dist/mjs/index.d.ts +0 -807
  123. package/dist/node_modules/lru-cache/dist/mjs/index.min.js +0 -2
  124. /package/dist/node_modules/lru-cache/dist/{cjs → commonjs}/package.json +0 -0
  125. /package/dist/node_modules/lru-cache/dist/{mjs → esm}/package.json +0 -0
@@ -0,0 +1,102 @@
1
+ 'use strict';
2
+
3
+ const Assert = require('@hapi/hoek/lib/assert');
4
+
5
+ const Any = require('./any');
6
+
7
+
8
+ const internals = {};
9
+
10
+
11
+ internals.Map = class extends Map {
12
+
13
+ slice() {
14
+
15
+ return new internals.Map(this);
16
+ }
17
+ };
18
+
19
+
20
+ module.exports = Any.extend({
21
+
22
+ type: 'symbol',
23
+
24
+ terms: {
25
+
26
+ map: { init: new internals.Map() }
27
+ },
28
+
29
+ coerce: {
30
+ method(value, { schema, error }) {
31
+
32
+ const lookup = schema.$_terms.map.get(value);
33
+ if (lookup) {
34
+ value = lookup;
35
+ }
36
+
37
+ if (!schema._flags.only ||
38
+ typeof value === 'symbol') {
39
+
40
+ return { value };
41
+ }
42
+
43
+ return { value, errors: error('symbol.map', { map: schema.$_terms.map }) };
44
+ }
45
+ },
46
+
47
+ validate(value, { error }) {
48
+
49
+ if (typeof value !== 'symbol') {
50
+ return { value, errors: error('symbol.base') };
51
+ }
52
+ },
53
+
54
+ rules: {
55
+ map: {
56
+ method(iterable) {
57
+
58
+ if (iterable &&
59
+ !iterable[Symbol.iterator] &&
60
+ typeof iterable === 'object') {
61
+
62
+ iterable = Object.entries(iterable);
63
+ }
64
+
65
+ Assert(iterable && iterable[Symbol.iterator], 'Iterable must be an iterable or object');
66
+
67
+ const obj = this.clone();
68
+
69
+ const symbols = [];
70
+ for (const entry of iterable) {
71
+ Assert(entry && entry[Symbol.iterator], 'Entry must be an iterable');
72
+ const [key, value] = entry;
73
+
74
+ Assert(typeof key !== 'object' && typeof key !== 'function' && typeof key !== 'symbol', 'Key must not be of type object, function, or Symbol');
75
+ Assert(typeof value === 'symbol', 'Value must be a Symbol');
76
+
77
+ obj.$_terms.map.set(key, value);
78
+ symbols.push(value);
79
+ }
80
+
81
+ return obj.valid(...symbols);
82
+ }
83
+ }
84
+ },
85
+
86
+ manifest: {
87
+
88
+ build(obj, desc) {
89
+
90
+ if (desc.map) {
91
+ obj = obj.map(desc.map);
92
+ }
93
+
94
+ return obj;
95
+ }
96
+ },
97
+
98
+ messages: {
99
+ 'symbol.base': '{{#label}} must be a symbol',
100
+ 'symbol.map': '{{#label}} must be one of {{#map}}'
101
+ }
102
+ });