Move FieldMetadataType to twenty-shared (#9482)

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Marie
2025-01-09 18:43:30 +01:00
committed by GitHub
parent c39af5f063
commit 71a4593ba4
163 changed files with 341 additions and 388 deletions

View File

@ -1,5 +1,6 @@
import { FieldMetadataType } from 'twenty-shared';
import { computeInputFields } from '../../utils/computeInputFields';
import { FieldMetadataType, InputField } from '../../utils/data.types';
import { InputField } from '../../utils/data.types';
describe('computeInputFields', () => {
test('should create Person input fields properly', () => {
@ -89,16 +90,6 @@ describe('computeInputFields', () => {
defaultValue: null,
},
},
{
node: {
type: FieldMetadataType.LINK,
name: 'xLink',
label: 'X',
description: 'Contacts X/Twitter account',
isNullable: true,
defaultValue: null,
},
},
{
node: {
type: FieldMetadataType.LINKS,
@ -109,18 +100,6 @@ describe('computeInputFields', () => {
defaultValue: null,
},
},
{
node: {
type: FieldMetadataType.EMAIL,
name: 'email',
label: 'Email',
description: 'Contacts Email',
isNullable: false,
defaultValue: {
value: '',
},
},
},
{
node: {
type: FieldMetadataType.UUID,