Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

576 B
Raw Blame
import type { mapInitiativeDetail } from '@service-storage/initiative';
import type { ProjectDetail } from '../core/project';

export function toProjectDetail(
  project: ReturnType<typeof mapInitiativeDetail>
): ProjectDetail {
  return {
    id: project.id,
    name: project.name,
    updatedAt: project.updatedAt,
    ownerId: project.ownerId,
    memberIds: project.memberIds,
    taskIds: project.taskIds,
    access: project.userAccessLevel,
    taskCount: project.taskCount,
    completedTaskCount: project.completedTaskCount,
    createdAt: project.createdAt,
  };
}