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
{
"db_name": "PostgreSQL",
"query": "\n WITH deleted_sources AS (\n DELETE FROM calendar_event_sources source\n WHERE source.source_kind = 'google'\n AND source.account_id = $1\n AND source.calendar_id = $2\n AND NOT (source.provider_event_id = ANY($3::text[]))\n RETURNING source.event_id, source.event_type\n )\n SELECT\n event_id AS \"event_id!\",\n bool_or(event_type = 'out_of_office') AS \"out_of_office!\"\n FROM deleted_sources\n GROUP BY event_id\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "event_id!",
"type_info": "Uuid"
},
{
"ordinal": 1,
"name": "out_of_office!",
"type_info": "Bool"
}
],
"parameters": {
"Left": [
"Uuid",
"Uuid",
"TextArray"
]
},
"nullable": [
false,
null
]
},
"hash": "a61695a62ad708963c16f12b74e0741973b02e380340d222ca9e796fbd9b5cfd"
}