Skip to content

The open alternative to Salesforce, designed for AI.

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

export const getViewGroupUniversalIdentifier = ({
  applicationUniversalIdentifier,
  viewUniversalIdentifier,
  fieldValue,
}: {
  applicationUniversalIdentifier: string;
  viewUniversalIdentifier: string;
  fieldValue: string;
}): string =>
  computeDeterministicUuid({
    entityNamespace: 'viewGroup',
    value: `${viewUniversalIdentifier}:${fieldValue}`,
    applicationUniversalIdentifier,
  });