summaryrefslogtreecommitdiff
path: root/node_modules/@jet/environment/models/actions
diff options
context:
space:
mode:
authorrxliuli <rxliuli@gmail.com>2025-11-04 05:03:50 +0800
committerrxliuli <rxliuli@gmail.com>2025-11-04 05:03:50 +0800
commitbce557cc2dc767628bed6aac87301a1be7c5431b (patch)
treeb51a051228d01fe3306cd7626d4a96768aadb944 /node_modules/@jet/environment/models/actions
init commit
Diffstat (limited to 'node_modules/@jet/environment/models/actions')
-rw-r--r--node_modules/@jet/environment/models/actions/alert-action.js3
-rw-r--r--node_modules/@jet/environment/models/actions/compound-action.js22
-rw-r--r--node_modules/@jet/environment/models/actions/empty-action.js21
-rw-r--r--node_modules/@jet/environment/models/actions/external-url-action.js3
-rw-r--r--node_modules/@jet/environment/models/actions/flow-action.js3
-rw-r--r--node_modules/@jet/environment/models/actions/flow-back-action.js3
-rw-r--r--node_modules/@jet/environment/models/actions/http-action.js3
-rw-r--r--node_modules/@jet/environment/models/actions/http-template-action.js3
-rw-r--r--node_modules/@jet/environment/models/actions/index.js26
-rw-r--r--node_modules/@jet/environment/models/actions/toast-action.js3
10 files changed, 90 insertions, 0 deletions
diff --git a/node_modules/@jet/environment/models/actions/alert-action.js b/node_modules/@jet/environment/models/actions/alert-action.js
new file mode 100644
index 0000000..fcc6ea5
--- /dev/null
+++ b/node_modules/@jet/environment/models/actions/alert-action.js
@@ -0,0 +1,3 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+//# sourceMappingURL=alert-action.js.map \ No newline at end of file
diff --git a/node_modules/@jet/environment/models/actions/compound-action.js b/node_modules/@jet/environment/models/actions/compound-action.js
new file mode 100644
index 0000000..6c3e159
--- /dev/null
+++ b/node_modules/@jet/environment/models/actions/compound-action.js
@@ -0,0 +1,22 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.makeCompoundAction = exports.isCompoundAction = void 0;
+/**
+ * Custom type guard to determine if an action is a CompoundAction.
+ */
+function isCompoundAction(action) {
+ return (action === null || action === void 0 ? void 0 : action.$kind) === "compoundAction";
+}
+exports.isCompoundAction = isCompoundAction;
+/**
+ * Helper that returns a CompoundAction, given an ActionMetrics and ActionModel[] of subactions.
+ */
+function makeCompoundAction(actionMetrics, subactions) {
+ return {
+ $kind: "compoundAction",
+ subactions,
+ actionMetrics,
+ };
+}
+exports.makeCompoundAction = makeCompoundAction;
+//# sourceMappingURL=compound-action.js.map \ No newline at end of file
diff --git a/node_modules/@jet/environment/models/actions/empty-action.js b/node_modules/@jet/environment/models/actions/empty-action.js
new file mode 100644
index 0000000..da7f93a
--- /dev/null
+++ b/node_modules/@jet/environment/models/actions/empty-action.js
@@ -0,0 +1,21 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.makeEmptyAction = exports.isEmptyAction = void 0;
+/**
+ * Custom type guard to determine if an action is an EmptyAction.
+ */
+function isEmptyAction(action) {
+ return (action === null || action === void 0 ? void 0 : action.$kind) === "emptyAction";
+}
+exports.isEmptyAction = isEmptyAction;
+/**
+ * Helper that returns an EmptyAction, given an ActionMetrics.
+ */
+function makeEmptyAction(actionMetrics) {
+ return {
+ $kind: "emptyAction",
+ actionMetrics,
+ };
+}
+exports.makeEmptyAction = makeEmptyAction;
+//# sourceMappingURL=empty-action.js.map \ No newline at end of file
diff --git a/node_modules/@jet/environment/models/actions/external-url-action.js b/node_modules/@jet/environment/models/actions/external-url-action.js
new file mode 100644
index 0000000..479a640
--- /dev/null
+++ b/node_modules/@jet/environment/models/actions/external-url-action.js
@@ -0,0 +1,3 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+//# sourceMappingURL=external-url-action.js.map \ No newline at end of file
diff --git a/node_modules/@jet/environment/models/actions/flow-action.js b/node_modules/@jet/environment/models/actions/flow-action.js
new file mode 100644
index 0000000..6f70d98
--- /dev/null
+++ b/node_modules/@jet/environment/models/actions/flow-action.js
@@ -0,0 +1,3 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+//# sourceMappingURL=flow-action.js.map \ No newline at end of file
diff --git a/node_modules/@jet/environment/models/actions/flow-back-action.js b/node_modules/@jet/environment/models/actions/flow-back-action.js
new file mode 100644
index 0000000..75c66a2
--- /dev/null
+++ b/node_modules/@jet/environment/models/actions/flow-back-action.js
@@ -0,0 +1,3 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+//# sourceMappingURL=flow-back-action.js.map \ No newline at end of file
diff --git a/node_modules/@jet/environment/models/actions/http-action.js b/node_modules/@jet/environment/models/actions/http-action.js
new file mode 100644
index 0000000..e1fb6c3
--- /dev/null
+++ b/node_modules/@jet/environment/models/actions/http-action.js
@@ -0,0 +1,3 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+//# sourceMappingURL=http-action.js.map \ No newline at end of file
diff --git a/node_modules/@jet/environment/models/actions/http-template-action.js b/node_modules/@jet/environment/models/actions/http-template-action.js
new file mode 100644
index 0000000..6cb84d4
--- /dev/null
+++ b/node_modules/@jet/environment/models/actions/http-template-action.js
@@ -0,0 +1,3 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+//# sourceMappingURL=http-template-action.js.map \ No newline at end of file
diff --git a/node_modules/@jet/environment/models/actions/index.js b/node_modules/@jet/environment/models/actions/index.js
new file mode 100644
index 0000000..ff961dd
--- /dev/null
+++ b/node_modules/@jet/environment/models/actions/index.js
@@ -0,0 +1,26 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __exportStar = (this && this.__exportStar) || function(m, exports) {
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+__exportStar(require("./alert-action"), exports);
+__exportStar(require("./compound-action"), exports);
+__exportStar(require("./empty-action"), exports);
+__exportStar(require("./external-url-action"), exports);
+__exportStar(require("./flow-action"), exports);
+__exportStar(require("./flow-back-action"), exports);
+__exportStar(require("./http-action"), exports);
+__exportStar(require("./http-template-action"), exports);
+__exportStar(require("./toast-action"), exports);
+//# sourceMappingURL=index.js.map \ No newline at end of file
diff --git a/node_modules/@jet/environment/models/actions/toast-action.js b/node_modules/@jet/environment/models/actions/toast-action.js
new file mode 100644
index 0000000..5d6a299
--- /dev/null
+++ b/node_modules/@jet/environment/models/actions/toast-action.js
@@ -0,0 +1,3 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+//# sourceMappingURL=toast-action.js.map \ No newline at end of file