56e20a81ea
#21949 introduced deterministic uuid utils with usage in the same PR. Usage was not uniform and expected a backfill command as well. Since we want to release I'm reverting all the changes from that PR that concerns twenty-server and only keeping the unused utils in twenty-shared and I'll introduce usages within the same PR as backfill command
18 lines
576 B
TypeScript
18 lines
576 B
TypeScript
import { computeDeterministicUuid } from '@/application/deterministic-identifier/compute-deterministic-uuid.util';
|
|
|
|
// A view field group is identified by its name within its view.
|
|
export const getViewFieldGroupUniversalIdentifier = ({
|
|
applicationUniversalIdentifier,
|
|
viewUniversalIdentifier,
|
|
name,
|
|
}: {
|
|
applicationUniversalIdentifier: string;
|
|
viewUniversalIdentifier: string;
|
|
name: string;
|
|
}): string =>
|
|
computeDeterministicUuid({
|
|
entityNamespace: 'viewFieldGroup',
|
|
value: `${viewUniversalIdentifier}:${name}`,
|
|
applicationUniversalIdentifier,
|
|
});
|