Skip to content

The open alternative to Salesforce, designed for AI.

573 B
Raw Blame
import { computeDeterministicUuid } from '@/application/deterministic-identifier/compute-deterministic-uuid.util';

export const getFieldPermissionUniversalIdentifier = ({
  applicationUniversalIdentifier,
  roleUniversalIdentifier,
  fieldUniversalIdentifier,
}: {
  applicationUniversalIdentifier: string;
  roleUniversalIdentifier: string;
  fieldUniversalIdentifier: string;
}): string =>
  computeDeterministicUuid({
    entityNamespace: 'fieldPermission',
    value: `${roleUniversalIdentifier}:${fieldUniversalIdentifier}`,
    applicationUniversalIdentifier,
  });