mirror of
https://github.com/lingble/twenty.git
synced 2025-11-01 21:27:58 +00:00
* feat: add ability to sync standard fields on custom object * fix: clean * fix: wrong compute during object creation * fix: missing cascade delete * fix: remove unused injected class * fix: naming * fix: rename factory to paramsFactory and clean * fix: rename ExtendCustomObjectMetadata to BaseCustomObjectMetadata * fix: partial fix inconsistent label and description * Fixes * Fix --------- Co-authored-by: Charles Bochet <charles@twenty.com>
24 lines
759 B
TypeScript
24 lines
759 B
TypeScript
import { GateDecoratorParams } from 'src/workspace/workspace-sync-metadata/interfaces/gate-decorator.interface';
|
|
|
|
import { FieldMetadataType } from 'src/metadata/field-metadata/field-metadata.entity';
|
|
import { ObjectMetadataEntity } from 'src/metadata/object-metadata/object-metadata.entity';
|
|
|
|
export type DynamicRelationFieldMetadataDecoratorParams = (
|
|
oppositeObjectMetadata: ObjectMetadataEntity,
|
|
) => {
|
|
name: string;
|
|
label: string;
|
|
joinColumn: string;
|
|
description?: string;
|
|
icon?: string;
|
|
};
|
|
|
|
export interface ReflectDynamicRelationFieldMetadata {
|
|
type: FieldMetadataType.RELATION;
|
|
paramsFactory: DynamicRelationFieldMetadataDecoratorParams;
|
|
isNullable: boolean;
|
|
isSystem: boolean;
|
|
isCustom: boolean;
|
|
gate?: GateDecoratorParams;
|
|
}
|