1858 extensibility create relation metadata decorator in thwenty sdkapplications (#15907)

as title

First PR 
I will update the twenty-cli in another PR
This commit is contained in:
martmull
2025-11-20 10:22:42 +01:00
committed by GitHub
parent 89d166ece6
commit 3190ca5b9e
74 changed files with 162 additions and 118 deletions
@@ -1,4 +1,5 @@
import { isDefined } from 'twenty-shared/utils';
import { STANDARD_OBJECT_IDS } from 'twenty-shared/metadata';
import type { ObjectLiteral } from 'typeorm';
@@ -13,7 +14,6 @@ import { ObjectRecordUpsertEvent } from 'src/engine/core-modules/event-emitter/t
import { objectRecordChangedValues } from 'src/engine/core-modules/event-emitter/utils/object-record-changed-values';
import type { ObjectMetadataItemWithFieldMaps } from 'src/engine/metadata-modules/types/object-metadata-item-with-field-maps';
import { type DatabaseBatchEventInput } from 'src/engine/workspace-event-emitter/workspace-event-emitter';
import { STANDARD_OBJECT_IDS } from 'src/engine/workspace-manager/workspace-sync-metadata/constants/standard-object-ids';
export const formatTwentyOrmEventToDatabaseBatchEvent = <
T extends ObjectLiteral,