My Stores — 计算配置
Source of truth:
studio-website-monorepo/apps/api/src/routes/v3/dashboard-multi-store.tslast_verified: 2026-05-29
My Stores 的全部数据来自 GET /v3/dashboard/multi-store?period=yesterday|last-week|this-month|last-month。该 endpoint 聚合用户所有已激活门店(WHERE activated_at IS NOT NULL)的 calls 和 tasks 数据,返回 per-store 明细 + totals。
Call Activity Tab
所有 call 指标排除 voicemail(call_state IS DISTINCT FROM 'voicemail')。
Membership Calls 口径注意:multi-store endpoint 统计的是"成功销售的会员通话"(需要
outcome_result = 'success'),不是所有涉及会员的通话。MEMBERSHIP_SALES_SUBCATEGORIES包含membership_purchase_related和reactivation_purchase两个子分类。
Task Outcomes Tab
Core Productivity 只算 3 类:Intro Booking + Membership Sold + Cancel Saved。不包含全部 9 类
type_category。当前multi-storeendpoint 只返回tasksCreated / tasksClosed / tasksOverdue汇总,需扩展返回 per-type_category 明细。⚠️ 指标命名「Core Productivity」暂定,待团队确认(2026-05-27 会议)。
趋势计算
endpoint 仅对 Call Volume(total_calls)计算趋势 —— 同时查询上期(同长度前一时段)的通话总数,计算 delta(其余 calls / tasks 指标当前 endpoint 不返回趋势):
上期为 0 时返回 null(无论当期是否 > 0)。趋势方向:up / down / flat。