@nocobase/plugin-workflow 0.13.0-alpha.4 → 0.13.0-alpha.6
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/dist/client/index.js +132 -9332
- package/dist/index.js +37 -16
- package/dist/locale/en-US.js +22 -4
- package/dist/locale/es-ES.js +22 -4
- package/dist/locale/fr-FR.js +22 -4
- package/dist/locale/ja-JP.js +22 -4
- package/dist/locale/pt-BR.js +22 -4
- package/dist/locale/ru-RU.js +22 -4
- package/dist/locale/tr-TR.js +22 -4
- package/dist/locale/zh-CN.js +22 -4
- 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/lru-cache/index-cjs.js +1 -1
- package/dist/node_modules/lru-cache/package.json +1 -1
- package/dist/server/Plugin.js +70 -55
- package/dist/server/Processor.js +42 -25
- package/dist/server/actions/executions.js +41 -14
- package/dist/server/actions/index.js +39 -34
- package/dist/server/actions/nodes.js +48 -28
- package/dist/server/actions/workflows.js +50 -20
- package/dist/server/collections/executions.js +22 -4
- package/dist/server/collections/flow_nodes.js +22 -4
- package/dist/server/collections/jobs.js +22 -4
- package/dist/server/collections/workflows.js +22 -4
- package/dist/server/constants.js +30 -6
- package/dist/server/fields/expression-field.js +29 -8
- package/dist/server/fields/index.js +24 -7
- package/dist/server/functions/index.js +22 -4
- package/dist/server/index.js +45 -39
- package/dist/server/instructions/aggregate.js +30 -13
- package/dist/server/instructions/calculation.js +30 -13
- package/dist/server/instructions/condition.js +36 -17
- package/dist/server/instructions/create.js +26 -9
- package/dist/server/instructions/delay.js +27 -10
- package/dist/server/instructions/destroy.js +24 -7
- package/dist/server/instructions/index.js +35 -12
- package/dist/server/instructions/loop.js +27 -10
- package/dist/server/instructions/manual/actions.js +31 -10
- package/dist/server/instructions/manual/collecions/jobs.js +22 -4
- package/dist/server/instructions/manual/collecions/users.js +22 -4
- package/dist/server/instructions/manual/collecions/users_jobs.js +22 -4
- package/dist/server/instructions/manual/forms/create.js +22 -4
- package/dist/server/instructions/manual/forms/index.js +36 -14
- package/dist/server/instructions/manual/forms/update.js +22 -4
- package/dist/server/instructions/manual/index.js +60 -41
- package/dist/server/instructions/parallel.js +47 -28
- package/dist/server/instructions/query.js +31 -14
- package/dist/server/instructions/request.js +39 -16
- package/dist/server/instructions/sql.js +25 -8
- package/dist/server/instructions/update.js +24 -7
- package/dist/server/migrations/20221129153547-calculation-variables.js +24 -7
- package/dist/server/migrations/20230221032941-change-request-body-type.js +28 -7
- package/dist/server/migrations/20230221071831-calculation-expression.js +24 -7
- package/dist/server/migrations/20230221121203-condition-calculation.js +62 -7
- package/dist/server/migrations/20230221162902-jsonb-to-json.js +29 -12
- package/dist/server/migrations/20230411034722-manual-multi-form.js +38 -15
- package/dist/server/migrations/20230612021134-manual-collection-block.js +26 -9
- package/dist/server/migrations/20230710115902-manual-action-values.js +24 -7
- package/dist/server/migrations/20230809113132-workflow-options.js +24 -7
- package/dist/server/triggers/collection.js +26 -9
- package/dist/server/triggers/form.js +28 -11
- package/dist/server/triggers/index.js +42 -17
- package/dist/server/triggers/schedule.js +56 -31
- package/dist/server/types/Execution.js +24 -7
- package/dist/server/types/FlowNode.js +24 -7
- package/dist/server/types/Job.js +24 -7
- package/dist/server/types/Workflow.js +24 -7
- package/dist/server/types/index.js +15 -2
- package/dist/server/utils.js +26 -4
- package/dist/swagger/index.d.ts +103 -53
- package/dist/swagger/index.js +144 -71
- package/package.json +2 -2
|
@@ -1,15 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var schedule_exports = {};
|
|
29
|
+
__export(schedule_exports, {
|
|
30
|
+
SCHEDULE_MODE: () => SCHEDULE_MODE,
|
|
31
|
+
default: () => ScheduleTrigger
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(schedule_exports);
|
|
34
|
+
var import_database = require("@nocobase/database");
|
|
35
|
+
var import_cron_parser = __toESM(require("cron-parser"));
|
|
36
|
+
var import__ = require("..");
|
|
13
37
|
const SCHEDULE_MODE = {
|
|
14
38
|
CONSTANT: 0,
|
|
15
39
|
COLLECTION_FIELD: 1
|
|
@@ -176,7 +200,7 @@ ScheduleModes.set(SCHEDULE_MODE.COLLECTION_FIELD, {
|
|
|
176
200
|
const conditions = [
|
|
177
201
|
{
|
|
178
202
|
[startsOn.field]: {
|
|
179
|
-
[
|
|
203
|
+
[import_database.Op.lt]: new Date(startTimestamp + this.cacheCycle)
|
|
180
204
|
}
|
|
181
205
|
}
|
|
182
206
|
];
|
|
@@ -184,9 +208,9 @@ ScheduleModes.set(SCHEDULE_MODE.COLLECTION_FIELD, {
|
|
|
184
208
|
const tsFn = DialectTimestampFnMap[db.options.dialect];
|
|
185
209
|
if (typeof repeat === "number" && repeat > this.cacheCycle && tsFn) {
|
|
186
210
|
conditions.push(
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
{ [
|
|
211
|
+
(0, import_database.where)(
|
|
212
|
+
(0, import_database.fn)("MOD", (0, import_database.literal)(`${Math.round(timestamp / 1e3)} - ${tsFn(startsOn.field)}`), Math.round(repeat / 1e3)),
|
|
213
|
+
{ [import_database.Op.lt]: Math.round(this.cacheCycle / 1e3) }
|
|
190
214
|
)
|
|
191
215
|
);
|
|
192
216
|
}
|
|
@@ -202,7 +226,7 @@ ScheduleModes.set(SCHEDULE_MODE.COLLECTION_FIELD, {
|
|
|
202
226
|
} else {
|
|
203
227
|
conditions.push({
|
|
204
228
|
[endsOn.field]: {
|
|
205
|
-
[
|
|
229
|
+
[import_database.Op.gte]: new Date(endTimestamp + this.interval)
|
|
206
230
|
}
|
|
207
231
|
});
|
|
208
232
|
}
|
|
@@ -210,13 +234,13 @@ ScheduleModes.set(SCHEDULE_MODE.COLLECTION_FIELD, {
|
|
|
210
234
|
} else {
|
|
211
235
|
conditions.push({
|
|
212
236
|
[startsOn.field]: {
|
|
213
|
-
[
|
|
237
|
+
[import_database.Op.gte]: new Date(startTimestamp)
|
|
214
238
|
}
|
|
215
239
|
});
|
|
216
240
|
}
|
|
217
241
|
const { model } = db.getCollection(collection);
|
|
218
242
|
const count = await model.count({
|
|
219
|
-
where: { [
|
|
243
|
+
where: { [import_database.Op.and]: conditions }
|
|
220
244
|
});
|
|
221
245
|
return Boolean(count);
|
|
222
246
|
},
|
|
@@ -230,22 +254,22 @@ ScheduleModes.set(SCHEDULE_MODE.COLLECTION_FIELD, {
|
|
|
230
254
|
const conditions = [
|
|
231
255
|
{
|
|
232
256
|
[startsOn.field]: {
|
|
233
|
-
[
|
|
257
|
+
[import_database.Op.lt]: new Date(startTimestamp + this.interval)
|
|
234
258
|
}
|
|
235
259
|
}
|
|
236
260
|
];
|
|
237
261
|
if (repeat) {
|
|
238
262
|
conditions.push({
|
|
239
263
|
[startsOn.field]: {
|
|
240
|
-
[
|
|
264
|
+
[import_database.Op.lt]: new Date(startTimestamp)
|
|
241
265
|
}
|
|
242
266
|
});
|
|
243
267
|
const tsFn = DialectTimestampFnMap[this.plugin.app.db.options.dialect];
|
|
244
268
|
if (typeof repeat === "number" && tsFn) {
|
|
245
269
|
conditions.push(
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
{ [
|
|
270
|
+
(0, import_database.where)(
|
|
271
|
+
(0, import_database.fn)("MOD", (0, import_database.literal)(`${Math.round(timestamp / 1e3)} - ${tsFn(startsOn.field)}`), Math.round(repeat / 1e3)),
|
|
272
|
+
{ [import_database.Op.eq]: 0 }
|
|
249
273
|
)
|
|
250
274
|
);
|
|
251
275
|
}
|
|
@@ -261,7 +285,7 @@ ScheduleModes.set(SCHEDULE_MODE.COLLECTION_FIELD, {
|
|
|
261
285
|
} else {
|
|
262
286
|
conditions.push({
|
|
263
287
|
[endsOn.field]: {
|
|
264
|
-
[
|
|
288
|
+
[import_database.Op.gte]: new Date(endTimestamp + this.interval)
|
|
265
289
|
}
|
|
266
290
|
});
|
|
267
291
|
}
|
|
@@ -269,7 +293,7 @@ ScheduleModes.set(SCHEDULE_MODE.COLLECTION_FIELD, {
|
|
|
269
293
|
} else {
|
|
270
294
|
conditions.push({
|
|
271
295
|
[startsOn.field]: {
|
|
272
|
-
[
|
|
296
|
+
[import_database.Op.gte]: new Date(startTimestamp)
|
|
273
297
|
}
|
|
274
298
|
});
|
|
275
299
|
}
|
|
@@ -296,14 +320,14 @@ function matchNext(workflow, now, range = this.cacheCycle) {
|
|
|
296
320
|
const currentDate = new Date(now);
|
|
297
321
|
currentDate.setMilliseconds(-1);
|
|
298
322
|
const timestamp = now.getTime();
|
|
299
|
-
const interval =
|
|
323
|
+
const interval = import_cron_parser.default.parseExpression(repeat, { currentDate });
|
|
300
324
|
const next = interval.next();
|
|
301
325
|
if (next.getTime() - timestamp <= range) {
|
|
302
326
|
return true;
|
|
303
327
|
}
|
|
304
328
|
return false;
|
|
305
329
|
}
|
|
306
|
-
class ScheduleTrigger extends
|
|
330
|
+
class ScheduleTrigger extends import__.Trigger {
|
|
307
331
|
static CacheRules = [
|
|
308
332
|
({ config, allExecuted }) => (config.limit ? allExecuted < config.limit : true) && config.startsOn,
|
|
309
333
|
matchNext,
|
|
@@ -454,6 +478,7 @@ class ScheduleTrigger extends __.Trigger {
|
|
|
454
478
|
this.cache.delete(workflow.id);
|
|
455
479
|
}
|
|
456
480
|
}
|
|
457
|
-
|
|
458
|
-
exports
|
|
459
|
-
|
|
481
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
482
|
+
0 && (module.exports = {
|
|
483
|
+
SCHEDULE_MODE
|
|
484
|
+
});
|
|
@@ -1,8 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var Execution_exports = {};
|
|
19
|
+
__export(Execution_exports, {
|
|
20
|
+
default: () => ExecutionModel
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(Execution_exports);
|
|
23
|
+
var import_database = require("@nocobase/database");
|
|
24
|
+
class ExecutionModel extends import_database.Model {
|
|
6
25
|
}
|
|
7
|
-
|
|
8
|
-
module.exports = ExecutionModel;
|
|
@@ -1,8 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var FlowNode_exports = {};
|
|
19
|
+
__export(FlowNode_exports, {
|
|
20
|
+
default: () => FlowNodeModel
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(FlowNode_exports);
|
|
23
|
+
var import_database = require("@nocobase/database");
|
|
24
|
+
class FlowNodeModel extends import_database.Model {
|
|
6
25
|
}
|
|
7
|
-
|
|
8
|
-
module.exports = FlowNodeModel;
|
package/dist/server/types/Job.js
CHANGED
|
@@ -1,8 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var Job_exports = {};
|
|
19
|
+
__export(Job_exports, {
|
|
20
|
+
default: () => JobModel
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(Job_exports);
|
|
23
|
+
var import_database = require("@nocobase/database");
|
|
24
|
+
class JobModel extends import_database.Model {
|
|
6
25
|
}
|
|
7
|
-
|
|
8
|
-
module.exports = JobModel;
|
|
@@ -1,8 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var Workflow_exports = {};
|
|
19
|
+
__export(Workflow_exports, {
|
|
20
|
+
default: () => WorkflowModel
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(Workflow_exports);
|
|
23
|
+
var import_database = require("@nocobase/database");
|
|
24
|
+
class WorkflowModel extends import_database.Model {
|
|
6
25
|
}
|
|
7
|
-
|
|
8
|
-
module.exports = WorkflowModel;
|
|
@@ -1,2 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
var types_exports = {};
|
|
15
|
+
module.exports = __toCommonJS(types_exports);
|
package/dist/server/utils.js
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var utils_exports = {};
|
|
19
|
+
__export(utils_exports, {
|
|
20
|
+
toJSON: () => toJSON
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(utils_exports);
|
|
3
23
|
function toJSON(data) {
|
|
4
24
|
if (typeof data !== "object" || !data) {
|
|
5
25
|
return data;
|
|
@@ -15,5 +35,7 @@ function toJSON(data) {
|
|
|
15
35
|
});
|
|
16
36
|
return result;
|
|
17
37
|
}
|
|
18
|
-
|
|
19
|
-
exports
|
|
38
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
+
0 && (module.exports = {
|
|
40
|
+
toJSON
|
|
41
|
+
});
|
package/dist/swagger/index.d.ts
CHANGED
|
@@ -9,16 +9,19 @@ declare const _default: {
|
|
|
9
9
|
get: {
|
|
10
10
|
tags: string[];
|
|
11
11
|
description: string;
|
|
12
|
-
parameters:
|
|
12
|
+
parameters: {
|
|
13
|
+
$ref: string;
|
|
14
|
+
}[];
|
|
13
15
|
responses: {
|
|
14
16
|
200: {
|
|
15
17
|
description: string;
|
|
16
18
|
content: {
|
|
17
19
|
'application/json': {
|
|
18
20
|
schema: {
|
|
19
|
-
|
|
21
|
+
type: string;
|
|
22
|
+
items: {
|
|
20
23
|
$ref: string;
|
|
21
|
-
}
|
|
24
|
+
};
|
|
22
25
|
};
|
|
23
26
|
};
|
|
24
27
|
};
|
|
@@ -30,7 +33,9 @@ declare const _default: {
|
|
|
30
33
|
get: {
|
|
31
34
|
tags: string[];
|
|
32
35
|
description: string;
|
|
33
|
-
parameters:
|
|
36
|
+
parameters: {
|
|
37
|
+
$ref: string;
|
|
38
|
+
}[];
|
|
34
39
|
responses: {
|
|
35
40
|
200: {
|
|
36
41
|
description: string;
|
|
@@ -492,60 +497,105 @@ declare const _default: {
|
|
|
492
497
|
components: {
|
|
493
498
|
schemas: {
|
|
494
499
|
workflow: {
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
type:
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
500
|
+
model: {
|
|
501
|
+
type: string;
|
|
502
|
+
description: string;
|
|
503
|
+
properties: {
|
|
504
|
+
id: {
|
|
505
|
+
type: string;
|
|
506
|
+
description: string;
|
|
507
|
+
};
|
|
508
|
+
key: {
|
|
509
|
+
type: string;
|
|
510
|
+
description: string;
|
|
511
|
+
};
|
|
512
|
+
title: {
|
|
513
|
+
type: string;
|
|
514
|
+
description: string;
|
|
515
|
+
};
|
|
516
|
+
description: {
|
|
517
|
+
type: string;
|
|
518
|
+
description: string;
|
|
519
|
+
};
|
|
520
|
+
current: {
|
|
521
|
+
type: string;
|
|
522
|
+
description: string;
|
|
523
|
+
};
|
|
524
|
+
enabled: {
|
|
525
|
+
type: string;
|
|
526
|
+
description: string;
|
|
527
|
+
};
|
|
528
|
+
type: {
|
|
529
|
+
type: string;
|
|
530
|
+
description: string;
|
|
531
|
+
};
|
|
532
|
+
config: {
|
|
533
|
+
type: string;
|
|
534
|
+
description: string;
|
|
535
|
+
};
|
|
536
|
+
nodes: {
|
|
537
|
+
type: string;
|
|
538
|
+
description: string;
|
|
539
|
+
};
|
|
540
|
+
executions: {
|
|
541
|
+
type: string;
|
|
542
|
+
description: string;
|
|
543
|
+
};
|
|
544
|
+
revisions: {
|
|
545
|
+
type: string;
|
|
546
|
+
description: string;
|
|
547
|
+
};
|
|
548
|
+
executed: {
|
|
549
|
+
type: string;
|
|
550
|
+
description: string;
|
|
551
|
+
};
|
|
552
|
+
allExecuted: {
|
|
553
|
+
type: string;
|
|
554
|
+
description: string;
|
|
555
|
+
};
|
|
541
556
|
};
|
|
542
|
-
|
|
557
|
+
};
|
|
558
|
+
filterByTk: {
|
|
559
|
+
name: string;
|
|
560
|
+
in: string;
|
|
561
|
+
description: string;
|
|
562
|
+
schema: {
|
|
543
563
|
type: string;
|
|
544
564
|
description: string;
|
|
545
565
|
};
|
|
546
|
-
|
|
566
|
+
};
|
|
567
|
+
filter: {
|
|
568
|
+
name: string;
|
|
569
|
+
in: string;
|
|
570
|
+
description: string;
|
|
571
|
+
schema: {
|
|
547
572
|
type: string;
|
|
548
|
-
|
|
573
|
+
properties: {
|
|
574
|
+
id: {
|
|
575
|
+
$ref: string;
|
|
576
|
+
};
|
|
577
|
+
title: {
|
|
578
|
+
$ref: string;
|
|
579
|
+
};
|
|
580
|
+
type: {
|
|
581
|
+
$ref: string;
|
|
582
|
+
};
|
|
583
|
+
enabled: {
|
|
584
|
+
$ref: string;
|
|
585
|
+
};
|
|
586
|
+
current: {
|
|
587
|
+
$ref: string;
|
|
588
|
+
};
|
|
589
|
+
key: {
|
|
590
|
+
$ref: string;
|
|
591
|
+
};
|
|
592
|
+
executed: {
|
|
593
|
+
$ref: string;
|
|
594
|
+
};
|
|
595
|
+
allExecuted: {
|
|
596
|
+
$ref: string;
|
|
597
|
+
};
|
|
598
|
+
};
|
|
549
599
|
};
|
|
550
600
|
};
|
|
551
601
|
};
|