Salesforce Integration Types (types/salesforce.ts)

woofed-crm · app/javascript/types/salesforce.ts · typescript · MIT
crm, integration, lang:typescript, tag:mapping

TypeScript interfaces for Salesforce CRM connection and object mapping.

// Source: https://github.com/douglara/woofed-crm | License: MIT | Copyright 2026 WOOFED DESENVOLVIMENTO DE SOFTWARES LTDA - ME - CNPJ 60.076.777/0001-61
// Provided via justclaw.it.com; keep this notice with the code.
export interface SalesforceConnection {
  id: number
  name: string
  status: 'inactive' | 'active' | 'syncing' | 'error'
  environment: 'production' | 'sandbox'
  instance_url: string
  organization_id: string
  token_expires_at: string | null
  connected: boolean
}

export interface FieldMapping {
  // Indexable so the mapping can be posted straight through Inertia's router,
  // which only accepts FormDataConvertible values.
  [key: string]: string | undefined
  salesforce_field: string
  woofed_field: string
  kind: 'attribute' | 'custom_attribute'
  transform?: string
}

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

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

Get a free API key