/** * 阶段 */ export interface Step { /** * 阶段id * @TJS-type string */ id: T; /** * 阶段名称 */ name: string; /** * 该阶段的颜色 */ color?: string; } /** * 用户旅程地图数据 */ export interface JournalMapData { /** * 大的步骤 */ steps: Step[]; /** * 用户行为 */ actions: Record; } /** * 用户行为 */ export interface UserAction { /** * 行为名称 */ title: string; /** * 说明 */ description?: string; /** * 有关的想法 */ thoughts?: string[]; /** * 情绪得分 */ emotion: number; /** * 痛点 */ painSpot?: string[]; } /** * 解析后的 YML 数据 */ export interface JournalMapYML { /** * 步骤 */ steps: Step[]; /** * 用户行为 */ actions: Record[]>; }