feat(shipping-notice): 增强订单抽取与审计功能,支持取消与保留策略

- 在环境配置中新增进度细化、订单提取取消与审计导出相关的开关
- 实现订单抽取运行的取消功能,允许管理员在运行中进行操作
- 引入审计事件的保留策略,支持三年保留期的自动清理
- 更新相关模型与服务,确保新功能的完整性与可追溯性
- 增强文档与代码注释,反映新的业务逻辑与审计要求
This commit is contained in:
hugo committed 2026-07-30 14:52:21 +08:00
1 parent c85997884b
commit 95cdfe66b0
158 files changed
+19005 -1201

No files matched your search

+11 -1
View File
@@ -17,6 +17,15 @@
"SHIPPING_NOTICE.ORDER_EXTRACTION_RUN_NOT_RETRYABLE": "Only failed order identification runs can be retried.",
"SHIPPING_NOTICE.ORDER_EXTRACTION_RUN_SNAPSHOT_OBSOLETE": "This run uses an obsolete input contract and cannot be retried. Send the email and attachments again to start a new run.",
"SHIPPING_NOTICE.ORDER_EXTRACTION_CONVERSATION_ACTIVE": "An order identification run is already processing in this conversation. Please wait for it to finish.",
"SHIPPING_NOTICE.CANCEL_FORBIDDEN": "You are not allowed to cancel this order identification run.",
"SHIPPING_NOTICE.CANCEL_REASON_REQUIRED": "A reason is required when cancelling another user’s run.",
"SHIPPING_NOTICE.CANCEL_NOT_ACTIVE": "This run is finished or cannot be cancelled.",
"SHIPPING_NOTICE.CANCEL_CONFLICT": "The cancellation request conflicts with the current progress. Refresh and try again.",
"SHIPPING_NOTICE.CANCEL_FEATURE_DISABLED": "Order extraction cancel is disabled. Contact an administrator.",
"SHIPPING_NOTICE.AUDIT_EXPORT_FEATURE_DISABLED": "Audit export is disabled. Contact an administrator.",
"SHIPPING_NOTICE.AUDIT_PERSIST_FAILED": "Failed to persist the audit record. The operation was not completed. Please retry.",
"SHIPPING_NOTICE.AUDIT_METADATA_FORBIDDEN": "Audit write contains forbidden sensitive fields.",
"SHIPPING_NOTICE.AUDIT_SNAPSHOT_FORBIDDEN": "Audit snapshot contains forbidden sensitive fields.",
"SHIPPING_ORDER_SCHEMA_NOT_FOUND": "The order template has not been initialized.",
"SHIPPING_ORDER_SCHEMA_EXISTS": "The order template already exists.",
"SHIPPING_ORDER_SCHEMA_DRAFT_EXISTS": "An order template draft already exists. Complete or publish it first.",
@@ -378,6 +387,7 @@
"SHIPPING_REVIEW_IDEMPOTENCY_KEY_REQUIRED": "The confirmation request is missing an idempotency key. Please try again.",
"SHIPPING_REVIEW_IDEMPOTENCY_KEY_CONFLICT": "The confirmation request conflicts with an existing request. Refresh and try again.",
"SHIPPING_REVIEW_CONFIRM_VALIDATION_FAILED": "The draft has not passed complete validation and cannot be confirmed.",
"SHIPPING_REVIEW_CONFIRM_DOCUMENT_INVALID": "The review PDF is unavailable and cannot be confirmed."
"SHIPPING_REVIEW_CONFIRM_DOCUMENT_INVALID": "The review PDF is unavailable and cannot be confirmed.",
"SHIPPING_REVIEW_QUALITY_COMMENT_REQUIRED": "A comment is required when the quality issue reason is Other."
}
}