@notmrabhi/flowforge 0.1.50 → 0.1.52

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 (31) hide show
  1. package/dist/{SchemaBuilderDrawer-BZ7-GVP_.js → SchemaBuilderDrawer-BP7aZgFe.js} +2 -2
  2. package/dist/{SchemaBuilderDrawer-BZ7-GVP_.js.map → SchemaBuilderDrawer-BP7aZgFe.js.map} +1 -1
  3. package/dist/{SchemaBuilderDrawer-CLZy4ZoT.js → SchemaBuilderDrawer-CIxQGffa.js} +2 -2
  4. package/dist/{SchemaBuilderDrawer-CLZy4ZoT.js.map → SchemaBuilderDrawer-CIxQGffa.js.map} +1 -1
  5. package/dist/canvas.cjs +1 -1
  6. package/dist/canvas.js +1 -1
  7. package/dist/form.cjs +1 -1
  8. package/dist/form.d.ts +7 -0
  9. package/dist/form.js +2 -2
  10. package/dist/{index-tyzgIY9U.js → index-B-D9UuLO.js} +152 -144
  11. package/dist/{index-tyzgIY9U.js.map → index-B-D9UuLO.js.map} +1 -1
  12. package/dist/{index-h1mUpS7l.js → index-B-vpguq_.js} +2 -2
  13. package/dist/{index-h1mUpS7l.js.map → index-B-vpguq_.js.map} +1 -1
  14. package/dist/{index-Cjql1zwT.js → index-BbYsmgpo.js} +2 -2
  15. package/dist/{index-Cjql1zwT.js.map → index-BbYsmgpo.js.map} +1 -1
  16. package/dist/{index-idr4zHMF.js → index-BsgdZXaY.js} +2 -2
  17. package/dist/{index-idr4zHMF.js.map → index-BsgdZXaY.js.map} +1 -1
  18. package/dist/{index-cwtx0Uej.js → index-DUbQPmIx.js} +6 -6
  19. package/dist/{index-cwtx0Uej.js.map → index-DUbQPmIx.js.map} +1 -1
  20. package/dist/{index-B-K6-s8t.js → index-hv7IJZ9j.js} +2 -2
  21. package/dist/{index-B-K6-s8t.js.map → index-hv7IJZ9j.js.map} +1 -1
  22. package/dist/index.cjs +1 -1
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.ts +170 -0
  25. package/dist/index.js +443 -125
  26. package/dist/index.js.map +1 -1
  27. package/dist/{templateSkeletons-Dj88q55j.js → templateSkeletons-f-XQQvyE.js} +2 -2
  28. package/dist/{templateSkeletons-Dj88q55j.js.map → templateSkeletons-f-XQQvyE.js.map} +1 -1
  29. package/dist/{templateSkeletons-DfkoJMrg.js → templateSkeletons-gOva2Xus.js} +2 -2
  30. package/dist/{templateSkeletons-DfkoJMrg.js.map → templateSkeletons-gOva2Xus.js.map} +1 -1
  31. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,148 +1,466 @@
1
- import { D as N, F as R, a as D, b as P, c as W, I as A, O as E, T as I, V as C, d as O, e as V, f as B, g as z, h as L, i as q, j as H, 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 oe, y as re, z as ae, A as te, B as ie, C as ne } from "./index-tyzgIY9U.js";
2
- import { F as ce, S as de, a as pe, u as ue } from "./SchemaBuilderDrawer-BZ7-GVP_.js";
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";
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 me, conditionBranchDescriptor as ge, defineNode as be, endEventDescriptor as Fe, makeSubWorkflowDescriptor as we, nodeTypeRegistry as ke, notificationDescriptor as Se, restApiDescriptor as Te, startEventDescriptor as ye, subWorkflowDescriptor as xe, webhookTriggerDescriptor as ve, webhookTriggerTemplate as Ne } from "./nodeRegistry.js";
8
- import { TemplateRegistry as De, templateRegistry as Pe } from "./templateRegistry.js";
9
- import { F as Ae, a as Ee, S as Ie, F as Ce, W as Oe, b as Ve, c as Be, o as ze, u as Le, w as qe } from "./templateSkeletons-Dj88q55j.js";
10
- import { d as Me } from "./messages-CO299wPN.js";
11
- import { l as $e, s as je } from "./bpmn-CtfWDaOY.js";
12
- import { A as Ue, b as Ye, E as Je, c as Ke, F as Qe, R as Xe, S as Ze, T as es, W as ss, e as os } from "./GatewayBranchEdge-CrgczPYJ.js";
13
- class g {
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 {
14
14
  constructor() {
15
15
  this.channels = /* @__PURE__ */ new Map();
16
16
  }
17
- register(s, o) {
18
- this.channels.set(s, o);
17
+ register(t, n) {
18
+ this.channels.set(t, n);
19
19
  }
20
- get(s) {
21
- return this.channels.get(s);
20
+ get(t) {
21
+ return this.channels.get(t);
22
22
  }
23
23
  list() {
24
- return Array.from(this.channels.entries()).map(([s, o]) => ({ key: s, ...o }));
24
+ return Array.from(this.channels.entries()).map(([t, n]) => ({ key: t, ...n }));
25
25
  }
26
- has(s) {
27
- return this.channels.has(s);
26
+ has(t) {
27
+ return this.channels.has(t);
28
28
  }
29
29
  }
30
- const T = new g();
31
- function y(e) {
30
+ const Z = new W();
31
+ function ee(e) {
32
32
  const {
33
- currentNodeId: s,
34
- nodes: o,
35
- getParents: t,
36
- getOutputSchema: r,
37
- nodePath: i,
38
- nodeLabel: n,
39
- getNodeId: l = (a) => a.id
40
- } = e, c = o.find((a) => l(a) === s);
41
- if (!c) return [];
42
- const h = b(c, o, t, l), p = [];
43
- for (const a of h) {
44
- const d = r(a);
45
- if (!d || d.length === 0) continue;
46
- const u = i(a);
47
- p.push({
48
- label: n ? n(a) : u,
49
- items: d.map((m) => f(m, u))
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))
50
50
  });
51
51
  }
52
- return p;
52
+ return h;
53
53
  }
54
- function b(e, s, o, t) {
55
- const r = /* @__PURE__ */ new Set(), i = [], n = [...o(e, s)];
56
- for (; n.length > 0; ) {
57
- const l = n.shift(), c = t(l);
58
- r.has(c) || (r.add(c), i.push(l), n.push(...o(l, s)));
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)));
59
59
  }
60
- return i;
60
+ return s;
61
61
  }
