[BREAKING_CHANGE] Deprecate remaining entities standardId (#17639)

# Introduction
Following https://github.com/twentyhq/twenty/pull/17632 and
https://github.com/twentyhq/twenty/pull/17572
This PR deprecates the agent, skill, field metadata and role
`standardId` in favor of the `universalIdentifier` usage

## Note
- Removed previous standard ids declaration modules
- Twenty-sdk now re-exports the `STANDARD_OBJECTS` universalIdentifier
hashmap constant
- deleted some sync-metadata deadcode too ( mainly types )
This commit is contained in:
Paul Rastoin
2026-02-03 09:06:24 +01:00
committed by GitHub
parent cfdcc0065c
commit d35d5c0463
118 changed files with 534 additions and 2279 deletions
@@ -471,7 +471,6 @@ export class ApplicationSyncService {
isNullable: fieldToCreate.isNullable ?? true,
objectMetadataId: objectId,
universalIdentifier: fieldToCreate.universalIdentifier,
standardId: fieldToCreate.universalIdentifier,
applicationId: ownerFlatApplication.id,
isCustom: true,
workspaceId,
@@ -545,7 +544,6 @@ export class ApplicationSyncService {
icon: relation.icon ?? undefined,
objectMetadataId: objectId,
universalIdentifier: relation.universalIdentifier,
standardId: relation.universalIdentifier,
applicationId: ownerFlatApplication.id,
isCustom: true,
workspaceId,
@@ -677,7 +675,6 @@ export class ApplicationSyncService {
labelPlural: objectToCreate.labelPlural,
icon: objectToCreate.icon || undefined,
description: objectToCreate.description || undefined,
standardId: objectToCreate.universalIdentifier,
dataSourceId: dataSourceMetadata.id,
universalIdentifier: objectToCreate.universalIdentifier,
applicationId: ownerFlatApplication.id,
@@ -1,12 +1,12 @@
import deepEqual from 'deep-equal';
import { FieldMetadataType, type ObjectRecord } from 'twenty-shared/types';
import { fastDeepEqual } from 'twenty-shared/utils';
import { STANDARD_OBJECTS } from 'twenty-shared/metadata';
import { type FlatEntityMaps } from 'src/engine/metadata-modules/flat-entity/types/flat-entity-maps.type';
import { type FlatFieldMetadata } from 'src/engine/metadata-modules/flat-field-metadata/types/flat-field-metadata.type';
import { buildFieldMapsFromFlatObjectMetadata } from 'src/engine/metadata-modules/flat-field-metadata/utils/build-field-maps-from-flat-object-metadata.util';
import { type FlatObjectMetadata } from 'src/engine/metadata-modules/flat-object-metadata/types/flat-object-metadata.type';
import { STANDARD_OBJECTS } from 'src/engine/workspace-manager/twenty-standard-application/constants/standard-object.constant';
const LARGE_JSON_FIELDS: Record<string, Set<string>> = {
[STANDARD_OBJECTS.workflowVersion.universalIdentifier]: new Set([