Skip to content

The open alternative to Salesforce, designed for AI.

refactor(server): unify the two metadata override mechanisms into one (#22417)

Félix Malfait5a4ebca22618
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
index e8539d4b08b..46703a0519b 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
@@ -464,13 +464,6 @@ enum LogicFunctionExecutionMode {
PREBUILT
}
-type StandardOverrides {
- label: String
- description: String
- icon: String
- translations: JSON
-}
-
type Field {
id: UUID!
universalIdentifier: String!
@@ -479,7 +472,6 @@ type Field {
label: String!
description: String
icon: String
- standardOverrides: StandardOverrides
isActive: Boolean
isSystem: Boolean
isUIEditable: Boolean
@@ -606,15 +598,6 @@ input BooleanFieldComparison {
isNot: Boolean
}
-type ObjectStandardOverrides {
- labelSingular: String
- labelPlural: String
- description: String
- icon: String
- color: String
- translations: JSON
-}
-
type Object {
id: UUID!
universalIdentifier: String!
@@ -624,7 +607,6 @@ type Object {
labelPlural: String!
description: String
icon: String
- standardOverrides: ObjectStandardOverrides
shortcut: String
color: String
isRemote: Boolean!
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
index 154383ff26e..462cdbbc638 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
@@ -344,14 +344,6 @@ export interface LogicFunction {
export type LogicFunctionExecutionMode = 'LIVE' | 'PREBUILT'
-export interface StandardOverrides {
- label?: Scalars['String']
- description?: Scalars['String']
- icon?: Scalars['String']
- translations?: Scalars['JSON']
- __typename: 'StandardOverrides'
-}
-
export interface Field {
id: Scalars['UUID']
universalIdentifier: Scalars['String']
@@ -360,7 +352,6 @@ export interface Field {
label: Scalars['String']
description?: Scalars['String']
icon?: Scalars['String']
- standardOverrides?: StandardOverrides
isActive?: Scalars['Boolean']
isSystem?: Scalars['Boolean']
isUIEditable?: Scalars['Boolean']
@@ -405,16 +396,6 @@ export interface Index {
/** Type of the index */
export type IndexType = 'BTREE' | 'GIN'
-export interface ObjectStandardOverrides {
- labelSingular?: Scalars['String']
- labelPlural?: Scalars['String']
- description?: Scalars['String']
- icon?: Scalars['String']
- color?: Scalars['String']
- translations?: Scalars['JSON']
- __typename: 'ObjectStandardOverrides'
-}
-
export interface Object {
id: Scalars['UUID']
universalIdentifier: Scalars['String']
@@ -424,7 +405,6 @@ export interface Object {
labelPlural: Scalars['String']
description?: Scalars['String']
icon?: Scalars['String']
- standardOverrides?: ObjectStandardOverrides
shortcut?: Scalars['String']
color?: Scalars['String']
isRemote: Scalars['Boolean']
@@ -3350,15 +3330,6 @@ export interface LogicFunctionGenqlSelection{
__scalar?: boolean | number
}
-export interface StandardOverridesGenqlSelection{
- label?: boolean | number
- description?: boolean | number
- icon?: boolean | number
- translations?: boolean | number
- __typename?: boolean | number
- __scalar?: boolean | number
-}
-
export interface FieldGenqlSelection{
id?: boolean | number
universalIdentifier?: boolean | number
@@ -3367,7 +3338,6 @@ export interface FieldGenqlSelection{
label?: boolean | number
description?: boolean | number
icon?: boolean | number
- standardOverrides?: StandardOverridesGenqlSelection
isActive?: boolean | number
isSystem?: boolean | number
isUIEditable?: boolean | number
@@ -3426,17 +3396,6 @@ export interface UUIDFilterComparison {is?: (Scalars['Boolean'] | null),isNot?:
export interface BooleanFieldComparison {is?: (Scalars['Boolean'] | null),isNot?: (Scalars['Boolean'] | null)}
-export interface ObjectStandardOverridesGenqlSelection{
- labelSingular?: boolean | number
- labelPlural?: boolean | number
- description?: boolean | number
- icon?: boolean | number
- color?: boolean | number
- translations?: boolean | number
- __typename?: boolean | number
- __scalar?: boolean | number
-}
-
export interface ObjectGenqlSelection{
id?: boolean | number
universalIdentifier?: boolean | number
@@ -3446,7 +3405,6 @@ export interface ObjectGenqlSelection{
labelPlural?: boolean | number
description?: boolean | number
icon?: boolean | number
- standardOverrides?: ObjectStandardOverridesGenqlSelection
shortcut?: boolean | number
color?: boolean | number
isRemote?: boolean | number
@@ -6790,14 +6748,6 @@ export interface LogicFunctionLogsInput {applicationId?: (Scalars['UUID'] | null
- const StandardOverrides_possibleTypes: string[] = ['StandardOverrides']
- export const isStandardOverrides = (obj?: { __typename?: any } | null): obj is StandardOverrides => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isStandardOverrides"')
- return StandardOverrides_possibleTypes.includes(obj.__typename)
- }
-
-
-
const Field_possibleTypes: string[] = ['Field']
export const isField = (obj?: { __typename?: any } | null): obj is Field => {
if (!obj?.__typename) throw new Error('__typename is missing in "isField"')
@@ -6814,14 +6764,6 @@ export interface LogicFunctionLogsInput {applicationId?: (Scalars['UUID'] | null
- const ObjectStandardOverrides_possibleTypes: string[] = ['ObjectStandardOverrides']
- export const isObjectStandardOverrides = (obj?: { __typename?: any } | null): obj is ObjectStandardOverrides => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isObjectStandardOverrides"')
- return ObjectStandardOverrides_possibleTypes.includes(obj.__typename)
- }
-
-
-
const Object_possibleTypes: string[] = ['Object']
export const isObject = (obj?: { __typename?: any } | null): obj is Object => {
if (!obj?.__typename) throw new Error('__typename is missing in "isObject"')
diff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.ts
index 67a87e79f46..78dffd2ab4a 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/types.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts
@@ -17,72 +17,72 @@ export default {
36,
37,
42,
- 45,
- 47,
- 49,
+ 44,
+ 46,
+ 48,
+ 57,
59,
61,
- 63,
- 66,
+ 64,
+ 67,
+ 68,
69,
70,
71,
- 72,
73,
- 75,
- 78,
- 79,
- 84,
- 87,
- 92,
- 93,
- 96,
+ 76,
+ 77,
+ 82,
+ 85,
+ 90,
+ 91,
+ 94,
+ 95,
97,
- 99,
- 102,
- 103,
- 109,
- 123,
+ 100,
+ 101,
+ 107,
+ 121,
+ 131,
+ 132,
133,
- 134,
135,
- 137,
- 146,
- 159,
+ 144,
+ 157,
+ 160,
162,
- 164,
+ 166,
168,
- 170,
- 177,
- 178,
- 185,
- 188,
- 191,
- 202,
- 217,
- 229,
- 235,
+ 175,
+ 176,
+ 183,
+ 186,
+ 189,
+ 200,
+ 215,
+ 227,
+ 233,
+ 269,
271,
+ 272,
273,
274,
275,
276,
277,
- 278,
- 279,
- 286,
+ 284,
+ 323,
+ 324,
325,
326,
- 327,
328,
330,
- 332,
- 343,
- 350,
- 357,
- 440,
- 485,
- 494
+ 341,
+ 348,
+ 355,
+ 438,
+ 483,
+ 492
],
"types": {
"BillingProductDTO": {
@@ -96,13 +96,13 @@ export default {
1
],
"metadata": [
- 132
+ 130
],
"on_BillingLicensedProduct": [
- 141
+ 139
],
"on_BillingMeteredProduct": [
- 142
+ 140
],
"__typename": [
1
@@ -337,7 +337,7 @@ export default {
3
],
"user": [
- 77
+ 75
],
"userId": [
3
@@ -871,23 +871,6 @@ export default {
]
},
"LogicFunctionExecutionMode": {},
- "StandardOverrides": {
- "label": [
- 1
- ],
- "description": [
- 1
- ],
- "icon": [
- 1
- ],
- "translations": [
- 15
- ],
- "__typename": [
- 1
- ]
- },
"Field": {
"id": [
3
@@ -896,7 +879,7 @@ export default {
1
],
"type": [
- 45
+ 44
],
"name": [
1
@@ -910,9 +893,6 @@ export default {
"icon": [
1
],
- "standardOverrides": [
- 43
- ],
"isActive": [
6
],
@@ -959,13 +939,13 @@ export default {
3
],
"relation": [
- 201
+ 199
],
"morphRelations": [
- 201
+ 199
],
"object": [
- 54
+ 52
],
"__typename": [
1
@@ -989,7 +969,7 @@ export default {
1
],
"indexType": [
- 47
+ 46
],
"createdAt": [
4
@@ -998,17 +978,17 @@ export default {
4
],
"indexFieldMetadataList": [
- 203
+ 201
],
"objectMetadata": [
- 208,
+ 206,
{
"paging": [
- 48,
+ 47,
"CursorPaging!"
],
"filter": [
- 50,
+ 49,
"ObjectFilter!"
]
}
@@ -1020,10 +1000,10 @@ export default {
"IndexType": {},
"CursorPaging": {
"before": [
- 49
+ 48
],
"after": [
- 49
+ 48
],
"first": [
21
@@ -1038,34 +1018,34 @@ export default {
"ConnectionCursor": {},
"ObjectFilter": {
"and": [
- 50
+ 49
],
"or": [
- 50
+ 49
],
"id": [
- 51
+ 50
],
"isRemote": [
- 52
+ 51
],
"isActive": [
- 52
+ 51
],
"isSystem": [
- 52
+ 51
],
"isUIEditable": [
- 52
+ 51
],
"isUICreatable": [
- 52
+ 51
],
"isUIReadOnly": [
- 52
+ 51
],
"isSearchable": [
- 52
+ 51
],
"__typename": [
1
@@ -1129,29 +1109,6 @@ export default {
1
]
},
- "ObjectStandardOverrides": {
- "labelSingular": [
- 1
- ],
- "labelPlural": [
- 1
- ],
- "description": [
- 1
- ],
- "icon": [
- 1
- ],
- "color": [
- 1
- ],
- "translations": [
- 15
- ],
- "__typename": [
- 1
- ]
- },
"Object": {
"id": [
3
@@ -1177,9 +1134,6 @@ export default {
"icon": [
1
],
- "standardOverrides": [
- 53
- ],
"shortcut": [
1
],
@@ -1229,36 +1183,36 @@ export default {
1
],
"fieldsList": [
- 44
+ 43
],
"indexMetadataList": [
- 46
+ 45
],
"searchFieldMetadataList": [
- 210
+ 208
],
"fields": [
- 214,
+ 212,
{
"paging": [
- 48,
+ 47,
"CursorPaging!"
],
"filter": [
- 55,
+ 53,
"FieldFilter!"
]
}
],
"indexMetadatas": [
- 212,
+ 210,
{
"paging": [
- 48,
+ 47,
"CursorPaging!"
],
"filter": [
- 56,
+ 54,
"IndexFilter!"
]
}
@@ -1269,28 +1223,28 @@ export default {
},
"FieldFilter": {
"and": [
- 55
+ 53
],
"or": [
- 55
+ 53
],
"id": [
- 51
+ 50
],
"isActive": [
- 52
+ 51
],
"isSystem": [
- 52
+ 51
],
"isUIEditable": [
- 52
+ 51
],
"isUIReadOnly": [
- 52
+ 51
],
"objectMetadataId": [
- 51
+ 50
],
"__typename": [
1
@@ -1298,16 +1252,16 @@ export default {
},
"IndexFilter": {
"and": [
- 56
+ 54
],
"or": [
- 56
+ 54
],
"id": [
- 51
+ 50
],
"isCustom": [
- 52
+ 51
],
"__typename": [
1
@@ -1375,7 +1329,7 @@ export default {
41
],
"objects": [
- 54
+ 52
],
"applicationVariables": [
31
@@ -1404,7 +1358,7 @@ export default {
11
],
"aggregateOperation": [
- 59
+ 57
],
"viewId": [
3
@@ -1443,7 +1397,7 @@ export default {
3
],
"logicalOperator": [
- 61
+ 59
],
"positionInViewFilterGroup": [
11
@@ -1476,7 +1430,7 @@ export default {
3
],
"operand": [
- 63
+ 61
],
"value": [
15
@@ -1553,7 +1507,7 @@ export default {
3
],
"direction": [
- 66
+ 64
],
"subFieldName": [
1
@@ -1610,7 +1564,7 @@ export default {
4
],
"viewFields": [
- 58
+ 56
],
"isOverridden": [
6
@@ -1630,10 +1584,10 @@ export default {
3
],
"type": [
- 69
+ 67
],
"key": [
- 70
+ 68
],
"icon": [
1
@@ -1648,10 +1602,10 @@ export default {
6
],
"openRecordIn": [
- 71
+ 69
],
"kanbanAggregateOperation": [
- 59
+ 57
],
"kanbanAggregateOperationFieldMetadataId": [
3
@@ -1675,7 +1629,7 @@ export default {
1
],
"calendarLayout": [
- 72
+ 70
],
"createdAt": [
4
@@ -1687,25 +1641,25 @@ export default {
4
],
"viewFields": [
- 58
+ 56
],
"viewFilters": [
- 62
+ 60
],
"viewFilterGroups": [
- 60
+ 58
],
"viewSorts": [
- 65
+ 63
],
"viewGroups": [
- 64
+ 62
],
"viewFieldGroups": [
- 67
+ 65
],
"visibility": [
- 73
+ 71
],
"createdByUserWorkspaceId": [
3
@@ -1763,25 +1717,25 @@ export default {
11
],
"activationStatus": [
- 75
+ 73
],
"views": [
- 68
+ 66
],
"viewFields": [
- 58
+ 56
],
"viewFilters": [
- 62
+ 60
],
"viewFilterGroups": [
- 60
+ 58
],
"viewGroups": [
- 64
+ 62
],
"viewSorts": [
- 65
+ 63
],
"metadataVersion": [
11
@@ -1847,25 +1801,25 @@ export default {
1
],
"workspaceCustomApplication": [
- 57
+ 55
],
"featureFlags": [
- 169
+ 167
],
"billingSubscriptions": [
- 145
+ 143
],
"installedApplications": [
- 57
+ 55
],
"currentBillingSubscription": [
- 145
+ 143
],
"billingCustomer": [
- 144
+ 142
],
"billingEntitlements": [
- 228
+ 226
],
"hasValidSignedEnterpriseKey": [
6
@@ -1874,7 +1828,7 @@ export default {
6
],
"workspaceUrls": [
- 171
+ 169
],
"workspaceCustomApplicationId": [
1
@@ -1948,22 +1902,22 @@ export default {
17
],
"onboardingStatus": [
- 78
+ 76
],
"currentWorkspace": [
- 74
+ 72
],
"currentUserWorkspace": [
17
],
"userVars": [
- 79
+ 77
],
"workspaceMembers": [
20
],
"deletedWorkspaceMembers": [
- 227
+ 225
],
"hasPassword": [
6
@@ -1975,7 +1929,7 @@ export default {
17
],
"availableWorkspaces": [
- 226
+ 224
],
"__typename": [
1
@@ -2036,19 +1990,19 @@ export default {
1
],
"type": [
- 84
+ 82
],
"objectMetadataId": [
3
],
"gridPosition": [
- 82
+ 80
],
"position": [
- 85
+ 83
],
"configuration": [
- 90
+ 88
],
"conditionalDisplay": [
15
@@ -2078,13 +2032,13 @@ export default {
"WidgetType": {},
"PageLayoutWidgetPosition": {
"on_PageLayoutWidgetGridPosition": [
- 86
+ 84
],
"on_PageLayoutWidgetVerticalListPosition": [
- 88
+ 86
],
"on_PageLayoutWidgetCanvasPosition": [
- 89
+ 87
],
"__typename": [
1
@@ -2092,7 +2046,7 @@ export default {
},
"PageLayoutWidgetGridPosition": {
"layoutMode": [
- 87
+ 85
],
"row": [
21
@@ -2113,7 +2067,7 @@ export default {
"PageLayoutTabLayoutMode": {},
"PageLayoutWidgetVerticalListPosition": {
"layoutMode": [
- 87
+ 85
],
"index": [
21
@@ -2124,7 +2078,7 @@ export default {
},
"PageLayoutWidgetCanvasPosition": {
"layoutMode": [
- 87
+ 85
],
"__typename": [
1
@@ -2132,70 +2086,70 @@ export default {
},
"WidgetConfiguration": {
"on_AggregateChartConfiguration": [
- 91
+ 89
],
"on_StandaloneRichTextConfiguration": [
- 94
+ 92
],
"on_PieChartConfiguration": [
- 95
+ 93
],
"on_LineChartConfiguration": [
- 98
+ 96
],
"on_IframeConfiguration": [
- 100
+ 98
],
"on_BarChartConfiguration": [
- 101
+ 99
],
"on_CalendarConfiguration": [
- 104
+ 102
],
"on_FrontComponentConfiguration": [
- 105
+ 103
],
"on_EmailsConfiguration": [
- 106
+ 104
],
"on_EmailThreadConfiguration": [
- 107
+ 105
],
"on_FieldConfiguration": [
- 108
+ 106
],
"on_FieldRichTextConfiguration": [
- 110
+ 108
],
"on_FieldsConfiguration": [
- 111
+ 109
],
"on_FilesConfiguration": [
- 112
+ 110
],
"on_NotesConfiguration": [
- 113
+ 111
],
"on_TasksConfiguration": [
- 114
+ 112
],
"on_TimelineConfiguration": [
- 115
+ 113
],
"on_ViewConfiguration": [
- 116
+ 114
],
"on_RecordTableConfiguration": [
- 117
+ 115
],
"on_WorkflowConfiguration": [
- 118
+ 116
],
"on_WorkflowRunConfiguration": [
- 119
+ 117
],
"on_WorkflowVersionConfiguration": [
- 120
+ 118
],
"__typename": [
1
@@ -2203,13 +2157,13 @@ export default {
},
"AggregateChartConfiguration": {
"configurationType": [
- 92
+ 90
],
"aggregateFieldMetadataId": [
3
],
"aggregateOperation": [
- 59
+ 57
],
"label": [
1
@@ -2218,7 +2172,7 @@ export default {
6
],
"numberFormat": [
- 93
+ 91
],
"description": [
1
@@ -2239,7 +2193,7 @@ export default {
1
],
"ratioAggregateConfig": [
- 80
+ 78
],
"__typename": [
1
@@ -2249,10 +2203,10 @@ export default {
"ChartNumberFormat": {},
"StandaloneRichTextConfiguration": {
"configurationType": [
- 92
+ 90
],
"body": [
- 81
+ 79
],
"__typename": [
1
@@ -2260,13 +2214,13 @@ export default {
},
"PieChartConfiguration": {
"configurationType": [
- 92
+ 90
],
"aggregateFieldMetadataId": [
3
],
"aggregateOperation": [
- 59
+ 57
],
"groupByFieldMetadataId": [
3
@@ -2275,10 +2229,10 @@ export default {
1
],
"dateGranularity": [
- 96
+ 94
],
"orderBy": [
- 97
+ 95
],
"manualSortOrder": [
1
@@ -2321,13 +2275,13 @@ export default {
"GraphOrderBy": {},
"LineChartConfiguration": {
"configurationType": [
- 92
+ 90
],
"aggregateFieldMetadataId": [
3
],
"aggregateOperation": [
- 59
+ 57
],
"primaryAxisGroupByFieldMetadataId": [
3
@@ -2336,10 +2290,10 @@ export default {
1
],
"primaryAxisDateGranularity": [
- 96
+ 94
],
"primaryAxisOrderBy": [
- 97
+ 95
],
"primaryAxisManualSortOrder": [
1
@@ -2351,10 +2305,10 @@ export default {
1
],
"secondaryAxisGroupByDateGranularity": [
- 96
+ 94
],
"secondaryAxisOrderBy": [
- 97
+ 95
],
"secondaryAxisManualSortOrder": [
1
@@ -2366,7 +2320,7 @@ export default {
6
],
"axisNameDisplay": [
- 99
+ 97
],
"displayDataLabel": [
6
@@ -2408,7 +2362,7 @@ export default {
"AxisNameDisplay": {},
"IframeConfiguration": {
"configurationType": [
- 92
+ 90
],
"url": [
1
@@ -2419,13 +2373,13 @@ export default {
},
"BarChartConfiguration": {
"configurationType": [
- 92
+ 90
],
"aggregateFieldMetadataId": [
3
],
"aggregateOperation": [
- 59
+ 57
],
"primaryAxisGroupByFieldMetadataId": [
3
@@ -2434,10 +2388,10 @@ export default {
1
],
"primaryAxisDateGranularity": [
- 96
+ 94
],
"primaryAxisOrderBy": [
- 97
+ 95
],
"primaryAxisManualSortOrder": [
1
@@ -2449,10 +2403,10 @@ export default {
1
],
"secondaryAxisGroupByDateGranularity": [
- 96
+ 94
],
"secondaryAxisOrderBy": [
- 97
+ 95
],
"secondaryAxisManualSortOrder": [
1
@@ -2464,7 +2418,7 @@ export default {
6
],
"axisNameDisplay": [
- 99
+ 97
],
"displayDataLabel": [
6
@@ -2488,10 +2442,10 @@ export default {
15
],
"groupMode": [
- 102
+ 100
],
"layout": [
- 103
+ 101
],
"isCumulative": [
6
@@ -2510,7 +2464,7 @@ export default {
"BarChartLayout": {},
"CalendarConfiguration": {
"configurationType": [
- 92
+ 90
],
"__typename": [
1
@@ -2518,7 +2472,7 @@ export default {
},
"FrontComponentConfiguration": {
"configurationType": [
- 92
+ 90
],
"frontComponentId": [
3
@@ -2529,7 +2483,7 @@ export default {
},
"EmailsConfiguration": {
"configurationType": [
- 92
+ 90
],
"__typename": [
1
@@ -2537,7 +2491,7 @@ export default {
},
"EmailThreadConfiguration": {
"configurationType": [
- 92
+ 90
],
"__typename": [
1
@@ -2545,13 +2499,13 @@ export default {
},
"FieldConfiguration": {
"configurationType": [
- 92
+ 90
],
"fieldMetadataId": [
1
],
"fieldDisplayMode": [
- 109
+ 107
],
"viewId": [
1
@@ -2563,7 +2517,7 @@ export default {
"FieldDisplayMode": {},
"FieldRichTextConfiguration": {
"configurationType": [
- 92
+ 90
],
"__typename": [
1
@@ -2571,7 +2525,7 @@ export default {
},
"FieldsConfiguration": {
"configurationType": [
- 92
+ 90
],
"viewId": [
1
@@ -2588,7 +2542,7 @@ export default {
},
"FilesConfiguration": {
"configurationType": [
- 92
+ 90
],
"__typename": [
1
@@ -2596,7 +2550,7 @@ export default {
},
"NotesConfiguration": {
"configurationType": [
- 92
+ 90
],
"__typename": [
1
@@ -2604,7 +2558,7 @@ export default {
},
"TasksConfiguration": {
"configurationType": [
- 92
+ 90
],
"__typename": [
1
@@ -2612,7 +2566,7 @@ export default {
},
"TimelineConfiguration": {
"configurationType": [
- 92
+ 90
],
"__typename": [
1
@@ -2620,7 +2574,7 @@ export default {
},
"ViewConfiguration": {
"configurationType": [
- 92
+ 90
],
"__typename": [
1
@@ -2628,7 +2582,7 @@ export default {
},
"RecordTableConfiguration": {
"configurationType": [
- 92
+ 90
],
"viewId": [
1
@@ -2642,7 +2596,7 @@ export default {
},
"WorkflowConfiguration": {
"configurationType": [
- 92
+ 90
],
"__typename": [
1
@@ -2650,7 +2604,7 @@ export default {
},
"WorkflowRunConfiguration": {
"configurationType": [
- 92
+ 90
],
"__typename": [
1
@@ -2658,7 +2612,7 @@ export default {
},
"WorkflowVersionConfiguration": {
"configurationType": [
- 92
+ 90
],
"__typename": [
1
@@ -2681,13 +2635,13 @@ export default {
3
],
"widgets": [
- 83
+ 81
],
"icon": [
1
],
"layoutMode": [
- 87
+ 85
],
"createdAt": [
4
@@ -2716,13 +2670,13 @@ export default {
1
],
"type": [
- 123
+ 121
],
"objectMetadataId": [
3
],
"tabs": [
- 121
+ 119
],
"defaultTabToFocusOnMobileAndSidePanelId": [
3
@@ -2772,7 +2726,7 @@ export default {
1
],
"oauth": [
- 124
+ 122
],
"__typename": [
1
@@ -2874,7 +2828,7 @@ export default {
11
],
"items": [
- 130
+ 128
],
"__typename": [
1
@@ -2882,13 +2836,13 @@ export default {
},
"BillingProductMetadata": {
"planKey": [
- 133
+ 131
],
"priceUsageBased": [
- 134
+ 132
],
"productKey": [
- 135
+ 133
],
"__typename": [
1
@@ -2899,7 +2853,7 @@ export default {
"BillingProductKey": {},
"BillingPriceLicensed": {
"recurringInterval": [
- 137
+ 135
],
"unitAmount": [
11
@@ -2908,7 +2862,7 @@ export default {
1
],
"priceUsageType": [
- 134
+ 132
],
"creditAmount": [
11
@@ -2934,16 +2888,16 @@ export default {
},
"BillingPriceMetered": {
"tiers": [
- 138
+ 136
],
"recurringInterval": [
- 137
+ 135
],
"stripePriceId": [
1
],
"priceUsageType": [
- 134
+ 132
],
"__typename": [
1
@@ -2960,7 +2914,7 @@ export default {
1
],
"metadata": [
- 132
+ 130
],
"__typename": [
1
@@ -2977,10 +2931,10 @@ export default {
1
],
"metadata": [
- 132
+ 130
],
"prices": [
- 136
+ 134
],
"__typename": [
1
@@ -2997,10 +2951,10 @@ export default {
1
],
"metadata": [
- 132
+ 130
],
"prices": [
- 139
+ 137
],
"__typename": [
1
@@ -3042,13 +2996,13 @@ export default {
3
],
"status": [
- 146
+ 144
],
"interval": [
- 137
+ 135
],
"billingSubscriptionItems": [
- 143
+ 141
],
"currentPeriodEnd": [
4
@@ -3057,7 +3011,7 @@ export default {
15
],
"phases": [
- 131
+ 129
],
"cancelAt": [
4
@@ -3069,7 +3023,7 @@ export default {
"SubscriptionStatus": {},
"BillingEndTrialPeriod": {
"status": [
- 146
+ 144
],
"hasPaymentMethod": [
6
@@ -3083,7 +3037,7 @@ export default {
},
"BillingResourceCreditUsage": {
"productKey": [
- 135
+ 133
],
"periodStart": [
4
@@ -3112,16 +3066,16 @@ export default {
},
"BillingPlan": {
"planKey": [
- 133
+ 131
],
"baseProducts": [
- 141
+ 139
],
"resourceCreditProducts": [
- 141
+ 139
],
"meteredProducts": [
- 142
+ 140
],
"__typename": [
1
@@ -3148,10 +3102,10 @@ export default {
},
"BillingUpdate": {
"currentBillingSubscription": [
- 145
+ 143
],
"billingSubscriptions": [
- 145
+ 143
],
"__typename": [
1
@@ -3201,7 +3155,7 @@ export default {
1
],
"result": [
- 155
+ 153
],
"__typename": [
1
@@ -3238,7 +3192,7 @@ export default {
3
],
"type": [
- 159
+ 157
],
"name": [
1
@@ -3271,7 +3225,7 @@ export default {
4
],
"targetRecordIdentifier": [
- 157
+ 155
],
"__typename": [
1
@@ -3297,7 +3251,7 @@ export default {
},
"MetadataEvent": {
"type": [
- 162
+ 160
],
"metadataName": [
1
@@ -3306,7 +3260,7 @@ export default {
1
],
"properties": [
- 160
+ 158
],
"updatedCollectionHash": [
1
@@ -3318,7 +3272,7 @@ export default {
"MetadataEventAction": {},
"ObjectRecordEvent": {
"action": [
- 164
+ 162
],
"objectNameSingular": [
1
@@ -3333,7 +3287,7 @@ export default {
1
],
"properties": [
- 160
+ 158
],
"__typename": [
1
@@ -3345,7 +3299,7 @@ export default {
1
],
"objectRecordEvent": [
- 163
+ 161
],
"__typename": [
1
@@ -3356,10 +3310,10 @@ export default {
1
],
"objectRecordEventsWithQueryIds": [
- 165
+ 163
],
"metadataEvents": [
- 161
+ 159
],
"__typename": [
1
@@ -3376,7 +3330,7 @@ export default {
11
],
"status": [
- 168
+ 166
],
"error": [
15
@@ -3388,7 +3342,7 @@ export default {
"LogicFunctionExecutionStatus": {},
"FeatureFlag": {
"key": [
- 170
+ 168
],
"value": [
6
@@ -3460,7 +3414,7 @@ export default {
1
],
"versionDistribution": [
- 173
+ 171
],
"__typename": [
1
@@ -3485,10 +3439,10 @@ export default {
1
],
"type": [
- 177
+ 175
],
"status": [
- 178
+ 176
],
"issuer": [
1
@@ -3501,7 +3455,7 @@ export default {
"SSOIdentityProviderStatus": {},
"AuthProviders": {
"sso": [
- 176
+ 174
],
"google": [
6
@@ -3538,10 +3492,10 @@ export default {
3
],
"authProviders": [
- 179
+ 177
],
"authBypassProviders": [
- 180
+ 178
],
"logo": [
1
@@ -3550,7 +3504,7 @@ export default {
1
],
"workspaceUrls": [
- 171
+ 169
],
"__typename": [
1
@@ -3589,7 +3543,7 @@ export default {
1
],
"modelFamily": [
- 185
+ 183
],
"modelFamilyLabel": [
1
@@ -3604,7 +3558,7 @@ export default {
11
],
"nativeCapabilities": [
- 183
+ 181
],
"isDeprecated": [
6
@@ -3643,7 +3597,7 @@ export default {
1
],
"trialPeriods": [
- 175
+ 173
],
"__typename": [
1
@@ -3651,7 +3605,7 @@ export default {
},
"Support": {
"supportDriver": [
- 188
+ 186
],
"supportFrontChatId": [
1
@@ -3677,7 +3631,7 @@ export default {
},
"Captcha": {
"provider": [
- 191
+ 189
],
"siteKey": [
1
@@ -3711,10 +3665,10 @@ export default {
},
"PublicFeatureFlag": {
"key": [
- 170
+ 168
],
"metadata": [
- 193
+ 191
],
"__typename": [
1
@@ -3739,13 +3693,13 @@ export default {
1
],
"authProviders": [
- 179
+ 177
],
"billing": [
- 186
+ 184
],
"aiModels": [
- 184
+ 182
],
"signInPrefilled": [
6
@@ -3769,25 +3723,25 @@ export default {
6
],
"support": [
- 187
+ 185
],
"isAttachmentPreviewEnabled": [
6
],
"sentry": [
- 189
+ 187
],
"captcha": [
- 190
+ 188
],
"api": [
- 192
+ 190
],
"canManageFeatureFlags": [
6
],
"publicFeatureFlags": [
- 194
+ 192
],
"isMicrosoftMessagingEnabled": [
6
@@ -3826,7 +3780,7 @@ export default {
6
],
"maintenance": [
- 195
+ 193
],
"__typename": [
1
@@ -3887,19 +3841,19 @@ export default {
},
"Relation": {
"type": [
- 202
+ 200
],
"sourceObjectMetadata": [
- 54
+ 52
],
"targetObjectMetadata": [
- 54
+ 52
],
"sourceFieldMetadata": [
- 44
+ 43
],
"targetFieldMetadata": [
- 44
+ 43
],
"__typename": [
1
@@ -3931,10 +3885,10 @@ export default {
},
"IndexEdge": {
"node": [
- 46
+ 45
],
"cursor": [
- 49
+ 48
],
"__typename": [
1
@@ -3948,10 +3902,10 @@ export default {
6
],
"startCursor": [
- 49
+ 48
],
"endCursor": [
- 49
+ 48
],
"__typename": [
1
@@ -3959,10 +3913,10 @@ export default {
},
"IndexConnection": {
"pageInfo": [
- 205
+ 203
],
"edges": [
- 204
+ 202
],
"__typename": [
1
@@ -3970,10 +3924,10 @@ export default {
},
"ObjectEdge": {
"node": [
- 54
+ 52
],
"cursor": [
- 49
+ 48
],
"__typename": [
1
@@ -3981,10 +3935,10 @@ export default {
},
"IndexObjectMetadataConnection": {
"pageInfo": [
- 205
+ 203
],
"edges": [
- 207
+ 205
],
"__typename": [
1
@@ -4026,10 +3980,10 @@ export default {
},
"ObjectConnection": {
"pageInfo": [
- 205
+ 203
],
"edges": [
- 207
+ 205
],
"__typename": [
1
@@ -4037,10 +3991,10 @@ export default {
},
"ObjectIndexMetadatasConnection": {
"pageInfo": [
- 205
+ 203
],
"edges": [
- 204
+ 202
],
"__typename": [
1
@@ -4048,10 +4002,10 @@ export default {
},
"FieldEdge": {
"node": [
- 44
+ 43
],
"cursor": [
- 49
+ 48
],
"__typename": [
1
@@ -4059,10 +4013,10 @@ export default {
},
"ObjectFieldsConnection": {
"pageInfo": [
- 205
+ 203
],
"edges": [
- 213
+ 211
],
"__typename": [
1
@@ -4070,10 +4024,10 @@ export default {
},
"FieldConnection": {
"pageInfo": [
- 205
+ 203
],
"edges": [
- 213
+ 211
],
"__typename": [
1
@@ -4081,7 +4035,7 @@ export default {
},
"AppConnection": {
"id": [
- 217
+ 215
],
"providerName": [
1
@@ -4133,7 +4087,7 @@ export default {
3
],
"type": [
- 177
+ 175
],
"issuer": [
1
@@ -4142,7 +4096,7 @@ export default {
1
],
"status": [
- 178
+ 176
],
"__typename": [
1
@@ -4161,7 +4115,7 @@ export default {
},
"FindAvailableSSOIDP": {
"type": [
- 177
+ 175
],
"id": [
3
@@ -4173,10 +4127,10 @@ export default {
1
],
"status": [
- 178
+ 176
],
"workspace": [
- 221
+ 219
],
"__typename": [
1
@@ -4187,7 +4141,7 @@ export default {
3
],
"type": [
- 177
+ 175
],
"issuer": [
1
@@ -4196,7 +4150,7 @@ export default {
1
],
"status": [
- 178
+ 176
],
"__typename": [
1
@@ -4204,7 +4158,7 @@ export default {
},
"SSOConnection": {
"type": [
- 177
+ 175
],
"id": [
3
@@ -4216,7 +4170,7 @@ export default {
1
],
"status": [
- 178
+ 176
],
"__typename": [
1
@@ -4239,13 +4193,13 @@ export default {
1
],
"workspaceUrls": [
- 171
+ 169
],
"logo": [
1
],
"sso": [
- 224
+ 222
],
"__typename": [
1
@@ -4253,10 +4207,10 @@ export default {
},
"AvailableWorkspaces": {
"availableWorkspacesForSignIn": [
- 225
+ 223
],
"availableWorkspacesForSignUp": [
- 225
+ 223
],
"__typename": [
1
@@ -4284,7 +4238,7 @@ export default {
},
"BillingEntitlement": {
"key": [
- 229
+ 227
],
"value": [
6
@@ -4322,7 +4276,7 @@ export default {
1
],
"records": [
- 230
+ 228
],
"isCustomDomainEnabled": [
6
@@ -4361,7 +4315,7 @@ export default {
1
],
"connectionSecurity": [
- 235
+ 233
],
"__typename": [
1
@@ -4370,13 +4324,13 @@ export default {
"EmailConnectionSecurity": {},
"PublicImapSmtpCaldavConnectionParameters": {
"IMAP": [
- 234
+ 232
],
"SMTP": [
- 234
+ 232
],
"CALDAV": [
- 234
+ 232
],
"__typename": [
1
@@ -4432,7 +4386,7 @@ export default {
4
],
"connectionParameters": [
- 236
+ 234
],
"__typename": [
1
@@ -4483,10 +4437,10 @@ export default {
},
"AvailableWorkspacesAndAccessTokens": {
"tokens": [
- 242
+ 240
],
"availableWorkspaces": [
- 226
+ 224
],
"__typename": [
1
@@ -4524,7 +4478,7 @@ export default {
},
"WorkspaceUrlsAndId": {
"workspaceUrls": [
- 171
+ 169
],
"id": [
3
@@ -4538,7 +4492,7 @@ export default {
32
],
"workspace": [
- 247
+ 245
],
"__typename": [
1
@@ -4571,7 +4525,7 @@ export default {
32
],
"workspaceUrls": [
- 171
+ 169
],
"__typename": [
1
@@ -4615,7 +4569,7 @@ export default {
},
"AuthTokens": {
"tokens": [
- 242
+ 240
],
"__typename": [
1
@@ -4656,7 +4610,7 @@ export default {
32
],
"workspace": [
- 247
+ 245
],
"__typename": [
1
@@ -4678,7 +4632,7 @@ export default {
1
],
"dailyUsage": [
- 260
+ 258
],
"__typename": [
1
@@ -4686,16 +4640,16 @@ export default {
},
"UsageAnalytics": {
"usageByUser": [
- 197
+ 195
],
"usageByOperationType": [
- 197
+ 195
],
"usageByModel": [
- 197
+ 195
],
"timeSeries": [
- 260
+ 258
],
"periodStart": [
4
@@ -4704,7 +4658,7 @@ export default {
4
],
"userDailyUsage": [
- 261
+ 259
],
"__typename": [
1
@@ -4861,10 +4815,10 @@ export default {
1
],
"status": [
- 271
+ 269
],
"verificationRecords": [
- 269
+ 267
],
"verifiedAt": [
4
@@ -4879,22 +4833,22 @@ export default {
3
],
"visibility": [
- 273
+ 271
],
"handle": [
1
],
"type": [
- 274
+ 272
],
"isContactAutoCreationEnabled": [
6
],
"contactAutoCreationPolicy": [
- 275
+ 273
],
"messageFolderImportPolicy": [
- 276
+ 274
],
"excludeNonProfessionalEmails": [
6
@@ -4903,7 +4857,7 @@ export default {
6
],
"pendingGroupEmailsAction": [
- 277
+ 275
],
"isSyncEnabled": [
6
@@ -4912,10 +4866,10 @@ export default {
4
],
"syncStatus": [
- 278
+ 276
],
"syncStage": [
- 279
+ 277
],
"syncStageStartedAt": [
4
@@ -4936,7 +4890,7 @@ export default {
4
],
"connectedAccount": [
- 237
+ 235
],
"__typename": [
1
@@ -4951,7 +4905,7 @@ export default {
"MessageChannelSyncStage": {},
"CreateEmailGroupChannelOutput": {
"messageChannel": [
- 272
+ 270
],
"forwardingAddress": [
1
@@ -5013,7 +4967,7 @@ export default {
21
],
"skipped": [
- 283
+ 281
],
"__typename": [
1
@@ -5036,7 +4990,7 @@ export default {
1
],
"visibility": [
- 286
+ 284
],
"__typename": [
1
@@ -5082,7 +5036,7 @@ export default {
1
],
"location": [
- 288
+ 286
],
"__typename": [
1
@@ -5099,7 +5053,7 @@ export default {
1
],
"connectionSecurity": [
- 235
+ 233
],
"__typename": [
1
@@ -5107,13 +5061,13 @@ export default {
},
"ImapSmtpCaldavPublicConnectionParameters": {
"IMAP": [
- 290
+ 288
],
"SMTP": [
- 290
+ 288
],
"CALDAV": [
- 290
+ 288
],
"__typename": [
1
@@ -5133,7 +5087,7 @@ export default {
3
],
"connectionParameters": [
- 291
+ 289
],
"__typename": [
1
@@ -5355,7 +5309,7 @@ export default {
1
],
"series": [
- 300
+ 298
],
"xAxisLabel": [
1
@@ -5370,10 +5324,10 @@ export default {
6
],
"layout": [
- 103
+ 101
],
"groupMode": [
- 102
+ 100
],
"hasTooManyGroups": [
6
@@ -5404,7 +5358,7 @@ export default {
1
],
"data": [
- 302
+ 300
],
"__typename": [
1
@@ -5412,7 +5366,7 @@ export default {
},
"LineChartData": {
"series": [
- 303
+ 301
],
"xAxisLabel": [
1
@@ -5449,7 +5403,7 @@ export default {
},
"PieChartData": {
"data": [
- 305
+ 303
],
"showLegend": [
6
@@ -5554,13 +5508,13 @@ export default {
},
"EventLogQueryResult": {
"records": [
- 310
+ 308
],
"totalCount": [
21
],
"pageInfo": [
- 311
+ 309
],
"__typename": [
1
@@ -5624,7 +5578,7 @@ export default {
1
],
"parts": [
- 296
+ 294
],
"processedAt": [
4
@@ -5638,7 +5592,7 @@ export default {
},
"AgentChatThread": {
"id": [
- 217
+ 215
],
"title": [
1
@@ -5693,7 +5647,7 @@ export default {
},
"AiSystemPromptPreview": {
"sections": [
- 316
+ 314
],
"estimatedTokenCount": [
21
@@ -5769,10 +5723,10 @@ export default {
3
],
"evaluations": [
- 321
+ 319
],
"messages": [
- 314
+ 312
],
"createdAt": [
4
@@ -5803,19 +5757,19 @@ export default {
1
],
"syncStatus": [
- 325
+ 323
],
"syncStage": [
- 326
+ 324
],
"visibility": [
- 327
+ 325
],
"isContactAutoCreationEnabled": [
6
],
"contactAutoCreationPolicy": [
- 328
+ 326
],
"isSyncEnabled": [
6
@@ -5866,7 +5820,7 @@ export default {
1
],
"pendingSyncAction": [
- 330
+ 328
],
"messageChannelId": [
3
@@ -5884,7 +5838,7 @@ export default {
"MessageFolderPendingSyncAction": {},
"CollectionHash": {
"collectionName": [
- 332
+ 330
],
"hash": [
1
@@ -5934,10 +5888,10 @@ export default {
3
],
"type": [
- 69
+ 67
],
"key": [
- 70
+ 68
],
"objectMetadataId": [
3
@@ -5948,13 +5902,13 @@ export default {
},
"MinimalMetadata": {
"objectMetadataItems": [
- 333
+ 331
],
"views": [
- 334
+ 332
],
"collectionHashes": [
- 331
+ 329
],
"__typename": [
1
@@ -5962,10 +5916,10 @@ export default {
},
"Query": {
"navigationMenuItems": [
- 158
+ 156
],
"navigationMenuItem": [
- 158,
+ 156,
{
"id": [
3,
@@ -5990,10 +5944,10 @@ export default {
}
],
"enterpriseSubscriptionStatus": [
- 127
+ 125
],
"getViewFilterGroups": [
- 60,
+ 58,
{
"viewId": [
1
@@ -6001,7 +5955,7 @@ export default {
}
],
"getViewFilterGroup": [
- 60,
+ 58,
{
"id": [
1,
@@ -6010,7 +5964,7 @@ export default {
}
],
"getViewFilters": [
- 62,
+ 60,
{
"viewId": [
1
@@ -6018,7 +5972,7 @@ export default {
}
],
"getViewFilter": [
- 62,
+ 60,
{
"id": [
1,
@@ -6027,19 +5981,19 @@ export default {
}
],
"getViews": [
- 68,
+ 66,
{
"objectMetadataId": [
1
],
"viewTypes": [
- 69,
+ 67,
"[ViewType!]"
]
}
],
"getView": [
- 68,
+ 66,
{
"id": [
1,
@@ -6048,7 +6002,7 @@ export default {
}
],
"getViewSorts": [
- 65,
+ 63,
{
"viewId": [
1
@@ -6056,7 +6010,7 @@ export default {
}
],
"getViewSort": [
- 65,
+ 63,
{
"id": [
1,
@@ -6065,7 +6019,7 @@ export default {
}
],
"getViewFields": [
- 58,
+ 56,
{
"viewId": [
1,
@@ -6074,7 +6028,7 @@ export default {
}
],
"getViewField": [
- 58,
+ 56,
{
"id": [
1,
@@ -6083,7 +6037,7 @@ export default {
}
],
"getViewFieldGroups": [
- 67,
+ 65,
{
"viewId": [
1,
@@ -6092,7 +6046,7 @@ export default {
}
],
"getViewFieldGroup": [
- 67,
+ 65,
{
"id": [
1,
@@ -6107,16 +6061,16 @@ export default {
2,
{
"input": [
- 337,
+ 335,
"GetApiKeyInput!"
]
}
],
"getInviteSuggestions": [
- 153
+ 151
],
"applicationConnectionProviders": [
- 125,
+ 123,
{
"applicationId": [
3,
@@ -6125,7 +6079,7 @@ export default {
}
],
"billingPortalSession": [
- 151,
+ 149,
{
"returnUrlPath": [
1
@@ -6136,19 +6090,19 @@ export default {
}
],
"listPlans": [
- 149
+ 147
],
"getResourceCreditUsage": [
- 148
+ 146
],
"findWorkspaceInvitations": [
- 155
+ 153
],
"getApprovedAccessDomains": [
- 128
+ 126
],
"getPageLayoutTabs": [
- 121,
+ 119,
{
"pageLayoutId": [
1,
@@ -6157,7 +6111,7 @@ export default {
}
],
"getPageLayoutTab": [
- 121,
+ 119,
{
"id": [
1,
@@ -6166,18 +6120,18 @@ export default {
}
],
"getPageLayouts": [
- 122,
+ 120,
{
"objectMetadataId": [
1
],
"pageLayoutType": [
- 123
+ 121
]
}
],
"getPageLayout": [
- 122,
+ 120,
{
"id": [
1,
@@ -6186,7 +6140,7 @@ export default {
}
],
"getPageLayoutWidgets": [
- 83,
+ 81,
{
"pageLayoutTabId": [
1,
@@ -6195,7 +6149,7 @@ export default {
}
],
"getPageLayoutWidget": [
- 83,
+ 81,
{
"id": [
1,
@@ -6210,16 +6164,16 @@ export default {
25,
{
"input": [
- 338,
+ 336,
"AgentIdInput!"
]
}
],
"objectRecordCounts": [
- 209
+ 207
],
"object": [
- 54,
+ 52,
{
"id": [
3,
@@ -6228,20 +6182,20 @@ export default {
}
],
"objects": [
- 211,
+ 209,
{
"paging": [
- 48,
+ 47,
"CursorPaging!"
],
"filter": [
- 50,
+ 49,
"ObjectFilter!"
]
}
],
"index": [
- 46,
+ 45,
{
"id": [
3,
@@ -6250,14 +6204,14 @@ export default {
}
],
"indexMetadatas": [
- 206,
+ 204,
{
"paging": [
- 48,
+ 47,
"CursorPaging!"
],
"filter": [
- 56,
+ 54,
"IndexFilter!"
]
}
@@ -6266,7 +6220,7 @@ export default {
41,
{
"input": [
- 339,
+ 337,
"LogicFunctionIdInput!"
]
}
@@ -6278,7 +6232,7 @@ export default {
15,
{
"input": [
- 339,
+ 337,
"LogicFunctionIdInput!"
]
}
@@ -6287,7 +6241,7 @@ export default {
1,
{
"input": [
- 339,
+ 337,
"LogicFunctionIdInput!"
]
}
@@ -6317,10 +6271,10 @@ export default {
}
],
"currentWorkspace": [
- 74
+ 72
],
"getPublicWorkspaceDataByDomain": [
- 181,
+ 179,
{
"origin": [
1
@@ -6328,7 +6282,7 @@ export default {
}
],
"getPublicWorkspaceDataById": [
- 182,
+ 180,
{
"id": [
3,
@@ -6337,7 +6291,7 @@ export default {
}
],
"field": [
- 44,
+ 43,
{
"id": [
3,
@@ -6346,20 +6300,20 @@ export default {
}
],
"fields": [
- 215,
+ 213,
{
"paging": [
- 48,
+ 47,
"CursorPaging!"
],
"filter": [
- 55,
+ 53,
"FieldFilter!"
]
}
],
"getViewGroups": [
- 64,
+ 62,
{
"viewId": [
1
@@ -6367,7 +6321,7 @@ export default {
}
],
"getViewGroup": [
- 64,
+ 62,
{
"id": [
1,
@@ -6376,10 +6330,10 @@ export default {
}
],
"findManyApplications": [
- 57
+ 55
],
"findOneApplication": [
- 57,
+ 55,
{
"id": [
3
@@ -6393,7 +6347,7 @@ export default {
29
],
"findApplicationRegistrationByClientId": [
- 199,
+ 197,
{
"clientId": [
1,
@@ -6423,7 +6377,7 @@ export default {
}
],
"findApplicationRegistrationStats": [
- 174,
+ 172,
{
"id": [
1,
@@ -6432,7 +6386,7 @@ export default {
}
],
"findApplicationRegistrationVariables": [
- 172,
+ 170,
{
"applicationRegistrationId": [
1,
@@ -6450,22 +6404,22 @@ export default {
}
],
"previewMessageCampaignAudience": [
- 281,
+ 279,
{
"input": [
- 340,
+ 338,
"PreviewMessageCampaignAudienceInput!"
]
}
],
"unsubscribeTopics": [
- 285
+ 283
],
"unsubscribePagePreviewUrl": [
1
],
"myMessageChannels": [
- 272,
+ 270,
{
"connectedAccountId": [
3
@@ -6473,13 +6427,13 @@ export default {
}
],
"getEmailingDomains": [
- 270
+ 268
],
"myConnectedAccounts": [
- 237
+ 235
],
"getToolIndex": [
- 295
+ 293
],
"getToolInputSchema": [
15,
@@ -6491,10 +6445,10 @@ export default {
}
],
"webhooks": [
- 294
+ 292
],
"webhook": [
- 294,
+ 292,
{
"id": [
3,
@@ -6503,7 +6457,7 @@ export default {
}
],
"myMessageFolders": [
- 329,
+ 327,
{
"messageChannelId": [
3
@@ -6511,7 +6465,7 @@ export default {
}
],
"myCalendarChannels": [
- 324,
+ 322,
{
"connectedAccountId": [
3
@@ -6519,33 +6473,33 @@ export default {
}
],
"minimalMetadata": [
- 335
+ 333
],
"appConnections": [
- 216,
+ 214,
{
"filter": [
- 341
+ 339
]
}
],
"appConnection": [
- 216,
+ 214,
{
"id": [
- 217,
+ 215,
"ID!"
]
}
],
"findWorkspaceAiStats": [
- 323
+ 321
],
"chatThreads": [
- 315
+ 313
],
"chatThread": [
- 315,
+ 313,
{
"id": [
3,
@@ -6554,7 +6508,7 @@ export default {
}
],
"chatMessages": [
- 314,
+ 312,
{
"threadId": [
3,
@@ -6563,7 +6517,7 @@ export default {
}
],
"chatStreamCatchupChunks": [
- 318,
+ 316,
{
"threadId": [
3,
@@ -6572,13 +6526,13 @@ export default {
}
],
"getAiSystemPromptPreview": [
- 317
+ 315
],
"skills": [
- 313
+ 311
],
"skill": [
- 313,
+ 311,
{
"id": [
3,
@@ -6587,7 +6541,7 @@ export default {
}
],
"agentTurns": [
- 322,
+ 320,
{
"agentId": [
3,
@@ -6596,7 +6550,7 @@ export default {
}
],
"checkUserExists": [
- 257,
+ 255,
{
"email": [
1,
@@ -6608,7 +6562,7 @@ export default {
}
],
"checkWorkspaceInviteHashIsValid": [
- 258,
+ 256,
{
"inviteHash": [
1,
@@ -6617,7 +6571,7 @@ export default {
}
],
"findWorkspaceFromInviteHash": [
- 74,
+ 72,
{
"inviteHash": [
1,
@@ -6626,7 +6580,7 @@ export default {
}
],
"checkWorkspaceSubdomainAvailability": [
- 252,
+ 250,
{
"subdomain": [
1,
@@ -6635,10 +6589,10 @@ export default {
}
],
"getWorkspaceCreationDefaults": [
- 253
+ 251
],
"validatePasswordResetToken": [
- 250,
+ 248,
{
"passwordResetToken": [
1,
@@ -6647,49 +6601,49 @@ export default {
}
],
"currentUser": [
- 77
+ 75
],
"getSSOIdentityProviders": [
- 222
+ 220
],
"eventLogs": [
- 312,
+ 310,
{
"input": [
- 342,
+ 340,
"EventLogQueryInput!"
]
}
],
"pieChartData": [
- 306,
+ 304,
{
"input": [
- 346,
+ 344,
"PieChartDataInput!"
]
}
],
"lineChartData": [
- 304,
+ 302,
{
"input": [
- 347,
+ 345,
"LineChartDataInput!"
]
}
],
"barChartData": [
- 301,
+ 299,
{
"input": [
- 348,
+ 346,
"BarChartDataInput!"
]
}
],
"getConnectedImapSmtpCaldavAccount": [
- 292,
+ 290,
{
"id": [
3,
@@ -6698,7 +6652,7 @@ export default {
}
],
"getAutoCompleteAddress": [
- 287,
+ 285,
{
"address": [
1,
@@ -6717,7 +6671,7 @@ export default {
}
],
"getAddressDetails": [
- 289,
+ 287,
{
"placeId": [
1,
@@ -6730,21 +6684,21 @@ export default {
}
],
"getUsageAnalytics": [
- 262,
+ 260,
{
"input": [
- 349
+ 347
]
}
],
"findManyPublicDomains": [
- 268
+ 266
],
"findManyMarketplaceApps": [
- 266
+ 264
],
"findMarketplaceAppDetail": [
- 267,
+ 265,
{
"universalIdentifier": [
1,
@@ -6774,7 +6728,7 @@ export default {
},
"LogicFunctionIdInput": {
"id": [
- 217
+ 215
],
"__typename": [
1
@@ -6807,10 +6761,10 @@ export default {
},
"EventLogQueryInput": {
"table": [
- 343
+ 341
],
"filters": [
- 344
+ 342
],
"first": [
21
@@ -6831,7 +6785,7 @@ export default {
1
],
"dateRange": [
- 345
+ 343
],
"recordId": [
1
@@ -6898,7 +6852,7 @@ export default {
1
],
"operationTypes": [
- 350
+ 348
],
"__typename": [
1
@@ -6910,7 +6864,7 @@ export default {
6,
{
"input": [
- 352,
+ 350,
"AddQuerySubscriptionInput!"
]
}
@@ -6919,49 +6873,49 @@ export default {
6,
{
"input": [
- 353,
+ 351,
"RemoveQueryFromEventStreamInput!"
]
}
],
"createManyNavigationMenuItems": [
- 158,
+ 156,
{
"inputs": [
- 354,
+ 352,
"[CreateNavigationMenuItemInput!]!"
]
}
],
"createNavigationMenuItem": [
- 158,
+ 156,
{
"input": [
- 354,
+ 352,
"CreateNavigationMenuItemInput!"
]
}
],
"updateManyNavigationMenuItems": [
- 158,
+ 156,
{
"inputs": [
- 355,
+ 353,
"[UpdateOneNavigationMenuItemInput!]!"
]
}
],
"updateNavigationMenuItem": [
- 158,
+ 156,
{
"input": [
- 355,
+ 353,
"UpdateOneNavigationMenuItemInput!"
]
}
],
"deleteManyNavigationMenuItems": [
- 158,
+ 156,
{
"ids": [
3,
@@ -6970,7 +6924,7 @@ export default {
}
],
"deleteNavigationMenuItem": [
- 158,
+ 156,
{
"id": [
3,
@@ -6979,10 +6933,10 @@ export default {
}
],
"uploadEmailAttachmentFile": [
- 129,
+ 127,
{
"file": [
- 357,
+ 355,
"Upload!"
]
}
@@ -6991,7 +6945,7 @@ export default {
6
],
"setEnterpriseKey": [
- 126,
+ 124,
{
"enterpriseKey": [
1,
@@ -7000,46 +6954,46 @@ export default {
}
],
"uploadAiChatFile": [
- 129,
+ 127,
{
"file": [
- 357,
+ 355,
"Upload!"
]
}
],
"uploadWorkflowFile": [
- 129,
+ 127,
{
"file": [
- 357,
+ 355,
"Upload!"
]
}
],
"uploadWorkspaceLogo": [
- 129,
+ 127,
{
"file": [
- 357,
+ 355,
"Upload!"
]
}
],
"uploadWorkspaceMemberProfilePicture": [
- 129,
+ 127,
{
"file": [
- 357,
+ 355,
"Upload!"
]
}
],
"uploadFilesFieldFile": [
- 129,
+ 127,
{
"file": [
- 357,
+ 355,
"Upload!"
],
"fieldMetadataId": [
@@ -7049,10 +7003,10 @@ export default {
}
],
"uploadFilesFieldFileByUniversalIdentifier": [
- 129,
+ 127,
{
"file": [
- 357,
+ 355,
"Upload!"
],
"fieldMetadataUniversalIdentifier": [
@@ -7062,23 +7016,23 @@ export default {
}
],
"createViewFilterGroup": [
- 60,
+ 58,
{
"input": [
- 358,
+ 356,
"CreateViewFilterGroupInput!"
]
}
],
"updateViewFilterGroup": [
- 60,
+ 58,
{
"id": [
1,
"String!"
],
"input": [
- 359,
+ 357,
"UpdateViewFilterGroupInput!"
]
}
@@ -7102,59 +7056,59 @@ export default {
}
],
"createViewFilter": [
- 62,
+ 60,
{
"input": [
- 360,
+ 358,
"CreateViewFilterInput!"
]
}
],
"updateViewFilter": [
- 62,
+ 60,
{
"input": [
- 361,
+ 359,
"UpdateViewFilterInput!"
]
}
],
"deleteViewFilter": [
- 62,
+ 60,
{
"input": [
- 363,
+ 361,
"DeleteViewFilterInput!"
]
}
],
"destroyViewFilter": [
- 62,
+ 60,
{
"input": [
- 364,
+ 362,
"DestroyViewFilterInput!"
]
}
],
"createView": [
- 68,
+ 66,
{
"input": [
- 365,
+ 363,
"CreateViewInput!"
]
}
],
"updateView": [
- 68,
+ 66,
{
"id": [
1,
"String!"
],
"input": [
- 366,
+ 364,
"UpdateViewInput!"
]
}
@@ -7178,28 +7132,28 @@ export default {
}
],
"upsertViewWidget": [
- 68,
+ 66,
{
"input": [
- 367,
+ 365,
"UpsertViewWidgetInput!"
]
}
],
"createViewSort": [
- 65,
+ 63,
{
"input": [
- 372,
+ 370,
"CreateViewSortInput!"
]
}
],
"updateViewSort": [
- 65,
+ 63,
{
"input": [
- 373,
+ 371,
"UpdateViewSortInput!"
]
}
@@ -7208,7 +7162,7 @@ export default {
6,
{
"input": [
- 375,
+ 373,
"DeleteViewSortInput!"
]
}
@@ -7217,106 +7171,106 @@ export default {
6,
{
"input": [
- 376,
+ 374,
"DestroyViewSortInput!"
]
}
],
"updateViewField": [
- 58,
+ 56,
{
"input": [
- 377,
+ 375,
"UpdateViewFieldInput!"
]
}
],
"createViewField": [
- 58,
+ 56,
{
"input": [
- 379,
+ 377,
"CreateViewFieldInput!"
]
}
],
"createManyViewFields": [
- 58,
+ 56,
{
"inputs": [
- 379,
+ 377,
"[CreateViewFieldInput!]!"
]
}
],
"deleteViewField": [
- 58,
+ 56,
{
"input": [
- 380,
+ 378,
"DeleteViewFieldInput!"
]
}
],
"destroyViewField": [
- 58,
+ 56,
{
"input": [
- 381,
+ 379,
"DestroyViewFieldInput!"
]
}
],
"updateViewFieldGroup": [
- 67,
+ 65,
{
"input": [
- 382,
+ 380,
"UpdateViewFieldGroupInput!"
]
}
],
"createViewFieldGroup": [
- 67,
+ 65,
{
"input": [
- 384,
+ 382,
"CreateViewFieldGroupInput!"
]
}
],
"createManyViewFieldGroups": [
- 67,
+ 65,
{
"inputs": [
- 384,
+ 382,
"[CreateViewFieldGroupInput!]!"
]
}
],
"deleteViewFieldGroup": [
- 67,
+ 65,
{
"input": [
- 385,
+ 383,
"DeleteViewFieldGroupInput!"
]
}
],
"destroyViewFieldGroup": [
- 67,
+ 65,
{
"input": [
- 386,
+ 384,
"DestroyViewFieldGroupInput!"
]
}
],
"upsertFieldsWidget": [
- 68,
+ 66,
{
"input": [
- 387,
+ 385,
"UpsertFieldsWidgetInput!"
]
}
@@ -7325,7 +7279,7 @@ export default {
2,
{
"input": [
- 390,
+ 388,
"CreateApiKeyInput!"
]
}
@@ -7334,7 +7288,7 @@ export default {
2,
{
"input": [
- 391,
+ 389,
"UpdateApiKeyInput!"
]
}
@@ -7343,7 +7297,7 @@ export default {
2,
{
"input": [
- 392,
+ 390,
"RevokeApiKeyInput!"
]
}
@@ -7362,13 +7316,13 @@ export default {
}
],
"skipSyncEmailOnboardingStep": [
- 154
+ 152
],
"skipBookOnboardingStep": [
- 154
+ 152
],
"triggerInstallAppsOnboardingStep": [
- 154,
+ 152,
{
"universalIdentifiers": [
1,
@@ -7394,14 +7348,14 @@ export default {
}
],
"checkoutSession": [
- 151,
+ 149,
{
"recurringInterval": [
- 137,
+ 135,
"SubscriptionInterval!"
],
"plan": [
- 133,
+ 131,
"BillingPlanKey!"
],
"requirePaymentMethod": [
@@ -7414,14 +7368,14 @@ export default {
}
],
"createSubscriptionPaymentIntent": [
- 150,
+ 148,
{
"recurringInterval": [
- 137,
+ 135,
"SubscriptionInterval!"
],
"plan": [
- 133,
+ 131,
"BillingPlanKey!"
],
"requirePaymentMethod": [
@@ -7438,22 +7392,22 @@ export default {
}
],
"createBillingPaymentMethodSetupIntent": [
- 150
+ 148
],
"switchSubscriptionInterval": [
- 152
+ 150
],
"switchBillingPlan": [
- 152
+ 150
],
"cancelSwitchBillingPlan": [
- 152
+ 150
],
"cancelSwitchBillingInterval": [
- 152
+ 150
],
"setResourceCreditSubscriptionPrice": [
- 152,
+ 150,
{
"priceId": [
1,
@@ -7462,10 +7416,10 @@ export default {
}
],
"endSubscriptionTrialPeriod": [
- 147
+ 145
],
"cancelSwitchResourceCreditPrice": [
- 152
+ 150
],
"deleteWorkspaceInvitation": [
1,
@@ -7477,7 +7431,7 @@ export default {
}
],
"resendWorkspaceInvitation": [
- 156,
+ 154,
{
"appTokenId": [
1,
@@ -7486,7 +7440,7 @@ export default {
}
],
"sendInvitations": [
- 156,
+ 154,
{
"emails": [
1,
@@ -7498,10 +7452,10 @@ export default {
}
],
"createApprovedAccessDomain": [
- 128,
+ 126,
{
"input": [
- 393,
+ 391,
"CreateApprovedAccessDomainInput!"
]
}
@@ -7510,38 +7464,38 @@ export default {
6,
{
"input": [
- 394,
+ 392,
"DeleteApprovedAccessDomainInput!"
]
}
],
"validateApprovedAccessDomain": [
- 128,
+ 126,
{
"input": [
- 395,
+ 393,
"ValidateApprovedAccessDomainInput!"
]
}
],
"createPageLayoutTab": [
- 121,
+ 119,
{
"input": [
- 396,
+ 394,
"CreatePageLayoutTabInput!"
]
}
],
"updatePageLayoutTab": [
- 121,
+ 119,
{
"id": [
1,
"String!"
],
"input": [
- 397,
+ 395,
"UpdatePageLayoutTabInput!"
]
}
@@ -7556,23 +7510,23 @@ export default {
}
],
"createPageLayout": [
- 122,
+ 120,
{
"input": [
- 398,
+ 396,
"CreatePageLayoutInput!"
]
}
],
"updatePageLayout": [
- 122,
+ 120,
{
"id": [
1,
"String!"
],
"input": [
- 399,
+ 397,
"UpdatePageLayoutInput!"
]
}
@@ -7587,20 +7541,20 @@ export default {
}
],
"updatePageLayoutWithTabsAndWidgets": [
- 122,
+ 120,
{
"id": [
1,
"String!"
],
"input": [
- 400,
+ 398,
"UpdatePageLayoutWithTabsInput!"
]
}
],
"resetPageLayoutToDefault": [
- 122,
+ 120,
{
"id": [
1,
@@ -7609,7 +7563,7 @@ export default {
}
],
"resetPageLayoutWidgetToDefault": [
- 83,
+ 81,
{
"id": [
1,
@@ -7618,7 +7572,7 @@ export default {
}
],
"resetPageLayoutTabToDefault": [
- 121,
+ 119,
{
"id": [
1,
@@ -7627,23 +7581,23 @@ export default {
}
],
"createPageLayoutWidget": [
- 83,
+ 81,
{
"input": [
- 404,
+ 402,
"CreatePageLayoutWidgetInput!"
]
}
],
"updatePageLayoutWidget": [
- 83,
+ 81,
{
"id": [
1,
"String!"
],
"input": [
- 405,
+ 403,
"UpdatePageLayoutWidgetInput!"
]
}
@@ -7661,7 +7615,7 @@ export default {
25,
{
"input": [
- 406,
+ 404,
"CreateAgentInput!"
]
}
@@ -7670,7 +7624,7 @@ export default {
25,
{
"input": [
- 407,
+ 405,
"UpdateAgentInput!"
]
}
@@ -7679,52 +7633,52 @@ export default {
25,
{
"input": [
- 338,
+ 336,
"AgentIdInput!"
]
}
],
"createOneObject": [
- 54,
+ 52,
{
"input": [
- 408,
+ 406,
"CreateOneObjectInput!"
]
}
],
"deleteOneObject": [
- 54,
+ 52,
{
"input": [
- 410,
+ 408,
"DeleteOneObjectInput!"
]
}
],
"updateOneObject": [
- 54,
+ 52,
{
"input": [
- 411,
+ 409,
"UpdateOneObjectInput!"
]
}
],
"createOneIndex": [
- 46,
+ 45,
{
"input": [
- 413,
+ 411,
"CreateOneIndexInput!"
]
}
],
"deleteOneIndex": [
- 46,
+ 45,
{
"input": [
- 416,
+ 414,
"DeleteOneIndexInput!"
]
}
@@ -7733,7 +7687,7 @@ export default {
41,
{
"input": [
- 339,
+ 337,
"LogicFunctionIdInput!"
]
}
@@ -7742,16 +7696,16 @@ export default {
41,
{
"input": [
- 417,
+ 415,
"CreateLogicFunctionFromSourceInput!"
]
}
],
"executeOneLogicFunction": [
- 167,
+ 165,
{
"input": [
- 418,
+ 416,
"ExecuteOneLogicFunctionInput!"
]
}
@@ -7760,7 +7714,7 @@ export default {
6,
{
"input": [
- 419,
+ 417,
"UpdateLogicFunctionFromSourceInput!"
]
}
@@ -7769,7 +7723,7 @@ export default {
35,
{
"input": [
- 421,
+ 419,
"CreateCommandMenuItemInput!"
]
}
@@ -7778,7 +7732,7 @@ export default {
35,
{
"input": [
- 422,
+ 420,
"UpdateCommandMenuItemInput!"
]
}
@@ -7805,7 +7759,7 @@ export default {
34,
{
"input": [
- 423,
+ 421,
"CreateFrontComponentInput!"
]
}
@@ -7814,7 +7768,7 @@ export default {
34,
{
"input": [
- 424,
+ 422,
"UpdateFrontComponentInput!"
]
}
@@ -7829,106 +7783,106 @@ export default {
}
],
"activateWorkspace": [
- 74,
+ 72,
{
"data": [
- 426,
+ 424,
"ActivateWorkspaceInput!"
]
}
],
"updateWorkspace": [
- 74,
+ 72,
{
"data": [
- 427,
+ 425,
"UpdateWorkspaceInput!"
]
}
],
"deleteCurrentWorkspace": [
- 74
+ 72
],
"checkCustomDomainValidRecords": [
- 231
+ 229
],
"createOneField": [
- 44,
+ 43,
{
"input": [
- 428,
+ 426,
"CreateOneFieldMetadataInput!"
]
}
],
"updateOneField": [
- 44,
+ 43,
{
"input": [
- 430,
+ 428,
"UpdateOneFieldMetadataInput!"
]
}
],
"deleteOneField": [
- 44,
+ 43,
{
"input": [
- 432,
+ 430,
"DeleteOneFieldInput!"
]
}
],
"createViewGroup": [
- 64,
+ 62,
{
"input": [
- 433,
+ 431,
"CreateViewGroupInput!"
]
}
],
"createManyViewGroups": [
- 64,
+ 62,
{
"inputs": [
- 433,
+ 431,
"[CreateViewGroupInput!]!"
]
}
],
"updateViewGroup": [
- 64,
+ 62,
{
"input": [
- 434,
+ 432,
"UpdateViewGroupInput!"
]
}
],
"updateManyViewGroups": [
- 64,
+ 62,
{
"inputs": [
- 434,
+ 432,
"[UpdateViewGroupInput!]!"
]
}
],
"deleteViewGroup": [
- 64,
+ 62,
{
"input": [
- 436,
+ 434,
"DeleteViewGroupInput!"
]
}
],
"destroyViewGroup": [
- 64,
+ 62,
{
"input": [
- 437,
+ 435,
"DestroyViewGroupInput!"
]
}
@@ -7937,7 +7891,7 @@ export default {
6,
{
"workspaceMigration": [
- 438,
+ 436,
"WorkspaceMigrationInput!"
]
}
@@ -7968,7 +7922,7 @@ export default {
29,
{
"createRoleInput": [
- 441,
+ 439,
"CreateRoleInput!"
]
}
@@ -7977,7 +7931,7 @@ export default {
29,
{
"updateRoleInput": [
- 442,
+ 440,
"UpdateRoleInput!"
]
}
@@ -7995,7 +7949,7 @@ export default {
16,
{
"upsertObjectPermissionsInput": [
- 444,
+ 442,
"UpsertObjectPermissionsInput!"
]
}
@@ -8004,7 +7958,7 @@ export default {
27,
{
"upsertPermissionFlagsInput": [
- 446,
+ 444,
"UpsertPermissionFlagsInput!"
]
}
@@ -8013,16 +7967,16 @@ export default {
26,
{
"upsertFieldPermissionsInput": [
- 447,
+ 445,
"UpsertFieldPermissionsInput!"
]
}
],
"upsertRowLevelPermissionPredicates": [
- 232,
+ 230,
{
"input": [
- 449,
+ 447,
"UpsertRowLevelPermissionPredicatesInput!"
]
}
@@ -8050,10 +8004,10 @@ export default {
}
],
"createApplicationRegistration": [
- 198,
+ 196,
{
"input": [
- 452,
+ 450,
"CreateApplicationRegistrationInput!"
]
}
@@ -8062,7 +8016,7 @@ export default {
7,
{
"input": [
- 453,
+ 451,
"UpdateApplicationRegistrationInput!"
]
}
@@ -8077,7 +8031,7 @@ export default {
}
],
"rotateApplicationRegistrationClientSecret": [
- 200,
+ 198,
{
"id": [
1,
@@ -8089,7 +8043,7 @@ export default {
5,
{
"input": [
- 455,
+ 453,
"CreateApplicationRegistrationVariableInput!"
]
}
@@ -8098,7 +8052,7 @@ export default {
5,
{
"input": [
- 456,
+ 454,
"UpdateApplicationRegistrationVariableInput!"
]
}
@@ -8116,7 +8070,7 @@ export default {
7,
{
"file": [
- 357,
+ 355,
"Upload!"
],
"universalIdentifier": [
@@ -8138,37 +8092,37 @@ export default {
}
],
"sendEmailViaEmailingDomain": [
- 282,
+ 280,
{
"input": [
- 458,
+ 456,
"SendEmailViaDomainInput!"
]
}
],
"sendMessageCampaign": [
- 284,
+ 282,
{
"input": [
- 459,
+ 457,
"SendMessageCampaignInput!"
]
}
],
"createUnsubscribeTopic": [
- 285,
+ 283,
{
"input": [
- 460,
+ 458,
"CreateUnsubscribeTopicInput!"
]
}
],
"updateUnsubscribeTopic": [
- 285,
+ 283,
{
"input": [
- 461,
+ 459,
"UpdateUnsubscribeTopicInput!"
]
}
@@ -8183,25 +8137,25 @@ export default {
}
],
"updateMessageChannel": [
- 272,
+ 270,
{
"input": [
- 462,
+ 460,
"UpdateMessageChannelInput!"
]
}
],
"createEmailGroupChannel": [
- 280,
+ 278,
{
"input": [
- 464,
+ 462,
"CreateEmailGroupChannelInput!"
]
}
],
"deleteEmailGroupChannel": [
- 272,
+ 270,
{
"id": [
3,
@@ -8210,10 +8164,10 @@ export default {
}
],
"createEmailingDomain": [
- 270,
+ 268,
{
"input": [
- 465,
+ 463,
"CreateEmailingDomainInput!"
]
}
@@ -8228,7 +8182,7 @@ export default {
}
],
"verifyEmailingDomain": [
- 270,
+ 268,
{
"id": [
1,
@@ -8237,7 +8191,7 @@ export default {
}
],
"deleteConnectedAccount": [
- 237,
+ 235,
{
"id": [
3,
@@ -8246,34 +8200,34 @@ export default {
}
],
"runAgent": [
- 297,
+ 295,
{
"input": [
- 466,
+ 464,
"RunAgentInput!"
]
}
],
"createWebhook": [
- 294,
+ 292,
{
"input": [
- 467,
+ 465,
"CreateWebhookInput!"
]
}
],
"updateWebhook": [
- 294,
+ 292,
{
"input": [
- 468,
+ 466,
"UpdateWebhookInput!"
]
}
],
"deleteWebhook": [
- 294,
+ 292,
{
"id": [
3,
@@ -8282,37 +8236,37 @@ export default {
}
],
"updateMessageFolder": [
- 329,
+ 327,
{
"input": [
- 470,
+ 468,
"UpdateMessageFolderInput!"
]
}
],
"updateMessageFolders": [
- 329,
+ 327,
{
"input": [
- 472,
+ 470,
"UpdateMessageFoldersInput!"
]
}
],
"updateCalendarChannel": [
- 324,
+ 322,
{
"input": [
- 473,
+ 471,
"UpdateCalendarChannelInput!"
]
}
],
"createChatThread": [
- 315
+ 313
],
"sendChatMessage": [
- 319,
+ 317,
{
"threadId": [
3,
@@ -8333,7 +8287,7 @@ export default {
1
],
"fileAttachments": [
- 475,
+ 473,
"[FileAttachmentInput!]"
]
}
@@ -8348,7 +8302,7 @@ export default {
}
],
"renameChatThread": [
- 315,
+ 313,
{
"id": [
3,
@@ -8361,7 +8315,7 @@ export default {
}
],
"archiveChatThread": [
- 315,
+ 313,
{
"id": [
3,
@@ -8370,7 +8324,7 @@ export default {
}
],
"unarchiveChatThread": [
- 315,
+ 313,
{
"id": [
3,
@@ -8397,25 +8351,25 @@ export default {
}
],
"createSkill": [
- 313,
+ 311,
{
"input": [
- 476,
+ 474,
"CreateSkillInput!"
]
}
],
"updateSkill": [
- 313,
+ 311,
{
"input": [
- 477,
+ 475,
"UpdateSkillInput!"
]
}
],
"deleteSkill": [
- 313,
+ 311,
{
"id": [
3,
@@ -8424,7 +8378,7 @@ export default {
}
],
"activateSkill": [
- 313,
+ 311,
{
"id": [
3,
@@ -8433,7 +8387,7 @@ export default {
}
],
"deactivateSkill": [
- 313,
+ 311,
{
"id": [
3,
@@ -8442,7 +8396,7 @@ export default {
}
],
"evaluateAgentTurn": [
- 321,
+ 319,
{
"turnId": [
3,
@@ -8451,7 +8405,7 @@ export default {
}
],
"runEvaluationInput": [
- 322,
+ 320,
{
"agentId": [
3,
@@ -8464,16 +8418,16 @@ export default {
}
],
"getAuthorizationUrlForSSO": [
- 245,
+ 243,
{
"input": [
- 478,
+ 476,
"GetAuthorizationUrlForSSOInput!"
]
}
],
"getLoginTokenFromCredentials": [
- 256,
+ 254,
{
"email": [
1,
@@ -8499,7 +8453,7 @@ export default {
}
],
"signIn": [
- 243,
+ 241,
{
"email": [
1,
@@ -8521,7 +8475,7 @@ export default {
}
],
"verifyEmailAndGetLoginToken": [
- 251,
+ 249,
{
"emailVerificationToken": [
1,
@@ -8541,7 +8495,7 @@ export default {
}
],
"verifyEmailAndGetWorkspaceAgnosticToken": [
- 243,
+ 241,
{
"emailVerificationToken": [
1,
@@ -8557,7 +8511,7 @@ export default {
}
],
"getAuthTokensFromOTP": [
- 255,
+ 253,
{
"otp": [
1,
@@ -8577,7 +8531,7 @@ export default {
}
],
"signUp": [
- 243,
+ 241,
{
"email": [
1,
@@ -8599,7 +8553,7 @@ export default {
}
],
"signUpInWorkspace": [
- 248,
+ 246,
{
"email": [
1,
@@ -8630,31 +8584,31 @@ export default {
}
],
"signUpInNewWorkspace": [
- 248,
+ 246,
{
"input": [
- 479
+ 477
]
}
],
"uploadNewWorkspaceLogo": [
- 129,
+ 127,
{
"workspaceId": [
1,
"String!"
],
"file": [
- 357,
+ 355,
"Upload!"
]
}
],
"generateTransientToken": [
- 249
+ 247
],
"getAuthTokensFromLoginToken": [
- 255,
+ 253,
{
"loginToken": [
1,
@@ -8667,7 +8621,7 @@ export default {
}
],
"authorizeApp": [
- 241,
+ 239,
{
"clientId": [
1,
@@ -8689,7 +8643,7 @@ export default {
}
],
"renewToken": [
- 255,
+ 253,
{
"appToken": [
1,
@@ -8698,7 +8652,7 @@ export default {
}
],
"generateApiKeyToken": [
- 254,
+ 252,
{
"apiKeyId": [
3,
@@ -8714,7 +8668,7 @@ export default {
32
],
"emailPasswordResetLink": [
- 244,
+ 242,
{
"email": [
1,
@@ -8726,7 +8680,7 @@ export default {
}
],
"updatePasswordViaResetToken": [
- 246,
+ 244,
{
"passwordResetToken": [
1,
@@ -8739,7 +8693,7 @@ export default {
}
],
"initiateOTPProvisioning": [
- 239,
+ 237,
{
"loginToken": [
1,
@@ -8752,10 +8706,10 @@ export default {
}
],
"initiateOTPProvisioningForAuthenticatedUser": [
- 239
+ 237
],
"deleteTwoFactorAuthenticationMethod": [
- 238,
+ 236,
{
"twoFactorAuthenticationMethodId": [
3,
@@ -8764,7 +8718,7 @@ export default {
}
],
"verifyTwoFactorAuthenticationMethodForAuthenticatedUser": [
- 240,
+ 238,
{
"otp": [
1,
@@ -8773,7 +8727,7 @@ export default {
}
],
"deleteUser": [
- 77
+ 75
],
"deleteUserFromWorkspace": [
17,
@@ -8788,7 +8742,7 @@ export default {
6,
{
"input": [
- 480,
+ 478,
"UpdateWorkspaceMemberSettingsInput!"
]
}
@@ -8806,7 +8760,7 @@ export default {
}
],
"resendEmailVerificationToken": [
- 218,
+ 216,
{
"email": [
1,
@@ -8819,43 +8773,43 @@ export default {
}
],
"createOIDCIdentityProvider": [
- 223,
+ 221,
{
"input": [
- 481,
+ 479,
"SetupOIDCSsoInput!"
]
}
],
"createSAMLIdentityProvider": [
- 223,
+ 221,
{
"input": [
- 482,
+ 480,
"SetupSAMLSsoInput!"
]
}
],
"deleteSSOIdentityProvider": [
- 219,
+ 217,
{
"input": [
- 483,
+ 481,
"DeleteSsoInput!"
]
}
],
"editSSOIdentityProvider": [
- 220,
+ 218,
{
"input": [
- 484,
+ 482,
"EditSsoInput!"
]
}
],
"createObjectEvent": [
- 309,
+ 307,
{
"event": [
1,
@@ -8875,10 +8829,10 @@ export default {
}
],
"trackAnalytics": [
- 309,
+ 307,
{
"type": [
- 485,
+ 483,
"AnalyticsType!"
],
"name": [
@@ -8893,7 +8847,7 @@ export default {
}
],
"duplicateDashboard": [
- 307,
+ 305,
{
"id": [
3,
@@ -8902,7 +8856,7 @@ export default {
}
],
"impersonate": [
- 259,
+ 257,
{
"userId": [
3,
@@ -8915,25 +8869,25 @@ export default {
}
],
"createCalendarEvent": [
- 299,
+ 297,
{
"input": [
- 486,
+ 484,
"CreateCalendarEventInput!"
]
}
],
"sendEmail": [
- 308,
+ 306,
{
"input": [
- 487,
+ 485,
"SendEmailInput!"
]
}
],
"startChannelSync": [
- 298,
+ 296,
{
"connectedAccountId": [
3,
@@ -8942,14 +8896,14 @@ export default {
}
],
"saveImapSmtpCaldavAccount": [
- 293,
+ 291,
{
"handle": [
1,
"String!"
],
"connectionParameters": [
- 489,
+ 487,
"EmailAccountConnectionParameters!"
],
"id": [
@@ -8958,16 +8912,16 @@ export default {
}
],
"updateLabPublicFeatureFlag": [
- 169,
+ 167,
{
"input": [
- 491,
+ 489,
"UpdateLabPublicFeatureFlagInput!"
]
}
],
"createPublicDomain": [
- 268,
+ 266,
{
"domain": [
1,
@@ -8989,7 +8943,7 @@ export default {
}
],
"checkPublicDomainValidRecords": [
- 231,
+ 229,
{
"domain": [
1,
@@ -8998,10 +8952,10 @@ export default {
}
],
"createOneAppToken": [
- 76,
+ 74,
{
"input": [
- 492,
+ 490,
"CreateOneAppTokenInput!"
]
}
@@ -9019,7 +8973,7 @@ export default {
}
],
"installApplication": [
- 57,
+ 55,
{
"universalIdentifier": [
1,
@@ -9034,7 +8988,7 @@ export default {
6
],
"createDevelopmentApplication": [
- 263,
+ 261,
{
"universalIdentifier": [
1,
@@ -9056,7 +9010,7 @@ export default {
}
],
"syncApplication": [
- 264,
+ 262,
{
"manifest": [
15,
@@ -9068,10 +9022,10 @@ export default {
}
],
"uploadApplicationFile": [
- 265,
+ 263,
{
"file": [
- 357,
+ 355,
"Upload!"
],
"applicationUniversalIdentifier": [
@@ -9079,7 +9033,7 @@ export default {
"String!"
],
"fileFolder": [
- 494,
+ 492,
"FileFolder!"
],
"filePath": [
@@ -9156,7 +9110,7 @@ export default {
3
],
"type": [
- 159
+ 157
],
"name": [
1
@@ -9188,7 +9142,7 @@ export default {
3
],
"update": [
- 356
+ 354
],
"__typename": [
1
@@ -9229,7 +9183,7 @@ export default {
3
],
"logicalOperator": [
- 61
+ 59
],
"positionInViewFilterGroup": [
11
@@ -9249,7 +9203,7 @@ export default {
3
],
"logicalOperator": [
- 61
+ 59
],
"positionInViewFilterGroup": [
11
@@ -9269,7 +9223,7 @@ export default {
3
],
"operand": [
- 63
+ 61
],
"value": [
15
@@ -9298,7 +9252,7 @@ export default {
3
],
"update": [
- 362
+ 360
],
"__typename": [
1
@@ -9309,7 +9263,7 @@ export default {
3
],
"operand": [
- 63
+ 61
],
"value": [
15
@@ -9357,10 +9311,10 @@ export default {
3
],
"type": [
- 69
+ 67
],
"key": [
- 70
+ 68
],
"icon": [
1
@@ -9378,10 +9332,10 @@ export default {
21
],
"openRecordIn": [
- 71
+ 69
],
"kanbanAggregateOperation": [
- 59
+ 57
],
"kanbanAggregateOperationFieldMetadataId": [
3
@@ -9390,7 +9344,7 @@ export default {
1
],
"calendarLayout": [
- 72
+ 70
],
"calendarFieldMetadataId": [
3
@@ -9399,7 +9353,7 @@ export default {
3
],
"visibility": [
- 73
+ 71
],
"__typename": [
1
@@ -9413,7 +9367,7 @@ export default {
1
],
"type": [
- 69
+ 67
],
"icon": [
1
@@ -9425,10 +9379,10 @@ export default {
6
],
"openRecordIn": [
- 71
+ 69
],
"kanbanAggregateOperation": [
- 59
+ 57
],
"kanbanAggregateOperationFieldMetadataId": [
3
@@ -9437,13 +9391,13 @@ export default {
1
],
"calendarLayout": [
- 72
+ 70
],
"calendarFieldMetadataId": [
3
],
"visibility": [
- 73
+ 71
],
"mainGroupByFieldMetadataId": [
3
@@ -9463,16 +9417,16 @@ export default {
3
],
"viewFields": [
- 368
+ 366
],
"viewFilters": [
- 369
+ 367
],
"viewFilterGroups": [
- 370
+ 368
],
"viewSorts": [
- 371
+ 369
],
"__typename": [
1
@@ -9506,7 +9460,7 @@ export default {
3
],
"operand": [
- 63
+ 61
],
"value": [
15
@@ -9535,7 +9489,7 @@ export default {
3
],
"logicalOperator": [
- 61
+ 59
],
"positionInViewFilterGroup": [
11
@@ -9552,7 +9506,7 @@ export default {
3
],
"direction": [
- 66
+ 64
],
"__typename": [
1
@@ -9566,7 +9520,7 @@ export default {
3
],
"direction": [
- 66
+ 64
],
"subFieldName": [
1
@@ -9583,7 +9537,7 @@ export default {
3
],
"update": [
- 374
+ 372
],
"__typename": [
1
@@ -9591,7 +9545,7 @@ export default {
},
"UpdateViewSortInputUpdates": {
"direction": [
- 66
+ 64
],
"subFieldName": [
1
@@ -9621,7 +9575,7 @@ export default {
3
],
"update": [
- 378
+ 376
],
"__typename": [
1
@@ -9638,7 +9592,7 @@ export default {
11
],
"aggregateOperation": [
- 59
+ 57
],
"viewFieldGroupId": [
3
@@ -9667,7 +9621,7 @@ export default {
11
],
"aggregateOperation": [
- 59
+ 57
],
"viewFieldGroupId": [
3
@@ -9697,7 +9651,7 @@ export default {
3
],
"update": [
- 383
+ 381
],
"__typename": [
1
@@ -9761,10 +9715,10 @@ export default {
3
],
"groups": [
- 388
+ 386
],
"fields": [
- 389
+ 387
],
"__typename": [
1
@@ -9784,7 +9738,7 @@ export default {
6
],
"fields": [
- 389
+ 387
],
"__typename": [
1
@@ -9890,7 +9844,7 @@ export default {
3
],
"layoutMode": [
- 87
+ 85
],
"__typename": [
1
@@ -9907,7 +9861,7 @@ export default {
1
],
"layoutMode": [
- 87
+ 85
],
"__typename": [
1
@@ -9918,7 +9872,7 @@ export default {
1
],
"type": [
- 123
+ 121
],
"objectMetadataId": [
3
@@ -9932,7 +9886,7 @@ export default {
1
],
"type": [
- 123
+ 121
],
"objectMetadataId": [
3
@@ -9946,13 +9900,13 @@ export default {
1
],
"type": [
- 123
+ 121
],
"objectMetadataId": [
3
],
"tabs": [
- 401
+ 399
],
"__typename": [
1
@@ -9972,10 +9926,10 @@ export default {
1
],
"layoutMode": [
- 87
+ 85
],
"widgets": [
- 402
+ 400
],
"__typename": [
1
@@ -9992,13 +9946,13 @@ export default {
1
],
"type": [
- 84
+ 82
],
"objectMetadataId": [
3
],
"gridPosition": [
- 403
+ 401
],
"position": [
15
@@ -10041,13 +9995,13 @@ export default {
1
],
"type": [
- 84
+ 82
],
"objectMetadataId": [
3
],
"gridPosition": [
- 403
+ 401
],
"position": [
15
@@ -10067,13 +10021,13 @@ export default {
1
],
"type": [
- 84
+ 82
],
"objectMetadataId": [
3
],
"gridPosition": [
- 403
+ 401
],
"position": [
15
@@ -10166,7 +10120,7 @@ export default {
},
"CreateOneObjectInput": {
"object": [
- 409
+ 407
],
"__typename": [
1
@@ -10226,7 +10180,7 @@ export default {
},
"UpdateOneObjectInput": {
"update": [
- 412
+ 410
],
"id": [
3
@@ -10281,7 +10235,7 @@ export default {
},
"CreateOneIndexInput": {
"index": [
- 414
+ 412
],
"__typename": [
1
@@ -10292,10 +10246,10 @@ export default {
3
],
"fields": [
- 415
+ 413
],
"indexType": [
- 47
+ 46
],
"__typename": [
1
@@ -10377,7 +10331,7 @@ export default {
3
],
"update": [
- 420
+ 418
],
"__typename": [
1
@@ -10537,7 +10491,7 @@ export default {
3
],
"update": [
- 425
+ 423
],
"__typename": [
1
@@ -10641,7 +10595,7 @@ export default {
},
"CreateOneFieldMetadataInput": {
"field": [
- 429
+ 427
],
"__typename": [
1
@@ -10649,7 +10603,7 @@ export default {
},
"CreateFieldInput": {
"type": [
- 45
+ 44
],
"name": [
1
@@ -10714,7 +10668,7 @@ export default {
3
],
"update": [
- 431
+ 429
],
"__typename": [
1
@@ -10809,7 +10763,7 @@ export default {
3
],
"update": [
- 435
+ 433
],
"__typename": [
1
@@ -10850,7 +10804,7 @@ export default {
},
"WorkspaceMigrationInput": {
"actions": [
- 439
+ 437
],
"__typename": [
1
@@ -10858,10 +10812,10 @@ export default {
},
"WorkspaceMigrationDeleteActionInput": {
"type": [
- 440
+ 438
],
"metadataName": [
- 332
+ 330
],
"universalIdentifier": [
1
@@ -10917,7 +10871,7 @@ export default {
},
"UpdateRoleInput": {
"update": [
- 443
+ 441
],
"id": [
3
@@ -10972,7 +10926,7 @@ export default {
3
],
"objectPermissions": [
- 445
+ 443
],
"__typename": [
1
@@ -11014,7 +10968,7 @@ export default {
3
],
"fieldPermissions": [
- 448
+ 446
],
"__typename": [
1
@@ -11045,10 +10999,10 @@ export default {
3
],
"predicates": [
- 450
+ 448
],
"predicateGroups": [
- 451
+ 449
],
"__typename": [
1
@@ -11128,7 +11082,7 @@ export default {
1
],
"update": [
- 454
+ 452
],
"__typename": [
1
@@ -11179,7 +11133,7 @@ export default {
1
],
"update": [
- 457
+ 455
],
"__typename": [
1
@@ -11259,7 +11213,7 @@ export default {
1
],
"visibility": [
- 286
+ 284
],
"__typename": [
1
@@ -11276,7 +11230,7 @@ export default {
1
],
"visibility": [
- 286
+ 284
],
"__typename": [
1
@@ -11287,7 +11241,7 @@ export default {
3
],
"update": [
- 463
+ 461
],
"__typename": [
1
@@ -11295,16 +11249,16 @@ export default {
},
"UpdateMessageChannelInputUpdates": {
"visibility": [
- 273
+ 271
],
"isContactAutoCreationEnabled": [
6
],
"contactAutoCreationPolicy": [
- 275
+ 273
],
"messageFolderImportPolicy": [
- 276
+ 274
],
"isSyncEnabled": [
6
@@ -11371,7 +11325,7 @@ export default {
3
],
"update": [
- 469
+ 467
],
"__typename": [
1
@@ -11399,7 +11353,7 @@ export default {
3
],
"update": [
- 471
+ 469
],
"__typename": [
1
@@ -11418,7 +11372,7 @@ export default {
3
],
"update": [
- 471
+ 469
],
"__typename": [
1
@@ -11429,7 +11383,7 @@ export default {
3
],
"update": [
- 474
+ 472
],
"__typename": [
1
@@ -11437,13 +11391,13 @@ export default {
},
"UpdateCalendarChannelInputUpdates": {
"visibility": [
- 327
+ 325
],
"isContactAutoCreationEnabled": [
6
],
"contactAutoCreationPolicy": [
- 328
+ 326
],
"isSyncEnabled": [
6
@@ -11598,7 +11552,7 @@ export default {
3
],
"status": [
- 178
+ 176
],
"__typename": [
1
@@ -11669,7 +11623,7 @@ export default {
1
],
"files": [
- 488
+ 486
],
"__typename": [
1
@@ -11688,13 +11642,13 @@ export default {
},
"EmailAccountConnectionParameters": {
"IMAP": [
- 490
+ 488
],
"SMTP": [
- 490
+ 488
],
"CALDAV": [
- 490
+ 488
],
"__typename": [
1
@@ -11714,7 +11668,7 @@ export default {
1
],
"connectionSecurity": [
- 235
+ 233
],
"__typename": [
1
@@ -11733,7 +11687,7 @@ export default {
},
"CreateOneAppTokenInput": {
"appToken": [
- 493
+ 491
],
"__typename": [
1
@@ -11750,7 +11704,7 @@ export default {
"FileFolder": {},
"Subscription": {
"onEventSubscription": [
- 166,
+ 164,
{
"eventStreamId": [
1,
@@ -11759,16 +11713,16 @@ export default {
}
],
"logicFunctionLogs": [
- 233,
+ 231,
{
"input": [
- 496,
+ 494,
"LogicFunctionLogsInput!"
]
}
],
"onAgentChatEvent": [
- 320,
+ 318,
{
"threadId": [
3,
@@ -11777,10 +11731,10 @@ export default {
}
],
"eventLogsLive": [
- 310,
+ 308,
{
"table": [
- 343,
+ 341,
"EventLogTable!"
]
}
diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts
index 23b6439eea3..b7f30c58a3a 100644
--- a/packages/twenty-front/src/generated-metadata/graphql.ts
+++ b/packages/twenty-front/src/generated-metadata/graphql.ts
@@ -1767,7 +1767,6 @@ export type Field = {
options?: Maybe<Scalars['JSON']['output']>;
relation?: Maybe<Relation>;
settings?: Maybe<Scalars['JSON']['output']>;
- standardOverrides?: Maybe<StandardOverrides>;
type: FieldMetadataType;
universalIdentifier: Scalars['String']['output'];
updatedAt: Scalars['DateTime']['output'];
@@ -3849,7 +3848,6 @@ export type Object = {
nameSingular: Scalars['String']['output'];
searchFieldMetadataList: Array<SearchField>;
shortcut?: Maybe<Scalars['String']['output']>;
- standardOverrides?: Maybe<ObjectStandardOverrides>;
universalIdentifier: Scalars['String']['output'];
updatedAt: Scalars['DateTime']['output'];
};
@@ -3979,16 +3977,6 @@ export enum ObjectRecordGroupByDateGranularity {
YEAR = 'YEAR'
}
-export type ObjectStandardOverrides = {
- __typename?: 'ObjectStandardOverrides';
- color?: Maybe<Scalars['String']['output']>;
- description?: Maybe<Scalars['String']['output']>;
- icon?: Maybe<Scalars['String']['output']>;
- labelPlural?: Maybe<Scalars['String']['output']>;
- labelSingular?: Maybe<Scalars['String']['output']>;
- translations?: Maybe<Scalars['JSON']['output']>;
-};
-
/** Onboarding status */
export enum OnboardingStatus {
APPS_INSTALLATION = 'APPS_INSTALLATION',
@@ -5100,14 +5088,6 @@ export type StandaloneRichTextConfiguration = {
configurationType: WidgetConfigurationType;
};
-export type StandardOverrides = {
- __typename?: 'StandardOverrides';
- description?: Maybe<Scalars['String']['output']>;
- icon?: Maybe<Scalars['String']['output']>;
- label?: Maybe<Scalars['String']['output']>;
- translations?: Maybe<Scalars['JSON']['output']>;
-};
-
export type SubdomainAvailabilityDto = {
__typename?: 'SubdomainAvailabilityDTO';
available: Scalars['Boolean']['output'];
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-10/2-10-workspace-command-1799000055000-sync-call-recording-standard-objects.command.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-10/2-10-workspace-command-1799000055000-sync-call-recording-standard-objects.command.ts
index 35004336c06..c9c6d5f15d2 100644
--- a/packages/twenty-server/src/database/commands/upgrade-version-command/2-10/2-10-workspace-command-1799000055000-sync-call-recording-standard-objects.command.ts
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-10/2-10-workspace-command-1799000055000-sync-call-recording-standard-objects.command.ts
@@ -127,7 +127,7 @@ const buildLegacyCalendarEventRecordingPreferenceFieldMetadata = ({
isUnique: false,
isUIEditable: true,
isLabelSyncedWithName: false,
- standardOverrides: null,
+ overrides: null,
defaultValue: "'AUTO'",
settings: null,
options: [
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-19/2-19-instance-command-fast-1820000100000-add-metadata-overrides-column.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-19/2-19-instance-command-fast-1820000100000-add-metadata-overrides-column.ts
new file mode 100644
index 00000000000..1fce709e83d
--- /dev/null
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-19/2-19-instance-command-fast-1820000100000-add-metadata-overrides-column.ts
@@ -0,0 +1,32 @@
+import { QueryRunner } from 'typeorm';
+
+import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decorators/registered-instance-command.decorator';
+import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
+
+const TABLES = ['objectMetadata', 'fieldMetadata'] as const;
+
+@RegisteredInstanceCommand('2.19.0', 1820000100000)
+export class AddMetadataOverridesColumnFastInstanceCommand
+ implements FastInstanceCommand
+{
+ public async up(queryRunner: QueryRunner): Promise<void> {
+ for (const table of TABLES) {
+ await queryRunner.query(
+ `ALTER TABLE "core"."${table}" ADD COLUMN IF NOT EXISTS "overrides" jsonb`,
+ );
+ }
+ }
+
+ public async down(queryRunner: QueryRunner): Promise<void> {
+ for (const table of TABLES) {
+ // Unconditional copy: a WHERE "overrides" IS NOT NULL guard would leave a
+ // stale value in standardOverrides and resurrect a cleared override.
+ await queryRunner.query(
+ `UPDATE "core"."${table}" SET "standardOverrides" = "overrides"`,
+ );
+ await queryRunner.query(
+ `ALTER TABLE "core"."${table}" DROP COLUMN IF EXISTS "overrides"`,
+ );
+ }
+ }
+}
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-19/2-19-instance-command-slow-1820000110000-backfill-metadata-overrides.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-19/2-19-instance-command-slow-1820000110000-backfill-metadata-overrides.ts
new file mode 100644
index 00000000000..b2e5c7bcc32
--- /dev/null
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-19/2-19-instance-command-slow-1820000110000-backfill-metadata-overrides.ts
@@ -0,0 +1,48 @@
+import { DataSource, QueryRunner } from 'typeorm';
+
+import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decorators/registered-instance-command.decorator';
+import { SlowInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/slow-instance-command.interface';
+
+const TABLES = ['objectMetadata', 'fieldMetadata'] as const;
+
+@RegisteredInstanceCommand('2.19.0', 1820000110000, { type: 'slow' })
+export class BackfillMetadataOverridesSlowInstanceCommand
+ implements SlowInstanceCommand
+{
+ async runDataMigration(dataSource: DataSource): Promise<void> {
+ for (const table of TABLES) {
+ const activeCountBefore = await this.getActiveCount(dataSource, table);
+
+ await dataSource.query(
+ `UPDATE "core"."${table}" SET "overrides" = "standardOverrides" WHERE "standardOverrides" IS NOT NULL AND "overrides" IS NULL`,
+ );
+
+ const activeCountAfter = await this.getActiveCount(dataSource, table);
+
+ if (activeCountBefore !== activeCountAfter) {
+ throw new Error(
+ `BackfillMetadataOverrides: "isActive" changed on "core"."${table}" (${activeCountBefore} -> ${activeCountAfter}), aborting.`,
+ );
+ }
+ }
+ }
+
+ public async up(_queryRunner: QueryRunner): Promise<void> {
+ return;
+ }
+
+ public async down(_queryRunner: QueryRunner): Promise<void> {
+ return;
+ }
+
+ private async getActiveCount(
+ dataSource: DataSource,
+ table: (typeof TABLES)[number],
+ ): Promise<number> {
+ const [{ count }] = await dataSource.query(
+ `SELECT count(*)::int AS count FROM "core"."${table}" WHERE "isActive" = true`,
+ );
+
+ return count;
+ }
+}
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-19/__tests__/add-metadata-overrides-column.instance-command.spec.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-19/__tests__/add-metadata-overrides-column.instance-command.spec.ts
new file mode 100644
index 00000000000..a03ab8abcca
--- /dev/null
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-19/__tests__/add-metadata-overrides-column.instance-command.spec.ts
@@ -0,0 +1,51 @@
+import { type QueryRunner } from 'typeorm';
+
+import { AddMetadataOverridesColumnFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-19/2-19-instance-command-fast-1820000100000-add-metadata-overrides-column';
+
+describe('AddMetadataOverridesColumnFastInstanceCommand', () => {
+ let command: AddMetadataOverridesColumnFastInstanceCommand;
+
+ beforeEach(() => {
+ command = new AddMetadataOverridesColumnFastInstanceCommand();
+ });
+
+ describe('up', () => {
+ it('adds the overrides column to both tables without mutating data or dropping standardOverrides', async () => {
+ const query = jest.fn().mockResolvedValue(undefined);
+ const queryRunner = { query } as unknown as QueryRunner;
+
+ await command.up(queryRunner);
+
+ const statements = query.mock.calls.map((call) => call[0] as string);
+
+ expect(statements).toEqual([
+ 'ALTER TABLE "core"."objectMetadata" ADD COLUMN IF NOT EXISTS "overrides" jsonb',
+ 'ALTER TABLE "core"."fieldMetadata" ADD COLUMN IF NOT EXISTS "overrides" jsonb',
+ ]);
+ expect(
+ statements.some(
+ (statement) =>
+ statement.includes('UPDATE') || statement.includes('DROP COLUMN'),
+ ),
+ ).toBe(false);
+ });
+ });
+
+ describe('down', () => {
+ it('copies overrides back into standardOverrides before dropping the column', async () => {
+ const query = jest.fn().mockResolvedValue(undefined);
+ const queryRunner = { query } as unknown as QueryRunner;
+
+ await command.down(queryRunner);
+
+ const statements = query.mock.calls.map((call) => call[0] as string);
+
+ expect(statements).toEqual([
+ 'UPDATE "core"."objectMetadata" SET "standardOverrides" = "overrides"',
+ 'ALTER TABLE "core"."objectMetadata" DROP COLUMN IF EXISTS "overrides"',
+ 'UPDATE "core"."fieldMetadata" SET "standardOverrides" = "overrides"',
+ 'ALTER TABLE "core"."fieldMetadata" DROP COLUMN IF EXISTS "overrides"',
+ ]);
+ });
+ });
+});
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-19/__tests__/backfill-metadata-overrides.instance-command.spec.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-19/__tests__/backfill-metadata-overrides.instance-command.spec.ts
new file mode 100644
index 00000000000..d9e002f43e5
--- /dev/null
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-19/__tests__/backfill-metadata-overrides.instance-command.spec.ts
@@ -0,0 +1,45 @@
+import { type DataSource } from 'typeorm';
+
+import { BackfillMetadataOverridesSlowInstanceCommand } from 'src/database/commands/upgrade-version-command/2-19/2-19-instance-command-slow-1820000110000-backfill-metadata-overrides';
+
+describe('BackfillMetadataOverridesSlowInstanceCommand', () => {
+ let command: BackfillMetadataOverridesSlowInstanceCommand;
+
+ beforeEach(() => {
+ command = new BackfillMetadataOverridesSlowInstanceCommand();
+ });
+
+ describe('runDataMigration', () => {
+ it('copies standardOverrides into overrides for both tables', async () => {
+ const query = jest.fn().mockResolvedValue([{ count: 3 }]);
+ const dataSource = { query } as unknown as DataSource;
+
+ await command.runDataMigration(dataSource);
+
+ const statements = query.mock.calls.map((call) => call[0] as string);
+
+ for (const table of ['objectMetadata', 'fieldMetadata']) {
+ expect(statements).toEqual(
+ expect.arrayContaining([
+ expect.stringContaining(
+ `UPDATE "core"."${table}" SET "overrides" = "standardOverrides"`,
+ ),
+ ]),
+ );
+ }
+ });
+
+ it('aborts when the isActive row count changes', async () => {
+ const query = jest
+ .fn()
+ .mockResolvedValueOnce([{ count: 5 }]) // objectMetadata before
+ .mockResolvedValueOnce(undefined) // UPDATE backfill
+ .mockResolvedValueOnce([{ count: 4 }]); // objectMetadata after
+ const dataSource = { query } as unknown as DataSource;
+
+ await expect(command.runDataMigration(dataSource)).rejects.toThrow(
+ /"isActive" changed on "core"\."objectMetadata"/,
+ );
+ });
+ });
+});
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-19/add-metadata-overrides-column-upgrade-command-name.constant.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-19/add-metadata-overrides-column-upgrade-command-name.constant.ts
new file mode 100644
index 00000000000..d839c9f79d8
--- /dev/null
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-19/add-metadata-overrides-column-upgrade-command-name.constant.ts
@@ -0,0 +1,4 @@
+// Referenced by @WasIntroducedInUpgrade on the "overrides" column so pre-2.19
+// upgrade steps don't SELECT it before this command adds it.
+export const ADD_METADATA_OVERRIDES_COLUMN_UPGRADE_COMMAND_NAME =
+ '2.19.0_AddMetadataOverridesColumnFastInstanceCommand_1820000100000';
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-20/README.md b/packages/twenty-server/src/database/commands/upgrade-version-command/2-20/README.md
new file mode 100644
index 00000000000..c965216f414
--- /dev/null
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-20/README.md
@@ -0,0 +1,134 @@
+# 2.20 — pending metadata-override cleanup
+
+The `standardOverrides` column on `objectMetadata` and `fieldMetadata` is a
+**deferred drop**. As of 2.19 the column is:
+
+- superseded by `overrides` (backfilled by
+ `../2-19/2-19-instance-command-slow-1820000110000-backfill-metadata-overrides.ts`),
+- excluded from the flat-entity / registry via the `WasRemovedInUpgrade<T>` type
+ wrapper on both entities,
+- still physically present in the database, so a 2.18 → 2.19 rolling deploy never
+ breaks the previous release's pods, which still `SELECT "standardOverrides"`.
+
+The physical `DROP COLUMN` is intentionally deferred to the next release (2.20):
+by the time it runs, every pod is on a release that reads/writes `overrides`
+only. This folder holds the ready-to-wire drop command so whoever opens the 2.20
+upgrade work can drop it in.
+
+## Why it isn't wired up yet
+
+`2.20.0` is not in `TWENTY_CROSS_UPGRADE_SUPPORTED_VERSIONS` (currently
+`[...TWENTY_PREVIOUS_VERSIONS, TWENTY_CURRENT_VERSION]`, and current is 2.19.0).
+Registering a 2.20 instance command — or pointing the entity's
+`@WasRemovedInUpgrade` decorator at a 2.20 command name — would fail boot
+validation (`unknown-step-name`) until 2.20 is the current version. So the
+command lives here as documentation, not as compiled code.
+
+## Activation checklist (when 2.20 becomes the current version)
+
+1. Create `2-20-instance-command-fast-<timestamp>-drop-metadata-standard-overrides-column.ts`
+ in this folder with the command below. Regenerate `<timestamp>` (the value
+ here is a placeholder) so ordering against other 2.20 commands is correct.
+2. Register it in
+ `../instance-commands.constant.ts` (import + add to the array).
+3. Add the drop decorator to `standardOverrides` on **both**
+ `object-metadata.entity.ts` and `field-metadata.entity.ts`:
+ `@WasRemovedInUpgrade({ upgradeCommandName: DROP_METADATA_STANDARD_OVERRIDES_COLUMN_UPGRADE_COMMAND_NAME })`,
+ and add the matching constant
+ (`'2.20.0_DropMetadataStandardOverridesColumnFastInstanceCommand_<timestamp>'`),
+ mirroring how `isCustom` pairs its decorator with a command name.
+4. Add the test below under `2-20/__tests__/`.
+5. Run `database:migrate:generate --name pending-migration-check` and confirm no
+ drift, then run the integration suite.
+
+## Command
+
+```ts
+import { QueryRunner } from 'typeorm';
+
+import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decorators/registered-instance-command.decorator';
+import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
+
+// Phase 2 of unifying the metadata override mechanisms. Drops the legacy
+// "standardOverrides" column now that every pod runs a release which reads and
+// writes "overrides" (backfilled in 2.19). Runs only once the instance reaches
+// 2.20, so the 2.19 rolling deploy keeps the column available for older pods.
+// down() restores the column and copies the blob back from "overrides".
+const TABLES = ['objectMetadata', 'fieldMetadata'] as const;
+
+@RegisteredInstanceCommand('2.20.0', 1825000000000)
+export class DropMetadataStandardOverridesColumnFastInstanceCommand
+ implements FastInstanceCommand
+{
+ public async up(queryRunner: QueryRunner): Promise<void> {
+ for (const table of TABLES) {
+ await queryRunner.query(
+ `ALTER TABLE "core"."${table}" DROP COLUMN IF EXISTS "standardOverrides"`,
+ );
+ }
+ }
+
+ public async down(queryRunner: QueryRunner): Promise<void> {
+ for (const table of TABLES) {
+ await queryRunner.query(
+ `ALTER TABLE "core"."${table}" ADD COLUMN IF NOT EXISTS "standardOverrides" jsonb`,
+ );
+ await queryRunner.query(
+ `UPDATE "core"."${table}" SET "standardOverrides" = "overrides"`,
+ );
+ }
+ }
+}
+```
+
+## Test
+
+```ts
+import { type QueryRunner } from 'typeorm';
+
+import { DropMetadataStandardOverridesColumnFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-20/2-20-instance-command-fast-1825000000000-drop-metadata-standard-overrides-column';
+
+describe('DropMetadataStandardOverridesColumnFastInstanceCommand', () => {
+ let command: DropMetadataStandardOverridesColumnFastInstanceCommand;
+
+ beforeEach(() => {
+ command = new DropMetadataStandardOverridesColumnFastInstanceCommand();
+ });
+
+ describe('up', () => {
+ it('drops standardOverrides from both tables', async () => {
+ const query = jest.fn().mockResolvedValue(undefined);
+ const queryRunner = { query } as unknown as QueryRunner;
+
+ await command.up(queryRunner);
+
+ const statements = query.mock.calls.map((call) => call[0] as string);
+
+ expect(statements).toEqual([
+ 'ALTER TABLE "core"."objectMetadata" DROP COLUMN IF EXISTS "standardOverrides"',
+ 'ALTER TABLE "core"."fieldMetadata" DROP COLUMN IF EXISTS "standardOverrides"',
+ ]);
+ });
+ });
+
+ describe('down', () => {
+ it('recreates and backfills standardOverrides from overrides', async () => {
+ const query = jest.fn().mockResolvedValue(undefined);
+ const queryRunner = { query } as unknown as QueryRunner;
+
+ await command.down(queryRunner);
+
+ const statements = query.mock.calls.map((call) => call[0] as string);
+
+ for (const table of ['objectMetadata', 'fieldMetadata']) {
+ expect(statements).toEqual(
+ expect.arrayContaining([
+ `ALTER TABLE "core"."${table}" ADD COLUMN IF NOT EXISTS "standardOverrides" jsonb`,
+ `UPDATE "core"."${table}" SET "standardOverrides" = "overrides"`,
+ ]),
+ );
+ }
+ });
+ });
+});
+```
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/instance-commands.constant.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/instance-commands.constant.ts
index a9b3e4ff64a..2ef082b2ae0 100644
--- a/packages/twenty-server/src/database/commands/upgrade-version-command/instance-commands.constant.ts
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/instance-commands.constant.ts
@@ -41,6 +41,8 @@ import { CreateDpaAgreementCoreTableFastInstanceCommand } from 'src/database/com
import { CreateApplicationTranslationCoreTableFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-17/2-17-instance-command-fast-1801000100000-create-application-translation-core-table';
import { AddTsVectorFieldMetadataIdToSearchFieldMetadataFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-18/2-18-instance-command-fast-1810000001000-add-ts-vector-field-metadata-id-to-search-field-metadata';
import { BackfillTsVectorFieldMetadataIdOnSearchFieldMetadataSlowInstanceCommand } from 'src/database/commands/upgrade-version-command/2-18/2-18-instance-command-slow-1810000003000-backfill-ts-vector-field-metadata-id-on-search-field-metadata';
+import { AddMetadataOverridesColumnFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-19/2-19-instance-command-fast-1820000100000-add-metadata-overrides-column';
+import { BackfillMetadataOverridesSlowInstanceCommand } from 'src/database/commands/upgrade-version-command/2-19/2-19-instance-command-slow-1820000110000-backfill-metadata-overrides';
import { AddCacheTokensToAgentChatThreadFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-2/2-2-instance-command-fast-1777455269302-add-cache-tokens-to-agent-chat-thread';
import { AddLogoToApplicationFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-2/2-2-instance-command-fast-1777539664664-add-logo-to-application';
import { AddSubFieldNameToViewSortEarlyFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-3/2-3-instance-command-fast-1747234200000-add-sub-field-name-to-view-sort';
@@ -170,4 +172,6 @@ export const INSTANCE_COMMANDS = [
CreateApplicationTranslationCoreTableFastInstanceCommand,
AddTsVectorFieldMetadataIdToSearchFieldMetadataFastInstanceCommand,
BackfillTsVectorFieldMetadataIdOnSearchFieldMetadataSlowInstanceCommand,
+ AddMetadataOverridesColumnFastInstanceCommand,
+ BackfillMetadataOverridesSlowInstanceCommand,
];
diff --git a/packages/twenty-server/src/engine/api/graphql/graphql-query-runner/__mocks__/mockPersonObjectMetadata.ts b/packages/twenty-server/src/engine/api/graphql/graphql-query-runner/__mocks__/mockPersonObjectMetadata.ts
index 95677493b61..6cb66905e00 100644
--- a/packages/twenty-server/src/engine/api/graphql/graphql-query-runner/__mocks__/mockPersonObjectMetadata.ts
+++ b/packages/twenty-server/src/engine/api/graphql/graphql-query-runner/__mocks__/mockPersonObjectMetadata.ts
@@ -163,7 +163,7 @@ export const mockPersonFlatObjectMetadata = (
updatedAt: new Date().toISOString(),
shortcut: null,
description: null,
- standardOverrides: null,
+ overrides: null,
isUIEditable: true,
isUICreatable: true,
applicationUniversalIdentifier: 'test-application-id',
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-field-manifest-to-universal-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-field-manifest-to-universal-flat-field-metadata.util.ts
index f18c97cf732..99798f8b858 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-field-manifest-to-universal-flat-field-metadata.util.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-field-manifest-to-universal-flat-field-metadata.util.ts
@@ -88,7 +88,7 @@ export const fromFieldManifestToUniversalFlatFieldMetadata = ({
label: fieldManifest.label,
description: fieldManifest.description ?? null,
icon: fieldManifest.icon ?? null,
- standardOverrides: null,
+ overrides: null,
options: fieldManifest.options ?? null,
defaultValue,
universalSettings: fieldManifest.universalSettings ?? null,
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-object-manifest-to-universal-flat-object-metadata.util.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-object-manifest-to-universal-flat-object-metadata.util.ts
index e0ee8d9ba6f..e559028e59a 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-object-manifest-to-universal-flat-object-metadata.util.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-object-manifest-to-universal-flat-object-metadata.util.ts
@@ -21,7 +21,7 @@ export const fromObjectManifestToUniversalFlatObjectMetadata = ({
color: null,
description: objectManifest.description ?? null,
icon: objectManifest.icon ?? null,
- standardOverrides: null,
+ overrides: null,
targetTableName: 'DEPRECATED',
isRemote: false,
isActive: true,
diff --git a/packages/twenty-server/src/engine/core-modules/event-emitter/utils/__tests__/object-record-changed-values.spec.ts b/packages/twenty-server/src/engine/core-modules/event-emitter/utils/__tests__/object-record-changed-values.spec.ts
index ad0947b8279..8dba45efafa 100644
--- a/packages/twenty-server/src/engine/core-modules/event-emitter/utils/__tests__/object-record-changed-values.spec.ts
+++ b/packages/twenty-server/src/engine/core-modules/event-emitter/utils/__tests__/object-record-changed-values.spec.ts
@@ -36,7 +36,7 @@ const mockObjectMetadata: FlatObjectMetadata = {
updatedAt: new Date().toISOString(),
shortcut: null,
description: null,
- standardOverrides: null,
+ overrides: null,
isUIEditable: true,
isUICreatable: true,
labelIdentifierFieldMetadataId: null,
diff --git a/packages/twenty-server/src/engine/core-modules/search/services/search.service.ts b/packages/twenty-server/src/engine/core-modules/search/services/search.service.ts
index 81f255bb168..7cbe43ef3d9 100644
--- a/packages/twenty-server/src/engine/core-modules/search/services/search.service.ts
+++ b/packages/twenty-server/src/engine/core-modules/search/services/search.service.ts
@@ -714,7 +714,7 @@ export class SearchService {
recordId: record.id,
objectNameSingular: objectMetadataItem.nameSingular,
objectLabelSingular:
- objectMetadataItem.standardOverrides?.labelSingular ??
+ objectMetadataItem.overrides?.labelSingular ??
objectMetadataItem.labelSingular,
label: this.getLabelIdentifierValue(
record,
diff --git a/packages/twenty-server/src/engine/dataloaders/dataloader.service.ts b/packages/twenty-server/src/engine/dataloaders/dataloader.service.ts
index 495daedb5bf..bc6f743397a 100644
--- a/packages/twenty-server/src/engine/dataloaders/dataloader.service.ts
+++ b/packages/twenty-server/src/engine/dataloaders/dataloader.service.ts
@@ -13,11 +13,11 @@ import { type FlatApplicationCacheMaps } from 'src/engine/core-modules/applicati
import { I18nService } from 'src/engine/core-modules/i18n/i18n.service';
import { type IDataloaders } from 'src/engine/dataloaders/dataloader.interface';
import { filterMorphRelationDuplicateFields } from 'src/engine/dataloaders/utils/filter-morph-relation-duplicate-fields.util';
-import { FIELD_METADATA_STANDARD_OVERRIDES_PROPERTIES } from 'src/engine/metadata-modules/field-metadata/constants/field-metadata-standard-overrides-properties.constant';
import { type FieldMetadataDTO } from 'src/engine/metadata-modules/field-metadata/dtos/field-metadata.dto';
import { RelationDTO } from 'src/engine/metadata-modules/field-metadata/dtos/relation.dto';
import { type FieldMetadataEntity } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity';
-import { resolveFieldMetadataStandardOverride } from 'src/engine/metadata-modules/field-metadata/utils/resolve-field-metadata-standard-override.util';
+import { ALL_OVERRIDABLE_PROPERTIES_BY_METADATA_NAME } from 'src/engine/metadata-modules/flat-entity/constant/all-overridable-properties-by-metadata-name.constant';
+import { resolveEffectiveEntityProperty } from 'src/engine/metadata-modules/utils/resolve-effective-entity-property.util';
import { WorkspaceManyOrAllFlatEntityMapsCacheService } from 'src/engine/metadata-modules/flat-entity/services/workspace-many-or-all-flat-entity-maps-cache.service';
import { findFlatEntityByIdInFlatEntityMaps } from 'src/engine/metadata-modules/flat-entity/utils/find-flat-entity-by-id-in-flat-entity-maps.util';
import { findFlatEntityByIdInFlatEntityMapsOrThrow } from 'src/engine/metadata-modules/flat-entity/utils/find-flat-entity-by-id-in-flat-entity-maps-or-throw.util';
@@ -419,23 +419,24 @@ export class DataloaderService {
)
: undefined;
- return FIELD_METADATA_STANDARD_OVERRIDES_PROPERTIES.reduce(
+ const overrides = flatFieldMetadata.overrides ?? undefined;
+ const i18nContext = {
+ locale,
+ i18nInstance,
+ isStandardApp: belongsToTwentyStandardApp(flatFieldMetadata),
+ applicationCatalog,
+ };
+
+ return ALL_OVERRIDABLE_PROPERTIES_BY_METADATA_NAME.fieldMetadata.reduce(
(acc, property) => ({
...acc,
- [property]: resolveFieldMetadataStandardOverride(
- {
- label: flatFieldMetadata.label,
- description: flatFieldMetadata.description ?? undefined,
- icon: flatFieldMetadata.icon ?? undefined,
- standardOverrides:
- flatFieldMetadata.standardOverrides ?? undefined,
- },
+ [property]: resolveEffectiveEntityProperty({
+ metadataName: 'fieldMetadata',
+ baseValue: flatFieldMetadata[property],
+ overrides,
property,
- locale,
- i18nInstance,
- belongsToTwentyStandardApp(flatFieldMetadata),
- applicationCatalog,
- ),
+ i18nContext,
+ }),
}),
flatFieldMetadata,
);
diff --git a/packages/twenty-server/src/engine/metadata-modules/command-menu-item/utils/__tests__/interpolate-navigation-command-menu-item-field.util.spec.ts b/packages/twenty-server/src/engine/metadata-modules/command-menu-item/utils/__tests__/interpolate-navigation-command-menu-item-field.util.spec.ts
index cccc5e5be99..aee64c5c058 100644
--- a/packages/twenty-server/src/engine/metadata-modules/command-menu-item/utils/__tests__/interpolate-navigation-command-menu-item-field.util.spec.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/command-menu-item/utils/__tests__/interpolate-navigation-command-menu-item-field.util.spec.ts
@@ -20,7 +20,7 @@ const mockObjectMetadata = {
labelSingular: 'Person',
description: 'A person',
icon: 'IconUser',
- standardOverrides: undefined,
+ overrides: undefined,
} as unknown as ObjectMetadataDTO;
const baseCommandMenuItem = {
diff --git a/packages/twenty-server/src/engine/metadata-modules/command-menu-item/utils/build-navigation-interpolation-context.util.ts b/packages/twenty-server/src/engine/metadata-modules/command-menu-item/utils/build-navigation-interpolation-context.util.ts
index aab60cee710..ac2cc683743 100644
--- a/packages/twenty-server/src/engine/metadata-modules/command-menu-item/utils/build-navigation-interpolation-context.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/command-menu-item/utils/build-navigation-interpolation-context.util.ts
@@ -1,15 +1,15 @@
import { type I18n } from '@lingui/core';
import { type APP_LOCALES } from 'twenty-shared/translations';
-import { type ObjectStandardOverridesDTO } from 'src/engine/metadata-modules/object-metadata/dtos/object-standard-overrides.dto';
-import { resolveObjectMetadataStandardOverride } from 'src/engine/metadata-modules/object-metadata/utils/resolve-object-metadata-standard-override.util';
+import { type ObjectMetadataOverrides } from 'src/engine/metadata-modules/object-metadata/types/object-metadata-overrides.type';
+import { resolveEffectiveEntityProperty } from 'src/engine/metadata-modules/utils/resolve-effective-entity-property.util';
export type NavigationInterpolationObjectMetadata = {
labelPlural: string;
labelSingular: string;
description?: string | null;
icon?: string | null;
- standardOverrides?: ObjectStandardOverridesDTO | null;
+ overrides?: ObjectMetadataOverrides | null;
};
export const buildNavigationInterpolationContext = ({
@@ -25,31 +25,29 @@ export const buildNavigationInterpolationContext = ({
i18nInstance: I18n;
applicationCatalog?: Record<string, string>;
}): Record<string, unknown> => {
- const overrideInput = {
- labelPlural: objectMetadata.labelPlural,
- labelSingular: objectMetadata.labelSingular,
- description: objectMetadata.description ?? undefined,
- icon: objectMetadata.icon ?? undefined,
- standardOverrides: objectMetadata.standardOverrides ?? undefined,
- };
-
- const resolvedLabelPlural = resolveObjectMetadataStandardOverride(
- overrideInput,
- 'labelPlural',
+ const overrides = objectMetadata.overrides ?? undefined;
+ const i18nContext = {
locale,
i18nInstance,
isStandardApp,
applicationCatalog,
- );
+ };
- const resolvedIcon = resolveObjectMetadataStandardOverride(
- overrideInput,
- 'icon',
- locale,
- i18nInstance,
- isStandardApp,
- applicationCatalog,
- );
+ const resolvedLabelPlural = resolveEffectiveEntityProperty({
+ metadataName: 'objectMetadata',
+ baseValue: objectMetadata.labelPlural,
+ overrides,
+ property: 'labelPlural',
+ i18nContext,
+ });
+
+ const resolvedIcon = resolveEffectiveEntityProperty({
+ metadataName: 'objectMetadata',
+ baseValue: objectMetadata.icon,
+ overrides,
+ property: 'icon',
+ i18nContext,
+ });
return {
navigateToObjectMetadataItem: {
diff --git a/packages/twenty-server/src/engine/metadata-modules/field-metadata/constants/field-metadata-standard-overrides-properties.constant.ts b/packages/twenty-server/src/engine/metadata-modules/field-metadata/constants/field-metadata-standard-overrides-properties.constant.ts
deleted file mode 100644
index ce26344a600..00000000000
--- a/packages/twenty-server/src/engine/metadata-modules/field-metadata/constants/field-metadata-standard-overrides-properties.constant.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import { type MetadataUniversalFlatEntityPropertiesToCompare } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/metadata-universal-flat-entity-properties-to-compare.type';
-
-export const FIELD_METADATA_STANDARD_OVERRIDES_PROPERTIES = [
- 'label',
- 'description',
- 'icon',
-] as const satisfies MetadataUniversalFlatEntityPropertiesToCompare<'fieldMetadata'>[];
diff --git a/packages/twenty-server/src/engine/metadata-modules/field-metadata/dtos/create-field.input.ts b/packages/twenty-server/src/engine/metadata-modules/field-metadata/dtos/create-field.input.ts
index 6538a8d6df7..04a71a9a86c 100644
--- a/packages/twenty-server/src/engine/metadata-modules/field-metadata/dtos/create-field.input.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/field-metadata/dtos/create-field.input.ts
@@ -15,7 +15,7 @@ export class CreateFieldInput extends OmitType(
'id',
'createdAt',
'updatedAt',
- 'standardOverrides',
+ 'overrides',
'applicationId',
'morphId',
'universalIdentifier',
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 575e2d4f299..f970d2ecd59 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
@@ -32,7 +32,7 @@ import {
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
import { IsValidMetadataName } from 'src/engine/decorators/metadata/is-valid-metadata-name.decorator';
-import { FieldStandardOverridesDTO } from 'src/engine/metadata-modules/field-metadata/dtos/field-standard-overrides.dto';
+import { type FieldMetadataOverrides } from 'src/engine/metadata-modules/field-metadata/types/field-metadata-overrides.type';
import { type FieldMetadataDefaultOption } from 'src/engine/metadata-modules/field-metadata/dtos/options.input';
import { ObjectMetadataDTO } from 'src/engine/metadata-modules/object-metadata/dtos/object-metadata.dto';
import { transformEnumValue } from 'src/engine/utils/transform-enum-value';
@@ -94,9 +94,8 @@ export class FieldMetadataDTO<T extends FieldMetadataType = FieldMetadataType> {
@Field({ nullable: true })
icon?: string;
- @IsOptional()
- @Field(() => FieldStandardOverridesDTO, { nullable: true })
- standardOverrides?: FieldStandardOverridesDTO;
+ @HideField()
+ overrides?: FieldMetadataOverrides | null;
@IsBoolean()
@IsOptional()
diff --git a/packages/twenty-server/src/engine/metadata-modules/field-metadata/dtos/field-standard-overrides.dto.ts b/packages/twenty-server/src/engine/metadata-modules/field-metadata/dtos/field-standard-overrides.dto.ts
deleted file mode 100644
index 2a144ec097a..00000000000
--- a/packages/twenty-server/src/engine/metadata-modules/field-metadata/dtos/field-standard-overrides.dto.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-import { Field, ObjectType } from '@nestjs/graphql';
-
-import { IsJSON, IsOptional, IsString } from 'class-validator';
-import { GraphQLJSON } from 'graphql-type-json';
-import { type APP_LOCALES } from 'twenty-shared/translations';
-
-import { FieldMetadataStandardOverridesProperties } from 'src/engine/metadata-modules/field-metadata/types/field-metadata-standard-overrides-properties.type';
-
-@ObjectType('StandardOverrides')
-export class FieldStandardOverridesDTO implements Partial<
- Record<FieldMetadataStandardOverridesProperties, unknown>
-> {
- @IsString()
- @IsOptional()
- @Field(() => String, { nullable: true })
- label?: string | null;
-
- @IsString()
- @IsOptional()
- @Field(() => String, { nullable: true })
- description?: string | null;
-
- @IsString()
- @IsOptional()
- @Field(() => String, { nullable: true })
- icon?: string | null;
-
- @IsJSON()
- @IsOptional()
- @Field(() => GraphQLJSON, {
- nullable: true,
- })
- translations?: Partial<
- Record<
- keyof typeof APP_LOCALES,
- {
- label?: string | null;
- description?: string | null;
- }
- >
- > | null;
-}
diff --git a/packages/twenty-server/src/engine/metadata-modules/field-metadata/dtos/update-field.input.ts b/packages/twenty-server/src/engine/metadata-modules/field-metadata/dtos/update-field.input.ts
index ec0f6cb77ff..8e4e53d5729 100644
--- a/packages/twenty-server/src/engine/metadata-modules/field-metadata/dtos/update-field.input.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/field-metadata/dtos/update-field.input.ts
@@ -27,7 +27,7 @@ export class UpdateFieldInput extends OmitType(
'type',
'createdAt',
'updatedAt',
- 'standardOverrides',
+ 'overrides',
'applicationId',
'morphId',
] as const,
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 7a735ddc53f..2a7b759ae94 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
@@ -23,8 +23,9 @@ import {
import { WasIntroducedInUpgrade } from 'src/engine/core-modules/upgrade/decorators/was-introduced-in-upgrade.decorator';
import { WasRemovedInUpgrade } from 'src/engine/core-modules/upgrade/decorators/was-removed-in-upgrade.decorator';
import { ADD_IS_SYSTEM_SIDE_EFFECT_UPGRADE_COMMAND_NAME } from 'src/database/commands/upgrade-version-command/2-15/is-system-side-effect-upgrade-command-name.constant';
+import { ADD_METADATA_OVERRIDES_COLUMN_UPGRADE_COMMAND_NAME } from 'src/database/commands/upgrade-version-command/2-19/add-metadata-overrides-column-upgrade-command-name.constant';
import { RENAME_IS_UI_READ_ONLY_TO_IS_UI_EDITABLE_UPGRADE_COMMAND_NAME } from 'src/engine/metadata-modules/object-metadata/constants/rename-is-ui-read-only-to-is-ui-editable-upgrade-command-name.constant';
-import { type FieldStandardOverridesDTO } from 'src/engine/metadata-modules/field-metadata/dtos/field-standard-overrides.dto';
+import { type FieldMetadataOverrides } from 'src/engine/metadata-modules/field-metadata/types/field-metadata-overrides.type';
import { AssignIfIsGivenFieldMetadataType } from 'src/engine/metadata-modules/field-metadata/types/assign-if-is-given-field-metadata-type.type';
import { AssignTypeIfIsMorphOrRelationFieldMetadataType } from 'src/engine/metadata-modules/field-metadata/types/assign-type-if-is-morph-or-relation-field-metadata-type.type';
import { IndexFieldMetadataEntity } from 'src/engine/metadata-modules/index-metadata/index-field-metadata.entity';
@@ -102,8 +103,18 @@ export class FieldMetadataEntity<
@Column({ nullable: true, type: 'varchar' })
icon: string | null;
+ @WasIntroducedInUpgrade({
+ upgradeCommandName: ADD_METADATA_OVERRIDES_COLUMN_UPGRADE_COMMAND_NAME,
+ })
+ @Column({ type: 'jsonb', nullable: true })
+ overrides: JsonbProperty<FieldMetadataOverrides> | null;
+
+ /**
+ * @deprecated Superseded by `overrides`; kept readable for pods on the
+ * previous release during a rolling deploy. Drop deferred to 2-20/README.md.
+ */
@Column({ type: 'jsonb', nullable: true })
- standardOverrides: JsonbProperty<FieldStandardOverridesDTO> | null;
+ standardOverrides: WasRemovedInUpgrade<JsonbProperty<FieldMetadataOverrides> | null>;
@Column('jsonb', { nullable: true })
options: JsonbProperty<FieldMetadataOptions<TFieldMetadataType>>;
diff --git a/packages/twenty-server/src/engine/metadata-modules/field-metadata/field-metadata.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/field-metadata/field-metadata.resolver.ts
index 1d4b5f068da..a0778794a2c 100644
--- a/packages/twenty-server/src/engine/metadata-modules/field-metadata/field-metadata.resolver.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/field-metadata/field-metadata.resolver.ts
@@ -22,16 +22,16 @@ import { RelationDTO } from 'src/engine/metadata-modules/field-metadata/dtos/rel
import { UpdateOneFieldMetadataInput } from 'src/engine/metadata-modules/field-metadata/dtos/update-field.input';
import { FieldMetadataService } from 'src/engine/metadata-modules/field-metadata/services/field-metadata.service';
import { fieldMetadataGraphqlApiExceptionHandler } from 'src/engine/metadata-modules/field-metadata/utils/field-metadata-graphql-api-exception-handler.util';
-import { resolveFieldMetadataStandardOverride } from 'src/engine/metadata-modules/field-metadata/utils/resolve-field-metadata-standard-override.util';
import { fromFlatFieldMetadataToFieldMetadataDto } from 'src/engine/metadata-modules/flat-field-metadata/utils/from-flat-field-metadata-to-field-metadata-dto.util';
+import { resolveEffectiveEntityProperty } from 'src/engine/metadata-modules/utils/resolve-effective-entity-property.util';
import { PermissionsGraphqlApiExceptionFilter } from 'src/engine/metadata-modules/permissions/utils/permissions-graphql-api-exception.filter';
// Keep @Parent() structurally typed so ResolverValidationPipe does not validate
// FieldMetadataDTO date decorators on already-loaded parent records.
-type FieldMetadataStandardOverrideParent = Parameters<
- typeof resolveFieldMetadataStandardOverride
->[0] &
- Pick<FieldMetadataDTO, 'applicationId'>;
+type FieldMetadataStandardOverrideParent = Pick<
+ FieldMetadataDTO,
+ 'label' | 'description' | 'icon' | 'overrides' | 'applicationId'
+>;
@UseGuards(WorkspaceAuthGuard)
@UsePipes(ResolverValidationPipe)
@@ -76,14 +76,18 @@ export class FieldMetadataResolver {
locale: context.req.locale,
});
- return resolveFieldMetadataStandardOverride(
- fieldMetadata,
- labelKey,
- context.req.locale,
- i18n,
- isStandardApp,
- applicationCatalog,
- );
+ return resolveEffectiveEntityProperty({
+ metadataName: 'fieldMetadata',
+ baseValue: fieldMetadata[labelKey],
+ overrides: fieldMetadata.overrides,
+ property: labelKey,
+ i18nContext: {
+ locale: context.req.locale,
+ i18nInstance: i18n,
+ isStandardApp,
+ applicationCatalog,
+ },
+ });
}
@ResolveField(() => String, { nullable: true })
diff --git a/packages/twenty-server/src/engine/metadata-modules/field-metadata/types/field-metadata-overrides.type.ts b/packages/twenty-server/src/engine/metadata-modules/field-metadata/types/field-metadata-overrides.type.ts
new file mode 100644
index 00000000000..f9b1d218efc
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/field-metadata/types/field-metadata-overrides.type.ts
@@ -0,0 +1,16 @@
+import { type APP_LOCALES } from 'twenty-shared/translations';
+
+export type FieldMetadataOverrides = {
+ label?: string | null;
+ description?: string | null;
+ icon?: string | null;
+ translations?: Partial<
+ Record<
+ keyof typeof APP_LOCALES,
+ {
+ label?: string | null;
+ description?: string | null;
+ }
+ >
+ > | null;
+};
diff --git a/packages/twenty-server/src/engine/metadata-modules/field-metadata/types/field-metadata-standard-overrides-properties.type.ts b/packages/twenty-server/src/engine/metadata-modules/field-metadata/types/field-metadata-standard-overrides-properties.type.ts
deleted file mode 100644
index e87cf90d495..00000000000
--- a/packages/twenty-server/src/engine/metadata-modules/field-metadata/types/field-metadata-standard-overrides-properties.type.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import { type FIELD_METADATA_STANDARD_OVERRIDES_PROPERTIES } from 'src/engine/metadata-modules/field-metadata/constants/field-metadata-standard-overrides-properties.constant';
-
-export type FieldMetadataStandardOverridesProperties =
- (typeof FIELD_METADATA_STANDARD_OVERRIDES_PROPERTIES)[number];
diff --git a/packages/twenty-server/src/engine/metadata-modules/field-metadata/utils/__tests__/resolve-field-metadata-standard-override.util.spec.ts b/packages/twenty-server/src/engine/metadata-modules/field-metadata/utils/__tests__/resolve-field-metadata-standard-override.util.spec.ts
deleted file mode 100644
index 29e210f9a97..00000000000
--- a/packages/twenty-server/src/engine/metadata-modules/field-metadata/utils/__tests__/resolve-field-metadata-standard-override.util.spec.ts
+++ /dev/null
@@ -1,511 +0,0 @@
-import { type I18n } from '@lingui/core';
-import { SOURCE_LOCALE } from 'twenty-shared/translations';
-
-import { generateMessageId } from 'src/engine/core-modules/i18n/utils/generateMessageId';
-import { resolveFieldMetadataStandardOverride } from 'src/engine/metadata-modules/field-metadata/utils/resolve-field-metadata-standard-override.util';
-
-jest.mock('src/engine/core-modules/i18n/utils/generateMessageId');
-
-const mockGenerateMessageId = generateMessageId as jest.MockedFunction<
- typeof generateMessageId
->;
-
-describe('resolveFieldMetadataStandardOverride', () => {
- let mockI18n: jest.Mocked<I18n>;
-
- beforeEach(() => {
- jest.clearAllMocks();
- mockI18n = {
- _: jest.fn(),
- } as unknown as jest.Mocked<I18n>;
- });
-
- describe('Custom fields', () => {
- it('should return the field value for custom label field', () => {
- const fieldMetadata = {
- label: 'Custom Label',
- description: 'Custom Description',
- icon: 'custom-icon',
- isCustom: true,
- standardOverrides: undefined,
- };
-
- const result = resolveFieldMetadataStandardOverride(
- fieldMetadata,
- 'label',
- 'fr-FR',
- mockI18n,
- !fieldMetadata.isCustom,
- );
-
- expect(result).toBe('Custom Label');
- });
-
- it('should never translate a custom label even when it matches a standard catalog entry', () => {
- const fieldMetadata = {
- label: 'Status',
- description: 'Custom Description',
- icon: 'custom-icon',
- isCustom: true,
- standardOverrides: undefined,
- };
-
- mockGenerateMessageId.mockReturnValue('status.message.id');
- mockI18n._.mockReturnValue('Statut');
-
- const result = resolveFieldMetadataStandardOverride(
- fieldMetadata,
- 'label',
- 'fr-FR',
- mockI18n,
- !fieldMetadata.isCustom,
- );
-
- expect(result).toBe('Status');
- expect(mockGenerateMessageId).not.toHaveBeenCalled();
- expect(mockI18n._).not.toHaveBeenCalled();
- });
-
- it('should return the field value for custom description field', () => {
- const fieldMetadata = {
- label: 'Custom Label',
- description: 'Custom Description',
- icon: 'custom-icon',
- isCustom: true,
- standardOverrides: undefined,
- };
-
- const result = resolveFieldMetadataStandardOverride(
- fieldMetadata,
- 'description',
- undefined,
- mockI18n,
- !fieldMetadata.isCustom,
- );
-
- expect(result).toBe('Custom Description');
- });
-
- it('should return the field value for custom icon field', () => {
- const fieldMetadata = {
- label: 'Custom Label',
- description: 'Custom Description',
- icon: 'custom-icon',
- isCustom: true,
- standardOverrides: undefined,
- };
-
- const result = resolveFieldMetadataStandardOverride(
- fieldMetadata,
- 'icon',
- SOURCE_LOCALE,
- mockI18n,
- !fieldMetadata.isCustom,
- );
-
- expect(result).toBe('custom-icon');
- });
- });
-
- describe('Standard fields - Icon overrides', () => {
- it('should return override icon when available for standard field', () => {
- const fieldMetadata = {
- label: 'Standard Label',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {
- icon: 'override-icon',
- },
- };
-
- const result = resolveFieldMetadataStandardOverride(
- fieldMetadata,
- 'icon',
- 'fr-FR',
- mockI18n,
- !fieldMetadata.isCustom,
- );
-
- expect(result).toBe('override-icon');
- });
- });
-
- describe('Standard fields - Translation overrides', () => {
- it('should return translation override when available for non-icon fields', () => {
- const fieldMetadata = {
- label: 'Standard Label',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {
- translations: {
- 'fr-FR': {
- label: 'Libellé traduit',
- description: 'Description traduite',
- },
- },
- },
- };
-
- expect(
- resolveFieldMetadataStandardOverride(
- fieldMetadata,
- 'label',
- 'fr-FR',
- mockI18n,
- !fieldMetadata.isCustom,
- ),
- ).toBe('Libellé traduit');
- expect(
- resolveFieldMetadataStandardOverride(
- fieldMetadata,
- 'description',
- 'fr-FR',
- mockI18n,
- !fieldMetadata.isCustom,
- ),
- ).toBe('Description traduite');
- });
-
- it('should fallback when translation override is not available for the locale', () => {
- const fieldMetadata = {
- label: 'Standard Label',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {
- translations: {
- 'es-ES': {
- label: 'Etiqueta en español',
- },
- },
- },
- };
-
- mockGenerateMessageId.mockReturnValue('generated-message-id');
- mockI18n._.mockReturnValue('generated-message-id');
-
- const result = resolveFieldMetadataStandardOverride(
- fieldMetadata,
- 'label',
- 'fr-FR',
- mockI18n,
- !fieldMetadata.isCustom,
- );
-
- expect(result).toBe('Standard Label');
- });
-
- it('should fallback when translation override is not available for the labelKey', () => {
- const fieldMetadata = {
- label: 'Standard Label',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {
- translations: {
- 'fr-FR': {
- label: 'Libellé traduit',
- },
- },
- },
- };
-
- mockGenerateMessageId.mockReturnValue('generated-message-id');
- mockI18n._.mockReturnValue('generated-message-id');
-
- const result = resolveFieldMetadataStandardOverride(
- fieldMetadata,
- 'description',
- 'fr-FR',
- mockI18n,
- !fieldMetadata.isCustom,
- );
-
- expect(result).toBe('Standard Description');
- });
-
- it('should not use translation overrides when locale is undefined', () => {
- const fieldMetadata = {
- label: 'Standard Label',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {
- translations: {
- 'fr-FR': {
- label: 'Libellé traduit',
- },
- },
- },
- };
-
- mockGenerateMessageId.mockReturnValue('generated-message-id');
- mockI18n._.mockReturnValue('generated-message-id');
-
- const result = resolveFieldMetadataStandardOverride(
- fieldMetadata,
- 'label',
- undefined,
- mockI18n,
- !fieldMetadata.isCustom,
- );
-
- expect(result).toBe('Standard Label');
- });
- });
-
- describe('Standard fields - SOURCE_LOCALE overrides', () => {
- it('should return direct override for SOURCE_LOCALE when available', () => {
- const fieldMetadata = {
- label: 'Standard Label',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {
- label: 'Overridden Label',
- description: 'Overridden Description',
- icon: 'overridden-icon',
- },
- };
-
- expect(
- resolveFieldMetadataStandardOverride(
- fieldMetadata,
- 'label',
- SOURCE_LOCALE,
- mockI18n,
- !fieldMetadata.isCustom,
- ),
- ).toBe('Overridden Label');
- expect(
- resolveFieldMetadataStandardOverride(
- fieldMetadata,
- 'description',
- SOURCE_LOCALE,
- mockI18n,
- !fieldMetadata.isCustom,
- ),
- ).toBe('Overridden Description');
- expect(
- resolveFieldMetadataStandardOverride(
- fieldMetadata,
- 'icon',
- SOURCE_LOCALE,
- mockI18n,
- !fieldMetadata.isCustom,
- ),
- ).toBe('overridden-icon');
- });
-
- it('should use direct override for non-SOURCE_LOCALE when translation override is missing', () => {
- const fieldMetadata = {
- label: 'Standard Label',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {
- label: 'Overridden Label',
- },
- };
-
- mockGenerateMessageId.mockReturnValue('generated-message-id');
- mockI18n._.mockReturnValue('generated-message-id');
-
- const result = resolveFieldMetadataStandardOverride(
- fieldMetadata,
- 'label',
- 'fr-FR',
- mockI18n,
- !fieldMetadata.isCustom,
- );
-
- expect(result).toBe('Overridden Label');
- expect(mockGenerateMessageId).not.toHaveBeenCalled();
- expect(mockI18n._).not.toHaveBeenCalled();
- });
-
- it('should not use empty string override for SOURCE_LOCALE', () => {
- const fieldMetadata = {
- label: 'Standard Label',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {
- label: '',
- },
- };
-
- mockGenerateMessageId.mockReturnValue('generated-message-id');
- mockI18n._.mockReturnValue('generated-message-id');
-
- const result = resolveFieldMetadataStandardOverride(
- fieldMetadata,
- 'label',
- SOURCE_LOCALE,
- mockI18n,
- !fieldMetadata.isCustom,
- );
-
- expect(result).toBe('Standard Label');
- });
-
- it('should not use undefined override for SOURCE_LOCALE', () => {
- const fieldMetadata = {
- label: 'Standard Label',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {
- label: undefined,
- },
- };
-
- mockGenerateMessageId.mockReturnValue('generated-message-id');
- mockI18n._.mockReturnValue('generated-message-id');
-
- const result = resolveFieldMetadataStandardOverride(
- fieldMetadata,
- 'label',
- SOURCE_LOCALE,
- mockI18n,
- !fieldMetadata.isCustom,
- );
-
- expect(result).toBe('Standard Label');
- });
- });
-
- describe('Standard fields - Auto translation fallback', () => {
- it('should return translated message when translation is available', () => {
- const fieldMetadata = {
- label: 'Standard Label',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: undefined,
- };
-
- mockGenerateMessageId.mockReturnValue('standard.label.message.id');
- mockI18n._.mockReturnValue('Libellé traduit automatiquement');
-
- const result = resolveFieldMetadataStandardOverride(
- fieldMetadata,
- 'label',
- 'fr-FR',
- mockI18n,
- !fieldMetadata.isCustom,
- );
-
- expect(mockGenerateMessageId).toHaveBeenCalledWith('Standard Label');
- expect(mockI18n._).toHaveBeenCalledWith('standard.label.message.id');
- expect(result).toBe('Libellé traduit automatiquement');
- });
-
- it('should return original field value when no translation is found', () => {
- const fieldMetadata = {
- label: 'Standard Label',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: undefined,
- };
-
- const messageId = 'standard.label.message.id';
-
- mockGenerateMessageId.mockReturnValue(messageId);
- mockI18n._.mockReturnValue(messageId);
-
- const result = resolveFieldMetadataStandardOverride(
- fieldMetadata,
- 'label',
- 'fr-FR',
- mockI18n,
- !fieldMetadata.isCustom,
- );
-
- expect(result).toBe('Standard Label');
- });
- });
-
- describe('Priority order - Standard fields', () => {
- it('should prioritize translation override over SOURCE_LOCALE override for non-SOURCE_LOCALE', () => {
- const fieldMetadata = {
- label: 'Standard Label',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {
- label: 'Source Override',
- translations: {
- 'fr-FR': {
- label: 'Translation Override',
- },
- },
- },
- };
-
- const result = resolveFieldMetadataStandardOverride(
- fieldMetadata,
- 'label',
- 'fr-FR',
- mockI18n,
- !fieldMetadata.isCustom,
- );
-
- expect(result).toBe('Translation Override');
- expect(mockGenerateMessageId).not.toHaveBeenCalled();
- expect(mockI18n._).not.toHaveBeenCalled();
- });
-
- it('should prioritize SOURCE_LOCALE override over auto translation for SOURCE_LOCALE', () => {
- const fieldMetadata = {
- label: 'Standard Label',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {
- label: 'Source Override',
- },
- };
-
- const result = resolveFieldMetadataStandardOverride(
- fieldMetadata,
- 'label',
- SOURCE_LOCALE,
- mockI18n,
- !fieldMetadata.isCustom,
- );
-
- expect(result).toBe('Source Override');
- expect(mockGenerateMessageId).not.toHaveBeenCalled();
- expect(mockI18n._).not.toHaveBeenCalled();
- });
-
- it('should use auto translation when no overrides are available', () => {
- const fieldMetadata = {
- label: 'Standard Label',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {},
- };
-
- mockGenerateMessageId.mockReturnValue('auto.translation.id');
- mockI18n._.mockReturnValue('Auto Translated Label');
-
- const result = resolveFieldMetadataStandardOverride(
- fieldMetadata,
- 'label',
- 'de-DE',
- mockI18n,
- !fieldMetadata.isCustom,
- );
-
- expect(result).toBe('Auto Translated Label');
- expect(mockGenerateMessageId).toHaveBeenCalledWith('Standard Label');
- expect(mockI18n._).toHaveBeenCalledWith('auto.translation.id');
- });
- });
-});
diff --git a/packages/twenty-server/src/engine/metadata-modules/field-metadata/utils/from-field-metadata-entity-to-field-metadata-dto.util.ts b/packages/twenty-server/src/engine/metadata-modules/field-metadata/utils/from-field-metadata-entity-to-field-metadata-dto.util.ts
index 0b2f39a24f2..728bcb01cde 100644
--- a/packages/twenty-server/src/engine/metadata-modules/field-metadata/utils/from-field-metadata-entity-to-field-metadata-dto.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/field-metadata/utils/from-field-metadata-entity-to-field-metadata-dto.util.ts
@@ -17,7 +17,7 @@ export const fromFieldMetadataEntityToFieldMetadataDto = (
label: entity.label,
description: entity.description ?? undefined,
icon: entity.icon ?? undefined,
- standardOverrides: entity.standardOverrides ?? undefined,
+ overrides: entity.overrides ?? undefined,
isActive: entity.isActive,
isSystem: entity.isSystem,
isUIEditable: entity.isUIEditable,
diff --git a/packages/twenty-server/src/engine/metadata-modules/field-metadata/utils/resolve-field-metadata-standard-override.util.ts b/packages/twenty-server/src/engine/metadata-modules/field-metadata/utils/resolve-field-metadata-standard-override.util.ts
deleted file mode 100644
index d26b1b7b072..00000000000
--- a/packages/twenty-server/src/engine/metadata-modules/field-metadata/utils/resolve-field-metadata-standard-override.util.ts
+++ /dev/null
@@ -1,52 +0,0 @@
-import { type I18n } from '@lingui/core';
-import { isNonEmptyString } from '@sniptt/guards';
-import { type APP_LOCALES, SOURCE_LOCALE } from 'twenty-shared/translations';
-import { isDefined } from 'twenty-shared/utils';
-
-import { translateStandardLabel } from 'src/engine/core-modules/i18n/utils/translate-standard-label.util';
-import { type FieldMetadataDTO } from 'src/engine/metadata-modules/field-metadata/dtos/field-metadata.dto';
-
-export const resolveFieldMetadataStandardOverride = (
- fieldMetadata: Pick<
- FieldMetadataDTO,
- 'label' | 'description' | 'icon' | 'standardOverrides'
- >,
- labelKey: 'label' | 'description' | 'icon',
- locale: keyof typeof APP_LOCALES | undefined,
- i18nInstance: I18n,
- isStandardApp: boolean,
- applicationCatalog?: Record<string, string>,
-): string => {
- const safeLocale = locale ?? SOURCE_LOCALE;
-
- if (!isStandardApp && !isDefined(applicationCatalog)) {
- return fieldMetadata[labelKey] ?? '';
- }
-
- if (labelKey === 'icon' && isDefined(fieldMetadata.standardOverrides?.icon)) {
- return fieldMetadata.standardOverrides.icon;
- }
-
- if (
- isDefined(fieldMetadata.standardOverrides?.translations) &&
- labelKey !== 'icon'
- ) {
- const translationValue =
- fieldMetadata.standardOverrides.translations[safeLocale]?.[labelKey];
-
- if (isDefined(translationValue)) {
- return translationValue;
- }
- }
-
- if (isNonEmptyString(fieldMetadata.standardOverrides?.[labelKey])) {
- return fieldMetadata.standardOverrides[labelKey] ?? '';
- }
-
- return translateStandardLabel({
- sourceValue: fieldMetadata[labelKey] ?? '',
- isStandardApp,
- applicationCatalog,
- i18nInstance,
- });
-};
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/__snapshots__/all-universal-flat-entity-properties-to-compare-and-stringify.constant.spec.ts.snap b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/__snapshots__/all-universal-flat-entity-properties-to-compare-and-stringify.constant.spec.ts.snap
index eb12f595f08..f71072b464e 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/__snapshots__/all-universal-flat-entity-properties-to-compare-and-stringify.constant.spec.ts.snap
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/__snapshots__/all-universal-flat-entity-properties-to-compare-and-stringify.constant.spec.ts.snap
@@ -72,7 +72,7 @@ exports[`ALL_UNIVERSAL_FLAT_ENTITY_PROPERTIES_TO_COMPARE_AND_STRINGIFY should ma
"label",
"name",
"options",
- "standardOverrides",
+ "overrides",
"universalSettings",
"isUIEditable",
"isNullable",
@@ -80,7 +80,7 @@ exports[`ALL_UNIVERSAL_FLAT_ENTITY_PROPERTIES_TO_COMPARE_AND_STRINGIFY should ma
"propertiesToStringify": [
"defaultValue",
"options",
- "standardOverrides",
+ "overrides",
"universalSettings",
],
},
@@ -171,14 +171,14 @@ exports[`ALL_UNIVERSAL_FLAT_ENTITY_PROPERTIES_TO_COMPARE_AND_STRINGIFY should ma
"namePlural",
"nameSingular",
"labelIdentifierFieldMetadataUniversalIdentifier",
- "standardOverrides",
+ "overrides",
"isUIEditable",
"isUICreatable",
"isSearchable",
"imageIdentifierFieldMetadataUniversalIdentifier",
],
"propertiesToStringify": [
- "standardOverrides",
+ "overrides",
],
},
"objectPermission": {
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/__snapshots__/overridable-and-translatable-properties.constant.spec.ts.snap b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/__snapshots__/overridable-and-translatable-properties.constant.spec.ts.snap
new file mode 100644
index 00000000000..66c736d1f7e
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/__snapshots__/overridable-and-translatable-properties.constant.spec.ts.snap
@@ -0,0 +1,137 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`registry-derived override property maps derives the overridable properties for every metadata entity 1`] = `
+{
+ "agent": [],
+ "applicationVariable": [],
+ "commandMenuItem": [
+ "label",
+ "icon",
+ "shortLabel",
+ "position",
+ "isPinned",
+ "availabilityType",
+ "availabilityObjectMetadataId",
+ "engineComponentKey",
+ "hotKeys",
+ "pageLayoutId",
+ ],
+ "connectionProvider": [],
+ "fieldMetadata": [
+ "description",
+ "icon",
+ "label",
+ ],
+ "fieldPermission": [],
+ "frontComponent": [],
+ "index": [],
+ "logicFunction": [],
+ "navigationMenuItem": [],
+ "objectMetadata": [
+ "color",
+ "description",
+ "icon",
+ "labelPlural",
+ "labelSingular",
+ ],
+ "objectPermission": [],
+ "pageLayout": [],
+ "pageLayoutTab": [
+ "title",
+ "position",
+ "icon",
+ ],
+ "pageLayoutWidget": [
+ "title",
+ "position",
+ "pageLayoutTabId",
+ "conditionalDisplay",
+ "conditionalAvailabilityExpression",
+ ],
+ "permissionFlag": [],
+ "role": [],
+ "rolePermissionFlag": [],
+ "roleTarget": [],
+ "rowLevelPermissionPredicate": [],
+ "rowLevelPermissionPredicateGroup": [],
+ "searchFieldMetadata": [],
+ "skill": [],
+ "view": [
+ "name",
+ "type",
+ "icon",
+ "position",
+ "isCompact",
+ "openRecordIn",
+ "kanbanAggregateOperation",
+ "kanbanAggregateOperationFieldMetadataId",
+ "anyFieldFilterValue",
+ "calendarLayout",
+ "calendarFieldMetadataId",
+ "visibility",
+ "mainGroupByFieldMetadataId",
+ "shouldHideEmptyGroups",
+ "kanbanColumnWidth",
+ ],
+ "viewField": [
+ "isVisible",
+ "size",
+ "position",
+ "aggregateOperation",
+ "viewFieldGroupId",
+ ],
+ "viewFieldGroup": [
+ "name",
+ "position",
+ "isVisible",
+ ],
+ "viewFilter": [],
+ "viewFilterGroup": [],
+ "viewGroup": [],
+ "viewSort": [],
+ "webhook": [],
+}
+`;
+
+exports[`registry-derived override property maps derives the translatable properties for every metadata entity 1`] = `
+{
+ "agent": [],
+ "applicationVariable": [],
+ "commandMenuItem": [],
+ "connectionProvider": [],
+ "fieldMetadata": [
+ "description",
+ "label",
+ ],
+ "fieldPermission": [],
+ "frontComponent": [],
+ "index": [],
+ "logicFunction": [],
+ "navigationMenuItem": [],
+ "objectMetadata": [
+ "description",
+ "labelPlural",
+ "labelSingular",
+ ],
+ "objectPermission": [],
+ "pageLayout": [],
+ "pageLayoutTab": [],
+ "pageLayoutWidget": [],
+ "permissionFlag": [],
+ "role": [],
+ "rolePermissionFlag": [],
+ "roleTarget": [],
+ "rowLevelPermissionPredicate": [],
+ "rowLevelPermissionPredicateGroup": [],
+ "searchFieldMetadata": [],
+ "skill": [],
+ "view": [],
+ "viewField": [],
+ "viewFieldGroup": [],
+ "viewFilter": [],
+ "viewFilterGroup": [],
+ "viewGroup": [],
+ "viewSort": [],
+ "webhook": [],
+}
+`;
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/overridable-and-translatable-properties.constant.spec.ts b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/overridable-and-translatable-properties.constant.spec.ts
new file mode 100644
index 00000000000..08680cfd476
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/overridable-and-translatable-properties.constant.spec.ts
@@ -0,0 +1,12 @@
+import { ALL_OVERRIDABLE_PROPERTIES_BY_METADATA_NAME } from 'src/engine/metadata-modules/flat-entity/constant/all-overridable-properties-by-metadata-name.constant';
+import { ALL_TRANSLATABLE_PROPERTIES_BY_METADATA_NAME } from 'src/engine/metadata-modules/flat-entity/constant/all-translatable-properties-by-metadata-name.constant';
+
+describe('registry-derived override property maps', () => {
+ it('derives the overridable properties for every metadata entity', () => {
+ expect(ALL_OVERRIDABLE_PROPERTIES_BY_METADATA_NAME).toMatchSnapshot();
+ });
+
+ it('derives the translatable properties for every metadata entity', () => {
+ expect(ALL_TRANSLATABLE_PROPERTIES_BY_METADATA_NAME).toMatchSnapshot();
+ });
+});
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-entity-properties-configuration-by-metadata-name.constant.ts b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-entity-properties-configuration-by-metadata-name.constant.ts
index 08b2010f137..abc0a02ee5c 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-entity-properties-configuration-by-metadata-name.constant.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-entity-properties-configuration-by-metadata-name.constant.ts
@@ -40,6 +40,7 @@ type MetadataEntityPropertyConfiguration<
: boolean;
toCompare: boolean;
isOverridable?: boolean;
+ translatable?: boolean;
};
};
@@ -59,8 +60,15 @@ export const ALL_ENTITY_PROPERTIES_CONFIGURATION_BY_METADATA_NAME = {
toCompare: true,
toStringify: false,
universalProperty: undefined,
+ isOverridable: true,
+ translatable: true,
+ },
+ icon: {
+ toCompare: true,
+ toStringify: false,
+ universalProperty: undefined,
+ isOverridable: true,
},
- icon: { toCompare: true, toStringify: false, universalProperty: undefined },
isActive: {
toCompare: true,
toStringify: false,
@@ -86,6 +94,8 @@ export const ALL_ENTITY_PROPERTIES_CONFIGURATION_BY_METADATA_NAME = {
toCompare: true,
toStringify: false,
universalProperty: undefined,
+ isOverridable: true,
+ translatable: true,
},
name: { toCompare: true, toStringify: false, universalProperty: undefined },
options: {
@@ -93,7 +103,7 @@ export const ALL_ENTITY_PROPERTIES_CONFIGURATION_BY_METADATA_NAME = {
toStringify: true,
universalProperty: undefined,
},
- standardOverrides: {
+ overrides: {
toCompare: true,
toStringify: true,
universalProperty: undefined,
@@ -164,13 +174,21 @@ export const ALL_ENTITY_PROPERTIES_CONFIGURATION_BY_METADATA_NAME = {
toCompare: true,
toStringify: false,
universalProperty: undefined,
+ isOverridable: true,
},
description: {
toCompare: true,
toStringify: false,
universalProperty: undefined,
+ isOverridable: true,
+ translatable: true,
+ },
+ icon: {
+ toCompare: true,
+ toStringify: false,
+ universalProperty: undefined,
+ isOverridable: true,
},
- icon: { toCompare: true, toStringify: false, universalProperty: undefined },
isActive: {
toCompare: true,
toStringify: false,
@@ -185,11 +203,15 @@ export const ALL_ENTITY_PROPERTIES_CONFIGURATION_BY_METADATA_NAME = {
toCompare: true,
toStringify: false,
universalProperty: undefined,
+ isOverridable: true,
+ translatable: true,
},
labelSingular: {
toCompare: true,
toStringify: false,
universalProperty: undefined,
+ isOverridable: true,
+ translatable: true,
},
namePlural: {
toCompare: true,
@@ -207,7 +229,7 @@ export const ALL_ENTITY_PROPERTIES_CONFIGURATION_BY_METADATA_NAME = {
// @ts-expect-error remove once https://github.com/twentyhq/core-team-issues/issues/2172 has been resolved
universalProperty: 'labelIdentifierFieldMetadataUniversalIdentifier',
},
- standardOverrides: {
+ overrides: {
toCompare: true,
toStringify: true,
universalProperty: undefined,
@@ -1830,3 +1852,12 @@ export type MetadataEntityOverridablePropertyName<T extends AllMetadataName> =
FilterOverridableKeys<
(typeof ALL_ENTITY_PROPERTIES_CONFIGURATION_BY_METADATA_NAME)[T]
>;
+
+type FilterTranslatableKeys<TConfig> = {
+ [P in keyof TConfig]: TConfig[P] extends { translatable: true } ? P : never;
+}[keyof TConfig];
+
+export type MetadataEntityTranslatablePropertyName<T extends AllMetadataName> =
+ FilterTranslatableKeys<
+ (typeof ALL_ENTITY_PROPERTIES_CONFIGURATION_BY_METADATA_NAME)[T]
+ >;
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-translatable-properties-by-metadata-name.constant.ts b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-translatable-properties-by-metadata-name.constant.ts
new file mode 100644
index 00000000000..ea607a16c0b
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-translatable-properties-by-metadata-name.constant.ts
@@ -0,0 +1,32 @@
+import {
+ ALL_METADATA_NAME,
+ type AllMetadataName,
+} from 'twenty-shared/metadata';
+
+import {
+ ALL_ENTITY_PROPERTIES_CONFIGURATION_BY_METADATA_NAME,
+ type MetadataEntityTranslatablePropertyName,
+} from 'src/engine/metadata-modules/flat-entity/constant/all-entity-properties-configuration-by-metadata-name.constant';
+
+const computeTranslatableProperties = <T extends AllMetadataName>(
+ metadataName: T,
+): MetadataEntityTranslatablePropertyName<T>[] => {
+ const config =
+ ALL_ENTITY_PROPERTIES_CONFIGURATION_BY_METADATA_NAME[metadataName];
+
+ return (Object.entries(config) as [string, { translatable?: boolean }][])
+ .filter(([_, conf]) => conf.translatable === true)
+ .map(([property]) => property as MetadataEntityTranslatablePropertyName<T>);
+};
+
+export const ALL_TRANSLATABLE_PROPERTIES_BY_METADATA_NAME = Object.values(
+ ALL_METADATA_NAME,
+).reduce(
+ (acc, metadataName) => ({
+ ...acc,
+ [metadataName]: computeTranslatableProperties(metadataName),
+ }),
+ {} as {
+ [P in AllMetadataName]: MetadataEntityTranslatablePropertyName<P>[];
+ },
+);
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-entity/types/__tests__/flat-entity-update.type-test.ts b/packages/twenty-server/src/engine/metadata-modules/flat-entity/types/__tests__/flat-entity-update.type-test.ts
index 09ddf0f3f46..7050b204732 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-entity/types/__tests__/flat-entity-update.type-test.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-entity/types/__tests__/flat-entity-update.type-test.ts
@@ -17,7 +17,7 @@ type Assertions = [
| 'description'
| 'isActive'
| 'defaultValue'
- | 'standardOverrides'
+ | 'overrides'
| 'options'
| 'settings'
| 'isUnique'
@@ -43,7 +43,7 @@ type Assertions = [
| 'color'
| 'description'
| 'isActive'
- | 'standardOverrides'
+ | 'overrides'
| 'isLabelSyncedWithName'
| 'nameSingular'
| 'namePlural'
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/attachment-flat-fields.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/attachment-flat-fields.mock.ts
index 8c14a453e18..e29d530c645 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/attachment-flat-fields.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/attachment-flat-fields.mock.ts
@@ -19,7 +19,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
defaultValue: "''",
description: 'Attachment name',
icon: 'IconFileUpload',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -41,7 +41,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
defaultValue: "''",
description: 'Attachment full path',
icon: 'IconLink',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -63,7 +63,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
defaultValue: "''",
description: 'Attachment type',
icon: 'IconList',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -85,7 +85,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
defaultValue: 'uuid',
description: 'Id',
icon: 'Icon123',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -107,7 +107,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
defaultValue: 'now',
description: 'Creation date',
icon: 'IconCalendar',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -129,7 +129,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
defaultValue: 'now',
description: 'Last time the record was changed',
icon: 'IconCalendarClock',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -151,7 +151,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Date when the record was deleted',
icon: 'IconCalendarMinus',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -173,7 +173,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Attachment author',
icon: 'IconCircleUser',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.SET_NULL,
@@ -199,7 +199,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Attachment task',
icon: 'IconNotes',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.SET_NULL,
@@ -225,7 +225,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Attachment note',
icon: 'IconNotes',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.SET_NULL,
@@ -251,7 +251,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Attachment person',
icon: 'IconUser',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
@@ -277,7 +277,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Attachment company',
icon: 'IconBuildingSkyscraper',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
@@ -303,7 +303,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Attachment opportunity',
icon: 'IconBuildingSkyscraper',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
@@ -329,7 +329,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Attachments Rocket',
icon: 'IconBuildingSkyscraper',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
@@ -355,7 +355,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Attachments Pet',
icon: 'IconBuildingSkyscraper',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
@@ -381,7 +381,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Attachments Survey result',
icon: 'IconBuildingSkyscraper',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/company-flat-fields.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/company-flat-fields.mock.ts
index 2ad19ea92e4..c6e2c6c8c98 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/company-flat-fields.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/company-flat-fields.mock.ts
@@ -19,7 +19,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
defaultValue: "''",
description: 'The company name',
icon: 'IconBuildingSkyscraper',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -46,7 +46,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
description:
'The company website URL. We use this url to fetch the company icon',
icon: 'IconLink',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -72,7 +72,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
},
description: 'The company Linkedin account',
icon: 'IconBrandLinkedin',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -94,7 +94,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
defaultValue: { amountMicros: null, currencyCode: "''" },
description: "The company's total annual revenue",
icon: 'IconMoneybag',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -125,7 +125,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
},
description: 'Address of the company',
icon: 'IconMap',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -147,7 +147,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
defaultValue: 0,
description: 'Company record position',
icon: 'IconHierarchy2',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -173,7 +173,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
},
description: 'The creator of the record',
icon: 'IconCreativeCommonsSa',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -195,7 +195,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Field used for full-text search',
icon: 'IconUser',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -217,7 +217,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
defaultValue: 'uuid',
description: 'Id',
icon: 'Icon123',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -239,7 +239,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
defaultValue: 'now',
description: 'Creation date',
icon: 'IconCalendar',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -261,7 +261,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
defaultValue: 'now',
description: 'Last time the record was changed',
icon: 'IconCalendarClock',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -283,7 +283,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Date when the record was deleted',
icon: 'IconCalendarMinus',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -305,7 +305,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'People linked to the company.',
icon: 'IconUsers',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -328,7 +328,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
description:
'Your team member responsible for managing the company account',
icon: 'IconUserCircle',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.SET_NULL,
@@ -354,7 +354,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Tasks tied to the company',
icon: 'IconCheckbox',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -376,7 +376,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Notes tied to the company',
icon: 'IconNotes',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -398,7 +398,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Opportunities linked to the company.',
icon: 'IconTargetArrow',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -420,7 +420,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Attachments linked to the company',
icon: 'IconFileImport',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -442,7 +442,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Timeline Activities linked to the company',
icon: 'IconTimelineEvent',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -464,7 +464,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
defaultValue: "''",
description: null,
icon: 'IconAdCircle',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -490,7 +490,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
},
description: null,
icon: 'IconVideo',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -512,7 +512,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: null,
icon: 'IconHome',
- standardOverrides: null,
+ overrides: null,
options: [
{
id: '325240d6-8c67-4fb2-bb02-51e9de4cd6be',
@@ -556,7 +556,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
defaultValue: false,
description: null,
icon: 'IconBrandVisa',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/get-flat-field-metadata.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/get-flat-field-metadata.mock.ts
index 0c761b42a3d..9a67f4b5547 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/get-flat-field-metadata.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/get-flat-field-metadata.mock.ts
@@ -40,7 +40,7 @@ export const getFlatFieldMetadataMock = <T extends FieldMetadataType>(
isUIEditable: true,
isLabelSyncedWithName: false,
isSystem: false,
- standardOverrides: null,
+ overrides: null,
workspaceId: faker.string.uuid(),
applicationId: faker.string.uuid(),
relationTargetFieldMetadataId: null,
@@ -68,7 +68,7 @@ export const getStandardFlatFieldMetadataMock = (
overrides: Omit<FlatFieldMetadataOverrides, 'isCustom' | 'isSystem'>,
) => {
return getFlatFieldMetadataMock({
- standardOverrides: {},
+ overrides: {},
isSystem: true,
...overrides,
});
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/get-morph-or-relation-target-flat-field-metadata-mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/get-morph-or-relation-target-flat-field-metadata-mock.ts
index 6b784b1164b..fc19701fe7f 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/get-morph-or-relation-target-flat-field-metadata-mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/get-morph-or-relation-target-flat-field-metadata-mock.ts
@@ -53,7 +53,7 @@ export const getRelationTargetFlatFieldMetadataMock = ({
isUIEditable: true,
isLabelSyncedWithName: false,
isSystem: false,
- standardOverrides: null,
+ overrides: null,
workspaceId: faker.string.uuid(),
objectMetadataId,
type,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/note-flat-fields.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/note-flat-fields.mock.ts
index 9e8e0e95c58..d1f05fc190a 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/note-flat-fields.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/note-flat-fields.mock.ts
@@ -15,7 +15,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
defaultValue: 0,
description: 'Note record position',
icon: 'IconHierarchy2',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -37,7 +37,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
defaultValue: "''",
description: 'Note title',
icon: 'IconNotes',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -59,7 +59,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Note body',
icon: 'IconFilePencil',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -85,7 +85,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
},
description: 'The creator of the record',
icon: 'IconCreativeCommonsSa',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -107,7 +107,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Field used for full-text search',
icon: 'IconUser',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -129,7 +129,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
defaultValue: 'uuid',
description: 'Id',
icon: 'Icon123',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -151,7 +151,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
defaultValue: 'now',
description: 'Creation date',
icon: 'IconCalendar',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -173,7 +173,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
defaultValue: 'now',
description: 'Last time the record was changed',
icon: 'IconCalendarClock',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -195,7 +195,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Date when the record was deleted',
icon: 'IconCalendarMinus',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -217,7 +217,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Note targets',
icon: 'IconArrowUpRight',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -239,7 +239,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Note attachments',
icon: 'IconFileImport',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -261,7 +261,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Timeline Activities linked to the note.',
icon: 'IconTimelineEvent',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/notetarget-flat-fields.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/notetarget-flat-fields.mock.ts
index e25d74208e9..1475e392c05 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/notetarget-flat-fields.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/notetarget-flat-fields.mock.ts
@@ -19,7 +19,7 @@ export const NOTETARGET_FLAT_FIELDS_MOCK = {
defaultValue: 'uuid',
description: 'Id',
icon: 'Icon123',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -41,7 +41,7 @@ export const NOTETARGET_FLAT_FIELDS_MOCK = {
defaultValue: 'now',
description: 'Creation date',
icon: 'IconCalendar',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -63,7 +63,7 @@ export const NOTETARGET_FLAT_FIELDS_MOCK = {
defaultValue: 'now',
description: 'Last time the record was changed',
icon: 'IconCalendarClock',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -85,7 +85,7 @@ export const NOTETARGET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Date when the record was deleted',
icon: 'IconCalendarMinus',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -107,7 +107,7 @@ export const NOTETARGET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'NoteTarget note',
icon: 'IconNotes',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.SET_NULL,
@@ -133,7 +133,7 @@ export const NOTETARGET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'NoteTarget person',
icon: 'IconUser',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
@@ -159,7 +159,7 @@ export const NOTETARGET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'NoteTarget company',
icon: 'IconBuildingSkyscraper',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
@@ -185,7 +185,7 @@ export const NOTETARGET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'NoteTarget opportunity',
icon: 'IconTargetArrow',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
@@ -211,7 +211,7 @@ export const NOTETARGET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'NoteTargets Rocket',
icon: 'IconBuildingSkyscraper',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
@@ -237,7 +237,7 @@ export const NOTETARGET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'NoteTargets Pet',
icon: 'IconBuildingSkyscraper',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
@@ -263,7 +263,7 @@ export const NOTETARGET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'NoteTargets Survey result',
icon: 'IconBuildingSkyscraper',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/opportunity-flat-fields.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/opportunity-flat-fields.mock.ts
index a830c080571..1c2356b6cea 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/opportunity-flat-fields.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/opportunity-flat-fields.mock.ts
@@ -19,7 +19,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
defaultValue: "''",
description: 'The opportunity name',
icon: 'IconTargetArrow',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -41,7 +41,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
defaultValue: { amountMicros: null, currencyCode: "''" },
description: 'Opportunity amount',
icon: 'IconCurrencyDollar',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -63,7 +63,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Opportunity close date',
icon: 'IconCalendarEvent',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -85,7 +85,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
defaultValue: "'NEW'",
description: 'Opportunity stage',
icon: 'IconProgressCheck',
- standardOverrides: null,
+ overrides: null,
options: [
{
id: 'fdf5cede-2b0e-44d0-adbe-3bc7e613efc9',
@@ -143,7 +143,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
defaultValue: 0,
description: 'Opportunity record position',
icon: 'IconHierarchy2',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -169,7 +169,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
},
description: 'The creator of the record',
icon: 'IconCreativeCommonsSa',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -191,7 +191,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Field used for full-text search',
icon: 'IconUser',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -213,7 +213,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
defaultValue: 'uuid',
description: 'Id',
icon: 'Icon123',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -235,7 +235,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
defaultValue: 'now',
description: 'Creation date',
icon: 'IconCalendar',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -257,7 +257,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
defaultValue: 'now',
description: 'Last time the record was changed',
icon: 'IconCalendarClock',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -279,7 +279,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Date when the record was deleted',
icon: 'IconCalendarMinus',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -301,7 +301,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Opportunity point of contact',
icon: 'IconUser',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.SET_NULL,
@@ -327,7 +327,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Opportunity company',
icon: 'IconBuildingSkyscraper',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.SET_NULL,
@@ -353,7 +353,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Tasks tied to the opportunity',
icon: 'IconCheckbox',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -375,7 +375,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Notes tied to the opportunity',
icon: 'IconNotes',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -397,7 +397,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Attachments linked to the opportunity',
icon: 'IconFileImport',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -419,7 +419,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Timeline Activities linked to the opportunity.',
icon: 'IconTimelineEvent',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/person-flat-fields.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/person-flat-fields.mock.ts
index 2fab6d5b86c..b20d6c950be 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/person-flat-fields.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/person-flat-fields.mock.ts
@@ -19,7 +19,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
defaultValue: { lastName: "''", firstName: "''" },
description: 'Contact’s name',
icon: 'IconUser',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -41,7 +41,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
defaultValue: { primaryEmail: "''", additionalEmails: null },
description: 'Contact’s Emails',
icon: 'IconMail',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -67,7 +67,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
},
description: 'Contact’s Linkedin account',
icon: 'IconBrandLinkedin',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -89,7 +89,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
defaultValue: "''",
description: 'Contact’s job title',
icon: 'IconBriefcase',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -116,7 +116,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
},
description: 'Contact’s phone numbers',
icon: 'IconPhone',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -138,7 +138,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
defaultValue: "''",
description: 'Contact’s avatar',
icon: 'IconFileUpload',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -160,7 +160,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
defaultValue: 0,
description: 'Person record Position',
icon: 'IconHierarchy2',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -186,7 +186,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
},
description: 'The creator of the record',
icon: 'IconCreativeCommonsSa',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -208,7 +208,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Field used for full-text search',
icon: 'IconUser',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -230,7 +230,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
defaultValue: 'uuid',
description: 'Id',
icon: 'Icon123',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -252,7 +252,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
defaultValue: 'now',
description: 'Creation date',
icon: 'IconCalendar',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -274,7 +274,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
defaultValue: 'now',
description: 'Last time the record was changed',
icon: 'IconCalendarClock',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -296,7 +296,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Date when the record was deleted',
icon: 'IconCalendarMinus',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -318,7 +318,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Contact’s company',
icon: 'IconBuildingSkyscraper',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.SET_NULL,
@@ -345,7 +345,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
description:
'List of opportunities for which that person is the point of contact',
icon: 'IconTargetArrow',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -367,7 +367,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Tasks tied to the contact',
icon: 'IconCheckbox',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -389,7 +389,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Notes tied to the contact',
icon: 'IconNotes',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -411,7 +411,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Attachments linked to the contact.',
icon: 'IconFileImport',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -433,7 +433,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Message Participants',
icon: 'IconUserCircle',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -455,7 +455,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Calendar Event Participants',
icon: 'IconCalendar',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -477,7 +477,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Events linked to the person',
icon: 'IconTimelineEvent',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -499,7 +499,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
defaultValue: "''",
description: null,
icon: 'IconNote',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -526,7 +526,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
},
description: null,
icon: 'IconBrandWhatsapp',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -548,7 +548,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: null,
icon: 'IconHome',
- standardOverrides: null,
+ overrides: null,
options: [
{
id: 'c33d02fd-0bd9-4769-bd32-036d9ff645a5',
@@ -592,7 +592,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: null,
icon: 'IconStars',
- standardOverrides: null,
+ overrides: null,
options: [
{
id: 'e6b4b1bb-c707-41cb-8f30-418a81ae3299',
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/pet-flat-fields.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/pet-flat-fields.mock.ts
index 73572d75000..968fff49aad 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/pet-flat-fields.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/pet-flat-fields.mock.ts
@@ -15,7 +15,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'NoteTargets tied to the Pet',
icon: 'IconCheckbox',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -37,7 +37,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: 'uuid',
description: 'Id',
icon: 'Icon123',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -59,7 +59,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: "'Untitled'",
description: 'Name',
icon: 'IconAbc',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -81,7 +81,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: 'now',
description: 'Creation date',
icon: 'IconCalendar',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -103,7 +103,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: 'now',
description: 'Last time the record was changed',
icon: 'IconCalendarClock',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -125,7 +125,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Deletion date',
icon: 'IconCalendarClock',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -147,7 +147,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: { name: "''", source: "'MANUAL'" },
description: 'The creator of the record',
icon: 'IconCreativeCommonsSa',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -169,7 +169,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: 0,
description: 'Position',
icon: 'IconHierarchy2',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -191,7 +191,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'TimelineActivities tied to the Pet',
icon: 'IconTimelineEvent',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -213,7 +213,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Attachments tied to the Pet',
icon: 'IconFileImport',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -235,7 +235,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'TaskTargets tied to the Pet',
icon: 'IconCheckbox',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -257,7 +257,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Field used for full-text search',
icon: null,
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: false,
@@ -279,7 +279,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: null,
icon: null,
- standardOverrides: null,
+ overrides: null,
options: [
{
id: '23a75463-ca50-4b33-bfd8-701e2944c76c',
@@ -344,7 +344,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: null,
icon: null,
- standardOverrides: null,
+ overrides: null,
options: [
{
id: '5bb37088-b364-44c5-a984-54b01aa241ce',
@@ -409,7 +409,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: "''",
description: null,
icon: null,
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -431,7 +431,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: null,
icon: null,
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -462,7 +462,7 @@ export const PET_FLAT_FIELDS_MOCK = {
},
description: null,
icon: null,
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -489,7 +489,7 @@ export const PET_FLAT_FIELDS_MOCK = {
},
description: null,
icon: null,
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -511,7 +511,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: { primaryEmail: "''", additionalEmails: null },
description: null,
icon: null,
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -533,7 +533,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: null,
icon: null,
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -555,7 +555,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: null,
icon: null,
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -581,7 +581,7 @@ export const PET_FLAT_FIELDS_MOCK = {
},
description: null,
icon: null,
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -603,7 +603,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: { amountMicros: null, currencyCode: "''" },
description: null,
icon: null,
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -625,7 +625,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: { lastName: "''", firstName: "''" },
description: null,
icon: null,
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -647,7 +647,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: null,
icon: null,
- standardOverrides: null,
+ overrides: null,
options: [
{
id: '4a3ed94d-30db-4231-8c2e-5893d55df860',
@@ -700,7 +700,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: null,
icon: null,
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -722,7 +722,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: null,
icon: null,
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -744,7 +744,7 @@ export const PET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: null,
icon: null,
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/rocket-flat-fields.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/rocket-flat-fields.mock.ts
index 6cd58a97fe6..84b2c5d60a2 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/rocket-flat-fields.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/rocket-flat-fields.mock.ts
@@ -15,7 +15,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
defaultValue: 'uuid',
description: 'Id',
icon: 'Icon123',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -37,7 +37,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
defaultValue: "'Untitled'",
description: 'Name',
icon: 'IconAbc',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -59,7 +59,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
defaultValue: 'now',
description: 'Creation date',
icon: 'IconCalendar',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -81,7 +81,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
defaultValue: 'now',
description: 'Last time the record was changed',
icon: 'IconCalendarClock',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -103,7 +103,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Deletion date',
icon: 'IconCalendarClock',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -125,7 +125,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
defaultValue: { name: "''", source: "'MANUAL'" },
description: 'The creator of the record',
icon: 'IconCreativeCommonsSa',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -147,7 +147,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
defaultValue: 0,
description: 'Position',
icon: 'IconHierarchy2',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -169,7 +169,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'TimelineActivities tied to the Rocket',
icon: 'IconTimelineEvent',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -191,7 +191,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Attachments tied to the Rocket',
icon: 'IconFileImport',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -213,7 +213,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'NoteTargets tied to the Rocket',
icon: 'IconCheckbox',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -235,7 +235,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'TaskTargets tied to the Rocket',
icon: 'IconCheckbox',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -257,7 +257,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Field used for full-text search',
icon: null,
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: false,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/task-flat-fields.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/task-flat-fields.mock.ts
index 035e0bbe7d7..d45181cb359 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/task-flat-fields.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/task-flat-fields.mock.ts
@@ -19,7 +19,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
defaultValue: 0,
description: 'Task record position',
icon: 'IconHierarchy2',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -41,7 +41,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
defaultValue: "''",
description: 'Task title',
icon: 'IconNotes',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -63,7 +63,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Task body',
icon: 'IconFilePencil',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -85,7 +85,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Task due date',
icon: 'IconCalendarEvent',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -107,7 +107,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
defaultValue: "'TODO'",
description: 'Task status',
icon: 'IconCheck',
- standardOverrides: null,
+ overrides: null,
options: [
{
id: '178a8a6f-6411-4731-a417-36e85e5526a3',
@@ -155,7 +155,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
},
description: 'The creator of the record',
icon: 'IconCreativeCommonsSa',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -177,7 +177,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Field used for full-text search',
icon: 'IconUser',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -199,7 +199,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
defaultValue: 'uuid',
description: 'Id',
icon: 'Icon123',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -221,7 +221,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
defaultValue: 'now',
description: 'Creation date',
icon: 'IconCalendar',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -243,7 +243,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
defaultValue: 'now',
description: 'Last time the record was changed',
icon: 'IconCalendarClock',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -265,7 +265,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Date when the record was deleted',
icon: 'IconCalendarMinus',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -287,7 +287,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Task targets',
icon: 'IconArrowUpRight',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -309,7 +309,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Task attachments',
icon: 'IconFileImport',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
@@ -331,7 +331,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Task assignee',
icon: 'IconUserCircle',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.SET_NULL,
@@ -357,7 +357,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Timeline Activities linked to the task.',
icon: 'IconTimelineEvent',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { relationType: RelationType.ONE_TO_MANY },
isActive: true,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/tasktarget-flat-fields.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/tasktarget-flat-fields.mock.ts
index 0e3d5a095e7..99557cc9d59 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/tasktarget-flat-fields.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/tasktarget-flat-fields.mock.ts
@@ -19,7 +19,7 @@ export const TASKTARGET_FLAT_FIELDS_MOCK = {
defaultValue: 'uuid',
description: 'Id',
icon: 'Icon123',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -41,7 +41,7 @@ export const TASKTARGET_FLAT_FIELDS_MOCK = {
defaultValue: 'now',
description: 'Creation date',
icon: 'IconCalendar',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -63,7 +63,7 @@ export const TASKTARGET_FLAT_FIELDS_MOCK = {
defaultValue: 'now',
description: 'Last time the record was changed',
icon: 'IconCalendarClock',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -85,7 +85,7 @@ export const TASKTARGET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Date when the record was deleted',
icon: 'IconCalendarMinus',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -107,7 +107,7 @@ export const TASKTARGET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'TaskTarget task',
icon: 'IconCheckbox',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.SET_NULL,
@@ -133,7 +133,7 @@ export const TASKTARGET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'TaskTarget person',
icon: 'IconUser',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
@@ -159,7 +159,7 @@ export const TASKTARGET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'TaskTarget company',
icon: 'IconBuildingSkyscraper',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
@@ -185,7 +185,7 @@ export const TASKTARGET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'TaskTarget opportunity',
icon: 'IconTargetArrow',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
@@ -211,7 +211,7 @@ export const TASKTARGET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'TaskTargets Rocket',
icon: 'IconBuildingSkyscraper',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
@@ -237,7 +237,7 @@ export const TASKTARGET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'TaskTargets Pet',
icon: 'IconBuildingSkyscraper',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
@@ -263,7 +263,7 @@ export const TASKTARGET_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'TaskTargets Survey result',
icon: 'IconBuildingSkyscraper',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/timelineactivity-flat-fields.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/timelineactivity-flat-fields.mock.ts
index 1be3cdecc46..efd07e6ea7e 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/timelineactivity-flat-fields.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__mocks__/timelineactivity-flat-fields.mock.ts
@@ -19,7 +19,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
defaultValue: 'now',
description: 'Creation date',
icon: 'IconCalendar',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -41,7 +41,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
defaultValue: "''",
description: 'Event name',
icon: 'IconAbc',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -63,7 +63,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Json value for event details',
icon: 'IconListDetails',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -85,7 +85,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
defaultValue: "''",
description: 'Cached record name',
icon: 'IconAbc',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -107,7 +107,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Linked Record id',
icon: 'IconAbc',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -129,7 +129,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Linked Object Metadata Id',
icon: 'IconAbc',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -151,7 +151,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
defaultValue: 'uuid',
description: 'Id',
icon: 'Icon123',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: null,
isActive: true,
@@ -173,7 +173,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
defaultValue: 'now',
description: 'Creation date',
icon: 'IconCalendar',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -195,7 +195,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
defaultValue: 'now',
description: 'Last time the record was changed',
icon: 'IconCalendarClock',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -217,7 +217,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Date when the record was deleted',
icon: 'IconCalendarMinus',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: { displayFormat: DateDisplayFormat.RELATIVE },
isActive: true,
@@ -239,7 +239,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Event workspace member',
icon: 'IconCircleUser',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
@@ -265,7 +265,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Event person',
icon: 'IconUser',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
@@ -291,7 +291,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Event company',
icon: 'IconBuildingSkyscraper',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
@@ -317,7 +317,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Event opportunity',
icon: 'IconTargetArrow',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.SET_NULL,
@@ -343,7 +343,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Event note',
icon: 'IconTargetArrow',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.SET_NULL,
@@ -369,7 +369,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Event task',
icon: 'IconTargetArrow',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.SET_NULL,
@@ -395,7 +395,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Event workflow',
icon: 'IconTargetArrow',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
@@ -421,7 +421,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Event workflow version',
icon: 'IconTargetArrow',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
@@ -447,7 +447,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'Event workflow run',
icon: 'IconTargetArrow',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
@@ -473,7 +473,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'TimelineActivities Rocket',
icon: 'IconBuildingSkyscraper',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
@@ -499,7 +499,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'TimelineActivities Pet',
icon: 'IconBuildingSkyscraper',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
@@ -525,7 +525,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
defaultValue: null,
description: 'TimelineActivities Survey result',
icon: 'IconBuildingSkyscraper',
- standardOverrides: null,
+ overrides: null,
options: null,
settings: {
onDelete: RelationOnDeleteAction.CASCADE,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__tests__/__snapshots__/morph-relation-from-create-field-input-to-flat-field-metadatas-to-create.spec.ts.snap b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__tests__/__snapshots__/morph-relation-from-create-field-input-to-flat-field-metadatas-to-create.spec.ts.snap
index 3edb98de377..cb69359a2dd 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__tests__/__snapshots__/morph-relation-from-create-field-input-to-flat-field-metadatas-to-create.spec.ts.snap
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__tests__/__snapshots__/morph-relation-from-create-field-input-to-flat-field-metadatas-to-create.spec.ts.snap
@@ -137,10 +137,10 @@ exports[`fromCreateFieldInputToFlatFieldMetadatasToCreate MORPH_RELATION test su
"name": "newFieldPets",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": Any<String>,
"relationTargetObjectMetadataUniversalIdentifier": Any<String>,
"searchFieldMetadataUniversalIdentifiers": [],
- "standardOverrides": null,
"type": "MORPH_RELATION",
"universalIdentifier": Any<String>,
"universalSettings": {
@@ -173,10 +173,10 @@ exports[`fromCreateFieldInputToFlatFieldMetadatasToCreate MORPH_RELATION test su
"name": "pet",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": Any<String>,
"relationTargetObjectMetadataUniversalIdentifier": Any<String>,
"searchFieldMetadataUniversalIdentifiers": [],
- "standardOverrides": null,
"type": "RELATION",
"universalIdentifier": Any<String>,
"universalSettings": {
@@ -211,10 +211,10 @@ exports[`fromCreateFieldInputToFlatFieldMetadatasToCreate MORPH_RELATION test su
"name": "newFieldCompanies",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": Any<String>,
"relationTargetObjectMetadataUniversalIdentifier": Any<String>,
"searchFieldMetadataUniversalIdentifiers": [],
- "standardOverrides": null,
"type": "MORPH_RELATION",
"universalIdentifier": Any<String>,
"universalSettings": {
@@ -247,10 +247,10 @@ exports[`fromCreateFieldInputToFlatFieldMetadatasToCreate MORPH_RELATION test su
"name": "company",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": Any<String>,
"relationTargetObjectMetadataUniversalIdentifier": Any<String>,
"searchFieldMetadataUniversalIdentifiers": [],
- "standardOverrides": null,
"type": "RELATION",
"universalIdentifier": Any<String>,
"universalSettings": {
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/constants/flat-field-metadata-relation-properties-to-compare.constant.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/constants/flat-field-metadata-relation-properties-to-compare.constant.ts
index 153c1541e79..5f5b6c6bdfc 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/constants/flat-field-metadata-relation-properties-to-compare.constant.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/constants/flat-field-metadata-relation-properties-to-compare.constant.ts
@@ -4,7 +4,7 @@ export const FLAT_FIELD_METADATA_RELATION_PROPERTIES_TO_COMPARE = [
'label',
'description',
'isActive',
- 'standardOverrides',
+ 'overrides',
'icon',
'name',
'universalSettings',
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/compute-flat-field-to-update-and-related-flat-field-to-update.util.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/compute-flat-field-to-update-and-related-flat-field-to-update.util.ts
index e135e760f1c..2e278293146 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/compute-flat-field-to-update-and-related-flat-field-to-update.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/compute-flat-field-to-update-and-related-flat-field-to-update.util.ts
@@ -44,7 +44,7 @@ export const computeFlatFieldToUpdateAndRelatedFlatFieldToUpdate = ({
flatObjectMetadata,
isSystemBuild,
}: ComputeFlatFieldToUpdateAndRelatedFlatFieldToUpdateArgs): ComputeFlatFieldToUpdateAndRelatedFlatFieldToUpdateReturnType => {
- const { standardOverrides, updatedEditableFieldProperties } =
+ const { overrides, updatedEditableFieldProperties } =
sanitizeRawUpdateFieldInput({
existingFlatFieldMetadata: fromFlatFieldMetadata,
rawUpdateFieldInput,
@@ -62,7 +62,7 @@ export const computeFlatFieldToUpdateAndRelatedFlatFieldToUpdate = ({
],
update: updatedEditableFieldProperties,
}),
- standardOverrides,
+ overrides,
};
if (updatedEditableFieldProperties.settings !== undefined) {
@@ -161,7 +161,7 @@ export const computeFlatFieldToUpdateAndRelatedFlatFieldToUpdate = ({
properties: relatedMorphPropertiesToUpdateTo,
update: updatedEditableFieldProperties,
}),
- standardOverrides,
+ overrides,
};
return {
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/from-flat-field-metadata-to-field-metadata-dto.util.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/from-flat-field-metadata-to-field-metadata-dto.util.ts
index 3ae644be9e6..ba2040a4944 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/from-flat-field-metadata-to-field-metadata-dto.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/from-flat-field-metadata-to-field-metadata-dto.util.ts
@@ -9,7 +9,7 @@ export const fromFlatFieldMetadataToFieldMetadataDto = (
updatedAt,
description,
icon,
- standardOverrides,
+ overrides,
isNullable,
isUnique,
settings,
@@ -49,7 +49,7 @@ export const fromFlatFieldMetadataToFieldMetadataDto = (
updatedAt: new Date(updatedAt),
description: description ?? undefined,
icon: icon ?? undefined,
- standardOverrides: standardOverrides ?? undefined,
+ overrides: overrides ?? undefined,
isNullable: isNullable ?? false,
isUnique: isUnique ?? false,
settings: settings ?? undefined,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/get-default-flat-field-metadata-from-create-field-input.util.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/get-default-flat-field-metadata-from-create-field-input.util.ts
index bc6a4fe4a4e..7cd3abd7358 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/get-default-flat-field-metadata-from-create-field-input.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/get-default-flat-field-metadata-from-create-field-input.util.ts
@@ -45,7 +45,7 @@ export const getDefaultFlatFieldMetadata = ({
isUnique: createFieldInput.isUnique ?? false,
label: createFieldInput.label,
name: createFieldInput.name,
- standardOverrides: null,
+ overrides: null,
type: createFieldInput.type,
universalIdentifier: createFieldInput.universalIdentifier ?? v4(),
options: createFieldInput.options ?? null,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/sanitize-raw-update-field-input.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/sanitize-raw-update-field-input.ts
index fdcff31544a..c2f0f9bcecb 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/sanitize-raw-update-field-input.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/sanitize-raw-update-field-input.ts
@@ -4,12 +4,12 @@ import {
} from 'twenty-shared/utils';
import { v4 } from 'uuid';
-import { FIELD_METADATA_STANDARD_OVERRIDES_PROPERTIES } from 'src/engine/metadata-modules/field-metadata/constants/field-metadata-standard-overrides-properties.constant';
import { type UpdateFieldInput } from 'src/engine/metadata-modules/field-metadata/dtos/update-field.input';
import {
FieldMetadataException,
FieldMetadataExceptionCode,
} from 'src/engine/metadata-modules/field-metadata/field-metadata.exception';
+import { ALL_OVERRIDABLE_PROPERTIES_BY_METADATA_NAME } from 'src/engine/metadata-modules/flat-entity/constant/all-overridable-properties-by-metadata-name.constant';
import { FLAT_FIELD_METADATA_EDITABLE_PROPERTIES } from 'src/engine/metadata-modules/flat-field-metadata/constants/flat-field-metadata-editable-properties.constant';
import { type FlatFieldMetadataEditableProperties } from 'src/engine/metadata-modules/flat-field-metadata/types/flat-field-metadata-editable-properties.constant';
import { type FlatFieldMetadata } from 'src/engine/metadata-modules/flat-field-metadata/types/flat-field-metadata.type';
@@ -62,7 +62,7 @@ export const sanitizeRawUpdateFieldInput = ({
if (!isStandardField || isSystemBuild) {
return {
updatedEditableFieldProperties,
- standardOverrides: null,
+ overrides: null,
};
}
@@ -82,16 +82,16 @@ export const sanitizeRawUpdateFieldInput = ({
);
}
- const { overrides: standardOverrides, remainingProperties } =
- computeMetadataOverridesBlob({
- overridableProperties: FIELD_METADATA_STANDARD_OVERRIDES_PROPERTIES,
- updatedProperties: updatedEditableFieldProperties,
- existingEntity: existingFlatFieldMetadata,
- existingOverrides: existingFlatFieldMetadata.standardOverrides,
- });
+ const { overrides, remainingProperties } = computeMetadataOverridesBlob({
+ overridableProperties:
+ ALL_OVERRIDABLE_PROPERTIES_BY_METADATA_NAME.fieldMetadata,
+ updatedProperties: updatedEditableFieldProperties,
+ existingEntity: existingFlatFieldMetadata,
+ existingOverrides: existingFlatFieldMetadata.overrides,
+ });
return {
- standardOverrides,
+ overrides,
updatedEditableFieldProperties: remainingProperties,
};
};
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/attachment-flat-object.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/attachment-flat-object.mock.ts
index 8e473fbde9d..bd49295b560 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/attachment-flat-object.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/attachment-flat-object.mock.ts
@@ -12,7 +12,7 @@ export const ATTACHMENT_FLAT_OBJECT_MOCK = getFlatObjectMetadataMock({
labelPlural: 'Attachments',
description: 'An attachment',
icon: 'IconFileImport',
- standardOverrides: null,
+ overrides: null,
targetTableName: 'DEPRECATED',
isRemote: false,
isActive: true,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/company-flat-object.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/company-flat-object.mock.ts
index fbeb1055a9b..a6ff92d0bdb 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/company-flat-object.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/company-flat-object.mock.ts
@@ -12,7 +12,7 @@ export const COMPANY_FLAT_OBJECT_MOCK = getFlatObjectMetadataMock({
labelPlural: 'Companies',
description: 'A company',
icon: 'IconBuildingSkyscraper',
- standardOverrides: null,
+ overrides: null,
targetTableName: 'DEPRECATED',
isRemote: false,
isActive: true,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/get-flat-object-metadata.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/get-flat-object-metadata.mock.ts
index d1b3ae33474..55cc7058172 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/get-flat-object-metadata.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/get-flat-object-metadata.mock.ts
@@ -44,7 +44,7 @@ export const getFlatObjectMetadataMock = (
nameSingular: 'defaultflatObjectMetadataNameSingular',
shortcut: 'shortcut',
applicationId,
- standardOverrides: null,
+ overrides: null,
targetTableName: '',
workspaceId: faker.string.uuid(),
createdAt,
@@ -69,7 +69,7 @@ export const getStandardFlatObjectMetadataMock = (
overrides: Omit<FlatObjectMetadataOverrides, 'isCustom' | 'isSystem'>,
) => {
return getFlatObjectMetadataMock({
- standardOverrides: {},
+ overrides: {},
isSystem: true,
applicationUniversalIdentifier:
TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/note-flat-object.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/note-flat-object.mock.ts
index 67d93a76dcc..cb5839ef886 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/note-flat-object.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/note-flat-object.mock.ts
@@ -12,7 +12,7 @@ export const NOTE_FLAT_OBJECT_MOCK = getFlatObjectMetadataMock({
labelPlural: 'Notes',
description: 'A note',
icon: 'IconNotes',
- standardOverrides: null,
+ overrides: null,
targetTableName: 'DEPRECATED',
isRemote: false,
isActive: true,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/note-target-flat-object.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/note-target-flat-object.mock.ts
index 8c3cb0f51c2..b96a3057936 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/note-target-flat-object.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/note-target-flat-object.mock.ts
@@ -12,7 +12,7 @@ export const NOTE_TARGET_FLAT_OBJECT_MOCK = getFlatObjectMetadataMock({
labelPlural: 'Note Targets',
description: 'A note target',
icon: 'IconCheckbox',
- standardOverrides: null,
+ overrides: null,
targetTableName: 'DEPRECATED',
isRemote: false,
isActive: true,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/opportunity-flat-object.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/opportunity-flat-object.mock.ts
index 536710f3427..3c8d5d6ccf4 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/opportunity-flat-object.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/opportunity-flat-object.mock.ts
@@ -12,7 +12,7 @@ export const OPPORTUNITY_FLAT_OBJECT_MOCK = getFlatObjectMetadataMock({
labelPlural: 'Opportunities',
description: 'An opportunity',
icon: 'IconTargetArrow',
- standardOverrides: null,
+ overrides: null,
targetTableName: 'DEPRECATED',
isRemote: false,
isActive: true,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/person-flat-object.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/person-flat-object.mock.ts
index c2b81be0bf5..b43770c85ef 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/person-flat-object.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/person-flat-object.mock.ts
@@ -12,7 +12,7 @@ export const PERSON_FLAT_OBJECT_MOCK = getFlatObjectMetadataMock({
labelPlural: 'People',
description: 'A person',
icon: 'IconUser',
- standardOverrides: null,
+ overrides: null,
targetTableName: 'DEPRECATED',
isRemote: false,
isActive: true,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/pet-flat-object.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/pet-flat-object.mock.ts
index 52031dc7393..f2d2cc6d185 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/pet-flat-object.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/pet-flat-object.mock.ts
@@ -8,7 +8,7 @@ export const PET_FLAT_OBJECT_MOCK = getFlatObjectMetadataMock({
labelPlural: 'Pets',
description: null,
icon: 'IconCat',
- standardOverrides: null,
+ overrides: null,
targetTableName: 'DEPRECATED',
isRemote: false,
isActive: true,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/rocket-flat-object.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/rocket-flat-object.mock.ts
index 1ded249661f..8c2d5e2d395 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/rocket-flat-object.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/rocket-flat-object.mock.ts
@@ -8,7 +8,7 @@ export const ROCKET_FLAT_OBJECT_MOCK = getFlatObjectMetadataMock({
labelPlural: 'Rockets',
description: 'A rocket',
icon: 'IconRocket',
- standardOverrides: null,
+ overrides: null,
targetTableName: 'DEPRECATED',
isRemote: false,
isActive: true,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/task-flat-object.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/task-flat-object.mock.ts
index b75974fa1c8..dd5c7379e28 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/task-flat-object.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/task-flat-object.mock.ts
@@ -12,7 +12,7 @@ export const TASK_FLAT_OBJECT_MOCK = getFlatObjectMetadataMock({
labelPlural: 'Tasks',
description: 'A task',
icon: 'IconCheckbox',
- standardOverrides: null,
+ overrides: null,
targetTableName: 'DEPRECATED',
isRemote: false,
isActive: true,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/task-target-flat-object.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/task-target-flat-object.mock.ts
index 5b8b4ffd71e..1702b331566 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/task-target-flat-object.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/task-target-flat-object.mock.ts
@@ -12,7 +12,7 @@ export const TASK_TARGET_FLAT_OBJECT_MOCK = getFlatObjectMetadataMock({
labelPlural: 'Task Targets',
description: 'A task target',
icon: 'IconCheckbox',
- standardOverrides: null,
+ overrides: null,
targetTableName: 'DEPRECATED',
isRemote: false,
isActive: true,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/timeline-activity-flat-object.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/timeline-activity-flat-object.mock.ts
index 6b369aa2bd5..fcbcf553e67 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/timeline-activity-flat-object.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/__mocks__/timeline-activity-flat-object.mock.ts
@@ -12,7 +12,7 @@ export const TIMELINE_ACTIVITY_FLAT_OBJECT_MOCK = getFlatObjectMetadataMock({
labelPlural: 'Timeline Activities',
description: 'Aggregated / filtered event to be displayed on the timeline',
icon: 'IconTimelineEvent',
- standardOverrides: null,
+ overrides: null,
targetTableName: 'DEPRECATED',
isRemote: false,
isActive: true,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/utils/from-create-object-input-to-flat-object-metadata-and-flat-field-metadatas-to-create.util.ts b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/utils/from-create-object-input-to-flat-object-metadata-and-flat-field-metadatas-to-create.util.ts
index 101263732f4..12b5b6f10d1 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/utils/from-create-object-input-to-flat-object-metadata-and-flat-field-metadatas-to-create.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/utils/from-create-object-input-to-flat-object-metadata-and-flat-field-metadatas-to-create.util.ts
@@ -89,7 +89,7 @@ export const fromCreateObjectInputToFlatObjectMetadataAndFlatFieldMetadatasToCre
namePlural: createObjectInput.namePlural,
nameSingular: createObjectInput.nameSingular,
shortcut: createObjectInput.shortcut ?? null,
- standardOverrides: null,
+ overrides: null,
targetTableName: 'DEPRECATED',
applicationUniversalIdentifier: flatApplication.universalIdentifier,
fieldUniversalIdentifiers: [],
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/utils/from-flat-object-metadata-to-object-metadata-dto.util.ts b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/utils/from-flat-object-metadata-to-object-metadata-dto.util.ts
index 0fe61c7075d..1730e47d990 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/utils/from-flat-object-metadata-to-object-metadata-dto.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/utils/from-flat-object-metadata-to-object-metadata-dto.util.ts
@@ -10,7 +10,7 @@ export const fromFlatObjectMetadataToObjectMetadataDto = (
color,
description,
icon,
- standardOverrides,
+ overrides,
shortcut,
duplicateCriteria,
id,
@@ -55,7 +55,7 @@ export const fromFlatObjectMetadataToObjectMetadataDto = (
color: color ?? undefined,
description: description ?? undefined,
icon: icon ?? undefined,
- standardOverrides: standardOverrides ?? undefined,
+ overrides: overrides ?? undefined,
shortcut: shortcut ?? undefined,
duplicateCriteria: duplicateCriteria ?? undefined,
applicationId,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/utils/from-update-object-input-to-flat-object-metadata-and-related-flat-entities.util.ts b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/utils/from-update-object-input-to-flat-object-metadata-and-related-flat-entities.util.ts
index 44b74d7de6f..184a2600637 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/utils/from-update-object-input-to-flat-object-metadata-and-related-flat-entities.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/utils/from-update-object-input-to-flat-object-metadata-and-related-flat-entities.util.ts
@@ -66,7 +66,7 @@ export const fromUpdateObjectInputToFlatObjectMetadataAndRelatedFlatEntities =
const isStandardObject = belongsToTwentyStandardApp(
existingFlatObjectMetadata,
);
- const { standardOverrides, updatedEditableObjectProperties } =
+ const { overrides, updatedEditableObjectProperties } =
sanitizeRawUpdateObjectInput({
existingFlatObjectMetadata,
rawUpdateObjectInput,
@@ -81,7 +81,7 @@ export const fromUpdateObjectInputToFlatObjectMetadataAndRelatedFlatEntities =
],
update: updatedEditableObjectProperties,
}),
- standardOverrides,
+ overrides,
};
if (
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/utils/sanitize-raw-update-object-input.ts b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/utils/sanitize-raw-update-object-input.ts
index daf81f73324..a91019dd7e0 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/utils/sanitize-raw-update-object-input.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-object-metadata/utils/sanitize-raw-update-object-input.ts
@@ -1,14 +1,13 @@
import { extractAndSanitizeObjectStringFields } from 'twenty-shared/utils';
+import { ALL_OVERRIDABLE_PROPERTIES_BY_METADATA_NAME } from 'src/engine/metadata-modules/flat-entity/constant/all-overridable-properties-by-metadata-name.constant';
import { FLAT_OBJECT_METADATA_EDITABLE_PROPERTIES } from 'src/engine/metadata-modules/flat-object-metadata/constants/flat-object-metadata-editable-properties.constant';
import { type FlatObjectMetadata } from 'src/engine/metadata-modules/flat-object-metadata/types/flat-object-metadata.type';
-import { OBJECT_METADATA_STANDARD_OVERRIDES_PROPERTIES } from 'src/engine/metadata-modules/object-metadata/constants/object-metadata-standard-overrides-properties.constant';
import { type UpdateOneObjectInput } from 'src/engine/metadata-modules/object-metadata/dtos/update-object.input';
import {
ObjectMetadataException,
ObjectMetadataExceptionCode,
} from 'src/engine/metadata-modules/object-metadata/object-metadata.exception';
-import { type ObjectMetadataStandardOverridesProperties } from 'src/engine/metadata-modules/object-metadata/types/object-metadata-standard-overrides-properties.types';
import { belongsToTwentyStandardApp } from 'src/engine/metadata-modules/utils/belongs-to-twenty-standard-app.util';
import { computeMetadataOverridesBlob } from 'src/engine/metadata-modules/utils/compute-metadata-overrides-blob.util';
@@ -37,7 +36,7 @@ export const sanitizeRawUpdateObjectInput = ({
if (!isStandardObject) {
return {
updatedEditableObjectProperties,
- standardOverrides: null,
+ overrides: null,
};
}
@@ -46,7 +45,7 @@ export const sanitizeRawUpdateObjectInput = ({
).filter(
(property) =>
!FLAT_OBJECT_METADATA_EDITABLE_PROPERTIES.standard.includes(
- property as ObjectMetadataStandardOverridesProperties,
+ property as (typeof FLAT_OBJECT_METADATA_EDITABLE_PROPERTIES.standard)[number],
),
);
@@ -57,16 +56,16 @@ export const sanitizeRawUpdateObjectInput = ({
);
}
- const { overrides: standardOverrides, remainingProperties } =
- computeMetadataOverridesBlob({
- overridableProperties: OBJECT_METADATA_STANDARD_OVERRIDES_PROPERTIES,
- updatedProperties: updatedEditableObjectProperties,
- existingEntity: existingFlatObjectMetadata,
- existingOverrides: existingFlatObjectMetadata.standardOverrides,
- });
+ const { overrides, remainingProperties } = computeMetadataOverridesBlob({
+ overridableProperties:
+ ALL_OVERRIDABLE_PROPERTIES_BY_METADATA_NAME.objectMetadata,
+ updatedProperties: updatedEditableObjectProperties,
+ existingEntity: existingFlatObjectMetadata,
+ existingOverrides: existingFlatObjectMetadata.overrides,
+ });
return {
- standardOverrides,
+ overrides,
updatedEditableObjectProperties: remainingProperties,
};
};
diff --git a/packages/twenty-server/src/engine/metadata-modules/minimal-metadata/minimal-metadata.service.ts b/packages/twenty-server/src/engine/metadata-modules/minimal-metadata/minimal-metadata.service.ts
index d35abacb29c..7eea41cbc09 100644
--- a/packages/twenty-server/src/engine/metadata-modules/minimal-metadata/minimal-metadata.service.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/minimal-metadata/minimal-metadata.service.ts
@@ -15,8 +15,8 @@ import { type CollectionHashDTO } from 'src/engine/metadata-modules/minimal-meta
import { MinimalMetadataDTO } from 'src/engine/metadata-modules/minimal-metadata/dtos/minimal-metadata.dto';
import { MinimalObjectMetadataDTO } from 'src/engine/metadata-modules/minimal-metadata/dtos/minimal-object-metadata.dto';
import { MinimalViewDTO } from 'src/engine/metadata-modules/minimal-metadata/dtos/minimal-view.dto';
-import { resolveObjectMetadataStandardOverride } from 'src/engine/metadata-modules/object-metadata/utils/resolve-object-metadata-standard-override.util';
import { belongsToTwentyStandardApp } from 'src/engine/metadata-modules/utils/belongs-to-twenty-standard-app.util';
+import { resolveEffectiveEntityProperty } from 'src/engine/metadata-modules/utils/resolve-effective-entity-property.util';
import { WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service';
import { type WorkspaceCacheKeyName } from 'src/engine/workspace-cache/types/workspace-cache-key.type';
@@ -80,33 +80,31 @@ export class MinimalMetadataService {
.map((flatObjectMetadata) => {
const isStandardApp = belongsToTwentyStandardApp(flatObjectMetadata);
- const objectMetadataForOverride = {
- labelPlural: flatObjectMetadata.labelPlural,
- labelSingular: flatObjectMetadata.labelSingular,
- description: flatObjectMetadata.description ?? undefined,
- icon: flatObjectMetadata.icon ?? undefined,
- color: flatObjectMetadata.color ?? undefined,
- standardOverrides: flatObjectMetadata.standardOverrides ?? undefined,
+ const overrides = flatObjectMetadata.overrides ?? undefined;
+ const i18nContext = {
+ locale: safeLocale,
+ i18nInstance,
+ isStandardApp,
};
return {
id: flatObjectMetadata.id,
nameSingular: flatObjectMetadata.nameSingular,
namePlural: flatObjectMetadata.namePlural,
- labelSingular: resolveObjectMetadataStandardOverride(
- objectMetadataForOverride,
- 'labelSingular',
- safeLocale,
- i18nInstance,
- isStandardApp,
- ),
- labelPlural: resolveObjectMetadataStandardOverride(
- objectMetadataForOverride,
- 'labelPlural',
- safeLocale,
- i18nInstance,
- isStandardApp,
- ),
+ labelSingular: resolveEffectiveEntityProperty({
+ metadataName: 'objectMetadata',
+ baseValue: flatObjectMetadata.labelSingular,
+ overrides,
+ property: 'labelSingular',
+ i18nContext,
+ }),
+ labelPlural: resolveEffectiveEntityProperty({
+ metadataName: 'objectMetadata',
+ baseValue: flatObjectMetadata.labelPlural,
+ overrides,
+ property: 'labelPlural',
+ i18nContext,
+ }),
icon: flatObjectMetadata.icon ?? undefined,
isActive: flatObjectMetadata.isActive,
isSystem: flatObjectMetadata.isSystem,
diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/constants/object-metadata-standard-overrides-properties.constant.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/constants/object-metadata-standard-overrides-properties.constant.ts
deleted file mode 100644
index 5de1b8526bd..00000000000
--- a/packages/twenty-server/src/engine/metadata-modules/object-metadata/constants/object-metadata-standard-overrides-properties.constant.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import { type MetadataUniversalFlatEntityPropertiesToCompare } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/metadata-universal-flat-entity-properties-to-compare.type';
-
-export const OBJECT_METADATA_STANDARD_OVERRIDES_PROPERTIES = [
- 'color',
- 'labelSingular',
- 'labelPlural',
- 'description',
- 'icon',
-] as const satisfies MetadataUniversalFlatEntityPropertiesToCompare<'objectMetadata'>[];
diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/constants/partial-system-flat-field-metadatas.constant.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/constants/partial-system-flat-field-metadatas.constant.ts
index b793b9b6e41..6f4b62afac6 100644
--- a/packages/twenty-server/src/engine/metadata-modules/object-metadata/constants/partial-system-flat-field-metadatas.constant.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/object-metadata/constants/partial-system-flat-field-metadatas.constant.ts
@@ -28,7 +28,7 @@ const PARTIAL_ID_FIELD = {
isLabelSyncedWithName: false,
defaultValue: 'uuid',
options: null,
- standardOverrides: null,
+ overrides: null,
morphId: null,
universalSettings: null,
relationTargetObjectMetadataUniversalIdentifier: null,
@@ -58,7 +58,7 @@ const PARTIAL_CREATED_AT_FIELD = {
isLabelSyncedWithName: false,
defaultValue: 'now',
options: null,
- standardOverrides: null,
+ overrides: null,
morphId: null,
universalSettings: null,
relationTargetObjectMetadataUniversalIdentifier: null,
@@ -88,7 +88,7 @@ const PARTIAL_UPDATED_AT_FIELD = {
isLabelSyncedWithName: false,
defaultValue: 'now',
options: null,
- standardOverrides: null,
+ overrides: null,
morphId: null,
universalSettings: null,
relationTargetObjectMetadataUniversalIdentifier: null,
@@ -118,7 +118,7 @@ const PARTIAL_DELETED_AT_FIELD = {
isLabelSyncedWithName: false,
defaultValue: null,
options: null,
- standardOverrides: null,
+ overrides: null,
morphId: null,
universalSettings: null,
relationTargetObjectMetadataUniversalIdentifier: null,
@@ -148,7 +148,7 @@ const PARTIAL_CREATED_BY_FIELD = {
isLabelSyncedWithName: false,
defaultValue: { name: "''", source: "'MANUAL'" },
options: null,
- standardOverrides: null,
+ overrides: null,
morphId: null,
universalSettings: null,
relationTargetObjectMetadataUniversalIdentifier: null,
@@ -178,7 +178,7 @@ const PARTIAL_UPDATED_BY_FIELD = {
isLabelSyncedWithName: false,
defaultValue: { name: "''", source: "'MANUAL'" },
options: null,
- standardOverrides: null,
+ overrides: null,
morphId: null,
universalSettings: null,
relationTargetObjectMetadataUniversalIdentifier: null,
@@ -208,7 +208,7 @@ const PARTIAL_POSITION_FIELD = {
isLabelSyncedWithName: false,
defaultValue: 0,
options: null,
- standardOverrides: null,
+ overrides: null,
morphId: null,
universalSettings: null,
relationTargetObjectMetadataUniversalIdentifier: null,
@@ -238,7 +238,7 @@ const PARTIAL_SEARCH_VECTOR_FIELD = {
isLabelSyncedWithName: false,
defaultValue: null,
options: null,
- standardOverrides: null,
+ overrides: null,
morphId: null,
// universalSettings for searchVector is computed at runtime
// based on the name field (getTsVectorColumnExpressionFromFields)
diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/dtos/object-metadata.dto.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/dtos/object-metadata.dto.ts
index e81bffb2195..361697706eb 100644
--- a/packages/twenty-server/src/engine/metadata-modules/object-metadata/dtos/object-metadata.dto.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/object-metadata/dtos/object-metadata.dto.ts
@@ -12,7 +12,7 @@ import { type WorkspaceEntityDuplicateCriteria } from 'src/engine/api/graphql/wo
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
import { FieldMetadataDTO } from 'src/engine/metadata-modules/field-metadata/dtos/field-metadata.dto';
import { IndexMetadataDTO } from 'src/engine/metadata-modules/index-metadata/dtos/index-metadata.dto';
-import { ObjectStandardOverridesDTO } from 'src/engine/metadata-modules/object-metadata/dtos/object-standard-overrides.dto';
+import { type ObjectMetadataOverrides } from 'src/engine/metadata-modules/object-metadata/types/object-metadata-overrides.type';
@ObjectType('Object')
@Authorize({
@@ -53,8 +53,8 @@ export class ObjectMetadataDTO {
@Field({ nullable: true })
icon?: string;
- @Field(() => ObjectStandardOverridesDTO, { nullable: true })
- standardOverrides?: ObjectStandardOverridesDTO;
+ @HideField()
+ overrides?: ObjectMetadataOverrides | null;
@Field({ nullable: true })
shortcut?: string;
diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/dtos/object-standard-overrides.dto.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/dtos/object-standard-overrides.dto.ts
deleted file mode 100644
index d94c5a56465..00000000000
--- a/packages/twenty-server/src/engine/metadata-modules/object-metadata/dtos/object-standard-overrides.dto.ts
+++ /dev/null
@@ -1,49 +0,0 @@
-import { Field, ObjectType } from '@nestjs/graphql';
-
-import { IsJSON, IsOptional, IsString } from 'class-validator';
-import { GraphQLJSON } from 'graphql-type-json';
-import { type APP_LOCALES } from 'twenty-shared/translations';
-
-@ObjectType('ObjectStandardOverrides')
-export class ObjectStandardOverridesDTO {
- @IsString()
- @IsOptional()
- @Field(() => String, { nullable: true })
- labelSingular?: string | null;
-
- @IsString()
- @IsOptional()
- @Field(() => String, { nullable: true })
- labelPlural?: string | null;
-
- @IsString()
- @IsOptional()
- @Field(() => String, { nullable: true })
- description?: string | null;
-
- @IsString()
- @IsOptional()
- @Field(() => String, { nullable: true })
- icon?: string | null;
-
- @IsString()
- @IsOptional()
- @Field(() => String, { nullable: true })
- color?: string | null;
-
- @IsJSON()
- @IsOptional()
- @Field(() => GraphQLJSON, {
- nullable: true,
- })
- translations?: Partial<
- Record<
- keyof typeof APP_LOCALES,
- {
- labelSingular?: string | null;
- labelPlural?: string | null;
- description?: string | null;
- }
- >
- > | null;
-}
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 072c5769831..c0d0894d03f 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
@@ -13,12 +13,13 @@ import { type WorkspaceEntityDuplicateCriteria } from 'src/engine/api/graphql/wo
import { FieldMetadataEntity } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity';
import { IndexMetadataEntity } from 'src/engine/metadata-modules/index-metadata/index-metadata.entity';
import { SearchFieldMetadataEntity } from 'src/engine/metadata-modules/search-field-metadata/search-field-metadata.entity';
-import { type ObjectStandardOverridesDTO } from 'src/engine/metadata-modules/object-metadata/dtos/object-standard-overrides.dto';
+import { type ObjectMetadataOverrides } from 'src/engine/metadata-modules/object-metadata/types/object-metadata-overrides.type';
import { FieldPermissionEntity } from 'src/engine/metadata-modules/object-permission/field-permission/field-permission.entity';
import { ObjectPermissionEntity } from 'src/engine/metadata-modules/object-permission/object-permission.entity';
import { ViewEntity } from 'src/engine/metadata-modules/view/entities/view.entity';
import { WasIntroducedInUpgrade } from 'src/engine/core-modules/upgrade/decorators/was-introduced-in-upgrade.decorator';
import { WasRemovedInUpgrade } from 'src/engine/core-modules/upgrade/decorators/was-removed-in-upgrade.decorator';
+import { ADD_METADATA_OVERRIDES_COLUMN_UPGRADE_COMMAND_NAME } from 'src/database/commands/upgrade-version-command/2-19/add-metadata-overrides-column-upgrade-command-name.constant';
import { RENAME_IS_UI_READ_ONLY_TO_IS_UI_EDITABLE_UPGRADE_COMMAND_NAME } from 'src/engine/metadata-modules/object-metadata/constants/rename-is-ui-read-only-to-is-ui-editable-upgrade-command-name.constant';
import { SyncableEntity } from 'src/engine/workspace-manager/types/syncable-entity.interface';
import { type JsonbProperty } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/jsonb-property.type';
@@ -64,8 +65,18 @@ export class ObjectMetadataEntity
@Column({ nullable: true, type: 'text' })
color: string | null;
+ @WasIntroducedInUpgrade({
+ upgradeCommandName: ADD_METADATA_OVERRIDES_COLUMN_UPGRADE_COMMAND_NAME,
+ })
+ @Column({ type: 'jsonb', nullable: true })
+ overrides: JsonbProperty<ObjectMetadataOverrides> | null;
+
+ /**
+ * @deprecated Superseded by `overrides`; kept readable for pods on the
+ * previous release during a rolling deploy. Drop deferred to 2-20/README.md.
+ */
@Column({ type: 'jsonb', nullable: true })
- standardOverrides: JsonbProperty<ObjectStandardOverridesDTO> | null;
+ standardOverrides: WasRemovedInUpgrade<JsonbProperty<ObjectMetadataOverrides> | null>;
/**
* @deprecated
diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.resolver.ts
index 4685a82ba0e..19bebcec07c 100644
--- a/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.resolver.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.resolver.ts
@@ -32,7 +32,7 @@ import { ObjectMetadataService } from 'src/engine/metadata-modules/object-metada
import { ObjectRecordCountService } from 'src/engine/metadata-modules/object-metadata/object-record-count.service';
import { SearchFieldMetadataDTO } from 'src/engine/metadata-modules/search-field-metadata/dtos/search-field-metadata.dto';
import { objectMetadataGraphqlApiExceptionHandler } from 'src/engine/metadata-modules/object-metadata/utils/object-metadata-graphql-api-exception-handler.util';
-import { resolveObjectMetadataStandardOverride } from 'src/engine/metadata-modules/object-metadata/utils/resolve-object-metadata-standard-override.util';
+import { resolveEffectiveEntityProperty } from 'src/engine/metadata-modules/utils/resolve-effective-entity-property.util';
import { PermissionsGraphqlApiExceptionFilter } from 'src/engine/metadata-modules/permissions/utils/permissions-graphql-api-exception.filter';
@UseGuards(WorkspaceAuthGuard)
@@ -92,14 +92,18 @@ export class ObjectMetadataResolver {
locale: context.req.locale,
});
- return resolveObjectMetadataStandardOverride(
- objectMetadata,
- labelKey,
- context.req.locale,
- i18n,
- isStandardApp,
- applicationCatalog,
- );
+ return resolveEffectiveEntityProperty({
+ metadataName: 'objectMetadata',
+ baseValue: objectMetadata[labelKey],
+ overrides: objectMetadata.overrides,
+ property: labelKey,
+ i18nContext: {
+ locale: context.req.locale,
+ i18nInstance: i18n,
+ isStandardApp,
+ applicationCatalog,
+ },
+ });
}
@ResolveField(() => String, { nullable: true })
diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/tools/object-metadata-tools.factory.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/tools/object-metadata-tools.factory.ts
index e2032825206..1679a807b9c 100644
--- a/packages/twenty-server/src/engine/metadata-modules/object-metadata/tools/object-metadata-tools.factory.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/object-metadata/tools/object-metadata-tools.factory.ts
@@ -10,7 +10,7 @@ import { ObjectMetadataService } from 'src/engine/metadata-modules/object-metada
import { WorkspaceMigrationBuilderException } from 'src/engine/workspace-manager/workspace-migration/exceptions/workspace-migration-builder-exception';
const OBJECT_STRIP_WHEN_NULLISH = [
- 'standardOverrides',
+ 'overrides',
'color',
'duplicateCriteria',
'shortcut',
diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/types/object-metadata-overrides.type.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/types/object-metadata-overrides.type.ts
new file mode 100644
index 00000000000..56d42a8be2f
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/object-metadata/types/object-metadata-overrides.type.ts
@@ -0,0 +1,19 @@
+import { type APP_LOCALES } from 'twenty-shared/translations';
+
+export type ObjectMetadataOverrides = {
+ labelSingular?: string | null;
+ labelPlural?: string | null;
+ description?: string | null;
+ icon?: string | null;
+ color?: string | null;
+ translations?: Partial<
+ Record<
+ keyof typeof APP_LOCALES,
+ {
+ labelSingular?: string | null;
+ labelPlural?: string | null;
+ description?: string | null;
+ }
+ >
+ > | null;
+};
diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/types/object-metadata-standard-overrides-properties.types.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/types/object-metadata-standard-overrides-properties.types.ts
deleted file mode 100644
index f5ced698a80..00000000000
--- a/packages/twenty-server/src/engine/metadata-modules/object-metadata/types/object-metadata-standard-overrides-properties.types.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import { type OBJECT_METADATA_STANDARD_OVERRIDES_PROPERTIES } from 'src/engine/metadata-modules/object-metadata/constants/object-metadata-standard-overrides-properties.constant';
-
-export type ObjectMetadataStandardOverridesProperties =
- (typeof OBJECT_METADATA_STANDARD_OVERRIDES_PROPERTIES)[number];
diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/__tests__/compute-flat-view-fields-to-create.util.spec.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/__tests__/compute-flat-view-fields-to-create.util.spec.ts
index 102ae472b50..fec9f78bbe2 100644
--- a/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/__tests__/compute-flat-view-fields-to-create.util.spec.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/__tests__/compute-flat-view-fields-to-create.util.spec.ts
@@ -31,7 +31,7 @@ const makeFieldMetadata = (
icon: null,
options: null,
settings: null,
- standardOverrides: null,
+ overrides: null,
relationTargetObjectMetadataUniversalIdentifier: null,
createdAt: '2026-01-01T00:00:00.000Z',
updatedAt: '2026-01-01T00:00:00.000Z',
diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/__tests__/resolve-object-metadata-standard-override.util.spec.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/__tests__/resolve-object-metadata-standard-override.util.spec.ts
deleted file mode 100644
index 4d450b29986..00000000000
--- a/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/__tests__/resolve-object-metadata-standard-override.util.spec.ts
+++ /dev/null
@@ -1,737 +0,0 @@
-import { type I18n } from '@lingui/core';
-import { SOURCE_LOCALE } from 'twenty-shared/translations';
-
-import { generateMessageId } from 'src/engine/core-modules/i18n/utils/generateMessageId';
-import { resolveObjectMetadataStandardOverride } from 'src/engine/metadata-modules/object-metadata/utils/resolve-object-metadata-standard-override.util';
-
-jest.mock('src/engine/core-modules/i18n/utils/generateMessageId');
-
-const mockGenerateMessageId = generateMessageId as jest.MockedFunction<
- typeof generateMessageId
->;
-
-describe('resolveObjectMetadataStandardOverride', () => {
- let mockI18n: jest.Mocked<I18n>;
-
- beforeEach(() => {
- jest.clearAllMocks();
- mockI18n = {
- _: jest.fn(),
- } as unknown as jest.Mocked<I18n>;
- });
-
- describe('Custom objects', () => {
- it('should return the object value for custom labelSingular object', () => {
- const objectMetadata = {
- labelSingular: 'My Custom',
- labelPlural: 'My Customs',
- description: 'Custom Description',
- icon: 'custom-icon',
- color: 'blue',
- isCustom: true,
- standardOverrides: undefined,
- };
-
- const result = resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'labelSingular',
- 'fr-FR',
- mockI18n,
- !objectMetadata.isCustom,
- );
-
- expect(result).toBe('My Custom');
- });
-
- it('should never translate a custom label even when it matches a standard catalog entry', () => {
- const objectMetadata = {
- labelSingular: 'Company',
- labelPlural: 'Companies',
- description: 'Custom Description',
- icon: 'custom-icon',
- color: 'blue',
- isCustom: true,
- standardOverrides: undefined,
- };
-
- mockGenerateMessageId.mockReturnValue('company.message.id');
- mockI18n._.mockReturnValue('Entreprise');
-
- const result = resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'labelSingular',
- 'fr-FR',
- mockI18n,
- !objectMetadata.isCustom,
- );
-
- expect(result).toBe('Company');
- expect(mockGenerateMessageId).not.toHaveBeenCalled();
- expect(mockI18n._).not.toHaveBeenCalled();
- });
-
- it('should return the object value for custom description object', () => {
- const objectMetadata = {
- labelSingular: 'My Custom',
- labelPlural: 'My Customs',
- description: 'Custom Description',
- icon: 'custom-icon',
- color: 'blue',
- isCustom: true,
- standardOverrides: undefined,
- };
-
- const result = resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'description',
- undefined,
- mockI18n,
- !objectMetadata.isCustom,
- );
-
- expect(result).toBe('Custom Description');
- });
-
- it('should return the object value for custom icon object', () => {
- const objectMetadata = {
- labelSingular: 'My Custom',
- labelPlural: 'My Customs',
- description: 'Custom Description',
- icon: 'custom-icon',
- color: 'blue',
- isCustom: true,
- standardOverrides: undefined,
- };
-
- const result = resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'icon',
- SOURCE_LOCALE,
- mockI18n,
- !objectMetadata.isCustom,
- );
-
- expect(result).toBe('custom-icon');
- });
-
- it('should return the object value for custom color object', () => {
- const objectMetadata = {
- labelSingular: 'My Custom',
- labelPlural: 'My Customs',
- description: 'Custom Description',
- icon: 'custom-icon',
- color: 'green',
- isCustom: true,
- standardOverrides: undefined,
- };
-
- const result = resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'color',
- SOURCE_LOCALE,
- mockI18n,
- !objectMetadata.isCustom,
- );
-
- expect(result).toBe('green');
- });
- });
-
- describe('Standard objects - Icon overrides', () => {
- it('should return override icon when available for standard object', () => {
- const objectMetadata = {
- labelSingular: 'My Custom',
- labelPlural: 'My Customs',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {
- icon: 'override-icon',
- },
- };
-
- const result = resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'icon',
- 'fr-FR',
- mockI18n,
- !objectMetadata.isCustom,
- );
-
- expect(result).toBe('override-icon');
- });
- });
-
- describe('Standard objects - Color overrides', () => {
- it('should return override color when available for standard object', () => {
- const objectMetadata = {
- labelSingular: 'Company',
- labelPlural: 'Companies',
- description: 'Standard Description',
- icon: 'default-icon',
- color: 'blue',
- isCustom: false,
- standardOverrides: {
- color: 'red',
- },
- };
-
- const result = resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'color',
- 'fr-FR',
- mockI18n,
- !objectMetadata.isCustom,
- );
-
- expect(result).toBe('red');
- });
-
- it('should return base color when no override exists for standard object', () => {
- const objectMetadata = {
- labelSingular: 'Company',
- labelPlural: 'Companies',
- description: 'Standard Description',
- icon: 'default-icon',
- color: 'blue',
- isCustom: false,
- standardOverrides: undefined,
- };
-
- mockGenerateMessageId.mockReturnValue('generated-message-id');
- mockI18n._.mockReturnValue('generated-message-id');
-
- const result = resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'color',
- SOURCE_LOCALE,
- mockI18n,
- !objectMetadata.isCustom,
- );
-
- expect(result).toBe('blue');
- });
- });
-
- describe('Standard objects - Translation overrides', () => {
- it('should return translation override when available for non-icon objects', () => {
- const objectMetadata = {
- labelSingular: 'Standard Label',
- labelPlural: 'Standard Labels',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {
- translations: {
- 'fr-FR': {
- labelSingular: 'Libellé traduit',
- labelPlural: 'Libellés traduits',
- description: 'Description traduite',
- },
- },
- },
- };
-
- expect(
- resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'labelSingular',
- 'fr-FR',
- mockI18n,
- !objectMetadata.isCustom,
- ),
- ).toBe('Libellé traduit');
- expect(
- resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'labelPlural',
- 'fr-FR',
- mockI18n,
- !objectMetadata.isCustom,
- ),
- ).toBe('Libellés traduits');
- expect(
- resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'description',
- 'fr-FR',
- mockI18n,
- !objectMetadata.isCustom,
- ),
- ).toBe('Description traduite');
- });
-
- it('should fallback when translation override is not available for the locale', () => {
- const objectMetadata = {
- labelSingular: 'Standard Label',
- labelPlural: 'Standard Labels',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {
- translations: {
- 'es-ES': {
- labelSingular: 'Etiqueta en español',
- labelPlural: 'Etiquetas en español',
- description: 'Descripción en español',
- },
- },
- },
- };
-
- mockGenerateMessageId.mockReturnValue('generated-message-id');
- mockI18n._.mockReturnValue('generated-message-id');
-
- const result = resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'labelSingular',
- 'fr-FR',
- mockI18n,
- !objectMetadata.isCustom,
- );
-
- expect(result).toBe('Standard Label');
- });
-
- it('should fallback when translation override is not available for the labelKey', () => {
- const objectMetadata = {
- labelSingular: 'Standard Label',
- labelPlural: 'Standard Labels',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {
- translations: {
- 'fr-FR': {
- labelPlural: 'Libellés traduits',
- labelSingular: 'Libellé traduit',
- },
- },
- },
- };
-
- mockGenerateMessageId.mockReturnValue('generated-message-id');
- mockI18n._.mockReturnValue('generated-message-id');
-
- const result = resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'description',
- 'fr-FR',
- mockI18n,
- !objectMetadata.isCustom,
- );
-
- expect(result).toBe('Standard Description');
- });
-
- it('should not use translation overrides when locale is undefined', () => {
- const objectMetadata = {
- labelSingular: 'Standard Label',
- labelPlural: 'Standard Labels',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {
- translations: {
- 'fr-FR': {
- labelSingular: 'Libellé traduit',
- labelPlural: 'Libellés traduits',
- description: 'Description traduite',
- },
- },
- },
- };
-
- mockGenerateMessageId.mockReturnValue('generated-message-id');
- mockI18n._.mockReturnValue('generated-message-id');
-
- const result = resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'labelSingular',
- undefined,
- mockI18n,
- !objectMetadata.isCustom,
- );
-
- expect(result).toBe('Standard Label');
- });
- });
-
- describe('Standard objects - SOURCE_LOCALE overrides', () => {
- it('should return direct override for SOURCE_LOCALE when available', () => {
- const objectMetadata = {
- labelSingular: 'Standard Label',
- labelPlural: 'Standard Labels',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {
- labelSingular: 'Overridden Label',
- labelPlural: 'Overridden Labels',
- description: 'Overridden Description',
- icon: 'overridden-icon',
- },
- };
-
- expect(
- resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'labelSingular',
- SOURCE_LOCALE,
- mockI18n,
- !objectMetadata.isCustom,
- ),
- ).toBe('Overridden Label');
- expect(
- resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'labelPlural',
- SOURCE_LOCALE,
- mockI18n,
- !objectMetadata.isCustom,
- ),
- ).toBe('Overridden Labels');
- expect(
- resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'description',
- SOURCE_LOCALE,
- mockI18n,
- !objectMetadata.isCustom,
- ),
- ).toBe('Overridden Description');
- expect(
- resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'icon',
- SOURCE_LOCALE,
- mockI18n,
- !objectMetadata.isCustom,
- ),
- ).toBe('overridden-icon');
- });
-
- it('should use direct override for non-SOURCE_LOCALE', () => {
- const objectMetadata = {
- labelSingular: 'Standard Label',
- labelPlural: 'Standard Labels',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {
- labelSingular: 'Overridden Label',
- labelPlural: 'Overridden Labels',
- },
- };
-
- const result = resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'labelSingular',
- 'fr-FR',
- mockI18n,
- !objectMetadata.isCustom,
- );
-
- expect(result).toBe('Overridden Label');
- });
-
- it('should not use undefined override for SOURCE_LOCALE', () => {
- const objectMetadata = {
- labelSingular: 'Standard Label',
- labelPlural: 'Standard Labels',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {
- labelSingular: undefined,
- },
- };
-
- mockGenerateMessageId.mockReturnValue('generated-message-id');
- mockI18n._.mockReturnValue('generated-message-id');
-
- const result = resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'labelSingular',
- SOURCE_LOCALE,
- mockI18n,
- !objectMetadata.isCustom,
- );
-
- expect(result).toBe('Standard Label');
- });
- });
-
- describe('Standard objects - Auto translation fallback', () => {
- it('should return translated message when translation is available', () => {
- const objectMetadata = {
- labelSingular: 'Standard Label',
- labelPlural: 'Standard Labels',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: undefined,
- };
-
- mockGenerateMessageId.mockReturnValue('standard.label.message.id');
- mockI18n._.mockReturnValue('Libellé traduit automatiquement');
-
- const result = resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'labelSingular',
- 'fr-FR',
- mockI18n,
- !objectMetadata.isCustom,
- );
-
- expect(mockGenerateMessageId).toHaveBeenCalledWith('Standard Label');
- expect(mockI18n._).toHaveBeenCalledWith('standard.label.message.id');
- expect(result).toBe('Libellé traduit automatiquement');
- });
-
- it('should return original object value when no translation is found', () => {
- const objectMetadata = {
- labelSingular: 'Standard Label',
- labelPlural: 'Standard Labels',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: undefined,
- };
-
- const messageId = 'standard.label.message.id';
-
- mockGenerateMessageId.mockReturnValue(messageId);
- mockI18n._.mockReturnValue(messageId);
-
- const result = resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'labelSingular',
- 'fr-FR',
- mockI18n,
- !objectMetadata.isCustom,
- );
-
- expect(result).toBe('Standard Label');
- });
- });
-
- describe('Priority order - Standard objects', () => {
- it('should prioritize translation override over SOURCE_LOCALE override for non-SOURCE_LOCALE', () => {
- const objectMetadata = {
- labelSingular: 'Standard Label',
- labelPlural: 'Standard Labels',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {
- labelSingular: 'Source Override',
- labelPlural: 'Source Overrides',
- translations: {
- 'fr-FR': {
- labelSingular: 'Translation Override',
- labelPlural: 'Translation Overrides',
- },
- },
- },
- };
-
- const result = resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'labelSingular',
- 'fr-FR',
- mockI18n,
- !objectMetadata.isCustom,
- );
-
- expect(result).toBe('Translation Override');
- expect(mockGenerateMessageId).not.toHaveBeenCalled();
- expect(mockI18n._).not.toHaveBeenCalled();
- });
-
- it('should prioritize SOURCE_LOCALE override over auto translation for SOURCE_LOCALE', () => {
- const objectMetadata = {
- labelSingular: 'Standard Label',
- labelPlural: 'Standard Labels',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {
- labelSingular: 'Source Override',
- labelPlural: 'Source Overrides',
- },
- };
-
- const result = resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'labelSingular',
- SOURCE_LOCALE,
- mockI18n,
- !objectMetadata.isCustom,
- );
-
- expect(result).toBe('Source Override');
- expect(mockGenerateMessageId).not.toHaveBeenCalled();
- expect(mockI18n._).not.toHaveBeenCalled();
- });
-
- it('should use auto translation when no overrides are available', () => {
- const objectMetadata = {
- labelSingular: 'Standard Label',
- labelPlural: 'Standard Labels',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {},
- };
-
- mockGenerateMessageId.mockReturnValue('auto.translation.id');
- mockI18n._.mockReturnValue('Auto Translated Label');
-
- const result = resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'labelSingular',
- 'de-DE',
- mockI18n,
- !objectMetadata.isCustom,
- );
-
- expect(result).toBe('Auto Translated Label');
- expect(mockGenerateMessageId).toHaveBeenCalledWith('Standard Label');
- expect(mockI18n._).toHaveBeenCalledWith('auto.translation.id');
- });
- });
-
- describe('Undefined locale handling', () => {
- it('should use SOURCE_LOCALE fallback when locale is undefined for standard object', () => {
- const objectMetadata = {
- labelSingular: 'Standard Label',
- labelPlural: 'Standard Labels',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: {
- labelSingular: 'Source Override',
- },
- };
-
- const result = resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'labelSingular',
- undefined,
- mockI18n,
- !objectMetadata.isCustom,
- );
-
- expect(result).toBe('Source Override');
- expect(mockGenerateMessageId).not.toHaveBeenCalled();
- expect(mockI18n._).not.toHaveBeenCalled();
- });
-
- it('should fall back to auto translation when locale is undefined and no SOURCE_LOCALE override exists', () => {
- mockI18n._.mockReturnValue('Auto Translated Label');
- mockGenerateMessageId.mockReturnValue('auto.translation.id');
-
- const objectMetadata = {
- labelSingular: 'Standard Label',
- labelPlural: 'Standard Labels',
- description: 'Standard Description',
- icon: 'default-icon',
- isCustom: false,
- standardOverrides: undefined,
- };
-
- const result = resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'labelSingular',
- undefined,
- mockI18n,
- !objectMetadata.isCustom,
- );
-
- expect(result).toBe('Auto Translated Label');
- expect(mockGenerateMessageId).toHaveBeenCalledWith('Standard Label');
- expect(mockI18n._).toHaveBeenCalledWith('auto.translation.id');
- });
- });
-
- describe('Application objects - catalog translations', () => {
- it('should translate an application object label from its catalog', () => {
- mockGenerateMessageId.mockReturnValue('app.label.id');
-
- const objectMetadata = {
- labelSingular: 'Property',
- labelPlural: 'Properties',
- description: 'A property',
- icon: 'IconBuilding',
- isCustom: false,
- standardOverrides: undefined,
- };
-
- const result = resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'labelSingular',
- 'fr-FR',
- mockI18n,
- false,
- { 'app.label.id': 'Bien' },
- );
-
- expect(result).toBe('Bien');
- expect(mockI18n._).not.toHaveBeenCalled();
- });
-
- it('should fall back to the source value when the catalog has no entry', () => {
- mockGenerateMessageId.mockReturnValue('missing.id');
-
- const objectMetadata = {
- labelSingular: 'Property',
- labelPlural: 'Properties',
- description: 'A property',
- icon: 'IconBuilding',
- isCustom: false,
- standardOverrides: undefined,
- };
-
- const result = resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'labelSingular',
- 'fr-FR',
- mockI18n,
- false,
- {},
- );
-
- expect(result).toBe('Property');
- });
-
- it('should prioritize a workspace translation override over the catalog', () => {
- const objectMetadata = {
- labelSingular: 'Property',
- labelPlural: 'Properties',
- description: 'A property',
- icon: 'IconBuilding',
- isCustom: false,
- standardOverrides: {
- translations: {
- 'fr-FR': {
- labelSingular: 'Bien immobilier',
- },
- },
- },
- };
-
- const result = resolveObjectMetadataStandardOverride(
- objectMetadata,
- 'labelSingular',
- 'fr-FR',
- mockI18n,
- false,
- { 'app.label.id': 'Bien' },
- );
-
- expect(result).toBe('Bien immobilier');
- expect(mockGenerateMessageId).not.toHaveBeenCalled();
- });
- });
-});
diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/build-default-flat-field-metadatas-for-custom-object.util.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/build-default-flat-field-metadatas-for-custom-object.util.ts
index 6676b19cbb4..8ea60384671 100644
--- a/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/build-default-flat-field-metadatas-for-custom-object.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/build-default-flat-field-metadatas-for-custom-object.util.ts
@@ -139,7 +139,7 @@ export const buildDefaultFlatFieldMetadatasForCustomObject = ({
createdAt: now,
updatedAt: now,
options: null,
- standardOverrides: null,
+ overrides: null,
morphId: null,
applicationUniversalIdentifier,
objectMetadataUniversalIdentifier,
diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/from-object-metadata-entity-to-object-metadata-dto.util.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/from-object-metadata-entity-to-object-metadata-dto.util.ts
index 74683337ec3..6c3d54b43c3 100644
--- a/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/from-object-metadata-entity-to-object-metadata-dto.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/from-object-metadata-entity-to-object-metadata-dto.util.ts
@@ -15,7 +15,7 @@ export const fromObjectMetadataEntityToObjectMetadataDto = (
icon: entity.icon ?? undefined,
color: entity.color ?? undefined,
shortcut: entity.shortcut ?? undefined,
- standardOverrides: entity.standardOverrides ?? undefined,
+ overrides: entity.overrides ?? undefined,
isRemote: entity.isRemote,
isActive: entity.isActive,
isSystem: entity.isSystem,
diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/resolve-object-metadata-standard-override.util.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/resolve-object-metadata-standard-override.util.ts
deleted file mode 100644
index 46b2727dc33..00000000000
--- a/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/resolve-object-metadata-standard-override.util.ts
+++ /dev/null
@@ -1,61 +0,0 @@
-import { type I18n } from '@lingui/core';
-import { isNonEmptyString } from '@sniptt/guards';
-import { type APP_LOCALES, SOURCE_LOCALE } from 'twenty-shared/translations';
-import { isDefined } from 'twenty-shared/utils';
-
-import { translateStandardLabel } from 'src/engine/core-modules/i18n/utils/translate-standard-label.util';
-import { type ObjectMetadataDTO } from 'src/engine/metadata-modules/object-metadata/dtos/object-metadata.dto';
-
-export const resolveObjectMetadataStandardOverride = (
- objectMetadata: Pick<
- ObjectMetadataDTO,
- | 'color'
- | 'labelPlural'
- | 'labelSingular'
- | 'description'
- | 'icon'
- | 'standardOverrides'
- >,
- labelKey: 'color' | 'labelPlural' | 'labelSingular' | 'description' | 'icon',
- locale: keyof typeof APP_LOCALES | undefined,
- i18nInstance: I18n,
- isStandardApp: boolean,
- applicationCatalog?: Record<string, string>,
-): string => {
- const safeLocale = locale ?? SOURCE_LOCALE;
-
- if (!isStandardApp && !isDefined(applicationCatalog)) {
- return objectMetadata[labelKey] ?? '';
- }
-
- if (
- (labelKey === 'icon' || labelKey === 'color') &&
- isDefined(objectMetadata.standardOverrides?.[labelKey])
- ) {
- return objectMetadata.standardOverrides[labelKey];
- }
-
- if (
- isDefined(objectMetadata.standardOverrides?.translations) &&
- labelKey !== 'icon' &&
- labelKey !== 'color'
- ) {
- const translationValue =
- objectMetadata.standardOverrides.translations[safeLocale]?.[labelKey];
-
- if (isDefined(translationValue)) {
- return translationValue;
- }
- }
-
- if (isNonEmptyString(objectMetadata.standardOverrides?.[labelKey])) {
- return objectMetadata.standardOverrides[labelKey] ?? '';
- }
-
- return translateStandardLabel({
- sourceValue: objectMetadata[labelKey] ?? '',
- isStandardApp,
- applicationCatalog,
- i18nInstance,
- });
-};
diff --git a/packages/twenty-server/src/engine/metadata-modules/page-layout/services/page-layout-update.service.ts b/packages/twenty-server/src/engine/metadata-modules/page-layout/services/page-layout-update.service.ts
index f9bcaf1c318..fb1ea8199b7 100644
--- a/packages/twenty-server/src/engine/metadata-modules/page-layout/services/page-layout-update.service.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/page-layout/services/page-layout-update.service.ts
@@ -36,7 +36,7 @@ import {
} from 'src/engine/metadata-modules/page-layout/exceptions/page-layout.exception';
import { fromFlatPageLayoutWithTabsAndWidgetsToPageLayoutDto } from 'src/engine/metadata-modules/page-layout/utils/from-flat-page-layout-with-tabs-and-widgets-to-page-layout-dto.util';
import { isCallerOverridingEntity } from 'src/engine/metadata-modules/utils/is-caller-overriding-entity.util';
-import { resolveFlatEntityOverridableProperties } from 'src/engine/metadata-modules/utils/resolve-flat-entity-overridable-properties.util';
+import { resolveEffectiveEntity } from 'src/engine/metadata-modules/utils/resolve-effective-entity.util';
import { sanitizeOverridableEntityInput } from 'src/engine/metadata-modules/utils/sanitize-overridable-entity-input.util';
import { ViewService } from 'src/engine/metadata-modules/view/services/view.service';
import { WorkspaceMigrationBuilderException } from 'src/engine/workspace-manager/workspace-migration/exceptions/workspace-migration-builder-exception';
@@ -283,9 +283,7 @@ export class PageLayoutUpdateService {
.filter(isDefined)
.filter((tab) => tab.pageLayoutId === existingPageLayout.id);
- const resolvedExistingTabs = existingTabs.map(
- resolveFlatEntityOverridableProperties,
- );
+ const resolvedExistingTabs = existingTabs.map(resolveEffectiveEntity);
const {
toCreate: entitiesToCreate,
@@ -561,9 +559,7 @@ export class PageLayoutUpdateService {
flatPageLayoutWidgetMaps,
});
- const resolvedExistingWidgets = existingWidgets.map(
- resolveFlatEntityOverridableProperties,
- );
+ const resolvedExistingWidgets = existingWidgets.map(resolveEffectiveEntity);
const {
toCreate: entitiesToCreate,
diff --git a/packages/twenty-server/src/engine/metadata-modules/utils/__tests__/resolve-effective-entity.util.spec.ts b/packages/twenty-server/src/engine/metadata-modules/utils/__tests__/resolve-effective-entity.util.spec.ts
new file mode 100644
index 00000000000..f96f7de8702
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/utils/__tests__/resolve-effective-entity.util.spec.ts
@@ -0,0 +1,292 @@
+import { type I18n } from '@lingui/core';
+import { isNonEmptyString } from '@sniptt/guards';
+import { type APP_LOCALES, SOURCE_LOCALE } from 'twenty-shared/translations';
+import { isDefined } from 'twenty-shared/utils';
+
+import { translateStandardLabel } from 'src/engine/core-modules/i18n/utils/translate-standard-label.util';
+import { resolveEffectiveEntityProperty } from 'src/engine/metadata-modules/utils/resolve-effective-entity-property.util';
+import { resolveEffectiveEntity } from 'src/engine/metadata-modules/utils/resolve-effective-entity.util';
+
+// Frozen reference implementations of the three resolvers that existed before
+// unification (resolve-object-metadata-standard-override,
+// resolve-field-metadata-standard-override,
+// resolve-flat-entity-overridable-properties), with standardOverrides renamed
+// to overrides. The unified resolver must reproduce these byte-for-byte across
+// the corpus below — this is the safety net for the whole override unification.
+
+type Locale = keyof typeof APP_LOCALES | undefined;
+
+// oxlint-disable-next-line no-explicit-any
+type AnyOverrides = any;
+
+const frozenResolveObjectOverride = (
+ objectMetadata: AnyOverrides,
+ labelKey: 'color' | 'labelPlural' | 'labelSingular' | 'description' | 'icon',
+ locale: Locale,
+ i18nInstance: I18n,
+ isStandardApp: boolean,
+ applicationCatalog?: Record<string, string>,
+): string => {
+ const safeLocale = locale ?? SOURCE_LOCALE;
+
+ if (!isStandardApp && !isDefined(applicationCatalog)) {
+ return objectMetadata[labelKey] ?? '';
+ }
+
+ if (
+ (labelKey === 'icon' || labelKey === 'color') &&
+ isDefined(objectMetadata.overrides?.[labelKey])
+ ) {
+ return objectMetadata.overrides[labelKey];
+ }
+
+ if (
+ isDefined(objectMetadata.overrides?.translations) &&
+ labelKey !== 'icon' &&
+ labelKey !== 'color'
+ ) {
+ const translationValue =
+ objectMetadata.overrides.translations[safeLocale]?.[labelKey];
+
+ if (isDefined(translationValue)) {
+ return translationValue;
+ }
+ }
+
+ if (isNonEmptyString(objectMetadata.overrides?.[labelKey])) {
+ return objectMetadata.overrides[labelKey] ?? '';
+ }
+
+ return translateStandardLabel({
+ sourceValue: objectMetadata[labelKey] ?? '',
+ isStandardApp,
+ applicationCatalog,
+ i18nInstance,
+ });
+};
+
+const frozenResolveFieldOverride = (
+ fieldMetadata: AnyOverrides,
+ labelKey: 'label' | 'description' | 'icon',
+ locale: Locale,
+ i18nInstance: I18n,
+ isStandardApp: boolean,
+ applicationCatalog?: Record<string, string>,
+): string => {
+ const safeLocale = locale ?? SOURCE_LOCALE;
+
+ if (!isStandardApp && !isDefined(applicationCatalog)) {
+ return fieldMetadata[labelKey] ?? '';
+ }
+
+ if (labelKey === 'icon' && isDefined(fieldMetadata.overrides?.icon)) {
+ return fieldMetadata.overrides.icon;
+ }
+
+ if (isDefined(fieldMetadata.overrides?.translations) && labelKey !== 'icon') {
+ const translationValue =
+ fieldMetadata.overrides.translations[safeLocale]?.[labelKey];
+
+ if (isDefined(translationValue)) {
+ return translationValue;
+ }
+ }
+
+ if (isNonEmptyString(fieldMetadata.overrides?.[labelKey])) {
+ return fieldMetadata.overrides[labelKey] ?? '';
+ }
+
+ return translateStandardLabel({
+ sourceValue: fieldMetadata[labelKey] ?? '',
+ isStandardApp,
+ applicationCatalog,
+ i18nInstance,
+ });
+};
+
+const frozenResolveFlat = (flatEntity: AnyOverrides): AnyOverrides => {
+ if (!isDefined(flatEntity.overrides)) {
+ return flatEntity;
+ }
+
+ return {
+ ...flatEntity,
+ ...flatEntity.overrides,
+ };
+};
+
+const mockI18n = {
+ _: (id: string) => `translated:${id}`,
+} as unknown as I18n;
+
+const LOCALES: Locale[] = [undefined, SOURCE_LOCALE, 'fr-FR'];
+const BOOLS = [true, false];
+
+const OBJECT_KEYS = [
+ 'labelSingular',
+ 'labelPlural',
+ 'description',
+ 'icon',
+ 'color',
+] as const;
+
+const FIELD_KEYS = ['label', 'description', 'icon'] as const;
+
+const buildObjectBase = () => ({
+ labelSingular: 'Company',
+ labelPlural: 'Companies',
+ description: 'A company',
+ icon: 'IconBuilding',
+ color: 'blue',
+});
+
+const buildFieldBase = () => ({
+ label: 'Name',
+ description: 'The name',
+ icon: 'IconAbc',
+});
+
+const OBJECT_OVERRIDES_CORPUS: AnyOverrides[] = [
+ undefined,
+ null,
+ {},
+ { labelSingular: 'Org' },
+ { labelSingular: '' },
+ { labelPlural: 'Orgs', description: 'custom' },
+ { icon: 'IconStar' },
+ { color: 'red' },
+ { icon: 'IconStar', color: 'red', labelSingular: 'Org' },
+ { translations: { 'fr-FR': { labelSingular: 'Société' } } },
+ { translations: { en: { labelPlural: 'Companies EN' } } },
+ {
+ labelSingular: 'Org',
+ translations: {
+ 'fr-FR': { labelSingular: 'Société', description: 'desc fr' },
+ },
+ },
+ { translations: {} },
+ { translations: { 'fr-FR': {} } },
+];
+
+const FIELD_OVERRIDES_CORPUS: AnyOverrides[] = [
+ undefined,
+ null,
+ {},
+ { label: 'Full name' },
+ { label: '' },
+ { description: 'custom desc' },
+ { icon: 'IconStar' },
+ { icon: 'IconStar', label: 'Full name' },
+ { translations: { 'fr-FR': { label: 'Nom' } } },
+ {
+ label: 'Full name',
+ translations: { 'fr-FR': { label: 'Nom', description: 'desc fr' } },
+ },
+ { translations: {} },
+];
+
+const CATALOGS: (Record<string, string> | undefined)[] = [
+ undefined,
+ { 'some.id': 'From catalog' },
+];
+
+describe('resolveEffectiveEntityProperty (parity with legacy resolvers)', () => {
+ it('matches the frozen object resolver across the corpus', () => {
+ for (const overrides of OBJECT_OVERRIDES_CORPUS) {
+ for (const key of OBJECT_KEYS) {
+ for (const locale of LOCALES) {
+ for (const isStandardApp of BOOLS) {
+ for (const applicationCatalog of CATALOGS) {
+ const entity = { ...buildObjectBase(), overrides };
+
+ const expected = frozenResolveObjectOverride(
+ entity,
+ key,
+ locale,
+ mockI18n,
+ isStandardApp,
+ applicationCatalog,
+ );
+
+ const actual = resolveEffectiveEntityProperty({
+ metadataName: 'objectMetadata',
+ baseValue: entity[key as keyof typeof entity] as string,
+ overrides: entity.overrides,
+ property: key,
+ i18nContext: {
+ locale,
+ i18nInstance: mockI18n,
+ isStandardApp,
+ applicationCatalog,
+ },
+ });
+
+ expect(actual).toBe(expected);
+ }
+ }
+ }
+ }
+ }
+ });
+
+ it('matches the frozen field resolver across the corpus', () => {
+ for (const overrides of FIELD_OVERRIDES_CORPUS) {
+ for (const key of FIELD_KEYS) {
+ for (const locale of LOCALES) {
+ for (const isStandardApp of BOOLS) {
+ for (const applicationCatalog of CATALOGS) {
+ const entity = { ...buildFieldBase(), overrides };
+
+ const expected = frozenResolveFieldOverride(
+ entity,
+ key,
+ locale,
+ mockI18n,
+ isStandardApp,
+ applicationCatalog,
+ );
+
+ const actual = resolveEffectiveEntityProperty({
+ metadataName: 'fieldMetadata',
+ baseValue: entity[key as keyof typeof entity] as string,
+ overrides: entity.overrides,
+ property: key,
+ i18nContext: {
+ locale,
+ i18nInstance: mockI18n,
+ isStandardApp,
+ applicationCatalog,
+ },
+ });
+
+ expect(actual).toBe(expected);
+ }
+ }
+ }
+ }
+ }
+ });
+});
+
+describe('resolveEffectiveEntity (parity with legacy flat spread)', () => {
+ it('matches the frozen flat spread across the corpus', () => {
+ const flatCorpus: AnyOverrides[] = [
+ { name: 'View', position: 1, overrides: undefined },
+ { name: 'View', position: 1, overrides: null },
+ { name: 'View', position: 1, overrides: {} },
+ { name: 'View', position: 1, overrides: { name: 'Overridden' } },
+ {
+ name: 'View',
+ position: 1,
+ icon: 'IconList',
+ overrides: { name: 'Overridden', position: 2 },
+ },
+ ];
+
+ for (const flatEntity of flatCorpus) {
+ expect(resolveEffectiveEntity(flatEntity)).toEqual(
+ frozenResolveFlat(flatEntity),
+ );
+ }
+ });
+});
diff --git a/packages/twenty-server/src/engine/metadata-modules/utils/effective-entity-i18n-context.type.ts b/packages/twenty-server/src/engine/metadata-modules/utils/effective-entity-i18n-context.type.ts
new file mode 100644
index 00000000000..7fc5f56deee
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/utils/effective-entity-i18n-context.type.ts
@@ -0,0 +1,9 @@
+import { type I18n } from '@lingui/core';
+import { type APP_LOCALES } from 'twenty-shared/translations';
+
+export type EffectiveEntityI18nContext = {
+ locale: keyof typeof APP_LOCALES | undefined;
+ i18nInstance: I18n;
+ isStandardApp: boolean;
+ applicationCatalog?: Record<string, string>;
+};
diff --git a/packages/twenty-server/src/engine/metadata-modules/utils/metadata-presentation-overrides.type.ts b/packages/twenty-server/src/engine/metadata-modules/utils/metadata-presentation-overrides.type.ts
new file mode 100644
index 00000000000..fcb01db8387
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/utils/metadata-presentation-overrides.type.ts
@@ -0,0 +1,19 @@
+import { type AllMetadataName } from 'twenty-shared/metadata';
+import { type APP_LOCALES } from 'twenty-shared/translations';
+
+import {
+ type MetadataEntityOverridablePropertyName,
+ type MetadataEntityTranslatablePropertyName,
+} from 'src/engine/metadata-modules/flat-entity/constant/all-entity-properties-configuration-by-metadata-name.constant';
+
+type OverridesTranslationEntry<T extends AllMetadataName> = {
+ [P in MetadataEntityTranslatablePropertyName<T>]?: string | null;
+};
+
+export type MetadataPresentationOverrides<T extends AllMetadataName> = {
+ [P in MetadataEntityOverridablePropertyName<T>]?: string | null;
+} & {
+ translations?: Partial<
+ Record<keyof typeof APP_LOCALES, OverridesTranslationEntry<T>>
+ > | null;
+};
diff --git a/packages/twenty-server/src/engine/metadata-modules/utils/resolve-effective-entity-property.util.ts b/packages/twenty-server/src/engine/metadata-modules/utils/resolve-effective-entity-property.util.ts
new file mode 100644
index 00000000000..0b1af5b5826
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/utils/resolve-effective-entity-property.util.ts
@@ -0,0 +1,70 @@
+import { isNonEmptyString } from '@sniptt/guards';
+import { type AllMetadataName } from 'twenty-shared/metadata';
+import { SOURCE_LOCALE } from 'twenty-shared/translations';
+import { isDefined } from 'twenty-shared/utils';
+
+import { translateStandardLabel } from 'src/engine/core-modules/i18n/utils/translate-standard-label.util';
+import { type MetadataEntityOverridablePropertyName } from 'src/engine/metadata-modules/flat-entity/constant/all-entity-properties-configuration-by-metadata-name.constant';
+import { ALL_TRANSLATABLE_PROPERTIES_BY_METADATA_NAME } from 'src/engine/metadata-modules/flat-entity/constant/all-translatable-properties-by-metadata-name.constant';
+import { type EffectiveEntityI18nContext } from 'src/engine/metadata-modules/utils/effective-entity-i18n-context.type';
+import { type MetadataPresentationOverrides } from 'src/engine/metadata-modules/utils/metadata-presentation-overrides.type';
+
+export const resolveEffectiveEntityProperty = <T extends AllMetadataName>({
+ metadataName,
+ baseValue,
+ overrides,
+ property,
+ i18nContext,
+}: {
+ metadataName: T;
+ baseValue: string | null | undefined;
+ overrides: MetadataPresentationOverrides<T> | null | undefined;
+ property: MetadataEntityOverridablePropertyName<T> & string;
+ i18nContext: EffectiveEntityI18nContext;
+}): string => {
+ const isTranslatable = (
+ ALL_TRANSLATABLE_PROPERTIES_BY_METADATA_NAME[metadataName] as string[]
+ ).includes(property);
+
+ const overrideValue = (
+ overrides as Record<string, unknown> | null | undefined
+ )?.[property];
+
+ const { locale, i18nInstance, isStandardApp, applicationCatalog } =
+ i18nContext;
+ const safeLocale = locale ?? SOURCE_LOCALE;
+ const safeBaseValue = baseValue ?? '';
+
+ // Custom (non-standard) entities without a catalog have no standard label to
+ // resolve or translate, and never carry overrides.
+ if (!isStandardApp && !isDefined(applicationCatalog)) {
+ return safeBaseValue;
+ }
+
+ if (!isTranslatable && isDefined(overrideValue)) {
+ return overrideValue as string;
+ }
+
+ if (isTranslatable && isDefined(overrides?.translations)) {
+ const translationValue = (
+ overrides.translations[safeLocale] as
+ | Record<string, string | null | undefined>
+ | undefined
+ )?.[property];
+
+ if (isDefined(translationValue)) {
+ return translationValue;
+ }
+ }
+
+ if (isNonEmptyString(overrideValue)) {
+ return overrideValue;
+ }
+
+ return translateStandardLabel({
+ sourceValue: safeBaseValue,
+ isStandardApp,
+ applicationCatalog,
+ i18nInstance,
+ });
+};
diff --git a/packages/twenty-server/src/engine/metadata-modules/utils/resolve-flat-entity-overridable-properties.util.ts b/packages/twenty-server/src/engine/metadata-modules/utils/resolve-effective-entity.util.ts
similarity index 77%
rename from packages/twenty-server/src/engine/metadata-modules/utils/resolve-flat-entity-overridable-properties.util.ts
rename to packages/twenty-server/src/engine/metadata-modules/utils/resolve-effective-entity.util.ts
index 274bb9782e2..617a84f1162 100644
--- a/packages/twenty-server/src/engine/metadata-modules/utils/resolve-flat-entity-overridable-properties.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/utils/resolve-effective-entity.util.ts
@@ -5,9 +5,7 @@ type FlatEntityWithOverrides = {
overrides: Record<string, unknown> | null;
};
-export const resolveFlatEntityOverridableProperties = <
- T extends FlatEntityWithOverrides,
->(
+export const resolveEffectiveEntity = <T extends FlatEntityWithOverrides>(
flatEntity: T,
): T => {
if (!isDefined(flatEntity.overrides)) {
diff --git a/packages/twenty-server/src/engine/metadata-modules/view/controllers/view.controller.ts b/packages/twenty-server/src/engine/metadata-modules/view/controllers/view.controller.ts
index a3bb423d5d5..f068718a9e4 100644
--- a/packages/twenty-server/src/engine/metadata-modules/view/controllers/view.controller.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/view/controllers/view.controller.ts
@@ -24,7 +24,7 @@ import { NoPermissionGuard } from 'src/engine/guards/no-permission.guard';
import { WorkspaceAuthGuard } from 'src/engine/guards/workspace-auth.guard';
import { WorkspaceManyOrAllFlatEntityMapsCacheService } from 'src/engine/metadata-modules/flat-entity/services/workspace-many-or-all-flat-entity-maps-cache.service';
import { findFlatEntityByIdInFlatEntityMaps } from 'src/engine/metadata-modules/flat-entity/utils/find-flat-entity-by-id-in-flat-entity-maps.util';
-import { resolveObjectMetadataStandardOverride } from 'src/engine/metadata-modules/object-metadata/utils/resolve-object-metadata-standard-override.util';
+import { resolveEffectiveEntityProperty } from 'src/engine/metadata-modules/utils/resolve-effective-entity-property.util';
import { belongsToTwentyStandardApp } from 'src/engine/metadata-modules/utils/belongs-to-twenty-standard-app.util';
import { CreateViewPermissionGuard } from 'src/engine/metadata-modules/view-permissions/guards/create-view-permission.guard';
import { DeleteViewPermissionGuard } from 'src/engine/metadata-modules/view-permissions/guards/delete-view-permission.guard';
@@ -211,19 +211,17 @@ export class ViewController {
if (objectMetadata) {
const i18n = this.i18nService.getI18nInstance(locale ?? 'en');
- const translatedObjectLabel = resolveObjectMetadataStandardOverride(
- {
- labelPlural: objectMetadata.labelPlural,
- labelSingular: objectMetadata.labelSingular,
- description: objectMetadata.description ?? undefined,
- icon: objectMetadata.icon ?? undefined,
- standardOverrides: objectMetadata.standardOverrides ?? undefined,
+ const translatedObjectLabel = resolveEffectiveEntityProperty({
+ metadataName: 'objectMetadata',
+ baseValue: objectMetadata.labelPlural,
+ overrides: objectMetadata.overrides ?? undefined,
+ property: 'labelPlural',
+ i18nContext: {
+ locale,
+ i18nInstance: i18n,
+ isStandardApp: belongsToTwentyStandardApp(objectMetadata),
},
- 'labelPlural',
- locale,
- i18n,
- belongsToTwentyStandardApp(objectMetadata),
- );
+ });
processedName = this.viewService.processViewNameWithTemplate(
view.name,
diff --git a/packages/twenty-server/src/engine/metadata-modules/view/resolvers/view.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/view/resolvers/view.resolver.ts
index 5643cc77aa0..d039ffb731c 100644
--- a/packages/twenty-server/src/engine/metadata-modules/view/resolvers/view.resolver.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/view/resolvers/view.resolver.ts
@@ -24,7 +24,7 @@ import { CustomPermissionGuard } from 'src/engine/guards/custom-permission.guard
import { NoPermissionGuard } from 'src/engine/guards/no-permission.guard';
import { SettingsPermissionGuard } from 'src/engine/guards/settings-permission.guard';
import { WorkspaceAuthGuard } from 'src/engine/guards/workspace-auth.guard';
-import { resolveObjectMetadataStandardOverride } from 'src/engine/metadata-modules/object-metadata/utils/resolve-object-metadata-standard-override.util';
+import { resolveEffectiveEntityProperty } from 'src/engine/metadata-modules/utils/resolve-effective-entity-property.util';
import { ViewFieldGroupDTO } from 'src/engine/metadata-modules/view-field-group/dtos/view-field-group.dto';
import { ViewFieldDTO } from 'src/engine/metadata-modules/view-field/dtos/view-field.dto';
import { ViewFilterGroupDTO } from 'src/engine/metadata-modules/view-filter-group/dtos/view-filter-group.dto';
@@ -80,20 +80,18 @@ export class ViewResolver {
workspaceId: workspace.id,
locale: context.req.locale,
});
- const translatedObjectLabel = resolveObjectMetadataStandardOverride(
- {
- labelPlural: objectMetadata.labelPlural,
- labelSingular: objectMetadata.labelSingular,
- description: objectMetadata.description ?? undefined,
- icon: objectMetadata.icon ?? undefined,
- standardOverrides: objectMetadata.standardOverrides ?? undefined,
+ const translatedObjectLabel = resolveEffectiveEntityProperty({
+ metadataName: 'objectMetadata',
+ baseValue: objectMetadata.labelPlural,
+ overrides: objectMetadata.overrides ?? undefined,
+ property: 'labelPlural',
+ i18nContext: {
+ locale: context.req.locale,
+ i18nInstance: i18n,
+ isStandardApp,
+ applicationCatalog,
},
- 'labelPlural',
- context.req.locale,
- i18n,
- isStandardApp,
- applicationCatalog,
- );
+ });
return this.viewService.processViewNameWithTemplate(
view.name,
diff --git a/packages/twenty-server/src/engine/subscriptions/metadata-event/metadata-event-publisher.ts b/packages/twenty-server/src/engine/subscriptions/metadata-event/metadata-event-publisher.ts
index bc45209a6f2..e55ccce51c3 100644
--- a/packages/twenty-server/src/engine/subscriptions/metadata-event/metadata-event-publisher.ts
+++ b/packages/twenty-server/src/engine/subscriptions/metadata-event/metadata-event-publisher.ts
@@ -6,8 +6,7 @@ import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';
import { I18nService } from 'src/engine/core-modules/i18n/i18n.service';
import { WorkspaceManyOrAllFlatEntityMapsCacheService } from 'src/engine/metadata-modules/flat-entity/services/workspace-many-or-all-flat-entity-maps-cache.service';
import { NavigationMenuItemRecordIdentifierService } from 'src/engine/metadata-modules/navigation-menu-item/services/navigation-menu-item-record-identifier.service';
-import { FIELD_METADATA_STANDARD_OVERRIDES_PROPERTIES } from 'src/engine/metadata-modules/field-metadata/constants/field-metadata-standard-overrides-properties.constant';
-import { OBJECT_METADATA_STANDARD_OVERRIDES_PROPERTIES } from 'src/engine/metadata-modules/object-metadata/constants/object-metadata-standard-overrides-properties.constant';
+import { ALL_OVERRIDABLE_PROPERTIES_BY_METADATA_NAME } from 'src/engine/metadata-modules/flat-entity/constant/all-overridable-properties-by-metadata-name.constant';
import { type MetadataEventBatch } from 'src/engine/subscriptions/metadata-event/types/metadata-event-batch.type';
import { type FlatCommandMenuItem } from 'src/engine/metadata-modules/flat-command-menu-item/types/flat-command-menu-item.type';
import { enrichCommandMenuItemEventWithResolvedNavigation } from 'src/engine/subscriptions/metadata-event/utils/enrich-command-menu-item-event-with-resolved-navigation.util';
@@ -61,7 +60,7 @@ export class MetadataEventPublisher {
metadataEventBatch as MetadataEventBatch<'commandMenuItem'>,
);
case 'objectMetadata':
- return this.resolveObjectMetadataStandardOverrides(
+ return this.resolveObjectMetadataOverrides(
metadataEventBatch as MetadataEventBatch<'objectMetadata'>,
);
default:
@@ -87,9 +86,9 @@ export class MetadataEventPublisher {
'before' in enrichedProperties &&
isDefined(enrichedProperties.before)
) {
- enrichedProperties.before = this.applyStandardOverridesToMetadataRecord(
+ enrichedProperties.before = this.applyOverridesToMetadataRecord(
enrichedProperties.before as Record<string, unknown>,
- FIELD_METADATA_STANDARD_OVERRIDES_PROPERTIES,
+ ALL_OVERRIDABLE_PROPERTIES_BY_METADATA_NAME.fieldMetadata,
) as typeof enrichedProperties.before;
}
@@ -103,9 +102,9 @@ export class MetadataEventPublisher {
flatObjectMetadataMaps,
});
- enrichedProperties.after = this.applyStandardOverridesToMetadataRecord(
+ enrichedProperties.after = this.applyOverridesToMetadataRecord(
enrichedAfter,
- FIELD_METADATA_STANDARD_OVERRIDES_PROPERTIES,
+ ALL_OVERRIDABLE_PROPERTIES_BY_METADATA_NAME.fieldMetadata,
) as typeof enrichedProperties.after;
}
@@ -207,7 +206,7 @@ export class MetadataEventPublisher {
return { ...metadataEventBatch, events: enrichedEvents };
}
- private resolveObjectMetadataStandardOverrides(
+ private resolveObjectMetadataOverrides(
metadataEventBatch: MetadataEventBatch<'objectMetadata'>,
): MetadataEventBatch<'objectMetadata'> {
const enrichedEvents = metadataEventBatch.events.map((event) => {
@@ -217,9 +216,9 @@ export class MetadataEventPublisher {
'before' in enrichedProperties &&
isDefined(enrichedProperties.before)
) {
- enrichedProperties.before = this.applyStandardOverridesToMetadataRecord(
+ enrichedProperties.before = this.applyOverridesToMetadataRecord(
enrichedProperties.before as Record<string, unknown>,
- OBJECT_METADATA_STANDARD_OVERRIDES_PROPERTIES,
+ ALL_OVERRIDABLE_PROPERTIES_BY_METADATA_NAME.objectMetadata,
) as typeof enrichedProperties.before;
}
@@ -227,9 +226,9 @@ export class MetadataEventPublisher {
'after' in enrichedProperties &&
isDefined(enrichedProperties.after)
) {
- enrichedProperties.after = this.applyStandardOverridesToMetadataRecord(
+ enrichedProperties.after = this.applyOverridesToMetadataRecord(
enrichedProperties.after as Record<string, unknown>,
- OBJECT_METADATA_STANDARD_OVERRIDES_PROPERTIES,
+ ALL_OVERRIDABLE_PROPERTIES_BY_METADATA_NAME.objectMetadata,
) as typeof enrichedProperties.after;
}
@@ -239,24 +238,24 @@ export class MetadataEventPublisher {
return { ...metadataEventBatch, events: enrichedEvents };
}
- private applyStandardOverridesToMetadataRecord(
+ private applyOverridesToMetadataRecord(
record: Record<string, unknown>,
- standardOverrideProperties: readonly string[],
+ overridableProperties: readonly string[],
): Record<string, unknown> {
- const standardOverrides = record.standardOverrides as
+ const overrides = record.overrides as
| Record<string, unknown>
| null
| undefined;
- if (!isDefined(standardOverrides)) {
+ if (!isDefined(overrides)) {
return record;
}
const resolved = { ...record };
- for (const key of standardOverrideProperties) {
- if (isDefined(standardOverrides[key])) {
- resolved[key] = standardOverrides[key];
+ for (const key of overridableProperties) {
+ if (isDefined(overrides[key])) {
+ resolved[key] = overrides[key];
}
}
diff --git a/packages/twenty-server/src/engine/subscriptions/metadata-event/utils/__tests__/enrich-command-menu-item-event-with-resolved-navigation.util.spec.ts b/packages/twenty-server/src/engine/subscriptions/metadata-event/utils/__tests__/enrich-command-menu-item-event-with-resolved-navigation.util.spec.ts
index adc5017c396..f53aa3cac99 100644
--- a/packages/twenty-server/src/engine/subscriptions/metadata-event/utils/__tests__/enrich-command-menu-item-event-with-resolved-navigation.util.spec.ts
+++ b/packages/twenty-server/src/engine/subscriptions/metadata-event/utils/__tests__/enrich-command-menu-item-event-with-resolved-navigation.util.spec.ts
@@ -32,7 +32,7 @@ const makeFlatObjectMetadata = (
labelPlural: 'People',
labelSingular: 'Person',
icon: 'IconUser',
- standardOverrides: null,
+ overrides: null,
...overrides,
}) as unknown as FlatObjectMetadata;
@@ -148,10 +148,10 @@ describe('enrichCommandMenuItemEventWithResolvedNavigation', () => {
const flatObjectMetadata = makeFlatObjectMetadata({
labelPlural: 'People',
icon: 'IconUser',
- standardOverrides: {
+ overrides: {
labelPlural: 'Contacts',
icon: 'IconContacts',
- } as unknown as FlatObjectMetadata['standardOverrides'],
+ } as unknown as FlatObjectMetadata['overrides'],
});
const flatObjectMetadataMaps =
makeFlatObjectMetadataMaps(flatObjectMetadata);
@@ -174,7 +174,7 @@ describe('enrichCommandMenuItemEventWithResolvedNavigation', () => {
const flatObjectMetadata = makeFlatObjectMetadata({
labelPlural: 'Companies',
icon: 'IconBuilding',
- standardOverrides: null,
+ overrides: null,
});
const flatObjectMetadataMaps =
makeFlatObjectMetadataMaps(flatObjectMetadata);
diff --git a/packages/twenty-server/src/engine/twenty-orm/entity-manager/workspace-entity-manager.spec.ts b/packages/twenty-server/src/engine/twenty-orm/entity-manager/workspace-entity-manager.spec.ts
index 83a7659eee2..74b74a04368 100644
--- a/packages/twenty-server/src/engine/twenty-orm/entity-manager/workspace-entity-manager.spec.ts
+++ b/packages/twenty-server/src/engine/twenty-orm/entity-manager/workspace-entity-manager.spec.ts
@@ -118,7 +118,7 @@ describe('WorkspaceEntityManager', () => {
imageIdentifierFieldMetadataId: null,
labelIdentifierFieldMetadataId: null,
shortcut: null,
- standardOverrides: null,
+ overrides: null,
applicationId: 'test-application-id',
isLabelSyncedWithName: false,
isUIEditable: true,
@@ -162,7 +162,7 @@ describe('WorkspaceEntityManager', () => {
isUnique: false,
options: null,
settings: null,
- standardOverrides: null,
+ overrides: null,
workspaceId: 'test-workspace-id',
viewFieldIds: [],
viewFilterIds: [],
diff --git a/packages/twenty-server/src/engine/twenty-orm/repository/__tests__/workspace.repository.spec.ts b/packages/twenty-server/src/engine/twenty-orm/repository/__tests__/workspace.repository.spec.ts
index de118c815b8..7f64eb729cf 100644
--- a/packages/twenty-server/src/engine/twenty-orm/repository/__tests__/workspace.repository.spec.ts
+++ b/packages/twenty-server/src/engine/twenty-orm/repository/__tests__/workspace.repository.spec.ts
@@ -87,7 +87,7 @@ describe('WorkspaceRepository', () => {
options: null,
settings: null,
morphId: null,
- standardOverrides: null,
+ overrides: null,
applicationId: 'application-id',
relationTargetFieldMetadataId: null,
relationTargetObjectMetadataId: null,
diff --git a/packages/twenty-server/src/engine/twenty-orm/utils/__tests__/compute-relation-connect-query-configs.util.spec.ts b/packages/twenty-server/src/engine/twenty-orm/utils/__tests__/compute-relation-connect-query-configs.util.spec.ts
index ebce8715bc3..f5c7ba5722c 100644
--- a/packages/twenty-server/src/engine/twenty-orm/utils/__tests__/compute-relation-connect-query-configs.util.spec.ts
+++ b/packages/twenty-server/src/engine/twenty-orm/utils/__tests__/compute-relation-connect-query-configs.util.spec.ts
@@ -232,7 +232,7 @@ describe('computeRelationConnectQueryConfigs', () => {
updatedAt: new Date(),
shortcut: null,
description: null,
- standardOverrides: null,
+ overrides: null,
isUIEditable: true,
labelIdentifierFieldMetadataId: null,
imageIdentifierFieldMetadataId: null,
diff --git a/packages/twenty-server/src/engine/twenty-orm/utils/__tests__/get-column-name-to-field-metadata-id.util.spec.ts b/packages/twenty-server/src/engine/twenty-orm/utils/__tests__/get-column-name-to-field-metadata-id.util.spec.ts
index 421d8bfdb30..6345d0ee15a 100644
--- a/packages/twenty-server/src/engine/twenty-orm/utils/__tests__/get-column-name-to-field-metadata-id.util.spec.ts
+++ b/packages/twenty-server/src/engine/twenty-orm/utils/__tests__/get-column-name-to-field-metadata-id.util.spec.ts
@@ -36,7 +36,7 @@ describe('getColumnNameToFieldMetadataIdMap', () => {
updatedAt: new Date().toISOString(),
shortcut: null,
description: null,
- standardOverrides: null,
+ overrides: null,
isUIEditable: true,
isUICreatable: true,
labelIdentifierFieldMetadataId: null,
diff --git a/packages/twenty-server/src/engine/twenty-orm/utils/__tests__/get-field-metadata-id-to-column-names-map.util.spec.ts b/packages/twenty-server/src/engine/twenty-orm/utils/__tests__/get-field-metadata-id-to-column-names-map.util.spec.ts
index f775821b4ca..a8fd41fe6cd 100644
--- a/packages/twenty-server/src/engine/twenty-orm/utils/__tests__/get-field-metadata-id-to-column-names-map.util.spec.ts
+++ b/packages/twenty-server/src/engine/twenty-orm/utils/__tests__/get-field-metadata-id-to-column-names-map.util.spec.ts
@@ -36,7 +36,7 @@ describe('getFieldMetadataIdToColumnNamesMap', () => {
updatedAt: new Date().toISOString(),
shortcut: null,
description: null,
- standardOverrides: null,
+ overrides: null,
isUIEditable: true,
isUICreatable: true,
labelIdentifierFieldMetadataId: null,
diff --git a/packages/twenty-server/src/engine/twenty-orm/utils/__tests__/is-record-matching-rls-row-level-permission-predicate.util.spec.ts b/packages/twenty-server/src/engine/twenty-orm/utils/__tests__/is-record-matching-rls-row-level-permission-predicate.util.spec.ts
index 9ee1c32b7d9..3eb59fc1d03 100644
--- a/packages/twenty-server/src/engine/twenty-orm/utils/__tests__/is-record-matching-rls-row-level-permission-predicate.util.spec.ts
+++ b/packages/twenty-server/src/engine/twenty-orm/utils/__tests__/is-record-matching-rls-row-level-permission-predicate.util.spec.ts
@@ -36,7 +36,7 @@ describe('isRecordMatchingRLSRowLevelPermissionPredicate', () => {
updatedAt: new Date().toISOString(),
shortcut: null,
description: null,
- standardOverrides: null,
+ overrides: null,
isUIEditable: true,
isUICreatable: true,
labelIdentifierFieldMetadataId: null,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/create-standard-field-flat-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/create-standard-field-flat-metadata.util.ts
index 6ca8aef1874..d839c011301 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/create-standard-field-flat-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/create-standard-field-flat-metadata.util.ts
@@ -88,7 +88,7 @@ export const createStandardFieldFlatMetadata = <
isUnique,
isUIEditable,
isLabelSyncedWithName: false,
- standardOverrides: null,
+ overrides: null,
defaultValue: defaultValue ?? null,
settings: settings ?? null,
options: fieldOptions ?? null,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/create-standard-relation-field-flat-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/create-standard-relation-field-flat-metadata.util.ts
index c10d900907a..4267f6c29b0 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/create-standard-relation-field-flat-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/create-standard-relation-field-flat-metadata.util.ts
@@ -106,7 +106,7 @@ export const createStandardRelationFieldFlatMetadata = <
isUnique: false,
isUIEditable,
isLabelSyncedWithName: false,
- standardOverrides: null,
+ overrides: null,
defaultValue,
settings,
options: fieldOptions,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/object-metadata/create-standard-object-flat-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/object-metadata/create-standard-object-flat-metadata.util.ts
index d6602ff8650..eca93d5e14b 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/object-metadata/create-standard-object-flat-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/object-metadata/create-standard-object-flat-metadata.util.ts
@@ -91,7 +91,7 @@ export const createStandardObjectFlatMetadata = <
isUIEditable,
isUICreatable,
isLabelSyncedWithName: false,
- standardOverrides: null,
+ overrides: null,
duplicateCriteria,
shortcut,
labelIdentifierFieldMetadataId:
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/__tests__/universal-flat-entity-update.test-type.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/__tests__/universal-flat-entity-update.test-type.ts
index a4bc67a9716..08a704ec5ec 100644
--- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/__tests__/universal-flat-entity-update.test-type.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/__tests__/universal-flat-entity-update.test-type.ts
@@ -13,7 +13,7 @@ type Assertions = [
| 'description'
| 'isActive'
| 'defaultValue'
- | 'standardOverrides'
+ | 'overrides'
| 'options'
| 'isUnique'
| 'isLabelSyncedWithName'
@@ -30,7 +30,7 @@ type Assertions = [
| 'color'
| 'description'
| 'isActive'
- | 'standardOverrides'
+ | 'overrides'
| 'isLabelSyncedWithName'
| 'nameSingular'
| 'namePlural'
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/metadata-universal-flat-entity-properties-to-compare.type.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/metadata-universal-flat-entity-properties-to-compare.type.ts
index db67349ea1b..575d1e26883 100644
--- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/metadata-universal-flat-entity-properties-to-compare.type.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/metadata-universal-flat-entity-properties-to-compare.type.ts
@@ -36,7 +36,7 @@ type Assertions = [
| 'description'
| 'isActive'
| 'defaultValue'
- | 'standardOverrides'
+ | 'overrides'
| 'options'
| 'isUnique'
| 'isLabelSyncedWithName'
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/universal-flat-entity/utils/__tests__/__snapshots__/universal-flat-entity-deleted-created-updated-matrix-dispatcher.util.spec.ts.snap b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/universal-flat-entity/utils/__tests__/__snapshots__/universal-flat-entity-deleted-created-updated-matrix-dispatcher.util.spec.ts.snap
index c88d38c6133..0802102e8d3 100644
--- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/universal-flat-entity/utils/__tests__/__snapshots__/universal-flat-entity-deleted-created-updated-matrix-dispatcher.util.spec.ts.snap
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/universal-flat-entity/utils/__tests__/__snapshots__/universal-flat-entity-deleted-created-updated-matrix-dispatcher.util.spec.ts.snap
@@ -33,6 +33,7 @@ exports[`flatEntityDeletedCreatedUpdatedMatrixDispatcher It should detect a crea
"objectMetadataId": "object-metadata-id-1",
"objectMetadataUniversalIdentifier": "object-metadata-universal-identifier-1",
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataId": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataId": null,
@@ -40,7 +41,6 @@ exports[`flatEntityDeletedCreatedUpdatedMatrixDispatcher It should detect a crea
"searchFieldMetadataIds": [],
"searchFieldMetadataUniversalIdentifiers": [],
"settings": null,
- "standardOverrides": null,
"type": "TEXT",
"universalIdentifier": "universal-identifier-1",
"universalSettings": null,
@@ -100,6 +100,7 @@ exports[`flatEntityDeletedCreatedUpdatedMatrixDispatcher It should detect a dele
"objectMetadataId": "object-metadata-id-1",
"objectMetadataUniversalIdentifier": "object-metadata-universal-identifier-1",
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataId": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataId": null,
@@ -107,7 +108,6 @@ exports[`flatEntityDeletedCreatedUpdatedMatrixDispatcher It should detect a dele
"searchFieldMetadataIds": [],
"searchFieldMetadataUniversalIdentifiers": [],
"settings": null,
- "standardOverrides": null,
"type": "TEXT",
"universalIdentifier": "universal-identifier-1",
"universalSettings": null,
@@ -181,6 +181,7 @@ exports[`flatEntityDeletedCreatedUpdatedMatrixDispatcher It should detect create
"objectMetadataId": "object-metadata-id-1",
"objectMetadataUniversalIdentifier": "object-metadata-universal-identifier-1",
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataId": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataId": null,
@@ -188,7 +189,6 @@ exports[`flatEntityDeletedCreatedUpdatedMatrixDispatcher It should detect create
"searchFieldMetadataIds": [],
"searchFieldMetadataUniversalIdentifiers": [],
"settings": null,
- "standardOverrides": null,
"type": "TEXT",
"universalIdentifier": "universal-identifier-3",
"universalSettings": null,
@@ -234,6 +234,7 @@ exports[`flatEntityDeletedCreatedUpdatedMatrixDispatcher It should detect create
"objectMetadataId": "object-metadata-id-1",
"objectMetadataUniversalIdentifier": "object-metadata-universal-identifier-1",
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataId": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataId": null,
@@ -241,7 +242,6 @@ exports[`flatEntityDeletedCreatedUpdatedMatrixDispatcher It should detect create
"searchFieldMetadataIds": [],
"searchFieldMetadataUniversalIdentifiers": [],
"settings": null,
- "standardOverrides": null,
"type": "TEXT",
"universalIdentifier": "universal-identifier-2",
"universalSettings": null,
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/universal-flat-entity/utils/__tests__/add-universal-flat-entity-to-universal-flat-entity-and-related-entity-maps-through-mutation-or-throw.util.spec.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/universal-flat-entity/utils/__tests__/add-universal-flat-entity-to-universal-flat-entity-and-related-entity-maps-through-mutation-or-throw.util.spec.ts
index 9fd61464b59..0c64b0288c6 100644
--- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/universal-flat-entity/utils/__tests__/add-universal-flat-entity-to-universal-flat-entity-and-related-entity-maps-through-mutation-or-throw.util.spec.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/universal-flat-entity/utils/__tests__/add-universal-flat-entity-to-universal-flat-entity-and-related-entity-maps-through-mutation-or-throw.util.spec.ts
@@ -47,7 +47,7 @@ describe('addUniversalFlatEntityToUniversalFlatEntityAndRelatedEntityMapsThrough
namePlural: 'defaultflatObjectMetadataNamePlural',
nameSingular: 'defaultflatObjectMetadataNameSingular',
shortcut: 'shortcut',
- standardOverrides: null,
+ overrides: null,
targetTableName: '',
createdAt: '2024-01-01T00:00:00.000Z',
updatedAt: '2024-01-01T00:00:00.000Z',
@@ -86,7 +86,7 @@ describe('addUniversalFlatEntityToUniversalFlatEntityAndRelatedEntityMapsThrough
isUIEditable: true,
isLabelSyncedWithName: false,
isSystem: false,
- standardOverrides: null,
+ overrides: null,
relationTargetObjectMetadataUniversalIdentifier: null,
relationTargetFieldMetadataUniversalIdentifier: null,
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/universal-flat-entity/utils/__tests__/delete-universal-flat-entity-from-universal-flat-entity-and-related-entity-maps-through-mutation-or-throw.util.spec.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/universal-flat-entity/utils/__tests__/delete-universal-flat-entity-from-universal-flat-entity-and-related-entity-maps-through-mutation-or-throw.util.spec.ts
index a692bb760e2..404e15b83b0 100644
--- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/universal-flat-entity/utils/__tests__/delete-universal-flat-entity-from-universal-flat-entity-and-related-entity-maps-through-mutation-or-throw.util.spec.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/universal-flat-entity/utils/__tests__/delete-universal-flat-entity-from-universal-flat-entity-and-related-entity-maps-through-mutation-or-throw.util.spec.ts
@@ -43,7 +43,7 @@ describe('deleteUniversalFlatEntityFromUniversalFlatEntityAndRelatedEntityMapsTh
namePlural: 'defaultflatObjectMetadataNamePlural',
nameSingular: 'defaultflatObjectMetadataNameSingular',
shortcut: 'shortcut',
- standardOverrides: null,
+ overrides: null,
targetTableName: '',
createdAt: '2024-01-01T00:00:00.000Z',
updatedAt: '2024-01-01T00:00:00.000Z',
@@ -82,7 +82,7 @@ describe('deleteUniversalFlatEntityFromUniversalFlatEntityAndRelatedEntityMapsTh
isUIEditable: true,
isLabelSyncedWithName: false,
isSystem: false,
- standardOverrides: null,
+ overrides: null,
relationTargetObjectMetadataUniversalIdentifier: null,
relationTargetFieldMetadataUniversalIdentifier: null,
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-object-metadata-validator.service.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-object-metadata-validator.service.ts
index d0ce6d3b9f9..a8708d2c36e 100644
--- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-object-metadata-validator.service.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-object-metadata-validator.service.ts
@@ -61,7 +61,7 @@ export class FlatObjectMetadataValidatorService {
};
if (!buildOptions.isSystemBuild && existingFlatObjectMetadata.isSystem) {
- const allowedOverrideKeys = new Set(['standardOverrides', 'isActive']);
+ const allowedOverrideKeys = new Set(['overrides', 'isActive']);
const disallowedProperties = Object.keys(flatEntityUpdate).filter(
(property) => !allowedOverrideKeys.has(property),
);
@@ -69,7 +69,7 @@ export class FlatObjectMetadataValidatorService {
if (disallowedProperties.length > 0) {
validationResult.errors.push({
code: ObjectMetadataExceptionCode.INVALID_OBJECT_INPUT,
- message: t`System objects cannot be updated directly. Use standardOverrides for cosmetic changes.`,
+ message: t`System objects cannot be updated directly. Use overrides for cosmetic changes.`,
userFriendlyMessage: msg`System objects cannot be updated`,
});
}
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-runner/utils/__tests__/flat-entity-to-scalar-flat-entity.util.spec.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-runner/utils/__tests__/flat-entity-to-scalar-flat-entity.util.spec.ts
index c8d5d7a09b2..3d5b4bbbe67 100644
--- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-runner/utils/__tests__/flat-entity-to-scalar-flat-entity.util.spec.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-runner/utils/__tests__/flat-entity-to-scalar-flat-entity.util.spec.ts
@@ -24,7 +24,7 @@ describe('flatEntityToScalarFlatEntity', () => {
label: 'Test Label',
name: 'testField',
options: null,
- standardOverrides: null,
+ overrides: null,
settings: null,
universalSettings: null,
isSystem: false,
@@ -66,10 +66,10 @@ describe('flatEntityToScalarFlatEntity', () => {
"name": "testField",
"objectMetadataId": "object-metadata-id",
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataId": "relation-target-field-id",
"relationTargetObjectMetadataId": "relation-target-object-id",
"settings": null,
- "standardOverrides": null,
"type": "TEXT",
"universalIdentifier": "universal-identifier",
"updatedAt": "2025-01-01T00:00:00.000Z",
diff --git a/packages/twenty-server/src/utils/__test__/get-field-metadata-entity.mock.ts b/packages/twenty-server/src/utils/__test__/get-field-metadata-entity.mock.ts
index 59f6859bfe0..e5cf66dd976 100644
--- a/packages/twenty-server/src/utils/__test__/get-field-metadata-entity.mock.ts
+++ b/packages/twenty-server/src/utils/__test__/get-field-metadata-entity.mock.ts
@@ -43,7 +43,9 @@ export const getMockFieldMetadataEntity = <
relationTargetFieldMetadataId: null,
relationTargetObjectMetadata: null,
relationTargetObjectMetadataId: null,
- standardOverrides: null,
+ overrides: null,
+ standardOverrides:
+ null as unknown as FieldMetadataEntity['standardOverrides'],
id: faker.string.uuid(),
name: 'defaultFieldMetadataName',
label: 'Default field metadata entity label',
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/successful-sync-application-workspace-migration.integration-spec.ts.snap b/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/successful-sync-application-workspace-migration.integration-spec.ts.snap
index f872e20662b..09eda278818 100644
--- a/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/successful-sync-application-workspace-migration.integration-spec.ts.snap
+++ b/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/successful-sync-application-workspace-migration.integration-spec.ts.snap
@@ -23,9 +23,9 @@ exports[`syncApplication should create a TEXT field on the standard Company obje
"name": "industry",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataUniversalIdentifier": null,
- "standardOverrides": null,
"type": "TEXT",
"universalIdentifier": Any<String>,
"universalSettings": null,
@@ -91,8 +91,8 @@ exports[`syncApplication should delete old field and create equivalent one when
"labelSingular": "Ticket",
"namePlural": "tickets",
"nameSingular": "ticket",
+ "overrides": null,
"shortcut": null,
- "standardOverrides": null,
"targetTableName": "DEPRECATED",
"universalIdentifier": Any<String>,
"updatedAt": Any<String>,
@@ -119,9 +119,9 @@ exports[`syncApplication should delete old field and create equivalent one when
"name": "id",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataUniversalIdentifier": null,
- "standardOverrides": null,
"type": "UUID",
"universalIdentifier": Any<String>,
"universalSettings": null,
@@ -145,9 +145,9 @@ exports[`syncApplication should delete old field and create equivalent one when
"name": "createdAt",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataUniversalIdentifier": null,
- "standardOverrides": null,
"type": "DATE_TIME",
"universalIdentifier": Any<String>,
"universalSettings": null,
@@ -171,9 +171,9 @@ exports[`syncApplication should delete old field and create equivalent one when
"name": "updatedAt",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataUniversalIdentifier": null,
- "standardOverrides": null,
"type": "DATE_TIME",
"universalIdentifier": Any<String>,
"universalSettings": null,
@@ -197,9 +197,9 @@ exports[`syncApplication should delete old field and create equivalent one when
"name": "deletedAt",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataUniversalIdentifier": null,
- "standardOverrides": null,
"type": "DATE_TIME",
"universalIdentifier": Any<String>,
"universalSettings": null,
@@ -228,9 +228,9 @@ exports[`syncApplication should delete old field and create equivalent one when
"name": "createdBy",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataUniversalIdentifier": null,
- "standardOverrides": null,
"type": "ACTOR",
"universalIdentifier": Any<String>,
"universalSettings": null,
@@ -259,9 +259,9 @@ exports[`syncApplication should delete old field and create equivalent one when
"name": "updatedBy",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataUniversalIdentifier": null,
- "standardOverrides": null,
"type": "ACTOR",
"universalIdentifier": Any<String>,
"universalSettings": null,
@@ -285,9 +285,9 @@ exports[`syncApplication should delete old field and create equivalent one when
"name": "position",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataUniversalIdentifier": null,
- "standardOverrides": null,
"type": "POSITION",
"universalIdentifier": Any<String>,
"universalSettings": null,
@@ -311,9 +311,9 @@ exports[`syncApplication should delete old field and create equivalent one when
"name": "searchVector",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataUniversalIdentifier": null,
- "standardOverrides": null,
"type": "TS_VECTOR",
"universalIdentifier": Any<String>,
"universalSettings": null,
@@ -337,9 +337,9 @@ exports[`syncApplication should delete old field and create equivalent one when
"name": "description",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataUniversalIdentifier": null,
- "standardOverrides": null,
"type": "TEXT",
"universalIdentifier": Any<String>,
"universalSettings": null,
@@ -410,6 +410,7 @@ exports[`syncApplication should delete old field and create equivalent one when
"objectMetadataId": Any<String>,
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataId": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataId": null,
@@ -417,7 +418,6 @@ exports[`syncApplication should delete old field and create equivalent one when
"searchFieldMetadataIds": [],
"searchFieldMetadataUniversalIdentifiers": [],
"settings": null,
- "standardOverrides": null,
"type": "TEXT",
"universalIdentifier": Any<String>,
"universalSettings": null,
@@ -453,9 +453,9 @@ exports[`syncApplication should delete old field and create equivalent one when
"name": "description",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataUniversalIdentifier": null,
- "standardOverrides": null,
"type": "TEXT",
"universalIdentifier": Any<String>,
"universalSettings": null,
@@ -498,8 +498,8 @@ exports[`syncApplication should return workspace migration actions on initial sy
"labelSingular": "Ticket",
"namePlural": "tickets",
"nameSingular": "ticket",
+ "overrides": null,
"shortcut": null,
- "standardOverrides": null,
"targetTableName": "DEPRECATED",
"universalIdentifier": Any<String>,
"updatedAt": Any<String>,
@@ -526,9 +526,9 @@ exports[`syncApplication should return workspace migration actions on initial sy
"name": "id",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataUniversalIdentifier": null,
- "standardOverrides": null,
"type": "UUID",
"universalIdentifier": Any<String>,
"universalSettings": null,
@@ -552,9 +552,9 @@ exports[`syncApplication should return workspace migration actions on initial sy
"name": "createdAt",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataUniversalIdentifier": null,
- "standardOverrides": null,
"type": "DATE_TIME",
"universalIdentifier": Any<String>,
"universalSettings": null,
@@ -578,9 +578,9 @@ exports[`syncApplication should return workspace migration actions on initial sy
"name": "updatedAt",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataUniversalIdentifier": null,
- "standardOverrides": null,
"type": "DATE_TIME",
"universalIdentifier": Any<String>,
"universalSettings": null,
@@ -604,9 +604,9 @@ exports[`syncApplication should return workspace migration actions on initial sy
"name": "deletedAt",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataUniversalIdentifier": null,
- "standardOverrides": null,
"type": "DATE_TIME",
"universalIdentifier": Any<String>,
"universalSettings": null,
@@ -635,9 +635,9 @@ exports[`syncApplication should return workspace migration actions on initial sy
"name": "createdBy",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataUniversalIdentifier": null,
- "standardOverrides": null,
"type": "ACTOR",
"universalIdentifier": Any<String>,
"universalSettings": null,
@@ -666,9 +666,9 @@ exports[`syncApplication should return workspace migration actions on initial sy
"name": "updatedBy",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataUniversalIdentifier": null,
- "standardOverrides": null,
"type": "ACTOR",
"universalIdentifier": Any<String>,
"universalSettings": null,
@@ -692,9 +692,9 @@ exports[`syncApplication should return workspace migration actions on initial sy
"name": "position",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataUniversalIdentifier": null,
- "standardOverrides": null,
"type": "POSITION",
"universalIdentifier": Any<String>,
"universalSettings": null,
@@ -718,9 +718,9 @@ exports[`syncApplication should return workspace migration actions on initial sy
"name": "searchVector",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataUniversalIdentifier": null,
- "standardOverrides": null,
"type": "TS_VECTOR",
"universalIdentifier": Any<String>,
"universalSettings": null,
@@ -744,9 +744,9 @@ exports[`syncApplication should return workspace migration actions on initial sy
"name": "description",
"objectMetadataUniversalIdentifier": Any<String>,
"options": null,
+ "overrides": null,
"relationTargetFieldMetadataUniversalIdentifier": null,
"relationTargetObjectMetadataUniversalIdentifier": null,
- "standardOverrides": null,
"type": "TEXT",
"universalIdentifier": Any<String>,
"universalSettings": null,
diff --git a/packages/twenty-server/test/integration/metadata/suites/field-metadata/__snapshots__/successful-update-one-standard-field-metadata.integration-spec.ts.snap b/packages/twenty-server/test/integration/metadata/suites/field-metadata/__snapshots__/successful-update-one-standard-field-metadata.integration-spec.ts.snap
index 5790394f5c5..1c4c2c69360 100644
--- a/packages/twenty-server/test/integration/metadata/suites/field-metadata/__snapshots__/successful-update-one-standard-field-metadata.integration-spec.ts.snap
+++ b/packages/twenty-server/test/integration/metadata/suites/field-metadata/__snapshots__/successful-update-one-standard-field-metadata.integration-spec.ts.snap
@@ -1,4 +1,4 @@
-// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
+// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Standard field metadata update should succeed Atomic update test suite when setting isActive to false 1`] = `
{
@@ -46,7 +46,6 @@ exports[`Standard field metadata update should succeed Atomic update test suite
"value": "CUSTOMER",
},
],
- "standardOverrides": null,
}
`;
@@ -96,7 +95,6 @@ exports[`Standard field metadata update should succeed Atomic update test suite
"value": "CUSTOMER",
},
],
- "standardOverrides": null,
}
`;
@@ -146,11 +144,6 @@ exports[`Standard field metadata update should succeed Atomic update test suite
"value": "CUSTOMER",
},
],
- "standardOverrides": {
- "description": "Updated test description for company name field",
- "icon": null,
- "label": null,
- },
}
`;
@@ -200,11 +193,6 @@ exports[`Standard field metadata update should succeed Atomic update test suite
"value": "CUSTOMER",
},
],
- "standardOverrides": {
- "description": null,
- "icon": "IconBuildingFactory",
- "label": null,
- },
}
`;
@@ -254,11 +242,6 @@ exports[`Standard field metadata update should succeed Atomic update test suite
"value": "CUSTOMER",
},
],
- "standardOverrides": {
- "description": null,
- "icon": null,
- "label": "Business Name",
- },
}
`;
@@ -315,6 +298,5 @@ exports[`Standard field metadata update should succeed Atomic update test suite
"value": "CLOSED",
},
],
- "standardOverrides": null,
}
`;
diff --git a/packages/twenty-server/test/integration/metadata/suites/field-metadata/successful-update-one-standard-field-metadata.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/field-metadata/successful-update-one-standard-field-metadata.integration-spec.ts
index 579581d07df..58247ad927d 100644
--- a/packages/twenty-server/test/integration/metadata/suites/field-metadata/successful-update-one-standard-field-metadata.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/field-metadata/successful-update-one-standard-field-metadata.integration-spec.ts
@@ -107,11 +107,6 @@ describe('Standard field metadata update should succeed', () => {
options
settings
defaultValue
- standardOverrides {
- label
- description
- icon
- }
}
`,
});
@@ -172,11 +167,6 @@ describe('Standard field metadata update should succeed', () => {
isActive
options
defaultValue
- standardOverrides {
- label
- description
- icon
- }
`,
});
@@ -213,11 +203,6 @@ describe('Standard field metadata update should succeed', () => {
isActive
options
defaultValue
- standardOverrides {
- label
- description
- icon
- }
`,
});
@@ -240,11 +225,6 @@ describe('Standard field metadata update should succeed', () => {
isActive
options
defaultValue
- standardOverrides {
- label
- description
- icon
- }
`,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/object-metadata/__snapshots__/successful-update-one-standard-object-metadata.integration-spec.ts.snap b/packages/twenty-server/test/integration/metadata/suites/object-metadata/__snapshots__/successful-update-one-standard-object-metadata.integration-spec.ts.snap
index 36e8f789602..bcd832e717b 100644
--- a/packages/twenty-server/test/integration/metadata/suites/object-metadata/__snapshots__/successful-update-one-standard-object-metadata.integration-spec.ts.snap
+++ b/packages/twenty-server/test/integration/metadata/suites/object-metadata/__snapshots__/successful-update-one-standard-object-metadata.integration-spec.ts.snap
@@ -1,30 +1,23 @@
-// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
+// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`Standard object metadata update should succeed when updating description 1`] = `
+exports[`Standard object metadata update should succeed when setting isActive to false 1`] = `
{
"color": "",
- "description": "Updated test description for company",
+ "description": "A company",
"icon": "IconBuildingSkyscraper",
"id": Any<String>,
- "isActive": true,
+ "isActive": false,
"labelPlural": "Companies",
"labelSingular": "Company",
"namePlural": "companies",
"nameSingular": "company",
"shortcut": "C",
- "standardOverrides": {
- "color": null,
- "description": "Updated test description for company",
- "icon": null,
- "labelPlural": null,
- "labelSingular": null,
- },
}
`;
-exports[`Standard object metadata update should succeed when updating icon 1`] = `
+exports[`Standard object metadata update should succeed when updating color 1`] = `
{
- "color": "",
+ "color": "red",
"description": "A company",
"icon": "IconBuildingSkyscraper",
"id": Any<String>,
@@ -34,66 +27,50 @@ exports[`Standard object metadata update should succeed when updating icon 1`] =
"namePlural": "companies",
"nameSingular": "company",
"shortcut": "C",
- "standardOverrides": null,
}
`;
-exports[`Standard object metadata update should succeed when setting isActive to false 1`] = `
+exports[`Standard object metadata update should succeed when updating description 1`] = `
{
"color": "",
- "description": "A company",
+ "description": "Updated test description for company",
"icon": "IconBuildingSkyscraper",
"id": Any<String>,
- "isActive": false,
+ "isActive": true,
"labelPlural": "Companies",
"labelSingular": "Company",
"namePlural": "companies",
"nameSingular": "company",
"shortcut": "C",
- "standardOverrides": null,
}
`;
-exports[`Standard object metadata update should succeed when updating labelSingular and labelPlural 1`] = `
+exports[`Standard object metadata update should succeed when updating icon 1`] = `
{
"color": "",
"description": "A company",
"icon": "IconBuildingSkyscraper",
"id": Any<String>,
"isActive": true,
- "labelPlural": "Businesses",
- "labelSingular": "Business",
+ "labelPlural": "Companies",
+ "labelSingular": "Company",
"namePlural": "companies",
"nameSingular": "company",
"shortcut": "C",
- "standardOverrides": {
- "color": null,
- "description": null,
- "icon": null,
- "labelPlural": "Businesses",
- "labelSingular": "Business",
- },
}
`;
-exports[`Standard object metadata update should succeed when updating color 1`] = `
+exports[`Standard object metadata update should succeed when updating labelSingular and labelPlural 1`] = `
{
- "color": "red",
+ "color": "",
"description": "A company",
"icon": "IconBuildingSkyscraper",
"id": Any<String>,
"isActive": true,
- "labelPlural": "Companies",
- "labelSingular": "Company",
+ "labelPlural": "Businesses",
+ "labelSingular": "Business",
"namePlural": "companies",
"nameSingular": "company",
"shortcut": "C",
- "standardOverrides": {
- "color": "red",
- "description": null,
- "icon": null,
- "labelPlural": null,
- "labelSingular": null,
- },
}
`;
diff --git a/packages/twenty-server/test/integration/metadata/suites/object-metadata/successful-update-one-standard-object-metadata.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/object-metadata/successful-update-one-standard-object-metadata.integration-spec.ts
index cac76d0a0b9..3ae54e9727d 100644
--- a/packages/twenty-server/test/integration/metadata/suites/object-metadata/successful-update-one-standard-object-metadata.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/object-metadata/successful-update-one-standard-object-metadata.integration-spec.ts
@@ -133,13 +133,6 @@ describe('Standard object metadata update should succeed', () => {
icon
isActive
shortcut
- standardOverrides {
- labelSingular
- labelPlural
- color
- description
- icon
- }
`,
});
diff --git a/packages/twenty-shared/src/database-events/database-event-payload.type.ts b/packages/twenty-shared/src/database-events/database-event-payload.type.ts
index 07a19fb24bd..6bd80231335 100644
--- a/packages/twenty-shared/src/database-events/database-event-payload.type.ts
+++ b/packages/twenty-shared/src/database-events/database-event-payload.type.ts
@@ -11,7 +11,7 @@ type SimplifiedFlatObjectMetadata = {
universalIdentifier: string;
applicationId: string | null;
dataSourceId: string | null;
- standardOverrides: null;
+ overrides: null;
isCustom: boolean;
isRemote: boolean;
isActive: boolean;