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.

1.5 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n        SELECT\n            sp.\"linkShareAccessLevel\" AS \"access_level!: AccessLevel\",\n            owner_tu.team_id AS \"owner_team_id!\"\n        FROM \"SharePermission\" sp\n        JOIN team_user owner_tu\n          ON owner_tu.team_id::text = ANY($2)\n        WHERE sp.\"linkShareAccessLevel\" IS NOT NULL\n          AND sp.\"linkShare\" = 'TEAM'\n          AND sp.id IN (\n              SELECT \"sharePermissionId\" FROM \"EmailThreadPermission\" WHERE \"threadId\" = $1\n          )\n          AND EXISTS (\n              SELECT 1\n              FROM email_threads t\n              JOIN email_links l ON l.id = t.link_id\n              WHERE t.id = $3::uuid\n                AND owner_tu.user_id = l.macro_id\n          )\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "access_level!: AccessLevel",
        "type_info": {
          "Custom": {
            "name": "\"AccessLevel\"",
            "kind": {
              "Enum": [
                "view",
                "comment",
                "edit",
                "owner"
              ]
            }
          }
        }
      },
      {
        "ordinal": 1,
        "name": "owner_team_id!",
        "type_info": "Uuid"
      }
    ],
    "parameters": {
      "Left": [
        "Text",
        "TextArray",
        "Uuid"
      ]
    },
    "nullable": [
      true,
      false
    ]
  },
  "hash": "f5ada3959e142c6abff493c03c8f57a0f34b09ca5dd5ff1a1062d6b03706ee26"
}