@digitalsee-ai/rcs 0.0.15 → 1.0.1
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/README.md +69 -237
- package/dist/components/digitalsee/workflow/Canvas/NextConfigModalWrapper.d.ts +9 -0
- package/dist/components/digitalsee/workflow/Canvas/NextWorkflowCanvas.d.ts +4 -0
- package/dist/components/digitalsee/workflow/Canvas/NextWorkflowCanvasHeader.d.ts +15 -0
- package/dist/components/digitalsee/workflow/Canvas/WorkflowCanvas.d.ts +1 -12
- package/dist/components/digitalsee/workflow/Canvas/WorkflowCanvasBase.d.ts +4 -0
- package/dist/components/digitalsee/workflow/Canvas/WorkflowCanvasHeader.d.ts +2 -1
- package/dist/components/digitalsee/workflow/Canvas/color.d.ts +1 -1
- package/dist/components/digitalsee/workflow/Canvas/constants.d.ts +75 -0
- package/dist/components/digitalsee/workflow/Canvas/hooks/createNodeAddHandlerNext.d.ts +49 -0
- package/dist/components/digitalsee/workflow/Canvas/hooks/useCanvasApi.d.ts +22 -0
- package/dist/components/digitalsee/workflow/Canvas/hooks/useDataLoading.d.ts +21 -0
- package/dist/components/digitalsee/workflow/Canvas/hooks/useNodeAddCallback.d.ts +44 -0
- package/dist/components/digitalsee/workflow/Canvas/hooks/useNodeFormDraftCache.d.ts +14 -0
- package/dist/components/digitalsee/workflow/Canvas/hooks/useWorkflowCanvasState.d.ts +78 -0
- package/dist/components/digitalsee/workflow/Canvas/types.d.ts +91 -0
- package/dist/components/digitalsee/workflow/Edges/BaseEdge.d.ts +3 -2
- package/dist/components/digitalsee/workflow/Edges/EdgeFactory.d.ts +43 -0
- package/dist/components/digitalsee/workflow/NextNodesConfigModal/index.d.ts +13 -0
- package/dist/components/digitalsee/workflow/Nodes/ActionNode.d.ts +3 -3
- package/dist/components/digitalsee/workflow/Nodes/AgentNode.d.ts +2 -2
- package/dist/components/digitalsee/workflow/Nodes/BrowserNode.d.ts +2 -2
- package/dist/components/digitalsee/workflow/Nodes/CustomNode.d.ts +2 -2
- package/dist/components/digitalsee/workflow/Nodes/NextNodeFactory.d.ts +11 -0
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextActionNode.d.ts +9 -0
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextBaseNode.d.ts +15 -0
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextConditionNode.d.ts +10 -0
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextLoopNode.d.ts +10 -0
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextSwitchNode.d.ts +10 -0
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextTriggerNode.d.ts +9 -0
- package/dist/components/digitalsee/workflow/Nodes/NodeFactory.d.ts +3 -12
- package/dist/components/digitalsee/workflow/Nodes/StickyNoteNode.d.ts +2 -2
- package/dist/components/digitalsee/workflow/Nodes/SuperBaseNode.d.ts +1 -1
- package/dist/components/digitalsee/workflow/Nodes/components/NextNodeDescription.d.ts +16 -0
- package/dist/components/digitalsee/workflow/Nodes/components/NextNodeOperations.d.ts +11 -0
- package/dist/components/digitalsee/workflow/Nodes/components/NodeOperations.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/ActionNodeConfig/index.d.ts +7 -1
- package/dist/components/digitalsee/workflow/NodesConfig/ConditionNodeConfig/index.d.ts +5 -4
- package/dist/components/digitalsee/workflow/NodesConfig/ErrorHandler.d.ts +17 -2
- package/dist/components/digitalsee/workflow/NodesConfig/LoopNodeConfig/index.d.ts +2 -3
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/CreateCredentialModal.d.ts +13 -0
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/CredentialSelect.d.ts +17 -0
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/ModifyCredentialModal.d.ts +17 -0
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/fieldSchemaAdapter.d.ts +10 -0
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/fieldSchemaAdapter.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/index.d.ts +15 -0
- package/dist/components/digitalsee/workflow/NodesConfig/SwitchNodeConfig/index.d.ts +6 -5
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/CreateAccountModal/index.d.ts +2 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/CredentialAccountForm.d.ts +10 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/DateField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/DateTimeField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/ExtendObjectField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/FixedObjectField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/PasswordField/index.d.ts +2 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/TextAreaField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/TextField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/TimeField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/ModifyAccountModal/index.d.ts +3 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/index.d.ts +5 -3
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/components/AIFormField.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/DateField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/DateTimeField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/FixedObjectField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/HourMinuteField/index.d.ts +5 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/common-placeholder-theme.d.ts +11 -11
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavascriptTagEditorField/editor.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/interface.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/keywords.d.ts +2 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/common-placeholder-theme.d.ts +11 -11
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/interface.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/keywords.d.ts +2 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/keywords.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{MutilRowAIExtractConfigField → MultiRowAIExtractConfigField}/index.d.ts +2 -2
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/RichTagInput/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/RichTagInput/useVariableInfo.d.ts +13 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/TextField/index.d.ts +2 -2
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/TimeField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/index.d.ts +3 -3
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/next-compatible.d.ts +2 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/next-compatible.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/NextNodeSettings.d.ts +6 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/NextNodeTest.d.ts +6 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/NextVariableModal/index.d.ts +6 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/NextVariableModal/variable-tree-next.d.ts +49 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/NextVariableModal/variable-tree-next.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/VariableModal/index.d.ts +2 -1
- package/dist/components/digitalsee/workflow/NodesConfig/context.d.ts +4 -0
- package/dist/components/digitalsee/workflow/NodesConfig/define/actions.d.ts +3 -3
- package/dist/components/digitalsee/workflow/NodesConfig/define/condition.d.ts +5 -58
- package/dist/components/digitalsee/workflow/NodesConfig/define/condition.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/define/flow.d.ts +1 -26
- package/dist/components/digitalsee/workflow/NodesConfig/index.d.ts +3 -6
- package/dist/components/digitalsee/workflow/NodesConfig/utils/credentialRequirement.d.ts +17 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/CategoryTabs.d.ts +1 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/types.d.ts +17 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/dataTransformers.d.ts +2 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/dataTransformers.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/Panels/SimpleNodeSelectorPanel/components/NodeListItem.d.ts +8 -0
- package/dist/components/digitalsee/workflow/Panels/SimpleNodeSelectorPanel/hooks/useNodeList.d.ts +14 -0
- package/dist/components/digitalsee/workflow/Panels/SimpleNodeSelectorPanel/index.d.ts +9 -0
- package/dist/components/digitalsee/workflow/api/dip.d.ts +311 -0
- package/dist/components/digitalsee/workflow/api/dip.types.d.ts +996 -0
- package/dist/components/digitalsee/workflow/api/index.d.ts +38 -13
- package/dist/components/digitalsee/workflow/api/index.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/builtin/controls/MultiRowGuard/index.d.ts +13 -0
- package/dist/components/digitalsee/workflow/builtin/controls/{MutilRowGuard → MultiRowGuard}/types.d.ts +15 -23
- package/dist/components/digitalsee/workflow/builtin/controls/MutilRowGuard/index.d.ts +9 -9
- package/dist/components/digitalsee/workflow/builtin/globalConfig/index.d.ts +1 -0
- package/dist/components/digitalsee/workflow/builtin/globalConfig/service.d.ts +8 -0
- package/dist/components/digitalsee/workflow/builtin/globalConfig/service.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/builtin/globalConfig/types.d.ts +17 -0
- package/dist/components/digitalsee/workflow/config/globalConfig.d.ts +1 -1
- package/dist/components/digitalsee/workflow/constants/nextHandles.d.ts +1 -0
- package/dist/components/digitalsee/workflow/enums/canvas.d.ts +63 -0
- package/dist/components/digitalsee/workflow/enums/edge.d.ts +10 -0
- package/dist/components/digitalsee/workflow/enums/handle.d.ts +42 -0
- package/dist/components/digitalsee/workflow/enums/index.d.ts +5 -0
- package/dist/components/digitalsee/workflow/enums/node.d.ts +199 -0
- package/dist/components/digitalsee/workflow/enums/workflow.d.ts +90 -0
- package/dist/components/digitalsee/workflow/events/eventBus.d.ts +8 -2
- package/dist/components/digitalsee/workflow/hooks/use-before-unload.d.ts +1 -1
- package/dist/components/digitalsee/workflow/hooks/useCanvasLayout.d.ts +2 -1
- package/dist/components/digitalsee/workflow/hooks/useHandleConnections.d.ts +1 -1
- package/dist/components/digitalsee/workflow/hooks/usePanel.d.ts +26 -0
- package/dist/components/digitalsee/workflow/hooks/useVariables.d.ts +52 -0
- package/dist/components/digitalsee/workflow/hooks/useWorkflow.d.ts +3 -3
- package/dist/components/digitalsee/workflow/index.d.ts +23 -6
- package/dist/components/digitalsee/workflow/store/index.d.ts +17 -0
- package/dist/components/digitalsee/workflow/store/panelSlice.d.ts +5 -5
- package/dist/components/digitalsee/workflow/store/workflowSlice.d.ts +44 -0
- package/dist/components/digitalsee/workflow/store/workflowSlice.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/types/Edge.d.ts +1 -3
- package/dist/components/digitalsee/workflow/types/Handle.d.ts +3 -29
- package/dist/components/digitalsee/workflow/types/Node.d.ts +25 -63
- package/dist/components/digitalsee/workflow/types/NodeProtocol.d.ts +1 -12
- package/dist/components/digitalsee/workflow/types/Workflow.d.ts +4 -26
- package/dist/components/digitalsee/workflow/types/engine.d.ts +9 -0
- package/dist/components/digitalsee/workflow/utils/common.d.ts +1 -0
- package/dist/components/digitalsee/workflow/utils/flowDataAdapterNext.d.ts +13 -0
- package/dist/components/digitalsee/workflow/utils/glob.d.ts +1 -1
- package/dist/components/digitalsee/workflow/utils/layoutUtils.d.ts +2 -3
- package/dist/components/digitalsee/workflow/utils/mergeConfig.d.ts +3 -6
- package/dist/components/digitalsee/workflow/utils/nextNodeSchemaCache.d.ts +6 -0
- package/dist/components/digitalsee/workflow/utils/nextNodeSchemaCache.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/utils/nodeDataFormatter.d.ts +1 -1
- package/dist/components/digitalsee/workflow/utils/nodeDataFormatterNext.d.ts +11 -0
- package/dist/components/digitalsee/workflow/utils/nodeSummaryAdapter.d.ts +15 -0
- package/dist/components/dynamic-form/DynamicForm.d.ts +8 -3
- package/dist/components/dynamic-form/DynamicForm.test.d.ts +1 -0
- package/dist/components/dynamic-form/DynamicFormContext.d.ts +4 -0
- package/dist/components/dynamic-form/FieldRenderer.d.ts +6 -2
- package/dist/components/dynamic-form/components/ValueModeWrapper/index.d.ts +7 -1
- package/dist/components/dynamic-form/components/VariableInput/index.d.ts +1 -0
- package/dist/components/dynamic-form/fields/complex/KeyValueField.test.d.ts +1 -0
- package/dist/components/dynamic-form/fields/index.d.ts +12 -0
- package/dist/components/dynamic-form/index.d.ts +6 -6
- package/dist/components/dynamic-form/registry/createFieldComponent.test.d.ts +1 -0
- package/dist/components/dynamic-form/registry/index.d.ts +2 -2
- package/dist/components/dynamic-form/types/field-component.d.ts +12 -3
- package/dist/locales/en-US/common.d.ts +8 -17
- package/dist/locales/en-US/components.d.ts +28 -0
- package/dist/locales/en-US/link/flow.d.ts +9 -5
- package/dist/locales/en-US.d.ts +42 -22
- package/dist/locales/index.d.ts +2 -714
- package/dist/locales/zh-CN/common.d.ts +8 -17
- package/dist/locales/zh-CN/components.d.ts +28 -0
- package/dist/locales/zh-CN/link/flow.d.ts +9 -5
- package/dist/locales/zh-CN.d.ts +42 -22
- package/dist/locales/zh-TW/common.d.ts +8 -17
- package/dist/locales/zh-TW/components.d.ts +28 -0
- package/dist/locales/zh-TW/link/flow.d.ts +9 -5
- package/dist/locales/zh-TW.d.ts +42 -22
- package/dist/postcss.config.js +1 -0
- package/dist/rcs.css +1 -1
- package/dist/rcs.es.js +55726 -50708
- package/dist/rcs.es.js.map +1 -0
- package/dist/rcs.umd.js +68 -67
- package/dist/rcs.umd.js.map +1 -0
- package/package.json +148 -151
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/HourMiniuteField/index.d.ts +0 -5
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/editor.d.ts +0 -1
- package/dist/components/digitalsee/workflow/NodesConfig/define/config-form-item.d.ts +0 -40
- package/dist/components/digitalsee/workflow/de.d.ts +0 -1
- package/dist/components/digitalsee/workflow/types/SaveStatus.d.ts +0 -1
- /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/extensions.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/index.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/base-theme.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/custom-completions.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/functions.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/hint.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/placeholders.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/hooks/{use-wokflow-id.d.ts → use-workflow-id.d.ts} +0 -0
|
@@ -1,26 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
/**
|
|
3
|
-
* 未发布
|
|
4
|
-
*/
|
|
5
|
-
UNPUBLISHED = "UNPUBLISHED",
|
|
6
|
-
/**
|
|
7
|
-
* 已上线
|
|
8
|
-
*/
|
|
9
|
-
ONLINE = "ONLINE",
|
|
10
|
-
/**
|
|
11
|
-
* 已下线
|
|
12
|
-
*/
|
|
13
|
-
OFFLINE = "OFFLINE",
|
|
14
|
-
/**
|
|
15
|
-
* 未发布
|
|
16
|
-
*/
|
|
17
|
-
ON_WARN = "ON_WARN",
|
|
18
|
-
/**
|
|
19
|
-
* 未发布
|
|
20
|
-
*/
|
|
21
|
-
OFF_WARN = "OFF_WARN",
|
|
22
|
-
/**
|
|
23
|
-
* 上线中
|
|
24
|
-
*/
|
|
25
|
-
ONLINE_ING = "ONLINE_ING"
|
|
26
|
-
}
|
|
1
|
+
export { WorkflowOpStatus as FlowStatus } from '../../enums/workflow';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EventEmitter } from 'ahooks/lib/useEventEmitter';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
1
|
import { NodeType } from '../types/Node';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { DrawerContext } from './context';
|
|
4
4
|
interface NodesConfigModalProps {
|
|
5
5
|
visible: boolean;
|
|
6
6
|
onClose: () => void;
|
|
@@ -9,8 +9,5 @@ interface NodesConfigModalProps {
|
|
|
9
9
|
nodeId?: string;
|
|
10
10
|
nodeInternalData?: any;
|
|
11
11
|
}
|
|
12
|
-
export
|
|
13
|
-
event$: EventEmitter<any>;
|
|
14
|
-
}>;
|
|
12
|
+
export { DrawerContext };
|
|
15
13
|
export declare const NodesConfigModal: React.FC<NodesConfigModalProps>;
|
|
16
|
-
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DipCredentialRequirement } from '../../api/dip';
|
|
2
|
+
export interface CredentialRequirementLike extends Partial<Omit<DipCredentialRequirement, 'required'>> {
|
|
3
|
+
key?: string;
|
|
4
|
+
credentialKey?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
displayName?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface NormalizedCredentialRequirement {
|
|
11
|
+
key: string;
|
|
12
|
+
label: string;
|
|
13
|
+
required: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function normalizeCredentialRequirement(requirement: CredentialRequirementLike | null | undefined): NormalizedCredentialRequirement | null;
|
|
16
|
+
export declare function normalizeCredentialRequirements(requirements?: CredentialRequirementLike[] | null): NormalizedCredentialRequirement[];
|
|
17
|
+
export declare function getPrimaryCredentialKey(requirements?: CredentialRequirementLike[] | null): string | undefined;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DipNodeSchema } from '../../api/dip';
|
|
1
2
|
import { NodeType } from '../../types/Node';
|
|
2
3
|
/**
|
|
3
4
|
* 节点类型定义
|
|
@@ -22,6 +23,8 @@ export interface NodeTypeItem {
|
|
|
22
23
|
defaultExpanded?: boolean;
|
|
23
24
|
matchType?: 'CONNECTOR_ONL' | 'CONNECTOR_ONLY' | 'ACTION_ONLY' | 'BOTH_MATCHED' | 'BOTH' | string;
|
|
24
25
|
connector?: ConnectorInfo;
|
|
26
|
+
/** DIP 节点版本号(Next 模式使用) */
|
|
27
|
+
nodeVersion?: number;
|
|
25
28
|
}
|
|
26
29
|
/**
|
|
27
30
|
* 节点数据查询结果
|
|
@@ -40,6 +43,8 @@ export interface ActionItem {
|
|
|
40
43
|
id: string;
|
|
41
44
|
type: NodeType;
|
|
42
45
|
action_type: NodeType;
|
|
46
|
+
action_key?: string;
|
|
47
|
+
action_ver?: number;
|
|
43
48
|
name: string;
|
|
44
49
|
icon?: string;
|
|
45
50
|
description: string;
|
|
@@ -48,6 +53,15 @@ export interface ActionItem {
|
|
|
48
53
|
action_name: string;
|
|
49
54
|
connector_name: string;
|
|
50
55
|
config_schema?: any;
|
|
56
|
+
node_schema?: DipNodeSchema;
|
|
57
|
+
/** NEXT 兼容节点 key(Classic 模式下由 action_key 映射) */
|
|
58
|
+
nodeKey?: string;
|
|
59
|
+
/** DIP 节点版本号(Next 模式使用,来自 DipNodeSummary.version) */
|
|
60
|
+
nodeVersion?: number;
|
|
61
|
+
/** 节点分类(Next 模式用于匹配节点配置) */
|
|
62
|
+
category?: string;
|
|
63
|
+
/** 是否为动作节点 */
|
|
64
|
+
isAction?: boolean;
|
|
51
65
|
}
|
|
52
66
|
/**
|
|
53
67
|
* 连接器信息
|
|
@@ -87,7 +101,8 @@ export interface CategoryItem {
|
|
|
87
101
|
*/
|
|
88
102
|
export interface ApiActionItem {
|
|
89
103
|
id: string;
|
|
90
|
-
action_key
|
|
104
|
+
action_key?: string;
|
|
105
|
+
action_ver?: number;
|
|
91
106
|
is_trigger: number;
|
|
92
107
|
name: string;
|
|
93
108
|
description: string | null;
|
|
@@ -95,6 +110,7 @@ export interface ApiActionItem {
|
|
|
95
110
|
status: number;
|
|
96
111
|
protocol: string;
|
|
97
112
|
config_schema: any;
|
|
113
|
+
node_schema?: DipNodeSchema;
|
|
98
114
|
sample_output: any;
|
|
99
115
|
node_struct: string;
|
|
100
116
|
action_type: string | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { LinkSearchParams, NodeFetchResult } from '../types';
|
|
1
|
+
import { ActionItem, ApiActionItem, ConnectorInfo, LinkSearchParams, NodeFetchResult } from '../types';
|
|
2
|
+
export declare const transformAction: (action: ApiActionItem, connector: ConnectorInfo) => ActionItem;
|
|
2
3
|
export declare const fetchNodesByCategory: (params?: LinkSearchParams) => Promise<NodeFetchResult>;
|
|
3
4
|
export declare const fetchCategories: (type?: "trigger" | "action" | "tool" | "mcp" | "model" | "memory") => Promise<import('../types').CategoryItem[] | {
|
|
4
5
|
id: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DipNodeSummary } from '../../../api/dip';
|
|
3
|
+
interface NodeListItemProps {
|
|
4
|
+
node: DipNodeSummary;
|
|
5
|
+
onSelect: (node: DipNodeSummary) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const NodeListItem: React.FC<NodeListItemProps>;
|
|
8
|
+
export default NodeListItem;
|
package/dist/components/digitalsee/workflow/Panels/SimpleNodeSelectorPanel/hooks/useNodeList.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DipNodeSummary } from '../../../api/dip';
|
|
2
|
+
interface NodeGroup {
|
|
3
|
+
pluginId: string;
|
|
4
|
+
nodes: DipNodeSummary[];
|
|
5
|
+
}
|
|
6
|
+
export declare function useNodeList(visible: boolean): {
|
|
7
|
+
allNodes: DipNodeSummary[];
|
|
8
|
+
filteredNodes: DipNodeSummary[];
|
|
9
|
+
groupedNodes: NodeGroup[];
|
|
10
|
+
loading: boolean;
|
|
11
|
+
searchText: string;
|
|
12
|
+
setSearchText: import('react').Dispatch<import('react').SetStateAction<string>>;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { DipCredentialInstanceEntity, DipCredentialSchema, DipNodeExecutionEntity, DipNodeSchema, DipNodeSummary, DipNodeTestRequest, DipNodeTestResult, DipPluginSummary, DipWorkflowDefinition, DipWorkflowDefinitionEntity, DipWorkflowExecutionEntity, DipImportExecuteRequest, DipImportValidationResult, DipWorkflowExportData } from './dip.types';
|
|
2
|
+
export type * from './dip.types';
|
|
3
|
+
/**
|
|
4
|
+
* 获取工作流详情
|
|
5
|
+
*
|
|
6
|
+
* 对应后端 `WorkflowController.getWorkflow`
|
|
7
|
+
* @param id - 工作流 ID(UUID)
|
|
8
|
+
* @returns 工作流完整定义实体
|
|
9
|
+
* @see GET /api/workflows/{id}
|
|
10
|
+
*/
|
|
11
|
+
export declare function dipGetWorkflow(id: string): Promise<DipWorkflowDefinitionEntity>;
|
|
12
|
+
/**
|
|
13
|
+
* 获取所有工作流列表
|
|
14
|
+
*
|
|
15
|
+
* 对应后端 `WorkflowController.listWorkflows`
|
|
16
|
+
* @returns 工作流定义实体数组
|
|
17
|
+
* @see GET /api/workflows
|
|
18
|
+
*/
|
|
19
|
+
export declare function dipGetWorkflows(): Promise<DipWorkflowDefinitionEntity[]>;
|
|
20
|
+
/**
|
|
21
|
+
* 更新工作流(整体保存)
|
|
22
|
+
*
|
|
23
|
+
* 对应后端 `WorkflowController.updateWorkflow`,采用整体替换策略。
|
|
24
|
+
* 建议传入当前 `version` 用于乐观锁校验。
|
|
25
|
+
*
|
|
26
|
+
* @param id - 工作流 ID(UUID)
|
|
27
|
+
* @param data - 工作流定义(支持部分字段更新)
|
|
28
|
+
* @returns 更新后的工作流完整实体
|
|
29
|
+
* @see PUT /api/workflows/{id}
|
|
30
|
+
*/
|
|
31
|
+
export declare function dipUpdateWorkflow(id: string, data: DipWorkflowDefinition): Promise<DipWorkflowDefinitionEntity>;
|
|
32
|
+
/**
|
|
33
|
+
* 创建新工作流
|
|
34
|
+
*
|
|
35
|
+
* 对应后端 `WorkflowController.createWorkflow`
|
|
36
|
+
* @param data - 工作流初始定义
|
|
37
|
+
* @returns 创建后的工作流完整实体(含服务端生成的 id、version 等)
|
|
38
|
+
* @see POST /api/workflows
|
|
39
|
+
*/
|
|
40
|
+
export declare function dipCreateWorkflow(data: DipWorkflowDefinition): Promise<DipWorkflowDefinitionEntity>;
|
|
41
|
+
/**
|
|
42
|
+
* 删除工作流
|
|
43
|
+
*
|
|
44
|
+
* 对应后端 `WorkflowController.deleteWorkflow`
|
|
45
|
+
* @param id - 工作流 ID(UUID)
|
|
46
|
+
* @see DELETE /api/workflows/{id}
|
|
47
|
+
*/
|
|
48
|
+
export declare function dipDeleteWorkflow(id: string): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* 激活工作流
|
|
51
|
+
*
|
|
52
|
+
* 对应后端 `WorkflowController.activateWorkflow`。
|
|
53
|
+
* 激活后触发器(Cron / Webhook)开始生效。
|
|
54
|
+
*
|
|
55
|
+
* @param id - 工作流 ID(UUID)
|
|
56
|
+
* @returns 操作结果对象
|
|
57
|
+
* @see POST /api/workflows/{id}/activate
|
|
58
|
+
*/
|
|
59
|
+
export declare function dipActivateWorkflow(id: string): Promise<Record<string, unknown>>;
|
|
60
|
+
/**
|
|
61
|
+
* 停用工作流
|
|
62
|
+
*
|
|
63
|
+
* 对应后端 `WorkflowController.deactivateWorkflow`。
|
|
64
|
+
* 停用后触发器不再生效,但可手动触发执行。
|
|
65
|
+
*
|
|
66
|
+
* @param id - 工作流 ID(UUID)
|
|
67
|
+
* @returns 操作结果对象
|
|
68
|
+
* @see POST /api/workflows/{id}/deactivate
|
|
69
|
+
*/
|
|
70
|
+
export declare function dipDeactivateWorkflow(id: string): Promise<Record<string, unknown>>;
|
|
71
|
+
/**
|
|
72
|
+
* 获取所有节点摘要列表
|
|
73
|
+
*
|
|
74
|
+
* 对应后端 `NodeController.listNodes`,每个节点类型只返回最高版本。
|
|
75
|
+
* @returns 节点摘要数组
|
|
76
|
+
* @see GET /api/nodes
|
|
77
|
+
*/
|
|
78
|
+
export declare function dipGetNodesList(): Promise<DipNodeSummary[]>;
|
|
79
|
+
/**
|
|
80
|
+
* 获取节点 Schema 详情
|
|
81
|
+
*
|
|
82
|
+
* 对应后端 `NodeController.getNode` / `NodeController.getNodeVersion`。
|
|
83
|
+
* 不指定 version 时返回最新版本。
|
|
84
|
+
*
|
|
85
|
+
* @param nodeKey - 节点类型标识,如 `"slack.sendMessage"`
|
|
86
|
+
* @param version - 可选的指定版本号,不传则返回最新版本
|
|
87
|
+
* @returns 节点 Schema 完整定义(含输入字段、输出字段、端口等)
|
|
88
|
+
* @see GET /api/nodes/{nodeKey}
|
|
89
|
+
* @see GET /api/nodes/{nodeKey}/{version}
|
|
90
|
+
*/
|
|
91
|
+
export declare function dipGetNodeSchema(nodeKey: string, version?: number): Promise<DipNodeSchema>;
|
|
92
|
+
/**
|
|
93
|
+
* 执行单节点测试(无状态设计)
|
|
94
|
+
*
|
|
95
|
+
* 对应后端 `NodeTestController.testNode`。后端完全无状态,前端需自行管理
|
|
96
|
+
* 测试历史,并在每次调用时通过 `contextNodes` 传递其他节点的输出。
|
|
97
|
+
*
|
|
98
|
+
* @param request - 节点测试请求参数
|
|
99
|
+
* @returns 节点测试结果(含 outputData、resolvedParams、executionTimeMs)
|
|
100
|
+
* @see POST /api/nodes/test
|
|
101
|
+
* @see docs/reference/node-test-api.md
|
|
102
|
+
*/
|
|
103
|
+
export declare function dipTestNode(request: DipNodeTestRequest): Promise<DipNodeTestResult>;
|
|
104
|
+
/**
|
|
105
|
+
* 获取所有已加载插件列表
|
|
106
|
+
*
|
|
107
|
+
* 对应后端 `PluginController.listPlugins`
|
|
108
|
+
* @returns 插件摘要数组
|
|
109
|
+
* @see GET /api/plugins
|
|
110
|
+
*/
|
|
111
|
+
export declare function dipGetPlugins(): Promise<DipPluginSummary[]>;
|
|
112
|
+
/**
|
|
113
|
+
* 获取指定插件提供的节点列表
|
|
114
|
+
*
|
|
115
|
+
* 对应后端 `PluginController.listPluginNodes`,每个节点类型只返回最高版本。
|
|
116
|
+
* @param pluginId - 插件标识
|
|
117
|
+
* @returns 该插件提供的节点摘要数组
|
|
118
|
+
* @see GET /api/plugins/{pluginId}/nodes
|
|
119
|
+
*/
|
|
120
|
+
export declare function dipGetPluginNodes(pluginId: string): Promise<DipNodeSummary[]>;
|
|
121
|
+
/**
|
|
122
|
+
* 获取凭据 Schema 详情
|
|
123
|
+
*
|
|
124
|
+
* 对应后端 `CredentialController.getCredential`,返回最新版本。
|
|
125
|
+
* @param credentialKey - 凭据类型标识
|
|
126
|
+
* @returns 凭据 Schema 完整定义(含配置字段列表)
|
|
127
|
+
* @see GET /api/credentials/{credentialKey}
|
|
128
|
+
*/
|
|
129
|
+
export declare function dipGetCredentialSchema(credentialKey: string): Promise<DipCredentialSchema>;
|
|
130
|
+
/**
|
|
131
|
+
* 获取所有凭据实例列表
|
|
132
|
+
*
|
|
133
|
+
* 对应后端 `CredentialInstanceController.listInstances`
|
|
134
|
+
* @returns 凭据实例数组(不含明文 data)
|
|
135
|
+
* @see GET /api/credential-instances
|
|
136
|
+
*/
|
|
137
|
+
export declare function dipGetCredentialInstances(): Promise<DipCredentialInstanceEntity[]>;
|
|
138
|
+
/**
|
|
139
|
+
* 按凭据类型获取凭据实例列表
|
|
140
|
+
*
|
|
141
|
+
* 对应后端 `CredentialInstanceController.listByKey`,
|
|
142
|
+
* 用于节点配置时筛选可用的凭据实例。
|
|
143
|
+
*
|
|
144
|
+
* @param credentialKey - 凭据类型标识,引用 {@link DipCredentialSchema.key}
|
|
145
|
+
* @returns 该类型下的凭据实例数组
|
|
146
|
+
* @see GET /api/credential-instances/by-key/{credentialKey}
|
|
147
|
+
*/
|
|
148
|
+
export declare function dipGetCredentialInstancesByKey(credentialKey: string): Promise<DipCredentialInstanceEntity[]>;
|
|
149
|
+
/**
|
|
150
|
+
* 创建凭据实例
|
|
151
|
+
*
|
|
152
|
+
* 对应后端 `CredentialInstanceController.createInstance`。
|
|
153
|
+
* 提交的 `data` 会在服务端加密存储。
|
|
154
|
+
*
|
|
155
|
+
* @param data - 凭据实例创建参数
|
|
156
|
+
* @param data.name - 凭据实例名称(用户自定义)
|
|
157
|
+
* @param data.credentialKey - 关联的凭据 Schema key
|
|
158
|
+
* @param data.credentialVersion - 关联的凭据 Schema 版本号
|
|
159
|
+
* @param data.data - 凭据配置数据(明文,服务端加密存储)
|
|
160
|
+
* @returns 创建后的凭据实例实体
|
|
161
|
+
* @see POST /api/credential-instances
|
|
162
|
+
*/
|
|
163
|
+
export declare function dipCreateCredentialInstance(data: {
|
|
164
|
+
name: string;
|
|
165
|
+
credentialKey: string;
|
|
166
|
+
credentialVersion: number;
|
|
167
|
+
data: Record<string, unknown>;
|
|
168
|
+
}): Promise<DipCredentialInstanceEntity>;
|
|
169
|
+
/**
|
|
170
|
+
* 测试凭据实例连接
|
|
171
|
+
*
|
|
172
|
+
* 对应后端 `CredentialInstanceController.testInstance`,
|
|
173
|
+
* 使用已保存的凭据数据尝试连接目标服务。
|
|
174
|
+
*
|
|
175
|
+
* @param id - 凭据实例 ID(UUID)
|
|
176
|
+
* @returns 测试结果(成功/失败及消息)
|
|
177
|
+
* @see POST /api/credential-instances/{id}/test
|
|
178
|
+
*/
|
|
179
|
+
export declare function dipTestCredentialInstance(id: string): Promise<Record<string, any>>;
|
|
180
|
+
/**
|
|
181
|
+
* 获取凭据实例详情
|
|
182
|
+
*
|
|
183
|
+
* 对应后端 `CredentialInstanceController.getInstance`。
|
|
184
|
+
* 返回实例的完整信息(含加密后的 data 字段)。
|
|
185
|
+
*
|
|
186
|
+
* @param id - 凭据实例 ID(UUID)
|
|
187
|
+
* @returns 凭据实例实体
|
|
188
|
+
* @see GET /api/credential-instances/{id}
|
|
189
|
+
*/
|
|
190
|
+
export declare function dipGetCredentialInstance(id: string): Promise<DipCredentialInstanceEntity>;
|
|
191
|
+
/**
|
|
192
|
+
* 更新凭据实例
|
|
193
|
+
*
|
|
194
|
+
* 对应后端 `CredentialInstanceController.updateInstance`。
|
|
195
|
+
* 支持部分更新,只需传入需要修改的字段。
|
|
196
|
+
*
|
|
197
|
+
* @param id - 凭据实例 ID(UUID)
|
|
198
|
+
* @param data - 更新内容(name 和/或 data)
|
|
199
|
+
* @returns 更新后的凭据实例实体
|
|
200
|
+
* @see PUT /api/credential-instances/{id}
|
|
201
|
+
*/
|
|
202
|
+
export declare function dipUpdateCredentialInstance(id: string, data: {
|
|
203
|
+
name?: string;
|
|
204
|
+
data?: Record<string, unknown>;
|
|
205
|
+
}): Promise<DipCredentialInstanceEntity>;
|
|
206
|
+
/**
|
|
207
|
+
* 删除凭据实例
|
|
208
|
+
*
|
|
209
|
+
* 对应后端 `CredentialInstanceController.deleteInstance`。
|
|
210
|
+
*
|
|
211
|
+
* @param id - 凭据实例 ID(UUID)
|
|
212
|
+
* @see DELETE /api/credential-instances/{id}
|
|
213
|
+
*/
|
|
214
|
+
export declare function dipDeleteCredentialInstance(id: string): Promise<void>;
|
|
215
|
+
/**
|
|
216
|
+
* 同步触发工作流执行
|
|
217
|
+
*
|
|
218
|
+
* 对应后端 `ExecutionController.triggerWorkflow`。
|
|
219
|
+
* 同步等待工作流执行完成后返回结果。
|
|
220
|
+
*
|
|
221
|
+
* @param workflowId - 工作流 ID(UUID)
|
|
222
|
+
* @param inputData - 可选的触发输入数据,传递给工作流的触发节点
|
|
223
|
+
* @returns 执行结果对象
|
|
224
|
+
* @see POST /api/executions/trigger/{workflowId}
|
|
225
|
+
*/
|
|
226
|
+
export declare function dipTriggerWorkflow(workflowId: string, inputData?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
227
|
+
/**
|
|
228
|
+
* 异步触发工作流执行
|
|
229
|
+
*
|
|
230
|
+
* 对应后端 `ExecutionController.triggerWorkflowAsync`。
|
|
231
|
+
* 立即返回执行 ID,工作流在后台异步执行。可通过 {@link dipGetExecution} 轮询状态。
|
|
232
|
+
*
|
|
233
|
+
* @param workflowId - 工作流 ID(UUID)
|
|
234
|
+
* @param inputData - 可选的触发输入数据
|
|
235
|
+
* @returns 执行结果对象
|
|
236
|
+
* @see POST /api/executions/trigger/{workflowId}/async
|
|
237
|
+
*/
|
|
238
|
+
export declare function dipTriggerWorkflowAsync(workflowId: string, inputData?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
239
|
+
/**
|
|
240
|
+
* 获取执行记录详情
|
|
241
|
+
*
|
|
242
|
+
* 对应后端 `ExecutionController.getExecution`
|
|
243
|
+
* @param executionId - 执行记录 ID(UUID)
|
|
244
|
+
* @returns 工作流执行记录
|
|
245
|
+
* @see GET /api/executions/{executionId}
|
|
246
|
+
*/
|
|
247
|
+
export declare function dipGetExecution(executionId: string): Promise<DipWorkflowExecutionEntity>;
|
|
248
|
+
/**
|
|
249
|
+
* 获取执行中各节点的执行详情
|
|
250
|
+
*
|
|
251
|
+
* 对应后端 `ExecutionController.getExecutionNodes`
|
|
252
|
+
* @param executionId - 执行记录 ID(UUID)
|
|
253
|
+
* @returns 节点执行记录数组(含每个节点的输入/输出数据)
|
|
254
|
+
* @see GET /api/executions/{executionId}/nodes
|
|
255
|
+
*/
|
|
256
|
+
export declare function dipGetExecutionNodes(executionId: string): Promise<DipNodeExecutionEntity[]>;
|
|
257
|
+
/**
|
|
258
|
+
* 获取工作流的执行历史记录
|
|
259
|
+
*
|
|
260
|
+
* 对应后端 `ExecutionController.getWorkflowExecutions`
|
|
261
|
+
* @param workflowId - 工作流 ID(UUID)
|
|
262
|
+
* @returns 该工作流的所有执行记录
|
|
263
|
+
* @see GET /api/executions/workflow/{workflowId}
|
|
264
|
+
*/
|
|
265
|
+
export declare function dipGetWorkflowExecutions(workflowId: string): Promise<DipWorkflowExecutionEntity[]>;
|
|
266
|
+
/**
|
|
267
|
+
* 取消正在执行的工作流
|
|
268
|
+
*
|
|
269
|
+
* 对应后端 `ExecutionController.cancelExecution`。
|
|
270
|
+
* 仅对状态为 RUNNING 的执行有效。
|
|
271
|
+
*
|
|
272
|
+
* @param executionId - 执行记录 ID(UUID)
|
|
273
|
+
* @returns 操作结果对象
|
|
274
|
+
* @see POST /api/executions/{executionId}/cancel
|
|
275
|
+
*/
|
|
276
|
+
export declare function dipCancelExecution(executionId: string): Promise<Record<string, unknown>>;
|
|
277
|
+
/**
|
|
278
|
+
* 导出工作流为 JSON
|
|
279
|
+
*
|
|
280
|
+
* 对应后端 `WorkflowController.exportWorkflow`,
|
|
281
|
+
* 返回包含工作流定义及关联凭据信息的完整导出数据。
|
|
282
|
+
*
|
|
283
|
+
* @param id - 工作流 ID(UUID)
|
|
284
|
+
* @returns 导出的工作流 JSON 数据
|
|
285
|
+
* @see GET /api/workflows/{id}/export
|
|
286
|
+
*/
|
|
287
|
+
export declare function dipExportWorkflow(id: string): Promise<DipWorkflowExportData>;
|
|
288
|
+
/**
|
|
289
|
+
* 校验导入数据
|
|
290
|
+
*
|
|
291
|
+
* 对应后端 `WorkflowController.validateImport`,
|
|
292
|
+
* 检查导入数据的格式和完整性,返回需要映射的凭据信息。
|
|
293
|
+
*
|
|
294
|
+
* @param data - 待导入的工作流 JSON 数据
|
|
295
|
+
* @returns 校验结果(含需要映射的凭据列表)
|
|
296
|
+
* @see POST /api/workflows/import/validate
|
|
297
|
+
*/
|
|
298
|
+
export declare function dipValidateImport(data: DipWorkflowExportData): Promise<DipImportValidationResult>;
|
|
299
|
+
/**
|
|
300
|
+
* 执行工作流导入
|
|
301
|
+
*
|
|
302
|
+
* 对应后端 `WorkflowController.executeImport`,
|
|
303
|
+
* 根据凭据映射关系创建工作流及关联的凭据实例。
|
|
304
|
+
*
|
|
305
|
+
* @param data - 导入执行参数
|
|
306
|
+
* @param data.workflowJson - 导出的工作流 JSON 数据
|
|
307
|
+
* @param data.credentialMappings - 凭据映射关系(导出凭据 ref → 本地凭据实例 ID)
|
|
308
|
+
* @returns 导入后创建的工作流实体(返回类型为通用对象)
|
|
309
|
+
* @see POST /api/workflows/import/execute
|
|
310
|
+
*/
|
|
311
|
+
export declare function dipExecuteImport(data: DipImportExecuteRequest): Promise<Record<string, unknown>>;
|