Skip to content

The open alternative to Salesforce, designed for AI.

481 B
Raw Blame
// API writes to target junctions are user attachments. An upsert matching an existing row only applies the input,
// so manual provenance must ride it or reconciliation reaps the row as obsolete automatic state
export const applyManuallyAssignedDefault = <
  TRecord extends { isManuallyAssigned?: boolean; [key: string]: unknown },
>(
  record: TRecord,
): TRecord & { isManuallyAssigned: boolean } => ({
  ...record,
  isManuallyAssigned: record.isManuallyAssigned ?? true,
});