The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { defineCommandMenuItem, isSelectAll, STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS } from 'twenty-sdk/define';
import {
PDL_COMMAND_MENU_ITEM_UNIVERSAL_IDENTIFIERS,
PDL_FRONT_COMPONENT_UNIVERSAL_IDENTIFIERS
} from 'src/constants/universal-identifiers';
export default defineCommandMenuItem({
universalIdentifier: PDL_COMMAND_MENU_ITEM_UNIVERSAL_IDENTIFIERS.enrichCompanies,
availabilityObjectUniversalIdentifier: STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
frontComponentUniversalIdentifier:
PDL_FRONT_COMPONENT_UNIVERSAL_IDENTIFIERS.enrichCompanies,
label: 'Enrich companies',
availabilityType: 'RECORD_SELECTION',
conditionalAvailabilityExpression: !isSelectAll,
});