types/crm-types.ts

lotus · frontend/src/types/crm-types.ts · typescript · MIT
crm

Defines TypeScript interfaces for CRM provider connection status and settings.

// Source: https://github.com/uselotus/lotus | License: MIT | Copyright 2023 Lotus Tech Co
// Provided via justclaw.it.com; keep this notice with the code.
// Export an interface that mirrors the SingleCRMProviderSerializer class
const CRMProviders = ["salesforce"] as const;
export type CRMProviderType = (typeof CRMProviders)[number];

export interface CRMConnectionStatus {
  crm_provider_name: CRMProviderType;
  connected: boolean;
  self_hosted: boolean;
  working: boolean;
  connection_id: string | undefined;
  account_id: string | undefined;
  native_org_url: string | undefined;
}

export interface CRMSettingsParams {
  setting_group: "crm";
  setting_name?: string;
}

export interface CRMSetting {
  setting_group: "crm";
  setting_id: string;
  setting_name: string;
  setting_values: 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key