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.8 KB
Raw Blame
/**
 * Generated by orval v7.21.0 🍺
 * Do not edit manually.
 * document_storage_service
 * OpenAPI spec version: 0.1.0
 */

import type { CrmCompanyResponseDescription } from './crmCompanyResponseDescription';
import type { CrmCompanyResponseName } from './crmCompanyResponseName';
import type { CrmContactResponse } from './crmContactResponse';
import type { CrmDomainResponse } from './crmDomainResponse';

/**
 * A CRM company as returned by `GET /crm/companies/{company_id}`.
Mirrors the soup-listed `crmCompany` shape (`name` / `description`
resolved from the primary domain's `crm_domain_directory` entry) and
embeds the company's contacts so the panel can render in a single
request.
 */
export interface CrmCompanyResponse {
  /** Contacts attached to this company. Hidden contacts are filtered
out for non-admin viewers. */
  contacts: CrmContactResponse[];
  /** Earliest known interaction with this company. */
  createdAt: string;
  /** Display description from the primary domain's directory entry. */
  description?: CrmCompanyResponseDescription;
  /** All domains associated with this company, ordered by creation
time ascending (primary first). */
  domains: CrmDomainResponse[];
  /** Whether email sync is enabled for this company. */
  emailSync: boolean;
  /** Whether the company is hidden from CRM listings for the
requesting team. Non-admin viewers never see `hidden = true`
rows (the endpoint 404s for them); admin/owner callers see
hidden companies so they can render the right toggle state. */
  hidden: boolean;
  /** The id of the company. */
  id: string;
  /** Display name from the primary domain's directory entry, or
`None` when unresolved. */
  name?: CrmCompanyResponseName;
  /** The id of the team that owns this company record. */
  teamId: string;
  /** Most recent known interaction with this company. */
  updatedAt: string;
}