@notmrabhi/flowforge 0.1.52 → 0.1.54

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 (36) hide show
  1. package/dist/{GatewayBranchEdge-CrgczPYJ.js → GatewayBranchEdge-BWz43Sat.js} +99 -102
  2. package/dist/GatewayBranchEdge-BWz43Sat.js.map +1 -0
  3. package/dist/GatewayBranchEdge-Ukfp7i1Q.js +2 -0
  4. package/dist/GatewayBranchEdge-Ukfp7i1Q.js.map +1 -0
  5. package/dist/{templateSkeletons-f-XQQvyE.js → WorkflowExecutionHistory-B0OiFCyi.js} +804 -858
  6. package/dist/WorkflowExecutionHistory-B0OiFCyi.js.map +1 -0
  7. package/dist/{templateSkeletons-gOva2Xus.js → WorkflowExecutionHistory-BHb6-2lt.js} +2 -2
  8. package/dist/WorkflowExecutionHistory-BHb6-2lt.js.map +1 -0
  9. package/dist/buildBackendPayload-4SwOp7St.js +316 -0
  10. package/dist/buildBackendPayload-4SwOp7St.js.map +1 -0
  11. package/dist/buildBackendPayload-BvrjW1uM.js +2 -0
  12. package/dist/buildBackendPayload-BvrjW1uM.js.map +1 -0
  13. package/dist/canvas.cjs +1 -1
  14. package/dist/canvas.d.ts +0 -61
  15. package/dist/canvas.js +21 -25
  16. package/dist/core.cjs +1 -1
  17. package/dist/core.d.ts +163 -24
  18. package/dist/core.js +11 -9
  19. package/dist/core.js.map +1 -1
  20. package/dist/defaultUi.cjs +1 -1
  21. package/dist/defaultUi.js +1 -1
  22. package/dist/form.d.ts +0 -35
  23. package/dist/index-B-D9UuLO.js.map +1 -1
  24. package/dist/index-DUbQPmIx.js.map +1 -1
  25. package/dist/index.cjs +1 -1
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.ts +0 -43
  28. package/dist/index.js +123 -443
  29. package/dist/index.js.map +1 -1
  30. package/dist/nodeRegistry.d.ts +0 -24
  31. package/package.json +1 -1
  32. package/dist/GatewayBranchEdge-CMY30xhz.js +0 -2
  33. package/dist/GatewayBranchEdge-CMY30xhz.js.map +0 -1
  34. package/dist/GatewayBranchEdge-CrgczPYJ.js.map +0 -1
  35. package/dist/templateSkeletons-f-XQQvyE.js.map +0 -1
  36. package/dist/templateSkeletons-gOva2Xus.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,466 +1,146 @@
1
- import { D as re, F as oe, a as ae, b as ie, c as le, I as ue, O as ce, T as de, V as pe, d as fe, e as me, f as Ee, g as ge, h as ye, i as he, j as ve, k as Te, E as we, l as be, m as Ne, n as Se, o as Re, p as De, q as Fe, r as Ie, s as Ce, t as xe, u as Ae, v as $e, w as Oe, x as _e, y as ke, z as Pe, A as je, B as We, C as Le } from "./index-B-D9UuLO.js";
2
- import { F as Be, S as Ve, a as Me, u as ze } from "./SchemaBuilderDrawer-BP7aZgFe.js";
1
+ import { D as N, F as D, a as R, b as P, c as W, I as A, O as E, T as C, V as I, d as B, e as O, f as V, g as z, h as L, i as H, j as q, k as M, E as _, l as $, m as j, n as G, o as U, p as Y, q as J, r as K, s as Q, t as X, u as Z, v as ee, w as se, x as re, y as oe, z as ae, A as te, B as ie, C as ne } from "./index-B-D9UuLO.js";
2
+ import { F as ce, S as de, a as pe, u as ue } from "./SchemaBuilderDrawer-BP7aZgFe.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "@mui/material";
6
6
  import "react-icons/md";
