Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
import { SYSTEM_PROPERTY_IDS } from '@property/identifiers';
import type {
PropertyApiValues,
PropertyDefinitionDomain,
} from '@property/types';
/** A task's project is its Project system property: one project reference. */
export const TASK_PROJECT_PROPERTY: PropertyDefinitionDomain = {
id: SYSTEM_PROPERTY_IDS.PROJECT,
displayName: 'Project',
valueType: 'ENTITY',
isMultiSelect: false,
isMetadata: false,
isSystem: true,
owner: { scope: 'system' },
specificEntityType: 'INITIATIVE',
createdAt: new Date(0),
updatedAt: new Date(0),
};
/** The Project property value naming `projectId`, or clearing it. */
export const taskProjectValue = (projectId?: string): PropertyApiValues => ({
valueType: 'ENTITY',
refs: projectId
? [{ entity_id: projectId, entity_type: 'INITIATIVE' }]
: null,
});