feat(shipping-notice): 添加订单抽取功能,支持异步运行和管理,优化相关数据模型和处理逻辑

This commit is contained in:
hugo committed 2026-07-21 09:02:42 +08:00
1 parent 34d489a2d1
commit ce26d6d0c4
144 files changed
+12241 -4233

No files matched your search

+22
View File
@@ -144,6 +144,12 @@
"USER_UNIQUENESS_CONFLICT": "Data uniqueness conflict.",
"SYSTEM_INTERNAL_ERROR": "Internal server error. Please try again later.",
"AGENT_HANDLER_NOT_CONFIGURED": "Agent business handler is not configured. Please contact an administrator.",
"AGENT_RUNTIME_CAPABILITY_NOT_DECLARED": "This application type does not declare the requested background business capability.",
"AGENT_RUNTIME_BINDING_CONFIG_INVALID": "The background business capability timeout or retry configuration is invalid.",
"AGENT_RUNTIME_PROVIDER_DISABLED": "The selected internal capability provider is disabled.",
"AGENT_RUNTIME_PROVIDER_INVALID": "The selected application does not meet the provider requirements for this capability.",
"AGENT_RUNTIME_PROVIDER_CONFIG_INCOMPLETE": "The internal provider is missing its Dify App ID, API base URL, or API key.",
"AGENT_RUNTIME_PROVIDER_DELETE_BLOCKED": "This application is referenced by a runtime binding or historical run and cannot be deleted.",
"SYSTEM_HTTP_ERROR": "Request failed.",
"WECOM_RESET_NOT_CONFIGURED": "WeCom password reset is not configured. Enable WeCom under Admin → WeCom → System Settings and fill Corp ID, Agent ID, and Secret.",
"WECOM_NOTIFY_DISABLED": "WeCom notifications are disabled. Enable them under Admin → WeCom → Notify Settings.",
@@ -198,8 +204,24 @@
"SHIPPING_NOTICE_DUPLICATE_ACTION_UNAVAILABLE": "This duplicate action is not allowed for the current state.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_CONTEXT_INVALID": "The order extraction context is invalid. Send the current email again.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PENDING": "Email preprocessing is incomplete or order extraction is still in progress.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_ALREADY_COMPLETED": "The order extraction result has already been saved. Review the candidates or existing tasks.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_INVALID_RESULT": "The extracted order result does not match the contract. Parse it again.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_FAILED": "Order identification failed. Send the current email again.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_AGENT_NOT_FOUND": "The shipping agent was not found.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_AGENT_INVALID": "Select an active shipping notice agent.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_AGENT_FORBIDDEN": "You do not have permission to use this shipping agent.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_CONVERSATION_REQUIRED": "The order extraction conversation is required.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_CONVERSATION_NOT_FOUND": "The order extraction conversation was not found.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_CONVERSATION_MISMATCH": "The selected attachment does not belong to this conversation.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_INTAKES_INVALID": "Select between 1 and 50 valid shipping notice attachments.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_RUN_ACTIVE": "An order extraction run is already active for a selected attachment.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_RUN_NOT_FOUND": "The order extraction run was not found or is not accessible.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_RUN_TRANSITION_INVALID": "The order extraction run status changed. Refresh and try again.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PROVIDER_NOT_CONFIGURED": "The freight application has no enabled order extraction Workflow binding. Ask an administrator to configure it.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PROVIDER_INVALID_RESPONSE": "The order extraction Workflow returned data that does not match the structured contract.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PROVIDER_FAILED": "The order extraction Workflow request failed. The system will retry according to policy.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PROVIDER_CHANGED": "The order extraction Workflow application or address changed. Start a new run.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_TIMEOUT": "The order extraction Workflow timed out. The system will retry according to policy.",
"SHIPPING_NOTICE_CANDIDATE_SOURCE_CHANGED": "The email or attachment content changed. Send it again to re-extract orders.",
"SHIPPING_CUSTOMER_IMPORT_SOURCE_INVALID": "The source system code is invalid or too long.",
"SHIPPING_CUSTOMER_IMPORT_TOO_MANY_ROWS": "The import exceeds the row limit.",