7
- import { NodeTypeRegistry as He, baseNodeDefaults as Je, conditionBranchDescriptor as Ke, defineNode as Ye, endEventDescriptor as Ge, makeSubWorkflowDescriptor as Xe, nodeTypeRegistry as Qe, notificationDescriptor as Ze, restApiDescriptor as et, startEventDescriptor as tt, subWorkflowDescriptor as nt, webhookTriggerDescriptor as st, webhookTriggerTemplate as rt } from "./nodeRegistry.js";
8
- import { TemplateRegistry as at, templateRegistry as it } from "./templateRegistry.js";
9
- import { F as ut, a as ct, S as dt, F as pt, W as ft, b as mt, c as Et, o as gt, u as yt, w as ht } from "./templateSkeletons-f-XQQvyE.js";
10
- import { d as Tt } from "./messages-CO299wPN.js";
11
- import { l as bt, s as Nt } from "./bpmn-CtfWDaOY.js";
12
- import { A as Rt, b as Dt, E as Ft, c as It, F as Ct, R as xt, S as At, T as $t, W as Ot, e as _t } from "./GatewayBranchEdge-CrgczPYJ.js";
13
- class W {
7
+ import { NodeTypeRegistry as he, baseNodeDefaults as me, conditionBranchDescriptor as ge, defineNode as Fe, endEventDescriptor as be, makeSubWorkflowDescriptor as Te, nodeTypeRegistry as we, notificationDescriptor as ye, restApiDescriptor as ke, startEventDescriptor as Se, subWorkflowDescriptor as xe, webhookTriggerDescriptor as ve, webhookTriggerTemplate as Ne } from "./nodeRegistry.js";
8
+ import { TemplateRegistry as Re, templateRegistry as Pe } from "./templateRegistry.js";
9
+ import { F as Ae, a as Ee, S as Ce, F as Ie, W as Be, b as Oe } from "./WorkflowExecutionHistory-B0OiFCyi.js";
10
+ import { d as ze } from "./messages-CO299wPN.js";
11
+ import { l as He, s as qe } from "./bpmn-CtfWDaOY.js";
12
+ import { A as _e, b as $e, E as je, c as Ge, F as Ue, R as Ye, S as Je, T as Ke, W as Qe, e as Xe } from "./GatewayBranchEdge-BWz43Sat.js";
13
+ import { b as es } from "./buildBackendPayload-4SwOp7St.js";
14
+ class g {
14
15
  constructor() {
15
16
  this.channels = /* @__PURE__ */ new Map();
16
17
  }
17
- register(t, n) {
18
- this.channels.set(t, n);
18
+ register(s, r) {
19
+ this.channels.set(s, r);
19
20
  }
20
- get(t) {
21
- return this.channels.get(t);
21
+ get(s) {
22
+ return this.channels.get(s);
22
23
  }
23
24
  list() {
24
- return Array.from(this.channels.entries()).map(([t, n]) => ({ key: t, ...n }));
25
+ return Array.from(this.channels.entries()).map(([s, r]) => ({ key: s, ...r }));
25
26
  }
26
- has(t) {
27
- return this.channels.has(t);
27
+ has(s) {
28
+ return this.channels.has(s);
28
29
  }
29
30
  }
30
- const Z = new W();
31
- function ee(e) {
31
+ const k = new g();
32
+ function S(e) {
32
33
  const {
33
- currentNodeId: t,
34
- nodes: n,
35
- getParents: o,
36
- getOutputSchema: a,
37
- nodePath: s,
38
- nodeLabel: d,
39
- getNodeId: i = (g) => g.id
40
- } = e, l = n.find((g) => i(g) === t);
41
- if (!l) return [];
42
- const f = L(l, n, o, i), h = [];
43
- for (const g of f) {
44
- const v = a(g);
45
- if (!v || v.length === 0) continue;
46
- const w = s(g);
47
- h.push({
48
- label: d ? d(g) : w,
49
- items: v.map((r) => _(r, w))
34
+ currentNodeId: s,
35
+ nodes: r,
36
+ getParents: t,
37
+ getOutputSchema: o,
38
+ nodePath: i,
39
+ nodeLabel: n,
40
+ getNodeId: l = (a) => a.id
41
+ } = e, c = r.find((a) => l(a) === s);
42
+ if (!c) return [];
43
+ const h = F(c, r, t, l), p = [];
44
+ for (const a of h) {
45
+ const d = o(a);
46
+ if (!d || d.length === 0) continue;
47
+ const u = i(a);
48
+ p.push({
49
+ label: n ? n(a) : u,
50
+ items: d.map((m) => f(m, u))
50
51
  });
51
52
  }
52
- return h;
53
+ return p;
53
54
  }
54
- function L(e, t, n, o) {
55
- const a = /* @__PURE__ */ new Set(), s = [], d = [...n(e, t)];
56
- for (; d.length > 0; ) {
57
- const i = d.shift(), l = o(i);
58
- a.has(l) || (a.add(l), s.push(i), d.push(...n(i, t)));
55
+ function F(e, s, r, t) {
56
+ const o = /* @__PURE__ */ new Set(), i = [], n = [...r(e, s)];
57
+ for (; n.length > 0; ) {
58
+ const l = n.shift(), c = t(l);
59
+ o.has(c) || (o.add(c), i.push(l), n.push(...r(l, s)));
59
60
  }
60
- return s;
61
+ return i;
61
62
  }
62
- function _(e, t) {
63
- const n = `${t}.${e.key}`, o = e.description ?? (e.sample !== void 0 && e.sample !== null ? String(e.sample) : void 0), a = { label: e.label, path: n };
64
- return o !== void 0 && (a.description = o), e.children && e.children.length > 0 && (a.children = e.children.map((s) => _(s, n))), a;
65
- }
66
- const I = {
67
- triggerToCategory: {
68
- END_USER_CREATION: "END_USER_CREATION",
69
- END_USER_UPDATION: "END_USER_UPDATION",
70
- DELETE_DORMANT_ACCOUNT: "DELETE_DORMANT_ACCOUNT",
71
- NOTIFY_EXPIRED_PASSWORD: "NOTIFY_EXPIRED_PASSWORD"
72
- },
73
- schedulerEventTypes: ["DELETE_DORMANT_ACCOUNT", "NOTIFY_EXPIRED_PASSWORD"],
74
- conditionPathPrefix: "startEvent.endUser",
75
- defaultWorkflowCategory: "END_USER_CREATION",
76
- endEventIds: {
77
- success: "endEventSuccess",
78
- failure: "endEventFailure",
79
- rejected: "endEventRejected"
80
- },
81
- endEventNames: {
82
- success: "Task Completed successfully",
83
- failure: "User Not Created",
84
- rejected: "Approval Rejected"
85
- },
86
- startEventId: "startEvent"
87
- }, U = /* @__PURE__ */ new Set([
88
- "start",
89
- "end",
90
- "triggerFixed",
91
- "addTrigger",
92
- "addStep"
93
- ]), B = (e) => !!e && !U.has(String(e.kind ?? ""));
94
- function S(e, t) {
95
- return e == null ? "" : String(e).replace(
96
- /\$\{(\w+)\}/g,
97
- (n, o) => Object.prototype.hasOwnProperty.call(t, o) ? String(t[o]) : n
98
- );
99
- }
100
- function V(e, t) {
101
- var s, d, i, l, f;
102
- if (!e || typeof e != "object") return "";
103
- const { from: n, key: o, value: a } = e;
104
- return n === "literal" ? a === void 0 ? "" : String(a) : n === "task" ? String(((s = t.task) == null ? void 0 : s[o ?? ""]) ?? "") : n === "ctx" ? String(((d = t.ctx) == null ? void 0 : d[o ?? ""]) ?? "") : n === "slot" ? String(((i = t.slot) == null ? void 0 : i[o ?? ""]) ?? "") : n === "formData" ? String(((f = (l = t.slot) == null ? void 0 : l.formData) == null ? void 0 : f[o ?? ""]) ?? "") : "";
105
- }
106
- function M(e, t) {
107
- var o, a, s;
108
- const n = e == null ? void 0 : e.source;
109
- if (!n) return "";
110
- if (n.type === "literal")
111
- return typeof n.value == "string" ? n.value : JSON.stringify(n.value ?? "");
112
- if (n.type === "json" || n.type === "taskConfig") {
113
- const d = n.shape || {}, i = {};
114
- return Object.keys(d).forEach((l) => {
115
- i[l] = V(d[l], t);
116
- }), JSON.stringify(i);
117
- }
118
- if (n.type === "formData") {
119
- if (n.passthrough) {
120
- const d = new Set(n.exclude || []), i = {}, l = ((o = t.slot) == null ? void 0 : o.formData) ?? {};
121
- return Object.keys(l).forEach((f) => {
122
- d.has(f) || (i[f] = l[f]);
123
- }), JSON.stringify(i);
124
- }
125
- return String(((s = (a = t.slot) == null ? void 0 : a.formData) == null ? void 0 : s[n.key ?? ""]) ?? "");
126
- }
127
- return "";
128
- }
129
- function z(e, t) {
130
- if (!(!e || typeof e != "object" || !t))
131
- return t.split(".").reduce((n, o) => {
132
- if (!(n == null || typeof n != "object"))
133
- return n[o];
134
- }, e);
135
- }
136
- function q(e, t, n) {
137
- var w;
138
- const o = e.operatorMap || {}, a = e.valuesField || "groups", s = (r) => {
139
- const m = o[String((r == null ? void 0 : r.operator) ?? "")] ?? "==", u = `${n}.${(r == null ? void 0 : r.key) ?? (r == null ? void 0 : r.field) ?? ""}`, E = `'${String((r == null ? void 0 : r.value) ?? "")}'`;
140
- return m.startsWith(".") ? `${u}${m}(${E})` : m.startsWith("!.") ? `!${u}${m.slice(1)}(${E})` : `${u} ${m} ${E}`;
141
- }, d = (r) => {
142
- var T, p;
143
- const m = Array.isArray(r) ? r : [];
144
- if (m.length === 0) return null;
145
- const u = m.map(s), y = ((T = m[0]) == null ? void 0 : T.connector) === "or" || ((p = m[0]) == null ? void 0 : p.logicalOperator) === "OR" ? "||" : "&&";
146
- return u.join(` ${y} `);
147
- }, i = [];
148
- let l = 1;
149
- const f = (r, m) => {
150
- i.push({
151
- id: `rule${l}`,
152
- inputEntries: [
153
- {
154
- id: `rule${l}InputEntry1`,
155
- text: r ? `\${(${r})}` : ""
156
- }
157
- ],
158
- outputEntries: [
159
- {
160
- id: `rule${l}OutputEntry1`,
161
- text: `"${m}"`
162
- }
163
- ]
164
- }), l += 1;
165
- }, h = Array.isArray((w = t == null ? void 0 : t.formData) == null ? void 0 : w.groupBlocks) ? t.formData.groupBlocks : [];
166
- if (h.length > 0)
167
- return h.forEach((r) => {
168
- const m = Array.isArray(r == null ? void 0 : r[a]) ? r[a] : [], u = d(r == null ? void 0 : r.conditions);
169
- m.forEach((E) => f(u, E));
170
- }), i;
171
- const g = (t == null ? void 0 : t.formData) ?? {}, v = g._conditionConfig ?? g.conditionConfig;
172
- return v && typeof v == "object" && Object.keys(v).forEach((r) => {
173
- const m = v[r], u = d(m), E = Object.prototype.hasOwnProperty.call(g, r) ? g[r] : z(g, r);
174
- Array.isArray(E) ? E.forEach((y) => {
175
- const T = typeof y == "object" && y !== null ? y.value ?? y.label ?? y : y;
176
- f(u, T);
177
- }) : E != null && E !== "" ? f(u, E) : u && f(u, "");
178
- }), i;
179
- }
180
- function H(e, t, n) {
181
- return {
182
- mappings: [],
183
- name: e.tableName,
184
- decision: {
185
- id: e.tableName,
186
- name: e.tableName,
187
- decisionTable: {
188
- id: `decisionTable_${e.tableName}`,
189
- hitPolicy: e.hitPolicy || "FIRST",
190
- inputs: [
191
- {
192
- id: `input_${e.tableName}`,
193
- inputExpression: {
194
- id: `inputExpr_${e.tableName}`,
195
- typeRef: "string",
196
- text: e.inputExpr
197
- }
198
- }
199
- ],
200
- outputs: (e.outputs || []).map((o) => ({
201
- id: o.id,
202
- label: o.label,
203
- typeRef: o.typeRef || "string",
204
- name: o.name
205
- })),
206
- rules: q(e, t, n)
207
- }
208
- }
209
- };
210
- }
211
- function J(e, t, n, o) {
212
- var E, y, T;
213
- const a = (E = t == null ? void 0 : t.ui) == null ? void 0 : E.bpmnEmit;
214
- if (!a)
215
- return {
216
- serviceTasks: [
217
- {
218
- id: e.id,
219
- name: (t == null ? void 0 : t.name) || e.descriptorType,
220
- configuration: Array.isArray(t == null ? void 0 : t.configuration) ? t.configuration : [],
221
- input: e.formData || {}
222
- }
223
- ],
224
- gateways: [],
225
- callActivities: [],
226
- templateFlows: [],
227
- dmn: null,
228
- bpmnEntry: e.id,
229
- bpmnExit: e.id,
230
- outgoingConditions: {},
231
- endsNeeded: /* @__PURE__ */ new Set()
232
- };
233
- const s = {
234
- id: e.id,
235
- endFailure: o.endEventIds.failure,
236
- endRejected: o.endEventIds.rejected,
237
- endSuccess: o.endEventIds.success
238
- }, d = { task: t, slot: e, ctx: n }, i = (a.serviceTasks || []).map((p) => ({
239
- id: S(p.idTemplate, s),
240
- name: p.name,
241
- flowableClass: p.flowableClass,
242
- extensionElements: {
243
- fields: (p.extensionFields || []).map((b) => ({
244
- name: b.name,
245
- stringValue: M(b, d)
246
- }))
247
- }
248
- }));
249
- let l = null;
250
- const f = [];
251
- a.gateway && (l = S(a.gateway.idTemplate, s), s.gateway = l, f.push({ id: l, name: a.gateway.name }));
252
- const h = /* @__PURE__ */ new Set(), g = (a.templateFlows || []).map((p) => {
253
- const b = S(p.from, s), N = S(p.to, s);
254
- return N === o.endEventIds.failure && h.add(o.endEventIds.failure), N === o.endEventIds.rejected && h.add(o.endEventIds.rejected), {
255
- id: p.idTemplate ? S(p.idTemplate, s) : `${b}-to-${N}`,
256
- sourceRef: b,
257
- targetRef: N,
258
- conditionExpression: p.condition ? S(p.condition, s) : null
259
- };
260
- }), v = [], w = a.dmnEmit ? H(a.dmnEmit, e, o.conditionPathPrefix) : null, r = ((y = i[0]) == null ? void 0 : y.id) ?? e.id, m = l ?? ((T = i[i.length - 1]) == null ? void 0 : T.id) ?? e.id, u = {};
261
- return Object.keys(a.outgoingConditions || {}).forEach((p) => {
262
- u[p] = S(
263
- a.outgoingConditions[p],
264
- s
265
- );
266
- }), {
267
- serviceTasks: i,
268
- gateways: f,
269
- callActivities: v,
270
- templateFlows: g,
271
- dmn: w,
272
- bpmnEntry: r,
273
- bpmnExit: m,
274
- outgoingConditions: u,
275
- endsNeeded: h
276
- };
277
- }
278
- function te(e) {
279
- var C, x, A, $;
280
- const { state: t, tasksByKey: n, context: o, config: a } = e, s = {
281
- ...I,
282
- ...a ?? {},
283
- triggerToCategory: { ...I.triggerToCategory, ...(a == null ? void 0 : a.triggerToCategory) ?? {} },
284
- schedulerEventTypes: (a == null ? void 0 : a.schedulerEventTypes) ?? I.schedulerEventTypes,
285
- endEventIds: { ...I.endEventIds, ...(a == null ? void 0 : a.endEventIds) ?? {} },
286
- endEventNames: { ...I.endEventNames, ...(a == null ? void 0 : a.endEventNames) ?? {} }
287
- }, d = Array.isArray(t == null ? void 0 : t.slots) ? t.slots : [], i = d.find((c) => c.kind === "triggerFixed"), l = (C = i == null ? void 0 : i.nodeData) == null ? void 0 : C.eventType, f = ((x = i == null ? void 0 : i.nodeData) == null ? void 0 : x.type) || "event", h = (A = i == null ? void 0 : i.nodeData) == null ? void 0 : A.sources, g = Array.isArray(h) ? h.map(
288
- (c) => typeof c == "string" ? c : (c == null ? void 0 : c.value) ?? (c == null ? void 0 : c.key) ?? ""
289
- ).filter(Boolean) : [], v = s.triggerToCategory[l ?? ""] ?? s.defaultWorkflowCategory, r = !!l && s.schedulerEventTypes.includes(l) ? ["SCHEDULER"] : g, u = d.filter(B).map((c) => ({
290
- slot: c,
291
- emit: J(c, n[c.descriptorType ?? ""] ?? {}, o, s)
292
- })), E = [], y = [], T = [], p = [], b = [], N = /* @__PURE__ */ new Set();
293
- u.forEach(({ emit: c }) => {
294
- E.push(...c.serviceTasks), y.push(...c.gateways), T.push(...c.callActivities), p.push(...c.templateFlows), c.dmn && b.push(c.dmn), c.endsNeeded.forEach((D) => N.add(D));
295
- });
296
- const R = [];
297
- if (u.length > 0) {
298
- R.push({
299
- id: `${s.startEventId}-to-${u[0].emit.bpmnEntry}`,
300
- sourceRef: s.startEventId,
301
- targetRef: u[0].emit.bpmnEntry,
302
- conditionExpression: null
303
- });
304
- for (let D = 0; D < u.length - 1; D += 1) {
305
- const F = u[D].emit, O = u[D + 1].emit, j = F.outgoingConditions.success ?? F.outgoingConditions.pass ?? F.outgoingConditions.approved ?? null;
306
- R.push({
307
- id: `${F.bpmnExit}-to-${O.bpmnEntry}`,
308
- sourceRef: F.bpmnExit,
309
- targetRef: O.bpmnEntry,
310
- conditionExpression: j
311
- });
312
- }
313
- const c = u[u.length - 1].emit;
314
- R.push({
315
- id: `${c.bpmnExit}-to-${s.endEventIds.success}`,
316
- sourceRef: c.bpmnExit,
317
- targetRef: s.endEventIds.success,
318
- conditionExpression: null
319
- });
320
- } else
321
- R.push({
322
- id: `${s.startEventId}-to-${s.endEventIds.success}`,
323
- sourceRef: s.startEventId,
324
- targetRef: s.endEventIds.success,
325
- conditionExpression: null
326
- });
327
- const k = [
328
- {
329
- id: s.endEventIds.success,
330
- name: s.endEventNames.success,
331
- executionListener: null
332
- },
333
- ...N.has(s.endEventIds.failure) ? [{ id: s.endEventIds.failure, name: s.endEventNames.failure }] : [],
334
- ...N.has(s.endEventIds.rejected) ? [{ id: s.endEventIds.rejected, name: s.endEventNames.rejected }] : []
335
- ], P = {
336
- id: s.startEventId,
337
- name: "Start",
338
- ...f === "event" ? {
339
- messageEventDefinition: {
340
- messageRef: `msg_${(l || "EVENT").toLowerCase()}_${r.length > 0 ? r.join("_").toLowerCase() : "default"}_${o.customerKey}`
341
- }
342
- } : {}
343
- };
344
- return {
345
- canvasState: {
346
- slots: d,
347
- branches: (t == null ? void 0 : t.branches) ?? {}
348
- },
349
- bpmn: {
350
- customerId: `${o.customerKey}`,
351
- workflowCategory: v,
352
- sources: r,
353
- process: {
354
- name: o.workflowName,
355
- isExecutable: "true"
356
- },
357
- startEvent: P,
358
- endEvent: k,
359
- sequenceFlows: [...R, ...p],
360
- exclusiveGateways: y,
361
- serviceTasks: E,
362
- callActivities: T
363
- },
364
- ...f === "event" ? {
365
- message: {
366
- id: `msg_${(l || "event").toLowerCase()}_${r.length > 0 ? r.join("_").toLowerCase() : "default"}_${o.customerKey}`,
367
- name: `msg_${(l || "event").toLowerCase()}_${r.length > 0 ? r.join("_").toLowerCase() : "default"}_${o.customerKey}`
368
- },
369
- dmns: b
370
- } : {
371
- eventConfig: [
372
- {
373
- eventType: l,
374
- config: {
375
- type: l,
376
- ...(($ = i == null ? void 0 : i.nodeData) == null ? void 0 : $.scheduler) ?? {}
377
- }
378
- }
379
- ]
380
- }
381
- };
63
+ function f(e, s) {
64
+ const r = `${s}.${e.key}`, t = e.description ?? (e.sample !== void 0 && e.sample !== null ? String(e.sample) : void 0), o = { label: e.label, path: r };
65
+ return t !== void 0 && (o.description = t), e.children && e.children.length > 0 && (o.children = e.children.map((i) => f(i, r))), o;
382
66
  }
383
67
  export {
384
- Rt as ActionNode,
385
- Dt as ApprovalNode,
386
- re as DynamicFormRenderer,
387
- Ft as EdgeWithPlusLabel,
388
- It as EndNode,
389
- oe as FF,
390
- Be as FIELD_TYPE_OPTIONS,
391
- Ct as FilterNode,
392
- ut as FlowForgeCanvas,
393
- ct as FlowForgeHeader,
394
- ae as FlowForgeRegistry,
395
- ie as FlowForm,
396
- le as FormulaInput,
397
- ue as InfiniteSelectField,
398
- He as NodeTypeRegistry,
399
- ce as OptionsResolversProvider,
400
- xt as RestApiNode,
401
- Ve as SchemaBuilder,
402
- Me as SchemaBuilderDrawer,
403
- At as StartNode,
404
- dt as SubWorkflowPreviewDrawer,
405
- de as TablePickerField,
406
- at as TemplateRegistry,
407
- $t as TriggerNode,
408
- pe as VariablePicker,
409
- fe as VariablePickerProvider,
410
- Ot as WebhookTriggerNode,
411
- pt as WorkflowCanvas,
412
- ft as WorkflowExecutionHistory,
413
- mt as WorkflowTemplateLibrary,
414
- Et as accessRequestSkeleton,
415
- me as astHasRefs,
416
- Ee as astToTokens,
417
- Je as baseNodeDefaults,
418
- te as buildBackendPayload,
419
- ge as buildEvaluationPayload,
420
- ye as buildFieldConfig,
421
- he as buildFormulaPath,
422
- ve as buildSelectStyles,
423
- Te as buildValidationSchema,
424
- ee as buildVariableGroups,
425
- _t as builtInNodeTypes,
426
- Ke as conditionBranchDescriptor,
427
- we as dataSourceRegistry,
428
- Tt as defaultFlowForgeMessages,
429
- Ye as defineNode,
430
- Ge as endEventDescriptor,
431
- be as errorTextStyle,
432
- Ne as extractLabel,
433
- Se as fieldRegistry,
434
- Re as hasFormulaTokens,
435
- De as helperTextStyle,
436
- Fe as inputStyle,
437
- Ie as isFormula,
438
- bt as loadWorkflowFromBpmn,
439
- Xe as makeSubWorkflowDescriptor,
440
- Qe as nodeTypeRegistry,
441
- Z as notificationChannelRegistry,
442
- Ze as notificationDescriptor,
443
- gt as offboardingSkeleton,
444
- Ce as parseToAST,
445
- et as restApiDescriptor,
446
- Nt as saveWorkflowToBpmn,
447
- xe as serializeAST,
448
- Ae as serializeASTAsConfig,
449
- $e as serializeConditionExpressions,
450
- tt as startEventDescriptor,
451
- Oe as stripFormulaTokens,
452
- nt as subWorkflowDescriptor,
453
- it as templateRegistry,
454
- _e as tokenize,
455
- ke as unwrapFormula,
456
- Pe as useDynamicOptions,
457
- ze as useFlowForm,
458
- je as useOptionsResolvers,
459
- We as useVariablePickerContext,
460
- yt as userOnboardingSkeleton,
461
- ht as webhookIntegrationSkeleton,
462
- st as webhookTriggerDescriptor,
463
- rt as webhookTriggerTemplate,
464
- Le as wrapFormula
68
+ _e as ActionNode,
69
+ $e as ApprovalNode,
70
+ N as DynamicFormRenderer,
71
+ je as EdgeWithPlusLabel,
72
+ Ge as EndNode,
73
+ D as FF,
74
+ ce as FIELD_TYPE_OPTIONS,
75
+ Ue as FilterNode,
76
+ Ae as FlowForgeCanvas,
77
+ Ee as FlowForgeHeader,
78
+ R as FlowForgeRegistry,
79
+ P as FlowForm,
80
+ W as FormulaInput,
81
+ A as InfiniteSelectField,
82
+ he as NodeTypeRegistry,
83
+ E as OptionsResolversProvider,
84
+ Ye as RestApiNode,
85
+ de as SchemaBuilder,
86
+ pe as SchemaBuilderDrawer,
87
+ Je as StartNode,
88
+ Ce as SubWorkflowPreviewDrawer,
89
+ C as TablePickerField,
90
+ Re as TemplateRegistry,
91
+ Ke as TriggerNode,
92
+ I as VariablePicker,
93
+ B as VariablePickerProvider,
94
+ Qe as WebhookTriggerNode,
95
+ Ie as WorkflowCanvas,
96
+ Be as WorkflowExecutionHistory,
97
+ Oe as WorkflowTemplateLibrary,
98
+ O as astHasRefs,
99
+ V as astToTokens,
100
+ me as baseNodeDefaults,
101
+ es as buildBackendPayload,
102
+ z as buildEvaluationPayload,
103
+ L as buildFieldConfig,
104
+ H as buildFormulaPath,
105
+ q as buildSelectStyles,
106
+ M as buildValidationSchema,
107
+ S as buildVariableGroups,
108
+ Xe as builtInNodeTypes,
109
+ ge as conditionBranchDescriptor,
110
+ _ as dataSourceRegistry,
111
+ ze as defaultFlowForgeMessages,
112
+ Fe as defineNode,
113
+ be as endEventDescriptor,
114
+ $ as errorTextStyle,
115
+ j as extractLabel,
116
+ G as fieldRegistry,
117
+ U as hasFormulaTokens,
118
+ Y as helperTextStyle,
119
+ J as inputStyle,
120
+ K as isFormula,
121
+ He as loadWorkflowFromBpmn,
122
+ Te as makeSubWorkflowDescriptor,
123
+ we as nodeTypeRegistry,
124
+ k as notificationChannelRegistry,
125
+ ye as notificationDescriptor,
126
+ Q as parseToAST,
127
+ ke as restApiDescriptor,
128
+ qe as saveWorkflowToBpmn,
129
+ X as serializeAST,
130
+ Z as serializeASTAsConfig,
131
+ ee as serializeConditionExpressions,
132
+ Se as startEventDescriptor,
133
+ se as stripFormulaTokens,
134
+ xe as subWorkflowDescriptor,
135
+ Pe as templateRegistry,
136
+ re as tokenize,
137
+ oe as unwrapFormula,
138
+ ae as useDynamicOptions,
139
+ ue as useFlowForm,
140
+ te as useOptionsResolvers,
141
+ ie as useVariablePickerContext,
142
+ ve as webhookTriggerDescriptor,
143
+ Ne as webhookTriggerTemplate,
144
+ ne as wrapFormula
465
145
  };
466
146
  //# sourceMappingURL=index.js.map