54 lines
1.2 KiB
TypeScript
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;
|