The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { COMPOSITE_FIELD_TYPE_SUB_FIELDS_NAMES } from 'twenty-shared/constants';
import { type FieldMetadataType } from 'twenty-shared/types';
const compositeSubFieldMaps = COMPOSITE_FIELD_TYPE_SUB_FIELDS_NAMES as Record<
string,
Record<string, string>
>;
export const getCompositeSubfieldNames = (fieldType: FieldMetadataType) =>
Object.values(compositeSubFieldMaps[fieldType] ?? {});