export function ideaRecordToEventSnapshot(idea) {
    return {
        id: idea.id,
        title: idea.title,
        note: idea.note ?? null,
        status: idea.status,
        sortOrder: idea.sortOrder,
        linkedPlanArtifact: idea.linkedPlanArtifact ?? null,
        previousPlanArtifacts: [...idea.previousPlanArtifacts],
        createdAt: idea.createdAt,
        updatedAt: idea.updatedAt
    };
}
export function eventSnapshotToWorkflowIdeaRow(snapshot) {
    return {
        id: snapshot.id,
        title: snapshot.title,
        note: snapshot.note,
        status: snapshot.status,
        sortOrder: snapshot.sortOrder,
        linkedPlanArtifact: snapshot.linkedPlanArtifact,
        previousPlanArtifacts: [...snapshot.previousPlanArtifacts],
        createdAt: snapshot.createdAt,
        updatedAt: snapshot.updatedAt
    };
}
