接入前端真实接口并标记邮件HTML清洗

This commit is contained in:
andy
2026-07-08 23:37:03 +08:00
parent c83935a26c
commit a0cb3a05d7
25 changed files with 2581 additions and 157 deletions

View File

@@ -44,12 +44,14 @@ export interface ReservationOrderListItem {
order_id: string
hotel_id: string
order_status: ReservationOrderStatus | string
display_order_key: string | null
temporary_order_no: string | null
confirmation_number: string | null
group_code: string | null
display_name: string
open_task_count: number | null
next_processable_task_id: string | null
created_at: string | null
updated_at: string | null
}
@@ -62,7 +64,6 @@ export interface ReservationTaskListFilters {
hotel_id?: string
order_id?: string
task_type?: string
order_status?: string
task_subtype?: string
task_status?: string
queue_participation?: boolean
@@ -141,30 +142,47 @@ export interface ReservationOrderDetailResult {
export interface SourceMessageConversationResult {
conversation: {
externalConversationId: string
hotelId: string
hotel_id: string
channel: string
external_conversation_id: string | null
subject: string | null
messageCount: number
firstReceivedAt: string | null
lastReceivedAt: string | null
message_count: number
first_received_at: string | null
last_received_at: string | null
}
messages: SourceMessageConversationItem[]
}
export interface SourceMessageConversationItem {
id: string
externalMessageId: string | null
externalConversationId: string
senderSummary: string | null
external_message_id: string | null
external_conversation_id: string | null
sender_summary: string | null
subject: string | null
receivedAt: string | null
sourceSentAt: string | null
textBody: string | null
htmlBody: string | null
htmlSanitizeRequired: boolean
inlineImages: SourceMessageOriginalMedia[]
received_at: string | null
source_sent_at: string | null
text_body: string | null
html_body: string | null
html_sanitize_required: boolean
inline_images: SourceMessageOriginalMedia[]
attachments: SourceMessageOriginalMedia[]
related_orders: SourceMessageRelatedOrder[]
related_tasks: SourceMessageRelatedTask[]
}
export interface SourceMessageRelatedOrder {
order_id: string
display_order_key: string | null
order_status: ReservationOrderStatus | string
}
export interface SourceMessageRelatedTask {
task_id: string
order_id: string
task_type: string
task_subtype: string | null
task_status: ReservationTaskStatus | string
card_name: string | null
}
export interface SourceMessageOriginalMedia {
@@ -245,9 +263,13 @@ export interface ReservationTaskAvailabilityResult {
export interface ReservationTaskFieldResult {
row_number: number | null
card_name: string | null
result_type?: string | null
task_type?: string | null
task_subtype?: string | null
display_area: string | null
field_path: string
display_name: string
default_value_source?: string | null
visible: string | null
editable: string | null
input_editable: string | null