export function projectPhaseNote(row) {
    return {
        id: row.id,
        phaseKey: row.phaseKey,
        phaseLabel: row.phaseLabel,
        taskId: row.taskId,
        noteType: row.noteType,
        summary: row.summary,
        details: row.details,
        status: row.status,
        priority: row.priority,
        createdAt: row.createdAt,
        updatedAt: row.updatedAt,
        expiresAt: row.expiresAt,
        supersededBy: row.supersededBy,
        convertedTaskId: row.convertedTaskId,
        idempotencyKey: row.idempotencyKey,
        refs: row.refs.map((r) => ({ type: r.refType, value: r.refValue }))
    };
}
export function projectPhaseNoteTaskSuggestion(row) {
    return {
        id: row.id,
        noteId: row.noteId,
        title: row.title,
        description: row.description,
        suggestedStatus: row.suggestedStatus,
        suggestedPhaseKey: row.suggestedPhaseKey,
        suggestedPhaseLabel: row.suggestedPhaseLabel,
        suggestedTaskType: row.suggestedTaskType,
        convertedTaskId: row.convertedTaskId,
        createdAt: row.createdAt,
        updatedAt: row.updatedAt
    };
}
