The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
// 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,
});