diff --git a/specs/workflow-schema.json b/specs/workflow-schema.json index 6ef3c7d..ae72080 100644 --- a/specs/workflow-schema.json +++ b/specs/workflow-schema.json @@ -407,6 +407,292 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "if" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "tasksMaxLevel": { + "type": "number" + }, + "combineFilters": {}, + "conditions": {}, + "tasks": { + "type": "array", + "items": { + "$ref": "#/$defs/__schema0" + } + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "loop" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "list": {}, + "batchSize": { + "type": "number" + }, + "tasksMaxLevel": { + "type": "number" + }, + "tasks": { + "type": "array", + "items": { + "$ref": "#/$defs/__schema0" + } + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "while" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "combineFilters": {}, + "conditions": {}, + "maxLoop": { + "type": "number" + }, + "tasksMaxLevel": { + "type": "number" + }, + "tasks": { + "type": "array", + "items": { + "$ref": "#/$defs/__schema0" + } + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "amortization" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "tasksMaxLevel": { + "type": "number" + }, + "tasks": { + "type": "array", + "items": { + "$ref": "#/$defs/__schema0" + } + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "apportion" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "tasksMaxLevel": { + "type": "number" + }, + "tasks": { + "type": "array", + "items": { + "$ref": "#/$defs/__schema0" + } + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, { "type": "object", "properties": { @@ -708,6 +994,282 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "flow-create-task" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "specificationId": { + "type": "string" + }, + "formState": { + "type": "string" + }, + "form": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "details": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "flow-update-task" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "specificationId": { + "type": "string" + }, + "formState": { + "type": "string" + }, + "form": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "details": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "recalculate-the-approval-flow" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "flow-list" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "specificationId": { + "type": "string" + }, + "combineFilters": {}, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, { "type": "object", "properties": { @@ -1133,90 +1695,6 @@ ], "additionalProperties": {} }, - { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string", - "const": "flow-create-task" - }, - "label": { - "type": "string" - }, - "desc": { - "type": "string" - }, - "groupName": { - "type": "string" - }, - "orderIndex": { - "type": "number" - }, - "levelIndex": { - "type": "array", - "items": { - "type": "number" - } - }, - "status": { - "type": "string" - }, - "displayName": { - "type": "string" - }, - "specificationId": { - "type": "string" - }, - "formState": { - "type": "string" - }, - "form": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": { - "type": "string" - } - }, - "details": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": {} - }, - "onError": { - "type": "object", - "properties": { - "defaultAction": { - "type": "string" - } - }, - "required": [ - "defaultAction" - ], - "additionalProperties": false - } - }, - "required": [ - "name", - "type", - "label", - "groupName", - "orderIndex", - "levelIndex", - "status", - "specificationId", - "formState", - "form", - "details" - ], - "additionalProperties": {} - }, { "type": "object", "properties": { @@ -1273,6 +1751,2479 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "message-dingtalk" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receiverType": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "content": { + "type": "string" + }, + "title": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "message-feishu" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receiverType": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "content": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "feishu-sendMsg" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receiverType": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "content": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "message" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "content": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "email" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "title": { + "type": "string" + }, + "content": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "message-internet" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "title": { + "type": "string" + }, + "content": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "message-outnet" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "content": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "oa" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "content": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ai-classification" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ai-extraction" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ai-attachment" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekb-ai" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "model": { + "type": "string" + }, + "prompt": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekb-minimax-text" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "prompt": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekb-minimax-photo" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "imageUrl": { + "type": "string" + }, + "prompt": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekb-ai-pdf" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "attachmentUrl": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekb-ai-url" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "url": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "dify" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "apiKey": { + "type": "string" + }, + "inputs": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-staff-filter" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "combineFilters": {}, + "filters": { + "type": "array", + "items": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-staff-detail" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "staffId": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "staff-create" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "form": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "department-create" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "form": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "department-filter" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "combineFilters": {}, + "filters": { + "type": "array", + "items": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-department-detail" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "departmentId": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-department-update" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "departmentId": { + "type": "string" + }, + "form": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "feishu-department-filter" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "wecom-department" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "search-staff-by-role" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "roleId": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "role-update" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "excel" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "aggregation" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "list": {}, + "groupBy": {}, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "flow-format" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "task-log" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "message": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "task-dynamic-test" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "task-openapi" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "context" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "dmn" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "mapping" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ui-dialog" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ui-notification" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "output" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, { "type": "object", "properties": { @@ -1583,6 +4534,292 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "if" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "tasksMaxLevel": { + "type": "number" + }, + "combineFilters": {}, + "conditions": {}, + "tasks": { + "type": "array", + "items": { + "$ref": "#" + } + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "loop" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "list": {}, + "batchSize": { + "type": "number" + }, + "tasksMaxLevel": { + "type": "number" + }, + "tasks": { + "type": "array", + "items": { + "$ref": "#" + } + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "while" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "combineFilters": {}, + "conditions": {}, + "maxLoop": { + "type": "number" + }, + "tasksMaxLevel": { + "type": "number" + }, + "tasks": { + "type": "array", + "items": { + "$ref": "#" + } + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "amortization" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "tasksMaxLevel": { + "type": "number" + }, + "tasks": { + "type": "array", + "items": { + "$ref": "#" + } + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "apportion" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "tasksMaxLevel": { + "type": "number" + }, + "tasks": { + "type": "array", + "items": { + "$ref": "#" + } + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, { "type": "object", "properties": { @@ -1884,6 +5121,282 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "flow-create-task" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "specificationId": { + "type": "string" + }, + "formState": { + "type": "string" + }, + "form": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "details": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "flow-update-task" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "specificationId": { + "type": "string" + }, + "formState": { + "type": "string" + }, + "form": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "details": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "recalculate-the-approval-flow" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "flow-list" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "specificationId": { + "type": "string" + }, + "combineFilters": {}, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, { "type": "object", "properties": { @@ -2309,90 +5822,6 @@ ], "additionalProperties": {} }, - { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string", - "const": "flow-create-task" - }, - "label": { - "type": "string" - }, - "desc": { - "type": "string" - }, - "groupName": { - "type": "string" - }, - "orderIndex": { - "type": "number" - }, - "levelIndex": { - "type": "array", - "items": { - "type": "number" - } - }, - "status": { - "type": "string" - }, - "displayName": { - "type": "string" - }, - "specificationId": { - "type": "string" - }, - "formState": { - "type": "string" - }, - "form": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": { - "type": "string" - } - }, - "details": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": {} - }, - "onError": { - "type": "object", - "properties": { - "defaultAction": { - "type": "string" - } - }, - "required": [ - "defaultAction" - ], - "additionalProperties": false - } - }, - "required": [ - "name", - "type", - "label", - "groupName", - "orderIndex", - "levelIndex", - "status", - "specificationId", - "formState", - "form", - "details" - ], - "additionalProperties": {} - }, { "type": "object", "properties": { @@ -2449,6 +5878,2479 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "message-dingtalk" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receiverType": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "content": { + "type": "string" + }, + "title": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "message-feishu" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receiverType": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "content": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "feishu-sendMsg" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receiverType": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "content": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "message" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "content": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "email" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "title": { + "type": "string" + }, + "content": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "message-internet" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "title": { + "type": "string" + }, + "content": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "message-outnet" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "content": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "oa" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "content": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ai-classification" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ai-extraction" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ai-attachment" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekb-ai" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "model": { + "type": "string" + }, + "prompt": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekb-minimax-text" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "prompt": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekb-minimax-photo" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "imageUrl": { + "type": "string" + }, + "prompt": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekb-ai-pdf" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "attachmentUrl": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekb-ai-url" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "url": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "dify" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "apiKey": { + "type": "string" + }, + "inputs": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-staff-filter" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "combineFilters": {}, + "filters": { + "type": "array", + "items": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-staff-detail" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "staffId": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "staff-create" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "form": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "department-create" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "form": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "department-filter" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "combineFilters": {}, + "filters": { + "type": "array", + "items": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-department-detail" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "departmentId": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-department-update" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "departmentId": { + "type": "string" + }, + "form": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "feishu-department-filter" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "wecom-department" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "search-staff-by-role" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "roleId": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "role-update" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "excel" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "aggregation" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "list": {}, + "groupBy": {}, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "flow-format" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "task-log" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "message": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "task-dynamic-test" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "task-openapi" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "context" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "dmn" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "mapping" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ui-dialog" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ui-notification" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "output" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, { "type": "object", "properties": { @@ -2834,6 +8736,292 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "if" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "tasksMaxLevel": { + "type": "number" + }, + "combineFilters": {}, + "conditions": {}, + "tasks": { + "type": "array", + "items": { + "$ref": "#/$defs/__schema0" + } + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "loop" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "list": {}, + "batchSize": { + "type": "number" + }, + "tasksMaxLevel": { + "type": "number" + }, + "tasks": { + "type": "array", + "items": { + "$ref": "#/$defs/__schema0" + } + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "while" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "combineFilters": {}, + "conditions": {}, + "maxLoop": { + "type": "number" + }, + "tasksMaxLevel": { + "type": "number" + }, + "tasks": { + "type": "array", + "items": { + "$ref": "#/$defs/__schema0" + } + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "amortization" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "tasksMaxLevel": { + "type": "number" + }, + "tasks": { + "type": "array", + "items": { + "$ref": "#/$defs/__schema0" + } + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "apportion" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "tasksMaxLevel": { + "type": "number" + }, + "tasks": { + "type": "array", + "items": { + "$ref": "#/$defs/__schema0" + } + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, { "type": "object", "properties": { @@ -3135,6 +9323,282 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "flow-create-task" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "specificationId": { + "type": "string" + }, + "formState": { + "type": "string" + }, + "form": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "details": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "flow-update-task" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "specificationId": { + "type": "string" + }, + "formState": { + "type": "string" + }, + "form": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "details": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "recalculate-the-approval-flow" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "flow-list" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "specificationId": { + "type": "string" + }, + "combineFilters": {}, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, { "type": "object", "properties": { @@ -3560,90 +10024,6 @@ ], "additionalProperties": {} }, - { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string", - "const": "flow-create-task" - }, - "label": { - "type": "string" - }, - "desc": { - "type": "string" - }, - "groupName": { - "type": "string" - }, - "orderIndex": { - "type": "number" - }, - "levelIndex": { - "type": "array", - "items": { - "type": "number" - } - }, - "status": { - "type": "string" - }, - "displayName": { - "type": "string" - }, - "specificationId": { - "type": "string" - }, - "formState": { - "type": "string" - }, - "form": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": { - "type": "string" - } - }, - "details": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": {} - }, - "onError": { - "type": "object", - "properties": { - "defaultAction": { - "type": "string" - } - }, - "required": [ - "defaultAction" - ], - "additionalProperties": false - } - }, - "required": [ - "name", - "type", - "label", - "groupName", - "orderIndex", - "levelIndex", - "status", - "specificationId", - "formState", - "form", - "details" - ], - "additionalProperties": {} - }, { "type": "object", "properties": { @@ -3700,6 +10080,2479 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "message-dingtalk" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receiverType": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "content": { + "type": "string" + }, + "title": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "message-feishu" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receiverType": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "content": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "feishu-sendMsg" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receiverType": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "content": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "message" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "content": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "email" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "title": { + "type": "string" + }, + "content": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "message-internet" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "title": { + "type": "string" + }, + "content": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "message-outnet" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "content": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "oa" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "receivers": { + "type": "array", + "items": {} + }, + "content": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ai-classification" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ai-extraction" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ai-attachment" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekb-ai" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "model": { + "type": "string" + }, + "prompt": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekb-minimax-text" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "prompt": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekb-minimax-photo" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "imageUrl": { + "type": "string" + }, + "prompt": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekb-ai-pdf" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "attachmentUrl": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekb-ai-url" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "url": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "dify" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "apiKey": { + "type": "string" + }, + "inputs": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-staff-filter" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "combineFilters": {}, + "filters": { + "type": "array", + "items": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-staff-detail" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "staffId": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "staff-create" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "form": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "department-create" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "form": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "department-filter" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "combineFilters": {}, + "filters": { + "type": "array", + "items": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-department-detail" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "departmentId": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-department-update" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "departmentId": { + "type": "string" + }, + "form": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "feishu-department-filter" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "wecom-department" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "search-staff-by-role" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "roleId": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "role-update" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "excel" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "aggregation" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "list": {}, + "groupBy": {}, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "flow-format" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "task-log" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "message": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "task-dynamic-test" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "task-openapi" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "context" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "dmn" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "mapping" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ui-dialog" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ui-notification" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "output" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, { "type": "object", "properties": { diff --git a/src/domains/platform/workflow/analysis/analyzer.ts b/src/domains/platform/workflow/analysis/analyzer.ts index e891325..d5868ce 100644 --- a/src/domains/platform/workflow/analysis/analyzer.ts +++ b/src/domains/platform/workflow/analysis/analyzer.ts @@ -10,6 +10,7 @@ import type { WorkflowFormSpecComponentLike, AnalyzeWorkflowOptions, } from "./types.js"; +import { isKnownGrayNodeType } from "../nodes/gray-nodes-catalog.js"; const KNOWN_TYPES = new Set([ "webhook", @@ -442,7 +443,7 @@ export function analyzeWorkflow( message: `${task.type} 控制节点没有子节点`, }); } - if (!KNOWN_TYPES.has(task.type)) { + if (!KNOWN_TYPES.has(task.type) && !isKnownGrayNodeType(task.type)) { addDiagnostic(diagnostics, { severity: "warning", code: "UNKNOWN_TASK_TYPE", diff --git a/src/domains/platform/workflow/models/nodes/README.nodes.md b/src/domains/platform/workflow/models/nodes/README.nodes.md index 9489b33..edea255 100644 --- a/src/domains/platform/workflow/models/nodes/README.nodes.md +++ b/src/domains/platform/workflow/models/nodes/README.nodes.md @@ -12,10 +12,15 @@ | [code.ts](./code.ts) | 脚本代码节点(MVEL `code` / JavaScript `code-js2`) | | [webhook.ts](./webhook.ts) | Webhook 外部触发器节点(`sampleId` / `urlPath`) | | [stop.ts](./stop.ts) | 终止流程控制节点(`stop`) | -| [flow.ts](./flow.ts) | 单据操作节点(`flow-detail` 查询详情 / `flow-create-task` 创建单据) | +| [flow.ts](./flow.ts) | 单据操作节点(`flow-detail` 查询详情 / `flow-create-task` 创建单据 / `flow-update-task` / `recalculate-the-approval-flow`) | | [datalink.ts](./datalink.ts) | 数据连接台账与转换节点(`ekuaibao-datalink-filter`、`create` 与 `data-convert`) | | [condition.ts](./condition.ts) | 条件分支控制节点工厂(`createConditionTaskSchema`) | | [every.ts](./every.ts) | 依次执行循环控制节点工厂(`createEveryTaskSchema`) | +| [control.ts](./control.ts) | 流程控制节点工厂(`if`、`loop`、`while`、`amortization`、`apportion`) | +| [message.ts](./message.ts) | 消息与通知节点(`message-dingtalk`、`message-feishu`、`email`、`message`、`message-internet`、`message-outnet`、`oa`) | +| [ai.ts](./ai.ts) | AI 智能匹配、提取与大模型节点(`ai-classification`、`ai-extraction`、`ai-attachment`、`ekb-ai`、`dify` 等) | +| [org.ts](./org.ts) | 组织架构人员与部门节点(`ekuaibao-staff-filter`、`ekuaibao-staff-detail`、`staff-create`、`department-create` 等) | +| [utility.ts](./utility.ts) | 基础通用工具节点(`excel` 导出表格、`aggregation` 分类汇总、`flow-format`、`task-log` 流程日志、`dmn` 等) | | [unknown.ts](./unknown.ts) | 兜底节点模型(未知节点类型全透传) | | [index.ts](./index.ts) | 实例化递归容器节点、聚合统一 `WorkflowTaskSchema` 并集中导出 | diff --git a/src/domains/platform/workflow/models/nodes/ai.ts b/src/domains/platform/workflow/models/nodes/ai.ts new file mode 100644 index 0000000..e8d4504 --- /dev/null +++ b/src/domains/platform/workflow/models/nodes/ai.ts @@ -0,0 +1,68 @@ +import { z } from "zod"; +import { BaseTaskSchema, OnErrorSchema } from "./common.js"; + +// ── AI 相关节点 (分类、提取、理解与大模型对接) ────────────────────────────────── + +export const AiClassificationTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ai-classification"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const AiExtractionTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ai-extraction"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const AiAttachmentTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ai-attachment"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const EkbAiTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekb-ai"), + model: z.string().optional(), + prompt: z.string().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const EkbMinimaxTextTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekb-minimax-text"), + prompt: z.string().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const EkbMinimaxPhotoTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekb-minimax-photo"), + imageUrl: z.string().optional(), + prompt: z.string().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const EkbAiPdfTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekb-ai-pdf"), + attachmentUrl: z.string().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const EkbAiUrlTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekb-ai-url"), + url: z.string().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const DifyTaskSchema = BaseTaskSchema.extend({ + type: z.literal("dify"), + apiKey: z.string().optional(), + inputs: z.record(z.string(), z.any()).optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export type AiClassificationTask = z.infer; +export type AiExtractionTask = z.infer; +export type AiAttachmentTask = z.infer; +export type EkbAiTask = z.infer; +export type EkbMinimaxTextTask = z.infer; +export type EkbMinimaxPhotoTask = z.infer; +export type EkbAiPdfTask = z.infer; +export type EkbAiUrlTask = z.infer; +export type DifyTask = z.infer; diff --git a/src/domains/platform/workflow/models/nodes/control.ts b/src/domains/platform/workflow/models/nodes/control.ts new file mode 100644 index 0000000..b0522d2 --- /dev/null +++ b/src/domains/platform/workflow/models/nodes/control.ts @@ -0,0 +1,61 @@ +import { z } from "zod"; +import { BaseTaskSchema, type WorkflowTask } from "./common.js"; + +// ── 流程控制节点 (if, loop, while, amortization, apportion) ─────────────────── + +export function createIfTaskSchema( + getTaskSchema: () => z.ZodType +): z.ZodType { + return BaseTaskSchema.extend({ + type: z.literal("if"), + tasksMaxLevel: z.number().optional(), + combineFilters: z.any().optional(), + conditions: z.any().optional(), + tasks: z.lazy(() => z.array(getTaskSchema())).optional(), + }).passthrough(); +} + +export function createLoopTaskSchema( + getTaskSchema: () => z.ZodType +): z.ZodType { + return BaseTaskSchema.extend({ + type: z.literal("loop"), + list: z.any().optional(), + batchSize: z.number().optional(), + tasksMaxLevel: z.number().optional(), + tasks: z.lazy(() => z.array(getTaskSchema())).optional(), + }).passthrough(); +} + +export function createWhileTaskSchema( + getTaskSchema: () => z.ZodType +): z.ZodType { + return BaseTaskSchema.extend({ + type: z.literal("while"), + combineFilters: z.any().optional(), + conditions: z.any().optional(), + maxLoop: z.number().optional(), + tasksMaxLevel: z.number().optional(), + tasks: z.lazy(() => z.array(getTaskSchema())).optional(), + }).passthrough(); +} + +export function createAmortizationTaskSchema( + getTaskSchema: () => z.ZodType +): z.ZodType { + return BaseTaskSchema.extend({ + type: z.literal("amortization"), + tasksMaxLevel: z.number().optional(), + tasks: z.lazy(() => z.array(getTaskSchema())).optional(), + }).passthrough(); +} + +export function createApportionTaskSchema( + getTaskSchema: () => z.ZodType +): z.ZodType { + return BaseTaskSchema.extend({ + type: z.literal("apportion"), + tasksMaxLevel: z.number().optional(), + tasks: z.lazy(() => z.array(getTaskSchema())).optional(), + }).passthrough(); +} diff --git a/src/domains/platform/workflow/models/nodes/flow.ts b/src/domains/platform/workflow/models/nodes/flow.ts index 44ce435..a6464b8 100644 --- a/src/domains/platform/workflow/models/nodes/flow.ts +++ b/src/domains/platform/workflow/models/nodes/flow.ts @@ -15,12 +15,36 @@ export const FlowDetailTaskSchema = BaseTaskSchema.extend({ export const FlowCreateTaskSchema = BaseTaskSchema.extend({ type: z.literal("flow-create-task"), - specificationId: z.string(), - formState: z.string(), - form: z.record(z.string(), z.string()), - details: z.record(z.string(), z.any()), + specificationId: z.string().optional(), + formState: z.string().optional(), + form: z.record(z.string(), z.any()).optional(), + details: z.record(z.string(), z.any()).optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const FlowUpdateTaskSchema = BaseTaskSchema.extend({ + type: z.literal("flow-update-task"), + specificationId: z.string().optional(), + formState: z.string().optional(), + form: z.record(z.string(), z.any()).optional(), + details: z.record(z.string(), z.any()).optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const RecalculateApprovalFlowTaskSchema = BaseTaskSchema.extend({ + type: z.literal("recalculate-the-approval-flow"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const FlowListTaskSchema = BaseTaskSchema.extend({ + type: z.literal("flow-list"), + specificationId: z.string().optional(), + combineFilters: z.any().optional(), onError: OnErrorSchema.optional(), }).passthrough(); export type FlowDetailTask = z.infer; export type FlowCreateTask = z.infer; +export type FlowUpdateTask = z.infer; +export type RecalculateApprovalFlowTask = z.infer; +export type FlowListTask = z.infer; diff --git a/src/domains/platform/workflow/models/nodes/index.ts b/src/domains/platform/workflow/models/nodes/index.ts index d9c71c3..daf8e1f 100644 --- a/src/domains/platform/workflow/models/nodes/index.ts +++ b/src/domains/platform/workflow/models/nodes/index.ts @@ -2,10 +2,23 @@ import { z } from "zod"; import type { WorkflowTask } from "./common.js"; import { createConditionTaskSchema } from "./condition.js"; import { createEveryTaskSchema } from "./every.js"; +import { + createIfTaskSchema, + createLoopTaskSchema, + createWhileTaskSchema, + createAmortizationTaskSchema, + createApportionTaskSchema, +} from "./control.js"; import { WebhookTaskSchema } from "./webhook.js"; import { StopTaskSchema } from "./stop.js"; import { HttpTaskSchema } from "./http.js"; -import { FlowDetailTaskSchema, FlowCreateTaskSchema } from "./flow.js"; +import { + FlowDetailTaskSchema, + FlowCreateTaskSchema, + FlowUpdateTaskSchema, + RecalculateApprovalFlowTaskSchema, + FlowListTaskSchema, +} from "./flow.js"; import { CodeTaskSchema, CodeJs2TaskSchema } from "./code.js"; import { EkuaibaoDatalinkFilterTaskSchema, @@ -13,9 +26,57 @@ import { DataConvertTaskSchema, } from "./datalink.js"; import { DynamicDelayTaskSchema } from "./delay.js"; +import { + MessageDingtalkTaskSchema, + MessageFeishuTaskSchema, + FeishuSendMsgTaskSchema, + MessageSmsTaskSchema, + EmailTaskSchema, + MessageInternetTaskSchema, + MessageOutnetTaskSchema, + OaReminderTaskSchema, +} from "./message.js"; +import { + AiClassificationTaskSchema, + AiExtractionTaskSchema, + AiAttachmentTaskSchema, + EkbAiTaskSchema, + EkbMinimaxTextTaskSchema, + EkbMinimaxPhotoTaskSchema, + EkbAiPdfTaskSchema, + EkbAiUrlTaskSchema, + DifyTaskSchema, +} from "./ai.js"; +import { + EkuaibaoStaffFilterTaskSchema, + EkuaibaoStaffDetailTaskSchema, + StaffCreateTaskSchema, + DepartmentCreateTaskSchema, + DepartmentFilterTaskSchema, + EkuaibaoDepartmentDetailTaskSchema, + EkuaibaoDepartmentUpdateTaskSchema, + FeishuDepartmentFilterTaskSchema, + WecomDepartmentTaskSchema, + SearchStaffByRoleTaskSchema, + RoleUpdateTaskSchema, +} from "./org.js"; +import { + ExcelTaskSchema, + AggregationTaskSchema, + FlowFormatTaskSchema, + TaskLogTaskSchema, + TaskDynamicTestTaskSchema, + TaskOpenapiTaskSchema, + ContextTaskSchema, + DmnTaskSchema, + MappingTaskSchema, + UiDialogTaskSchema, + UiNotificationTaskSchema, + OutputTaskSchema, +} from "./utility.js"; import { UnknownTaskSchema } from "./unknown.js"; -// 导出所有基础与通用类型 +// 导出所有基础与分类模型 export * from "./common.js"; export * from "./http.js"; export * from "./delay.js"; @@ -26,26 +87,84 @@ export * from "./flow.js"; export * from "./datalink.js"; export * from "./condition.js"; export * from "./every.js"; +export * from "./control.js"; +export * from "./message.js"; +export * from "./ai.js"; +export * from "./org.js"; +export * from "./utility.js"; export * from "./unknown.js"; // 递归容器节点 Schema 实例化 export const ConditionTaskSchema: z.ZodType = createConditionTaskSchema(() => WorkflowTaskSchema); export const EveryTaskSchema: z.ZodType = createEveryTaskSchema(() => WorkflowTaskSchema); +export const IfTaskSchema: z.ZodType = createIfTaskSchema(() => WorkflowTaskSchema); +export const LoopTaskSchema: z.ZodType = createLoopTaskSchema(() => WorkflowTaskSchema); +export const WhileTaskSchema: z.ZodType = createWhileTaskSchema(() => WorkflowTaskSchema); +export const AmortizationTaskSchema: z.ZodType = createAmortizationTaskSchema(() => WorkflowTaskSchema); +export const ApportionTaskSchema: z.ZodType = createApportionTaskSchema(() => WorkflowTaskSchema); // 统一任务节点联合 Schema export const WorkflowTaskSchema: z.ZodType = z.union([ WebhookTaskSchema, ConditionTaskSchema, EveryTaskSchema, + IfTaskSchema, + LoopTaskSchema, + WhileTaskSchema, + AmortizationTaskSchema, + ApportionTaskSchema, StopTaskSchema, HttpTaskSchema, FlowDetailTaskSchema, + FlowCreateTaskSchema, + FlowUpdateTaskSchema, + RecalculateApprovalFlowTaskSchema, + FlowListTaskSchema, CodeTaskSchema, CodeJs2TaskSchema, EkuaibaoDatalinkFilterTaskSchema, EkuaibaoDatalinkCreateTaskSchema, DataConvertTaskSchema, - FlowCreateTaskSchema, DynamicDelayTaskSchema, + MessageDingtalkTaskSchema, + MessageFeishuTaskSchema, + FeishuSendMsgTaskSchema, + MessageSmsTaskSchema, + EmailTaskSchema, + MessageInternetTaskSchema, + MessageOutnetTaskSchema, + OaReminderTaskSchema, + AiClassificationTaskSchema, + AiExtractionTaskSchema, + AiAttachmentTaskSchema, + EkbAiTaskSchema, + EkbMinimaxTextTaskSchema, + EkbMinimaxPhotoTaskSchema, + EkbAiPdfTaskSchema, + EkbAiUrlTaskSchema, + DifyTaskSchema, + EkuaibaoStaffFilterTaskSchema, + EkuaibaoStaffDetailTaskSchema, + StaffCreateTaskSchema, + DepartmentCreateTaskSchema, + DepartmentFilterTaskSchema, + EkuaibaoDepartmentDetailTaskSchema, + EkuaibaoDepartmentUpdateTaskSchema, + FeishuDepartmentFilterTaskSchema, + WecomDepartmentTaskSchema, + SearchStaffByRoleTaskSchema, + RoleUpdateTaskSchema, + ExcelTaskSchema, + AggregationTaskSchema, + FlowFormatTaskSchema, + TaskLogTaskSchema, + TaskDynamicTestTaskSchema, + TaskOpenapiTaskSchema, + ContextTaskSchema, + DmnTaskSchema, + MappingTaskSchema, + UiDialogTaskSchema, + UiNotificationTaskSchema, + OutputTaskSchema, UnknownTaskSchema, ]); diff --git a/src/domains/platform/workflow/models/nodes/message.ts b/src/domains/platform/workflow/models/nodes/message.ts new file mode 100644 index 0000000..3fc4c50 --- /dev/null +++ b/src/domains/platform/workflow/models/nodes/message.ts @@ -0,0 +1,75 @@ +import { z } from "zod"; +import { BaseTaskSchema, OnErrorSchema } from "./common.js"; + +// ── 消息通知相关节点 ────────────────────────────────────────────────────────── + +export const MessageDingtalkTaskSchema = BaseTaskSchema.extend({ + type: z.literal("message-dingtalk"), + receiverType: z.string().optional(), + receivers: z.array(z.any()).optional(), + content: z.string().optional(), + title: z.string().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const MessageFeishuTaskSchema = BaseTaskSchema.extend({ + type: z.literal("message-feishu"), + receiverType: z.string().optional(), + receivers: z.array(z.any()).optional(), + content: z.string().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const FeishuSendMsgTaskSchema = BaseTaskSchema.extend({ + type: z.literal("feishu-sendMsg"), + receiverType: z.string().optional(), + receivers: z.array(z.any()).optional(), + content: z.string().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const MessageSmsTaskSchema = BaseTaskSchema.extend({ + type: z.literal("message"), + receivers: z.array(z.any()).optional(), + content: z.string().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const EmailTaskSchema = BaseTaskSchema.extend({ + type: z.literal("email"), + receivers: z.array(z.any()).optional(), + title: z.string().optional(), + content: z.string().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const MessageInternetTaskSchema = BaseTaskSchema.extend({ + type: z.literal("message-internet"), + receivers: z.array(z.any()).optional(), + title: z.string().optional(), + content: z.string().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const MessageOutnetTaskSchema = BaseTaskSchema.extend({ + type: z.literal("message-outnet"), + receivers: z.array(z.any()).optional(), + content: z.string().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const OaReminderTaskSchema = BaseTaskSchema.extend({ + type: z.literal("oa"), + receivers: z.array(z.any()).optional(), + content: z.string().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export type MessageDingtalkTask = z.infer; +export type MessageFeishuTask = z.infer; +export type FeishuSendMsgTask = z.infer; +export type MessageSmsTask = z.infer; +export type EmailTask = z.infer; +export type MessageInternetTask = z.infer; +export type MessageOutnetTask = z.infer; +export type OaReminderTask = z.infer; diff --git a/src/domains/platform/workflow/models/nodes/org.ts b/src/domains/platform/workflow/models/nodes/org.ts new file mode 100644 index 0000000..45cf1cc --- /dev/null +++ b/src/domains/platform/workflow/models/nodes/org.ts @@ -0,0 +1,82 @@ +import { z } from "zod"; +import { BaseTaskSchema, OnErrorSchema } from "./common.js"; + +// ── 组织架构与人员/部门节点 ─────────────────────────────────────────────────── + +export const EkuaibaoStaffFilterTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekuaibao-staff-filter"), + combineFilters: z.any().optional(), + filters: z.array(z.any()).optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const EkuaibaoStaffDetailTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekuaibao-staff-detail"), + staffId: z.string().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const StaffCreateTaskSchema = BaseTaskSchema.extend({ + type: z.literal("staff-create"), + form: z.record(z.string(), z.any()).optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const DepartmentCreateTaskSchema = BaseTaskSchema.extend({ + type: z.literal("department-create"), + form: z.record(z.string(), z.any()).optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const DepartmentFilterTaskSchema = BaseTaskSchema.extend({ + type: z.literal("department-filter"), + combineFilters: z.any().optional(), + filters: z.array(z.any()).optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const EkuaibaoDepartmentDetailTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekuaibao-department-detail"), + departmentId: z.string().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const EkuaibaoDepartmentUpdateTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekuaibao-department-update"), + departmentId: z.string().optional(), + form: z.record(z.string(), z.any()).optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const FeishuDepartmentFilterTaskSchema = BaseTaskSchema.extend({ + type: z.literal("feishu-department-filter"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const WecomDepartmentTaskSchema = BaseTaskSchema.extend({ + type: z.literal("wecom-department"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const SearchStaffByRoleTaskSchema = BaseTaskSchema.extend({ + type: z.literal("search-staff-by-role"), + roleId: z.string().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const RoleUpdateTaskSchema = BaseTaskSchema.extend({ + type: z.literal("role-update"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export type EkuaibaoStaffFilterTask = z.infer; +export type EkuaibaoStaffDetailTask = z.infer; +export type StaffCreateTask = z.infer; +export type DepartmentCreateTask = z.infer; +export type DepartmentFilterTask = z.infer; +export type EkuaibaoDepartmentDetailTask = z.infer; +export type EkuaibaoDepartmentUpdateTask = z.infer; +export type FeishuDepartmentFilterTask = z.infer; +export type WecomDepartmentTask = z.infer; +export type SearchStaffByRoleTask = z.infer; +export type RoleUpdateTask = z.infer; diff --git a/src/domains/platform/workflow/models/nodes/utility.ts b/src/domains/platform/workflow/models/nodes/utility.ts new file mode 100644 index 0000000..e30dd2f --- /dev/null +++ b/src/domains/platform/workflow/models/nodes/utility.ts @@ -0,0 +1,80 @@ +import { z } from "zod"; +import { BaseTaskSchema, OnErrorSchema } from "./common.js"; + +// ── 基础通用/工具类节点 ──────────────────────────────────────────────────────── + +export const ExcelTaskSchema = BaseTaskSchema.extend({ + type: z.literal("excel"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const AggregationTaskSchema = BaseTaskSchema.extend({ + type: z.literal("aggregation"), + list: z.any().optional(), + groupBy: z.any().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const FlowFormatTaskSchema = BaseTaskSchema.extend({ + type: z.literal("flow-format"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const TaskLogTaskSchema = BaseTaskSchema.extend({ + type: z.literal("task-log"), + message: z.string().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const TaskDynamicTestTaskSchema = BaseTaskSchema.extend({ + type: z.literal("task-dynamic-test"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const TaskOpenapiTaskSchema = BaseTaskSchema.extend({ + type: z.literal("task-openapi"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const ContextTaskSchema = BaseTaskSchema.extend({ + type: z.literal("context"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const DmnTaskSchema = BaseTaskSchema.extend({ + type: z.literal("dmn"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const MappingTaskSchema = BaseTaskSchema.extend({ + type: z.literal("mapping"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const UiDialogTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ui-dialog"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const UiNotificationTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ui-notification"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const OutputTaskSchema = BaseTaskSchema.extend({ + type: z.literal("output"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export type ExcelTask = z.infer; +export type AggregationTask = z.infer; +export type FlowFormatTask = z.infer; +export type TaskLogTask = z.infer; +export type TaskDynamicTestTask = z.infer; +export type TaskOpenapiTask = z.infer; +export type ContextTask = z.infer; +export type DmnTask = z.infer; +export type MappingTask = z.infer; +export type UiDialogTask = z.infer; +export type UiNotificationTask = z.infer; +export type OutputTask = z.infer;