Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | 2x 2x 2x | import type { CommissionStatus, CustomerStage, PolicyStatus } from './types'
/**
* 契约枚举白名单。
* 后端新增状态码时前端不会跟着发版,故所有 stage/status 都要过白名单,
* 未知码统一降级为 UNKNOWN(或语义最接近的兜底值),绝不把原始码渲染到界面。
*/
export const COMMISSION_STATUSES: readonly CommissionStatus[] = [
'PAID',
'PIPELINE',
'RETAINED',
'LAPSED'
]
export const CUSTOMER_STAGES: readonly CustomerStage[] = [
'IN_PROGRESS',
'DELAYED',
'EFFECTIVE',
'CANCELLED',
'DECLINED',
'LAPSED',
'CLOSED',
'APPOINTMENT_CANCELLED'
]
export const POLICY_STATUSES: readonly PolicyStatus[] = [
'INFORCE',
'LAPSED',
'SURRENDERED',
'REJECTED'
]
|