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.

6.1 KB
Raw Blame
{
  "catalog": {
    "tables": [
      {
        "columns": [
          {
            "id": "01990000-0000-7000-8000-00000000c001",
            "kind": {
              "kind": "text"
            },
            "name": "name",
            "placement": "01990000-0000-7000-8000-00000000b001"
          },
          {
            "id": "01990000-0000-7000-8000-00000000c002",
            "kind": {
              "kind": "number"
            },
            "name": "amount",
            "placement": "01990000-0000-7000-8000-00000000b002"
          },
          {
            "id": "01990000-0000-7000-8000-00000000c003",
            "kind": {
              "kind": "select",
              "multi": false,
              "options": [
                {
                  "id": "01990000-0000-7000-8000-00000000a001",
                  "label": "Lead"
                },
                {
                  "id": "01990000-0000-7000-8000-00000000a002",
                  "label": "Won"
                }
              ]
            },
            "name": "stage",
            "placement": "01990000-0000-7000-8000-00000000b003"
          },
          {
            "id": "01990000-0000-7000-8000-00000000c004",
            "kind": {
              "kind": "entity",
              "multi": true,
              "target": "DATABASE_ROW"
            },
            "name": "owner",
            "placement": "01990000-0000-7000-8000-00000000b004"
          },
          {
            "id": "01990000-0000-7000-8000-00000000c005",
            "kind": {
              "kind": "text"
            },
            "name": "pitch",
            "placement": "01990000-0000-7000-8000-00000000b006"
          }
        ],
        "database": "crm",
        "databaseId": "01990000-0000-7000-8000-00000000db01",
        "id": "01990000-0000-7000-8000-00000000d001",
        "name": "deals",
        "source": "database"
      },
      {
        "columns": [
          {
            "id": "01990000-0000-7000-8000-00000000c001",
            "kind": {
              "kind": "text"
            },
            "name": "name",
            "placement": "01990000-0000-7000-8000-00000000b005"
          }
        ],
        "database": "crm",
        "databaseId": "01990000-0000-7000-8000-00000000db01",
        "id": "01990000-0000-7000-8000-00000000d002",
        "name": "people",
        "source": "database"
      }
    ]
  },
  "exchanges": [
    {
      "page": {
        "next": null,
        "rows": [
          {
            "cells": {
              "01990000-0000-7000-8000-00000000c001": {
                "type": "text",
                "value": "Acme"
              },
              "01990000-0000-7000-8000-00000000c002": {
                "type": "number",
                "value": 12000.0
              },
              "01990000-0000-7000-8000-00000000c003": {
                "type": "options",
                "value": [
                  "01990000-0000-7000-8000-00000000a002"
                ]
              },
              "01990000-0000-7000-8000-00000000c004": {
                "type": "entities",
                "value": [
                  "01990000-0000-7000-8000-00000000f001"
                ]
              }
            },
            "id": "01990000-0000-7000-8000-00000000e001",
            "position": "80"
          },
          {
            "cells": {
              "01990000-0000-7000-8000-00000000c001": {
                "type": "text",
                "value": "Initech"
              },
              "01990000-0000-7000-8000-00000000c002": {
                "type": "number",
                "value": 300.0
              },
              "01990000-0000-7000-8000-00000000c003": {
                "type": "options",
                "value": [
                  "01990000-0000-7000-8000-00000000a001"
                ]
              }
            },
            "id": "01990000-0000-7000-8000-00000000e003",
            "position": "8280"
          }
        ]
      },
      "step": {
        "cursor": null,
        "id": 0,
        "limit": 500,
        "needs": [
          "01990000-0000-7000-8000-00000000c001",
          "01990000-0000-7000-8000-00000000c004"
        ],
        "query": {
          "keyHint": null,
          "propf": null,
          "table": "01990000-0000-7000-8000-00000000d001",
          "type": "soup"
        },
        "step": "fetch"
      }
    },
    {
      "page": {
        "next": null,
        "rows": [
          {
            "cells": {
              "01990000-0000-7000-8000-00000000c001": {
                "type": "text",
                "value": "Sam"
              }
            },
            "id": "01990000-0000-7000-8000-00000000f001",
            "position": "80"
          }
        ]
      },
      "step": {
        "cursor": null,
        "id": 1,
        "limit": 500,
        "needs": [
          "a685bb0f-a410-5a90-b32a-4c476d75471a",
          "d568976e-a740-5d9a-b741-ec28dc7b00a3"
        ],
        "query": {
          "keyHint": {
            "column": null,
            "values": [
              {
                "type": "entities",
                "value": [
                  "01990000-0000-7000-8000-00000000f001"
                ]
              }
            ]
          },
          "propf": null,
          "table": "01990000-0000-7000-8000-00000000d002",
          "type": "soup"
        },
        "step": "fetch"
      }
    }
  ],
  "outcome": {
    "changesApplied": 0,
    "columns": [
      {
        "column": "01990000-0000-7000-8000-00000000c001",
        "kind": "text",
        "name": "name"
      },
      {
        "column": "01990000-0000-7000-8000-00000000c001",
        "kind": "text",
        "name": "name"
      }
    ],
    "insertedRowIds": [],
    "readTables": [
      "01990000-0000-7000-8000-00000000d001",
      "01990000-0000-7000-8000-00000000d002"
    ],
    "rowIds": [
      "01990000-0000-7000-8000-00000000e001"
    ],
    "rows": [
      [
        {
          "type": "text",
          "value": "Acme"
        },
        {
          "type": "text",
          "value": "Sam"
        }
      ]
    ],
    "truncated": false
  },
  "sql": "SELECT d.name, p.name FROM crm.deals d JOIN crm.people p ON d.owner = p.row_id"
}