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.

551 B
Raw Blame
import type { Client } from '@urql/core';
import type { channelPage } from '../tests/detail-cache-fixture';

let client: Client;
export function setClient(value: Client) {
  client = value;
}
export function getGraphqlSoupClient() {
  return client;
}
export function mapGraphqlSoupPage(data: ReturnType<typeof channelPage>) {
  return { items: data.user.soup.items };
}
export function mapApiSoupItemToEntity(item: { id: string; name: string }) {
  return {
    ...item,
    type: 'channel',
    ownerId: 'viewer',
    channelType: 'private',
  };
}