UNPKG

@nocobase/flow-engine

Version:

A standalone flow engine for NocoBase, managing workflows, models, and actions.

62 lines (60 loc) 2.65 kB
/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var JSRecordActionRunJSContext_exports = {}; __export(JSRecordActionRunJSContext_exports, { JSRecordActionRunJSContext: () => JSRecordActionRunJSContext }); module.exports = __toCommonJS(JSRecordActionRunJSContext_exports); var import_FlowRunJSContext = require("./FlowRunJSContext"); const _JSRecordActionRunJSContext = class _JSRecordActionRunJSContext extends import_FlowRunJSContext.FlowRunJSContext { constructor(delegate) { super(delegate); this.defineProperty("record", { get: /* @__PURE__ */ __name(() => this._delegate["record"], "get") }); this.defineProperty("filterByTk", { get: /* @__PURE__ */ __name(() => this._delegate["filterByTk"], "get") }); } }; __name(_JSRecordActionRunJSContext, "JSRecordActionRunJSContext"); let JSRecordActionRunJSContext = _JSRecordActionRunJSContext; JSRecordActionRunJSContext.define({ label: "JSRecordAction RunJS context", properties: { record: "\u5F53\u524D\u8BB0\u5F55\uFF08\u53EA\u8BFB\uFF09", filterByTk: "\u4E3B\u952E/\u8FC7\u6EE4\u952E\uFF08\u53EA\u8BFB\uFF09" }, methods: { runAction: "Run action: `await ctx.runAction(name, params)`", message: "Message API" }, snipastes: { "Show record id": { $ref: "scene/actions/record-id-message", prefix: "sn-act-record-id" }, "Run action": { $ref: "scene/actions/run-action-basic", prefix: "sn-act-run" } } }); // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { JSRecordActionRunJSContext });