@oomol-lab/open-flow 0.1.0-alpha.0 → 0.1.0-alpha.10
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/browser/addNodeOptions-BwrMvPQC.js +5230 -0
- package/dist/browser/assets/typeScriptWorker-CaA4llbX.js +59850 -0
- package/dist/browser/carbon-DMCVsjHo.js +53 -0
- package/dist/browser/{project-change.js → change-Cu6pQIit.js} +15 -45
- package/dist/browser/createLucideIcon-COMgwa_u.js +5317 -0
- package/dist/browser/createResourceDialog-YgMLylQz.js +467 -0
- package/dist/browser/{dist-o4dBuwiG.js → dist-3Mj8q8Pr.js} +28 -28
- package/dist/browser/{dist-CIq6ue3I.js → dist-BKuSVKCC.js} +1115 -1103
- package/dist/browser/{dist-DL0SDskM.js → dist-BMqL-qR5.js} +473 -906
- package/dist/browser/{dist-CLZJNoWB.js → dist-BN4ZCyOB.js} +10 -10
- package/dist/browser/{dist-zyY--HOV.js → dist-BpopSHwP.js} +3 -3
- package/dist/browser/dist-C46JByB-.js +252 -0
- package/dist/browser/{dist-BbyiRq3c.js → dist-CJpzJrLM.js} +294 -284
- package/dist/browser/{dist-Djd02JSy.js → dist-CPuF50D9.js} +198 -198
- package/dist/browser/{dist-CvcmLAMW.js → dist-CUSrALSX.js} +115 -115
- package/dist/browser/dist-CeSZ2xSM.js +444 -0
- package/dist/browser/{dist-7oZK9QXZ.js → dist-DMi8_lU3.js} +5 -5
- package/dist/browser/{dist-B9OV3YTx.js → dist-DUzA0Ukh.js} +22 -22
- package/dist/browser/{dist-aWSZx4q1.js → dist-DWADUsVB.js} +75 -75
- package/dist/browser/{dist-BLk5M0uK.js → dist-Mecbzdl2.js} +3 -3
- package/dist/browser/{esm-DXw7EADW.js → esm-CvAs_mAS.js} +14 -24
- package/dist/browser/field-BrEG-7ap.js +312 -0
- package/dist/browser/flow-authoring-edge.d.ts +3 -0
- package/dist/browser/flow-authoring-module.d.ts +4 -0
- package/dist/browser/flow-authoring-node.d.ts +84 -0
- package/dist/browser/flow-authoring.d.ts +4 -0
- package/dist/browser/flow-authoring.js +522 -0
- package/dist/browser/{project-change.d.ts → flow-change.d.ts} +27 -36
- package/dist/browser/flow-change.js +231 -0
- package/dist/browser/{project-notifications.d.ts → flow-notifications.d.ts} +6 -3
- package/dist/browser/flowRunInputEditorStore-DXOyyY7o.js +8219 -0
- package/dist/browser/flowWorkspace-X_T_DcQf.js +46003 -0
- package/dist/browser/{lib-S4ccuMeT.js → lib-GrGxYjsJ.js} +3 -5
- package/dist/browser/licenses.md +620 -12
- package/dist/browser/{markdownContent-ZZFfSRqO.js → markdownContent-BI-2PmDX.js} +4071 -4035
- package/dist/browser/typeScriptSession-Dagu_tRs.js +2549 -0
- package/dist/browser/workbench-contract.d.ts +4 -5
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +2 -1
- package/dist/browser/workbench.js +3920 -2138
- package/dist/common/connector-action.d.ts +6 -0
- package/dist/common/connector-action.js +38 -30
- package/dist/common/control-api-conformance.js +223 -359
- package/dist/common/control-api-errors.d.ts +20 -24
- package/dist/common/control-api.d.ts +44 -73
- package/dist/common/control-api.js +150 -203
- package/dist/common/cron-trigger.d.ts +1 -1
- package/dist/common/cron-trigger.js +1 -1
- package/dist/common/flow-encoding.d.ts +11 -0
- package/dist/common/{project-encoding.js → flow-encoding.js} +14 -13
- package/dist/common/{project-notifications.d.ts → flow-notifications.d.ts} +6 -3
- package/dist/common/{project-semantics.d.ts → flow-semantics.d.ts} +9 -12
- package/dist/common/{project-semantics.js → flow-semantics.js} +594 -597
- package/dist/common/integration-trigger.d.ts +2 -1
- package/dist/common/integration-trigger.js +1 -1
- package/dist/common/poll-trigger.d.ts +1 -1
- package/dist/common/provider-triggers.js +1057 -948
- package/dist/common/run-lifecycle.js +1 -1
- package/dist/common/runtime-contract.d.ts +1 -1
- package/dist/common/runtime-contract.js +1 -1
- package/dist/common/scheduler.d.ts +7 -7
- package/dist/common/scheduler.js +237 -232
- package/dist/common/webhook-trigger.d.ts +1 -1
- package/dist/common/webhook-trigger.js +35 -1
- package/package.json +20 -10
- package/dist/browser/addNodeOptions-DqoIueCR.js +0 -33746
- package/dist/browser/carbon-nMY84Amv.js +0 -53
- package/dist/browser/composite-7VwgfnXx.js +0 -6088
- package/dist/browser/createResourceDialog-ByuJWdSL.js +0 -439
- package/dist/browser/dist-n-z5HtaO.js +0 -4
- package/dist/browser/flowWorkspace-DwVMpcar.js +0 -22092
- package/dist/common/project-encoding.d.ts +0 -11
|
@@ -17,4 +17,10 @@ export interface ConnectorActionPorts {
|
|
|
17
17
|
readonly nullable: boolean;
|
|
18
18
|
}[];
|
|
19
19
|
}
|
|
20
|
+
export interface ConnectorRuntimeInputPort {
|
|
21
|
+
readonly handle: string;
|
|
22
|
+
readonly jsonSchema: unknown;
|
|
23
|
+
readonly nullable: boolean;
|
|
24
|
+
}
|
|
20
25
|
export declare function connectorActionPorts(inputSchema: unknown, outputSchema: unknown): ConnectorActionPorts;
|
|
26
|
+
export declare function normalizeConnectorRuntimeInputs<Value>(ports: readonly ConnectorRuntimeInputPort[], inputs: Readonly<Record<string, Value>>): Readonly<Record<string, Value>>;
|
|
@@ -1,84 +1,92 @@
|
|
|
1
|
-
//#region ../../node_modules/@wopjs/cast/dist/index.mjs
|
|
1
|
+
//#region ../../node_modules/.bun/@wopjs+cast@0.1.16/node_modules/@wopjs/cast/dist/index.mjs
|
|
2
2
|
var e = Array.isArray, t = (e) => typeof e == "object" && !!e, n = (n) => t(n) && !e(n), r = (e) => n(e) ? e : void 0;
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/connector/common/actionSchema.ts
|
|
5
5
|
function i(e, t) {
|
|
6
|
-
let n =
|
|
6
|
+
let n = o(e);
|
|
7
7
|
return {
|
|
8
8
|
inputs: n,
|
|
9
9
|
initialInputs: n.flatMap((e) => e.value === void 0 ? [] : [{
|
|
10
10
|
handle: e.handle,
|
|
11
11
|
value: e.value
|
|
12
12
|
}]),
|
|
13
|
-
outputs:
|
|
13
|
+
outputs: s(t)
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
function a(e) {
|
|
16
|
+
function a(e, t) {
|
|
17
|
+
let n = new Map(e.map((e) => [e.handle, e])), r = {};
|
|
18
|
+
for (let [e, i] of Object.entries(t)) {
|
|
19
|
+
let t = n.get(e);
|
|
20
|
+
i == null && t?.nullable == 1 && !f(t.jsonSchema) || (r[e] = i);
|
|
21
|
+
}
|
|
22
|
+
return r;
|
|
23
|
+
}
|
|
24
|
+
function o(e) {
|
|
17
25
|
let t = r(e);
|
|
18
26
|
if (t == null || t.type != "object" && t.properties == null) throw Error("Connector action inputSchema must be an object schema.");
|
|
19
27
|
let n = r(t.properties);
|
|
20
28
|
if (n == null) return [];
|
|
21
|
-
let i =
|
|
29
|
+
let i = d(t.required);
|
|
22
30
|
return Object.entries(n).map(([e, n]) => {
|
|
23
|
-
let r = !i.has(e) ||
|
|
31
|
+
let r = !i.has(e) || f(n, t);
|
|
24
32
|
return {
|
|
25
|
-
description:
|
|
33
|
+
description: l(t, n),
|
|
26
34
|
handle: e,
|
|
27
|
-
json_schema:
|
|
35
|
+
json_schema: c(t, n),
|
|
28
36
|
nullable: r,
|
|
29
|
-
value:
|
|
37
|
+
value: u(t, n, r)
|
|
30
38
|
};
|
|
31
39
|
});
|
|
32
40
|
}
|
|
33
|
-
function
|
|
41
|
+
function s(e) {
|
|
34
42
|
let t = r(e), n = r(t?.properties);
|
|
35
43
|
if (t != null && (t.type == "object" || n != null)) {
|
|
36
44
|
if (n == null) return [];
|
|
37
|
-
let e =
|
|
45
|
+
let e = d(t.required);
|
|
38
46
|
return Object.entries(n).map(([n, r]) => ({
|
|
39
|
-
description:
|
|
47
|
+
description: l(t, r),
|
|
40
48
|
handle: n,
|
|
41
|
-
json_schema:
|
|
42
|
-
nullable: !e.has(n) ||
|
|
49
|
+
json_schema: c(t, r),
|
|
50
|
+
nullable: !e.has(n) || f(r, t)
|
|
43
51
|
}));
|
|
44
52
|
}
|
|
45
53
|
return [{
|
|
46
|
-
description:
|
|
54
|
+
description: l(t, e),
|
|
47
55
|
handle: "output",
|
|
48
56
|
json_schema: e,
|
|
49
|
-
nullable:
|
|
57
|
+
nullable: f(e)
|
|
50
58
|
}];
|
|
51
59
|
}
|
|
52
|
-
function
|
|
60
|
+
function c(e, t) {
|
|
53
61
|
let n = r(t);
|
|
54
62
|
if (n == null) return t;
|
|
55
63
|
let i = Object.assign({}, n);
|
|
56
64
|
return i.$defs == null && e.$defs != null && (i.$defs = e.$defs), i.definitions == null && e.definitions != null && (i.definitions = e.definitions), i;
|
|
57
65
|
}
|
|
58
|
-
function
|
|
59
|
-
for (let n of
|
|
66
|
+
function l(e, t) {
|
|
67
|
+
for (let n of p(e, t)) if (typeof n.description == "string") return n.description;
|
|
60
68
|
}
|
|
61
|
-
function
|
|
62
|
-
for (let n of
|
|
69
|
+
function u(e, t, n) {
|
|
70
|
+
for (let n of p(e, t)) if (Object.hasOwn(n, "default")) return n.default;
|
|
63
71
|
return n ? null : void 0;
|
|
64
72
|
}
|
|
65
|
-
function
|
|
73
|
+
function d(e) {
|
|
66
74
|
return Array.isArray(e) ? new Set(e.filter((e) => typeof e == "string")) : /* @__PURE__ */ new Set();
|
|
67
75
|
}
|
|
68
|
-
function
|
|
76
|
+
function f(e, t = e, n = /* @__PURE__ */ new Set()) {
|
|
69
77
|
let i = r(e);
|
|
70
78
|
if (i == null) return !1;
|
|
71
79
|
if (Object.hasOwn(i, "type")) return i.type == "null" || Array.isArray(i.type) && i.type.includes("null");
|
|
72
80
|
if (Object.hasOwn(i, "enum")) return Array.isArray(i.enum) && i.enum.includes(null);
|
|
73
|
-
for (let e of ["anyOf", "oneOf"]) if (Object.hasOwn(i, e)) return Array.isArray(i[e]) && i[e].some((e) =>
|
|
81
|
+
for (let e of ["anyOf", "oneOf"]) if (Object.hasOwn(i, e)) return Array.isArray(i[e]) && i[e].some((e) => f(e, t, n));
|
|
74
82
|
let a = typeof i.$ref == "string" ? i.$ref : void 0;
|
|
75
83
|
if (a == null || n.has(a)) return !1;
|
|
76
|
-
let o =
|
|
84
|
+
let o = m(t, a);
|
|
77
85
|
if (o === void 0) return !1;
|
|
78
86
|
let s = new Set(n);
|
|
79
|
-
return s.add(a),
|
|
87
|
+
return s.add(a), f(o, t, s);
|
|
80
88
|
}
|
|
81
|
-
function
|
|
89
|
+
function p(e, t) {
|
|
82
90
|
let n = [], i = /* @__PURE__ */ new Set(), a = t;
|
|
83
91
|
for (;;) {
|
|
84
92
|
let t = r(a);
|
|
@@ -86,12 +94,12 @@ function f(e, t) {
|
|
|
86
94
|
n.push(t);
|
|
87
95
|
let o = typeof t.$ref == "string" ? t.$ref : void 0;
|
|
88
96
|
if (o == null || i.has(o)) return n;
|
|
89
|
-
let s =
|
|
97
|
+
let s = m(e, o);
|
|
90
98
|
if (s === void 0) return n;
|
|
91
99
|
i.add(o), a = s;
|
|
92
100
|
}
|
|
93
101
|
}
|
|
94
|
-
function
|
|
102
|
+
function m(e, t) {
|
|
95
103
|
if (t == "#") return e;
|
|
96
104
|
if (!t.startsWith("#/")) return;
|
|
97
105
|
let n = e;
|
|
@@ -103,4 +111,4 @@ function p(e, t) {
|
|
|
103
111
|
return n;
|
|
104
112
|
}
|
|
105
113
|
//#endregion
|
|
106
|
-
export { i as connectorActionPorts };
|
|
114
|
+
export { i as connectorActionPorts, a as normalizeConnectorRuntimeInputs };
|