Files
syops/frontend/src/constants/shippingNoticeActions.ts
T
runny 91b7233872 Merge branch 'dev' into runny827
feat(training): 新增精益培训视频与周任务管理

# Conflicts:
#	backend/app/models/__init__.py
2026-09-08 18:30:09 +08:00

54 lines
1.2 KiB
TypeScript

/**
* Action button ids for shipping-notice chat.
* Historical chat action ids. Formal fulfillment actions are defined by Process Gate.
*/
export const SHIPPING_ACTION_IDS = [
'confirm',
'reject',
'reparse',
'replace_notice_file',
'reparse_inventory',
'rematch',
'retry_rpa',
'confirm_customer',
'retry_upload',
'download_excel',
'generate_excel',
'mark_manual_uploaded',
'match_inventory',
'refresh',
] as const;
export type ShippingActionId = (typeof SHIPPING_ACTION_IDS)[number];
export const SHIPPING_KNOWN_ACTION_ID_SET = new Set<string>(SHIPPING_ACTION_IDS);
/** Backend state-machine codes — must never appear in user-visible chat text. */
export const SHIPPING_INTERNAL_STATUS_TOKENS = [
'rpa_pending',
'upload_rpa_pending',
'rpa_exhausted',
'inv_unavail',
'parse_review',
'shortage_review',
'low_confidence',
'waiting_inventory',
'inventory_ready',
'pending_review',
'waiting_upload',
'upload_failed',
'ready_to_match',
'ready_to_export',
'export_ready',
'upload_req',
'inventory_pending',
'inventory_source_review',
'customer_review',
'inventory_source_unresolved',
'map_ok',
'parse_ok',
'needs_human',
'fulfillable',
'unfulfillable',
] as const;