From f072c9ac852f871af4da8fb4677088f97c23db5c Mon Sep 17 00:00:00 2001 From: Weiko Date: Mon, 2 Dec 2024 09:49:38 +0100 Subject: [PATCH 01/12] Add field isLabelSyncedWithName --- .../src/generated-metadata/gql.ts | 4 +- .../src/generated-metadata/graphql.ts | 76 +++++- .../object-metadata/graphql/queries.ts | 1 + .../useFindManyObjectMetadataItems.ts | 1 + .../hooks/useFieldMetadataItem.ts | 6 +- .../hooks/useUpdateOneFieldMetadataItem.ts | 23 +- .../types/FieldMetadataItem.ts | 1 + .../utils/formatFieldMetadataItemInput.ts | 14 +- .../fieldMetadataItemSchema.ts | 1 + .../SettingsDataModelFieldIconLabelForm.tsx | 221 ++++++++++++++---- .../data-model/SettingsObjectFieldEdit.tsx | 1 + ...addIsLabelSyncedWithNameToFieldMetadata.ts | 19 ++ .../field-metadata/dtos/field-metadata.dto.ts | 5 + .../field-metadata/field-metadata.entity.ts | 3 + 14 files changed, 313 insertions(+), 63 deletions(-) create mode 100644 packages/twenty-server/src/database/typeorm/metadata/migrations/1733072126592-addIsLabelSyncedWithNameToFieldMetadata.ts diff --git a/packages/twenty-front/src/generated-metadata/gql.ts b/packages/twenty-front/src/generated-metadata/gql.ts index 5d8e10a5ec05..15a239683869 100644 --- a/packages/twenty-front/src/generated-metadata/gql.ts +++ b/packages/twenty-front/src/generated-metadata/gql.ts @@ -32,7 +32,7 @@ const documents = { "\n mutation DeleteOneObjectMetadataItem($idToDelete: UUID!) {\n deleteOneObject(input: { id: $idToDelete }) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n }\n }\n": types.DeleteOneObjectMetadataItemDocument, "\n mutation DeleteOneFieldMetadataItem($idToDelete: UUID!) {\n deleteOneField(input: { id: $idToDelete }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n settings\n }\n }\n": types.DeleteOneFieldMetadataItemDocument, "\n mutation DeleteOneRelationMetadataItem($idToDelete: UUID!) {\n deleteOneRelation(input: { id: $idToDelete }) {\n id\n }\n }\n": types.DeleteOneRelationMetadataItemDocument, - "\n query ObjectMetadataItems(\n $objectFilter: objectFilter\n $fieldFilter: fieldFilter\n ) {\n objects(paging: { first: 1000 }, filter: $objectFilter) {\n edges {\n node {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isRemote\n isActive\n isSystem\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n shortcut\n isLabelSyncedWithName\n indexMetadatas(paging: { first: 100 }) {\n edges {\n node {\n id\n createdAt\n updatedAt\n name\n indexWhereClause\n indexType\n isUnique\n indexFieldMetadatas(paging: { first: 100 }) {\n edges {\n node {\n id\n createdAt\n updatedAt\n order\n fieldMetadataId\n }\n }\n }\n }\n }\n }\n fields(paging: { first: 1000 }, filter: $fieldFilter) {\n edges {\n node {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isSystem\n isNullable\n isUnique\n createdAt\n updatedAt\n defaultValue\n options\n settings\n relationDefinition {\n relationId\n direction\n sourceObjectMetadata {\n id\n nameSingular\n namePlural\n }\n sourceFieldMetadata {\n id\n name\n }\n targetObjectMetadata {\n id\n nameSingular\n namePlural\n }\n targetFieldMetadata {\n id\n name\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n": types.ObjectMetadataItemsDocument, + "\n query ObjectMetadataItems(\n $objectFilter: objectFilter\n $fieldFilter: fieldFilter\n ) {\n objects(paging: { first: 1000 }, filter: $objectFilter) {\n edges {\n node {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isRemote\n isActive\n isSystem\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n shortcut\n isLabelSyncedWithName\n indexMetadatas(paging: { first: 100 }) {\n edges {\n node {\n id\n createdAt\n updatedAt\n name\n indexWhereClause\n indexType\n isUnique\n indexFieldMetadatas(paging: { first: 100 }) {\n edges {\n node {\n id\n createdAt\n updatedAt\n order\n fieldMetadataId\n }\n }\n }\n }\n }\n }\n fields(paging: { first: 1000 }, filter: $fieldFilter) {\n edges {\n node {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isSystem\n isNullable\n isUnique\n createdAt\n updatedAt\n defaultValue\n options\n settings\n isLabelSyncedWithName\n relationDefinition {\n relationId\n direction\n sourceObjectMetadata {\n id\n nameSingular\n namePlural\n }\n sourceFieldMetadata {\n id\n name\n }\n targetObjectMetadata {\n id\n nameSingular\n namePlural\n }\n targetFieldMetadata {\n id\n name\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n": types.ObjectMetadataItemsDocument, "\n fragment ServerlessFunctionFields on ServerlessFunction {\n id\n name\n description\n runtime\n syncStatus\n latestVersion\n latestVersionInputSchema\n publishedVersions\n createdAt\n updatedAt\n }\n": types.ServerlessFunctionFieldsFragmentDoc, "\n \n mutation CreateOneServerlessFunctionItem(\n $input: CreateServerlessFunctionInput!\n ) {\n createOneServerlessFunction(input: $input) {\n ...ServerlessFunctionFields\n }\n }\n": types.CreateOneServerlessFunctionItemDocument, "\n \n mutation DeleteOneServerlessFunction($input: ServerlessFunctionIdInput!) {\n deleteOneServerlessFunction(input: $input) {\n ...ServerlessFunctionFields\n }\n }\n": types.DeleteOneServerlessFunctionDocument, @@ -138,7 +138,7 @@ export function graphql(source: "\n mutation DeleteOneRelationMetadataItem($idT /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql(source: "\n query ObjectMetadataItems(\n $objectFilter: objectFilter\n $fieldFilter: fieldFilter\n ) {\n objects(paging: { first: 1000 }, filter: $objectFilter) {\n edges {\n node {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isRemote\n isActive\n isSystem\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n shortcut\n isLabelSyncedWithName\n indexMetadatas(paging: { first: 100 }) {\n edges {\n node {\n id\n createdAt\n updatedAt\n name\n indexWhereClause\n indexType\n isUnique\n indexFieldMetadatas(paging: { first: 100 }) {\n edges {\n node {\n id\n createdAt\n updatedAt\n order\n fieldMetadataId\n }\n }\n }\n }\n }\n }\n fields(paging: { first: 1000 }, filter: $fieldFilter) {\n edges {\n node {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isSystem\n isNullable\n isUnique\n createdAt\n updatedAt\n defaultValue\n options\n settings\n relationDefinition {\n relationId\n direction\n sourceObjectMetadata {\n id\n nameSingular\n namePlural\n }\n sourceFieldMetadata {\n id\n name\n }\n targetObjectMetadata {\n id\n nameSingular\n namePlural\n }\n targetFieldMetadata {\n id\n name\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n"): (typeof documents)["\n query ObjectMetadataItems(\n $objectFilter: objectFilter\n $fieldFilter: fieldFilter\n ) {\n objects(paging: { first: 1000 }, filter: $objectFilter) {\n edges {\n node {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isRemote\n isActive\n isSystem\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n shortcut\n isLabelSyncedWithName\n indexMetadatas(paging: { first: 100 }) {\n edges {\n node {\n id\n createdAt\n updatedAt\n name\n indexWhereClause\n indexType\n isUnique\n indexFieldMetadatas(paging: { first: 100 }) {\n edges {\n node {\n id\n createdAt\n updatedAt\n order\n fieldMetadataId\n }\n }\n }\n }\n }\n }\n fields(paging: { first: 1000 }, filter: $fieldFilter) {\n edges {\n node {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isSystem\n isNullable\n isUnique\n createdAt\n updatedAt\n defaultValue\n options\n settings\n relationDefinition {\n relationId\n direction\n sourceObjectMetadata {\n id\n nameSingular\n namePlural\n }\n sourceFieldMetadata {\n id\n name\n }\n targetObjectMetadata {\n id\n nameSingular\n namePlural\n }\n targetFieldMetadata {\n id\n name\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n"]; +export function graphql(source: "\n query ObjectMetadataItems(\n $objectFilter: objectFilter\n $fieldFilter: fieldFilter\n ) {\n objects(paging: { first: 1000 }, filter: $objectFilter) {\n edges {\n node {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isRemote\n isActive\n isSystem\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n shortcut\n isLabelSyncedWithName\n indexMetadatas(paging: { first: 100 }) {\n edges {\n node {\n id\n createdAt\n updatedAt\n name\n indexWhereClause\n indexType\n isUnique\n indexFieldMetadatas(paging: { first: 100 }) {\n edges {\n node {\n id\n createdAt\n updatedAt\n order\n fieldMetadataId\n }\n }\n }\n }\n }\n }\n fields(paging: { first: 1000 }, filter: $fieldFilter) {\n edges {\n node {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isSystem\n isNullable\n isUnique\n createdAt\n updatedAt\n defaultValue\n options\n settings\n isLabelSyncedWithName\n relationDefinition {\n relationId\n direction\n sourceObjectMetadata {\n id\n nameSingular\n namePlural\n }\n sourceFieldMetadata {\n id\n name\n }\n targetObjectMetadata {\n id\n nameSingular\n namePlural\n }\n targetFieldMetadata {\n id\n name\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n"): (typeof documents)["\n query ObjectMetadataItems(\n $objectFilter: objectFilter\n $fieldFilter: fieldFilter\n ) {\n objects(paging: { first: 1000 }, filter: $objectFilter) {\n edges {\n node {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isRemote\n isActive\n isSystem\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n shortcut\n isLabelSyncedWithName\n indexMetadatas(paging: { first: 100 }) {\n edges {\n node {\n id\n createdAt\n updatedAt\n name\n indexWhereClause\n indexType\n isUnique\n indexFieldMetadatas(paging: { first: 100 }) {\n edges {\n node {\n id\n createdAt\n updatedAt\n order\n fieldMetadataId\n }\n }\n }\n }\n }\n }\n fields(paging: { first: 1000 }, filter: $fieldFilter) {\n edges {\n node {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isSystem\n isNullable\n isUnique\n createdAt\n updatedAt\n defaultValue\n options\n settings\n isLabelSyncedWithName\n relationDefinition {\n relationId\n direction\n sourceObjectMetadata {\n id\n nameSingular\n namePlural\n }\n sourceFieldMetadata {\n id\n name\n }\n targetObjectMetadata {\n id\n nameSingular\n namePlural\n }\n targetFieldMetadata {\n id\n name\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts index b26b39ddc122..64f83d0cf225 100644 --- a/packages/twenty-front/src/generated-metadata/graphql.ts +++ b/packages/twenty-front/src/generated-metadata/graphql.ts @@ -187,6 +187,7 @@ export type CreateFieldInput = { icon?: InputMaybe; isActive?: InputMaybe; isCustom?: InputMaybe; + isLabelSyncedWithName: Scalars['Boolean']['input']; isNullable?: InputMaybe; isRemoteCreation?: InputMaybe; isSystem?: InputMaybe; @@ -593,10 +594,12 @@ export type Mutation = { updateOneServerlessFunction: ServerlessFunction; updatePasswordViaResetToken: InvalidatePassword; updateWorkspace: Workspace; + updateWorkspaceFeatureFlag: Scalars['Boolean']['output']; uploadFile: Scalars['String']['output']; uploadImage: Scalars['String']['output']; uploadProfilePicture: Scalars['String']['output']; uploadWorkspaceLogo: Scalars['String']['output']; + userLookupAdminPanel: UserLookup; verify: Verify; }; @@ -860,6 +863,13 @@ export type MutationUpdateWorkspaceArgs = { }; +export type MutationUpdateWorkspaceFeatureFlagArgs = { + featureFlag: Scalars['String']['input']; + value: Scalars['Boolean']['input']; + workspaceId: Scalars['String']['input']; +}; + + export type MutationUploadFileArgs = { file: Scalars['Upload']['input']; fileFolder?: InputMaybe; @@ -882,6 +892,11 @@ export type MutationUploadWorkspaceLogoArgs = { }; +export type MutationUserLookupAdminPanelArgs = { + userIdentifier: Scalars['String']['input']; +}; + + export type MutationVerifyArgs = { loginToken: Scalars['String']['input']; }; @@ -1438,6 +1453,7 @@ export type UpdateFieldInput = { icon?: InputMaybe; isActive?: InputMaybe; isCustom?: InputMaybe; + isLabelSyncedWithName?: InputMaybe; isNullable?: InputMaybe; isSystem?: InputMaybe; isUnique?: InputMaybe; @@ -1537,6 +1553,20 @@ export type UserExists = { exists: Scalars['Boolean']['output']; }; +export type UserInfo = { + __typename?: 'UserInfo'; + email: Scalars['String']['output']; + firstName?: Maybe; + id: Scalars['String']['output']; + lastName?: Maybe; +}; + +export type UserLookup = { + __typename?: 'UserLookup'; + user: UserInfo; + workspaces: Array; +}; + export type UserMappingOptions = { password?: InputMaybe; user?: InputMaybe; @@ -1585,6 +1615,7 @@ export type Workspace = { __typename?: 'Workspace'; activationStatus: WorkspaceActivationStatus; allowImpersonation: Scalars['Boolean']['output']; + billingEntitlements?: Maybe>; billingSubscriptions?: Maybe>; createdAt: Scalars['DateTime']['output']; currentBillingSubscription?: Maybe; @@ -1605,6 +1636,12 @@ export type Workspace = { }; +export type WorkspaceBillingEntitlementsArgs = { + filter?: BillingEntitlementFilter; + sorting?: Array; +}; + + export type WorkspaceBillingSubscriptionsArgs = { filter?: BillingSubscriptionFilter; sorting?: Array; @@ -1631,6 +1668,16 @@ export type WorkspaceEdge = { node: Workspace; }; +export type WorkspaceInfo = { + __typename?: 'WorkspaceInfo'; + featureFlags: Array; + id: Scalars['String']['output']; + logo?: Maybe; + name: Scalars['String']['output']; + totalUsers: Scalars['Float']['output']; + users: Array; +}; + export type WorkspaceInvitation = { __typename?: 'WorkspaceInvitation'; email: Scalars['String']['output']; @@ -1676,6 +1723,30 @@ export type WorkspaceNameAndId = { id: Scalars['String']['output']; }; +export type BillingEntitlement = { + __typename?: 'billingEntitlement'; + id: Scalars['UUID']['output']; + key: Scalars['String']['output']; + value: Scalars['Boolean']['output']; + workspaceId: Scalars['String']['output']; +}; + +export type BillingEntitlementFilter = { + and?: InputMaybe>; + id?: InputMaybe; + or?: InputMaybe>; +}; + +export type BillingEntitlementSort = { + direction: SortDirection; + field: BillingEntitlementSortFields; + nulls?: InputMaybe; +}; + +export enum BillingEntitlementSortFields { + Id = 'id' +} + export type Field = { __typename?: 'field'; createdAt: Scalars['DateTime']['output']; @@ -1686,6 +1757,7 @@ export type Field = { id: Scalars['UUID']['output']; isActive?: Maybe; isCustom?: Maybe; + isLabelSyncedWithName: Scalars['Boolean']['output']; isNullable?: Maybe; isSystem?: Maybe; isUnique?: Maybe; @@ -1989,7 +2061,7 @@ export type ObjectMetadataItemsQueryVariables = Exact<{ }>; -export type ObjectMetadataItemsQuery = { __typename?: 'Query', objects: { __typename?: 'ObjectConnection', edges: Array<{ __typename?: 'objectEdge', node: { __typename?: 'object', id: any, dataSourceId: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, description?: string | null, icon?: string | null, isCustom: boolean, isRemote: boolean, isActive: boolean, isSystem: boolean, createdAt: any, updatedAt: any, labelIdentifierFieldMetadataId?: string | null, imageIdentifierFieldMetadataId?: string | null, shortcut?: string | null, isLabelSyncedWithName: boolean, indexMetadatas: { __typename?: 'ObjectIndexMetadatasConnection', edges: Array<{ __typename?: 'indexEdge', node: { __typename?: 'index', id: any, createdAt: any, updatedAt: any, name: string, indexWhereClause?: string | null, indexType: IndexType, isUnique: boolean, indexFieldMetadatas: { __typename?: 'IndexIndexFieldMetadatasConnection', edges: Array<{ __typename?: 'indexFieldEdge', node: { __typename?: 'indexField', id: any, createdAt: any, updatedAt: any, order: number, fieldMetadataId: any } }> } } }> }, fields: { __typename?: 'ObjectFieldsConnection', edges: Array<{ __typename?: 'fieldEdge', node: { __typename?: 'field', id: any, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, isCustom?: boolean | null, isActive?: boolean | null, isSystem?: boolean | null, isNullable?: boolean | null, isUnique?: boolean | null, createdAt: any, updatedAt: any, defaultValue?: any | null, options?: any | null, settings?: any | null, relationDefinition?: { __typename?: 'RelationDefinition', relationId: any, direction: RelationDefinitionType, sourceObjectMetadata: { __typename?: 'object', id: any, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename?: 'field', id: any, name: string }, targetObjectMetadata: { __typename?: 'object', id: any, nameSingular: string, namePlural: string }, targetFieldMetadata: { __typename?: 'field', id: any, name: string } } | null } }>, pageInfo: { __typename?: 'PageInfo', hasNextPage?: boolean | null, hasPreviousPage?: boolean | null, startCursor?: any | null, endCursor?: any | null } } } }>, pageInfo: { __typename?: 'PageInfo', hasNextPage?: boolean | null, hasPreviousPage?: boolean | null, startCursor?: any | null, endCursor?: any | null } } }; +export type ObjectMetadataItemsQuery = { __typename?: 'Query', objects: { __typename?: 'ObjectConnection', edges: Array<{ __typename?: 'objectEdge', node: { __typename?: 'object', id: any, dataSourceId: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, description?: string | null, icon?: string | null, isCustom: boolean, isRemote: boolean, isActive: boolean, isSystem: boolean, createdAt: any, updatedAt: any, labelIdentifierFieldMetadataId?: string | null, imageIdentifierFieldMetadataId?: string | null, shortcut?: string | null, isLabelSyncedWithName: boolean, indexMetadatas: { __typename?: 'ObjectIndexMetadatasConnection', edges: Array<{ __typename?: 'indexEdge', node: { __typename?: 'index', id: any, createdAt: any, updatedAt: any, name: string, indexWhereClause?: string | null, indexType: IndexType, isUnique: boolean, indexFieldMetadatas: { __typename?: 'IndexIndexFieldMetadatasConnection', edges: Array<{ __typename?: 'indexFieldEdge', node: { __typename?: 'indexField', id: any, createdAt: any, updatedAt: any, order: number, fieldMetadataId: any } }> } } }> }, fields: { __typename?: 'ObjectFieldsConnection', edges: Array<{ __typename?: 'fieldEdge', node: { __typename?: 'field', id: any, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, isCustom?: boolean | null, isActive?: boolean | null, isSystem?: boolean | null, isNullable?: boolean | null, isUnique?: boolean | null, createdAt: any, updatedAt: any, defaultValue?: any | null, options?: any | null, settings?: any | null, isLabelSyncedWithName: boolean, relationDefinition?: { __typename?: 'RelationDefinition', relationId: any, direction: RelationDefinitionType, sourceObjectMetadata: { __typename?: 'object', id: any, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename?: 'field', id: any, name: string }, targetObjectMetadata: { __typename?: 'object', id: any, nameSingular: string, namePlural: string }, targetFieldMetadata: { __typename?: 'field', id: any, name: string } } | null } }>, pageInfo: { __typename?: 'PageInfo', hasNextPage?: boolean | null, hasPreviousPage?: boolean | null, startCursor?: any | null, endCursor?: any | null } } } }>, pageInfo: { __typename?: 'PageInfo', hasNextPage?: boolean | null, hasPreviousPage?: boolean | null, startCursor?: any | null, endCursor?: any | null } } }; export type ServerlessFunctionFieldsFragment = { __typename?: 'ServerlessFunction', id: any, name: string, description?: string | null, runtime: string, syncStatus: ServerlessFunctionSyncStatus, latestVersion?: string | null, latestVersionInputSchema?: any | null, publishedVersions: Array, createdAt: any, updatedAt: any }; @@ -2072,7 +2144,7 @@ export const UpdateOneObjectMetadataItemDocument = {"kind":"Document","definitio export const DeleteOneObjectMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteOneObjectMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"idToDelete"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteOneObject"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"idToDelete"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"dataSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}}]}}]}}]} as unknown as DocumentNode; export const DeleteOneFieldMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteOneFieldMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"idToDelete"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteOneField"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"idToDelete"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}}]}}]}}]} as unknown as DocumentNode; export const DeleteOneRelationMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteOneRelationMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"idToDelete"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteOneRelation"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"idToDelete"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; -export const ObjectMetadataItemsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ObjectMetadataItems"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"objectFilter"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"objectFilter"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fieldFilter"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"fieldFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objects"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"paging"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1000"}}]}},{"kind":"Argument","name":{"kind":"Name","value":"filter"},"value":{"kind":"Variable","name":{"kind":"Name","value":"objectFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"dataSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"shortcut"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"indexMetadatas"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"paging"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"100"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"indexWhereClause"}},{"kind":"Field","name":{"kind":"Name","value":"indexType"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"indexFieldMetadatas"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"paging"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"100"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"order"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}}]}}]}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"fields"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"paging"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1000"}}]}},{"kind":"Argument","name":{"kind":"Name","value":"filter"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fieldFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultValue"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"relationDefinition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"relationId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"hasPreviousPage"}},{"kind":"Field","name":{"kind":"Name","value":"startCursor"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}}]}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"hasPreviousPage"}},{"kind":"Field","name":{"kind":"Name","value":"startCursor"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}}]}}]}}]}}]} as unknown as DocumentNode; +export const ObjectMetadataItemsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ObjectMetadataItems"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"objectFilter"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"objectFilter"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fieldFilter"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"fieldFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objects"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"paging"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1000"}}]}},{"kind":"Argument","name":{"kind":"Name","value":"filter"},"value":{"kind":"Variable","name":{"kind":"Name","value":"objectFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"dataSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"shortcut"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"indexMetadatas"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"paging"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"100"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"indexWhereClause"}},{"kind":"Field","name":{"kind":"Name","value":"indexType"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"indexFieldMetadatas"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"paging"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"100"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"order"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}}]}}]}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"fields"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"paging"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1000"}}]}},{"kind":"Argument","name":{"kind":"Name","value":"filter"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fieldFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultValue"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"relationDefinition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"relationId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"hasPreviousPage"}},{"kind":"Field","name":{"kind":"Name","value":"startCursor"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}}]}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"hasPreviousPage"}},{"kind":"Field","name":{"kind":"Name","value":"startCursor"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}}]}}]}}]}}]} as unknown as DocumentNode; export const CreateOneServerlessFunctionItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateOneServerlessFunctionItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateServerlessFunctionInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createOneServerlessFunction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServerlessFunctionFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ServerlessFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ServerlessFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"syncStatus"}},{"kind":"Field","name":{"kind":"Name","value":"latestVersion"}},{"kind":"Field","name":{"kind":"Name","value":"latestVersionInputSchema"}},{"kind":"Field","name":{"kind":"Name","value":"publishedVersions"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode; export const DeleteOneServerlessFunctionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteOneServerlessFunction"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ServerlessFunctionIdInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteOneServerlessFunction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServerlessFunctionFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ServerlessFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ServerlessFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"syncStatus"}},{"kind":"Field","name":{"kind":"Name","value":"latestVersion"}},{"kind":"Field","name":{"kind":"Name","value":"latestVersionInputSchema"}},{"kind":"Field","name":{"kind":"Name","value":"publishedVersions"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode; export const ExecuteOneServerlessFunctionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ExecuteOneServerlessFunction"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ExecuteServerlessFunctionInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"executeOneServerlessFunction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"}},{"kind":"Field","name":{"kind":"Name","value":"duration"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"error"}}]}}]}}]} as unknown as DocumentNode; diff --git a/packages/twenty-front/src/modules/object-metadata/graphql/queries.ts b/packages/twenty-front/src/modules/object-metadata/graphql/queries.ts index 2faa56fa5246..7c227327e77d 100644 --- a/packages/twenty-front/src/modules/object-metadata/graphql/queries.ts +++ b/packages/twenty-front/src/modules/object-metadata/graphql/queries.ts @@ -69,6 +69,7 @@ export const FIND_MANY_OBJECT_METADATA_ITEMS = gql` defaultValue options settings + isLabelSyncedWithName relationDefinition { relationId direction diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFindManyObjectMetadataItems.ts b/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFindManyObjectMetadataItems.ts index 3b541a9d6ced..9c6af0737801 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFindManyObjectMetadataItems.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFindManyObjectMetadataItems.ts @@ -41,6 +41,7 @@ export const query = gql` isNullable createdAt updatedAt + isLabelSyncedWithName relationDefinition { relationId direction diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/useFieldMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/hooks/useFieldMetadataItem.ts index 81e66472a7b9..79d1555b1ab0 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/useFieldMetadataItem.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/useFieldMetadataItem.ts @@ -1,6 +1,5 @@ import { useDeleteOneRelationMetadataItem } from '@/object-metadata/hooks/useDeleteOneRelationMetadataItem'; -import { FieldMetadataType } from '~/generated-metadata/graphql'; -import { Field } from '~/generated/graphql'; +import { Field, FieldMetadataType } from '~/generated-metadata/graphql'; import { FieldMetadataItem } from '../types/FieldMetadataItem'; import { formatFieldMetadataItemInput } from '../utils/formatFieldMetadataItemInput'; @@ -18,6 +17,7 @@ export const useFieldMetadataItem = () => { const createMetadataField = ( input: Pick< Field, + | 'name' | 'label' | 'icon' | 'description' @@ -25,6 +25,7 @@ export const useFieldMetadataItem = () => { | 'type' | 'options' | 'settings' + | 'isLabelSyncedWithName' > & { objectMetadataId: string; }, @@ -37,6 +38,7 @@ export const useFieldMetadataItem = () => { type: input.type, label: formattedInput.label ?? '', name: formattedInput.name ?? '', + isLabelSyncedWithName: formattedInput.isLabelSyncedWithName ?? true, }); }; diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts index 55048b3e33a7..54cecdf271ef 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts @@ -54,6 +54,7 @@ export const useUpdateOneFieldMetadataItem = () => { | 'name' | 'defaultValue' | 'options' + | 'isLabelSyncedWithName' >; }) => { const result = await mutate({ @@ -68,17 +69,17 @@ export const useUpdateOneFieldMetadataItem = () => { refetchQueries: [getOperationName(FIND_MANY_OBJECT_METADATA_ITEMS) ?? ''], }); - await apolloClient.query({ - query: findManyRecordsQuery, - variables: { - filter: { - objectMetadataId: { - eq: objectMetadataId, - }, - }, - }, - fetchPolicy: 'network-only', - }); + // await apolloClient.query({ + // query: findManyRecordsQuery, + // variables: { + // filter: { + // objectMetadataId: { + // eq: objectMetadataId, + // }, + // }, + // }, + // fetchPolicy: 'network-only', + // }); return result; }; diff --git a/packages/twenty-front/src/modules/object-metadata/types/FieldMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/types/FieldMetadataItem.ts index 8a403a55a379..7e71cedbf62c 100644 --- a/packages/twenty-front/src/modules/object-metadata/types/FieldMetadataItem.ts +++ b/packages/twenty-front/src/modules/object-metadata/types/FieldMetadataItem.ts @@ -39,4 +39,5 @@ export type FieldMetadataItem = Omit< settings?: { displayAsRelativeDate?: boolean; }; + isLabelSyncedWithName?: boolean; }; diff --git a/packages/twenty-front/src/modules/object-metadata/utils/formatFieldMetadataItemInput.ts b/packages/twenty-front/src/modules/object-metadata/utils/formatFieldMetadataItemInput.ts index bfcca728d674..7f6c3be3f777 100644 --- a/packages/twenty-front/src/modules/object-metadata/utils/formatFieldMetadataItemInput.ts +++ b/packages/twenty-front/src/modules/object-metadata/utils/formatFieldMetadataItemInput.ts @@ -1,29 +1,29 @@ import { FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem'; -import { computeMetadataNameFromLabel } from '~/pages/settings/data-model/utils/compute-metadata-name-from-label.utils'; export const formatFieldMetadataItemInput = ( input: Partial< Pick< FieldMetadataItem, - | 'type' + | 'name' | 'label' - | 'defaultValue' | 'icon' | 'description' + | 'defaultValue' + | 'type' | 'options' | 'settings' + | 'isLabelSyncedWithName' > >, ) => { - const label = input.label?.trim(); - return { defaultValue: input.defaultValue, description: input.description?.trim() ?? null, icon: input.icon, - label, - name: label ? computeMetadataNameFromLabel(label) : undefined, + label: input.label?.trim(), + name: input.name?.trim(), options: input.options, settings: input.settings, + isLabelSyncedWithName: input.isLabelSyncedWithName, }; }; diff --git a/packages/twenty-front/src/modules/object-metadata/validation-schemas/fieldMetadataItemSchema.ts b/packages/twenty-front/src/modules/object-metadata/validation-schemas/fieldMetadataItemSchema.ts index 5d4ddc67cbb2..2bc30b62af13 100644 --- a/packages/twenty-front/src/modules/object-metadata/validation-schemas/fieldMetadataItemSchema.ts +++ b/packages/twenty-front/src/modules/object-metadata/validation-schemas/fieldMetadataItemSchema.ts @@ -23,6 +23,7 @@ export const fieldMetadataItemSchema = (existingLabels?: string[]) => { isUnique: z.boolean(), isSystem: z.boolean(), label: metadataLabelSchema(existingLabels), + isLabelSyncedWithName: z.boolean(), name: camelCaseStringSchema, options: z .array( diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIconLabelForm.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIconLabelForm.tsx index d4771446e5d3..1d09011a78ef 100644 --- a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIconLabelForm.tsx +++ b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIconLabelForm.tsx @@ -4,17 +4,39 @@ import { z } from 'zod'; import { FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem'; import { fieldMetadataItemSchema } from '@/object-metadata/validation-schemas/fieldMetadataItemSchema'; +import { AdvancedSettingsWrapper } from '@/settings/components/AdvancedSettingsWrapper'; +import { SettingsOptionCardContentToggle } from '@/settings/components/SettingsOptions/SettingsOptionCardContentToggle'; +import { DATABASE_IDENTIFIER_MAXIMUM_LENGTH } from '@/settings/data-model/constants/DatabaseIdentifierMaximumLength'; import { getErrorMessageFromError } from '@/settings/data-model/fields/forms/utils/errorMessages'; import { IconPicker } from '@/ui/input/components/IconPicker'; import { TextInput } from '@/ui/input/components/TextInput'; +import { useTheme } from '@emotion/react'; +import { + AppTooltip, + Card, + IconInfoCircle, + IconRefresh, + isDefined, + TooltipDelay, +} from 'twenty-ui'; +import { computeMetadataNameFromLabel } from '~/pages/settings/data-model/utils/compute-metadata-name-from-label.utils'; export const settingsDataModelFieldIconLabelFormSchema = ( existingOtherLabels: string[] = [], ) => { - return fieldMetadataItemSchema(existingOtherLabels).pick({ - icon: true, - label: true, - }); + return fieldMetadataItemSchema(existingOtherLabels) + .pick({ + icon: true, + label: true, + }) + .merge( + fieldMetadataItemSchema() + .pick({ + name: true, + isLabelSyncedWithName: true, + }) + .partial(), + ); }; type SettingsDataModelFieldIconLabelFormValues = z.infer< @@ -28,12 +50,33 @@ const StyledInputsContainer = styled.div` width: 100%; `; +const StyledAdvancedSettingsSectionInputWrapper = styled.div` + display: flex; + flex-direction: column; + gap: ${({ theme }) => theme.spacing(4)}; + width: 100%; + flex: 1; +`; + +const StyledAdvancedSettingsOuterContainer = styled.div` + padding-top: ${({ theme }) => theme.spacing(4)}; +`; + +const StyledAdvancedSettingsContainer = styled.div` + display: flex; + gap: ${({ theme }) => theme.spacing(2)}; + position: relative; + width: 100%; +`; + type SettingsDataModelFieldIconLabelFormProps = { disabled?: boolean; fieldMetadataItem?: FieldMetadataItem; maxLength?: number; }; +const infoCircleElementId = 'info-circle-id'; + export const SettingsDataModelFieldIconLabelForm = ({ disabled, fieldMetadataItem, @@ -41,44 +84,144 @@ export const SettingsDataModelFieldIconLabelForm = ({ }: SettingsDataModelFieldIconLabelFormProps) => { const { control, - trigger, + setValue, + watch, formState: { errors }, } = useFormContext(); + const theme = useTheme(); + + const isLabelSyncedWithName = + watch('isLabelSyncedWithName') ?? + (isDefined(fieldMetadataItem) + ? fieldMetadataItem.isLabelSyncedWithName + : true); + const label = watch('label'); + + const apiNameTooltipText = isLabelSyncedWithName + ? 'Deactivate "Synchronize Objects Labels and API Names" to set a custom API name' + : 'Input must be in camel case and cannot start with a number'; + + const fillNameFromLabel = (label: string) => { + isDefined(label) && + setValue('name', computeMetadataNameFromLabel(label), { + shouldDirty: true, + }); + }; + return ( - - ( - onChange(iconKey)} - variant="primary" - /> - )} - /> - ( - { - onChange(e); - trigger('label'); - }} - error={getErrorMessageFromError(errors.label?.message)} - disabled={disabled} - maxLength={maxLength} - fullWidth - /> - )} - /> - + <> + + ( + onChange(iconKey)} + variant="primary" + /> + )} + /> + ( + { + onChange(value); + if (isLabelSyncedWithName === true) { + fillNameFromLabel(value); + } + }} + error={getErrorMessageFromError(errors.label?.message)} + disabled={disabled} + maxLength={maxLength} + fullWidth + /> + )} + /> + + + + + + + ( + <> + + apiNameTooltipText && ( + <> + + + + ) + } + /> + + )} + /> + + ( + + { + onChange(value); + if (value === true) { + fillNameFromLabel(label); + } + }} + /> + + )} + /> + + + + + ); }; diff --git a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx index 98dbfd779ed4..e51e9e08d782 100644 --- a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx +++ b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx @@ -87,6 +87,7 @@ export const SettingsObjectFieldEdit = () => { type: fieldMetadataItem?.type as SettingsFieldType, label: fieldMetadataItem?.label ?? '', description: fieldMetadataItem?.description, + isLabelSyncedWithName: fieldMetadataItem?.isLabelSyncedWithName ?? true, }, }); diff --git a/packages/twenty-server/src/database/typeorm/metadata/migrations/1733072126592-addIsLabelSyncedWithNameToFieldMetadata.ts b/packages/twenty-server/src/database/typeorm/metadata/migrations/1733072126592-addIsLabelSyncedWithNameToFieldMetadata.ts new file mode 100644 index 000000000000..6430e63848c3 --- /dev/null +++ b/packages/twenty-server/src/database/typeorm/metadata/migrations/1733072126592-addIsLabelSyncedWithNameToFieldMetadata.ts @@ -0,0 +1,19 @@ +import { MigrationInterface, QueryRunner } from 'typeorm'; + +export class AddIsLabelSyncedWithNameToFieldMetadata1733072126592 + implements MigrationInterface +{ + name = 'AddIsLabelSyncedWithNameToFieldMetadata1733072126592'; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `ALTER TABLE "metadata"."fieldMetadata" ADD "isLabelSyncedWithName" boolean NOT NULL DEFAULT true`, + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `ALTER TABLE "metadata"."fieldMetadata" DROP COLUMN "isLabelSyncedWithName"`, + ); + } +} diff --git a/packages/twenty-server/src/engine/metadata-modules/field-metadata/dtos/field-metadata.dto.ts b/packages/twenty-server/src/engine/metadata-modules/field-metadata/dtos/field-metadata.dto.ts index 862fcd4e0156..1a674b7bfcf8 100644 --- a/packages/twenty-server/src/engine/metadata-modules/field-metadata/dtos/field-metadata.dto.ts +++ b/packages/twenty-server/src/engine/metadata-modules/field-metadata/dtos/field-metadata.dto.ts @@ -145,6 +145,11 @@ export class FieldMetadataDTO< objectMetadataId: string; + @IsBoolean() + @IsOptional() + @Field() + isLabelSyncedWithName?: boolean; + @IsDateString() @Field() createdAt: Date; diff --git a/packages/twenty-server/src/engine/metadata-modules/field-metadata/field-metadata.entity.ts b/packages/twenty-server/src/engine/metadata-modules/field-metadata/field-metadata.entity.ts index 31d2dab39185..58c18758a050 100644 --- a/packages/twenty-server/src/engine/metadata-modules/field-metadata/field-metadata.entity.ts +++ b/packages/twenty-server/src/engine/metadata-modules/field-metadata/field-metadata.entity.ts @@ -114,6 +114,9 @@ export class FieldMetadataEntity< @Column({ nullable: false, type: 'uuid' }) workspaceId: string; + @Column({ default: true }) + isLabelSyncedWithName: boolean; + @OneToOne( () => RelationMetadataEntity, (relation: RelationMetadataEntity) => relation.fromFieldMetadata, From 6ff6b62c7237655c726be452f50162dde18360fb Mon Sep 17 00:00:00 2001 From: Weiko Date: Mon, 2 Dec 2024 11:26:50 +0100 Subject: [PATCH 02/12] fix enum update renaming --- .../services/workspace-migration-enum.service.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/services/workspace-migration-enum.service.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/services/workspace-migration-enum.service.ts index 6a2deb6ff855..190972bcd7e0 100644 --- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/services/workspace-migration-enum.service.ts +++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/services/workspace-migration-enum.service.ts @@ -23,6 +23,13 @@ export class WorkspaceMigrationEnumService { tableName: string, migrationColumn: WorkspaceMigrationColumnAlter, ) { + const oldEnumTypeName = await this.getEnumTypeName( + queryRunner, + schemaName, + tableName, + migrationColumn.currentColumnDefinition.columnName, + ); + // Rename column name if ( migrationColumn.currentColumnDefinition.columnName !== @@ -37,13 +44,6 @@ export class WorkspaceMigrationEnumService { ); } - const oldEnumTypeName = await this.getEnumTypeName( - queryRunner, - schemaName, - tableName, - migrationColumn.currentColumnDefinition.columnName, - ); - const columnDefinition = migrationColumn.alteredColumnDefinition; const tempEnumTypeName = `${oldEnumTypeName}_temp`; const newEnumTypeName = `${tableName}_${columnDefinition.columnName}_enum`; From 89289b84ee7942130d60ba4fd1a3ce5c4e4542a7 Mon Sep 17 00:00:00 2001 From: Weiko Date: Mon, 2 Dec 2024 11:41:02 +0100 Subject: [PATCH 03/12] remove unnecessary refetch --- .../hooks/useUpdateOneFieldMetadataItem.ts | 31 +------------------ .../data-model/SettingsObjectFieldEdit.tsx | 18 ----------- .../workspace-migration-enum.service.ts | 2 +- 3 files changed, 2 insertions(+), 49 deletions(-) diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts index 54cecdf271ef..1db9afe3c0c9 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts @@ -1,4 +1,4 @@ -import { useApolloClient, useMutation } from '@apollo/client'; +import { useMutation } from '@apollo/client'; import { getOperationName } from '@apollo/client/utilities'; import { @@ -9,27 +9,10 @@ import { import { UPDATE_ONE_FIELD_METADATA_ITEM } from '../graphql/mutations'; import { FIND_MANY_OBJECT_METADATA_ITEMS } from '../graphql/queries'; -import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; -import { useFindManyRecordsQuery } from '@/object-record/hooks/useFindManyRecordsQuery'; import { useApolloMetadataClient } from './useApolloMetadataClient'; export const useUpdateOneFieldMetadataItem = () => { const apolloMetadataClient = useApolloMetadataClient(); - const apolloClient = useApolloClient(); - - const { findManyRecordsQuery } = useFindManyRecordsQuery({ - objectNameSingular: CoreObjectNameSingular.View, - recordGqlFields: { - id: true, - viewGroups: { - id: true, - fieldMetadataId: true, - isVisible: true, - fieldValue: true, - position: true, - }, - }, - }); const [mutate] = useMutation< UpdateOneFieldMetadataItemMutation, @@ -69,18 +52,6 @@ export const useUpdateOneFieldMetadataItem = () => { refetchQueries: [getOperationName(FIND_MANY_OBJECT_METADATA_ITEMS) ?? ''], }); - // await apolloClient.query({ - // query: findManyRecordsQuery, - // variables: { - // filter: { - // objectMetadataId: { - // eq: objectMetadataId, - // }, - // }, - // }, - // fetchPolicy: 'network-only', - // }); - return result; }; diff --git a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx index e51e9e08d782..cfa2de132d4e 100644 --- a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx +++ b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx @@ -1,4 +1,3 @@ -import { useApolloClient } from '@apollo/client'; import { zodResolver } from '@hookform/resolvers/zod'; import omit from 'lodash.omit'; import pick from 'lodash.pick'; @@ -21,7 +20,6 @@ import { useUpdateOneFieldMetadataItem } from '@/object-metadata/hooks/useUpdate import { formatFieldMetadataItemInput } from '@/object-metadata/utils/formatFieldMetadataItemInput'; import { getFieldSlug } from '@/object-metadata/utils/getFieldSlug'; import { isLabelIdentifierField } from '@/object-metadata/utils/isLabelIdentifierField'; -import { useFindManyRecordsQuery } from '@/object-record/hooks/useFindManyRecordsQuery'; import { RecordFieldValueSelectorContextProvider } from '@/object-record/record-store/contexts/RecordFieldValueSelectorContext'; import { SaveAndCancelButtons } from '@/settings/components/SaveAndCancelButtons/SaveAndCancelButtons'; import { SettingsPageContainer } from '@/settings/components/SettingsPageContainer'; @@ -65,20 +63,6 @@ export const SettingsObjectFieldEdit = () => { const getRelationMetadata = useGetRelationMetadata(); const { updateOneFieldMetadataItem } = useUpdateOneFieldMetadataItem(); - const apolloClient = useApolloClient(); - - const { findManyRecordsQuery } = useFindManyRecordsQuery({ - objectNameSingular: objectMetadataItem?.nameSingular || '', - }); - - const refetchRecords = async () => { - if (!objectMetadataItem) return; - await apolloClient.query({ - query: findManyRecordsQuery, - fetchPolicy: 'network-only', - }); - }; - const formConfig = useForm({ mode: 'onTouched', resolver: zodResolver(settingsFieldFormSchema()), @@ -150,8 +134,6 @@ export const SettingsObjectFieldEdit = () => { } navigate(`/settings/objects/${objectSlug}`); - - refetchRecords(); } catch (error) { enqueueSnackBar((error as Error).message, { variant: SnackBarVariant.Error, diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/services/workspace-migration-enum.service.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/services/workspace-migration-enum.service.ts index 190972bcd7e0..209b4635d1b3 100644 --- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/services/workspace-migration-enum.service.ts +++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/services/workspace-migration-enum.service.ts @@ -236,7 +236,7 @@ export class WorkspaceMigrationEnumService { [schemaName, tableName, columnName], ); - const enumTypeName = result[0].udt_name; + const enumTypeName = result[0]?.udt_name; if (!enumTypeName) { throw new WorkspaceMigrationException( From d817def43eed6f2cb0f37f553a7f8eb46c3dddcd Mon Sep 17 00:00:00 2001 From: Weiko Date: Mon, 2 Dec 2024 11:50:34 +0100 Subject: [PATCH 04/12] fix lint --- .../modules/object-metadata/hooks/useFieldMetadataItem.ts | 6 ++---- .../object-metadata/hooks/useUpdateOneFieldMetadataItem.ts | 2 -- .../pages/settings/data-model/SettingsObjectFieldEdit.tsx | 2 -- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/useFieldMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/hooks/useFieldMetadataItem.ts index 79d1555b1ab0..08e9ca629a33 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/useFieldMetadataItem.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/useFieldMetadataItem.ts @@ -44,20 +44,18 @@ export const useFieldMetadataItem = () => { const activateMetadataField = ( fieldMetadataId: string, - objectMetadataId: string, + _objectMetadataId: string, ) => updateOneFieldMetadataItem({ - objectMetadataId: objectMetadataId, fieldMetadataIdToUpdate: fieldMetadataId, updatePayload: { isActive: true }, }); const deactivateMetadataField = ( fieldMetadataId: string, - objectMetadataId: string, + _objectMetadataId: string, ) => updateOneFieldMetadataItem({ - objectMetadataId: objectMetadataId, fieldMetadataIdToUpdate: fieldMetadataId, updatePayload: { isActive: false }, }); diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts index 1db9afe3c0c9..91f985a8bdf3 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts @@ -22,11 +22,9 @@ export const useUpdateOneFieldMetadataItem = () => { }); const updateOneFieldMetadataItem = async ({ - objectMetadataId, fieldMetadataIdToUpdate, updatePayload, }: { - objectMetadataId: string; fieldMetadataIdToUpdate: UpdateOneFieldMetadataItemMutationVariables['idToUpdate']; updatePayload: Pick< UpdateOneFieldMetadataItemMutationVariables['updatePayload'], diff --git a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx index cfa2de132d4e..8e89dbb6c2d7 100644 --- a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx +++ b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx @@ -111,7 +111,6 @@ export const SettingsObjectFieldEdit = () => { if (isDefined(relationFieldMetadataItem)) { await updateOneFieldMetadataItem({ - objectMetadataId: objectMetadataItem.id, fieldMetadataIdToUpdate: relationFieldMetadataItem.id, updatePayload: formValues.relation.field, }); @@ -127,7 +126,6 @@ export const SettingsObjectFieldEdit = () => { ); await updateOneFieldMetadataItem({ - objectMetadataId: objectMetadataItem.id, fieldMetadataIdToUpdate: fieldMetadataItem.id, updatePayload: formattedInput, }); From c0a317b723aadd50948caea26cc85a91cad0d777 Mon Sep 17 00:00:00 2001 From: Weiko Date: Mon, 2 Dec 2024 11:56:59 +0100 Subject: [PATCH 05/12] fix test --- .../hooks/__tests__/useFieldMetadataItem.test.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useFieldMetadataItem.test.tsx b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useFieldMetadataItem.test.tsx index a864e3060f8f..d7fac15dcf77 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useFieldMetadataItem.test.tsx +++ b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useFieldMetadataItem.test.tsx @@ -23,6 +23,7 @@ const fieldMetadataItem: FieldMetadataItem = { name: 'name', type: FieldMetadataType.Text, updatedAt: '', + isLabelSyncedWithName: true, }; const fieldRelationMetadataItem: FieldMetadataItem = { @@ -32,6 +33,7 @@ const fieldRelationMetadataItem: FieldMetadataItem = { name: 'name', type: FieldMetadataType.Relation, updatedAt: '', + isLabelSyncedWithName: true, relationDefinition: { relationId: RELATION_METADATA_ID, direction: RelationDefinitionType.OneToMany, @@ -171,6 +173,8 @@ describe('useFieldMetadataItem', () => { label: 'fieldLabel', objectMetadataId, type: FieldMetadataType.Text, + isLabelSyncedWithName: true, + name: 'fieldName', }); expect(res.data).toEqual({ From 2ee2c1fe7545b1f85d63a68539829af9fee86ead Mon Sep 17 00:00:00 2001 From: Weiko Date: Mon, 2 Dec 2024 15:09:55 +0100 Subject: [PATCH 06/12] fix 404 and schema mismatch --- .../twenty-front/src/generated/graphql.tsx | 1 + .../hooks/useFieldMetadataItem.ts | 6 ++- .../hooks/useUpdateOneFieldMetadataItem.ts | 39 ++++++++++++++++++- .../graphql/fragments/userQueryFragment.ts | 2 + .../users/graphql/queries/getCurrentUser.ts | 2 + .../fragments/workspaceMemberQueryFragment.ts | 2 +- .../data-model/SettingsObjectFieldEdit.tsx | 32 ++++++++++++++- 7 files changed, 78 insertions(+), 6 deletions(-) diff --git a/packages/twenty-front/src/generated/graphql.tsx b/packages/twenty-front/src/generated/graphql.tsx index 513273ddde0e..d123a46452fb 100644 --- a/packages/twenty-front/src/generated/graphql.tsx +++ b/packages/twenty-front/src/generated/graphql.tsx @@ -1455,6 +1455,7 @@ export type Field = { id: Scalars['UUID']; isActive?: Maybe; isCustom?: Maybe; + isLabelSyncedWithName: Scalars['Boolean']; isNullable?: Maybe; isSystem?: Maybe; isUnique?: Maybe; diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/useFieldMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/hooks/useFieldMetadataItem.ts index 08e9ca629a33..79d1555b1ab0 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/useFieldMetadataItem.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/useFieldMetadataItem.ts @@ -44,18 +44,20 @@ export const useFieldMetadataItem = () => { const activateMetadataField = ( fieldMetadataId: string, - _objectMetadataId: string, + objectMetadataId: string, ) => updateOneFieldMetadataItem({ + objectMetadataId: objectMetadataId, fieldMetadataIdToUpdate: fieldMetadataId, updatePayload: { isActive: true }, }); const deactivateMetadataField = ( fieldMetadataId: string, - _objectMetadataId: string, + objectMetadataId: string, ) => updateOneFieldMetadataItem({ + objectMetadataId: objectMetadataId, fieldMetadataIdToUpdate: fieldMetadataId, updatePayload: { isActive: false }, }); diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts index 91f985a8bdf3..01c7c3e1391f 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts @@ -1,4 +1,4 @@ -import { useMutation } from '@apollo/client'; +import { useApolloClient, useMutation } from '@apollo/client'; import { getOperationName } from '@apollo/client/utilities'; import { @@ -9,10 +9,28 @@ import { import { UPDATE_ONE_FIELD_METADATA_ITEM } from '../graphql/mutations'; import { FIND_MANY_OBJECT_METADATA_ITEMS } from '../graphql/queries'; +import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; +import { useFindManyRecordsQuery } from '@/object-record/hooks/useFindManyRecordsQuery'; +import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser'; import { useApolloMetadataClient } from './useApolloMetadataClient'; export const useUpdateOneFieldMetadataItem = () => { const apolloMetadataClient = useApolloMetadataClient(); + const apolloClient = useApolloClient(); + + const { findManyRecordsQuery } = useFindManyRecordsQuery({ + objectNameSingular: CoreObjectNameSingular.View, + recordGqlFields: { + id: true, + viewGroups: { + id: true, + fieldMetadataId: true, + isVisible: true, + fieldValue: true, + position: true, + }, + }, + }); const [mutate] = useMutation< UpdateOneFieldMetadataItemMutation, @@ -22,9 +40,11 @@ export const useUpdateOneFieldMetadataItem = () => { }); const updateOneFieldMetadataItem = async ({ + objectMetadataId, fieldMetadataIdToUpdate, updatePayload, }: { + objectMetadataId: string; fieldMetadataIdToUpdate: UpdateOneFieldMetadataItemMutationVariables['idToUpdate']; updatePayload: Pick< UpdateOneFieldMetadataItemMutationVariables['updatePayload'], @@ -50,6 +70,23 @@ export const useUpdateOneFieldMetadataItem = () => { refetchQueries: [getOperationName(FIND_MANY_OBJECT_METADATA_ITEMS) ?? ''], }); + await apolloClient.query({ + query: GET_CURRENT_USER, + fetchPolicy: 'network-only', + }); + + await apolloClient.query({ + query: findManyRecordsQuery, + variables: { + filter: { + objectMetadataId: { + eq: objectMetadataId, + }, + }, + }, + fetchPolicy: 'network-only', + }); + return result; }; diff --git a/packages/twenty-front/src/modules/users/graphql/fragments/userQueryFragment.ts b/packages/twenty-front/src/modules/users/graphql/fragments/userQueryFragment.ts index 9930b6d24f3a..e5762844c9e2 100644 --- a/packages/twenty-front/src/modules/users/graphql/fragments/userQueryFragment.ts +++ b/packages/twenty-front/src/modules/users/graphql/fragments/userQueryFragment.ts @@ -1,6 +1,8 @@ +import { WORKSPACE_MEMBER_QUERY_FRAGMENT } from '@/workspace-member/graphql/fragments/workspaceMemberQueryFragment'; import { gql } from '@apollo/client'; export const USER_QUERY_FRAGMENT = gql` + ${WORKSPACE_MEMBER_QUERY_FRAGMENT} fragment UserQueryFragment on User { id firstName diff --git a/packages/twenty-front/src/modules/users/graphql/queries/getCurrentUser.ts b/packages/twenty-front/src/modules/users/graphql/queries/getCurrentUser.ts index 78d376d6a44d..394de77049f8 100644 --- a/packages/twenty-front/src/modules/users/graphql/queries/getCurrentUser.ts +++ b/packages/twenty-front/src/modules/users/graphql/queries/getCurrentUser.ts @@ -1,7 +1,9 @@ // This query cannot be put in the graphQL folder because it cannot be generated by the graphQL codegen. +import { USER_QUERY_FRAGMENT } from '@/users/graphql/fragments/userQueryFragment'; import { gql } from '@apollo/client'; export const GET_CURRENT_USER = gql` + ${USER_QUERY_FRAGMENT} query GetCurrentUser { currentUser { ...UserQueryFragment diff --git a/packages/twenty-front/src/modules/workspace-member/graphql/fragments/workspaceMemberQueryFragment.ts b/packages/twenty-front/src/modules/workspace-member/graphql/fragments/workspaceMemberQueryFragment.ts index 16aa562ed4a6..394253eb4cb9 100644 --- a/packages/twenty-front/src/modules/workspace-member/graphql/fragments/workspaceMemberQueryFragment.ts +++ b/packages/twenty-front/src/modules/workspace-member/graphql/fragments/workspaceMemberQueryFragment.ts @@ -1,6 +1,6 @@ import { gql } from '@apollo/client'; -export const USER_QUERY_FRAGMENT = gql` +export const WORKSPACE_MEMBER_QUERY_FRAGMENT = gql` fragment WorkspaceMemberQueryFragment on WorkspaceMember { id name { diff --git a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx index 8e89dbb6c2d7..99ef21585a98 100644 --- a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx +++ b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx @@ -1,7 +1,8 @@ +import { useApolloClient } from '@apollo/client'; import { zodResolver } from '@hookform/resolvers/zod'; import omit from 'lodash.omit'; import pick from 'lodash.pick'; -import { useEffect } from 'react'; +import { useEffect, useState } from 'react'; import { FormProvider, useForm } from 'react-hook-form'; import { useNavigate, useParams } from 'react-router-dom'; import { @@ -20,6 +21,7 @@ import { useUpdateOneFieldMetadataItem } from '@/object-metadata/hooks/useUpdate import { formatFieldMetadataItemInput } from '@/object-metadata/utils/formatFieldMetadataItemInput'; import { getFieldSlug } from '@/object-metadata/utils/getFieldSlug'; import { isLabelIdentifierField } from '@/object-metadata/utils/isLabelIdentifierField'; +import { useFindManyRecordsQuery } from '@/object-record/hooks/useFindManyRecordsQuery'; import { RecordFieldValueSelectorContextProvider } from '@/object-record/record-store/contexts/RecordFieldValueSelectorContext'; import { SaveAndCancelButtons } from '@/settings/components/SaveAndCancelButtons/SaveAndCancelButtons'; import { SettingsPageContainer } from '@/settings/components/SettingsPageContainer'; @@ -47,6 +49,7 @@ type SettingsDataModelFieldEditFormValues = z.infer< export const SettingsObjectFieldEdit = () => { const navigate = useNavigate(); const { enqueueSnackBar } = useSnackBar(); + const [isPersisting, setIsPersisting] = useState(false); const { objectSlug = '', fieldSlug = '' } = useParams(); const { findObjectMetadataItemBySlug } = useFilteredObjectMetadataItems(); @@ -63,6 +66,20 @@ export const SettingsObjectFieldEdit = () => { const getRelationMetadata = useGetRelationMetadata(); const { updateOneFieldMetadataItem } = useUpdateOneFieldMetadataItem(); + const apolloClient = useApolloClient(); + + const { findManyRecordsQuery } = useFindManyRecordsQuery({ + objectNameSingular: objectMetadataItem?.nameSingular || '', + }); + + const refetchRecords = async () => { + if (!objectMetadataItem) return; + await apolloClient.query({ + query: findManyRecordsQuery, + fetchPolicy: 'network-only', + }); + }; + const formConfig = useForm({ mode: 'onTouched', resolver: zodResolver(settingsFieldFormSchema()), @@ -76,10 +93,11 @@ export const SettingsObjectFieldEdit = () => { }); useEffect(() => { + if (isPersisting) return; if (!objectMetadataItem || !fieldMetadataItem) { navigate(AppPath.NotFound); } - }, [fieldMetadataItem, objectMetadataItem, navigate]); + }, [navigate, objectMetadataItem, fieldMetadataItem, isPersisting]); const { isDirty, isValid, isSubmitting } = formConfig.formState; const canSave = isDirty && isValid && !isSubmitting; @@ -110,7 +128,10 @@ export const SettingsObjectFieldEdit = () => { }) ?? {}; if (isDefined(relationFieldMetadataItem)) { + setIsPersisting(true); + await updateOneFieldMetadataItem({ + objectMetadataId: objectMetadataItem.id, fieldMetadataIdToUpdate: relationFieldMetadataItem.id, updatePayload: formValues.relation.field, }); @@ -125,17 +146,24 @@ export const SettingsObjectFieldEdit = () => { Object.keys(otherDirtyFields), ); + setIsPersisting(true); + await updateOneFieldMetadataItem({ + objectMetadataId: objectMetadataItem.id, fieldMetadataIdToUpdate: fieldMetadataItem.id, updatePayload: formattedInput, }); } navigate(`/settings/objects/${objectSlug}`); + + refetchRecords(); } catch (error) { enqueueSnackBar((error as Error).message, { variant: SnackBarVariant.Error, }); + } finally { + setIsPersisting(false); } }; From 2be0cede1037be6e15c01aa7cf1813ce642b5083 Mon Sep 17 00:00:00 2001 From: Weiko Date: Mon, 2 Dec 2024 16:46:11 +0100 Subject: [PATCH 07/12] fix default value --- ...733153195498-addIsLabelSyncedWithNameToFieldMetadata.ts} | 6 +++--- .../field-metadata/field-metadata.entity.ts | 2 +- .../object-metadata/object-metadata.entity.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename packages/twenty-server/src/database/typeorm/metadata/migrations/{1733072126592-addIsLabelSyncedWithNameToFieldMetadata.ts => 1733153195498-addIsLabelSyncedWithNameToFieldMetadata.ts} (72%) diff --git a/packages/twenty-server/src/database/typeorm/metadata/migrations/1733072126592-addIsLabelSyncedWithNameToFieldMetadata.ts b/packages/twenty-server/src/database/typeorm/metadata/migrations/1733153195498-addIsLabelSyncedWithNameToFieldMetadata.ts similarity index 72% rename from packages/twenty-server/src/database/typeorm/metadata/migrations/1733072126592-addIsLabelSyncedWithNameToFieldMetadata.ts rename to packages/twenty-server/src/database/typeorm/metadata/migrations/1733153195498-addIsLabelSyncedWithNameToFieldMetadata.ts index 6430e63848c3..50d1d22955b6 100644 --- a/packages/twenty-server/src/database/typeorm/metadata/migrations/1733072126592-addIsLabelSyncedWithNameToFieldMetadata.ts +++ b/packages/twenty-server/src/database/typeorm/metadata/migrations/1733153195498-addIsLabelSyncedWithNameToFieldMetadata.ts @@ -1,13 +1,13 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -export class AddIsLabelSyncedWithNameToFieldMetadata1733072126592 +export class AddIsLabelSyncedWithNameToFieldMetadata1733153195498 implements MigrationInterface { - name = 'AddIsLabelSyncedWithNameToFieldMetadata1733072126592'; + name = 'AddIsLabelSyncedWithNameToFieldMetadata1733153195498'; public async up(queryRunner: QueryRunner): Promise { await queryRunner.query( - `ALTER TABLE "metadata"."fieldMetadata" ADD "isLabelSyncedWithName" boolean NOT NULL DEFAULT true`, + `ALTER TABLE "metadata"."fieldMetadata" ADD "isLabelSyncedWithName" boolean NOT NULL DEFAULT false`, ); } diff --git a/packages/twenty-server/src/engine/metadata-modules/field-metadata/field-metadata.entity.ts b/packages/twenty-server/src/engine/metadata-modules/field-metadata/field-metadata.entity.ts index 58c18758a050..4f8e5219abb0 100644 --- a/packages/twenty-server/src/engine/metadata-modules/field-metadata/field-metadata.entity.ts +++ b/packages/twenty-server/src/engine/metadata-modules/field-metadata/field-metadata.entity.ts @@ -114,7 +114,7 @@ export class FieldMetadataEntity< @Column({ nullable: false, type: 'uuid' }) workspaceId: string; - @Column({ default: true }) + @Column({ default: false }) isLabelSyncedWithName: boolean; @OneToOne( diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.entity.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.entity.ts index b51804836500..b307e1ed8b85 100644 --- a/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.entity.ts +++ b/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.entity.ts @@ -78,7 +78,7 @@ export class ObjectMetadataEntity implements ObjectMetadataInterface { @Column({ nullable: true, type: 'uuid' }) imageIdentifierFieldMetadataId?: string | null; - @Column({ default: true }) + @Column({ default: false }) isLabelSyncedWithName: boolean; @Column({ nullable: false, type: 'uuid' }) From 4b347000dfce0532ae417d76e07be026d6103099 Mon Sep 17 00:00:00 2001 From: Weiko Date: Mon, 2 Dec 2024 17:33:10 +0100 Subject: [PATCH 08/12] fix tests --- .../src/generated-metadata/gql.ts | 4 ++-- .../src/generated-metadata/graphql.ts | 4 ++-- .../object-metadata/graphql/mutations.ts | 1 + .../hooks/__mocks__/useFieldMetadataItem.ts | 4 ++++ .../__tests__/useFieldMetadataItem.test.tsx | 16 +++++++++++++-- .../hooks/useUpdateOneFieldMetadataItem.ts | 20 ++++++++++++++----- 6 files changed, 38 insertions(+), 11 deletions(-) diff --git a/packages/twenty-front/src/generated-metadata/gql.ts b/packages/twenty-front/src/generated-metadata/gql.ts index 15a239683869..c11f80c73390 100644 --- a/packages/twenty-front/src/generated-metadata/gql.ts +++ b/packages/twenty-front/src/generated-metadata/gql.ts @@ -27,7 +27,7 @@ const documents = { "\n mutation CreateOneObjectMetadataItem($input: CreateOneObjectInput!) {\n createOneObject(input: $input) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n }\n }\n": types.CreateOneObjectMetadataItemDocument, "\n mutation CreateOneFieldMetadataItem($input: CreateOneFieldMetadataInput!) {\n createOneField(input: $input) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n settings\n defaultValue\n options\n }\n }\n": types.CreateOneFieldMetadataItemDocument, "\n mutation CreateOneRelationMetadata($input: CreateOneRelationInput!) {\n createOneRelation(input: $input) {\n id\n relationType\n fromObjectMetadataId\n toObjectMetadataId\n fromFieldMetadataId\n toFieldMetadataId\n createdAt\n updatedAt\n }\n }\n": types.CreateOneRelationMetadataDocument, - "\n mutation UpdateOneFieldMetadataItem(\n $idToUpdate: UUID!\n $updatePayload: UpdateFieldInput!\n ) {\n updateOneField(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n settings\n }\n }\n": types.UpdateOneFieldMetadataItemDocument, + "\n mutation UpdateOneFieldMetadataItem(\n $idToUpdate: UUID!\n $updatePayload: UpdateFieldInput!\n ) {\n updateOneField(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n settings\n isLabelSyncedWithName\n }\n }\n": types.UpdateOneFieldMetadataItemDocument, "\n mutation UpdateOneObjectMetadataItem(\n $idToUpdate: UUID!\n $updatePayload: UpdateObjectPayload!\n ) {\n updateOneObject(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n }\n }\n": types.UpdateOneObjectMetadataItemDocument, "\n mutation DeleteOneObjectMetadataItem($idToDelete: UUID!) {\n deleteOneObject(input: { id: $idToDelete }) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n }\n }\n": types.DeleteOneObjectMetadataItemDocument, "\n mutation DeleteOneFieldMetadataItem($idToDelete: UUID!) {\n deleteOneField(input: { id: $idToDelete }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n settings\n }\n }\n": types.DeleteOneFieldMetadataItemDocument, @@ -118,7 +118,7 @@ export function graphql(source: "\n mutation CreateOneRelationMetadata($input: /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql(source: "\n mutation UpdateOneFieldMetadataItem(\n $idToUpdate: UUID!\n $updatePayload: UpdateFieldInput!\n ) {\n updateOneField(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n settings\n }\n }\n"): (typeof documents)["\n mutation UpdateOneFieldMetadataItem(\n $idToUpdate: UUID!\n $updatePayload: UpdateFieldInput!\n ) {\n updateOneField(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n settings\n }\n }\n"]; +export function graphql(source: "\n mutation UpdateOneFieldMetadataItem(\n $idToUpdate: UUID!\n $updatePayload: UpdateFieldInput!\n ) {\n updateOneField(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n settings\n isLabelSyncedWithName\n }\n }\n"): (typeof documents)["\n mutation UpdateOneFieldMetadataItem(\n $idToUpdate: UUID!\n $updatePayload: UpdateFieldInput!\n ) {\n updateOneField(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n settings\n isLabelSyncedWithName\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts index 64f83d0cf225..2679ae80c68f 100644 --- a/packages/twenty-front/src/generated-metadata/graphql.ts +++ b/packages/twenty-front/src/generated-metadata/graphql.ts @@ -2024,7 +2024,7 @@ export type UpdateOneFieldMetadataItemMutationVariables = Exact<{ }>; -export type UpdateOneFieldMetadataItemMutation = { __typename?: 'Mutation', updateOneField: { __typename?: 'field', id: any, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, isCustom?: boolean | null, isActive?: boolean | null, isNullable?: boolean | null, createdAt: any, updatedAt: any, settings?: any | null } }; +export type UpdateOneFieldMetadataItemMutation = { __typename?: 'Mutation', updateOneField: { __typename?: 'field', id: any, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, isCustom?: boolean | null, isActive?: boolean | null, isNullable?: boolean | null, createdAt: any, updatedAt: any, settings?: any | null, isLabelSyncedWithName: boolean } }; export type UpdateOneObjectMetadataItemMutationVariables = Exact<{ idToUpdate: Scalars['UUID']['input']; @@ -2139,7 +2139,7 @@ export const GetOneDatabaseConnectionDocument = {"kind":"Document","definitions" export const CreateOneObjectMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateOneObjectMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateOneObjectInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createOneObject"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"dataSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}}]}}]}}]} as unknown as DocumentNode; export const CreateOneFieldMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateOneFieldMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateOneFieldMetadataInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createOneField"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"defaultValue"}},{"kind":"Field","name":{"kind":"Name","value":"options"}}]}}]}}]} as unknown as DocumentNode; export const CreateOneRelationMetadataDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateOneRelationMetadata"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateOneRelationInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createOneRelation"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"relationType"}},{"kind":"Field","name":{"kind":"Name","value":"fromObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"toObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"fromFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"toFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode; -export const UpdateOneFieldMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateOneFieldMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"idToUpdate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"updatePayload"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateFieldInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateOneField"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"idToUpdate"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"update"},"value":{"kind":"Variable","name":{"kind":"Name","value":"updatePayload"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}}]}}]}}]} as unknown as DocumentNode; +export const UpdateOneFieldMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateOneFieldMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"idToUpdate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"updatePayload"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateFieldInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateOneField"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"idToUpdate"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"update"},"value":{"kind":"Variable","name":{"kind":"Name","value":"updatePayload"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}}]}}]}}]} as unknown as DocumentNode; export const UpdateOneObjectMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateOneObjectMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"idToUpdate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"updatePayload"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateObjectPayload"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateOneObject"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"idToUpdate"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"update"},"value":{"kind":"Variable","name":{"kind":"Name","value":"updatePayload"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"dataSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}}]}}]}}]} as unknown as DocumentNode; export const DeleteOneObjectMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteOneObjectMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"idToDelete"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteOneObject"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"idToDelete"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"dataSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}}]}}]}}]} as unknown as DocumentNode; export const DeleteOneFieldMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteOneFieldMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"idToDelete"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteOneField"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"idToDelete"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}}]}}]}}]} as unknown as DocumentNode; diff --git a/packages/twenty-front/src/modules/object-metadata/graphql/mutations.ts b/packages/twenty-front/src/modules/object-metadata/graphql/mutations.ts index 80814a64b7ec..37f5f4e876f2 100644 --- a/packages/twenty-front/src/modules/object-metadata/graphql/mutations.ts +++ b/packages/twenty-front/src/modules/object-metadata/graphql/mutations.ts @@ -75,6 +75,7 @@ export const UPDATE_ONE_FIELD_METADATA_ITEM = gql` createdAt updatedAt settings + isLabelSyncedWithName } } `; diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFieldMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFieldMetadataItem.ts index 0facf2c51245..0756a28d61f1 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFieldMetadataItem.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFieldMetadataItem.ts @@ -16,6 +16,7 @@ const baseFields = ` isCustom isActive isNullable + isLabelSyncedWithName createdAt updatedAt settings @@ -95,6 +96,7 @@ export const queries = { settings defaultValue options + isLabelSyncedWithName } } `, @@ -121,6 +123,7 @@ export const variables = { settings: undefined, objectMetadataId, type: 'TEXT', + isLabelSyncedWithName: false, }, }, }, @@ -140,6 +143,7 @@ const defaultResponseData = { isCustom: false, isActive: true, isNullable: false, + isLabelSyncedWithName: false, createdAt: '1977-09-28T13:56:55.157Z', updatedAt: '1996-10-10T08:27:57.117Z', settings: undefined, diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useFieldMetadataItem.test.tsx b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useFieldMetadataItem.test.tsx index d7fac15dcf77..4717ad799de9 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useFieldMetadataItem.test.tsx +++ b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useFieldMetadataItem.test.tsx @@ -5,7 +5,9 @@ import { useFieldMetadataItem } from '@/object-metadata/hooks/useFieldMetadataIt import { FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem'; import { FieldMetadataType, RelationDefinitionType } from '~/generated/graphql'; +import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser'; import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper'; +import { mockedUserData } from '~/testing/mock-data/users'; import { FIELD_METADATA_ID, FIELD_RELATION_METADATA_ID, @@ -23,7 +25,7 @@ const fieldMetadataItem: FieldMetadataItem = { name: 'name', type: FieldMetadataType.Text, updatedAt: '', - isLabelSyncedWithName: true, + isLabelSyncedWithName: false, }; const fieldRelationMetadataItem: FieldMetadataItem = { @@ -33,7 +35,7 @@ const fieldRelationMetadataItem: FieldMetadataItem = { name: 'name', type: FieldMetadataType.Relation, updatedAt: '', - isLabelSyncedWithName: true, + isLabelSyncedWithName: false, relationDefinition: { relationId: RELATION_METADATA_ID, direction: RelationDefinitionType.OneToMany, @@ -139,6 +141,16 @@ const mocks = [ }, })), }, + { + request: { + query: GET_CURRENT_USER, + }, + result: jest.fn(() => ({ + data: { + currentUser: mockedUserData, + }, + })), + }, ]; const Wrapper = getJestMetadataAndApolloMocksWrapper({ diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts index 01c7c3e1391f..a8bac7e79180 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts @@ -9,15 +9,28 @@ import { import { UPDATE_ONE_FIELD_METADATA_ITEM } from '../graphql/mutations'; import { FIND_MANY_OBJECT_METADATA_ITEMS } from '../graphql/queries'; +import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; import { useFindManyRecordsQuery } from '@/object-record/hooks/useFindManyRecordsQuery'; -import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser'; +import { useSetRecoilState } from 'recoil'; +import { isDefined } from 'twenty-ui'; +import { useGetCurrentUserQuery } from '~/generated/graphql'; import { useApolloMetadataClient } from './useApolloMetadataClient'; export const useUpdateOneFieldMetadataItem = () => { const apolloMetadataClient = useApolloMetadataClient(); const apolloClient = useApolloClient(); + const setCurrentWorkspace = useSetRecoilState(currentWorkspaceState); + + const { refetch: refetchCurrentUser } = useGetCurrentUserQuery({ + onCompleted: (data) => { + if (isDefined(data?.currentUser?.defaultWorkspace)) { + setCurrentWorkspace(data.currentUser.defaultWorkspace); + } + }, + }); + const { findManyRecordsQuery } = useFindManyRecordsQuery({ objectNameSingular: CoreObjectNameSingular.View, recordGqlFields: { @@ -70,10 +83,7 @@ export const useUpdateOneFieldMetadataItem = () => { refetchQueries: [getOperationName(FIND_MANY_OBJECT_METADATA_ITEMS) ?? ''], }); - await apolloClient.query({ - query: GET_CURRENT_USER, - fetchPolicy: 'network-only', - }); + await refetchCurrentUser(); await apolloClient.query({ query: findManyRecordsQuery, From 0368486133e55d44fa235a1115002f1c5bf34ad6 Mon Sep 17 00:00:00 2001 From: Weiko Date: Mon, 2 Dec 2024 17:35:51 +0100 Subject: [PATCH 09/12] revert --- .../hooks/__tests__/useFieldMetadataItem.test.tsx | 12 ------------ .../users/graphql/fragments/userQueryFragment.ts | 2 -- .../modules/users/graphql/queries/getCurrentUser.ts | 2 -- .../fragments/workspaceMemberQueryFragment.ts | 2 +- 4 files changed, 1 insertion(+), 17 deletions(-) diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useFieldMetadataItem.test.tsx b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useFieldMetadataItem.test.tsx index 4717ad799de9..58b7f707245e 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useFieldMetadataItem.test.tsx +++ b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useFieldMetadataItem.test.tsx @@ -5,9 +5,7 @@ import { useFieldMetadataItem } from '@/object-metadata/hooks/useFieldMetadataIt import { FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem'; import { FieldMetadataType, RelationDefinitionType } from '~/generated/graphql'; -import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser'; import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper'; -import { mockedUserData } from '~/testing/mock-data/users'; import { FIELD_METADATA_ID, FIELD_RELATION_METADATA_ID, @@ -141,16 +139,6 @@ const mocks = [ }, })), }, - { - request: { - query: GET_CURRENT_USER, - }, - result: jest.fn(() => ({ - data: { - currentUser: mockedUserData, - }, - })), - }, ]; const Wrapper = getJestMetadataAndApolloMocksWrapper({ diff --git a/packages/twenty-front/src/modules/users/graphql/fragments/userQueryFragment.ts b/packages/twenty-front/src/modules/users/graphql/fragments/userQueryFragment.ts index e5762844c9e2..9930b6d24f3a 100644 --- a/packages/twenty-front/src/modules/users/graphql/fragments/userQueryFragment.ts +++ b/packages/twenty-front/src/modules/users/graphql/fragments/userQueryFragment.ts @@ -1,8 +1,6 @@ -import { WORKSPACE_MEMBER_QUERY_FRAGMENT } from '@/workspace-member/graphql/fragments/workspaceMemberQueryFragment'; import { gql } from '@apollo/client'; export const USER_QUERY_FRAGMENT = gql` - ${WORKSPACE_MEMBER_QUERY_FRAGMENT} fragment UserQueryFragment on User { id firstName diff --git a/packages/twenty-front/src/modules/users/graphql/queries/getCurrentUser.ts b/packages/twenty-front/src/modules/users/graphql/queries/getCurrentUser.ts index 394de77049f8..78d376d6a44d 100644 --- a/packages/twenty-front/src/modules/users/graphql/queries/getCurrentUser.ts +++ b/packages/twenty-front/src/modules/users/graphql/queries/getCurrentUser.ts @@ -1,9 +1,7 @@ // This query cannot be put in the graphQL folder because it cannot be generated by the graphQL codegen. -import { USER_QUERY_FRAGMENT } from '@/users/graphql/fragments/userQueryFragment'; import { gql } from '@apollo/client'; export const GET_CURRENT_USER = gql` - ${USER_QUERY_FRAGMENT} query GetCurrentUser { currentUser { ...UserQueryFragment diff --git a/packages/twenty-front/src/modules/workspace-member/graphql/fragments/workspaceMemberQueryFragment.ts b/packages/twenty-front/src/modules/workspace-member/graphql/fragments/workspaceMemberQueryFragment.ts index 394253eb4cb9..16aa562ed4a6 100644 --- a/packages/twenty-front/src/modules/workspace-member/graphql/fragments/workspaceMemberQueryFragment.ts +++ b/packages/twenty-front/src/modules/workspace-member/graphql/fragments/workspaceMemberQueryFragment.ts @@ -1,6 +1,6 @@ import { gql } from '@apollo/client'; -export const WORKSPACE_MEMBER_QUERY_FRAGMENT = gql` +export const USER_QUERY_FRAGMENT = gql` fragment WorkspaceMemberQueryFragment on WorkspaceMember { id name { From aeab5ccf3e85258239b6c4b793f093022aae43c9 Mon Sep 17 00:00:00 2001 From: Weiko Date: Tue, 3 Dec 2024 09:21:06 +0100 Subject: [PATCH 10/12] fix tests --- .../useCreateOneRelationMetadataItem.ts | 4 +- .../hooks/__mocks__/useFieldMetadataItem.ts | 180 +++++- .../useFindManyObjectMetadataItems.ts | 1 - .../useCreateOneRelationMetadataItem.test.tsx | 2 + .../__tests__/useFieldMetadataItem.test.tsx | 24 +- .../hooks/useUpdateOneFieldMetadataItem.ts | 5 +- .../formatFieldMetadataItemInput.test.ts | 12 + .../utils/formatRelationMetadataInput.ts | 4 +- .../SettingsDataModelFieldIconLabelForm.tsx | 6 +- .../SettingsDataModelFieldRelationForm.tsx | 18 +- .../SettingsObjectNewFieldConfigure.tsx | 9 +- .../generated/mock-metadata-query-result.ts | 596 +++++++++++++++++- 12 files changed, 792 insertions(+), 69 deletions(-) diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useCreateOneRelationMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useCreateOneRelationMetadataItem.ts index 018d40e92fb8..c5890c34b49b 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useCreateOneRelationMetadataItem.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useCreateOneRelationMetadataItem.ts @@ -21,13 +21,13 @@ export const variables = { fromDescription: null, fromIcon: undefined, fromLabel: 'label', - fromName: 'label', + fromName: 'name', fromObjectMetadataId: 'objectMetadataId', relationType: 'ONE_TO_ONE', toDescription: null, toIcon: undefined, toLabel: 'Another label', - toName: 'anotherLabel', + toName: 'anotherName', toObjectMetadataId: 'objectMetadataId1', }, }, diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFieldMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFieldMetadataItem.ts index 0756a28d61f1..3aa1c306a184 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFieldMetadataItem.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFieldMetadataItem.ts @@ -6,28 +6,22 @@ export const FIELD_RELATION_METADATA_ID = '4da0302d-358a-45cd-9973-9f92723ed3c1'; export const RELATION_METADATA_ID = 'f81d4fae-7dec-11d0-a765-00a0c91e6bf6'; -const baseFields = ` - id - type - name - label - description - icon - isCustom - isActive - isNullable - isLabelSyncedWithName - createdAt - updatedAt - settings -`; - - export const queries = { deleteMetadataField: gql` mutation DeleteOneFieldMetadataItem($idToDelete: UUID!) { deleteOneField(input: { id: $idToDelete }) { - ${baseFields} + id + type + name + label + description + icon + isCustom + isActive + isNullable + createdAt + updatedAt + settings } } `, @@ -75,7 +69,19 @@ export const queries = { $updatePayload: UpdateFieldInput! ) { updateOneField(input: { id: $idToUpdate, update: $updatePayload }) { - ${baseFields} + id + type + name + label + description + icon + isCustom + isActive + isNullable + createdAt + updatedAt + settings + isLabelSyncedWithName } } `, @@ -96,10 +102,87 @@ export const queries = { settings defaultValue options - isLabelSyncedWithName } } `, + getCurrentUser: gql` + query GetCurrentUser { + currentUser { + ...UserQueryFragment + } + } + + fragment UserQueryFragment on User { + id + firstName + lastName + email + canImpersonate + supportUserHash + analyticsTinybirdJwts { + getWebhookAnalytics + getPageviewsAnalytics + getUsersAnalytics + getServerlessFunctionDuration + getServerlessFunctionSuccessRate + getServerlessFunctionErrorCount + } + onboardingStatus + workspaceMember { + ...WorkspaceMemberQueryFragment + } + workspaceMembers { + ...WorkspaceMemberQueryFragment + } + defaultWorkspace { + id + displayName + logo + domainName + inviteHash + allowImpersonation + activationStatus + isPublicInviteLinkEnabled + hasValidEntrepriseKey + featureFlags { + id + key + value + workspaceId + } + metadataVersion + currentBillingSubscription { + id + status + interval + } + workspaceMembersCount + } + workspaces { + workspace { + id + logo + displayName + domainName + } + } + userVars + } + + fragment WorkspaceMemberQueryFragment on WorkspaceMember { + id + name { + firstName + lastName + } + colorScheme + avatarUrl + locale + timeZone + dateFormat + timeFormat + } + `, }; export const objectMetadataId = '25611fce-6637-4089-b0ca-91afeec95784'; @@ -109,7 +192,7 @@ export const variables = { deleteMetadataFieldRelation: { idToDelete: RELATION_METADATA_ID }, activateMetadataField: { idToUpdate: FIELD_METADATA_ID, - updatePayload: { isActive: true, label: undefined }, + updatePayload: { isActive: true }, }, createMetadataField: { input: { @@ -118,12 +201,12 @@ export const variables = { description: null, icon: undefined, label: 'fieldLabel', - name: 'fieldlabel', + name: 'fieldName', options: undefined, settings: undefined, + isLabelSyncedWithName: true, objectMetadataId, type: 'TEXT', - isLabelSyncedWithName: false, }, }, }, @@ -143,7 +226,6 @@ const defaultResponseData = { isCustom: false, isActive: true, isNullable: false, - isLabelSyncedWithName: false, createdAt: '1977-09-28T13:56:55.157Z', updatedAt: '1996-10-10T08:27:57.117Z', settings: undefined, @@ -163,4 +245,54 @@ export const responseData = { defaultValue: '', options: [], }, + getCurrentUser: { + currentUser: { + id: 'test-user-id', + firstName: 'Test', + lastName: 'User', + email: 'test@example.com', + canImpersonate: false, + supportUserHash: null, + analyticsTinybirdJwts: { + getWebhookAnalytics: null, + getPageviewsAnalytics: null, + getUsersAnalytics: null, + getServerlessFunctionDuration: null, + getServerlessFunctionSuccessRate: null, + getServerlessFunctionErrorCount: null, + }, + onboardingStatus: 'completed', + workspaceMember: { + id: 'test-workspace-member-id', + name: { + firstName: 'Test', + lastName: 'User', + }, + colorScheme: 'light', + avatarUrl: null, + locale: 'en', + timeZone: 'UTC', + dateFormat: 'MM/DD/YYYY', + timeFormat: '24', + }, + workspaceMembers: [], + defaultWorkspace: { + id: 'test-workspace-id', + displayName: 'Test Workspace', + logo: null, + domainName: 'test', + inviteHash: 'test-hash', + allowImpersonation: false, + activationStatus: 'active', + isPublicInviteLinkEnabled: false, + hasValidEntrepriseKey: false, + featureFlags: [], + metadataVersion: 1, + currentBillingSubscription: null, + workspaceMembersCount: 1, + }, + workspaces: [], + userVars: null, + }, + }, }; diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFindManyObjectMetadataItems.ts b/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFindManyObjectMetadataItems.ts index 9c6af0737801..104376df0281 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFindManyObjectMetadataItems.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFindManyObjectMetadataItems.ts @@ -25,7 +25,6 @@ export const query = gql` labelIdentifierFieldMetadataId imageIdentifierFieldMetadataId shortcut - isLabelSyncedWithName fields(paging: { first: 1000 }, filter: $fieldFilter) { edges { node { diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useCreateOneRelationMetadataItem.test.tsx b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useCreateOneRelationMetadataItem.test.tsx index 57692ea959d6..6c93394cf124 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useCreateOneRelationMetadataItem.test.tsx +++ b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useCreateOneRelationMetadataItem.test.tsx @@ -45,11 +45,13 @@ describe('useCreateOneRelationMetadataItem', () => { relationType: RelationDefinitionType.OneToOne, field: { label: 'label', + name: 'name', }, objectMetadataId: 'objectMetadataId', connect: { field: { label: 'Another label', + name: 'anotherName', }, objectMetadataId: 'objectMetadataId1', }, diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useFieldMetadataItem.test.tsx b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useFieldMetadataItem.test.tsx index 58b7f707245e..9392f9c2f0d7 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useFieldMetadataItem.test.tsx +++ b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useFieldMetadataItem.test.tsx @@ -23,7 +23,7 @@ const fieldMetadataItem: FieldMetadataItem = { name: 'name', type: FieldMetadataType.Text, updatedAt: '', - isLabelSyncedWithName: false, + isLabelSyncedWithName: true, }; const fieldRelationMetadataItem: FieldMetadataItem = { @@ -33,7 +33,7 @@ const fieldRelationMetadataItem: FieldMetadataItem = { name: 'name', type: FieldMetadataType.Relation, updatedAt: '', - isLabelSyncedWithName: false, + isLabelSyncedWithName: true, relationDefinition: { relationId: RELATION_METADATA_ID, direction: RelationDefinitionType.OneToMany, @@ -139,6 +139,24 @@ const mocks = [ }, })), }, + { + request: { + query: queries.getCurrentUser, + variables: {}, + }, + result: jest.fn(() => ({ + data: responseData.getCurrentUser, + })), + }, + { + request: { + query: queries.getCurrentUser, + variables: {}, + }, + result: jest.fn(() => ({ + data: responseData.getCurrentUser, + })), + }, ]; const Wrapper = getJestMetadataAndApolloMocksWrapper({ @@ -173,8 +191,8 @@ describe('useFieldMetadataItem', () => { label: 'fieldLabel', objectMetadataId, type: FieldMetadataType.Text, - isLabelSyncedWithName: true, name: 'fieldName', + isLabelSyncedWithName: true, }); expect(res.data).toEqual({ diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts index a8bac7e79180..6a137010a347 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts @@ -74,10 +74,7 @@ export const useUpdateOneFieldMetadataItem = () => { const result = await mutate({ variables: { idToUpdate: fieldMetadataIdToUpdate, - updatePayload: { - ...updatePayload, - label: updatePayload.label ?? undefined, - }, + updatePayload: updatePayload, }, awaitRefetchQueries: true, refetchQueries: [getOperationName(FIND_MANY_OBJECT_METADATA_ITEMS) ?? ''], diff --git a/packages/twenty-front/src/modules/object-metadata/utils/__tests__/formatFieldMetadataItemInput.test.ts b/packages/twenty-front/src/modules/object-metadata/utils/__tests__/formatFieldMetadataItemInput.test.ts index 018723c04a6b..21430d721202 100644 --- a/packages/twenty-front/src/modules/object-metadata/utils/__tests__/formatFieldMetadataItemInput.test.ts +++ b/packages/twenty-front/src/modules/object-metadata/utils/__tests__/formatFieldMetadataItemInput.test.ts @@ -24,10 +24,12 @@ describe('formatFieldMetadataItemInput', () => { const input = { defaultValue: "'OPTION_1'", label: 'Example Label', + name: 'exampleLabel', icon: 'example-icon', type: FieldMetadataType.Select, description: 'Example description', options, + isLabelSyncedWithName: true, }; const expected = { @@ -37,6 +39,7 @@ describe('formatFieldMetadataItemInput', () => { name: 'exampleLabel', options, defaultValue: "'OPTION_1'", + isLabelSyncedWithName: true, }; const result = formatFieldMetadataItemInput(input); @@ -47,9 +50,11 @@ describe('formatFieldMetadataItemInput', () => { it('should handle input without options', () => { const input = { label: 'Example Label', + name: 'exampleLabel', icon: 'example-icon', type: FieldMetadataType.Select, description: 'Example description', + isLabelSyncedWithName: true, }; const expected = { @@ -59,6 +64,7 @@ describe('formatFieldMetadataItemInput', () => { name: 'exampleLabel', options: undefined, defaultValue: undefined, + isLabelSyncedWithName: true, }; const result = formatFieldMetadataItemInput(input); @@ -86,10 +92,12 @@ describe('formatFieldMetadataItemInput', () => { const input = { defaultValue: ["'OPTION_1'", "'OPTION_2'"], label: 'Example Label', + name: 'exampleLabel', icon: 'example-icon', type: FieldMetadataType.MultiSelect, description: 'Example description', options, + isLabelSyncedWithName: true, }; const expected = { @@ -99,6 +107,7 @@ describe('formatFieldMetadataItemInput', () => { name: 'exampleLabel', options, defaultValue: ["'OPTION_1'", "'OPTION_2'"], + isLabelSyncedWithName: true, }; const result = formatFieldMetadataItemInput(input); @@ -109,9 +118,11 @@ describe('formatFieldMetadataItemInput', () => { it('should handle multi select input without options', () => { const input = { label: 'Example Label', + name: 'exampleLabel', icon: 'example-icon', type: FieldMetadataType.MultiSelect, description: 'Example description', + isLabelSyncedWithName: true, }; const expected = { @@ -121,6 +132,7 @@ describe('formatFieldMetadataItemInput', () => { name: 'exampleLabel', options: undefined, defaultValue: undefined, + isLabelSyncedWithName: true, }; const result = formatFieldMetadataItemInput(input); diff --git a/packages/twenty-front/src/modules/object-metadata/utils/formatRelationMetadataInput.ts b/packages/twenty-front/src/modules/object-metadata/utils/formatRelationMetadataInput.ts index 7937900ab198..974a82d377f4 100644 --- a/packages/twenty-front/src/modules/object-metadata/utils/formatRelationMetadataInput.ts +++ b/packages/twenty-front/src/modules/object-metadata/utils/formatRelationMetadataInput.ts @@ -10,10 +10,10 @@ import { formatFieldMetadataItemInput } from './formatFieldMetadataItemInput'; export type FormatRelationMetadataInputParams = { relationType: RelationType; - field: Pick; + field: Pick; objectMetadataId: string; connect: { - field: Pick; + field: Pick; objectMetadataId: string; }; }; diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIconLabelForm.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIconLabelForm.tsx index 1d09011a78ef..e02cef7e217f 100644 --- a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIconLabelForm.tsx +++ b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIconLabelForm.tsx @@ -75,8 +75,6 @@ type SettingsDataModelFieldIconLabelFormProps = { maxLength?: number; }; -const infoCircleElementId = 'info-circle-id'; - export const SettingsDataModelFieldIconLabelForm = ({ disabled, fieldMetadataItem, @@ -170,13 +168,13 @@ export const SettingsDataModelFieldIconLabelForm = ({ apiNameTooltipText && ( <> { DEFAULT_ICONS_BY_FIELD_TYPE[fieldType] ?? DEFAULT_ICON_FOR_NEW_FIELD, label: '', description: '', + name: '', }, }); @@ -134,12 +135,18 @@ export const SettingsObjectNewFieldConfigure = () => { await createOneRelationMetadata({ relationType: relationFormValues.type, - field: pick(fieldFormValues, ['icon', 'label', 'description']), + field: pick(fieldFormValues, [ + 'icon', + 'label', + 'description', + 'name', + ]), objectMetadataId: activeObjectMetadataItem.id, connect: { field: { icon: relationFormValues.field.icon, label: relationFormValues.field.label, + name: relationFormValues.field.name, }, objectMetadataId: relationFormValues.objectMetadataId, }, diff --git a/packages/twenty-front/src/testing/mock-data/generated/mock-metadata-query-result.ts b/packages/twenty-front/src/testing/mock-data/generated/mock-metadata-query-result.ts index c2328e7f90c7..6a48fa714839 100644 --- a/packages/twenty-front/src/testing/mock-data/generated/mock-metadata-query-result.ts +++ b/packages/twenty-front/src/testing/mock-data/generated/mock-metadata-query-result.ts @@ -187,6 +187,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -236,6 +237,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -259,6 +261,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -308,6 +311,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -331,6 +335,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -354,6 +359,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -403,6 +409,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -428,6 +435,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -453,6 +461,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:39.033Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -502,6 +511,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -525,6 +535,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -548,6 +559,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -573,6 +585,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -622,6 +635,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:39.027Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "isForeignKey": true }, @@ -728,6 +742,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -751,6 +766,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -774,6 +790,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -799,6 +816,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "'asc'", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -822,6 +840,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -845,6 +864,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -870,6 +890,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -919,6 +940,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -1025,6 +1047,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -1050,6 +1073,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -1073,6 +1097,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": true, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -1096,6 +1121,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": 0, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -1119,6 +1145,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -1144,6 +1171,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -1167,6 +1195,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": 0, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -1190,6 +1219,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -1239,6 +1269,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -1264,6 +1295,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -1397,6 +1429,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -1446,6 +1479,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -1471,6 +1505,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:38.211Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -1498,6 +1533,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "primaryLinkLabel": "''" }, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -1521,6 +1557,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -1544,6 +1581,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -1569,6 +1607,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -1622,6 +1661,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "primaryLinkLabel": "''" }, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -1645,6 +1685,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -1668,6 +1709,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -1717,6 +1759,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -1775,6 +1818,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "addressPostcode": "''" }, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -1798,6 +1842,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": false, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -1825,6 +1870,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "primaryLinkLabel": "''" }, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -1848,6 +1894,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -1897,6 +1944,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:38.469Z", "defaultValue": false, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -1920,6 +1968,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -1943,6 +1992,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -1988,7 +2038,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 2 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } }, @@ -2011,6 +2062,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -2060,6 +2112,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -2083,6 +2136,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -2135,6 +2189,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "source": "'MANUAL'" }, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -2158,6 +2213,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -2184,6 +2240,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "currencyCode": "''" }, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -2211,6 +2268,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "primaryLinkLabel": "''" }, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -2234,6 +2292,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -2283,6 +2342,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -2389,6 +2449,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -2438,6 +2499,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -2461,6 +2523,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -2486,6 +2549,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -2511,6 +2575,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -2536,6 +2601,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -2559,6 +2625,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -2622,6 +2689,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -2647,6 +2715,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -2670,6 +2739,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -2693,6 +2763,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -2718,6 +2789,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "*.*" ], "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -2741,6 +2813,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -2766,6 +2839,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -2861,6 +2935,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:39.039Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -2884,6 +2959,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:38.993Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -2910,6 +2986,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "source": "'MANUAL'" }, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -2933,6 +3010,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:38.993Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -2956,6 +3034,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:39.014Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -3005,6 +3084,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:39.033Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -3054,6 +3134,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:38.993Z", "defaultValue": "'Untitled'", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -3077,6 +3158,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:38.993Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -3100,6 +3182,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:39.033Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -3149,6 +3232,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:39.033Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -3198,6 +3282,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:38.993Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -3221,6 +3306,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:38.993Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -3244,6 +3330,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:39.014Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -3363,6 +3450,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -3386,6 +3474,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -3435,6 +3524,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -3484,6 +3574,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -3507,6 +3598,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -3530,6 +3622,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -3579,6 +3672,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -3607,6 +3701,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "source": "'MANUAL'" }, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -3630,6 +3725,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -3655,6 +3751,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -3678,6 +3775,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -3727,6 +3825,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -3752,6 +3851,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -3845,6 +3945,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -3868,6 +3969,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -3891,6 +3993,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -3916,6 +4019,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -3968,7 +4072,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 3 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } }, @@ -3991,6 +4096,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -4014,6 +4120,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -4039,6 +4146,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -4062,6 +4170,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -4111,6 +4220,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -4160,6 +4270,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -4209,6 +4320,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -4232,6 +4344,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -4257,6 +4370,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -4387,6 +4501,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -4412,6 +4527,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -4461,6 +4577,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -4510,6 +4627,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -4559,6 +4677,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -4584,6 +4703,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -4607,6 +4727,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -4630,6 +4751,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -4653,6 +4775,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -4676,6 +4799,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -4699,6 +4823,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -4722,6 +4847,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -4839,7 +4965,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 2 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } }, @@ -4862,6 +4989,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -4885,6 +5013,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -4908,6 +5037,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -4933,6 +5063,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -4958,6 +5089,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -4981,6 +5113,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -5006,6 +5139,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -5029,6 +5163,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -5292,6 +5427,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -5315,6 +5451,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -5364,6 +5501,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:39.033Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -5413,6 +5551,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:39.027Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "isForeignKey": true }, @@ -5438,6 +5577,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -5461,6 +5601,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -5484,6 +5625,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -5507,6 +5649,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -5530,6 +5673,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -5553,6 +5697,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -5602,6 +5747,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -5625,6 +5771,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -5674,6 +5821,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -5697,6 +5845,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -5746,6 +5895,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -5795,6 +5945,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -5818,6 +5969,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -5843,6 +5995,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -5866,6 +6019,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -5891,6 +6045,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -5940,6 +6095,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -6046,6 +6202,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "'Contains'", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -6069,6 +6226,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -6092,6 +6250,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -6117,6 +6276,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -6140,6 +6300,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -6163,6 +6324,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -6186,6 +6348,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -6211,6 +6374,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -6260,6 +6424,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -6283,6 +6448,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -6306,6 +6472,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -6329,6 +6496,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -6394,6 +6562,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -6419,6 +6588,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -6444,6 +6614,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -6469,6 +6640,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -6492,6 +6664,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -6541,6 +6714,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": 0, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -6564,6 +6738,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -6697,6 +6872,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -6720,6 +6896,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -6769,6 +6946,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -6809,7 +6987,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 1 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } }, @@ -6832,6 +7011,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -6855,6 +7035,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -6904,6 +7085,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -6929,6 +7111,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -6952,6 +7135,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -6977,6 +7161,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -7000,6 +7185,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -7379,6 +7565,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -7402,6 +7589,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -7425,6 +7613,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -7474,6 +7663,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -7523,6 +7713,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -7572,6 +7763,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -7621,6 +7813,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -7644,6 +7837,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -7669,6 +7863,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -7692,6 +7887,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -7715,6 +7911,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -7764,6 +7961,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -7787,6 +7985,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -7836,6 +8035,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -7859,6 +8059,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -7884,6 +8085,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -7907,6 +8109,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -7930,6 +8133,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -7953,6 +8157,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -7976,6 +8181,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:39.009Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "isForeignKey": true }, @@ -8001,6 +8207,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -8024,6 +8231,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -8047,6 +8255,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -8096,6 +8305,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:39.014Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -8145,6 +8355,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -8194,6 +8405,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -8219,6 +8431,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -8242,6 +8455,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -8265,6 +8479,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -8288,6 +8503,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -8395,6 +8611,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -8418,6 +8635,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -8467,6 +8685,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": true, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -8490,6 +8709,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -8515,6 +8735,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -8540,6 +8761,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -8563,6 +8785,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -8586,6 +8809,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": 0, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -8609,6 +8833,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -8632,6 +8857,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -8738,6 +8964,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -8761,6 +8988,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -8786,6 +9014,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -8835,6 +9064,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -8858,6 +9088,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -8881,6 +9112,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -8904,6 +9136,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -8927,6 +9160,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -8952,6 +9186,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -8975,6 +9210,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -9000,6 +9236,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -9023,6 +9260,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -9217,6 +9455,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "source": "'MANUAL'" }, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -9240,6 +9479,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -9265,6 +9505,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -9288,6 +9529,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -9347,7 +9589,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 4 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } }, @@ -9370,6 +9613,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -9419,6 +9663,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -9468,6 +9713,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -9517,6 +9763,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -9540,6 +9787,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -9589,6 +9837,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -9638,6 +9887,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -9661,6 +9911,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -9689,6 +9940,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "currencyCode": "''" }, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -9712,6 +9964,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -9735,6 +9988,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -9760,6 +10014,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -9809,6 +10064,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -9858,6 +10114,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -9881,6 +10138,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -9985,6 +10243,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -10010,6 +10269,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -10033,6 +10293,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -10056,6 +10317,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -10105,6 +10367,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -10128,6 +10391,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -10177,6 +10441,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -10226,6 +10491,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -10249,6 +10515,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -10272,6 +10539,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -10295,6 +10563,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -10320,6 +10589,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -10343,6 +10613,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -10368,6 +10639,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -10391,6 +10663,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -10414,6 +10687,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -10547,6 +10821,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -10572,6 +10847,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -10595,6 +10871,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -10620,6 +10897,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -10643,6 +10921,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -10666,6 +10945,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -10718,7 +10998,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 3 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } }, @@ -10741,6 +11022,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -10764,6 +11046,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -10813,6 +11096,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -10838,6 +11122,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -10861,6 +11146,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -10913,6 +11199,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "source": "'MANUAL'" }, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -10936,6 +11223,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -10985,6 +11273,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -11008,6 +11297,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -11057,6 +11347,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -11176,7 +11467,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 1 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } }, @@ -11199,6 +11491,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -11224,6 +11517,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -11247,6 +11541,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -11270,6 +11565,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -11295,6 +11591,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -11344,6 +11641,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -11393,6 +11691,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": true, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -11416,6 +11715,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -11441,6 +11741,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -11464,6 +11765,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": true, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -11487,6 +11789,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -11539,7 +11842,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 3 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } }, @@ -11562,6 +11866,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -11585,6 +11890,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": 0, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -11651,7 +11957,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 5 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } }, @@ -11674,6 +11981,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -11733,7 +12041,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 5 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } } @@ -11826,6 +12135,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -11875,6 +12185,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -11924,6 +12235,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -11973,6 +12285,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "'en'", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -11996,6 +12309,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -12021,6 +12335,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -12073,6 +12388,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "firstName": "''" }, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -12118,7 +12434,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 2 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } }, @@ -12141,6 +12458,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "'Light'", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -12164,6 +12482,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -12187,6 +12506,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -12210,6 +12530,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -12262,7 +12583,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 3 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } }, @@ -12285,6 +12607,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -12308,6 +12631,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -12357,6 +12681,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -12406,6 +12731,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -12455,6 +12781,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -12478,6 +12805,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -12527,6 +12855,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -12576,6 +12905,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -12625,6 +12955,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -12650,6 +12981,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -12675,6 +13007,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "'system'", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -12738,6 +13071,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -12761,6 +13095,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -12784,6 +13119,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -12809,6 +13145,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -12832,6 +13169,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -12857,6 +13195,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -12880,6 +13219,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -13331,6 +13671,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -13380,6 +13721,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -13429,6 +13771,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:39.008Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "isForeignKey": true }, @@ -13454,6 +13797,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -13477,6 +13821,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -13500,6 +13845,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -13549,6 +13895,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -13572,6 +13919,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -13621,6 +13969,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -13670,6 +14019,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -13719,6 +14069,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -13742,6 +14093,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -13765,6 +14117,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:39.014Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -13814,6 +14167,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -13863,6 +14217,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -13886,6 +14241,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -13911,6 +14267,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -13934,6 +14291,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": 0, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -13957,6 +14315,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -13982,6 +14341,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -14031,6 +14391,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -14054,6 +14415,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -14079,6 +14441,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -14128,6 +14491,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -14151,6 +14515,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -14200,6 +14565,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -14223,6 +14589,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -14272,6 +14639,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -14295,6 +14663,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -14358,6 +14727,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -14407,6 +14777,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -14430,6 +14801,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -14455,6 +14827,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -14480,6 +14853,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -14505,6 +14879,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -14554,6 +14929,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -14596,7 +14972,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 2 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } }, @@ -14619,6 +14996,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -14668,6 +15046,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -14691,6 +15070,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -14740,6 +15120,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -14789,6 +15170,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -14962,6 +15344,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -14985,6 +15368,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -15039,7 +15423,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 3 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } }, @@ -15062,6 +15447,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -15087,6 +15473,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -15112,6 +15499,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -15161,6 +15549,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -15210,6 +15599,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -15233,6 +15623,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -15256,6 +15647,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -15279,6 +15671,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -15302,6 +15695,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -15351,6 +15745,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -15414,6 +15809,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "'table'", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -15437,6 +15833,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": false, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -15460,6 +15857,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -15483,6 +15881,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -15532,6 +15931,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -15557,6 +15957,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -15606,6 +16007,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -15629,6 +16031,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -15652,6 +16055,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -15675,6 +16079,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -15698,6 +16103,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -15723,6 +16129,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -15772,6 +16179,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -15803,7 +16211,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 0 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } }, @@ -15826,6 +16235,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -15875,6 +16285,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -15924,6 +16335,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -15973,6 +16385,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -16038,6 +16451,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -16061,6 +16475,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -16084,6 +16499,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -16107,6 +16523,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -16132,6 +16549,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -16155,6 +16573,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -16180,6 +16599,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -16229,6 +16649,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -16278,6 +16699,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -16301,6 +16723,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": false, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -16328,6 +16751,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "primaryLinkLabel": "''" }, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -16351,6 +16775,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -16374,6 +16799,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -16397,6 +16823,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -16422,6 +16849,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -16445,6 +16873,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": false, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -16468,6 +16897,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -16491,6 +16921,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -16584,6 +17015,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -16609,6 +17041,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -16632,6 +17065,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -16655,6 +17089,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -16680,6 +17115,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -16703,6 +17139,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -16752,6 +17189,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -16915,6 +17353,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -16938,6 +17377,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -16963,6 +17403,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": false, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -16986,6 +17427,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -17035,6 +17477,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -17058,6 +17501,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -17083,6 +17527,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -17132,6 +17577,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -17155,6 +17601,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -17178,6 +17625,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -17201,6 +17649,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -17250,6 +17699,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -17273,6 +17723,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -17327,7 +17778,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 3 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } } @@ -17517,6 +17969,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -17542,6 +17995,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -17591,6 +18045,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -17616,6 +18071,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -17665,6 +18121,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -17688,6 +18145,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -17711,6 +18169,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -17760,6 +18219,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:39.033Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -17809,6 +18269,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -17834,6 +18295,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -17857,6 +18319,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:39.027Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "isForeignKey": true }, @@ -17882,6 +18345,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -17931,6 +18395,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -17954,6 +18419,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -18075,6 +18541,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -18100,6 +18567,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -18149,6 +18617,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -18174,6 +18643,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -18223,6 +18693,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -18246,6 +18717,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -18295,6 +18767,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -18344,6 +18817,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -18367,6 +18841,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -18390,6 +18865,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -18413,6 +18889,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -18436,6 +18913,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -18459,6 +18937,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -18506,7 +18985,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 1 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } }, @@ -18529,6 +19009,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -18578,6 +19059,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -18604,6 +19086,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "source": "'MANUAL'" }, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -18667,6 +19150,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -18692,6 +19176,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -18741,6 +19226,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -18766,6 +19252,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -18789,6 +19276,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -18924,6 +19412,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:38.555Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -18947,6 +19436,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -18974,6 +19464,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "primaryPhoneCountryCode": "''" }, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -19019,7 +19510,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 2 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } }, @@ -19042,6 +19534,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -19091,6 +19584,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -19114,6 +19608,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -19139,6 +19634,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -19164,6 +19660,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -19217,6 +19714,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "primaryLinkLabel": "''" }, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -19246,6 +19744,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = } ], "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -19272,6 +19771,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "firstName": "''" }, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -19295,6 +19795,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -19318,6 +19819,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -19367,6 +19869,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -19390,6 +19893,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -19439,6 +19943,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -19462,6 +19967,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -19487,6 +19993,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -19536,6 +20043,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -19585,6 +20093,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -19611,6 +20120,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "source": "'MANUAL'" }, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -19665,7 +20175,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 4 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } }, @@ -19691,6 +20202,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "additionalEmails": null }, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -19714,6 +20226,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -19763,6 +20276,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -19786,6 +20300,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -19839,6 +20354,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "primaryLinkLabel": "''" }, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -19862,6 +20378,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -19992,6 +20509,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": true, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -20015,6 +20533,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -20040,6 +20559,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": true, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -20063,6 +20583,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -20086,6 +20607,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -20147,7 +20669,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 5 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } }, @@ -20170,6 +20693,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -20193,6 +20717,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": 0, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -20231,7 +20756,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 1 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } }, @@ -20276,7 +20802,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 2 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } }, @@ -20342,7 +20869,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 5 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } }, @@ -20365,6 +20893,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -20388,6 +20917,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -20411,6 +20941,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -20434,6 +20965,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -20483,6 +21015,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -20508,6 +21041,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": true, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -20553,7 +21087,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "position": 2 } ], - "settings": null, + + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } }, @@ -20576,6 +21111,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -20625,6 +21161,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -20648,6 +21185,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": true, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -20781,6 +21319,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -20806,6 +21345,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -20829,6 +21369,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -20852,6 +21393,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "uuid", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -20875,6 +21417,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } @@ -20898,6 +21441,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -20923,6 +21467,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "now", "options": null, + "isLabelSyncedWithName": false, "settings": { "displayAsRelativeDate": true }, @@ -20948,6 +21493,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -20997,6 +21543,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": null, "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": { "__typename": "RelationDefinition", @@ -21046,6 +21593,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "updatedAt": "2024-11-06T08:55:35.625Z", "defaultValue": "''", "options": null, + "isLabelSyncedWithName": false, "settings": null, "relationDefinition": null } From dba9f69f141fab1c8840e903472407ae6319e81a Mon Sep 17 00:00:00 2001 From: Weiko Date: Tue, 3 Dec 2024 11:41:58 +0100 Subject: [PATCH 11/12] fix relation --- .../SettingsDataModelFieldIconLabelForm.tsx | 142 +++++++++--------- .../SettingsObjectNewFieldConfigure.tsx | 10 +- 2 files changed, 83 insertions(+), 69 deletions(-) diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIconLabelForm.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIconLabelForm.tsx index e02cef7e217f..f2ab1045d4b0 100644 --- a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIconLabelForm.tsx +++ b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIconLabelForm.tsx @@ -73,9 +73,11 @@ type SettingsDataModelFieldIconLabelFormProps = { disabled?: boolean; fieldMetadataItem?: FieldMetadataItem; maxLength?: number; + canToggleSyncLabelWithName?: boolean; }; export const SettingsDataModelFieldIconLabelForm = ({ + canToggleSyncLabelWithName = true, disabled, fieldMetadataItem, maxLength, @@ -145,81 +147,85 @@ export const SettingsDataModelFieldIconLabelForm = ({ )} /> - - - - - + {canToggleSyncLabelWithName && ( + + + + + + ( + <> + + apiNameTooltipText && ( + <> + + + + ) + } + /> + + )} + /> + ( - <> - - apiNameTooltipText && ( - <> - - - - ) + + { + onChange(value); + if (value === true) { + fillNameFromLabel(label); + } + }} /> - + )} /> - - ( - - { - onChange(value); - if (value === true) { - fillNameFromLabel(label); - } - }} - /> - - )} - /> - - - - + + + + + )} ); }; diff --git a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectNewField/SettingsObjectNewFieldConfigure.tsx b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectNewField/SettingsObjectNewFieldConfigure.tsx index 10930e2a1e70..3f4713120486 100644 --- a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectNewField/SettingsObjectNewFieldConfigure.tsx +++ b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectNewField/SettingsObjectNewFieldConfigure.tsx @@ -29,6 +29,7 @@ import { H2Title, Section } from 'twenty-ui'; import { z } from 'zod'; import { FieldMetadataType } from '~/generated-metadata/graphql'; import { DEFAULT_ICONS_BY_FIELD_TYPE } from '~/pages/settings/data-model/constants/DefaultIconsByFieldType'; +import { computeMetadataNameFromLabel } from '~/pages/settings/data-model/utils/compute-metadata-name-from-label.utils'; import { isUndefinedOrNull } from '~/utils/isUndefinedOrNull'; type SettingsDataModelNewFieldFormValues = z.infer< @@ -140,13 +141,17 @@ export const SettingsObjectNewFieldConfigure = () => { 'label', 'description', 'name', + 'isLabelSyncedWithName', ]), objectMetadataId: activeObjectMetadataItem.id, connect: { field: { icon: relationFormValues.field.icon, label: relationFormValues.field.label, - name: relationFormValues.field.name, + name: + (relationFormValues.field.isLabelSyncedWithName ?? true) + ? computeMetadataNameFromLabel(relationFormValues.field.label) + : relationFormValues.field.name, }, objectMetadataId: relationFormValues.objectMetadataId, }, @@ -211,6 +216,9 @@ export const SettingsObjectNewFieldConfigure = () => { />
From 2bbd3299c173bba493751cb2f5ba97acd0678498 Mon Sep 17 00:00:00 2001 From: Weiko Date: Tue, 3 Dec 2024 11:59:25 +0100 Subject: [PATCH 12/12] fix --- .../src/pages/settings/data-model/SettingsObjectFieldEdit.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx index 99ef21585a98..485022381d31 100644 --- a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx +++ b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx @@ -219,6 +219,9 @@ export const SettingsObjectFieldEdit = () => { disabled={!fieldMetadataItem.isCustom} fieldMetadataItem={fieldMetadataItem} maxLength={FIELD_NAME_MAXIMUM_LENGTH} + canToggleSyncLabelWithName={ + fieldMetadataItem.type !== FieldMetadataType.Relation + } />