twenty / packages /twenty-shared /src /application /deterministic-identifier /get-logic-function-universal-identifier.util.ts
Jules
Initial clean CRM deployment with prebuilt assets
d9494a5
Raw
History Blame Contribute Delete
485 Bytes
import { computeDeterministicUuid } from '@/application/deterministic-identifier/compute-deterministic-uuid.util';
// A logic function is identified by its name within its application.
export const getLogicFunctionUniversalIdentifier = ({
applicationUniversalIdentifier,
name,
}: {
applicationUniversalIdentifier: string;
name: string;
}): string =>
computeDeterministicUuid({
entityNamespace: 'logicFunction',
value: name,
applicationUniversalIdentifier,
});