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

import type { CrmPermissionRole } from './crmPermissionRole';
import type { CrmTeamSettingsResponseClosedStageIds } from './crmTeamSettingsResponseClosedStageIds';
import type { CrmTeamSettingsResponseDefaultTeamViewId } from './crmTeamSettingsResponseDefaultTeamViewId';
import type { CrmTeamSettingsResponseLegacyStageIds } from './crmTeamSettingsResponseLegacyStageIds';

/**
 * The team's CRM configuration (everything on `team_crm_settings`
except the `crm_enabled` killswitch, which is managed via
`PATCH /team/crm` on the auth service).
 */
export interface CrmTeamSettingsResponse {
  /** Stage option ids counting as closed deals; absent = the client
falls back to its label heuristic. */
  closed_stage_ids?: CrmTeamSettingsResponseClosedStageIds;
  /** Team view applied by default when a member opens the CRM view. */
  default_team_view_id?: CrmTeamSettingsResponseDefaultTeamViewId;
  /** Who can delete (hide) CRM records. */
  delete_records_role: CrmPermissionRole;
  /** Who can change the deal stage set in CRM settings. */
  edit_stages_role: CrmPermissionRole;
  /** Whether email sync keeps personal-provider addresses (gmail.com
etc.) out of the CRM. */
  exclude_personal_emails: boolean;
  /** System stage option id to team stage option id for seeded stages. */
  legacy_stage_ids: CrmTeamSettingsResponseLegacyStageIds;
  /** Who can move deals out of a closed stage. */
  move_closed_deals_role: CrmPermissionRole;
  /** Team saved views — an opaque JSON array owned by the frontend. */
  team_views: unknown;
}