Commit d3b7b70b by luoqi

fix(types): lifecycle_stage timeSemantics 'window+trend'→'mixed'(修 tsc 报错)

FeatureTimeSemantics union 无 'window+trend';dev 跑 swc 不查类型一直被掩盖,
turbo build(tsc)时暴露并阻断启动。归入既有 combo 桶 'mixed'(RFM 同款),
精确语义(window recency + trend 斜率)留注释。纯描述元数据,无 switch 消费,行为不变。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
parent 4bc0ebe7
...@@ -181,7 +181,7 @@ export const PERSONA_FEATURE_SPECS: Record<string, PersonaFeatureSpec> = { ...@@ -181,7 +181,7 @@ export const PERSONA_FEATURE_SPECS: Record<string, PersonaFeatureSpec> = {
key: 'lifecycle_stage', key: 'lifecycle_stage',
nameZh: '生命周期', nameZh: '生命周期',
tier: 'rule', tier: 'rule',
timeSemantics: 'window+trend', // 末诊 recency + 消费斜率(近1年 vs 历史年均) timeSemantics: 'mixed', // 末诊 recency(window) + 消费斜率(trend,近1年 vs 历史年均)→ 复合,归 mixed
labelValues: ['潜客', '新客', '成长客', '成熟客', '待激活', '沉睡客', '流失客'], labelValues: ['潜客', '新客', '成长客', '成熟客', '待激活', '沉睡客', '流失客'],
dataSource: '现:PAC 自算(payment/recharge/refund + 就诊 fact + appointment);源表 fact_client_out 无 net_receipts_total/total_visit_times → PAC 算;宿主 CDP 报表给出后可切', dataSource: '现:PAC 自算(payment/recharge/refund + 就诊 fact + appointment);源表 fact_client_out 无 net_receipts_total/total_visit_times → PAC 算;宿主 CDP 报表给出后可切',
dataFields: ['first_visit_time', 'last_visit_time', 'total_visit_times', 'net_receipts_this', 'net_receipts_total'], dataFields: ['first_visit_time', 'last_visit_time', 'total_visit_times', 'net_receipts_this', 'net_receipts_total'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment