diff --git a/specs/workflow-schema.json b/specs/workflow-schema.json index ae72080..46e5d8e 100644 --- a/specs/workflow-schema.json +++ b/specs/workflow-schema.json @@ -269,6 +269,860 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "clock" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "mode": { + "type": "string" + }, + "triggerDateTime": { + "type": "string" + }, + "cron": { + "type": "string" + }, + "timezone": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "start" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "cron": { + "type": "string" + }, + "mode": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "flow-change-trigger" + }, + "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" + }, + "dateField": { + "type": "string" + }, + "advanceDays": { + "type": "number" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-flowform-trigger" + }, + "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" + }, + "flowState": { + "type": "string" + }, + "event": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-datalink-create-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "datalinkModelId": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-datalink-change-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "datalinkModelId": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-datalink-time-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "datalinkModelId": { + "type": "string" + }, + "dateField": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "datalink-button-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "datalinkModelId": { + "type": "string" + }, + "buttonCode": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "fxiaoke-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "objectDescribeApiName": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "xrxs-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "event": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-tmc-datalink-create-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-tmc-datalink-change-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-tmc-datalink-time-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-ebot-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "botId": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "other-event-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "eventType": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "hab-trigger-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" + }, + "appCode": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-requisition-trigger" + }, + "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" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, { "type": "object", "properties": { @@ -1270,6 +2124,247 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "flow-detail-versioned" + }, + "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" + }, + "flowCode": { + "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-sample-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" + }, + "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": "ebot-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": "risk" + }, + "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": { @@ -1396,8 +2491,87 @@ "groupName", "orderIndex", "levelIndex", - "status", - "code" + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "code-js" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "code": { + "type": "string" + }, + "mapping": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "key", + "value" + ], + "additionalProperties": false + } + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" ], "additionalProperties": {} }, @@ -1572,6 +2746,18 @@ }, "combineFilters": { "$ref": "#/$defs/__schema1" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false } }, "required": [ @@ -1590,6 +2776,93 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-datalink-edit" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "mode": { + "type": "string" + }, + "entityId": { + "type": "string" + }, + "fields": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": {} + }, + "required": [ + "key" + ], + "additionalProperties": {} + } + }, + "filters": { + "type": "array", + "items": {} + }, + "combineFilters": { + "$ref": "#/$defs/__schema1" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, { "type": "object", "properties": { @@ -1684,14 +2957,7 @@ "groupName", "orderIndex", "levelIndex", - "status", - "mode", - "path", - "fields", - "subType", - "itemType", - "targetType", - "feeFormType" + "status" ], "additionalProperties": {} }, @@ -3404,6 +4670,64 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "task-dynamic-ding-attendance" + }, + "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": { @@ -4224,6 +5548,1351 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "eBridge-mapData" + }, + "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": "ebridge-auth" + }, + "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": "fxiaoke-auth" + }, + "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": "fxiaoke-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" + }, + "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": "netsuite-sync" + }, + "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": "netsuite-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" + }, + "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": "netsuite-delete" + }, + "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": "tr-select" + }, + "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": "tr-comment" + }, + "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": "tr-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" + }, + "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-zs" + }, + "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": "escape" + }, + "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": "hl-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" + }, + "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": "hl" + }, + "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-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" + }, + "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": "invoice-verification" + }, + "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": "ekuaibao-invoice-inspector" + }, + "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": "ekuaibao-invoice-datalink-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": {}, + "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-tmc-datalink-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": {}, + "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-requision-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" + }, + "specificationId": { + "type": "string" + }, + "requisitionId": { + "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-ecard-fee-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": {}, + "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-ecard-requisition-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": {}, + "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-ecard-fee-detail-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": {}, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, { "type": "object", "properties": { @@ -4396,6 +7065,860 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "clock" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "mode": { + "type": "string" + }, + "triggerDateTime": { + "type": "string" + }, + "cron": { + "type": "string" + }, + "timezone": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "start" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "cron": { + "type": "string" + }, + "mode": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "flow-change-trigger" + }, + "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" + }, + "dateField": { + "type": "string" + }, + "advanceDays": { + "type": "number" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-flowform-trigger" + }, + "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" + }, + "flowState": { + "type": "string" + }, + "event": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-datalink-create-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "datalinkModelId": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-datalink-change-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "datalinkModelId": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-datalink-time-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "datalinkModelId": { + "type": "string" + }, + "dateField": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "datalink-button-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "datalinkModelId": { + "type": "string" + }, + "buttonCode": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "fxiaoke-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "objectDescribeApiName": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "xrxs-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "event": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-tmc-datalink-create-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-tmc-datalink-change-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-tmc-datalink-time-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-ebot-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "botId": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "other-event-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "eventType": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "hab-trigger-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" + }, + "appCode": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-requisition-trigger" + }, + "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" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, { "type": "object", "properties": { @@ -5397,6 +8920,247 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "flow-detail-versioned" + }, + "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" + }, + "flowCode": { + "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-sample-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" + }, + "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": "ebot-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": "risk" + }, + "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": { @@ -5523,8 +9287,87 @@ "groupName", "orderIndex", "levelIndex", - "status", - "code" + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "code-js" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "code": { + "type": "string" + }, + "mapping": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "key", + "value" + ], + "additionalProperties": false + } + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" ], "additionalProperties": {} }, @@ -5699,6 +9542,18 @@ }, "combineFilters": { "$ref": "#/$defs/__schema0" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false } }, "required": [ @@ -5717,6 +9572,93 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-datalink-edit" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "mode": { + "type": "string" + }, + "entityId": { + "type": "string" + }, + "fields": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": {} + }, + "required": [ + "key" + ], + "additionalProperties": {} + } + }, + "filters": { + "type": "array", + "items": {} + }, + "combineFilters": { + "$ref": "#/$defs/__schema0" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, { "type": "object", "properties": { @@ -5811,14 +9753,7 @@ "groupName", "orderIndex", "levelIndex", - "status", - "mode", - "path", - "fields", - "subType", - "itemType", - "targetType", - "feeFormType" + "status" ], "additionalProperties": {} }, @@ -7531,6 +11466,64 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "task-dynamic-ding-attendance" + }, + "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": { @@ -8351,6 +12344,1351 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "eBridge-mapData" + }, + "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": "ebridge-auth" + }, + "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": "fxiaoke-auth" + }, + "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": "fxiaoke-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" + }, + "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": "netsuite-sync" + }, + "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": "netsuite-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" + }, + "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": "netsuite-delete" + }, + "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": "tr-select" + }, + "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": "tr-comment" + }, + "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": "tr-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" + }, + "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-zs" + }, + "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": "escape" + }, + "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": "hl-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" + }, + "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": "hl" + }, + "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-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" + }, + "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": "invoice-verification" + }, + "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": "ekuaibao-invoice-inspector" + }, + "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": "ekuaibao-invoice-datalink-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": {}, + "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-tmc-datalink-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": {}, + "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-requision-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" + }, + "specificationId": { + "type": "string" + }, + "requisitionId": { + "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-ecard-fee-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": {}, + "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-ecard-requisition-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": {}, + "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-ecard-fee-detail-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": {}, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, { "type": "object", "properties": { @@ -8598,6 +13936,860 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "clock" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "mode": { + "type": "string" + }, + "triggerDateTime": { + "type": "string" + }, + "cron": { + "type": "string" + }, + "timezone": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "start" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "cron": { + "type": "string" + }, + "mode": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "flow-change-trigger" + }, + "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" + }, + "dateField": { + "type": "string" + }, + "advanceDays": { + "type": "number" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-flowform-trigger" + }, + "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" + }, + "flowState": { + "type": "string" + }, + "event": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-datalink-create-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "datalinkModelId": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-datalink-change-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "datalinkModelId": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-datalink-time-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "datalinkModelId": { + "type": "string" + }, + "dateField": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "datalink-button-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "datalinkModelId": { + "type": "string" + }, + "buttonCode": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "fxiaoke-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "objectDescribeApiName": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "xrxs-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "event": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-tmc-datalink-create-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-tmc-datalink-change-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-tmc-datalink-time-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-ebot-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "botId": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "other-event-trigger" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "eventType": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "hab-trigger-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" + }, + "appCode": { + "type": "string" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-requisition-trigger" + }, + "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" + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, { "type": "object", "properties": { @@ -9599,6 +15791,247 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "flow-detail-versioned" + }, + "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" + }, + "flowCode": { + "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-sample-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" + }, + "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": "ebot-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": "risk" + }, + "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": { @@ -9725,8 +16158,87 @@ "groupName", "orderIndex", "levelIndex", - "status", - "code" + "status" + ], + "additionalProperties": {} + }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "code-js" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "code": { + "type": "string" + }, + "mapping": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "key", + "value" + ], + "additionalProperties": false + } + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" ], "additionalProperties": {} }, @@ -9901,6 +16413,18 @@ }, "combineFilters": { "$ref": "#/$defs/__schema1" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false } }, "required": [ @@ -9919,6 +16443,93 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "ekuaibao-datalink-edit" + }, + "label": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "groupName": { + "type": "string" + }, + "orderIndex": { + "type": "number" + }, + "levelIndex": { + "type": "array", + "items": { + "type": "number" + } + }, + "status": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "mode": { + "type": "string" + }, + "entityId": { + "type": "string" + }, + "fields": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": {} + }, + "required": [ + "key" + ], + "additionalProperties": {} + } + }, + "filters": { + "type": "array", + "items": {} + }, + "combineFilters": { + "$ref": "#/$defs/__schema1" + }, + "onError": { + "type": "object", + "properties": { + "defaultAction": { + "type": "string" + } + }, + "required": [ + "defaultAction" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "type", + "label", + "groupName", + "orderIndex", + "levelIndex", + "status" + ], + "additionalProperties": {} + }, { "type": "object", "properties": { @@ -10013,14 +16624,7 @@ "groupName", "orderIndex", "levelIndex", - "status", - "mode", - "path", - "fields", - "subType", - "itemType", - "targetType", - "feeFormType" + "status" ], "additionalProperties": {} }, @@ -11733,6 +18337,64 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "task-dynamic-ding-attendance" + }, + "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": { @@ -12553,6 +19215,1351 @@ ], "additionalProperties": {} }, + { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "const": "eBridge-mapData" + }, + "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": "ebridge-auth" + }, + "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": "fxiaoke-auth" + }, + "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": "fxiaoke-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" + }, + "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": "netsuite-sync" + }, + "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": "netsuite-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" + }, + "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": "netsuite-delete" + }, + "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": "tr-select" + }, + "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": "tr-comment" + }, + "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": "tr-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" + }, + "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-zs" + }, + "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": "escape" + }, + "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": "hl-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" + }, + "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": "hl" + }, + "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-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" + }, + "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": "invoice-verification" + }, + "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": "ekuaibao-invoice-inspector" + }, + "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": "ekuaibao-invoice-datalink-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": {}, + "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-tmc-datalink-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": {}, + "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-requision-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" + }, + "specificationId": { + "type": "string" + }, + "requisitionId": { + "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-ecard-fee-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": {}, + "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-ecard-requisition-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": {}, + "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-ecard-fee-detail-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": {}, + "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/cli/command-metadata.ts b/src/cli/command-metadata.ts index c04df15..a90286d 100644 --- a/src/cli/command-metadata.ts +++ b/src/cli/command-metadata.ts @@ -221,7 +221,8 @@ export const COMMAND_METADATA: Record = { "enum": "查询在线枚举字典(不可用时使用内置字典)", "lint-script": "静态检查 JavaScript / MVEL 脚本", "eval-script": "在本地沙箱中模拟执行脚本", - "webhook": "向工作流 Webhook 触发器发送测试数据 (别名: webhook-send)" + "webhook": "向工作流 Webhook 触发器发送测试数据 (别名: webhook-send)", + "link": "生成工作流设计器 (Piper) 免密直达链接 (包含特权警告)" }, "options": [ "--flow=<单号> 指定测试单据", @@ -274,7 +275,9 @@ export const COMMAND_METADATA: Record = { "dictionary": "enum", "dict": "enum", "webhook-send": "webhook", - "webhooks": "webhook" + "webhooks": "webhook", + "url": "link", + "web": "link" }, flags: { ...flagList("all allow-prod allow-production auto-publish autoPublish compare detail diff empty errors f fail fail-on-alert failOnAlert failed failed-only failedOnly follow force force-write forceWrite full has-error hasError in-place inPlace includeDetail json none once publish snapshot v value-json valueJson verbose with-tasks withTasks timeline progress steps", "boolean"), ...flagList("a admin-key adminKey after app app-id appId b bill body c code code-file container count d data desc description display display-name displayName end-time endTime entity execution-logs field file filter flow flow-code flowCode from i id input input-file insert-after interval job job-id job1 job2 jobA jobB jobId json-file keyword l label limit log logs mapping mapping-file max-jobs maxJobs n name node node-id nodeId nodes output output-file outputFile p page page-size pageSize parent parent-id parentId password path payload pipeline pipeline-id pipelineId platform platform-id platformId pwd q query record s sample sample-id sampleId seconds set size sleep-time sleepTime snapshot1 snapshot2 snapshotA snapshotB source start-time startTime state state-file stateFile t target targetName targetPlatformId task taskType third-id thirdId timeout timeout-ms timeoutMs to trigger type types value workflowId", "value") } }, diff --git a/src/cli/commands/workflow.test.ts b/src/cli/commands/workflow.test.ts index 2099fd5..c80687e 100644 --- a/src/cli/commands/workflow.test.ts +++ b/src/cli/commands/workflow.test.ts @@ -2331,5 +2331,90 @@ describe("CLI - workflow list 轻量化与名称搜索", () => { expect(data.workflows[0].pipelineName).toBe("待摊台账拆分计划"); expect(data.totalWorkflows).toBe(1); }); + + it("workflow link 生成高特权免密直达链接并输出安全警告与自建应用信息", async () => { + const mockSessionClient = { + get: () => ({ + json: async () => ({ id: "mock.jwt.token" }), + }), + }; + spies.push( + spyOn(helpers, "createClientsForCorp").mockResolvedValue({ + sessionClient: mockSessionClient, + } as any), + spyOn(platformServices, "listAllWorkflows").mockResolvedValue({ + workflows: [ + { + id: "wf_001", + pipelineName: "待摊台账拆分计划", + platformId: "app_platform_1", + platformName: "商机台账", + state: 1, + }, + ] as any, + errors: [], + }) + ); + + const res = await handleWorkflowCommand( + { + area: "workflow", + action: "link", + args: ["wf_001"], + options: {}, + raw: ["workflow", "link", "wf_001"], + }, + mockRuntime + ); + + expect(res.exitCode).toBe(0); + expect(res.stdout).toContain("【高特权免密直达警告】"); + expect(res.stdout).toContain("所属自建应用 : 商机台账 (app_platform_1)"); + expect(res.stdout).toContain("目标工作流 : 待摊台账拆分计划 (wf_001)"); + expect(res.stdout).toContain("https://piper.ekuaibao.com/#/workflow/wf_001?jwtToken=mock.jwt.token&$platformId=app_platform_1"); + }); + + it("workflow link --json 返回结构化授权链接与警告信息", async () => { + const mockSessionClient = { + get: () => ({ + json: async () => ({ id: "mock.jwt.token" }), + }), + }; + spies.push( + spyOn(helpers, "createClientsForCorp").mockResolvedValue({ + sessionClient: mockSessionClient, + } as any), + spyOn(platformServices, "listAllWorkflows").mockResolvedValue({ + workflows: [ + { + id: "wf_001", + pipelineName: "待摊台账拆分计划", + platformId: "app_platform_1", + platformName: "商机台账", + state: 1, + }, + ] as any, + errors: [], + }) + ); + + const res = await handleWorkflowCommand( + { + area: "workflow", + action: "link", + args: ["wf_001"], + options: { json: true }, + raw: ["workflow", "link", "wf_001", "--json"], + }, + { ...mockRuntime, jsonMode: true } + ); + + expect(res.exitCode).toBe(0); + const data = JSON.parse(res.stdout); + expect(data.pipelineId).toBe("wf_001"); + expect(data.platformName).toBe("商机台账"); + expect(data.jwtToken).toBe("mock.jwt.token"); + expect(data.warning).toContain("特权"); + }); }); diff --git a/src/cli/commands/workflow/README.workflow.md b/src/cli/commands/workflow/README.workflow.md index e2b9091..2aa510e 100644 --- a/src/cli/commands/workflow/README.workflow.md +++ b/src/cli/commands/workflow/README.workflow.md @@ -15,6 +15,7 @@ | [analyze.ts](./analyze.ts)、[check.ts](./check.ts)、[diff.ts](./diff.ts) | 静态分析、健康检查与配置/执行差异 | | [script.ts](./script.ts)、[test.ts](./test.ts) | 脚本校验、求值与工作流测试 | | [tail.ts](./tail.ts)、[webhook.ts](./webhook.ts)、[enum.ts](./enum.ts) | 执行监听、Webhook 与业务枚举 | +| [link.ts](./link.ts) | 工作流设计器 (Piper) 免密直达链接签发与高特权安全警告 | ## 保存和执行契约 diff --git a/src/cli/commands/workflow/index.ts b/src/cli/commands/workflow/index.ts index 5956d5d..c033895 100644 --- a/src/cli/commands/workflow/index.ts +++ b/src/cli/commands/workflow/index.ts @@ -16,6 +16,7 @@ import { handleWorkflowTailCommand } from "./tail.js"; import { handleWorkflowLintScript, handleWorkflowEvalScript } from "./script.js"; import { handleWorkflowEnum } from "./enum.js"; import { handleWebhookCommand } from "./webhook.js"; +import { handleWorkflowLink } from "./link.js"; export async function handleWorkflowCommand( parsed: CliParsedArgs, @@ -121,10 +122,14 @@ export async function handleWorkflowCommand( case "webhook-send": case "webhooks": return handleWebhookCommand(parsed, runtime); + case "link": + case "url": + case "web": + return handleWorkflowLink(parsed, runtime); default: return { stdout: "", - stderr: `未知 workflow 子命令: ${action}。支持: list, get, find, analyze, toggle, publish, patch, save, refresh-chooses, history, logs, job, diff, diff-job, check, test, copy, create, delete, node, tail, lint-script, eval-script, enum, webhook\n`, + stderr: `未知 workflow 子命令: ${action}。支持: list, get, find, analyze, toggle, publish, patch, save, refresh-chooses, history, logs, job, diff, diff-job, check, test, copy, create, delete, node, tail, lint-script, eval-script, enum, webhook, link\n`, exitCode: 1, }; } diff --git a/src/cli/commands/workflow/link.ts b/src/cli/commands/workflow/link.ts new file mode 100644 index 0000000..8393577 --- /dev/null +++ b/src/cli/commands/workflow/link.ts @@ -0,0 +1,135 @@ +import { stringOption } from "../../parser.js"; +import { printJson } from "../../printer.js"; +import type { CliParsedArgs, CliResult, CliRuntime } from "../../types.js"; +import { createClientsForCorp } from "../../helpers.js"; +import { listAllWorkflows } from "../../../domains/platform/workflow/services.js"; + +// ── 工作流设计器 (Piper) 免密直达链接签发 ──────────────────────────────────── + +export async function handleWorkflowLink( + parsed: CliParsedArgs, + runtime: CliRuntime +): Promise { + const corp = runtime.selectedCorp!; + const pipelineId = + parsed.args[0] || + stringOption(parsed.options, ["id", "pipelineId", "workflowId", "pipeline"]); + + if (!pipelineId) { + return { + stdout: "", + stderr: [ + "请提供工作流 ID: hose-use workflow link [选项]", + "", + "常用选项:", + " --corp= 指定企业 (默认当前企业)", + " --platform-id= 指定所属自建应用 ID (可选,默认自动识别)", + " --json 输出结构化 JSON 格式", + "", + "示例:", + " hose-use workflow link 881196955148578838", + ].join("\n") + "\n", + exitCode: 1, + }; + } + + const clients = await createClientsForCorp(corp); + + // 1. 查询工作流元数据及所属自建应用平台信息 + let platformId = stringOption(parsed.options, ["platform-id", "platformId", "app-id", "appId"]); + let platformName = ""; + let pipelineName = ""; + let workflowState: number | undefined; + + try { + const all = await listAllWorkflows(clients, { page: 1, pageSize: 100 }); + const match = all.workflows.find((w) => w.id === pipelineId); + if (match) { + pipelineName = match.pipelineName || ""; + platformId = platformId || match.platformId || ""; + platformName = match.platformName || ""; + workflowState = match.state; + } + } catch { + // 容错降级 + } + + platformId = platformId || corp.corpId || corp.id; + + // 2. 向 EASO Realm 申请专属 3 段式 JWT 授权凭据 + let jwt = ""; + try { + const jwtRes = await clients.sessionClient.get("api/engine/realm/$EASO/actions/jwt", { + searchParams: { corpId: corp.corpId || corp.id }, + }).json<{ id: string }>(); + jwt = jwtRes.id; + } catch (err) { + const errMsg = err instanceof Error ? err.message : String(err); + return { + stdout: "", + stderr: `获取 EASO JWT 授权凭据失败: ${errMsg}\n请确认当前会话是否有效或重新登录。\n`, + exitCode: 1, + }; + } + + const directUrl = `https://piper.ekuaibao.com/#/workflow/${pipelineId}?jwtToken=${jwt}&$platformId=${encodeURIComponent(platformId)}`; + + if (runtime.jsonMode) { + const output = { + pipelineId, + pipelineName: pipelineName || pipelineId, + corpId: corp.corpId || corp.id, + corpName: corp.name, + env: corp.env || (corp.isTest ? "test" : "prod"), + staffId: corp.staffId, + staffName: corp.staffName || corp.staffId, + platformId, + platformName: platformName || "自建应用", + state: workflowState, + jwtToken: jwt, + url: directUrl, + warning: "⚠️ 该直达链接具备以当前员工身份免密直接访问和修改工作流的最高特权,严禁外泄!", + }; + return { + stdout: printJson(output, runtime.outputOptions), + stderr: "", + exitCode: 0, + }; + } + + const envTag = corp.isTest ? "🧪 测试环境" : "🚨 生产环境"; + const stateText = + workflowState === 1 + ? "🟢 启用中 (state=1)" + : workflowState === 0 + ? "⚪ 停用/草稿 (state=0)" + : "未知"; + + const lines = [ + "⚠️ 【高特权免密直达警告】(HIGH PRIVILEGE DIRECT ACCESS WARNING)", + " ----------------------------------------------------------------------", + " • 该链接包含有效 3 段式 EASO JWT 授权凭证,在浏览器中打开即直接以当前员工身份进入!", + " • 具有对该工作流的所有节点配置、代码脚本、版本发布及运行实例的完全编辑/删除/调试权限!", + " • 严禁将该链接发送到群聊、公开工单或不受信渠道;使用完毕后请及时关闭会话标签页。", + " ----------------------------------------------------------------------", + "", + "====== 合思工作流设计器 (Piper) 免密直达链接 ======", + ` 企业名称 : ${corp.name} (${corp.corpId || corp.id}) [${envTag}]`, + ` 操作人身份 : ${corp.staffName || "未指定姓名"} (${corp.staffId})`, + ` 所属自建应用 : ${platformName ? `${platformName} (${platformId})` : platformId}`, + ` 目标工作流 : ${pipelineName ? `${pipelineName} (${pipelineId})` : pipelineId}`, + ` 当前流程状态 : ${stateText}`, + " 凭证有效时长 : 约 2 小时 (由合思 EASO Realm 动态颁发)", + "", + " 直达链接:", + ` ${directUrl}`, + "", + `Markdown 直达: [打开「${platformName || "工作流"}」设计器 (${pipelineName || pipelineId} - ${corp.staffName || "免密"})](${directUrl})`, + ]; + + return { + stdout: `${lines.join("\n")}\n`, + stderr: "", + exitCode: 0, + }; +} diff --git a/src/domains/platform/workflow/models/nodes/README.nodes.md b/src/domains/platform/workflow/models/nodes/README.nodes.md index edea255..13bd28a 100644 --- a/src/domains/platform/workflow/models/nodes/README.nodes.md +++ b/src/domains/platform/workflow/models/nodes/README.nodes.md @@ -11,9 +11,10 @@ | [delay.ts](./delay.ts) | 动态延迟等待节点(`task-dynamic-delay` / `sleepTime`) | | [code.ts](./code.ts) | 脚本代码节点(MVEL `code` / JavaScript `code-js2`) | | [webhook.ts](./webhook.ts) | Webhook 外部触发器节点(`sampleId` / `urlPath`) | +| [trigger.ts](./trigger.ts) | 工作流官方触发器全家桶(`clock`、`start`、单据与台账变更触发器等 18 类) | | [stop.ts](./stop.ts) | 终止流程控制节点(`stop`) | -| [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`) | +| [flow.ts](./flow.ts) | 单据操作节点(`flow-detail` 查询详情 / `flow-create-task` 创建单据 / `flow-update-task` / `recalculate-the-approval-flow` 等) | +| [datalink.ts](./datalink.ts) | 数据连接台账与转换节点(`ekuaibao-datalink-filter`、`create`、`edit` 与 `data-convert`) | | [condition.ts](./condition.ts) | 条件分支控制节点工厂(`createConditionTaskSchema`) | | [every.ts](./every.ts) | 依次执行循环控制节点工厂(`createEveryTaskSchema`) | | [control.ts](./control.ts) | 流程控制节点工厂(`if`、`loop`、`while`、`amortization`、`apportion`) | @@ -21,6 +22,9 @@ | [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` 等) | +| [integration.ts](./integration.ts) | 第三方系统集成与定制数据节点(NetSuite、纷享销客、易桥、天润工单、招商银行等) | +| [invoice-tmc.ts](./invoice-tmc.ts) | 发票验真巡检与差旅/TMC行程数据节点(`invoice-verification`、`invoice-inspector` 等) | +| [requisition.ts](./requisition.ts) | 申请事项与易商卡/随手记节点(`ekuaibao-requision-detail`、`ekuaibao-ecard-fee-filter` 等) | | [unknown.ts](./unknown.ts) | 兜底节点模型(未知节点类型全透传) | | [index.ts](./index.ts) | 实例化递归容器节点、聚合统一 `WorkflowTaskSchema` 并集中导出 | diff --git a/src/domains/platform/workflow/models/nodes/code.ts b/src/domains/platform/workflow/models/nodes/code.ts index f466f04..9779217 100644 --- a/src/domains/platform/workflow/models/nodes/code.ts +++ b/src/domains/platform/workflow/models/nodes/code.ts @@ -10,10 +10,18 @@ export const CodeTaskSchema = BaseTaskSchema.extend({ export const CodeJs2TaskSchema = BaseTaskSchema.extend({ type: z.literal("code-js2"), - code: z.string(), + code: z.string().optional(), + mapping: z.array(z.object({ key: z.string(), value: z.string() })).optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const CodeJsTaskSchema = BaseTaskSchema.extend({ + type: z.literal("code-js"), + code: z.string().optional(), mapping: z.array(z.object({ key: z.string(), value: z.string() })).optional(), onError: OnErrorSchema.optional(), }).passthrough(); export type CodeTask = z.infer; export type CodeJs2Task = z.infer; +export type CodeJsTask = z.infer; diff --git a/src/domains/platform/workflow/models/nodes/datalink.ts b/src/domains/platform/workflow/models/nodes/datalink.ts index e493de5..0f85468 100644 --- a/src/domains/platform/workflow/models/nodes/datalink.ts +++ b/src/domains/platform/workflow/models/nodes/datalink.ts @@ -24,20 +24,32 @@ export const EkuaibaoDatalinkCreateTaskSchema = BaseTaskSchema.extend({ fields: z.array(FieldMappingSchema), filters: z.array(z.any()), combineFilters: FilterGroupSchema, + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const EkuaibaoDatalinkEditTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekuaibao-datalink-edit"), + mode: z.string().optional(), + entityId: z.string().optional(), + fields: z.array(FieldMappingSchema).optional(), + filters: z.array(z.any()).optional(), + combineFilters: FilterGroupSchema.optional(), + onError: OnErrorSchema.optional(), }).passthrough(); export const DataConvertTaskSchema = BaseTaskSchema.extend({ type: z.literal("data-convert"), - mode: z.string(), - path: z.array(z.string()), - fields: z.array(z.object({ key: z.string(), value: z.string() })), + mode: z.string().optional(), + path: z.array(z.string()).optional(), + fields: z.array(z.object({ key: z.string(), value: z.string() })).optional(), onError: OnErrorSchema.optional(), - subType: z.string(), - itemType: z.string(), - targetType: z.string(), - feeFormType: z.string(), + subType: z.string().optional(), + itemType: z.string().optional(), + targetType: z.string().optional(), + feeFormType: z.string().optional(), }).passthrough(); export type EkuaibaoDatalinkFilterTask = z.infer; export type EkuaibaoDatalinkCreateTask = z.infer; +export type EkuaibaoDatalinkEditTask = z.infer; export type DataConvertTask = z.infer; diff --git a/src/domains/platform/workflow/models/nodes/flow.ts b/src/domains/platform/workflow/models/nodes/flow.ts index a6464b8..e9254b8 100644 --- a/src/domains/platform/workflow/models/nodes/flow.ts +++ b/src/domains/platform/workflow/models/nodes/flow.ts @@ -43,8 +43,35 @@ export const FlowListTaskSchema = BaseTaskSchema.extend({ onError: OnErrorSchema.optional(), }).passthrough(); +export const FlowDetailVersionedTaskSchema = BaseTaskSchema.extend({ + type: z.literal("flow-detail-versioned"), + specificationId: z.string().optional(), + flowCode: z.string().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const FlowSampleListTaskSchema = BaseTaskSchema.extend({ + type: z.literal("flow-sample-list"), + specificationId: z.string().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const EbotApprovalFlowTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ebot-approval-flow"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const RiskTaskSchema = BaseTaskSchema.extend({ + type: z.literal("risk"), + 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; +export type FlowDetailVersionedTask = z.infer; +export type FlowSampleListTask = z.infer; +export type EbotApprovalFlowTask = z.infer; +export type RiskTask = z.infer; diff --git a/src/domains/platform/workflow/models/nodes/index.ts b/src/domains/platform/workflow/models/nodes/index.ts index daf8e1f..edb3249 100644 --- a/src/domains/platform/workflow/models/nodes/index.ts +++ b/src/domains/platform/workflow/models/nodes/index.ts @@ -10,6 +10,25 @@ import { createApportionTaskSchema, } from "./control.js"; import { WebhookTaskSchema } from "./webhook.js"; +import { + ClockTriggerTaskSchema, + StartTriggerTaskSchema, + FlowChangeTriggerTaskSchema, + EkuaibaoFlowformTriggerTaskSchema, + EkuaibaoDatalinkCreateTriggerTaskSchema, + EkuaibaoDatalinkChangeTriggerTaskSchema, + EkuaibaoDatalinkTimeTriggerTaskSchema, + DatalinkButtonTriggerTaskSchema, + FxiaokeTriggerTaskSchema, + XrxsTriggerTaskSchema, + EkuaibaoTmcDatalinkCreateTriggerTaskSchema, + EkuaibaoTmcDatalinkChangeTriggerTaskSchema, + EkuaibaoTmcDatalinkTimeTriggerTaskSchema, + EkuaibaoEbotTriggerTaskSchema, + OtherEventTriggerTaskSchema, + HabTriggerTaskSchema, + EkuaibaoRequisitionTriggerTaskSchema, +} from "./trigger.js"; import { StopTaskSchema } from "./stop.js"; import { HttpTaskSchema } from "./http.js"; import { @@ -18,11 +37,16 @@ import { FlowUpdateTaskSchema, RecalculateApprovalFlowTaskSchema, FlowListTaskSchema, + FlowDetailVersionedTaskSchema, + FlowSampleListTaskSchema, + EbotApprovalFlowTaskSchema, + RiskTaskSchema, } from "./flow.js"; -import { CodeTaskSchema, CodeJs2TaskSchema } from "./code.js"; +import { CodeTaskSchema, CodeJs2TaskSchema, CodeJsTaskSchema } from "./code.js"; import { EkuaibaoDatalinkFilterTaskSchema, EkuaibaoDatalinkCreateTaskSchema, + EkuaibaoDatalinkEditTaskSchema, DataConvertTaskSchema, } from "./datalink.js"; import { DynamicDelayTaskSchema } from "./delay.js"; @@ -57,6 +81,7 @@ import { EkuaibaoDepartmentUpdateTaskSchema, FeishuDepartmentFilterTaskSchema, WecomDepartmentTaskSchema, + TaskDynamicDingAttendanceTaskSchema, SearchStaffByRoleTaskSchema, RoleUpdateTaskSchema, } from "./org.js"; @@ -74,6 +99,35 @@ import { UiNotificationTaskSchema, OutputTaskSchema, } from "./utility.js"; +import { + EBridgeMapDataTaskSchema, + EBridgeAuthTaskSchema, + FxiaokeAuthTaskSchema, + FxiaokeListTaskSchema, + NetsuiteSyncTaskSchema, + NetsuiteCreateTaskSchema, + NetsuiteDeleteTaskSchema, + TrSelectTaskSchema, + TrCommentTaskSchema, + TrDetailTaskSchema, + TaskZsTaskSchema, + EscapeTaskSchema, + HlDetailTaskSchema, + HlTaskSchema, + MappingDetailTaskSchema, +} from "./integration.js"; +import { + InvoiceVerificationTaskSchema, + EkuaibaoInvoiceInspectorTaskSchema, + EkuaibaoInvoiceDatalinkFilterTaskSchema, + EkuaibaoTmcDatalinkFilterTaskSchema, +} from "./invoice-tmc.js"; +import { + EkuaibaoRequisitionDetailTaskSchema, + EkuaibaoEcardFeeFilterTaskSchema, + EkuaibaoEcardRequisitionFilterTaskSchema, + EkuaibaoEcardFeeDetailFilterTaskSchema, +} from "./requisition.js"; import { UnknownTaskSchema } from "./unknown.js"; // 导出所有基础与分类模型 @@ -82,6 +136,7 @@ export * from "./http.js"; export * from "./delay.js"; export * from "./code.js"; export * from "./webhook.js"; +export * from "./trigger.js"; export * from "./stop.js"; export * from "./flow.js"; export * from "./datalink.js"; @@ -92,6 +147,9 @@ export * from "./message.js"; export * from "./ai.js"; export * from "./org.js"; export * from "./utility.js"; +export * from "./integration.js"; +export * from "./invoice-tmc.js"; +export * from "./requisition.js"; export * from "./unknown.js"; // 递归容器节点 Schema 实例化 @@ -106,6 +164,23 @@ export const ApportionTaskSchema: z.ZodType = createApportionTaskS // 统一任务节点联合 Schema export const WorkflowTaskSchema: z.ZodType = z.union([ WebhookTaskSchema, + ClockTriggerTaskSchema, + StartTriggerTaskSchema, + FlowChangeTriggerTaskSchema, + EkuaibaoFlowformTriggerTaskSchema, + EkuaibaoDatalinkCreateTriggerTaskSchema, + EkuaibaoDatalinkChangeTriggerTaskSchema, + EkuaibaoDatalinkTimeTriggerTaskSchema, + DatalinkButtonTriggerTaskSchema, + FxiaokeTriggerTaskSchema, + XrxsTriggerTaskSchema, + EkuaibaoTmcDatalinkCreateTriggerTaskSchema, + EkuaibaoTmcDatalinkChangeTriggerTaskSchema, + EkuaibaoTmcDatalinkTimeTriggerTaskSchema, + EkuaibaoEbotTriggerTaskSchema, + OtherEventTriggerTaskSchema, + HabTriggerTaskSchema, + EkuaibaoRequisitionTriggerTaskSchema, ConditionTaskSchema, EveryTaskSchema, IfTaskSchema, @@ -120,10 +195,16 @@ export const WorkflowTaskSchema: z.ZodType = z.union([ FlowUpdateTaskSchema, RecalculateApprovalFlowTaskSchema, FlowListTaskSchema, + FlowDetailVersionedTaskSchema, + FlowSampleListTaskSchema, + EbotApprovalFlowTaskSchema, + RiskTaskSchema, CodeTaskSchema, CodeJs2TaskSchema, + CodeJsTaskSchema, EkuaibaoDatalinkFilterTaskSchema, EkuaibaoDatalinkCreateTaskSchema, + EkuaibaoDatalinkEditTaskSchema, DataConvertTaskSchema, DynamicDelayTaskSchema, MessageDingtalkTaskSchema, @@ -152,6 +233,7 @@ export const WorkflowTaskSchema: z.ZodType = z.union([ EkuaibaoDepartmentUpdateTaskSchema, FeishuDepartmentFilterTaskSchema, WecomDepartmentTaskSchema, + TaskDynamicDingAttendanceTaskSchema, SearchStaffByRoleTaskSchema, RoleUpdateTaskSchema, ExcelTaskSchema, @@ -166,5 +248,28 @@ export const WorkflowTaskSchema: z.ZodType = z.union([ UiDialogTaskSchema, UiNotificationTaskSchema, OutputTaskSchema, + EBridgeMapDataTaskSchema, + EBridgeAuthTaskSchema, + FxiaokeAuthTaskSchema, + FxiaokeListTaskSchema, + NetsuiteSyncTaskSchema, + NetsuiteCreateTaskSchema, + NetsuiteDeleteTaskSchema, + TrSelectTaskSchema, + TrCommentTaskSchema, + TrDetailTaskSchema, + TaskZsTaskSchema, + EscapeTaskSchema, + HlDetailTaskSchema, + HlTaskSchema, + MappingDetailTaskSchema, + InvoiceVerificationTaskSchema, + EkuaibaoInvoiceInspectorTaskSchema, + EkuaibaoInvoiceDatalinkFilterTaskSchema, + EkuaibaoTmcDatalinkFilterTaskSchema, + EkuaibaoRequisitionDetailTaskSchema, + EkuaibaoEcardFeeFilterTaskSchema, + EkuaibaoEcardRequisitionFilterTaskSchema, + EkuaibaoEcardFeeDetailFilterTaskSchema, UnknownTaskSchema, ]); diff --git a/src/domains/platform/workflow/models/nodes/integration.ts b/src/domains/platform/workflow/models/nodes/integration.ts new file mode 100644 index 0000000..f3aacd7 --- /dev/null +++ b/src/domains/platform/workflow/models/nodes/integration.ts @@ -0,0 +1,95 @@ +import { z } from "zod"; +import { BaseTaskSchema, OnErrorSchema } from "./common.js"; + +// ── 第三方系统集成与定制数据节点 ───────────────────────────────────────────── + +export const EBridgeMapDataTaskSchema = BaseTaskSchema.extend({ + type: z.literal("eBridge-mapData"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const EBridgeAuthTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ebridge-auth"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const FxiaokeAuthTaskSchema = BaseTaskSchema.extend({ + type: z.literal("fxiaoke-auth"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const FxiaokeListTaskSchema = BaseTaskSchema.extend({ + type: z.literal("fxiaoke-list"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const NetsuiteSyncTaskSchema = BaseTaskSchema.extend({ + type: z.literal("netsuite-sync"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const NetsuiteCreateTaskSchema = BaseTaskSchema.extend({ + type: z.literal("netsuite-create"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const NetsuiteDeleteTaskSchema = BaseTaskSchema.extend({ + type: z.literal("netsuite-delete"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const TrSelectTaskSchema = BaseTaskSchema.extend({ + type: z.literal("tr-select"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const TrCommentTaskSchema = BaseTaskSchema.extend({ + type: z.literal("tr-comment"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const TrDetailTaskSchema = BaseTaskSchema.extend({ + type: z.literal("tr-detail"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const TaskZsTaskSchema = BaseTaskSchema.extend({ + type: z.literal("task-zs"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const EscapeTaskSchema = BaseTaskSchema.extend({ + type: z.literal("escape"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const HlDetailTaskSchema = BaseTaskSchema.extend({ + type: z.literal("hl-detail"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const HlTaskSchema = BaseTaskSchema.extend({ + type: z.literal("hl"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const MappingDetailTaskSchema = BaseTaskSchema.extend({ + type: z.literal("mapping-detail"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export type EBridgeMapDataTask = z.infer; +export type EBridgeAuthTask = z.infer; +export type FxiaokeAuthTask = z.infer; +export type FxiaokeListTask = z.infer; +export type NetsuiteSyncTask = z.infer; +export type NetsuiteCreateTask = z.infer; +export type NetsuiteDeleteTask = z.infer; +export type TrSelectTask = z.infer; +export type TrCommentTask = z.infer; +export type TrDetailTask = z.infer; +export type TaskZsTask = z.infer; +export type EscapeTask = z.infer; +export type HlDetailTask = z.infer; +export type HlTask = z.infer; +export type MappingDetailTask = z.infer; diff --git a/src/domains/platform/workflow/models/nodes/invoice-tmc.ts b/src/domains/platform/workflow/models/nodes/invoice-tmc.ts new file mode 100644 index 0000000..43c1a08 --- /dev/null +++ b/src/domains/platform/workflow/models/nodes/invoice-tmc.ts @@ -0,0 +1,31 @@ +import { z } from "zod"; +import { BaseTaskSchema, OnErrorSchema } from "./common.js"; + +// ── 发票验真巡检与差旅/TMC行程节点 ────────────────────────────────────────── + +export const InvoiceVerificationTaskSchema = BaseTaskSchema.extend({ + type: z.literal("invoice-verification"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const EkuaibaoInvoiceInspectorTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekuaibao-invoice-inspector"), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const EkuaibaoInvoiceDatalinkFilterTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekuaibao-invoice-datalink-filter"), + combineFilters: z.any().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const EkuaibaoTmcDatalinkFilterTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekuaibao-tmc-datalink-filter"), + combineFilters: z.any().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export type InvoiceVerificationTask = z.infer; +export type EkuaibaoInvoiceInspectorTask = z.infer; +export type EkuaibaoInvoiceDatalinkFilterTask = z.infer; +export type EkuaibaoTmcDatalinkFilterTask = z.infer; diff --git a/src/domains/platform/workflow/models/nodes/org.ts b/src/domains/platform/workflow/models/nodes/org.ts index 45cf1cc..f6b43be 100644 --- a/src/domains/platform/workflow/models/nodes/org.ts +++ b/src/domains/platform/workflow/models/nodes/org.ts @@ -58,6 +58,11 @@ export const WecomDepartmentTaskSchema = BaseTaskSchema.extend({ onError: OnErrorSchema.optional(), }).passthrough(); +export const TaskDynamicDingAttendanceTaskSchema = BaseTaskSchema.extend({ + type: z.literal("task-dynamic-ding-attendance"), + onError: OnErrorSchema.optional(), +}).passthrough(); + export const SearchStaffByRoleTaskSchema = BaseTaskSchema.extend({ type: z.literal("search-staff-by-role"), roleId: z.string().optional(), @@ -78,5 +83,6 @@ export type EkuaibaoDepartmentDetailTask = z.infer; export type FeishuDepartmentFilterTask = z.infer; export type WecomDepartmentTask = z.infer; +export type TaskDynamicDingAttendanceTask = z.infer; export type SearchStaffByRoleTask = z.infer; export type RoleUpdateTask = z.infer; diff --git a/src/domains/platform/workflow/models/nodes/requisition.ts b/src/domains/platform/workflow/models/nodes/requisition.ts new file mode 100644 index 0000000..9ecec82 --- /dev/null +++ b/src/domains/platform/workflow/models/nodes/requisition.ts @@ -0,0 +1,34 @@ +import { z } from "zod"; +import { BaseTaskSchema, OnErrorSchema } from "./common.js"; + +// ── 申请事项与易商卡/随手记节点 ────────────────────────────────────────────── + +export const EkuaibaoRequisitionDetailTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekuaibao-requision-detail"), + specificationId: z.string().optional(), + requisitionId: z.string().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const EkuaibaoEcardFeeFilterTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekuaibao-ecard-fee-filter"), + combineFilters: z.any().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const EkuaibaoEcardRequisitionFilterTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekuaibao-ecard-requisition-filter"), + combineFilters: z.any().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export const EkuaibaoEcardFeeDetailFilterTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekuaibao-ecard-fee-detail-filter"), + combineFilters: z.any().optional(), + onError: OnErrorSchema.optional(), +}).passthrough(); + +export type EkuaibaoRequisitionDetailTask = z.infer; +export type EkuaibaoEcardFeeFilterTask = z.infer; +export type EkuaibaoEcardRequisitionFilterTask = z.infer; +export type EkuaibaoEcardFeeDetailFilterTask = z.infer; diff --git a/src/domains/platform/workflow/models/nodes/trigger.ts b/src/domains/platform/workflow/models/nodes/trigger.ts new file mode 100644 index 0000000..a3ab019 --- /dev/null +++ b/src/domains/platform/workflow/models/nodes/trigger.ts @@ -0,0 +1,114 @@ +import { z } from "zod"; +import { BaseTaskSchema } from "./common.js"; + +// ── 工作流触发器节点 (全量官方 18 类触发器) ─────────────────────────────────── + +export const ClockTriggerTaskSchema = BaseTaskSchema.extend({ + type: z.literal("clock"), + mode: z.string().optional(), + triggerDateTime: z.string().optional(), + cron: z.string().optional(), + timezone: z.string().optional(), +}).passthrough(); + +export const StartTriggerTaskSchema = BaseTaskSchema.extend({ + type: z.literal("start"), + cron: z.string().optional(), + mode: z.string().optional(), +}).passthrough(); + +export const FlowChangeTriggerTaskSchema = BaseTaskSchema.extend({ + type: z.literal("flow-change-trigger"), + specificationId: z.string().optional(), + dateField: z.string().optional(), + advanceDays: z.number().optional(), +}).passthrough(); + +export const EkuaibaoFlowformTriggerTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekuaibao-flowform-trigger"), + specificationId: z.string().optional(), + flowState: z.string().optional(), + event: z.string().optional(), +}).passthrough(); + +export const EkuaibaoDatalinkCreateTriggerTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekuaibao-datalink-create-trigger"), + datalinkModelId: z.string().optional(), +}).passthrough(); + +export const EkuaibaoDatalinkChangeTriggerTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekuaibao-datalink-change-trigger"), + datalinkModelId: z.string().optional(), +}).passthrough(); + +export const EkuaibaoDatalinkTimeTriggerTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekuaibao-datalink-time-trigger"), + datalinkModelId: z.string().optional(), + dateField: z.string().optional(), +}).passthrough(); + +export const DatalinkButtonTriggerTaskSchema = BaseTaskSchema.extend({ + type: z.literal("datalink-button-trigger"), + datalinkModelId: z.string().optional(), + buttonCode: z.string().optional(), +}).passthrough(); + +export const FxiaokeTriggerTaskSchema = BaseTaskSchema.extend({ + type: z.literal("fxiaoke-trigger"), + objectDescribeApiName: z.string().optional(), +}).passthrough(); + +export const XrxsTriggerTaskSchema = BaseTaskSchema.extend({ + type: z.literal("xrxs-trigger"), + event: z.string().optional(), +}).passthrough(); + +export const EkuaibaoTmcDatalinkCreateTriggerTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekuaibao-tmc-datalink-create-trigger"), +}).passthrough(); + +export const EkuaibaoTmcDatalinkChangeTriggerTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekuaibao-tmc-datalink-change-trigger"), +}).passthrough(); + +export const EkuaibaoTmcDatalinkTimeTriggerTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekuaibao-tmc-datalink-time-trigger"), +}).passthrough(); + +export const EkuaibaoEbotTriggerTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekuaibao-ebot-trigger"), + botId: z.string().optional(), +}).passthrough(); + +export const OtherEventTriggerTaskSchema = BaseTaskSchema.extend({ + type: z.literal("other-event-trigger"), + eventType: z.string().optional(), +}).passthrough(); + +export const HabTriggerTaskSchema = BaseTaskSchema.extend({ + type: z.literal("hab-trigger-task"), + appCode: z.string().optional(), +}).passthrough(); + +export const EkuaibaoRequisitionTriggerTaskSchema = BaseTaskSchema.extend({ + type: z.literal("ekuaibao-requisition-trigger"), + specificationId: z.string().optional(), +}).passthrough(); + +export type ClockTriggerTask = z.infer; +export type StartTriggerTask = z.infer; +export type FlowChangeTriggerTask = z.infer; +export type EkuaibaoFlowformTriggerTask = z.infer; +export type EkuaibaoDatalinkCreateTriggerTask = z.infer; +export type EkuaibaoDatalinkChangeTriggerTask = z.infer; +export type EkuaibaoDatalinkTimeTriggerTask = z.infer; +export type DatalinkButtonTriggerTask = z.infer; +export type FxiaokeTriggerTask = z.infer; +export type XrxsTriggerTask = z.infer; +export type EkuaibaoTmcDatalinkCreateTriggerTask = z.infer; +export type EkuaibaoTmcDatalinkChangeTriggerTask = z.infer; +export type EkuaibaoTmcDatalinkTimeTriggerTask = z.infer; +export type EkuaibaoEbotTriggerTask = z.infer; +export type OtherEventTriggerTask = z.infer; +export type HabTriggerTask = z.infer; +export type EkuaibaoRequisitionTriggerTask = z.infer;