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.

607 B
Raw Blame
import { SERVER_HOSTS } from '@core/constant/servers';
import { fetchWithAuth } from './fetch';
import type { PatchTeamCrmSettingsRequest } from './generated/schemas/patchTeamCrmSettingsRequest';
import type { PatchTeamCrmSettingsResponse } from './generated/schemas/patchTeamCrmSettingsResponse';

/** Authenticated counterpart of the generated relative-URL endpoint. */
export function patchTeamCrmSettings(body: PatchTeamCrmSettingsRequest) {
  return fetchWithAuth<PatchTeamCrmSettingsResponse>(
    `${SERVER_HOSTS['auth-service']}/team/crm`,
    { method: 'PATCH', body: JSON.stringify(body) }
  );
}