The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { isDefined } from 'twenty-shared/utils';
import { type Application } from '~/generated-metadata/graphql';
export const applicationHasHttpTriggeredFunctions = (
application?: Pick<Application, 'logicFunctions'>,
): boolean =>
(application?.logicFunctions ?? []).some((logicFunction) =>
isDefined(logicFunction.httpRouteTriggerSettings),
);