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