新增 Debug EML 上传调试页面
This commit is contained in:
@@ -173,6 +173,58 @@ export default {
|
||||
relatedOrders: 'Related orders',
|
||||
relatedTasks: 'Related tasks',
|
||||
},
|
||||
debugEml: {
|
||||
title: 'Debug EML upload',
|
||||
subtitle: 'Upload one .eml email and review SourceMessage and SuperAgent debug results',
|
||||
uploadConfig: 'Upload configuration',
|
||||
hotelId: 'Hotel ID',
|
||||
debugUploadKey: 'Debug upload key',
|
||||
runLabel: 'Run label',
|
||||
emlFile: '.eml file',
|
||||
submit: 'Submit debug run',
|
||||
submitting: 'Waiting for SuperAgent',
|
||||
executionStatus: 'Execution status',
|
||||
status: 'Status',
|
||||
debugRunId: 'Debug run ID',
|
||||
backendStatus: 'Backend status',
|
||||
backendMessage: 'Backend message',
|
||||
waitingSuperAgent: 'Parsing the email and waiting for SuperAgent',
|
||||
sourceTrace: 'SourceMessage trace',
|
||||
sourceMessageId: 'SourceMessage ID',
|
||||
sourceProvider: 'Source provider',
|
||||
externalMessageId: 'External message ID',
|
||||
externalConversationId: 'External conversation ID',
|
||||
mailPreview: 'Email preview',
|
||||
noSafeHtml: 'No safe HTML body is available',
|
||||
uploadedMedia: 'Uploaded media',
|
||||
unnamedMedia: 'Unnamed media',
|
||||
rawHtml: 'Raw processed HTML',
|
||||
superAgentResult: 'SuperAgent result',
|
||||
superAgentSessionId: 'SuperAgent session ID',
|
||||
superAgentRunId: 'SuperAgent run ID',
|
||||
parsedJson: 'Parsed JSON',
|
||||
rawAnswer: 'Raw answer',
|
||||
warnings: 'Warnings',
|
||||
debugPayload: 'Debug payload',
|
||||
statuses: {
|
||||
idle: 'Idle',
|
||||
uploading: 'Running',
|
||||
succeeded: 'Succeeded',
|
||||
failed: 'Failed',
|
||||
},
|
||||
errors: {
|
||||
REQUEST_FIELD_REQUIRED: 'Required fields are missing. Check hotel ID, file, or request parameters',
|
||||
EML_FILE_REQUIRED: 'Choose an .eml email file',
|
||||
EML_FILE_TOO_LARGE: 'The email file exceeds the backend limit',
|
||||
INVALID_FILE_TYPE: 'Only .eml email files are supported',
|
||||
DEBUG_UPLOAD_KEY_INVALID: 'The debug upload key is missing or invalid',
|
||||
EML_PARSE_FAILED: 'The email file could not be parsed',
|
||||
OSS_UPLOAD_FAILED: 'OSS upload failed. Contact backend support',
|
||||
SUPERAGENT_OPEN_API_FAILED: 'SuperAgent call failed. SourceMessage may already be captured',
|
||||
DEBUG_EML_RUN_FAILED: 'Debug EML run failed internally',
|
||||
UNKNOWN: 'Debug EML upload failed',
|
||||
},
|
||||
},
|
||||
status: {
|
||||
TEMPORARY: 'Temporary',
|
||||
ACTIVE: 'Active',
|
||||
|
||||
@@ -173,6 +173,58 @@ export default {
|
||||
relatedOrders: 'ออเดอร์ที่เกี่ยวข้อง',
|
||||
relatedTasks: 'งานที่เกี่ยวข้อง',
|
||||
},
|
||||
debugEml: {
|
||||
title: 'อัปโหลด Debug EML',
|
||||
subtitle: 'อัปโหลดอีเมล .eml หนึ่งฉบับและดูผล Debug ของ SourceMessage กับ SuperAgent',
|
||||
uploadConfig: 'ค่าการอัปโหลด',
|
||||
hotelId: 'Hotel ID',
|
||||
debugUploadKey: 'คีย์อัปโหลด Debug',
|
||||
runLabel: 'ป้ายกำกับรัน',
|
||||
emlFile: 'ไฟล์ .eml',
|
||||
submit: 'ส่ง Debug',
|
||||
submitting: 'รอ SuperAgent',
|
||||
executionStatus: 'สถานะการทำงาน',
|
||||
status: 'สถานะ',
|
||||
debugRunId: 'Debug run ID',
|
||||
backendStatus: 'สถานะจากระบบหลังบ้าน',
|
||||
backendMessage: 'ข้อความจากระบบหลังบ้าน',
|
||||
waitingSuperAgent: 'กำลังแยกอีเมลและรอ SuperAgent ตอบกลับ',
|
||||
sourceTrace: 'การติดตาม SourceMessage',
|
||||
sourceMessageId: 'SourceMessage ID',
|
||||
sourceProvider: 'Source provider',
|
||||
externalMessageId: 'External message ID',
|
||||
externalConversationId: 'External conversation ID',
|
||||
mailPreview: 'ตัวอย่างอีเมล',
|
||||
noSafeHtml: 'ยังไม่มี HTML ที่ปลอดภัยสำหรับแสดงผล',
|
||||
uploadedMedia: 'สื่อที่อัปโหลด',
|
||||
unnamedMedia: 'สื่อไม่มีชื่อ',
|
||||
rawHtml: 'HTML หลังประมวลผลดิบ',
|
||||
superAgentResult: 'ผลจาก SuperAgent',
|
||||
superAgentSessionId: 'SuperAgent session ID',
|
||||
superAgentRunId: 'SuperAgent run ID',
|
||||
parsedJson: 'JSON ที่แยกแล้ว',
|
||||
rawAnswer: 'คำตอบดิบ',
|
||||
warnings: 'คำเตือน',
|
||||
debugPayload: 'Debug payload',
|
||||
statuses: {
|
||||
idle: 'รออัปโหลด',
|
||||
uploading: 'กำลังทำงาน',
|
||||
succeeded: 'สำเร็จ',
|
||||
failed: 'ล้มเหลว',
|
||||
},
|
||||
errors: {
|
||||
REQUEST_FIELD_REQUIRED: 'ขาดข้อมูลจำเป็น โปรดตรวจ Hotel ID ไฟล์ หรือพารามิเตอร์คำขอ',
|
||||
EML_FILE_REQUIRED: 'โปรดเลือกไฟล์อีเมล .eml',
|
||||
EML_FILE_TOO_LARGE: 'ไฟล์อีเมลเกินขนาดที่หลังบ้านกำหนด',
|
||||
INVALID_FILE_TYPE: 'รองรับเฉพาะไฟล์อีเมล .eml',
|
||||
DEBUG_UPLOAD_KEY_INVALID: 'คีย์อัปโหลด Debug ขาดหายหรือไม่ถูกต้อง',
|
||||
EML_PARSE_FAILED: 'ไม่สามารถแยกไฟล์อีเมลได้',
|
||||
OSS_UPLOAD_FAILED: 'อัปโหลด OSS ล้มเหลว โปรดให้หลังบ้านตรวจสอบ',
|
||||
SUPERAGENT_OPEN_API_FAILED: 'เรียก SuperAgent ล้มเหลว SourceMessage อาจถูกบันทึกแล้ว',
|
||||
DEBUG_EML_RUN_FAILED: 'กระบวนการ Debug EML ล้มเหลวภายใน',
|
||||
UNKNOWN: 'อัปโหลด Debug EML ล้มเหลว',
|
||||
},
|
||||
},
|
||||
status: {
|
||||
TEMPORARY: 'ชั่วคราว',
|
||||
ACTIVE: 'ใช้งานอยู่',
|
||||
|
||||
@@ -173,6 +173,58 @@ export default {
|
||||
relatedOrders: '关联订单',
|
||||
relatedTasks: '关联任务',
|
||||
},
|
||||
debugEml: {
|
||||
title: 'Debug EML 调试上传',
|
||||
subtitle: '上传单封 .eml 邮件并查看 SourceMessage 与 SuperAgent 调试结果',
|
||||
uploadConfig: '上传配置',
|
||||
hotelId: '酒店 ID',
|
||||
debugUploadKey: 'Debug 上传口令',
|
||||
runLabel: '运行标签',
|
||||
emlFile: '.eml 文件',
|
||||
submit: '提交调试',
|
||||
submitting: '等待 SuperAgent 返回',
|
||||
executionStatus: '执行状态',
|
||||
status: '状态',
|
||||
debugRunId: 'Debug 运行 ID',
|
||||
backendStatus: '后端状态',
|
||||
backendMessage: '后端消息',
|
||||
waitingSuperAgent: '正在解析邮件并等待 SuperAgent 返回',
|
||||
sourceTrace: 'SourceMessage 追溯',
|
||||
sourceMessageId: 'SourceMessage ID',
|
||||
sourceProvider: '来源 Provider',
|
||||
externalMessageId: '外部消息 ID',
|
||||
externalConversationId: '外部会话 ID',
|
||||
mailPreview: '邮件内容预览',
|
||||
noSafeHtml: '当前没有可安全渲染的 HTML 正文',
|
||||
uploadedMedia: '上传媒体',
|
||||
unnamedMedia: '未命名媒体',
|
||||
rawHtml: '原始处理 HTML',
|
||||
superAgentResult: 'SuperAgent 结果',
|
||||
superAgentSessionId: 'SuperAgent Session ID',
|
||||
superAgentRunId: 'SuperAgent Run ID',
|
||||
parsedJson: '解析 JSON',
|
||||
rawAnswer: '原始回答',
|
||||
warnings: '警告',
|
||||
debugPayload: '调试 Payload',
|
||||
statuses: {
|
||||
idle: '待上传',
|
||||
uploading: '执行中',
|
||||
succeeded: '成功',
|
||||
failed: '失败',
|
||||
},
|
||||
errors: {
|
||||
REQUEST_FIELD_REQUIRED: '缺少必填字段,请检查酒店 ID、文件或请求参数',
|
||||
EML_FILE_REQUIRED: '请选择 .eml 邮件文件',
|
||||
EML_FILE_TOO_LARGE: '邮件文件超过后端限制',
|
||||
INVALID_FILE_TYPE: '只支持 .eml 邮件文件',
|
||||
DEBUG_UPLOAD_KEY_INVALID: '调试上传口令缺失或错误',
|
||||
EML_PARSE_FAILED: '邮件文件无法解析',
|
||||
OSS_UPLOAD_FAILED: 'OSS 上传失败,请联系后端排查',
|
||||
SUPERAGENT_OPEN_API_FAILED: 'SuperAgent 调用失败,SourceMessage 可能已经写入',
|
||||
DEBUG_EML_RUN_FAILED: 'Debug EML 链路内部失败',
|
||||
UNKNOWN: 'Debug EML 调试失败',
|
||||
},
|
||||
},
|
||||
status: {
|
||||
TEMPORARY: '临时',
|
||||
ACTIVE: '有效',
|
||||
|
||||
Reference in New Issue
Block a user