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.

4.9 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": [
    {
      "results": [
        {
          "change": {
            "kind": "inserted",
            "rows": [
              "01990000-0000-7000-8000-00000000e004",
              "01990000-0000-7000-8000-00000000e005"
            ]
          },
          "kind": "rows",
          "table": "01990000-0000-7000-8000-00000000d001",
          "tableVersion": 7
        }
      ],
      "step": {
        "database": "01990000-0000-7000-8000-00000000db01",
        "id": 0,
        "ops": [
          {
            "change": {
              "kind": "insert",
              "rows": [
                [
                  {
                    "column": "01990000-0000-7000-8000-00000000b001",
                    "value": {
                      "type": "text",
                      "value": "Hooli"
                    }
                  },
                  {
                    "column": "01990000-0000-7000-8000-00000000b002",
                    "value": {
                      "type": "number",
                      "value": 900.0
                    }
                  },
                  {
                    "column": "01990000-0000-7000-8000-00000000b003",
                    "value": {
                      "type": "options",
                      "value": [
                        {
                          "label": "Lead"
                        }
                      ]
                    }
                  }
                ],
                [
                  {
                    "column": "01990000-0000-7000-8000-00000000b001",
                    "value": {
                      "type": "text",
                      "value": "Vandelay"
                    }
                  },
                  {
                    "column": "01990000-0000-7000-8000-00000000b003",
                    "value": {
                      "type": "options",
                      "value": [
                        {
                          "label": "Won"
                        }
                      ]
                    }
                  }
                ]
              ]
            },
            "kind": "rows",
            "table": "01990000-0000-7000-8000-00000000d001"
          }
        ],
        "step": "ops"
      }
    }
  ],
  "outcome": {
    "changesApplied": 2,
    "columns": [],
    "insertedRowIds": [
      "01990000-0000-7000-8000-00000000e004",
      "01990000-0000-7000-8000-00000000e005"
    ],
    "readTables": [],
    "rowIds": [],
    "rows": [],
    "truncated": false
  },
  "sql": "INSERT INTO crm.deals (name, amount, stage) VALUES ('Hooli', 900, 'Lead'), ('Vandelay', NULL, 'won')"
}