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 { createQueryKeys } from '@lukemorales/query-key-factory';
export const scheduledActionKeys = createQueryKeys('scheduledAction', {
all: null,
list: null,
starters: null,
detail: (params: { scheduleId: string }) => ({
queryKey: [params.scheduleId],
}),
history: (params: { scheduleId: string }) => ({
queryKey: [params.scheduleId, 'history'],
}),
codeUpgrades: (params: { scheduleId: string }) => ({
queryKey: [params.scheduleId, 'code-upgrades'],
}),
template: (params: { scheduleId: string }) => ({
queryKey: [params.scheduleId, 'template'],
}),
referenceAccess: (params: { itemId: string; itemType: string }) => ({
queryKey: [params.itemId, params.itemType],
}),
});