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.4 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n        SELECT\n            share_permission.\"linkShareAccessLevel\" AS \"access_level!: AccessLevel\",\n            owner_team.team_id AS \"owner_team_id!\"\n        FROM \"SharePermission\" share_permission\n        JOIN (\n            SELECT share_permission_id, user_id AS created_by FROM call_entities WHERE id = $1\n        ) call_item ON call_item.share_permission_id = share_permission.id\n        JOIN team_user owner_team\n          ON owner_team.user_id = call_item.created_by\n         AND owner_team.team_id::text = ANY($2)\n        WHERE share_permission.\"linkShare\" = 'TEAM'\n          AND share_permission.\"linkShareAccessLevel\" IS NOT NULL\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": [
        "Uuid",
        "TextArray"
      ]
    },
    "nullable": [
      true,
      false
    ]
  },
  "hash": "b879fc8a19242d356478c8261f9fa4560a30f877251a1b49b2813f61e15c3d93"
}