62
- function f(e, s) {
63
- const o = `${s}.${e.key}`, t = e.description ?? (e.sample !== void 0 && e.sample !== null ? String(e.sample) : void 0), r = { label: e.label, path: o };
64
- return t !== void 0 && (r.description = t), e.children && e.children.length > 0 && (r.children = e.children.map((i) => f(i, o))), r;
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
+ };
65
382
  }
66
383
  export {
67
- Ue as ActionNode,
68
- Ye as ApprovalNode,
69
- N as DynamicFormRenderer,
70
- Je as EdgeWithPlusLabel,
71
- Ke as EndNode,
72
- R as FF,
73
- ce as FIELD_TYPE_OPTIONS,
74
- Qe as FilterNode,
75
- Ae as FlowForgeCanvas,
76
- Ee as FlowForgeHeader,
77
- D as FlowForgeRegistry,
78
- P as FlowForm,
79
- W as FormulaInput,
80
- A as InfiniteSelectField,
81
- he as NodeTypeRegistry,
82
- E as OptionsResolversProvider,
83
- Xe as RestApiNode,
84
- de as SchemaBuilder,
85
- pe as SchemaBuilderDrawer,
86
- Ze as StartNode,
87
- Ie as SubWorkflowPreviewDrawer,
88
- I as TablePickerField,
89
- De as TemplateRegistry,
90
- es as TriggerNode,
91
- C as VariablePicker,
92
- O as VariablePickerProvider,
93
- ss as WebhookTriggerNode,
94
- Ce as WorkflowCanvas,
95
- Oe as WorkflowExecutionHistory,
96
- Ve as WorkflowTemplateLibrary,
97
- Be as accessRequestSkeleton,
98
- V as astHasRefs,
99
- B as astToTokens,
100
- me as baseNodeDefaults,
101
- z as buildEvaluationPayload,
102
- L as buildFieldConfig,
103
- q as buildFormulaPath,
104
- H as buildSelectStyles,
105
- M as buildValidationSchema,
106
- y as buildVariableGroups,
107
- os as builtInNodeTypes,
108
- ge as conditionBranchDescriptor,
109
- _ as dataSourceRegistry,
110
- Me as defaultFlowForgeMessages,
111
- be as defineNode,
112
- Fe as endEventDescriptor,
113
- $ as errorTextStyle,
114
- j as extractLabel,
115
- G as fieldRegistry,
116
- U as hasFormulaTokens,
117
- Y as helperTextStyle,
118
- J as inputStyle,
119
- K as isFormula,
120
- $e as loadWorkflowFromBpmn,
121
- we as makeSubWorkflowDescriptor,
122
- ke as nodeTypeRegistry,
123
- T as notificationChannelRegistry,
124
- Se as notificationDescriptor,
125
- ze as offboardingSkeleton,
126
- Q as parseToAST,
127
- Te as restApiDescriptor,
128
- je as saveWorkflowToBpmn,
129
- X as serializeAST,
130
- Z as serializeASTAsConfig,
131
- ee as serializeConditionExpressions,
132
- ye as startEventDescriptor,
133
- se as stripFormulaTokens,
134
- xe as subWorkflowDescriptor,
135
- Pe as templateRegistry,
136
- oe as tokenize,
137
- re as unwrapFormula,
138
- ae as useDynamicOptions,
139
- ue as useFlowForm,
140
- te as useOptionsResolvers,
141
- ie as useVariablePickerContext,
142
- Le as userOnboardingSkeleton,
143
- qe as webhookIntegrationSkeleton,
144
- ve as webhookTriggerDescriptor,
145
- Ne as webhookTriggerTemplate,
146
- ne as wrapFormula
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
147
465
  };
148
466
  //# sourceMappingURL=index.js.map