diff --git a/packages/twenty-front/src/modules/object-metadata/types/CoreObjectNamePlural.ts b/packages/twenty-front/src/modules/object-metadata/types/CoreObjectNamePlural.ts index 2e2219a9d4..f701034351 100644 --- a/packages/twenty-front/src/modules/object-metadata/types/CoreObjectNamePlural.ts +++ b/packages/twenty-front/src/modules/object-metadata/types/CoreObjectNamePlural.ts @@ -4,14 +4,12 @@ export enum CoreObjectNamePlural { ApiKey = 'apiKeys', Attachment = 'attachments', Blocklist = 'blocklists', - CalendarChannel = 'calendarChannels', CalendarEvent = 'calendarEvents', Comment = 'comments', Company = 'companies', Dashboard = 'dashboards', TimelineActivity = 'timelineActivities', Message = 'messages', - MessageChannel = 'messageChannels', MessageParticipant = 'messageParticipants', MessageThread = 'messageThreads', Note = 'notes', diff --git a/packages/twenty-front/src/testing/mock-data/generated/metadata/minimal/mock-minimal-metadata.ts b/packages/twenty-front/src/testing/mock-data/generated/metadata/minimal/mock-minimal-metadata.ts index 66cad9d5ce..5288ecfb3c 100644 --- a/packages/twenty-front/src/testing/mock-data/generated/metadata/minimal/mock-minimal-metadata.ts +++ b/packages/twenty-front/src/testing/mock-data/generated/metadata/minimal/mock-minimal-metadata.ts @@ -104,18 +104,6 @@ export const mockedMinimalMetadata: MinimalMetadata = "isSystem": true, "isRemote": false }, - { - "id": "06ac365e-28d1-4966-8b15-30f268468a19", - "nameSingular": "messageFolder", - "namePlural": "messageFolders", - "labelSingular": "Message Folder", - "labelPlural": "Message Folders", - "icon": "IconFolder", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isRemote": false - }, { "id": "61d7672d-5c4f-42e1-812e-99eb0a2565de", "nameSingular": "workflowRun", @@ -296,30 +284,6 @@ export const mockedMinimalMetadata: MinimalMetadata = "isSystem": false, "isRemote": false }, - { - "id": "ce1549f6-1cb8-4f47-ba55-16d5a399a235", - "nameSingular": "calendarChannel", - "namePlural": "calendarChannels", - "labelSingular": "Calendar Channel", - "labelPlural": "Calendar Channels", - "icon": "IconCalendar", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isRemote": false - }, - { - "id": "c48ce4de-a73c-4b94-ba79-123559a8b299", - "nameSingular": "messageChannel", - "namePlural": "messageChannels", - "labelSingular": "Message Channel", - "labelPlural": "Message Channels", - "icon": "IconMessage", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isRemote": false - }, { "id": "89c57180-083a-47b6-bfb7-ec51b3a87eae", "nameSingular": "noteTarget", @@ -526,12 +490,6 @@ export const mockedMinimalMetadata: MinimalMetadata = "key": "INDEX", "objectMetadataId": "057951b6-46e0-4ae9-956a-b3b72f2cf800" }, - { - "id": "0641fc4f-b4ba-4074-a6e2-2d8d7826064e", - "type": "TABLE", - "key": "INDEX", - "objectMetadataId": "ce1549f6-1cb8-4f47-ba55-16d5a399a235" - }, { "id": "cccea524-558f-49c0-8657-c07bc3610c23", "type": "TABLE", @@ -562,12 +520,6 @@ export const mockedMinimalMetadata: MinimalMetadata = "key": "INDEX", "objectMetadataId": "4397cb61-4bcc-49f8-b024-739b74ed9928" }, - { - "id": "e7ac6796-abf6-4a97-a758-91fa3518cf4c", - "type": "TABLE", - "key": "INDEX", - "objectMetadataId": "06ac365e-28d1-4966-8b15-30f268468a19" - }, { "id": "a144d5ab-3195-4409-95f5-5aee8c0d3bbe", "type": "TABLE", @@ -586,12 +538,6 @@ export const mockedMinimalMetadata: MinimalMetadata = "key": "INDEX", "objectMetadataId": "7db07e5a-4476-4a4f-ba75-6de6597689aa" }, - { - "id": "022dba8d-2c8e-40e7-b767-0234e71ad705", - "type": "TABLE", - "key": "INDEX", - "objectMetadataId": "c48ce4de-a73c-4b94-ba79-123559a8b299" - }, { "id": "b2e63752-f7e4-4d38-ae6e-063e6766a02d", "type": "TABLE", diff --git a/packages/twenty-front/src/testing/mock-data/generated/metadata/objects/mock-objects-metadata.ts b/packages/twenty-front/src/testing/mock-data/generated/metadata/objects/mock-objects-metadata.ts index 300125bb5d..240bebd029 100644 --- a/packages/twenty-front/src/testing/mock-data/generated/metadata/objects/mock-objects-metadata.ts +++ b/packages/twenty-front/src/testing/mock-data/generated/metadata/objects/mock-objects-metadata.ts @@ -2417,707 +2417,6 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = ] } }, - { - "__typename": "ObjectEdge", - "node": { - "__typename": "Object", - "id": "ce1549f6-1cb8-4f47-ba55-16d5a399a235", - "universalIdentifier": "20202020-e8f2-40e1-a39c-c0e0039c5034", - "nameSingular": "calendarChannel", - "namePlural": "calendarChannels", - "isCustom": false, - "isRemote": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "labelIdentifierFieldMetadataId": "69b7ac11-8c50-4617-b393-3929e3db4680", - "imageIdentifierFieldMetadataId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "shortcut": null, - "isLabelSyncedWithName": false, - "isSearchable": false, - "duplicateCriteria": null, - "labelSingular": "Calendar Channel", - "labelPlural": "Calendar Channels", - "description": "Calendar Channels", - "icon": "IconCalendar", - "fieldsList": [ - { - "__typename": "Field", - "id": "136ccf04-d61f-4df6-9477-3aade6a2040c", - "universalIdentifier": "20202020-c02a-4031-8a31-1a2f3b4c5d6e", - "type": "UUID", - "name": "id", - "label": "Id", - "description": "Id", - "icon": "Icon123", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": "uuid", - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "ccd015f8-5ae0-410d-9bcd-efd88397468a", - "universalIdentifier": "20202020-c02b-4032-9b32-2b3f4c5d6e7f", - "type": "DATE_TIME", - "name": "createdAt", - "label": "Creation date", - "description": "Creation date", - "icon": "IconCalendar", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": "now", - "options": null, - "settings": { - "displayFormat": "RELATIVE" - }, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "754618a1-ed1c-43e8-80bd-2b5921a94db0", - "universalIdentifier": "20202020-c02c-4033-8c33-3c4f5d6e7f8a", - "type": "DATE_TIME", - "name": "updatedAt", - "label": "Last update", - "description": "Last time the record was changed", - "icon": "IconCalendarClock", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": "now", - "options": null, - "settings": { - "displayFormat": "RELATIVE" - }, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "506e87d6-d259-4efb-8b88-10952c2c2ead", - "universalIdentifier": "20202020-c02d-4034-9d34-4d5f6e7f8a9b", - "type": "DATE_TIME", - "name": "deletedAt", - "label": "Deleted at", - "description": "Date when the record was deleted", - "icon": "IconCalendarMinus", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": true, - "isNullable": true, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": null, - "options": null, - "settings": { - "displayFormat": "RELATIVE" - }, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "f70bd8f2-81ae-48b3-aa0f-0d79673cb4b4", - "universalIdentifier": "664db1a0-76f4-4429-8452-f8e250ab7545", - "type": "ACTOR", - "name": "createdBy", - "label": "Created by", - "description": "The creator of the record", - "icon": "IconCreativeCommonsSa", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": { - "name": "'System'", - "source": "'MANUAL'", - "workspaceMemberId": null - }, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "8c981141-23d2-4cf9-9748-a437e15db8a6", - "universalIdentifier": "6a397eab-3700-4b08-9eb9-d16b61876193", - "type": "ACTOR", - "name": "updatedBy", - "label": "Updated by", - "description": "The workspace member who last updated the record", - "icon": "IconUserCircle", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": { - "name": "'System'", - "source": "'MANUAL'", - "workspaceMemberId": null - }, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "f0c2a735-ef79-42c1-a159-a3d03e0384e6", - "universalIdentifier": "566609c9-1c8b-4899-91bb-0af140a89004", - "type": "POSITION", - "name": "position", - "label": "Position", - "description": "Calendar channel record position", - "icon": "IconHierarchy2", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": false, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": 0, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "346f2c52-eadb-4d16-ba06-b72b6ebbb280", - "universalIdentifier": "bc9a982c-c314-49d6-818a-2661ce7e918f", - "type": "TS_VECTOR", - "name": "searchVector", - "label": "Search vector", - "description": "Field used for full-text search", - "icon": "IconUser", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": false, - "isNullable": true, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": null, - "options": null, - "settings": { - "asExpression": "to_tsvector('simple', COALESCE(public.unaccent_immutable(\"handle\"), ''))", - "generatedType": "STORED" - }, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "69b7ac11-8c50-4617-b393-3929e3db4680", - "universalIdentifier": "20202020-1d08-420a-9aa7-22e0f298232d", - "type": "TEXT", - "name": "handle", - "label": "Handle", - "description": "Handle", - "icon": "IconAt", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": true, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": null, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "90bc665d-de8f-4a40-9d03-2d9b38e52538", - "universalIdentifier": "20202020-1b07-4796-9f01-d626bab7ca4d", - "type": "SELECT", - "name": "visibility", - "label": "Visibility", - "description": "Visibility", - "icon": "IconEyeglass", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": "'SHARE_EVERYTHING'", - "options": [ - { - "id": "20202020-82a0-4859-b356-f5a1d6e3e53d", - "color": "green", - "label": "Metadata", - "value": "METADATA", - "position": 0 - }, - { - "id": "20202020-e5ec-4df5-ba3f-66ca2a79c283", - "color": "orange", - "label": "Share Everything", - "value": "SHARE_EVERYTHING", - "position": 1 - } - ], - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "22a8e919-17c9-43b7-a588-8e9bfe879e6a", - "universalIdentifier": "20202020-50fb-404b-ba28-369911a3793a", - "type": "BOOLEAN", - "name": "isContactAutoCreationEnabled", - "label": "Is Contact Auto Creation Enabled", - "description": "Is Contact Auto Creation Enabled", - "icon": "IconUserCircle", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": true, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "1873dff1-4084-42ec-856d-a3c906426a76", - "universalIdentifier": "20202020-b55d-447d-b4df-226319058775", - "type": "SELECT", - "name": "contactAutoCreationPolicy", - "label": "Contact auto creation policy", - "description": "Automatically create records for people you participated with in an event.", - "icon": "IconUserCircle", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": "'AS_PARTICIPANT_AND_ORGANIZER'", - "options": [ - { - "id": "20202020-47c1-4af1-a8a6-540edeafc55e", - "color": "green", - "label": "As Participant and Organizer", - "value": "AS_PARTICIPANT_AND_ORGANIZER", - "position": 0 - }, - { - "id": "20202020-b3cc-4248-b0d1-c8d45c2418b3", - "color": "orange", - "label": "As Participant", - "value": "AS_PARTICIPANT", - "position": 1 - }, - { - "id": "20202020-84ef-4061-9c22-db596e237ddc", - "color": "blue", - "label": "As Organizer", - "value": "AS_ORGANIZER", - "position": 2 - }, - { - "id": "20202020-f170-491f-9597-0e5817e46c17", - "color": "red", - "label": "None", - "value": "NONE", - "position": 3 - } - ], - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "6954dda7-87ea-42b1-8835-86eb7691b82b", - "universalIdentifier": "20202020-fe19-4818-8854-21f7b1b43395", - "type": "BOOLEAN", - "name": "isSyncEnabled", - "label": "Is Sync Enabled", - "description": "Is Sync Enabled", - "icon": "IconRefresh", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": true, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "5a299fe6-48a4-4576-9d63-5093c8531624", - "universalIdentifier": "20202020-bac2-4852-a5cb-7a7898992b70", - "type": "TEXT", - "name": "syncCursor", - "label": "Sync Cursor", - "description": "Sync Cursor. Used for syncing events from the calendar provider", - "icon": "IconReload", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": true, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": null, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "69cfb5ac-6896-484b-8d74-f5bd19e9d626", - "universalIdentifier": "20202020-7116-41da-8b4b-035975c4eb6a", - "type": "SELECT", - "name": "syncStatus", - "label": "Sync status", - "description": "Sync status", - "icon": "IconStatusChange", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": true, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": null, - "options": [ - { - "id": "20202020-ebdc-4fc8-a5c1-4bc6a90fdc3c", - "color": "yellow", - "label": "Ongoing", - "value": "ONGOING", - "position": 1 - }, - { - "id": "20202020-7126-4c26-9940-f5807ed87266", - "color": "blue", - "label": "Not Synced", - "value": "NOT_SYNCED", - "position": 2 - }, - { - "id": "20202020-0302-4201-bf84-aaa26b7ca94e", - "color": "green", - "label": "Active", - "value": "ACTIVE", - "position": 3 - }, - { - "id": "20202020-6dbb-449d-96b0-092189010f42", - "color": "red", - "label": "Failed Insufficient Permissions", - "value": "FAILED_INSUFFICIENT_PERMISSIONS", - "position": 4 - }, - { - "id": "20202020-935c-4333-a614-f49ee2ec6aa7", - "color": "red", - "label": "Failed Unknown", - "value": "FAILED_UNKNOWN", - "position": 5 - } - ], - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "cb485871-1fb6-4d5f-9c77-8794ac80e793", - "universalIdentifier": "20202020-6246-42e6-b5cd-003bd921782c", - "type": "SELECT", - "name": "syncStage", - "label": "Sync stage", - "description": "Sync stage", - "icon": "IconStatusChange", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": "'PENDING_CONFIGURATION'", - "options": [ - { - "id": "20202020-60c1-40a3-90ae-61d9ee1083c1", - "color": "blue", - "label": "Calendar event list fetch pending", - "value": "CALENDAR_EVENT_LIST_FETCH_PENDING", - "position": 0 - }, - { - "id": "20202020-8652-444a-b72e-d4b7112179ca", - "color": "green", - "label": "Calendar event list fetch scheduled", - "value": "CALENDAR_EVENT_LIST_FETCH_SCHEDULED", - "position": 1 - }, - { - "id": "20202020-e87c-4cfe-aefc-635ad34ef223", - "color": "orange", - "label": "Calendar event list fetch ongoing", - "value": "CALENDAR_EVENT_LIST_FETCH_ONGOING", - "position": 2 - }, - { - "id": "20202020-876f-449d-9f09-de5c369ff95f", - "color": "blue", - "label": "Calendar events import pending", - "value": "CALENDAR_EVENTS_IMPORT_PENDING", - "position": 3 - }, - { - "id": "20202020-3d2a-4acd-a0ed-197343b3bf60", - "color": "green", - "label": "Calendar events import scheduled", - "value": "CALENDAR_EVENTS_IMPORT_SCHEDULED", - "position": 4 - }, - { - "id": "20202020-e762-4152-bb20-29fdd49e1dff", - "color": "orange", - "label": "Calendar events import ongoing", - "value": "CALENDAR_EVENTS_IMPORT_ONGOING", - "position": 5 - }, - { - "id": "20202020-487c-464f-8caa-c6393b82b17c", - "color": "red", - "label": "Failed", - "value": "FAILED", - "position": 6 - }, - { - "id": "20202020-ba03-4221-b186-402662b68493", - "color": "gray", - "label": "Pending configuration", - "value": "PENDING_CONFIGURATION", - "position": 9 - } - ], - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "267dabf2-e25d-4bcf-9785-4159e7af1902", - "universalIdentifier": "20202020-a934-46f1-a8e7-9568b1e3a53e", - "type": "DATE_TIME", - "name": "syncStageStartedAt", - "label": "Sync stage started at", - "description": "Sync stage started at", - "icon": "IconHistory", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": true, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": null, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "0075b733-6d92-4830-819b-245c46b39f06", - "universalIdentifier": "20202020-2ff5-4f70-953a-3d0d36357576", - "type": "DATE_TIME", - "name": "syncedAt", - "label": "Last sync date", - "description": "Last sync date", - "icon": "IconHistory", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": true, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": null, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "3186c3f2-4bcf-4b04-8238-b0a1597e663b", - "universalIdentifier": "20202020-525c-4b76-b9bd-0dd57fd11d61", - "type": "NUMBER", - "name": "throttleFailureCount", - "label": "Throttle Failure Count", - "description": "Throttle Failure Count", - "icon": "IconX", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": 0, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - } - ], - "indexMetadataList": [ - { - "__typename": "Index", - "id": "d8814b62-ebb0-4c79-b884-9a72e2d4fe13", - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "name": "IDX_7b40c7f03dd1f998ba765ad0730", - "indexWhereClause": null, - "indexType": "BTREE", - "isUnique": false, - "isCustom": false, - "indexFieldMetadataList": [ - { - "__typename": "IndexField", - "id": "446673f1-509c-4c95-b075-493bf523dbba", - "fieldMetadataId": "5d7b0dea-da5e-4d91-9386-51736d9376f7", - "createdAt": "2026-04-10T08:55:56.592Z", - "updatedAt": "2026-04-10T08:55:56.592Z", - "order": 0 - } - ] - } - ] - } - }, { "__typename": "ObjectEdge", "node": { @@ -3506,915 +2805,6 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = ] } }, - { - "__typename": "ObjectEdge", - "node": { - "__typename": "Object", - "id": "c48ce4de-a73c-4b94-ba79-123559a8b299", - "universalIdentifier": "20202020-fe8c-40bc-a681-b80b771449b7", - "nameSingular": "messageChannel", - "namePlural": "messageChannels", - "isCustom": false, - "isRemote": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "labelIdentifierFieldMetadataId": "163e3448-4277-4e1b-afb2-5a8d6428721b", - "imageIdentifierFieldMetadataId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "shortcut": null, - "isLabelSyncedWithName": false, - "isSearchable": false, - "duplicateCriteria": null, - "labelSingular": "Message Channel", - "labelPlural": "Message Channels", - "description": "Message Channels", - "icon": "IconMessage", - "fieldsList": [ - { - "__typename": "Field", - "id": "bfe8699f-0cb2-432c-b81d-53fab7c33c3f", - "universalIdentifier": "20202020-b02a-40c1-8ac1-9eafbacbdced", - "type": "UUID", - "name": "id", - "label": "Id", - "description": "Id", - "icon": "Icon123", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": "uuid", - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "d33c31b9-4d6b-4fce-8910-e99179e91a1b", - "universalIdentifier": "20202020-b02b-40c2-9bc2-afbacbdcedfe", - "type": "DATE_TIME", - "name": "createdAt", - "label": "Creation date", - "description": "Creation date", - "icon": "IconCalendar", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": "now", - "options": null, - "settings": { - "displayFormat": "RELATIVE" - }, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "ba494848-3af1-4850-8443-827d24614434", - "universalIdentifier": "20202020-b02c-40c3-8cc3-bacbdcedfefa", - "type": "DATE_TIME", - "name": "updatedAt", - "label": "Last update", - "description": "Last time the record was changed", - "icon": "IconCalendarClock", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": "now", - "options": null, - "settings": { - "displayFormat": "RELATIVE" - }, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "ef1243d0-4a98-474c-8b8b-784db7d367fb", - "universalIdentifier": "20202020-b02d-40c4-9dc4-cbdcedfefaab", - "type": "DATE_TIME", - "name": "deletedAt", - "label": "Deleted at", - "description": "Date when the record was deleted", - "icon": "IconCalendarMinus", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": true, - "isNullable": true, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": null, - "options": null, - "settings": { - "displayFormat": "RELATIVE" - }, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "161daca3-41e0-495e-99ae-a26fdea03752", - "universalIdentifier": "b7de8fcc-a7c6-4122-b3fa-1fcf8f30931c", - "type": "ACTOR", - "name": "createdBy", - "label": "Created by", - "description": "The creator of the record", - "icon": "IconCreativeCommonsSa", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": { - "name": "'System'", - "source": "'MANUAL'", - "workspaceMemberId": null - }, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "cb9c7c00-189a-4fa1-b2e5-e89d1003aa30", - "universalIdentifier": "88bb6ff1-b8a1-4313-95d4-7879acca0b93", - "type": "ACTOR", - "name": "updatedBy", - "label": "Updated by", - "description": "The workspace member who last updated the record", - "icon": "IconUserCircle", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": { - "name": "'System'", - "source": "'MANUAL'", - "workspaceMemberId": null - }, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "cdd0fbe1-9be4-4149-bf1d-2d47732c6924", - "universalIdentifier": "bc8a36af-8b9c-4548-a0da-c90e899e7243", - "type": "POSITION", - "name": "position", - "label": "Position", - "description": "Message Channel record position", - "icon": "IconHierarchy2", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": false, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": 0, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "99845c85-7c71-4e23-88b7-d9c7d4a0343b", - "universalIdentifier": "5e84794c-6f14-4bdf-81a6-76ee11cda51f", - "type": "TS_VECTOR", - "name": "searchVector", - "label": "Search vector", - "description": "Field used for full-text search", - "icon": "IconUser", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": false, - "isNullable": true, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": null, - "options": null, - "settings": { - "asExpression": "to_tsvector('simple', COALESCE(public.unaccent_immutable(\"handle\"), ''))", - "generatedType": "STORED" - }, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "59771373-951a-43b6-bf6d-5a1c1439b241", - "universalIdentifier": "20202020-6a6b-4532-9767-cbc61b469453", - "type": "SELECT", - "name": "visibility", - "label": "Visibility", - "description": "Visibility", - "icon": "IconEyeglass", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": "'SHARE_EVERYTHING'", - "options": [ - { - "id": "20202020-4548-4830-b3f8-221fd082ebc0", - "color": "green", - "label": "Metadata", - "value": "METADATA", - "position": 0 - }, - { - "id": "20202020-6a42-40a8-b81e-28b7e591c598", - "color": "blue", - "label": "Subject", - "value": "SUBJECT", - "position": 1 - }, - { - "id": "20202020-d520-4cba-8832-5bca315b64f3", - "color": "orange", - "label": "Share Everything", - "value": "SHARE_EVERYTHING", - "position": 2 - } - ], - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "163e3448-4277-4e1b-afb2-5a8d6428721b", - "universalIdentifier": "20202020-2c96-43c3-93e3-ed6b1acb69bc", - "type": "TEXT", - "name": "handle", - "label": "Handle", - "description": "Handle", - "icon": "IconAt", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": true, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": null, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "ce035dc2-6ccc-42fd-b27b-4f63f115775d", - "universalIdentifier": "20202020-ae95-42d9-a3f1-797a2ea22122", - "type": "SELECT", - "name": "type", - "label": "Type", - "description": "Channel Type", - "icon": "IconMessage", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": "'EMAIL'", - "options": [ - { - "id": "20202020-1628-4bc0-aae1-1a46c648cf90", - "color": "green", - "label": "Email", - "value": "EMAIL", - "position": 0 - }, - { - "id": "20202020-fb11-4da3-80fd-b291cda8deb1", - "color": "blue", - "label": "SMS", - "value": "SMS", - "position": 1 - } - ], - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "ec72a3a5-5db0-4dc2-ab6f-803f775a01c7", - "universalIdentifier": "20202020-fabd-4f14-b7c6-3310f6d132c6", - "type": "BOOLEAN", - "name": "isContactAutoCreationEnabled", - "label": "Is Contact Auto Creation Enabled", - "description": "Is Contact Auto Creation Enabled", - "icon": "IconUserCircle", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": true, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "916d72a3-b9b6-4c66-bb96-5532278e063d", - "universalIdentifier": "20202020-fc0e-4ba6-b259-a66ca89cfa38", - "type": "SELECT", - "name": "contactAutoCreationPolicy", - "label": "Contact auto creation policy", - "description": "Automatically create People records when receiving or sending emails", - "icon": "IconUserCircle", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": "'SENT'", - "options": [ - { - "id": "20202020-1923-4ffd-907d-be8cc37ecee5", - "color": "green", - "label": "Sent and Received", - "value": "SENT_AND_RECEIVED", - "position": 0 - }, - { - "id": "20202020-8f6a-44d8-bdbb-90cf8b919467", - "color": "blue", - "label": "Sent", - "value": "SENT", - "position": 1 - }, - { - "id": "20202020-b43e-4bc4-840e-d903a69e2ffc", - "color": "red", - "label": "None", - "value": "NONE", - "position": 2 - } - ], - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "6bc0dae0-5514-4fb0-9c4c-98219eae3b49", - "universalIdentifier": "20202020-cc39-4432-9fe8-ec8ab8bbed95", - "type": "SELECT", - "name": "messageFolderImportPolicy", - "label": "Message folder import policy", - "description": "Message folder import policy", - "icon": "IconFolder", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": "'ALL_FOLDERS'", - "options": [ - { - "id": "20202020-140d-4326-978c-83ca0e9a4d8f", - "color": "green", - "label": "All folders", - "value": "ALL_FOLDERS", - "position": 0 - }, - { - "id": "20202020-513a-4b91-9033-5b74b404e2cb", - "color": "blue", - "label": "Selected folders", - "value": "SELECTED_FOLDERS", - "position": 1 - } - ], - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "fa3960d2-b4a6-4673-9e6f-616c63f155ae", - "universalIdentifier": "20202020-1df5-445d-b4f3-2413ad178431", - "type": "BOOLEAN", - "name": "excludeNonProfessionalEmails", - "label": "Exclude non professional emails", - "description": "Exclude non professional emails", - "icon": "IconBriefcase", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": true, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "de3285c9-f54f-47b4-b94a-abc425ec473a", - "universalIdentifier": "20202020-45a0-4be4-9164-5820a6a109fb", - "type": "BOOLEAN", - "name": "excludeGroupEmails", - "label": "Exclude group emails", - "description": "Exclude group emails", - "icon": "IconUsersGroup", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": true, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "c9f9ff6a-46d9-46d6-836c-6c46f0edfac9", - "universalIdentifier": "20202020-17c5-4e9f-bc50-af46a89fdd42", - "type": "SELECT", - "name": "pendingGroupEmailsAction", - "label": "Pending group emails action", - "description": "Pending action for group emails", - "icon": "IconUsersGroup", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": "'NONE'", - "options": [ - { - "id": "20202020-2ead-4bd1-aa5d-5005c7a956b4", - "color": "red", - "label": "Group emails deletion", - "value": "GROUP_EMAILS_DELETION", - "position": 0 - }, - { - "id": "20202020-155d-447d-a36e-6ecbb30fc37c", - "color": "green", - "label": "Group emails import", - "value": "GROUP_EMAILS_IMPORT", - "position": 1 - }, - { - "id": "20202020-fe98-4018-9f94-f878c22b8ece", - "color": "blue", - "label": "None", - "value": "NONE", - "position": 2 - } - ], - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "a1fe8744-4b53-482a-9e48-52341d12c098", - "universalIdentifier": "20202020-d9a6-48e9-990b-b97fdf22e8dd", - "type": "BOOLEAN", - "name": "isSyncEnabled", - "label": "Is Sync Enabled", - "description": "Is Sync Enabled", - "icon": "IconRefresh", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": true, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "3116e0c0-beda-408f-9d1c-72dc618942db", - "universalIdentifier": "20202020-79d1-41cf-b738-bcf5ed61e256", - "type": "TEXT", - "name": "syncCursor", - "label": "Last sync cursor", - "description": "Last sync cursor", - "icon": "IconHistory", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": true, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": null, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "f1107438-75d6-4bb6-924d-8d0449b79f7e", - "universalIdentifier": "20202020-263d-4c6b-ad51-137ada56f7d4", - "type": "DATE_TIME", - "name": "syncedAt", - "label": "Last sync date", - "description": "Last sync date", - "icon": "IconHistory", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": true, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": null, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "7d73e937-da30-40f1-a58e-92d664a50690", - "universalIdentifier": "20202020-56a1-4f7e-9880-a8493bb899cc", - "type": "SELECT", - "name": "syncStatus", - "label": "Sync status", - "description": "Sync status", - "icon": "IconStatusChange", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": true, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": null, - "options": [ - { - "id": "20202020-046b-4bc2-b085-bd69aaa8e577", - "color": "yellow", - "label": "Ongoing", - "value": "ONGOING", - "position": 1 - }, - { - "id": "20202020-09ec-4ea6-9a8a-bf48211b67e2", - "color": "blue", - "label": "Not Synced", - "value": "NOT_SYNCED", - "position": 2 - }, - { - "id": "20202020-2d1b-4d74-9689-9bd28fd3c3f9", - "color": "green", - "label": "Active", - "value": "ACTIVE", - "position": 3 - }, - { - "id": "20202020-0fb2-4a8b-9f9b-569144a45193", - "color": "red", - "label": "Failed Insufficient Permissions", - "value": "FAILED_INSUFFICIENT_PERMISSIONS", - "position": 4 - }, - { - "id": "20202020-bde3-415a-a8ac-55ced6014364", - "color": "red", - "label": "Failed Unknown", - "value": "FAILED_UNKNOWN", - "position": 5 - } - ], - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "901d4b2e-7365-44d9-bcec-ef93aa824746", - "universalIdentifier": "20202020-7979-4b08-89fe-99cb5e698767", - "type": "SELECT", - "name": "syncStage", - "label": "Sync stage", - "description": "Sync stage", - "icon": "IconStatusChange", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": "'PENDING_CONFIGURATION'", - "options": [ - { - "id": "20202020-1f62-4d79-a633-33a0e4fce9a6", - "color": "blue", - "label": "Messages list fetch pending", - "value": "MESSAGE_LIST_FETCH_PENDING", - "position": 0 - }, - { - "id": "20202020-d24f-4c3d-94a6-86c42e0f51d7", - "color": "green", - "label": "Messages list fetch scheduled", - "value": "MESSAGE_LIST_FETCH_SCHEDULED", - "position": 1 - }, - { - "id": "20202020-8751-408a-ae46-21a51b76be28", - "color": "orange", - "label": "Messages list fetch ongoing", - "value": "MESSAGE_LIST_FETCH_ONGOING", - "position": 2 - }, - { - "id": "20202020-1cfa-4a7d-a82d-93c8e29d0671", - "color": "blue", - "label": "Messages import pending", - "value": "MESSAGES_IMPORT_PENDING", - "position": 3 - }, - { - "id": "20202020-341e-4fbd-9dbf-30a70828ca69", - "color": "green", - "label": "Messages import scheduled", - "value": "MESSAGES_IMPORT_SCHEDULED", - "position": 4 - }, - { - "id": "20202020-e944-4594-ab81-fdbc53a85026", - "color": "orange", - "label": "Messages import ongoing", - "value": "MESSAGES_IMPORT_ONGOING", - "position": 5 - }, - { - "id": "20202020-f7c5-4756-9084-02f6a0b1a5f8", - "color": "red", - "label": "Failed", - "value": "FAILED", - "position": 6 - }, - { - "id": "20202020-0ede-4c75-84f1-29c8309829ec", - "color": "gray", - "label": "Pending configuration", - "value": "PENDING_CONFIGURATION", - "position": 7 - } - ], - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "0aa2432f-9e25-4b93-924c-0fd0214fc6f8", - "universalIdentifier": "20202020-8c61-4a42-ae63-73c1c3c52e06", - "type": "DATE_TIME", - "name": "syncStageStartedAt", - "label": "Sync stage started at", - "description": "Sync stage started at", - "icon": "IconHistory", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": true, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": null, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "bdf9a6ff-b868-413d-9aa5-df25740b3456", - "universalIdentifier": "20202020-0291-42be-9ad0-d578a51684ab", - "type": "NUMBER", - "name": "throttleFailureCount", - "label": "Throttle Failure Count", - "description": "Throttle Failure Count", - "icon": "IconX", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": 0, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "268107c8-aecf-4fab-9f98-1b74b5c0ed76", - "universalIdentifier": "20202020-a1e3-4d7f-b5c2-9f8e6d4c3b2a", - "type": "DATE_TIME", - "name": "throttleRetryAfter", - "label": "Throttle Retry After", - "description": "Throttle Retry After", - "icon": "IconClock", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": true, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": null, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - } - ], - "indexMetadataList": [ - { - "__typename": "Index", - "id": "1101d5c5-e104-4ce9-b030-aa25d88d4091", - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "name": "IDX_bf1967e8710f32f1a65c67fb4b4", - "indexWhereClause": null, - "indexType": "BTREE", - "isUnique": false, - "isCustom": false, - "indexFieldMetadataList": [ - { - "__typename": "IndexField", - "id": "75b04e5c-a39c-4910-a1d8-b00a556986c5", - "fieldMetadataId": "a15ef99d-5f07-4849-81f4-2cfa1adfbb36", - "createdAt": "2026-04-10T08:55:56.599Z", - "updatedAt": "2026-04-10T08:55:56.599Z", - "order": 0 - } - ] - } - ] - } - }, { "__typename": "ObjectEdge", "node": { @@ -21168,507 +19558,6 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = ] } }, - { - "__typename": "ObjectEdge", - "node": { - "__typename": "Object", - "id": "06ac365e-28d1-4966-8b15-30f268468a19", - "universalIdentifier": "20202020-4955-4fd9-8e59-2dbd373f2a46", - "nameSingular": "messageFolder", - "namePlural": "messageFolders", - "isCustom": false, - "isRemote": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "labelIdentifierFieldMetadataId": "d8496000-f0cd-4b8a-8251-b81452d5001e", - "imageIdentifierFieldMetadataId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "shortcut": null, - "isLabelSyncedWithName": false, - "isSearchable": false, - "duplicateCriteria": null, - "labelSingular": "Message Folder", - "labelPlural": "Message Folders", - "description": "Message Folders", - "icon": "IconFolder", - "fieldsList": [ - { - "__typename": "Field", - "id": "d8496000-f0cd-4b8a-8251-b81452d5001e", - "universalIdentifier": "20202020-b03a-40d1-8ad1-dcedfefaabbc", - "type": "UUID", - "name": "id", - "label": "Id", - "description": "Id", - "icon": "Icon123", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": "uuid", - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "79470c2f-2c5e-4a36-a578-3431f4dc5f2e", - "universalIdentifier": "20202020-b03b-40d2-9bd2-edfefaabbccd", - "type": "DATE_TIME", - "name": "createdAt", - "label": "Creation date", - "description": "Creation date", - "icon": "IconCalendar", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": "now", - "options": null, - "settings": { - "displayFormat": "RELATIVE" - }, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "c7e4ea02-5d45-4639-aceb-0ae5314e2ec0", - "universalIdentifier": "20202020-b03c-40d3-8cd3-fefaabbccdde", - "type": "DATE_TIME", - "name": "updatedAt", - "label": "Last update", - "description": "Last time the record was changed", - "icon": "IconCalendarClock", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": "now", - "options": null, - "settings": { - "displayFormat": "RELATIVE" - }, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "706c2760-82bf-4090-bf1a-588ea0c2b564", - "universalIdentifier": "20202020-b03d-40d4-9dd4-faabbccddeef", - "type": "DATE_TIME", - "name": "deletedAt", - "label": "Deleted at", - "description": "Date when the record was deleted", - "icon": "IconCalendarMinus", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": true, - "isNullable": true, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": null, - "options": null, - "settings": { - "displayFormat": "RELATIVE" - }, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "6fa0d2a1-dc91-4568-876e-21fd8845b749", - "universalIdentifier": "bfe19f84-b640-4ce3-b771-4e7bf18bad14", - "type": "ACTOR", - "name": "createdBy", - "label": "Created by", - "description": "The creator of the record", - "icon": "IconCreativeCommonsSa", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": { - "name": "'System'", - "source": "'MANUAL'", - "workspaceMemberId": null - }, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "8742cb30-42ff-4416-8323-4a84c007be81", - "universalIdentifier": "7ec7eea8-8715-4656-a602-3cb4256aaca1", - "type": "ACTOR", - "name": "updatedBy", - "label": "Updated by", - "description": "The workspace member who last updated the record", - "icon": "IconUserCircle", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": { - "name": "'System'", - "source": "'MANUAL'", - "workspaceMemberId": null - }, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "e144f995-ee97-499a-b176-28b6b07197cf", - "universalIdentifier": "5317d4f4-12c5-469d-8e47-0f3b2ffc95b4", - "type": "POSITION", - "name": "position", - "label": "Position", - "description": "Message Folder record position", - "icon": "IconHierarchy2", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": false, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": 0, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "689399ab-a724-4eb8-8e63-36bf9958d1e1", - "universalIdentifier": "5f2d3937-bafd-4d71-b4cb-b34037efd2e1", - "type": "TS_VECTOR", - "name": "searchVector", - "label": "Search vector", - "description": "Field used for full-text search", - "icon": "IconUser", - "isCustom": false, - "isActive": true, - "isSystem": true, - "isUIReadOnly": false, - "isNullable": true, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": null, - "options": null, - "settings": { - "asExpression": "to_tsvector('simple', COALESCE(public.unaccent_immutable(\"name\"), ''))", - "generatedType": "STORED" - }, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "805287dc-b483-4547-bf7b-37d6f4d57762", - "universalIdentifier": "20202020-7cf8-40bc-a681-b80b771449b7", - "type": "TEXT", - "name": "name", - "label": "Name", - "description": "Folder name", - "icon": "IconFolder", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": true, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": null, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "08e614d5-cbc5-4686-b1fb-611b05a19ab3", - "universalIdentifier": "20202020-98cd-49ed-8dfc-cb5796400e64", - "type": "TEXT", - "name": "syncCursor", - "label": "Sync Cursor", - "description": "Sync Cursor", - "icon": "IconHash", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": true, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": null, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "9a867c58-4f79-4e11-a421-df39741981ab", - "universalIdentifier": "20202020-2af5-4a25-b2de-3c9386da941b", - "type": "BOOLEAN", - "name": "isSentFolder", - "label": "Is Sent Folder", - "description": "Is Sent Folder", - "icon": "IconCheck", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": false, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "b576fad5-752c-4d6a-a666-ccf5729c05ad", - "universalIdentifier": "20202020-764f-4e09-8f95-cd46b6bfe3c4", - "type": "BOOLEAN", - "name": "isSynced", - "label": "Is Synced", - "description": "Is Synced", - "icon": "IconCheck", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": false, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "2da76140-bb4a-4fb9-bac8-9a883379d41c", - "universalIdentifier": "20202020-e45d-49de-a4aa-587bbf9601f3", - "type": "TEXT", - "name": "parentFolderId", - "label": "Parent Folder ID", - "description": "Parent Folder ID", - "icon": "IconFolder", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": true, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": null, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "94562510-a0c0-4940-a140-d4aebb3534b9", - "universalIdentifier": "20202020-f3a8-4d2b-9c7e-1b5f9a8e4c6d", - "type": "TEXT", - "name": "externalId", - "label": "External ID", - "description": "External ID", - "icon": "IconHash", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": true, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": null, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "4db54d45-6f99-4e17-ad43-6612f8b45d9e", - "universalIdentifier": "20202020-4f97-4c79-9517-16387fe237f7", - "type": "SELECT", - "name": "pendingSyncAction", - "label": "Pending Sync Action", - "description": "Pending action for folder sync", - "icon": "IconReload", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": "'NONE'", - "options": [ - { - "id": "20202020-dc59-4dd3-92fe-f41c6491a588", - "color": "red", - "label": "Folder deletion", - "value": "FOLDER_DELETION", - "position": 0 - }, - { - "id": "20202020-aa29-41d3-872b-142174fe6595", - "color": "blue", - "label": "None", - "value": "NONE", - "position": 1 - } - ], - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - }, - { - "__typename": "Field", - "id": "cdca7f13-b430-4780-8cb0-747cbd92ae7b", - "universalIdentifier": "20202020-c9f8-43db-a3e7-7f2e8b5d9c1a", - "type": "UUID", - "name": "messageChannelId", - "label": "Message Channel", - "description": "Message Channel", - "icon": "IconMessage", - "isCustom": false, - "isActive": true, - "isSystem": false, - "isUIReadOnly": true, - "isNullable": false, - "isUnique": false, - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "defaultValue": null, - "options": null, - "settings": null, - "isLabelSyncedWithName": false, - "morphId": null, - "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec", - "relation": null, - "morphRelations": null - } - ], - "indexMetadataList": [ - { - "__typename": "Index", - "id": "396c419e-838b-4dab-9690-ac297a14b098", - "createdAt": "2026-04-10T08:55:56.200Z", - "updatedAt": "2026-04-10T08:55:56.200Z", - "name": "IDX_a1bbe482462d9f016582d99d4e6", - "indexWhereClause": null, - "indexType": "BTREE", - "isUnique": false, - "isCustom": false, - "indexFieldMetadataList": [ - { - "__typename": "IndexField", - "id": "b26ebc56-7b3e-409a-a4f1-1747ebfad2a1", - "fieldMetadataId": "cdca7f13-b430-4780-8cb0-747cbd92ae7b", - "createdAt": "2026-04-10T08:55:56.604Z", - "updatedAt": "2026-04-10T08:55:56.604Z", - "order": 0 - } - ] - } - ] - } - }, { "__typename": "ObjectEdge", "node": { diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-8/2-8-upgrade-version-command.module.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-8/2-8-upgrade-version-command.module.ts index e464b224ef..6f998d8f53 100644 --- a/packages/twenty-server/src/database/commands/upgrade-version-command/2-8/2-8-upgrade-version-command.module.ts +++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-8/2-8-upgrade-version-command.module.ts @@ -1,6 +1,7 @@ import { Module } from '@nestjs/common'; import { WorkspaceIteratorModule } from 'src/database/commands/command-runners/workspace-iterator.module'; +import { DropChannelStandardObjectsCommand } from 'src/database/commands/upgrade-version-command/2-8/2-8-workspace-command-1798000050000-drop-channel-standard-objects.command'; import { BackfillRelationJoinColumnIndexesCommand } from 'src/database/commands/upgrade-version-command/2-8/2-8-workspace-command-1798100000000-backfill-relation-join-column-indexes.command'; import { ApplicationModule } from 'src/engine/core-modules/application/application.module'; import { WorkspaceSchemaManagerModule } from 'src/engine/twenty-orm/workspace-schema-manager/workspace-schema-manager.module'; @@ -15,6 +16,9 @@ import { WorkspaceMigrationModule } from 'src/engine/workspace-manager/workspace WorkspaceMigrationModule, WorkspaceSchemaManagerModule, ], - providers: [BackfillRelationJoinColumnIndexesCommand], + providers: [ + DropChannelStandardObjectsCommand, + BackfillRelationJoinColumnIndexesCommand, + ], }) export class V2_8_UpgradeVersionCommandModule {} diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-8/2-8-workspace-command-1798000050000-drop-channel-standard-objects.command.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-8/2-8-workspace-command-1798000050000-drop-channel-standard-objects.command.ts new file mode 100644 index 0000000000..8192ce6043 --- /dev/null +++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-8/2-8-workspace-command-1798000050000-drop-channel-standard-objects.command.ts @@ -0,0 +1,119 @@ +import { Command } from 'nest-commander'; + +import { ActiveOrSuspendedWorkspaceCommandRunner } from 'src/database/commands/command-runners/active-or-suspended-workspace.command-runner'; +import { WorkspaceIteratorService } from 'src/database/commands/command-runners/workspace-iterator.service'; +import { type RunOnWorkspaceArgs } from 'src/database/commands/command-runners/workspace.command-runner'; +import { ApplicationService } from 'src/engine/core-modules/application/application.service'; +import { RegisteredWorkspaceCommand } from 'src/engine/core-modules/upgrade/decorators/registered-workspace-command.decorator'; +import { findFlatEntityByUniversalIdentifier } from 'src/engine/metadata-modules/flat-entity/utils/find-flat-entity-by-universal-identifier.util'; +import { type FlatObjectMetadata } from 'src/engine/metadata-modules/flat-object-metadata/types/flat-object-metadata.type'; +import { WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service'; +import { WorkspaceMigrationValidateBuildAndRunService } from 'src/engine/workspace-manager/workspace-migration/services/workspace-migration-validate-build-and-run-service'; + +const CALENDAR_CHANNEL_OBJECT_UNIVERSAL_IDENTIFIER = + '20202020-e8f2-40e1-a39c-c0e0039c5034'; + +const MESSAGE_CHANNEL_OBJECT_UNIVERSAL_IDENTIFIER = + '20202020-fe8c-40bc-a681-b80b771449b7'; + +const MESSAGE_FOLDER_OBJECT_UNIVERSAL_IDENTIFIER = + '20202020-4955-4fd9-8e59-2dbd373f2a46'; + +const OBJECT_UNIVERSAL_IDENTIFIERS = [ + CALENDAR_CHANNEL_OBJECT_UNIVERSAL_IDENTIFIER, + MESSAGE_CHANNEL_OBJECT_UNIVERSAL_IDENTIFIER, + MESSAGE_FOLDER_OBJECT_UNIVERSAL_IDENTIFIER, +]; + +@RegisteredWorkspaceCommand('2.8.0', 1798000050000) +@Command({ + name: 'upgrade:2-8:drop-channel-standard-objects', + description: + 'Drop calendarChannel, messageChannel, messageFolder standard objects from workspace schemas (moved to core metadata)', +}) +export class DropChannelStandardObjectsCommand extends ActiveOrSuspendedWorkspaceCommandRunner { + constructor( + protected readonly workspaceIteratorService: WorkspaceIteratorService, + private readonly applicationService: ApplicationService, + private readonly workspaceMigrationValidateBuildAndRunService: WorkspaceMigrationValidateBuildAndRunService, + private readonly workspaceCacheService: WorkspaceCacheService, + ) { + super(workspaceIteratorService); + } + + override async runOnWorkspace({ + workspaceId, + options, + }: RunOnWorkspaceArgs): Promise { + const isDryRun = options.dryRun ?? false; + + this.logger.log( + `${isDryRun ? '[DRY RUN] ' : ''}Starting channel standard objects removal for workspace ${workspaceId}`, + ); + + const { flatObjectMetadataMaps } = + await this.workspaceCacheService.getOrRecompute(workspaceId, [ + 'flatObjectMetadataMaps', + ]); + + const objectsToDelete = OBJECT_UNIVERSAL_IDENTIFIERS.map( + (universalIdentifier) => + findFlatEntityByUniversalIdentifier({ + flatEntityMaps: flatObjectMetadataMaps, + universalIdentifier, + }), + ).filter((object): object is FlatObjectMetadata => object !== undefined); + + if (objectsToDelete.length === 0) { + this.logger.log( + `Channel standard objects already absent for workspace ${workspaceId}`, + ); + + return; + } + + if (isDryRun) { + this.logger.log( + `[DRY RUN] Would delete ${objectsToDelete.length} channel standard objects for workspace ${workspaceId}`, + ); + + return; + } + + const { twentyStandardFlatApplication } = + await this.applicationService.findWorkspaceTwentyStandardAndCustomApplicationOrThrow( + { workspaceId }, + ); + + const validateAndBuildResult = + await this.workspaceMigrationValidateBuildAndRunService.validateBuildAndRunWorkspaceMigration( + { + isSystemBuild: true, + allFlatEntityOperationByMetadataName: { + objectMetadata: { + flatEntityToCreate: [], + flatEntityToDelete: objectsToDelete, + flatEntityToUpdate: [], + }, + }, + workspaceId, + applicationUniversalIdentifier: + twentyStandardFlatApplication.universalIdentifier, + }, + ); + + if (validateAndBuildResult.status === 'fail') { + this.logger.error( + `Failed to delete channel standard objects:\n${JSON.stringify(validateAndBuildResult, null, 2)}`, + ); + + throw new Error( + `Failed to delete channel standard objects for workspace ${workspaceId}`, + ); + } + + this.logger.log( + `Deleted ${objectsToDelete.length} channel standard objects for workspace ${workspaceId}`, + ); + } +} diff --git a/packages/twenty-server/src/engine/metadata-modules/connected-account/connected-account-metadata.service.ts b/packages/twenty-server/src/engine/metadata-modules/connected-account/connected-account-metadata.service.ts index 2a413aea9c..f3a229827f 100644 --- a/packages/twenty-server/src/engine/metadata-modules/connected-account/connected-account-metadata.service.ts +++ b/packages/twenty-server/src/engine/metadata-modules/connected-account/connected-account-metadata.service.ts @@ -1,10 +1,8 @@ import { Injectable, Logger } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; -import { STANDARD_OBJECTS } from 'twenty-shared/metadata'; import { Repository } from 'typeorm'; -import { DatabaseEventAction } from 'src/engine/api/graphql/graphql-query-runner/enums/database-event-action'; import { AppOAuthRevokeService } from 'src/engine/core-modules/application/connection-provider/refresh/services/app-oauth-revoke.service'; import { CalendarChannelEntity } from 'src/engine/metadata-modules/calendar-channel/entities/calendar-channel.entity'; import { @@ -12,12 +10,7 @@ import { ConnectedAccountExceptionCode, } from 'src/engine/metadata-modules/connected-account/connected-account.exception'; import { ConnectedAccountEntity } from 'src/engine/metadata-modules/connected-account/entities/connected-account.entity'; -import { WorkspaceManyOrAllFlatEntityMapsCacheService } from 'src/engine/metadata-modules/flat-entity/services/workspace-many-or-all-flat-entity-maps-cache.service'; -import { findFlatEntityByUniversalIdentifierOrThrow } from 'src/engine/metadata-modules/flat-entity/utils/find-flat-entity-by-universal-identifier-or-throw.util'; import { MessageChannelEntity } from 'src/engine/metadata-modules/message-channel/entities/message-channel.entity'; -import { GlobalWorkspaceOrmManager } from 'src/engine/twenty-orm/global-workspace-datasource/global-workspace-orm.manager'; -import { buildSystemAuthContext } from 'src/engine/twenty-orm/utils/build-system-auth-context.util'; -import { WorkspaceEventEmitter } from 'src/engine/workspace-event-emitter/workspace-event-emitter'; @Injectable() export class ConnectedAccountMetadataService { @@ -30,9 +23,6 @@ export class ConnectedAccountMetadataService { private readonly calendarChannelRepository: Repository, @InjectRepository(MessageChannelEntity) private readonly messageChannelRepository: Repository, - private readonly globalWorkspaceOrmManager: GlobalWorkspaceOrmManager, - private readonly workspaceEventEmitter: WorkspaceEventEmitter, - private readonly workspaceManyOrAllFlatEntityMapsCacheService: WorkspaceManyOrAllFlatEntityMapsCacheService, private readonly appOAuthRevokeService: AppOAuthRevokeService, ) {} @@ -158,93 +148,22 @@ export class ConnectedAccountMetadataService { where: { id, workspaceId }, }); - const authContext = buildSystemAuthContext(workspaceId); - - const [messageChannels, calendarChannels] = await Promise.all([ - this.globalWorkspaceOrmManager.executeInWorkspaceContext( - async () => - this.messageChannelRepository.find({ - where: { connectedAccountId: id, workspaceId }, - }), - authContext, - ), - this.globalWorkspaceOrmManager.executeInWorkspaceContext( - async () => - this.calendarChannelRepository.find({ - where: { connectedAccountId: id, workspaceId }, - }), - authContext, - ), + const [messageChannelCount, calendarChannelCount] = await Promise.all([ + this.messageChannelRepository.count({ + where: { connectedAccountId: id, workspaceId }, + }), + this.calendarChannelRepository.count({ + where: { connectedAccountId: id, workspaceId }, + }), ]); this.logger.log( - `WorkspaceId: ${workspaceId} Deleting connected account ${id} with ${messageChannels.length} message channel(s) and ${calendarChannels.length} calendar channel(s)`, + `WorkspaceId: ${workspaceId} Deleting connected account ${id} with ${messageChannelCount} message channel(s) and ${calendarChannelCount} calendar channel(s)`, ); - // Best-effort revocation against the provider's revokeEndpoint (no-op - // for non-app providers and for app providers without a revokeEndpoint - // declared). We don't want a slow or failing provider to block the - // local disconnect, so any error is swallowed inside the service. await this.appOAuthRevokeService.revokeIfApp(connectedAccount); - await this.globalWorkspaceOrmManager.executeInWorkspaceContext(async () => { - await this.repository.delete({ - id, - workspaceId, - }); - }, authContext); - - const { flatObjectMetadataMaps } = - await this.workspaceManyOrAllFlatEntityMapsCacheService.getOrRecomputeManyOrAllFlatEntityMaps( - { - workspaceId, - flatMapsKeys: ['flatObjectMetadataMaps'], - }, - ); - - if (messageChannels.length > 0) { - const flatMessageChannelMetadata = - findFlatEntityByUniversalIdentifierOrThrow({ - flatEntityMaps: flatObjectMetadataMaps, - universalIdentifier: - STANDARD_OBJECTS.messageChannel.universalIdentifier, - }); - - this.workspaceEventEmitter.emitDatabaseBatchEvent({ - objectMetadataNameSingular: 'messageChannel', - action: DatabaseEventAction.DESTROYED, - objectMetadata: flatMessageChannelMetadata, - events: messageChannels.map((messageChannel) => ({ - recordId: messageChannel.id, - properties: { - before: messageChannel, - }, - })), - workspaceId, - }); - } - - if (calendarChannels.length > 0) { - const flatCalendarChannelMetadata = - findFlatEntityByUniversalIdentifierOrThrow({ - flatEntityMaps: flatObjectMetadataMaps, - universalIdentifier: - STANDARD_OBJECTS.calendarChannel.universalIdentifier, - }); - - this.workspaceEventEmitter.emitDatabaseBatchEvent({ - objectMetadataNameSingular: 'calendarChannel', - action: DatabaseEventAction.DESTROYED, - objectMetadata: flatCalendarChannelMetadata, - events: calendarChannels.map((calendarChannel) => ({ - recordId: calendarChannel.id, - properties: { - before: calendarChannel, - }, - })), - workspaceId, - }); - } + await this.repository.delete({ id, workspaceId }); return connectedAccount; } diff --git a/packages/twenty-server/src/engine/metadata-modules/message-folder/entities/message-folder.entity.ts b/packages/twenty-server/src/engine/metadata-modules/message-folder/entities/message-folder.entity.ts index 3588048ac8..727fe077a8 100644 --- a/packages/twenty-server/src/engine/metadata-modules/message-folder/entities/message-folder.entity.ts +++ b/packages/twenty-server/src/engine/metadata-modules/message-folder/entities/message-folder.entity.ts @@ -1,3 +1,5 @@ +import { registerEnumType } from '@nestjs/graphql'; + import { Column, CreateDateColumn, @@ -14,6 +16,10 @@ import { MessageFolderPendingSyncAction } from 'twenty-shared/types'; import { MessageChannelEntity } from 'src/engine/metadata-modules/message-channel/entities/message-channel.entity'; import { WorkspaceRelatedEntity } from 'src/engine/workspace-manager/types/workspace-related-entity'; +registerEnumType(MessageFolderPendingSyncAction, { + name: 'MessageFolderPendingSyncAction', +}); + @Entity({ name: 'messageFolder', schema: 'core' }) export class MessageFolderEntity extends WorkspaceRelatedEntity { @PrimaryGeneratedColumn('uuid') diff --git a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/constants/calendar-channel-seed-ids.constant.ts b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/constants/calendar-channel-seed-ids.constant.ts new file mode 100644 index 0000000000..2fd273695a --- /dev/null +++ b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/constants/calendar-channel-seed-ids.constant.ts @@ -0,0 +1,8 @@ +export const CALENDAR_CHANNEL_DATA_SEED_IDS = { + TIM: '20202020-a40f-4faf-bb9f-c6f9945b8203', + JONY: '20202020-a40f-4faf-bb9f-c6f9945b8204', + PHIL: '20202020-a40f-4faf-bb9f-c6f9945b8205', + JANE: '20202020-a40f-4faf-bb9f-c6f9945b8208', + COMPANY_MAIN: '20202020-a40f-4faf-bb9f-c6f9945b8206', + TEAM_CALENDAR: '20202020-a40f-4faf-bb9f-c6f9945b8207', +} as const; diff --git a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/constants/message-channel-seed-ids.constant.ts b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/constants/message-channel-seed-ids.constant.ts new file mode 100644 index 0000000000..c5d67b4b12 --- /dev/null +++ b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/constants/message-channel-seed-ids.constant.ts @@ -0,0 +1,8 @@ +export const MESSAGE_CHANNEL_DATA_SEED_IDS = { + TIM: '20202020-9b80-4c2c-a597-383db48de1d6', + JONY: '20202020-5ffe-4b32-814a-983d5e4911cd', + PHIL: '20202020-e2f1-49b5-85d2-5d3a3386990c', + JANE: '20202020-8c4d-4e71-a672-2e6a8c9f1b3d', + SUPPORT: '20202020-e2f1-49b5-85d2-5d3a3386990d', + SALES: '20202020-e2f1-49b5-85d2-5d3a3386990e', +} as const; diff --git a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/constants/message-folder-seed-ids.constant.ts b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/constants/message-folder-seed-ids.constant.ts new file mode 100644 index 0000000000..cdf21795cd --- /dev/null +++ b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/constants/message-folder-seed-ids.constant.ts @@ -0,0 +1,7 @@ +export const MESSAGE_FOLDER_DATA_SEED_IDS = { + TIM_INBOX: '20202020-f1a2-4b3c-8d4e-5f6a7b8c9d0e', + TIM_SENT: '20202020-f1a2-4b3c-8d4e-5f6a7b8c9d1e', + JONY_INBOX: '20202020-f1a2-4b3c-8d4e-5f6a7b8c9d2e', + JANE_INBOX: '20202020-f1a2-4b3c-8d4e-5f6a7b8c9d3e', + JANE_SENT: '20202020-f1a2-4b3c-8d4e-5f6a7b8c9d4e', +} as const; diff --git a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/utils/seed-metadata-entities.util.ts b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/utils/seed-metadata-entities.util.ts index 076a4271ef..f5dcb0a69c 100644 --- a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/utils/seed-metadata-entities.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/utils/seed-metadata-entities.util.ts @@ -13,10 +13,10 @@ import { SEED_YCOMBINATOR_WORKSPACE_ID, } from 'src/engine/workspace-manager/dev-seeder/core/constants/seeder-workspaces.constant'; import { USER_WORKSPACE_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/core/utils/seed-user-workspaces.util'; -import { CALENDAR_CHANNEL_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/data/constants/calendar-channel-data-seeds.constant'; +import { CALENDAR_CHANNEL_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/core/constants/calendar-channel-seed-ids.constant'; +import { MESSAGE_CHANNEL_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/core/constants/message-channel-seed-ids.constant'; +import { MESSAGE_FOLDER_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/core/constants/message-folder-seed-ids.constant'; import { CONNECTED_ACCOUNT_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/data/constants/connected-account-data-seeds.constant'; -import { MESSAGE_CHANNEL_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/data/constants/message-channel-data-seeds.constant'; -import { MESSAGE_FOLDER_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/data/constants/message-folder-data-seeds.constant'; type SeedMetadataEntitiesArgs = { queryRunner: QueryRunner; @@ -40,7 +40,7 @@ const YC_MESSAGE_CHANNEL_IDS = { JANE: '30303030-8c4d-4e71-a672-2e6a8c9f1b3d', SUPPORT: '30303030-e2f1-49b5-85d2-5d3a3386990d', SALES: '30303030-e2f1-49b5-85d2-5d3a3386990e', -}; +} as const; const YC_CALENDAR_CHANNEL_IDS = { TIM: '30303030-a40f-4faf-bb9f-c6f9945b8203', @@ -49,7 +49,7 @@ const YC_CALENDAR_CHANNEL_IDS = { JANE: '30303030-a40f-4faf-bb9f-c6f9945b8208', COMPANY_MAIN: '30303030-a40f-4faf-bb9f-c6f9945b8206', TEAM_CALENDAR: '30303030-a40f-4faf-bb9f-c6f9945b8207', -}; +} as const; const YC_MESSAGE_FOLDER_IDS = { TIM_INBOX: '30303030-1234-4567-8901-abcdef012345', @@ -57,22 +57,9 @@ const YC_MESSAGE_FOLDER_IDS = { JONY_INBOX: '30303030-1234-4567-8901-abcdef012346', JANE_INBOX: '30303030-1234-4567-8901-abcdef012347', JANE_SENT: '30303030-1234-4567-8901-abcdef012348', -}; +} as const; -type WorkspaceSeedIds = { - userWorkspaceIds: { - TIM: string; - JONY: string; - PHIL: string; - JANE: string; - }; - connectedAccountIds: typeof CONNECTED_ACCOUNT_DATA_SEED_IDS; - messageChannelIds: typeof MESSAGE_CHANNEL_DATA_SEED_IDS; - calendarChannelIds: typeof CALENDAR_CHANNEL_DATA_SEED_IDS; - messageFolderIds: typeof MESSAGE_FOLDER_DATA_SEED_IDS; -}; - -const getSeedIds = (workspaceId: string): WorkspaceSeedIds => { +const getSeedIds = (workspaceId: string) => { if (workspaceId === SEED_YCOMBINATOR_WORKSPACE_ID) { return { userWorkspaceIds: { diff --git a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/data/constants/calendar-channel-data-seeds.constant.ts b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/data/constants/calendar-channel-data-seeds.constant.ts deleted file mode 100644 index 0d707430be..0000000000 --- a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/data/constants/calendar-channel-data-seeds.constant.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { CalendarChannelVisibility } from 'twenty-shared/types'; - -type CalendarChannelDataSeed = { - id: string; - handle: string; - visibility: CalendarChannelVisibility; - isContactAutoCreationEnabled: boolean; - isSyncEnabled: boolean; -}; - -export const CALENDAR_CHANNEL_DATA_SEED_COLUMNS: (keyof CalendarChannelDataSeed)[] = - [ - 'id', - 'handle', - 'visibility', - 'isContactAutoCreationEnabled', - 'isSyncEnabled', - ]; - -const GENERATE_CALENDAR_CHANNEL_IDS = (): Record => { - const CHANNEL_IDS: Record = {}; - - CHANNEL_IDS['TIM'] = '20202020-a40f-4faf-bb9f-c6f9945b8203'; - CHANNEL_IDS['JONY'] = '20202020-a40f-4faf-bb9f-c6f9945b8204'; - CHANNEL_IDS['PHIL'] = '20202020-a40f-4faf-bb9f-c6f9945b8205'; - CHANNEL_IDS['JANE'] = '20202020-a40f-4faf-bb9f-c6f9945b8208'; - CHANNEL_IDS['COMPANY_MAIN'] = '20202020-a40f-4faf-bb9f-c6f9945b8206'; - CHANNEL_IDS['TEAM_CALENDAR'] = '20202020-a40f-4faf-bb9f-c6f9945b8207'; - - return CHANNEL_IDS; -}; - -export const CALENDAR_CHANNEL_DATA_SEED_IDS = GENERATE_CALENDAR_CHANNEL_IDS(); - -export const CALENDAR_CHANNEL_DATA_SEEDS: CalendarChannelDataSeed[] = [ - { - id: CALENDAR_CHANNEL_DATA_SEED_IDS.TIM, - handle: 'tim@apple.dev', - visibility: CalendarChannelVisibility.METADATA, - isContactAutoCreationEnabled: true, - isSyncEnabled: false, - }, - { - id: CALENDAR_CHANNEL_DATA_SEED_IDS.JONY, - handle: 'jony@apple.dev', - visibility: CalendarChannelVisibility.SHARE_EVERYTHING, - isContactAutoCreationEnabled: true, - isSyncEnabled: false, - }, - { - id: CALENDAR_CHANNEL_DATA_SEED_IDS.PHIL, - handle: 'phil@apple.dev', - visibility: CalendarChannelVisibility.METADATA, - isContactAutoCreationEnabled: true, - isSyncEnabled: false, - }, - { - id: CALENDAR_CHANNEL_DATA_SEED_IDS.JANE, - handle: 'jane.austen@apple.dev', - visibility: CalendarChannelVisibility.SHARE_EVERYTHING, - isContactAutoCreationEnabled: true, - isSyncEnabled: false, - }, - { - id: CALENDAR_CHANNEL_DATA_SEED_IDS.COMPANY_MAIN, - handle: 'company-main@apple.dev', - visibility: CalendarChannelVisibility.SHARE_EVERYTHING, - isContactAutoCreationEnabled: true, - isSyncEnabled: false, - }, - { - id: CALENDAR_CHANNEL_DATA_SEED_IDS.TEAM_CALENDAR, - handle: 'team-calendar@apple.dev', - visibility: CalendarChannelVisibility.SHARE_EVERYTHING, - isContactAutoCreationEnabled: true, - isSyncEnabled: false, - }, -]; diff --git a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/data/constants/calendar-channel-event-association-data-seeds.constant.ts b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/data/constants/calendar-channel-event-association-data-seeds.constant.ts index e6696a5f5b..0153731057 100644 --- a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/data/constants/calendar-channel-event-association-data-seeds.constant.ts +++ b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/data/constants/calendar-channel-event-association-data-seeds.constant.ts @@ -1,4 +1,4 @@ -import { CALENDAR_CHANNEL_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/data/constants/calendar-channel-data-seeds.constant'; +import { CALENDAR_CHANNEL_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/core/constants/calendar-channel-seed-ids.constant'; import { CALENDAR_EVENT_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/data/constants/calendar-event-data-seeds.constant'; type CalendarChannelEventAssociationDataSeed = { diff --git a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/data/constants/message-channel-data-seeds.constant.ts b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/data/constants/message-channel-data-seeds.constant.ts deleted file mode 100644 index f4e14f1337..0000000000 --- a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/data/constants/message-channel-data-seeds.constant.ts +++ /dev/null @@ -1,122 +0,0 @@ -import { - MessageChannelSyncStage, - MessageChannelType, - MessageChannelVisibility, -} from 'twenty-shared/types'; - -type MessageChannelDataSeed = { - id: string; - createdAt: Date; - updatedAt: Date; - deletedAt: Date | null; - isContactAutoCreationEnabled: boolean; - type: MessageChannelType; - handle: string; - isSyncEnabled: boolean; - visibility: MessageChannelVisibility; - syncStage: MessageChannelSyncStage; -}; - -export const MESSAGE_CHANNEL_DATA_SEED_COLUMNS: (keyof MessageChannelDataSeed)[] = - [ - 'id', - 'createdAt', - 'updatedAt', - 'deletedAt', - 'isContactAutoCreationEnabled', - 'type', - 'handle', - 'isSyncEnabled', - 'visibility', - 'syncStage', - ]; - -const GENERATE_MESSAGE_CHANNEL_IDS = (): Record => { - const CHANNEL_IDS: Record = {}; - - CHANNEL_IDS['TIM'] = '20202020-9b80-4c2c-a597-383db48de1d6'; - CHANNEL_IDS['JONY'] = '20202020-5ffe-4b32-814a-983d5e4911cd'; - CHANNEL_IDS['PHIL'] = '20202020-e2f1-49b5-85d2-5d3a3386990c'; - CHANNEL_IDS['JANE'] = '20202020-8c4d-4e71-a672-2e6a8c9f1b3d'; - CHANNEL_IDS['SUPPORT'] = '20202020-e2f1-49b5-85d2-5d3a3386990d'; - CHANNEL_IDS['SALES'] = '20202020-e2f1-49b5-85d2-5d3a3386990e'; - - return CHANNEL_IDS; -}; - -export const MESSAGE_CHANNEL_DATA_SEED_IDS = GENERATE_MESSAGE_CHANNEL_IDS(); - -export const MESSAGE_CHANNEL_DATA_SEEDS: MessageChannelDataSeed[] = [ - { - id: MESSAGE_CHANNEL_DATA_SEED_IDS.TIM, - createdAt: new Date(), - updatedAt: new Date(), - deletedAt: null, - isContactAutoCreationEnabled: true, - type: MessageChannelType.EMAIL, - handle: 'tim@apple.dev', - isSyncEnabled: false, - visibility: MessageChannelVisibility.SHARE_EVERYTHING, - syncStage: MessageChannelSyncStage.MESSAGE_LIST_FETCH_PENDING, - }, - { - id: MESSAGE_CHANNEL_DATA_SEED_IDS.JONY, - createdAt: new Date(), - updatedAt: new Date(), - deletedAt: null, - isContactAutoCreationEnabled: true, - type: MessageChannelType.EMAIL, - handle: 'jony.ive@apple.dev', - isSyncEnabled: false, - visibility: MessageChannelVisibility.SHARE_EVERYTHING, - syncStage: MessageChannelSyncStage.MESSAGE_LIST_FETCH_PENDING, - }, - { - id: MESSAGE_CHANNEL_DATA_SEED_IDS.PHIL, - createdAt: new Date(), - updatedAt: new Date(), - deletedAt: null, - isContactAutoCreationEnabled: true, - type: MessageChannelType.EMAIL, - handle: 'phil.schiler@apple.dev', - isSyncEnabled: false, - visibility: MessageChannelVisibility.SHARE_EVERYTHING, - syncStage: MessageChannelSyncStage.MESSAGE_LIST_FETCH_PENDING, - }, - { - id: MESSAGE_CHANNEL_DATA_SEED_IDS.JANE, - createdAt: new Date(), - updatedAt: new Date(), - deletedAt: null, - isContactAutoCreationEnabled: true, - type: MessageChannelType.EMAIL, - handle: 'jane.austen@apple.dev', - isSyncEnabled: false, - visibility: MessageChannelVisibility.SHARE_EVERYTHING, - syncStage: MessageChannelSyncStage.MESSAGE_LIST_FETCH_PENDING, - }, - { - id: MESSAGE_CHANNEL_DATA_SEED_IDS.SUPPORT, - createdAt: new Date(), - updatedAt: new Date(), - deletedAt: null, - isContactAutoCreationEnabled: true, - type: MessageChannelType.EMAIL, - handle: 'support@apple.dev', - isSyncEnabled: false, - visibility: MessageChannelVisibility.SHARE_EVERYTHING, - syncStage: MessageChannelSyncStage.MESSAGE_LIST_FETCH_PENDING, - }, - { - id: MESSAGE_CHANNEL_DATA_SEED_IDS.SALES, - createdAt: new Date(), - updatedAt: new Date(), - deletedAt: null, - isContactAutoCreationEnabled: true, - type: MessageChannelType.EMAIL, - handle: 'sales@apple.dev', - isSyncEnabled: false, - visibility: MessageChannelVisibility.SHARE_EVERYTHING, - syncStage: MessageChannelSyncStage.MESSAGE_LIST_FETCH_PENDING, - }, -]; diff --git a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/data/constants/message-channel-message-association-data-seeds.constant.ts b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/data/constants/message-channel-message-association-data-seeds.constant.ts index b927a4c40d..137ae8c2b4 100644 --- a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/data/constants/message-channel-message-association-data-seeds.constant.ts +++ b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/data/constants/message-channel-message-association-data-seeds.constant.ts @@ -1,4 +1,4 @@ -import { MESSAGE_CHANNEL_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/data/constants/message-channel-data-seeds.constant'; +import { MESSAGE_CHANNEL_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/core/constants/message-channel-seed-ids.constant'; import { MESSAGE_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/data/constants/message-data-seeds.constant'; import { MessageDirection } from 'src/modules/messaging/common/enums/message-direction.enum'; diff --git a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/data/constants/message-folder-data-seeds.constant.ts b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/data/constants/message-folder-data-seeds.constant.ts deleted file mode 100644 index 2a3ed2d35d..0000000000 --- a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/data/constants/message-folder-data-seeds.constant.ts +++ /dev/null @@ -1,94 +0,0 @@ -import { MessageFolderPendingSyncAction } from 'twenty-shared/types'; - -import { MESSAGE_CHANNEL_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/data/constants/message-channel-data-seeds.constant'; - -type MessageFolderDataSeed = { - id: string; - createdAt: Date; - updatedAt: Date; - deletedAt: Date | null; - name: string; - isSynced: boolean; - isSentFolder: boolean; - messageChannelId: string; - pendingSyncAction: MessageFolderPendingSyncAction; -}; - -export const MESSAGE_FOLDER_DATA_SEED_COLUMNS: (keyof MessageFolderDataSeed)[] = - [ - 'id', - 'createdAt', - 'updatedAt', - 'deletedAt', - 'name', - 'isSynced', - 'isSentFolder', - 'messageChannelId', - 'pendingSyncAction', - ]; - -export const MESSAGE_FOLDER_DATA_SEED_IDS = { - TIM_INBOX: '20202020-f1a2-4b3c-8d4e-5f6a7b8c9d0e', - TIM_SENT: '20202020-f1a2-4b3c-8d4e-5f6a7b8c9d1e', - JONY_INBOX: '20202020-f1a2-4b3c-8d4e-5f6a7b8c9d2e', - JANE_INBOX: '20202020-f1a2-4b3c-8d4e-5f6a7b8c9d3e', - JANE_SENT: '20202020-f1a2-4b3c-8d4e-5f6a7b8c9d4e', -}; - -export const MESSAGE_FOLDER_DATA_SEEDS: MessageFolderDataSeed[] = [ - { - id: MESSAGE_FOLDER_DATA_SEED_IDS.TIM_INBOX, - createdAt: new Date(), - updatedAt: new Date(), - deletedAt: null, - name: 'INBOX', - isSynced: true, - isSentFolder: false, - messageChannelId: MESSAGE_CHANNEL_DATA_SEED_IDS.TIM, - pendingSyncAction: MessageFolderPendingSyncAction.NONE, - }, - { - id: MESSAGE_FOLDER_DATA_SEED_IDS.TIM_SENT, - createdAt: new Date(), - updatedAt: new Date(), - deletedAt: null, - name: 'Sent', - isSynced: true, - isSentFolder: true, - messageChannelId: MESSAGE_CHANNEL_DATA_SEED_IDS.TIM, - pendingSyncAction: MessageFolderPendingSyncAction.NONE, - }, - { - id: MESSAGE_FOLDER_DATA_SEED_IDS.JONY_INBOX, - createdAt: new Date(), - updatedAt: new Date(), - deletedAt: null, - name: 'INBOX', - isSynced: true, - isSentFolder: false, - messageChannelId: MESSAGE_CHANNEL_DATA_SEED_IDS.JONY, - pendingSyncAction: MessageFolderPendingSyncAction.NONE, - }, - { - id: MESSAGE_FOLDER_DATA_SEED_IDS.JANE_INBOX, - createdAt: new Date(), - updatedAt: new Date(), - deletedAt: null, - name: 'INBOX', - isSynced: true, - isSentFolder: false, - messageChannelId: MESSAGE_CHANNEL_DATA_SEED_IDS.JANE, - pendingSyncAction: MessageFolderPendingSyncAction.NONE, - }, - { - id: MESSAGE_FOLDER_DATA_SEED_IDS.JANE_SENT, - createdAt: new Date(), - updatedAt: new Date(), - deletedAt: null, - name: 'Sent', - isSynced: true, - isSentFolder: true, - messageChannelId: MESSAGE_CHANNEL_DATA_SEED_IDS.JANE, - pendingSyncAction: MessageFolderPendingSyncAction.NONE, - }, -]; diff --git a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/data/services/dev-seeder-data.service.ts b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/data/services/dev-seeder-data.service.ts index cd6322cff7..71ef809376 100644 --- a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/data/services/dev-seeder-data.service.ts +++ b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/data/services/dev-seeder-data.service.ts @@ -45,10 +45,6 @@ import { EMPLOYMENT_HISTORY_DATA_SEED_COLUMNS, EMPLOYMENT_HISTORY_DATA_SEEDS, } from 'src/engine/workspace-manager/dev-seeder/data/constants/employment-history-data-seeds.constant'; -import { - MESSAGE_CHANNEL_DATA_SEED_COLUMNS, - MESSAGE_CHANNEL_DATA_SEEDS, -} from 'src/engine/workspace-manager/dev-seeder/data/constants/message-channel-data-seeds.constant'; import { MESSAGE_CHANNEL_MESSAGE_ASSOCIATION_DATA_SEED_COLUMNS, MESSAGE_CHANNEL_MESSAGE_ASSOCIATION_DATA_SEEDS, @@ -173,11 +169,6 @@ const getRecordSeedsBatches = ( pgColumns: PET_DATA_SEED_COLUMNS, recordSeeds: PET_DATA_SEEDS, }, - { - tableName: 'messageChannel', - pgColumns: MESSAGE_CHANNEL_DATA_SEED_COLUMNS, - recordSeeds: MESSAGE_CHANNEL_DATA_SEEDS, - }, ]; // Batch 4: Depends on person/company/messageChannel or independent diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-page-layout.constant.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-page-layout.constant.ts index 4d37e5616e..35feded6cf 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-page-layout.constant.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-page-layout.constant.ts @@ -1,14 +1,11 @@ import { STANDARD_BLOCKLIST_PAGE_LAYOUT_CONFIG, STANDARD_CALENDAR_CHANNEL_EVENT_ASSOCIATION_PAGE_LAYOUT_CONFIG, - STANDARD_CALENDAR_CHANNEL_PAGE_LAYOUT_CONFIG, STANDARD_CALENDAR_EVENT_PARTICIPANT_PAGE_LAYOUT_CONFIG, STANDARD_COMPANY_PAGE_LAYOUT_CONFIG, STANDARD_DASHBOARD_PAGE_LAYOUT_CONFIG, STANDARD_MESSAGE_CHANNEL_MESSAGE_ASSOCIATION_MESSAGE_FOLDER_PAGE_LAYOUT_CONFIG, STANDARD_MESSAGE_CHANNEL_MESSAGE_ASSOCIATION_PAGE_LAYOUT_CONFIG, - STANDARD_MESSAGE_CHANNEL_PAGE_LAYOUT_CONFIG, - STANDARD_MESSAGE_FOLDER_PAGE_LAYOUT_CONFIG, STANDARD_MESSAGE_PARTICIPANT_PAGE_LAYOUT_CONFIG, STANDARD_MESSAGE_THREAD_PAGE_LAYOUT_CONFIG, STANDARD_NOTE_PAGE_LAYOUT_CONFIG, @@ -25,18 +22,15 @@ import { type StandardRecordPageLayouts } from 'src/engine/workspace-manager/twe export const STANDARD_PAGE_LAYOUTS = { myFirstDashboard: STANDARD_DASHBOARD_PAGE_LAYOUT_CONFIG, blocklistRecordPage: STANDARD_BLOCKLIST_PAGE_LAYOUT_CONFIG, - calendarChannelRecordPage: STANDARD_CALENDAR_CHANNEL_PAGE_LAYOUT_CONFIG, calendarChannelEventAssociationRecordPage: STANDARD_CALENDAR_CHANNEL_EVENT_ASSOCIATION_PAGE_LAYOUT_CONFIG, calendarEventParticipantRecordPage: STANDARD_CALENDAR_EVENT_PARTICIPANT_PAGE_LAYOUT_CONFIG, companyRecordPage: STANDARD_COMPANY_PAGE_LAYOUT_CONFIG, - messageChannelRecordPage: STANDARD_MESSAGE_CHANNEL_PAGE_LAYOUT_CONFIG, messageChannelMessageAssociationRecordPage: STANDARD_MESSAGE_CHANNEL_MESSAGE_ASSOCIATION_PAGE_LAYOUT_CONFIG, messageChannelMessageAssociationMessageFolderRecordPage: STANDARD_MESSAGE_CHANNEL_MESSAGE_ASSOCIATION_MESSAGE_FOLDER_PAGE_LAYOUT_CONFIG, - messageFolderRecordPage: STANDARD_MESSAGE_FOLDER_PAGE_LAYOUT_CONFIG, messageParticipantRecordPage: STANDARD_MESSAGE_PARTICIPANT_PAGE_LAYOUT_CONFIG, messageThreadRecordPage: STANDARD_MESSAGE_THREAD_PAGE_LAYOUT_CONFIG, noteRecordPage: STANDARD_NOTE_PAGE_LAYOUT_CONFIG, diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap index cb2f8b2bd6..fbacf7bcff 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap @@ -182,121 +182,6 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object }, }, }, - "calendarChannel": { - "fields": { - "contactAutoCreationPolicy": { - "id": "00000000-0000-0000-0000-000000000087", - }, - "createdAt": { - "id": "00000000-0000-0000-0000-000000000081", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000095", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000083", - }, - "handle": { - "id": "00000000-0000-0000-0000-000000000084", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000080", - }, - "isContactAutoCreationEnabled": { - "id": "00000000-0000-0000-0000-000000000086", - }, - "isSyncEnabled": { - "id": "00000000-0000-0000-0000-000000000088", - }, - "position": { - "id": "00000000-0000-0000-0000-000000000097", - }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000098", - }, - "syncCursor": { - "id": "00000000-0000-0000-0000-000000000089", - }, - "syncStage": { - "id": "00000000-0000-0000-0000-000000000092", - }, - "syncStageStartedAt": { - "id": "00000000-0000-0000-0000-000000000093", - }, - "syncStatus": { - "id": "00000000-0000-0000-0000-000000000091", - }, - "syncedAt": { - "id": "00000000-0000-0000-0000-000000000094", - }, - "throttleFailureCount": { - "id": "00000000-0000-0000-0000-000000000090", - }, - "updatedAt": { - "id": "00000000-0000-0000-0000-000000000082", - }, - "updatedBy": { - "id": "00000000-0000-0000-0000-000000000096", - }, - "visibility": { - "id": "00000000-0000-0000-0000-000000000085", - }, - }, - "id": "00000000-0000-0000-0000-000000000113", - "views": { - "allCalendarChannels": { - "id": "00000000-0000-0000-0000-000000000104", - "viewFieldGroups": {}, - "viewFields": { - "createdAt": { - "id": "00000000-0000-0000-0000-000000000103", - }, - "handle": { - "id": "00000000-0000-0000-0000-000000000099", - }, - "isSyncEnabled": { - "id": "00000000-0000-0000-0000-000000000101", - }, - "syncStatus": { - "id": "00000000-0000-0000-0000-000000000102", - }, - "visibility": { - "id": "00000000-0000-0000-0000-000000000100", - }, - }, - "viewGroups": {}, - }, - "calendarChannelRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000112", - "viewFieldGroups": { - "general": { - "id": "00000000-0000-0000-0000-000000000110", - }, - "system": { - "id": "00000000-0000-0000-0000-000000000111", - }, - }, - "viewFields": { - "createdAt": { - "id": "00000000-0000-0000-0000-000000000108", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000109", - }, - "isSyncEnabled": { - "id": "00000000-0000-0000-0000-000000000106", - }, - "syncStatus": { - "id": "00000000-0000-0000-0000-000000000107", - }, - "visibility": { - "id": "00000000-0000-0000-0000-000000000105", - }, - }, - "viewGroups": {}, - }, - }, - }, "calendarChannelEventAssociation": { "fields": { "calendarChannelId": { @@ -391,101 +276,101 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "calendarEvent": { "fields": { "calendarChannelEventAssociations": { - "id": "00000000-0000-0000-0000-000000000167", + "id": "00000000-0000-0000-0000-000000000133", }, "calendarEventParticipants": { - "id": "00000000-0000-0000-0000-000000000168", + "id": "00000000-0000-0000-0000-000000000134", }, "conferenceLink": { - "id": "00000000-0000-0000-0000-000000000166", + "id": "00000000-0000-0000-0000-000000000132", }, "conferenceSolution": { - "id": "00000000-0000-0000-0000-000000000165", + "id": "00000000-0000-0000-0000-000000000131", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000152", + "id": "00000000-0000-0000-0000-000000000118", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000169", + "id": "00000000-0000-0000-0000-000000000135", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000154", + "id": "00000000-0000-0000-0000-000000000120", }, "description": { - "id": "00000000-0000-0000-0000-000000000162", + "id": "00000000-0000-0000-0000-000000000128", }, "endsAt": { - "id": "00000000-0000-0000-0000-000000000159", + "id": "00000000-0000-0000-0000-000000000125", }, "externalCreatedAt": { - "id": "00000000-0000-0000-0000-000000000160", + "id": "00000000-0000-0000-0000-000000000126", }, "externalUpdatedAt": { - "id": "00000000-0000-0000-0000-000000000161", + "id": "00000000-0000-0000-0000-000000000127", }, "iCalUid": { - "id": "00000000-0000-0000-0000-000000000164", + "id": "00000000-0000-0000-0000-000000000130", }, "id": { - "id": "00000000-0000-0000-0000-000000000151", + "id": "00000000-0000-0000-0000-000000000117", }, "isCanceled": { - "id": "00000000-0000-0000-0000-000000000156", + "id": "00000000-0000-0000-0000-000000000122", }, "isFullDay": { - "id": "00000000-0000-0000-0000-000000000157", + "id": "00000000-0000-0000-0000-000000000123", }, "location": { - "id": "00000000-0000-0000-0000-000000000163", + "id": "00000000-0000-0000-0000-000000000129", }, "position": { - "id": "00000000-0000-0000-0000-000000000171", + "id": "00000000-0000-0000-0000-000000000137", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000172", + "id": "00000000-0000-0000-0000-000000000138", }, "startsAt": { - "id": "00000000-0000-0000-0000-000000000158", + "id": "00000000-0000-0000-0000-000000000124", }, "title": { - "id": "00000000-0000-0000-0000-000000000155", + "id": "00000000-0000-0000-0000-000000000121", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000153", + "id": "00000000-0000-0000-0000-000000000119", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000170", + "id": "00000000-0000-0000-0000-000000000136", }, }, - "id": "00000000-0000-0000-0000-000000000182", + "id": "00000000-0000-0000-0000-000000000148", "views": { "allCalendarEvents": { - "id": "00000000-0000-0000-0000-000000000181", + "id": "00000000-0000-0000-0000-000000000147", "viewFieldGroups": {}, "viewFields": { "conferenceLink": { - "id": "00000000-0000-0000-0000-000000000178", + "id": "00000000-0000-0000-0000-000000000144", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000180", + "id": "00000000-0000-0000-0000-000000000146", }, "endsAt": { - "id": "00000000-0000-0000-0000-000000000175", + "id": "00000000-0000-0000-0000-000000000141", }, "isCanceled": { - "id": "00000000-0000-0000-0000-000000000179", + "id": "00000000-0000-0000-0000-000000000145", }, "isFullDay": { - "id": "00000000-0000-0000-0000-000000000176", + "id": "00000000-0000-0000-0000-000000000142", }, "location": { - "id": "00000000-0000-0000-0000-000000000177", + "id": "00000000-0000-0000-0000-000000000143", }, "startsAt": { - "id": "00000000-0000-0000-0000-000000000174", + "id": "00000000-0000-0000-0000-000000000140", }, "title": { - "id": "00000000-0000-0000-0000-000000000173", + "id": "00000000-0000-0000-0000-000000000139", }, }, "viewGroups": {}, @@ -495,121 +380,121 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "calendarEventParticipant": { "fields": { "calendarEvent": { - "id": "00000000-0000-0000-0000-000000000118", + "id": "00000000-0000-0000-0000-000000000084", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000115", + "id": "00000000-0000-0000-0000-000000000081", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000125", + "id": "00000000-0000-0000-0000-000000000091", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000117", + "id": "00000000-0000-0000-0000-000000000083", }, "displayName": { - "id": "00000000-0000-0000-0000-000000000120", + "id": "00000000-0000-0000-0000-000000000086", }, "handle": { - "id": "00000000-0000-0000-0000-000000000119", + "id": "00000000-0000-0000-0000-000000000085", }, "id": { - "id": "00000000-0000-0000-0000-000000000114", + "id": "00000000-0000-0000-0000-000000000080", }, "isOrganizer": { - "id": "00000000-0000-0000-0000-000000000121", + "id": "00000000-0000-0000-0000-000000000087", }, "person": { - "id": "00000000-0000-0000-0000-000000000123", + "id": "00000000-0000-0000-0000-000000000089", }, "position": { - "id": "00000000-0000-0000-0000-000000000127", + "id": "00000000-0000-0000-0000-000000000093", }, "responseStatus": { - "id": "00000000-0000-0000-0000-000000000122", + "id": "00000000-0000-0000-0000-000000000088", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000128", + "id": "00000000-0000-0000-0000-000000000094", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000116", + "id": "00000000-0000-0000-0000-000000000082", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000126", + "id": "00000000-0000-0000-0000-000000000092", }, "workspaceMember": { - "id": "00000000-0000-0000-0000-000000000124", + "id": "00000000-0000-0000-0000-000000000090", }, }, - "id": "00000000-0000-0000-0000-000000000150", + "id": "00000000-0000-0000-0000-000000000116", "views": { "allCalendarEventParticipants": { - "id": "00000000-0000-0000-0000-000000000137", + "id": "00000000-0000-0000-0000-000000000103", "viewFieldGroups": {}, "viewFields": { "calendarEvent": { - "id": "00000000-0000-0000-0000-000000000129", + "id": "00000000-0000-0000-0000-000000000095", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000136", + "id": "00000000-0000-0000-0000-000000000102", }, "displayName": { - "id": "00000000-0000-0000-0000-000000000131", + "id": "00000000-0000-0000-0000-000000000097", }, "handle": { - "id": "00000000-0000-0000-0000-000000000130", + "id": "00000000-0000-0000-0000-000000000096", }, "isOrganizer": { - "id": "00000000-0000-0000-0000-000000000132", + "id": "00000000-0000-0000-0000-000000000098", }, "person": { - "id": "00000000-0000-0000-0000-000000000134", + "id": "00000000-0000-0000-0000-000000000100", }, "responseStatus": { - "id": "00000000-0000-0000-0000-000000000133", + "id": "00000000-0000-0000-0000-000000000099", }, "workspaceMember": { - "id": "00000000-0000-0000-0000-000000000135", + "id": "00000000-0000-0000-0000-000000000101", }, }, "viewGroups": {}, }, "calendarEventParticipantRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000149", + "id": "00000000-0000-0000-0000-000000000115", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000147", + "id": "00000000-0000-0000-0000-000000000113", }, "system": { - "id": "00000000-0000-0000-0000-000000000148", + "id": "00000000-0000-0000-0000-000000000114", }, }, "viewFields": { "calendarEvent": { - "id": "00000000-0000-0000-0000-000000000138", + "id": "00000000-0000-0000-0000-000000000104", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000145", + "id": "00000000-0000-0000-0000-000000000111", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000146", + "id": "00000000-0000-0000-0000-000000000112", }, "displayName": { - "id": "00000000-0000-0000-0000-000000000140", + "id": "00000000-0000-0000-0000-000000000106", }, "handle": { - "id": "00000000-0000-0000-0000-000000000139", + "id": "00000000-0000-0000-0000-000000000105", }, "isOrganizer": { - "id": "00000000-0000-0000-0000-000000000141", + "id": "00000000-0000-0000-0000-000000000107", }, "person": { - "id": "00000000-0000-0000-0000-000000000143", + "id": "00000000-0000-0000-0000-000000000109", }, "responseStatus": { - "id": "00000000-0000-0000-0000-000000000142", + "id": "00000000-0000-0000-0000-000000000108", }, "workspaceMember": { - "id": "00000000-0000-0000-0000-000000000144", + "id": "00000000-0000-0000-0000-000000000110", }, }, "viewGroups": {}, @@ -619,178 +504,178 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "company": { "fields": { "accountOwner": { - "id": "00000000-0000-0000-0000-000000000199", + "id": "00000000-0000-0000-0000-000000000165", }, "address": { - "id": "00000000-0000-0000-0000-000000000189", + "id": "00000000-0000-0000-0000-000000000155", }, "annualRecurringRevenue": { - "id": "00000000-0000-0000-0000-000000000193", + "id": "00000000-0000-0000-0000-000000000159", }, "attachments": { - "id": "00000000-0000-0000-0000-000000000203", + "id": "00000000-0000-0000-0000-000000000169", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000184", + "id": "00000000-0000-0000-0000-000000000150", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000196", + "id": "00000000-0000-0000-0000-000000000162", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000186", + "id": "00000000-0000-0000-0000-000000000152", }, "domainName": { - "id": "00000000-0000-0000-0000-000000000188", + "id": "00000000-0000-0000-0000-000000000154", }, "employees": { - "id": "00000000-0000-0000-0000-000000000190", + "id": "00000000-0000-0000-0000-000000000156", }, "id": { - "id": "00000000-0000-0000-0000-000000000183", + "id": "00000000-0000-0000-0000-000000000149", }, "idealCustomerProfile": { - "id": "00000000-0000-0000-0000-000000000194", + "id": "00000000-0000-0000-0000-000000000160", }, "linkedinLink": { - "id": "00000000-0000-0000-0000-000000000191", + "id": "00000000-0000-0000-0000-000000000157", }, "name": { - "id": "00000000-0000-0000-0000-000000000187", + "id": "00000000-0000-0000-0000-000000000153", }, "noteTargets": { - "id": "00000000-0000-0000-0000-000000000201", + "id": "00000000-0000-0000-0000-000000000167", }, "opportunities": { - "id": "00000000-0000-0000-0000-000000000202", + "id": "00000000-0000-0000-0000-000000000168", }, "people": { - "id": "00000000-0000-0000-0000-000000000198", + "id": "00000000-0000-0000-0000-000000000164", }, "position": { - "id": "00000000-0000-0000-0000-000000000195", + "id": "00000000-0000-0000-0000-000000000161", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000205", + "id": "00000000-0000-0000-0000-000000000171", }, "taskTargets": { - "id": "00000000-0000-0000-0000-000000000200", + "id": "00000000-0000-0000-0000-000000000166", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000204", + "id": "00000000-0000-0000-0000-000000000170", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000185", + "id": "00000000-0000-0000-0000-000000000151", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000197", + "id": "00000000-0000-0000-0000-000000000163", }, "xLink": { - "id": "00000000-0000-0000-0000-000000000192", + "id": "00000000-0000-0000-0000-000000000158", }, }, - "id": "00000000-0000-0000-0000-000000000238", + "id": "00000000-0000-0000-0000-000000000204", "views": { "allCompanies": { - "id": "00000000-0000-0000-0000-000000000214", + "id": "00000000-0000-0000-0000-000000000180", "viewFieldGroups": {}, "viewFields": { "accountOwner": { - "id": "00000000-0000-0000-0000-000000000209", + "id": "00000000-0000-0000-0000-000000000175", }, "address": { - "id": "00000000-0000-0000-0000-000000000213", + "id": "00000000-0000-0000-0000-000000000179", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000210", + "id": "00000000-0000-0000-0000-000000000176", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000208", + "id": "00000000-0000-0000-0000-000000000174", }, "domainName": { - "id": "00000000-0000-0000-0000-000000000207", + "id": "00000000-0000-0000-0000-000000000173", }, "employees": { - "id": "00000000-0000-0000-0000-000000000211", + "id": "00000000-0000-0000-0000-000000000177", }, "linkedinLink": { - "id": "00000000-0000-0000-0000-000000000212", + "id": "00000000-0000-0000-0000-000000000178", }, "name": { - "id": "00000000-0000-0000-0000-000000000206", + "id": "00000000-0000-0000-0000-000000000172", }, }, "viewGroups": {}, }, "companyRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000237", + "id": "00000000-0000-0000-0000-000000000203", "viewFieldGroups": { "business": { - "id": "00000000-0000-0000-0000-000000000234", + "id": "00000000-0000-0000-0000-000000000200", }, "contact": { - "id": "00000000-0000-0000-0000-000000000235", + "id": "00000000-0000-0000-0000-000000000201", }, "general": { - "id": "00000000-0000-0000-0000-000000000233", + "id": "00000000-0000-0000-0000-000000000199", }, "system": { - "id": "00000000-0000-0000-0000-000000000236", + "id": "00000000-0000-0000-0000-000000000202", }, }, "viewFields": { "accountOwner": { - "id": "00000000-0000-0000-0000-000000000216", + "id": "00000000-0000-0000-0000-000000000182", }, "address": { - "id": "00000000-0000-0000-0000-000000000222", + "id": "00000000-0000-0000-0000-000000000188", }, "annualRecurringRevenue": { - "id": "00000000-0000-0000-0000-000000000217", + "id": "00000000-0000-0000-0000-000000000183", }, "attachments": { - "id": "00000000-0000-0000-0000-000000000231", + "id": "00000000-0000-0000-0000-000000000197", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000223", + "id": "00000000-0000-0000-0000-000000000189", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000224", + "id": "00000000-0000-0000-0000-000000000190", }, "domainName": { - "id": "00000000-0000-0000-0000-000000000215", + "id": "00000000-0000-0000-0000-000000000181", }, "employees": { - "id": "00000000-0000-0000-0000-000000000219", + "id": "00000000-0000-0000-0000-000000000185", }, "idealCustomerProfile": { - "id": "00000000-0000-0000-0000-000000000218", + "id": "00000000-0000-0000-0000-000000000184", }, "linkedinLink": { - "id": "00000000-0000-0000-0000-000000000220", + "id": "00000000-0000-0000-0000-000000000186", }, "noteTargets": { - "id": "00000000-0000-0000-0000-000000000229", + "id": "00000000-0000-0000-0000-000000000195", }, "opportunities": { - "id": "00000000-0000-0000-0000-000000000230", + "id": "00000000-0000-0000-0000-000000000196", }, "people": { - "id": "00000000-0000-0000-0000-000000000227", + "id": "00000000-0000-0000-0000-000000000193", }, "taskTargets": { - "id": "00000000-0000-0000-0000-000000000228", + "id": "00000000-0000-0000-0000-000000000194", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000232", + "id": "00000000-0000-0000-0000-000000000198", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000225", + "id": "00000000-0000-0000-0000-000000000191", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000226", + "id": "00000000-0000-0000-0000-000000000192", }, "xLink": { - "id": "00000000-0000-0000-0000-000000000221", + "id": "00000000-0000-0000-0000-000000000187", }, }, "viewGroups": {}, @@ -800,59 +685,59 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "dashboard": { "fields": { "attachments": { - "id": "00000000-0000-0000-0000-000000000249", + "id": "00000000-0000-0000-0000-000000000215", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000240", + "id": "00000000-0000-0000-0000-000000000206", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000246", + "id": "00000000-0000-0000-0000-000000000212", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000242", + "id": "00000000-0000-0000-0000-000000000208", }, "id": { - "id": "00000000-0000-0000-0000-000000000239", + "id": "00000000-0000-0000-0000-000000000205", }, "pageLayoutId": { - "id": "00000000-0000-0000-0000-000000000245", + "id": "00000000-0000-0000-0000-000000000211", }, "position": { - "id": "00000000-0000-0000-0000-000000000244", + "id": "00000000-0000-0000-0000-000000000210", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000250", + "id": "00000000-0000-0000-0000-000000000216", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000248", + "id": "00000000-0000-0000-0000-000000000214", }, "title": { - "id": "00000000-0000-0000-0000-000000000243", + "id": "00000000-0000-0000-0000-000000000209", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000241", + "id": "00000000-0000-0000-0000-000000000207", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000247", + "id": "00000000-0000-0000-0000-000000000213", }, }, - "id": "00000000-0000-0000-0000-000000000256", + "id": "00000000-0000-0000-0000-000000000222", "views": { "allDashboards": { - "id": "00000000-0000-0000-0000-000000000255", + "id": "00000000-0000-0000-0000-000000000221", "viewFieldGroups": {}, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000253", + "id": "00000000-0000-0000-0000-000000000219", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000252", + "id": "00000000-0000-0000-0000-000000000218", }, "title": { - "id": "00000000-0000-0000-0000-000000000251", + "id": "00000000-0000-0000-0000-000000000217", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000254", + "id": "00000000-0000-0000-0000-000000000220", }, }, "viewGroups": {}, @@ -862,216 +747,77 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "message": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000434", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000444", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000436", - }, - "headerMessageId": { - "id": "00000000-0000-0000-0000-000000000437", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000433", - }, - "messageChannelMessageAssociations": { - "id": "00000000-0000-0000-0000-000000000443", - }, - "messageParticipants": { - "id": "00000000-0000-0000-0000-000000000442", - }, - "messageThread": { - "id": "00000000-0000-0000-0000-000000000438", - }, - "position": { - "id": "00000000-0000-0000-0000-000000000446", - }, - "receivedAt": { - "id": "00000000-0000-0000-0000-000000000441", - }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000447", - }, - "subject": { - "id": "00000000-0000-0000-0000-000000000439", - }, - "text": { - "id": "00000000-0000-0000-0000-000000000440", - }, - "updatedAt": { - "id": "00000000-0000-0000-0000-000000000435", - }, - "updatedBy": { - "id": "00000000-0000-0000-0000-000000000445", - }, - }, - "id": "00000000-0000-0000-0000-000000000456", - "views": { - "allMessages": { - "id": "00000000-0000-0000-0000-000000000455", - "viewFieldGroups": {}, - "viewFields": { - "createdAt": { - "id": "00000000-0000-0000-0000-000000000454", - }, - "headerMessageId": { - "id": "00000000-0000-0000-0000-000000000452", - }, - "messageParticipants": { - "id": "00000000-0000-0000-0000-000000000450", - }, - "messageThread": { - "id": "00000000-0000-0000-0000-000000000449", - }, - "receivedAt": { - "id": "00000000-0000-0000-0000-000000000451", - }, - "subject": { - "id": "00000000-0000-0000-0000-000000000448", - }, - "text": { - "id": "00000000-0000-0000-0000-000000000453", - }, - }, - "viewGroups": {}, - }, - }, - }, - "messageChannel": { - "fields": { - "contactAutoCreationPolicy": { - "id": "00000000-0000-0000-0000-000000000318", - }, - "createdAt": { - "id": "00000000-0000-0000-0000-000000000311", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000331", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000313", - }, - "excludeGroupEmails": { - "id": "00000000-0000-0000-0000-000000000320", - }, - "excludeNonProfessionalEmails": { - "id": "00000000-0000-0000-0000-000000000319", - }, - "handle": { - "id": "00000000-0000-0000-0000-000000000315", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000310", - }, - "isContactAutoCreationEnabled": { - "id": "00000000-0000-0000-0000-000000000317", - }, - "isSyncEnabled": { - "id": "00000000-0000-0000-0000-000000000323", - }, - "messageFolderImportPolicy": { - "id": "00000000-0000-0000-0000-000000000321", - }, - "pendingGroupEmailsAction": { - "id": "00000000-0000-0000-0000-000000000322", - }, - "position": { - "id": "00000000-0000-0000-0000-000000000333", - }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000334", - }, - "syncCursor": { - "id": "00000000-0000-0000-0000-000000000324", - }, - "syncStage": { "id": "00000000-0000-0000-0000-000000000327", }, - "syncStageStartedAt": { - "id": "00000000-0000-0000-0000-000000000328", + "createdBy": { + "id": "00000000-0000-0000-0000-000000000337", }, - "syncStatus": { - "id": "00000000-0000-0000-0000-000000000326", - }, - "syncedAt": { - "id": "00000000-0000-0000-0000-000000000325", - }, - "throttleFailureCount": { + "deletedAt": { "id": "00000000-0000-0000-0000-000000000329", }, - "throttleRetryAfter": { + "headerMessageId": { "id": "00000000-0000-0000-0000-000000000330", }, - "type": { - "id": "00000000-0000-0000-0000-000000000316", + "id": { + "id": "00000000-0000-0000-0000-000000000326", }, - "updatedAt": { - "id": "00000000-0000-0000-0000-000000000312", + "messageChannelMessageAssociations": { + "id": "00000000-0000-0000-0000-000000000336", }, - "updatedBy": { + "messageParticipants": { + "id": "00000000-0000-0000-0000-000000000335", + }, + "messageThread": { + "id": "00000000-0000-0000-0000-000000000331", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000339", + }, + "receivedAt": { + "id": "00000000-0000-0000-0000-000000000334", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000340", + }, + "subject": { "id": "00000000-0000-0000-0000-000000000332", }, - "visibility": { - "id": "00000000-0000-0000-0000-000000000314", + "text": { + "id": "00000000-0000-0000-0000-000000000333", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000328", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000338", }, }, - "id": "00000000-0000-0000-0000-000000000351", + "id": "00000000-0000-0000-0000-000000000349", "views": { - "allMessageChannels": { - "id": "00000000-0000-0000-0000-000000000341", + "allMessages": { + "id": "00000000-0000-0000-0000-000000000348", "viewFieldGroups": {}, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000340", - }, - "handle": { - "id": "00000000-0000-0000-0000-000000000335", - }, - "isSyncEnabled": { - "id": "00000000-0000-0000-0000-000000000338", - }, - "syncStatus": { - "id": "00000000-0000-0000-0000-000000000339", - }, - "type": { - "id": "00000000-0000-0000-0000-000000000336", - }, - "visibility": { - "id": "00000000-0000-0000-0000-000000000337", - }, - }, - "viewGroups": {}, - }, - "messageChannelRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000350", - "viewFieldGroups": { - "general": { - "id": "00000000-0000-0000-0000-000000000348", - }, - "system": { - "id": "00000000-0000-0000-0000-000000000349", - }, - }, - "viewFields": { - "createdAt": { - "id": "00000000-0000-0000-0000-000000000346", - }, - "createdBy": { "id": "00000000-0000-0000-0000-000000000347", }, - "isSyncEnabled": { - "id": "00000000-0000-0000-0000-000000000344", - }, - "syncStatus": { + "headerMessageId": { "id": "00000000-0000-0000-0000-000000000345", }, - "type": { + "messageParticipants": { + "id": "00000000-0000-0000-0000-000000000343", + }, + "messageThread": { "id": "00000000-0000-0000-0000-000000000342", }, - "visibility": { - "id": "00000000-0000-0000-0000-000000000343", + "receivedAt": { + "id": "00000000-0000-0000-0000-000000000344", + }, + "subject": { + "id": "00000000-0000-0000-0000-000000000341", + }, + "text": { + "id": "00000000-0000-0000-0000-000000000346", }, }, "viewGroups": {}, @@ -1081,103 +827,103 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "messageChannelMessageAssociation": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000258", + "id": "00000000-0000-0000-0000-000000000224", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000267", + "id": "00000000-0000-0000-0000-000000000233", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000260", + "id": "00000000-0000-0000-0000-000000000226", }, "direction": { - "id": "00000000-0000-0000-0000-000000000266", + "id": "00000000-0000-0000-0000-000000000232", }, "id": { - "id": "00000000-0000-0000-0000-000000000257", + "id": "00000000-0000-0000-0000-000000000223", }, "message": { - "id": "00000000-0000-0000-0000-000000000262", + "id": "00000000-0000-0000-0000-000000000228", }, "messageChannelId": { - "id": "00000000-0000-0000-0000-000000000261", + "id": "00000000-0000-0000-0000-000000000227", }, "messageExternalId": { - "id": "00000000-0000-0000-0000-000000000263", + "id": "00000000-0000-0000-0000-000000000229", }, "messageFolders": { - "id": "00000000-0000-0000-0000-000000000271", + "id": "00000000-0000-0000-0000-000000000237", }, "messageThread": { - "id": "00000000-0000-0000-0000-000000000264", + "id": "00000000-0000-0000-0000-000000000230", }, "messageThreadExternalId": { - "id": "00000000-0000-0000-0000-000000000265", + "id": "00000000-0000-0000-0000-000000000231", }, "position": { - "id": "00000000-0000-0000-0000-000000000269", + "id": "00000000-0000-0000-0000-000000000235", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000270", + "id": "00000000-0000-0000-0000-000000000236", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000259", + "id": "00000000-0000-0000-0000-000000000225", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000268", + "id": "00000000-0000-0000-0000-000000000234", }, }, - "id": "00000000-0000-0000-0000-000000000287", + "id": "00000000-0000-0000-0000-000000000253", "views": { "allMessageChannelMessageAssociations": { - "id": "00000000-0000-0000-0000-000000000277", + "id": "00000000-0000-0000-0000-000000000243", "viewFieldGroups": {}, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000276", + "id": "00000000-0000-0000-0000-000000000242", }, "direction": { - "id": "00000000-0000-0000-0000-000000000275", + "id": "00000000-0000-0000-0000-000000000241", }, "message": { - "id": "00000000-0000-0000-0000-000000000273", + "id": "00000000-0000-0000-0000-000000000239", }, "messageChannelId": { - "id": "00000000-0000-0000-0000-000000000272", + "id": "00000000-0000-0000-0000-000000000238", }, "messageExternalId": { - "id": "00000000-0000-0000-0000-000000000274", + "id": "00000000-0000-0000-0000-000000000240", }, }, "viewGroups": {}, }, "messageChannelMessageAssociationRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000286", + "id": "00000000-0000-0000-0000-000000000252", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000284", + "id": "00000000-0000-0000-0000-000000000250", }, "system": { - "id": "00000000-0000-0000-0000-000000000285", + "id": "00000000-0000-0000-0000-000000000251", }, }, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000282", + "id": "00000000-0000-0000-0000-000000000248", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000283", + "id": "00000000-0000-0000-0000-000000000249", }, "direction": { - "id": "00000000-0000-0000-0000-000000000281", + "id": "00000000-0000-0000-0000-000000000247", }, "message": { - "id": "00000000-0000-0000-0000-000000000279", + "id": "00000000-0000-0000-0000-000000000245", }, "messageChannelId": { - "id": "00000000-0000-0000-0000-000000000278", + "id": "00000000-0000-0000-0000-000000000244", }, "messageExternalId": { - "id": "00000000-0000-0000-0000-000000000280", + "id": "00000000-0000-0000-0000-000000000246", }, }, "viewGroups": {}, @@ -1187,182 +933,76 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "messageChannelMessageAssociationMessageFolder": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000289", + "id": "00000000-0000-0000-0000-000000000255", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000292", + "id": "00000000-0000-0000-0000-000000000258", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000291", + "id": "00000000-0000-0000-0000-000000000257", }, "id": { - "id": "00000000-0000-0000-0000-000000000288", + "id": "00000000-0000-0000-0000-000000000254", }, "messageChannelMessageAssociation": { - "id": "00000000-0000-0000-0000-000000000296", + "id": "00000000-0000-0000-0000-000000000262", }, "messageFolderId": { - "id": "00000000-0000-0000-0000-000000000297", + "id": "00000000-0000-0000-0000-000000000263", }, "position": { - "id": "00000000-0000-0000-0000-000000000294", + "id": "00000000-0000-0000-0000-000000000260", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000295", + "id": "00000000-0000-0000-0000-000000000261", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000290", + "id": "00000000-0000-0000-0000-000000000256", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000293", + "id": "00000000-0000-0000-0000-000000000259", }, }, - "id": "00000000-0000-0000-0000-000000000309", + "id": "00000000-0000-0000-0000-000000000275", "views": { "allMessageChannelMessageAssociationMessageFolders": { - "id": "00000000-0000-0000-0000-000000000301", + "id": "00000000-0000-0000-0000-000000000267", "viewFieldGroups": {}, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000300", + "id": "00000000-0000-0000-0000-000000000266", }, "messageChannelMessageAssociation": { - "id": "00000000-0000-0000-0000-000000000298", + "id": "00000000-0000-0000-0000-000000000264", }, "messageFolderId": { - "id": "00000000-0000-0000-0000-000000000299", + "id": "00000000-0000-0000-0000-000000000265", }, }, "viewGroups": {}, }, "messageChannelMessageAssociationMessageFolderRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000308", + "id": "00000000-0000-0000-0000-000000000274", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000306", + "id": "00000000-0000-0000-0000-000000000272", }, "system": { - "id": "00000000-0000-0000-0000-000000000307", + "id": "00000000-0000-0000-0000-000000000273", }, }, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000304", + "id": "00000000-0000-0000-0000-000000000270", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000305", + "id": "00000000-0000-0000-0000-000000000271", }, "messageChannelMessageAssociation": { - "id": "00000000-0000-0000-0000-000000000302", + "id": "00000000-0000-0000-0000-000000000268", }, "messageFolderId": { - "id": "00000000-0000-0000-0000-000000000303", - }, - }, - "viewGroups": {}, - }, - }, - }, - "messageFolder": { - "fields": { - "createdAt": { - "id": "00000000-0000-0000-0000-000000000353", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000364", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000355", - }, - "externalId": { - "id": "00000000-0000-0000-0000-000000000362", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000352", - }, - "isSentFolder": { - "id": "00000000-0000-0000-0000-000000000360", - }, - "isSynced": { - "id": "00000000-0000-0000-0000-000000000361", - }, - "messageChannelId": { - "id": "00000000-0000-0000-0000-000000000358", - }, - "name": { - "id": "00000000-0000-0000-0000-000000000356", - }, - "parentFolderId": { - "id": "00000000-0000-0000-0000-000000000357", - }, - "pendingSyncAction": { - "id": "00000000-0000-0000-0000-000000000363", - }, - "position": { - "id": "00000000-0000-0000-0000-000000000366", - }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000367", - }, - "syncCursor": { - "id": "00000000-0000-0000-0000-000000000359", - }, - "updatedAt": { - "id": "00000000-0000-0000-0000-000000000354", - }, - "updatedBy": { - "id": "00000000-0000-0000-0000-000000000365", - }, - }, - "id": "00000000-0000-0000-0000-000000000382", - "views": { - "allMessageFolders": { - "id": "00000000-0000-0000-0000-000000000373", - "viewFieldGroups": {}, - "viewFields": { - "createdAt": { - "id": "00000000-0000-0000-0000-000000000372", - }, - "isSentFolder": { - "id": "00000000-0000-0000-0000-000000000370", - }, - "isSynced": { - "id": "00000000-0000-0000-0000-000000000371", - }, - "messageChannelId": { - "id": "00000000-0000-0000-0000-000000000369", - }, - "name": { - "id": "00000000-0000-0000-0000-000000000368", - }, - }, - "viewGroups": {}, - }, - "messageFolderRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000381", - "viewFieldGroups": { - "general": { - "id": "00000000-0000-0000-0000-000000000379", - }, - "system": { - "id": "00000000-0000-0000-0000-000000000380", - }, - }, - "viewFields": { - "createdAt": { - "id": "00000000-0000-0000-0000-000000000377", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000378", - }, - "isSentFolder": { - "id": "00000000-0000-0000-0000-000000000375", - }, - "isSynced": { - "id": "00000000-0000-0000-0000-000000000376", - }, - "messageChannelId": { - "id": "00000000-0000-0000-0000-000000000374", + "id": "00000000-0000-0000-0000-000000000269", }, }, "viewGroups": {}, @@ -1372,109 +1012,109 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "messageParticipant": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000384", + "id": "00000000-0000-0000-0000-000000000277", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000393", + "id": "00000000-0000-0000-0000-000000000286", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000386", + "id": "00000000-0000-0000-0000-000000000279", }, "displayName": { - "id": "00000000-0000-0000-0000-000000000390", + "id": "00000000-0000-0000-0000-000000000283", }, "handle": { - "id": "00000000-0000-0000-0000-000000000389", + "id": "00000000-0000-0000-0000-000000000282", }, "id": { - "id": "00000000-0000-0000-0000-000000000383", + "id": "00000000-0000-0000-0000-000000000276", }, "message": { - "id": "00000000-0000-0000-0000-000000000387", + "id": "00000000-0000-0000-0000-000000000280", }, "person": { - "id": "00000000-0000-0000-0000-000000000391", + "id": "00000000-0000-0000-0000-000000000284", }, "position": { - "id": "00000000-0000-0000-0000-000000000395", + "id": "00000000-0000-0000-0000-000000000288", }, "role": { - "id": "00000000-0000-0000-0000-000000000388", + "id": "00000000-0000-0000-0000-000000000281", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000396", + "id": "00000000-0000-0000-0000-000000000289", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000385", + "id": "00000000-0000-0000-0000-000000000278", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000394", + "id": "00000000-0000-0000-0000-000000000287", }, "workspaceMember": { - "id": "00000000-0000-0000-0000-000000000392", + "id": "00000000-0000-0000-0000-000000000285", }, }, - "id": "00000000-0000-0000-0000-000000000415", + "id": "00000000-0000-0000-0000-000000000308", "views": { "allMessageParticipants": { - "id": "00000000-0000-0000-0000-000000000404", + "id": "00000000-0000-0000-0000-000000000297", "viewFieldGroups": {}, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000403", + "id": "00000000-0000-0000-0000-000000000296", }, "displayName": { - "id": "00000000-0000-0000-0000-000000000400", + "id": "00000000-0000-0000-0000-000000000293", }, "handle": { - "id": "00000000-0000-0000-0000-000000000399", + "id": "00000000-0000-0000-0000-000000000292", }, "message": { - "id": "00000000-0000-0000-0000-000000000397", + "id": "00000000-0000-0000-0000-000000000290", }, "person": { - "id": "00000000-0000-0000-0000-000000000401", + "id": "00000000-0000-0000-0000-000000000294", }, "role": { - "id": "00000000-0000-0000-0000-000000000398", + "id": "00000000-0000-0000-0000-000000000291", }, "workspaceMember": { - "id": "00000000-0000-0000-0000-000000000402", + "id": "00000000-0000-0000-0000-000000000295", }, }, "viewGroups": {}, }, "messageParticipantRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000414", + "id": "00000000-0000-0000-0000-000000000307", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000412", + "id": "00000000-0000-0000-0000-000000000305", }, "system": { - "id": "00000000-0000-0000-0000-000000000413", + "id": "00000000-0000-0000-0000-000000000306", }, }, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000410", + "id": "00000000-0000-0000-0000-000000000303", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000411", + "id": "00000000-0000-0000-0000-000000000304", }, "displayName": { - "id": "00000000-0000-0000-0000-000000000407", + "id": "00000000-0000-0000-0000-000000000300", }, "message": { - "id": "00000000-0000-0000-0000-000000000405", + "id": "00000000-0000-0000-0000-000000000298", }, "person": { - "id": "00000000-0000-0000-0000-000000000408", + "id": "00000000-0000-0000-0000-000000000301", }, "role": { - "id": "00000000-0000-0000-0000-000000000406", + "id": "00000000-0000-0000-0000-000000000299", }, "workspaceMember": { - "id": "00000000-0000-0000-0000-000000000409", + "id": "00000000-0000-0000-0000-000000000302", }, }, "viewGroups": {}, @@ -1484,56 +1124,56 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "messageThread": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000417", + "id": "00000000-0000-0000-0000-000000000310", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000422", + "id": "00000000-0000-0000-0000-000000000315", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000419", + "id": "00000000-0000-0000-0000-000000000312", }, "id": { - "id": "00000000-0000-0000-0000-000000000416", + "id": "00000000-0000-0000-0000-000000000309", }, "messageChannelMessageAssociations": { - "id": "00000000-0000-0000-0000-000000000421", + "id": "00000000-0000-0000-0000-000000000314", }, "messages": { - "id": "00000000-0000-0000-0000-000000000420", + "id": "00000000-0000-0000-0000-000000000313", }, "position": { - "id": "00000000-0000-0000-0000-000000000424", + "id": "00000000-0000-0000-0000-000000000317", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000425", + "id": "00000000-0000-0000-0000-000000000318", }, "subject": { - "id": "00000000-0000-0000-0000-000000000426", + "id": "00000000-0000-0000-0000-000000000319", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000418", + "id": "00000000-0000-0000-0000-000000000311", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000423", + "id": "00000000-0000-0000-0000-000000000316", }, }, - "id": "00000000-0000-0000-0000-000000000432", + "id": "00000000-0000-0000-0000-000000000325", "views": { "allMessageThreads": { - "id": "00000000-0000-0000-0000-000000000431", + "id": "00000000-0000-0000-0000-000000000324", "viewFieldGroups": {}, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000430", + "id": "00000000-0000-0000-0000-000000000323", }, "messages": { - "id": "00000000-0000-0000-0000-000000000428", + "id": "00000000-0000-0000-0000-000000000321", }, "subject": { - "id": "00000000-0000-0000-0000-000000000427", + "id": "00000000-0000-0000-0000-000000000320", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000429", + "id": "00000000-0000-0000-0000-000000000322", }, }, "viewGroups": {}, @@ -1543,103 +1183,103 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "note": { "fields": { "attachments": { - "id": "00000000-0000-0000-0000-000000000467", + "id": "00000000-0000-0000-0000-000000000360", }, "bodyV2": { - "id": "00000000-0000-0000-0000-000000000463", + "id": "00000000-0000-0000-0000-000000000356", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000458", + "id": "00000000-0000-0000-0000-000000000351", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000464", + "id": "00000000-0000-0000-0000-000000000357", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000460", + "id": "00000000-0000-0000-0000-000000000353", }, "id": { - "id": "00000000-0000-0000-0000-000000000457", + "id": "00000000-0000-0000-0000-000000000350", }, "noteTargets": { - "id": "00000000-0000-0000-0000-000000000466", + "id": "00000000-0000-0000-0000-000000000359", }, "position": { - "id": "00000000-0000-0000-0000-000000000461", + "id": "00000000-0000-0000-0000-000000000354", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000469", + "id": "00000000-0000-0000-0000-000000000362", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000468", + "id": "00000000-0000-0000-0000-000000000361", }, "title": { - "id": "00000000-0000-0000-0000-000000000462", + "id": "00000000-0000-0000-0000-000000000355", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000459", + "id": "00000000-0000-0000-0000-000000000352", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000465", + "id": "00000000-0000-0000-0000-000000000358", }, }, - "id": "00000000-0000-0000-0000-000000000487", + "id": "00000000-0000-0000-0000-000000000380", "views": { "allNotes": { - "id": "00000000-0000-0000-0000-000000000475", + "id": "00000000-0000-0000-0000-000000000368", "viewFieldGroups": {}, "viewFields": { "bodyV2": { - "id": "00000000-0000-0000-0000-000000000472", + "id": "00000000-0000-0000-0000-000000000365", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000474", + "id": "00000000-0000-0000-0000-000000000367", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000473", + "id": "00000000-0000-0000-0000-000000000366", }, "noteTargets": { - "id": "00000000-0000-0000-0000-000000000471", + "id": "00000000-0000-0000-0000-000000000364", }, "title": { - "id": "00000000-0000-0000-0000-000000000470", + "id": "00000000-0000-0000-0000-000000000363", }, }, "viewGroups": {}, }, "noteRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000486", + "id": "00000000-0000-0000-0000-000000000379", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000484", + "id": "00000000-0000-0000-0000-000000000377", }, "system": { - "id": "00000000-0000-0000-0000-000000000485", + "id": "00000000-0000-0000-0000-000000000378", }, }, "viewFields": { "attachments": { - "id": "00000000-0000-0000-0000-000000000482", + "id": "00000000-0000-0000-0000-000000000375", }, "bodyV2": { - "id": "00000000-0000-0000-0000-000000000479", + "id": "00000000-0000-0000-0000-000000000372", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000476", + "id": "00000000-0000-0000-0000-000000000369", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000477", + "id": "00000000-0000-0000-0000-000000000370", }, "noteTargets": { - "id": "00000000-0000-0000-0000-000000000478", + "id": "00000000-0000-0000-0000-000000000371", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000483", + "id": "00000000-0000-0000-0000-000000000376", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000480", + "id": "00000000-0000-0000-0000-000000000373", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000481", + "id": "00000000-0000-0000-0000-000000000374", }, }, "viewGroups": {}, @@ -1649,62 +1289,62 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "noteTarget": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000489", + "id": "00000000-0000-0000-0000-000000000382", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000496", + "id": "00000000-0000-0000-0000-000000000389", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000491", + "id": "00000000-0000-0000-0000-000000000384", }, "id": { - "id": "00000000-0000-0000-0000-000000000488", + "id": "00000000-0000-0000-0000-000000000381", }, "note": { - "id": "00000000-0000-0000-0000-000000000492", + "id": "00000000-0000-0000-0000-000000000385", }, "position": { - "id": "00000000-0000-0000-0000-000000000498", + "id": "00000000-0000-0000-0000-000000000391", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000499", + "id": "00000000-0000-0000-0000-000000000392", }, "targetCompany": { - "id": "00000000-0000-0000-0000-000000000494", + "id": "00000000-0000-0000-0000-000000000387", }, "targetOpportunity": { - "id": "00000000-0000-0000-0000-000000000495", + "id": "00000000-0000-0000-0000-000000000388", }, "targetPerson": { - "id": "00000000-0000-0000-0000-000000000493", + "id": "00000000-0000-0000-0000-000000000386", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000490", + "id": "00000000-0000-0000-0000-000000000383", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000497", + "id": "00000000-0000-0000-0000-000000000390", }, }, - "id": "00000000-0000-0000-0000-000000000506", + "id": "00000000-0000-0000-0000-000000000399", "views": { "allNoteTargets": { - "id": "00000000-0000-0000-0000-000000000505", + "id": "00000000-0000-0000-0000-000000000398", "viewFieldGroups": {}, "viewFields": { "id": { - "id": "00000000-0000-0000-0000-000000000500", + "id": "00000000-0000-0000-0000-000000000393", }, "note": { - "id": "00000000-0000-0000-0000-000000000501", + "id": "00000000-0000-0000-0000-000000000394", }, "targetCompany": { - "id": "00000000-0000-0000-0000-000000000503", + "id": "00000000-0000-0000-0000-000000000396", }, "targetOpportunity": { - "id": "00000000-0000-0000-0000-000000000504", + "id": "00000000-0000-0000-0000-000000000397", }, "targetPerson": { - "id": "00000000-0000-0000-0000-000000000502", + "id": "00000000-0000-0000-0000-000000000395", }, }, "viewGroups": {}, @@ -1714,186 +1354,186 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "opportunity": { "fields": { "amount": { - "id": "00000000-0000-0000-0000-000000000512", + "id": "00000000-0000-0000-0000-000000000405", }, "attachments": { - "id": "00000000-0000-0000-0000-000000000523", + "id": "00000000-0000-0000-0000-000000000416", }, "closeDate": { - "id": "00000000-0000-0000-0000-000000000513", + "id": "00000000-0000-0000-0000-000000000406", }, "company": { - "id": "00000000-0000-0000-0000-000000000519", + "id": "00000000-0000-0000-0000-000000000412", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000508", + "id": "00000000-0000-0000-0000-000000000401", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000516", + "id": "00000000-0000-0000-0000-000000000409", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000510", + "id": "00000000-0000-0000-0000-000000000403", }, "id": { - "id": "00000000-0000-0000-0000-000000000507", + "id": "00000000-0000-0000-0000-000000000400", }, "name": { - "id": "00000000-0000-0000-0000-000000000511", + "id": "00000000-0000-0000-0000-000000000404", }, "noteTargets": { - "id": "00000000-0000-0000-0000-000000000522", + "id": "00000000-0000-0000-0000-000000000415", }, "owner": { - "id": "00000000-0000-0000-0000-000000000520", + "id": "00000000-0000-0000-0000-000000000413", }, "pointOfContact": { - "id": "00000000-0000-0000-0000-000000000518", + "id": "00000000-0000-0000-0000-000000000411", }, "position": { - "id": "00000000-0000-0000-0000-000000000515", + "id": "00000000-0000-0000-0000-000000000408", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000525", + "id": "00000000-0000-0000-0000-000000000418", }, "stage": { - "id": "00000000-0000-0000-0000-000000000514", + "id": "00000000-0000-0000-0000-000000000407", }, "taskTargets": { - "id": "00000000-0000-0000-0000-000000000521", + "id": "00000000-0000-0000-0000-000000000414", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000524", + "id": "00000000-0000-0000-0000-000000000417", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000509", + "id": "00000000-0000-0000-0000-000000000402", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000517", + "id": "00000000-0000-0000-0000-000000000410", }, }, - "id": "00000000-0000-0000-0000-000000000563", + "id": "00000000-0000-0000-0000-000000000456", "views": { "allOpportunities": { - "id": "00000000-0000-0000-0000-000000000532", + "id": "00000000-0000-0000-0000-000000000425", "viewFieldGroups": {}, "viewFields": { "amount": { - "id": "00000000-0000-0000-0000-000000000527", + "id": "00000000-0000-0000-0000-000000000420", }, "closeDate": { - "id": "00000000-0000-0000-0000-000000000529", + "id": "00000000-0000-0000-0000-000000000422", }, "company": { - "id": "00000000-0000-0000-0000-000000000530", + "id": "00000000-0000-0000-0000-000000000423", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000528", + "id": "00000000-0000-0000-0000-000000000421", }, "name": { - "id": "00000000-0000-0000-0000-000000000526", + "id": "00000000-0000-0000-0000-000000000419", }, "pointOfContact": { - "id": "00000000-0000-0000-0000-000000000531", + "id": "00000000-0000-0000-0000-000000000424", }, }, "viewGroups": {}, }, "byStage": { - "id": "00000000-0000-0000-0000-000000000544", + "id": "00000000-0000-0000-0000-000000000437", "viewFieldGroups": {}, "viewFields": { "amount": { - "id": "00000000-0000-0000-0000-000000000534", + "id": "00000000-0000-0000-0000-000000000427", }, "closeDate": { - "id": "00000000-0000-0000-0000-000000000536", + "id": "00000000-0000-0000-0000-000000000429", }, "company": { - "id": "00000000-0000-0000-0000-000000000537", + "id": "00000000-0000-0000-0000-000000000430", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000535", + "id": "00000000-0000-0000-0000-000000000428", }, "name": { - "id": "00000000-0000-0000-0000-000000000533", + "id": "00000000-0000-0000-0000-000000000426", }, "pointOfContact": { - "id": "00000000-0000-0000-0000-000000000538", + "id": "00000000-0000-0000-0000-000000000431", }, }, "viewGroups": { "customer": { - "id": "00000000-0000-0000-0000-000000000543", + "id": "00000000-0000-0000-0000-000000000436", }, "meeting": { - "id": "00000000-0000-0000-0000-000000000541", + "id": "00000000-0000-0000-0000-000000000434", }, "new": { - "id": "00000000-0000-0000-0000-000000000539", + "id": "00000000-0000-0000-0000-000000000432", }, "proposal": { - "id": "00000000-0000-0000-0000-000000000542", + "id": "00000000-0000-0000-0000-000000000435", }, "screening": { - "id": "00000000-0000-0000-0000-000000000540", + "id": "00000000-0000-0000-0000-000000000433", }, }, }, "opportunityRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000562", + "id": "00000000-0000-0000-0000-000000000455", "viewFieldGroups": { "deal": { - "id": "00000000-0000-0000-0000-000000000559", + "id": "00000000-0000-0000-0000-000000000452", }, "relations": { - "id": "00000000-0000-0000-0000-000000000560", + "id": "00000000-0000-0000-0000-000000000453", }, "system": { - "id": "00000000-0000-0000-0000-000000000561", + "id": "00000000-0000-0000-0000-000000000454", }, }, "viewFields": { "amount": { - "id": "00000000-0000-0000-0000-000000000545", + "id": "00000000-0000-0000-0000-000000000438", }, "attachments": { - "id": "00000000-0000-0000-0000-000000000557", + "id": "00000000-0000-0000-0000-000000000450", }, "closeDate": { - "id": "00000000-0000-0000-0000-000000000546", + "id": "00000000-0000-0000-0000-000000000439", }, "company": { - "id": "00000000-0000-0000-0000-000000000548", + "id": "00000000-0000-0000-0000-000000000441", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000551", + "id": "00000000-0000-0000-0000-000000000444", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000552", + "id": "00000000-0000-0000-0000-000000000445", }, "noteTargets": { - "id": "00000000-0000-0000-0000-000000000556", + "id": "00000000-0000-0000-0000-000000000449", }, "owner": { - "id": "00000000-0000-0000-0000-000000000550", + "id": "00000000-0000-0000-0000-000000000443", }, "pointOfContact": { - "id": "00000000-0000-0000-0000-000000000549", + "id": "00000000-0000-0000-0000-000000000442", }, "stage": { - "id": "00000000-0000-0000-0000-000000000547", + "id": "00000000-0000-0000-0000-000000000440", }, "taskTargets": { - "id": "00000000-0000-0000-0000-000000000555", + "id": "00000000-0000-0000-0000-000000000448", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000558", + "id": "00000000-0000-0000-0000-000000000451", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000553", + "id": "00000000-0000-0000-0000-000000000446", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000554", + "id": "00000000-0000-0000-0000-000000000447", }, }, "viewGroups": {}, @@ -1903,196 +1543,196 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "person": { "fields": { "attachments": { - "id": "00000000-0000-0000-0000-000000000584", + "id": "00000000-0000-0000-0000-000000000477", }, "avatarFile": { - "id": "00000000-0000-0000-0000-000000000576", + "id": "00000000-0000-0000-0000-000000000469", }, "avatarUrl": { - "id": "00000000-0000-0000-0000-000000000575", + "id": "00000000-0000-0000-0000-000000000468", }, "calendarEventParticipants": { - "id": "00000000-0000-0000-0000-000000000586", + "id": "00000000-0000-0000-0000-000000000479", }, "city": { - "id": "00000000-0000-0000-0000-000000000574", + "id": "00000000-0000-0000-0000-000000000467", }, "company": { - "id": "00000000-0000-0000-0000-000000000580", + "id": "00000000-0000-0000-0000-000000000473", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000565", + "id": "00000000-0000-0000-0000-000000000458", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000578", + "id": "00000000-0000-0000-0000-000000000471", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000567", + "id": "00000000-0000-0000-0000-000000000460", }, "emails": { - "id": "00000000-0000-0000-0000-000000000569", + "id": "00000000-0000-0000-0000-000000000462", }, "id": { - "id": "00000000-0000-0000-0000-000000000564", + "id": "00000000-0000-0000-0000-000000000457", }, "jobTitle": { - "id": "00000000-0000-0000-0000-000000000572", + "id": "00000000-0000-0000-0000-000000000465", }, "linkedinLink": { - "id": "00000000-0000-0000-0000-000000000570", + "id": "00000000-0000-0000-0000-000000000463", }, "messageParticipants": { - "id": "00000000-0000-0000-0000-000000000585", + "id": "00000000-0000-0000-0000-000000000478", }, "name": { - "id": "00000000-0000-0000-0000-000000000568", + "id": "00000000-0000-0000-0000-000000000461", }, "noteTargets": { - "id": "00000000-0000-0000-0000-000000000583", + "id": "00000000-0000-0000-0000-000000000476", }, "phones": { - "id": "00000000-0000-0000-0000-000000000573", + "id": "00000000-0000-0000-0000-000000000466", }, "pointOfContactForOpportunities": { - "id": "00000000-0000-0000-0000-000000000581", + "id": "00000000-0000-0000-0000-000000000474", }, "position": { - "id": "00000000-0000-0000-0000-000000000577", + "id": "00000000-0000-0000-0000-000000000470", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000588", + "id": "00000000-0000-0000-0000-000000000481", }, "taskTargets": { - "id": "00000000-0000-0000-0000-000000000582", + "id": "00000000-0000-0000-0000-000000000475", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000587", + "id": "00000000-0000-0000-0000-000000000480", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000566", + "id": "00000000-0000-0000-0000-000000000459", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000579", + "id": "00000000-0000-0000-0000-000000000472", }, "xLink": { - "id": "00000000-0000-0000-0000-000000000571", + "id": "00000000-0000-0000-0000-000000000464", }, }, - "id": "00000000-0000-0000-0000-000000000625", + "id": "00000000-0000-0000-0000-000000000518", "views": { "allPeople": { - "id": "00000000-0000-0000-0000-000000000599", + "id": "00000000-0000-0000-0000-000000000492", "viewFieldGroups": {}, "viewFields": { "city": { - "id": "00000000-0000-0000-0000-000000000595", + "id": "00000000-0000-0000-0000-000000000488", }, "company": { - "id": "00000000-0000-0000-0000-000000000592", + "id": "00000000-0000-0000-0000-000000000485", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000594", + "id": "00000000-0000-0000-0000-000000000487", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000591", + "id": "00000000-0000-0000-0000-000000000484", }, "emails": { - "id": "00000000-0000-0000-0000-000000000590", + "id": "00000000-0000-0000-0000-000000000483", }, "jobTitle": { - "id": "00000000-0000-0000-0000-000000000596", + "id": "00000000-0000-0000-0000-000000000489", }, "linkedinLink": { - "id": "00000000-0000-0000-0000-000000000597", + "id": "00000000-0000-0000-0000-000000000490", }, "name": { - "id": "00000000-0000-0000-0000-000000000589", + "id": "00000000-0000-0000-0000-000000000482", }, "phones": { - "id": "00000000-0000-0000-0000-000000000593", + "id": "00000000-0000-0000-0000-000000000486", }, "xLink": { - "id": "00000000-0000-0000-0000-000000000598", + "id": "00000000-0000-0000-0000-000000000491", }, }, "viewGroups": {}, }, "personRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000624", + "id": "00000000-0000-0000-0000-000000000517", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000620", + "id": "00000000-0000-0000-0000-000000000513", }, "social": { - "id": "00000000-0000-0000-0000-000000000622", + "id": "00000000-0000-0000-0000-000000000515", }, "system": { - "id": "00000000-0000-0000-0000-000000000623", + "id": "00000000-0000-0000-0000-000000000516", }, "work": { - "id": "00000000-0000-0000-0000-000000000621", + "id": "00000000-0000-0000-0000-000000000514", }, }, "viewFields": { "attachments": { - "id": "00000000-0000-0000-0000-000000000616", + "id": "00000000-0000-0000-0000-000000000509", }, "avatarFile": { - "id": "00000000-0000-0000-0000-000000000612", + "id": "00000000-0000-0000-0000-000000000505", }, "avatarUrl": { - "id": "00000000-0000-0000-0000-000000000607", + "id": "00000000-0000-0000-0000-000000000500", }, "calendarEventParticipants": { - "id": "00000000-0000-0000-0000-000000000618", + "id": "00000000-0000-0000-0000-000000000511", }, "city": { - "id": "00000000-0000-0000-0000-000000000606", + "id": "00000000-0000-0000-0000-000000000499", }, "company": { - "id": "00000000-0000-0000-0000-000000000602", + "id": "00000000-0000-0000-0000-000000000495", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000608", + "id": "00000000-0000-0000-0000-000000000501", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000609", + "id": "00000000-0000-0000-0000-000000000502", }, "emails": { - "id": "00000000-0000-0000-0000-000000000600", + "id": "00000000-0000-0000-0000-000000000493", }, "jobTitle": { - "id": "00000000-0000-0000-0000-000000000603", + "id": "00000000-0000-0000-0000-000000000496", }, "linkedinLink": { - "id": "00000000-0000-0000-0000-000000000604", + "id": "00000000-0000-0000-0000-000000000497", }, "messageParticipants": { - "id": "00000000-0000-0000-0000-000000000617", + "id": "00000000-0000-0000-0000-000000000510", }, "noteTargets": { - "id": "00000000-0000-0000-0000-000000000615", + "id": "00000000-0000-0000-0000-000000000508", }, "phones": { - "id": "00000000-0000-0000-0000-000000000601", + "id": "00000000-0000-0000-0000-000000000494", }, "pointOfContactForOpportunities": { - "id": "00000000-0000-0000-0000-000000000613", + "id": "00000000-0000-0000-0000-000000000506", }, "taskTargets": { - "id": "00000000-0000-0000-0000-000000000614", + "id": "00000000-0000-0000-0000-000000000507", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000619", + "id": "00000000-0000-0000-0000-000000000512", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000610", + "id": "00000000-0000-0000-0000-000000000503", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000611", + "id": "00000000-0000-0000-0000-000000000504", }, "xLink": { - "id": "00000000-0000-0000-0000-000000000605", + "id": "00000000-0000-0000-0000-000000000498", }, }, "viewGroups": {}, @@ -2102,203 +1742,203 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "task": { "fields": { "assignee": { - "id": "00000000-0000-0000-0000-000000000639", + "id": "00000000-0000-0000-0000-000000000532", }, "attachments": { - "id": "00000000-0000-0000-0000-000000000638", + "id": "00000000-0000-0000-0000-000000000531", }, "bodyV2": { - "id": "00000000-0000-0000-0000-000000000632", + "id": "00000000-0000-0000-0000-000000000525", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000627", + "id": "00000000-0000-0000-0000-000000000520", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000635", + "id": "00000000-0000-0000-0000-000000000528", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000629", + "id": "00000000-0000-0000-0000-000000000522", }, "dueAt": { - "id": "00000000-0000-0000-0000-000000000633", + "id": "00000000-0000-0000-0000-000000000526", }, "id": { - "id": "00000000-0000-0000-0000-000000000626", + "id": "00000000-0000-0000-0000-000000000519", }, "position": { - "id": "00000000-0000-0000-0000-000000000630", + "id": "00000000-0000-0000-0000-000000000523", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000641", + "id": "00000000-0000-0000-0000-000000000534", }, "status": { - "id": "00000000-0000-0000-0000-000000000634", + "id": "00000000-0000-0000-0000-000000000527", }, "taskTargets": { - "id": "00000000-0000-0000-0000-000000000637", + "id": "00000000-0000-0000-0000-000000000530", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000640", + "id": "00000000-0000-0000-0000-000000000533", }, "title": { - "id": "00000000-0000-0000-0000-000000000631", + "id": "00000000-0000-0000-0000-000000000524", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000628", + "id": "00000000-0000-0000-0000-000000000521", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000636", + "id": "00000000-0000-0000-0000-000000000529", }, }, - "id": "00000000-0000-0000-0000-000000000686", + "id": "00000000-0000-0000-0000-000000000579", "views": { "allTasks": { - "id": "00000000-0000-0000-0000-000000000650", + "id": "00000000-0000-0000-0000-000000000543", "viewFieldGroups": {}, "viewFields": { "assignee": { - "id": "00000000-0000-0000-0000-000000000647", + "id": "00000000-0000-0000-0000-000000000540", }, "bodyV2": { - "id": "00000000-0000-0000-0000-000000000648", + "id": "00000000-0000-0000-0000-000000000541", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000649", + "id": "00000000-0000-0000-0000-000000000542", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000645", + "id": "00000000-0000-0000-0000-000000000538", }, "dueAt": { - "id": "00000000-0000-0000-0000-000000000646", + "id": "00000000-0000-0000-0000-000000000539", }, "status": { - "id": "00000000-0000-0000-0000-000000000643", + "id": "00000000-0000-0000-0000-000000000536", }, "taskTargets": { - "id": "00000000-0000-0000-0000-000000000644", + "id": "00000000-0000-0000-0000-000000000537", }, "title": { - "id": "00000000-0000-0000-0000-000000000642", + "id": "00000000-0000-0000-0000-000000000535", }, }, "viewGroups": {}, }, "assignedToMe": { - "id": "00000000-0000-0000-0000-000000000662", + "id": "00000000-0000-0000-0000-000000000555", "viewFieldGroups": {}, "viewFields": { "assignee": { - "id": "00000000-0000-0000-0000-000000000655", + "id": "00000000-0000-0000-0000-000000000548", }, "bodyV2": { - "id": "00000000-0000-0000-0000-000000000656", + "id": "00000000-0000-0000-0000-000000000549", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000657", + "id": "00000000-0000-0000-0000-000000000550", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000653", + "id": "00000000-0000-0000-0000-000000000546", }, "dueAt": { - "id": "00000000-0000-0000-0000-000000000654", + "id": "00000000-0000-0000-0000-000000000547", }, "taskTargets": { - "id": "00000000-0000-0000-0000-000000000652", + "id": "00000000-0000-0000-0000-000000000545", }, "title": { - "id": "00000000-0000-0000-0000-000000000651", + "id": "00000000-0000-0000-0000-000000000544", }, }, "viewGroups": { "done": { - "id": "00000000-0000-0000-0000-000000000660", + "id": "00000000-0000-0000-0000-000000000553", }, "empty": { - "id": "00000000-0000-0000-0000-000000000661", + "id": "00000000-0000-0000-0000-000000000554", }, "inProgress": { - "id": "00000000-0000-0000-0000-000000000659", + "id": "00000000-0000-0000-0000-000000000552", }, "todo": { - "id": "00000000-0000-0000-0000-000000000658", + "id": "00000000-0000-0000-0000-000000000551", }, }, }, "byStatus": { - "id": "00000000-0000-0000-0000-000000000671", + "id": "00000000-0000-0000-0000-000000000564", "viewFieldGroups": {}, "viewFields": { "assignee": { - "id": "00000000-0000-0000-0000-000000000666", + "id": "00000000-0000-0000-0000-000000000559", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000667", + "id": "00000000-0000-0000-0000-000000000560", }, "dueAt": { - "id": "00000000-0000-0000-0000-000000000665", + "id": "00000000-0000-0000-0000-000000000558", }, "status": { - "id": "00000000-0000-0000-0000-000000000664", + "id": "00000000-0000-0000-0000-000000000557", }, "title": { - "id": "00000000-0000-0000-0000-000000000663", + "id": "00000000-0000-0000-0000-000000000556", }, }, "viewGroups": { "done": { - "id": "00000000-0000-0000-0000-000000000670", + "id": "00000000-0000-0000-0000-000000000563", }, "inProgress": { - "id": "00000000-0000-0000-0000-000000000669", + "id": "00000000-0000-0000-0000-000000000562", }, "todo": { - "id": "00000000-0000-0000-0000-000000000668", + "id": "00000000-0000-0000-0000-000000000561", }, }, }, "taskRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000685", + "id": "00000000-0000-0000-0000-000000000578", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000683", + "id": "00000000-0000-0000-0000-000000000576", }, "system": { - "id": "00000000-0000-0000-0000-000000000684", + "id": "00000000-0000-0000-0000-000000000577", }, }, "viewFields": { "assignee": { - "id": "00000000-0000-0000-0000-000000000674", + "id": "00000000-0000-0000-0000-000000000567", }, "attachments": { - "id": "00000000-0000-0000-0000-000000000681", + "id": "00000000-0000-0000-0000-000000000574", }, "bodyV2": { - "id": "00000000-0000-0000-0000-000000000678", + "id": "00000000-0000-0000-0000-000000000571", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000675", + "id": "00000000-0000-0000-0000-000000000568", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000676", + "id": "00000000-0000-0000-0000-000000000569", }, "dueAt": { - "id": "00000000-0000-0000-0000-000000000672", + "id": "00000000-0000-0000-0000-000000000565", }, "status": { - "id": "00000000-0000-0000-0000-000000000673", + "id": "00000000-0000-0000-0000-000000000566", }, "taskTargets": { - "id": "00000000-0000-0000-0000-000000000677", + "id": "00000000-0000-0000-0000-000000000570", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000682", + "id": "00000000-0000-0000-0000-000000000575", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000679", + "id": "00000000-0000-0000-0000-000000000572", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000680", + "id": "00000000-0000-0000-0000-000000000573", }, }, "viewGroups": {}, @@ -2308,62 +1948,62 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "taskTarget": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000688", + "id": "00000000-0000-0000-0000-000000000581", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000695", + "id": "00000000-0000-0000-0000-000000000588", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000690", + "id": "00000000-0000-0000-0000-000000000583", }, "id": { - "id": "00000000-0000-0000-0000-000000000687", + "id": "00000000-0000-0000-0000-000000000580", }, "position": { - "id": "00000000-0000-0000-0000-000000000697", + "id": "00000000-0000-0000-0000-000000000590", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000698", + "id": "00000000-0000-0000-0000-000000000591", }, "targetCompany": { - "id": "00000000-0000-0000-0000-000000000693", + "id": "00000000-0000-0000-0000-000000000586", }, "targetOpportunity": { - "id": "00000000-0000-0000-0000-000000000694", + "id": "00000000-0000-0000-0000-000000000587", }, "targetPerson": { - "id": "00000000-0000-0000-0000-000000000692", + "id": "00000000-0000-0000-0000-000000000585", }, "task": { - "id": "00000000-0000-0000-0000-000000000691", + "id": "00000000-0000-0000-0000-000000000584", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000689", + "id": "00000000-0000-0000-0000-000000000582", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000696", + "id": "00000000-0000-0000-0000-000000000589", }, }, - "id": "00000000-0000-0000-0000-000000000705", + "id": "00000000-0000-0000-0000-000000000598", "views": { "allTaskTargets": { - "id": "00000000-0000-0000-0000-000000000704", + "id": "00000000-0000-0000-0000-000000000597", "viewFieldGroups": {}, "viewFields": { "id": { - "id": "00000000-0000-0000-0000-000000000699", + "id": "00000000-0000-0000-0000-000000000592", }, "targetCompany": { - "id": "00000000-0000-0000-0000-000000000702", + "id": "00000000-0000-0000-0000-000000000595", }, "targetOpportunity": { - "id": "00000000-0000-0000-0000-000000000703", + "id": "00000000-0000-0000-0000-000000000596", }, "targetPerson": { - "id": "00000000-0000-0000-0000-000000000701", + "id": "00000000-0000-0000-0000-000000000594", }, "task": { - "id": "00000000-0000-0000-0000-000000000700", + "id": "00000000-0000-0000-0000-000000000593", }, }, "viewGroups": {}, @@ -2373,125 +2013,125 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "timelineActivity": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000707", + "id": "00000000-0000-0000-0000-000000000600", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000726", + "id": "00000000-0000-0000-0000-000000000619", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000709", + "id": "00000000-0000-0000-0000-000000000602", }, "happensAt": { - "id": "00000000-0000-0000-0000-000000000710", + "id": "00000000-0000-0000-0000-000000000603", }, "id": { - "id": "00000000-0000-0000-0000-000000000706", + "id": "00000000-0000-0000-0000-000000000599", }, "linkedObjectMetadataId": { - "id": "00000000-0000-0000-0000-000000000725", + "id": "00000000-0000-0000-0000-000000000618", }, "linkedRecordCachedName": { - "id": "00000000-0000-0000-0000-000000000723", + "id": "00000000-0000-0000-0000-000000000616", }, "linkedRecordId": { - "id": "00000000-0000-0000-0000-000000000724", + "id": "00000000-0000-0000-0000-000000000617", }, "name": { - "id": "00000000-0000-0000-0000-000000000711", + "id": "00000000-0000-0000-0000-000000000604", }, "position": { - "id": "00000000-0000-0000-0000-000000000728", + "id": "00000000-0000-0000-0000-000000000621", }, "properties": { - "id": "00000000-0000-0000-0000-000000000712", + "id": "00000000-0000-0000-0000-000000000605", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000729", + "id": "00000000-0000-0000-0000-000000000622", }, "targetCompany": { - "id": "00000000-0000-0000-0000-000000000715", + "id": "00000000-0000-0000-0000-000000000608", }, "targetDashboard": { - "id": "00000000-0000-0000-0000-000000000722", + "id": "00000000-0000-0000-0000-000000000615", }, "targetNote": { - "id": "00000000-0000-0000-0000-000000000718", + "id": "00000000-0000-0000-0000-000000000611", }, "targetOpportunity": { - "id": "00000000-0000-0000-0000-000000000716", + "id": "00000000-0000-0000-0000-000000000609", }, "targetPerson": { - "id": "00000000-0000-0000-0000-000000000714", + "id": "00000000-0000-0000-0000-000000000607", }, "targetTask": { - "id": "00000000-0000-0000-0000-000000000717", + "id": "00000000-0000-0000-0000-000000000610", }, "targetWorkflow": { - "id": "00000000-0000-0000-0000-000000000719", + "id": "00000000-0000-0000-0000-000000000612", }, "targetWorkflowRun": { - "id": "00000000-0000-0000-0000-000000000721", + "id": "00000000-0000-0000-0000-000000000614", }, "targetWorkflowVersion": { - "id": "00000000-0000-0000-0000-000000000720", + "id": "00000000-0000-0000-0000-000000000613", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000708", + "id": "00000000-0000-0000-0000-000000000601", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000727", + "id": "00000000-0000-0000-0000-000000000620", }, "workspaceMember": { - "id": "00000000-0000-0000-0000-000000000713", + "id": "00000000-0000-0000-0000-000000000606", }, }, - "id": "00000000-0000-0000-0000-000000000745", + "id": "00000000-0000-0000-0000-000000000638", "views": { "allTimelineActivities": { - "id": "00000000-0000-0000-0000-000000000744", + "id": "00000000-0000-0000-0000-000000000637", "viewFieldGroups": {}, "viewFields": { "happensAt": { - "id": "00000000-0000-0000-0000-000000000731", + "id": "00000000-0000-0000-0000-000000000624", }, "linkedRecordCachedName": { - "id": "00000000-0000-0000-0000-000000000734", + "id": "00000000-0000-0000-0000-000000000627", }, "name": { - "id": "00000000-0000-0000-0000-000000000730", + "id": "00000000-0000-0000-0000-000000000623", }, "properties": { - "id": "00000000-0000-0000-0000-000000000732", + "id": "00000000-0000-0000-0000-000000000625", }, "targetCompany": { - "id": "00000000-0000-0000-0000-000000000736", + "id": "00000000-0000-0000-0000-000000000629", }, "targetDashboard": { - "id": "00000000-0000-0000-0000-000000000743", + "id": "00000000-0000-0000-0000-000000000636", }, "targetNote": { - "id": "00000000-0000-0000-0000-000000000739", + "id": "00000000-0000-0000-0000-000000000632", }, "targetOpportunity": { - "id": "00000000-0000-0000-0000-000000000737", + "id": "00000000-0000-0000-0000-000000000630", }, "targetPerson": { - "id": "00000000-0000-0000-0000-000000000735", + "id": "00000000-0000-0000-0000-000000000628", }, "targetTask": { - "id": "00000000-0000-0000-0000-000000000738", + "id": "00000000-0000-0000-0000-000000000631", }, "targetWorkflow": { - "id": "00000000-0000-0000-0000-000000000740", + "id": "00000000-0000-0000-0000-000000000633", }, "targetWorkflowRun": { - "id": "00000000-0000-0000-0000-000000000742", + "id": "00000000-0000-0000-0000-000000000635", }, "targetWorkflowVersion": { - "id": "00000000-0000-0000-0000-000000000741", + "id": "00000000-0000-0000-0000-000000000634", }, "workspaceMember": { - "id": "00000000-0000-0000-0000-000000000733", + "id": "00000000-0000-0000-0000-000000000626", }, }, "viewGroups": {}, @@ -2501,77 +2141,77 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "workflow": { "fields": { "attachments": { - "id": "00000000-0000-0000-0000-000000000758", + "id": "00000000-0000-0000-0000-000000000651", }, "automatedTriggers": { - "id": "00000000-0000-0000-0000-000000000756", + "id": "00000000-0000-0000-0000-000000000649", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000747", + "id": "00000000-0000-0000-0000-000000000640", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000759", + "id": "00000000-0000-0000-0000-000000000652", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000749", + "id": "00000000-0000-0000-0000-000000000642", }, "id": { - "id": "00000000-0000-0000-0000-000000000746", + "id": "00000000-0000-0000-0000-000000000639", }, "lastPublishedVersionId": { - "id": "00000000-0000-0000-0000-000000000751", + "id": "00000000-0000-0000-0000-000000000644", }, "name": { - "id": "00000000-0000-0000-0000-000000000750", + "id": "00000000-0000-0000-0000-000000000643", }, "position": { - "id": "00000000-0000-0000-0000-000000000753", + "id": "00000000-0000-0000-0000-000000000646", }, "runs": { - "id": "00000000-0000-0000-0000-000000000755", + "id": "00000000-0000-0000-0000-000000000648", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000761", + "id": "00000000-0000-0000-0000-000000000654", }, "statuses": { - "id": "00000000-0000-0000-0000-000000000752", + "id": "00000000-0000-0000-0000-000000000645", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000757", + "id": "00000000-0000-0000-0000-000000000650", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000748", + "id": "00000000-0000-0000-0000-000000000641", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000760", + "id": "00000000-0000-0000-0000-000000000653", }, "versions": { - "id": "00000000-0000-0000-0000-000000000754", + "id": "00000000-0000-0000-0000-000000000647", }, }, - "id": "00000000-0000-0000-0000-000000000769", + "id": "00000000-0000-0000-0000-000000000662", "views": { "allWorkflows": { - "id": "00000000-0000-0000-0000-000000000768", + "id": "00000000-0000-0000-0000-000000000661", "viewFieldGroups": {}, "viewFields": { "createdBy": { - "id": "00000000-0000-0000-0000-000000000765", + "id": "00000000-0000-0000-0000-000000000658", }, "name": { - "id": "00000000-0000-0000-0000-000000000762", + "id": "00000000-0000-0000-0000-000000000655", }, "runs": { - "id": "00000000-0000-0000-0000-000000000767", + "id": "00000000-0000-0000-0000-000000000660", }, "statuses": { - "id": "00000000-0000-0000-0000-000000000763", + "id": "00000000-0000-0000-0000-000000000656", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000764", + "id": "00000000-0000-0000-0000-000000000657", }, "versions": { - "id": "00000000-0000-0000-0000-000000000766", + "id": "00000000-0000-0000-0000-000000000659", }, }, "viewGroups": {}, @@ -2581,79 +2221,79 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "workflowAutomatedTrigger": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000771", + "id": "00000000-0000-0000-0000-000000000664", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000777", + "id": "00000000-0000-0000-0000-000000000670", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000773", + "id": "00000000-0000-0000-0000-000000000666", }, "id": { - "id": "00000000-0000-0000-0000-000000000770", + "id": "00000000-0000-0000-0000-000000000663", }, "position": { - "id": "00000000-0000-0000-0000-000000000779", + "id": "00000000-0000-0000-0000-000000000672", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000780", + "id": "00000000-0000-0000-0000-000000000673", }, "settings": { - "id": "00000000-0000-0000-0000-000000000775", + "id": "00000000-0000-0000-0000-000000000668", }, "type": { - "id": "00000000-0000-0000-0000-000000000774", + "id": "00000000-0000-0000-0000-000000000667", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000772", + "id": "00000000-0000-0000-0000-000000000665", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000778", + "id": "00000000-0000-0000-0000-000000000671", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000776", + "id": "00000000-0000-0000-0000-000000000669", }, }, - "id": "00000000-0000-0000-0000-000000000792", + "id": "00000000-0000-0000-0000-000000000685", "views": { "allWorkflowAutomatedTriggers": { - "id": "00000000-0000-0000-0000-000000000784", + "id": "00000000-0000-0000-0000-000000000677", "viewFieldGroups": {}, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000783", + "id": "00000000-0000-0000-0000-000000000676", }, "type": { - "id": "00000000-0000-0000-0000-000000000781", + "id": "00000000-0000-0000-0000-000000000674", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000782", + "id": "00000000-0000-0000-0000-000000000675", }, }, "viewGroups": {}, }, "workflowAutomatedTriggerRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000791", + "id": "00000000-0000-0000-0000-000000000684", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000789", + "id": "00000000-0000-0000-0000-000000000682", }, "system": { - "id": "00000000-0000-0000-0000-000000000790", + "id": "00000000-0000-0000-0000-000000000683", }, }, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000787", + "id": "00000000-0000-0000-0000-000000000680", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000788", + "id": "00000000-0000-0000-0000-000000000681", }, "type": { - "id": "00000000-0000-0000-0000-000000000785", + "id": "00000000-0000-0000-0000-000000000678", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000786", + "id": "00000000-0000-0000-0000-000000000679", }, }, "viewGroups": {}, @@ -2663,130 +2303,130 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "workflowRun": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000794", + "id": "00000000-0000-0000-0000-000000000687", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000805", + "id": "00000000-0000-0000-0000-000000000698", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000796", + "id": "00000000-0000-0000-0000-000000000689", }, "endedAt": { - "id": "00000000-0000-0000-0000-000000000802", + "id": "00000000-0000-0000-0000-000000000695", }, "enqueuedAt": { - "id": "00000000-0000-0000-0000-000000000800", + "id": "00000000-0000-0000-0000-000000000693", }, "id": { - "id": "00000000-0000-0000-0000-000000000793", + "id": "00000000-0000-0000-0000-000000000686", }, "name": { - "id": "00000000-0000-0000-0000-000000000797", + "id": "00000000-0000-0000-0000-000000000690", }, "position": { - "id": "00000000-0000-0000-0000-000000000804", + "id": "00000000-0000-0000-0000-000000000697", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000809", + "id": "00000000-0000-0000-0000-000000000702", }, "startedAt": { - "id": "00000000-0000-0000-0000-000000000801", + "id": "00000000-0000-0000-0000-000000000694", }, "state": { - "id": "00000000-0000-0000-0000-000000000807", + "id": "00000000-0000-0000-0000-000000000700", }, "status": { - "id": "00000000-0000-0000-0000-000000000803", + "id": "00000000-0000-0000-0000-000000000696", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000808", + "id": "00000000-0000-0000-0000-000000000701", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000795", + "id": "00000000-0000-0000-0000-000000000688", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000806", + "id": "00000000-0000-0000-0000-000000000699", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000799", + "id": "00000000-0000-0000-0000-000000000692", }, "workflowVersion": { - "id": "00000000-0000-0000-0000-000000000798", + "id": "00000000-0000-0000-0000-000000000691", }, }, - "id": "00000000-0000-0000-0000-000000000832", + "id": "00000000-0000-0000-0000-000000000725", "views": { "allWorkflowRuns": { - "id": "00000000-0000-0000-0000-000000000816", + "id": "00000000-0000-0000-0000-000000000709", "viewFieldGroups": {}, "viewFields": { "createdBy": { - "id": "00000000-0000-0000-0000-000000000814", + "id": "00000000-0000-0000-0000-000000000707", }, "name": { - "id": "00000000-0000-0000-0000-000000000810", + "id": "00000000-0000-0000-0000-000000000703", }, "startedAt": { - "id": "00000000-0000-0000-0000-000000000813", + "id": "00000000-0000-0000-0000-000000000706", }, "status": { - "id": "00000000-0000-0000-0000-000000000812", + "id": "00000000-0000-0000-0000-000000000705", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000811", + "id": "00000000-0000-0000-0000-000000000704", }, "workflowVersion": { - "id": "00000000-0000-0000-0000-000000000815", + "id": "00000000-0000-0000-0000-000000000708", }, }, "viewGroups": {}, }, "workflowRunRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000831", + "id": "00000000-0000-0000-0000-000000000724", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000829", + "id": "00000000-0000-0000-0000-000000000722", }, "system": { - "id": "00000000-0000-0000-0000-000000000830", + "id": "00000000-0000-0000-0000-000000000723", }, }, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000822", + "id": "00000000-0000-0000-0000-000000000715", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000823", + "id": "00000000-0000-0000-0000-000000000716", }, "endedAt": { - "id": "00000000-0000-0000-0000-000000000821", + "id": "00000000-0000-0000-0000-000000000714", }, "enqueuedAt": { - "id": "00000000-0000-0000-0000-000000000824", + "id": "00000000-0000-0000-0000-000000000717", }, "startedAt": { - "id": "00000000-0000-0000-0000-000000000820", + "id": "00000000-0000-0000-0000-000000000713", }, "state": { - "id": "00000000-0000-0000-0000-000000000825", + "id": "00000000-0000-0000-0000-000000000718", }, "status": { - "id": "00000000-0000-0000-0000-000000000817", + "id": "00000000-0000-0000-0000-000000000710", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000828", + "id": "00000000-0000-0000-0000-000000000721", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000826", + "id": "00000000-0000-0000-0000-000000000719", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000827", + "id": "00000000-0000-0000-0000-000000000720", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000818", + "id": "00000000-0000-0000-0000-000000000711", }, "workflowVersion": { - "id": "00000000-0000-0000-0000-000000000819", + "id": "00000000-0000-0000-0000-000000000712", }, }, "viewGroups": {}, @@ -2796,115 +2436,115 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "workflowVersion": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000834", + "id": "00000000-0000-0000-0000-000000000727", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000846", + "id": "00000000-0000-0000-0000-000000000739", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000836", + "id": "00000000-0000-0000-0000-000000000729", }, "id": { - "id": "00000000-0000-0000-0000-000000000833", + "id": "00000000-0000-0000-0000-000000000726", }, "name": { - "id": "00000000-0000-0000-0000-000000000837", + "id": "00000000-0000-0000-0000-000000000730", }, "position": { - "id": "00000000-0000-0000-0000-000000000841", + "id": "00000000-0000-0000-0000-000000000734", }, "runs": { - "id": "00000000-0000-0000-0000-000000000842", + "id": "00000000-0000-0000-0000-000000000735", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000845", + "id": "00000000-0000-0000-0000-000000000738", }, "status": { - "id": "00000000-0000-0000-0000-000000000840", + "id": "00000000-0000-0000-0000-000000000733", }, "steps": { - "id": "00000000-0000-0000-0000-000000000843", + "id": "00000000-0000-0000-0000-000000000736", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000844", + "id": "00000000-0000-0000-0000-000000000737", }, "trigger": { - "id": "00000000-0000-0000-0000-000000000839", + "id": "00000000-0000-0000-0000-000000000732", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000835", + "id": "00000000-0000-0000-0000-000000000728", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000847", + "id": "00000000-0000-0000-0000-000000000740", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000838", + "id": "00000000-0000-0000-0000-000000000731", }, }, - "id": "00000000-0000-0000-0000-000000000867", + "id": "00000000-0000-0000-0000-000000000760", "views": { "allWorkflowVersions": { - "id": "00000000-0000-0000-0000-000000000853", + "id": "00000000-0000-0000-0000-000000000746", "viewFieldGroups": {}, "viewFields": { "name": { - "id": "00000000-0000-0000-0000-000000000848", + "id": "00000000-0000-0000-0000-000000000741", }, "runs": { - "id": "00000000-0000-0000-0000-000000000852", + "id": "00000000-0000-0000-0000-000000000745", }, "status": { - "id": "00000000-0000-0000-0000-000000000850", + "id": "00000000-0000-0000-0000-000000000743", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000851", + "id": "00000000-0000-0000-0000-000000000744", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000849", + "id": "00000000-0000-0000-0000-000000000742", }, }, "viewGroups": {}, }, "workflowVersionRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000866", + "id": "00000000-0000-0000-0000-000000000759", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000864", + "id": "00000000-0000-0000-0000-000000000757", }, "system": { - "id": "00000000-0000-0000-0000-000000000865", + "id": "00000000-0000-0000-0000-000000000758", }, }, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000857", + "id": "00000000-0000-0000-0000-000000000750", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000859", + "id": "00000000-0000-0000-0000-000000000752", }, "runs": { - "id": "00000000-0000-0000-0000-000000000862", + "id": "00000000-0000-0000-0000-000000000755", }, "status": { - "id": "00000000-0000-0000-0000-000000000854", + "id": "00000000-0000-0000-0000-000000000747", }, "steps": { - "id": "00000000-0000-0000-0000-000000000858", + "id": "00000000-0000-0000-0000-000000000751", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000863", + "id": "00000000-0000-0000-0000-000000000756", }, "trigger": { - "id": "00000000-0000-0000-0000-000000000856", + "id": "00000000-0000-0000-0000-000000000749", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000860", + "id": "00000000-0000-0000-0000-000000000753", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000861", + "id": "00000000-0000-0000-0000-000000000754", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000855", + "id": "00000000-0000-0000-0000-000000000748", }, }, "viewGroups": {}, @@ -2914,122 +2554,122 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "workspaceMember": { "fields": { "accountOwnerForCompanies": { - "id": "00000000-0000-0000-0000-000000000881", + "id": "00000000-0000-0000-0000-000000000774", }, "assignedTasks": { - "id": "00000000-0000-0000-0000-000000000879", + "id": "00000000-0000-0000-0000-000000000772", }, "avatarUrl": { - "id": "00000000-0000-0000-0000-000000000876", + "id": "00000000-0000-0000-0000-000000000769", }, "blocklist": { - "id": "00000000-0000-0000-0000-000000000883", + "id": "00000000-0000-0000-0000-000000000776", }, "calendarEventParticipants": { - "id": "00000000-0000-0000-0000-000000000884", + "id": "00000000-0000-0000-0000-000000000777", }, "calendarStartDay": { - "id": "00000000-0000-0000-0000-000000000890", + "id": "00000000-0000-0000-0000-000000000783", }, "colorScheme": { - "id": "00000000-0000-0000-0000-000000000874", + "id": "00000000-0000-0000-0000-000000000767", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000869", + "id": "00000000-0000-0000-0000-000000000762", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000892", + "id": "00000000-0000-0000-0000-000000000785", }, "dateFormat": { - "id": "00000000-0000-0000-0000-000000000887", + "id": "00000000-0000-0000-0000-000000000780", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000871", + "id": "00000000-0000-0000-0000-000000000764", }, "id": { - "id": "00000000-0000-0000-0000-000000000868", + "id": "00000000-0000-0000-0000-000000000761", }, "locale": { - "id": "00000000-0000-0000-0000-000000000875", + "id": "00000000-0000-0000-0000-000000000768", }, "messageParticipants": { - "id": "00000000-0000-0000-0000-000000000882", + "id": "00000000-0000-0000-0000-000000000775", }, "name": { - "id": "00000000-0000-0000-0000-000000000873", + "id": "00000000-0000-0000-0000-000000000766", }, "numberFormat": { - "id": "00000000-0000-0000-0000-000000000891", + "id": "00000000-0000-0000-0000-000000000784", }, "ownedOpportunities": { - "id": "00000000-0000-0000-0000-000000000880", + "id": "00000000-0000-0000-0000-000000000773", }, "position": { - "id": "00000000-0000-0000-0000-000000000872", + "id": "00000000-0000-0000-0000-000000000765", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000889", + "id": "00000000-0000-0000-0000-000000000782", }, "timeFormat": { - "id": "00000000-0000-0000-0000-000000000888", + "id": "00000000-0000-0000-0000-000000000781", }, "timeZone": { - "id": "00000000-0000-0000-0000-000000000886", + "id": "00000000-0000-0000-0000-000000000779", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000885", + "id": "00000000-0000-0000-0000-000000000778", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000870", + "id": "00000000-0000-0000-0000-000000000763", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000893", + "id": "00000000-0000-0000-0000-000000000786", }, "userEmail": { - "id": "00000000-0000-0000-0000-000000000877", + "id": "00000000-0000-0000-0000-000000000770", }, "userId": { - "id": "00000000-0000-0000-0000-000000000878", + "id": "00000000-0000-0000-0000-000000000771", }, }, - "id": "00000000-0000-0000-0000-000000000906", + "id": "00000000-0000-0000-0000-000000000799", "views": { "allWorkspaceMembers": { - "id": "00000000-0000-0000-0000-000000000905", + "id": "00000000-0000-0000-0000-000000000798", "viewFieldGroups": {}, "viewFields": { "assignedTasks": { - "id": "00000000-0000-0000-0000-000000000904", + "id": "00000000-0000-0000-0000-000000000797", }, "avatarUrl": { - "id": "00000000-0000-0000-0000-000000000896", + "id": "00000000-0000-0000-0000-000000000789", }, "colorScheme": { - "id": "00000000-0000-0000-0000-000000000897", + "id": "00000000-0000-0000-0000-000000000790", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000902", + "id": "00000000-0000-0000-0000-000000000795", }, "dateFormat": { - "id": "00000000-0000-0000-0000-000000000900", + "id": "00000000-0000-0000-0000-000000000793", }, "locale": { - "id": "00000000-0000-0000-0000-000000000898", + "id": "00000000-0000-0000-0000-000000000791", }, "name": { - "id": "00000000-0000-0000-0000-000000000894", + "id": "00000000-0000-0000-0000-000000000787", }, "ownedOpportunities": { - "id": "00000000-0000-0000-0000-000000000903", + "id": "00000000-0000-0000-0000-000000000796", }, "timeFormat": { - "id": "00000000-0000-0000-0000-000000000901", + "id": "00000000-0000-0000-0000-000000000794", }, "timeZone": { - "id": "00000000-0000-0000-0000-000000000899", + "id": "00000000-0000-0000-0000-000000000792", }, "userEmail": { - "id": "00000000-0000-0000-0000-000000000895", + "id": "00000000-0000-0000-0000-000000000788", }, }, "viewGroups": {}, diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-page-layout-metadata-related-entity-ids.util.spec.ts.snap b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-page-layout-metadata-related-entity-ids.util.spec.ts.snap index 40ab2388f5..f39aa81370 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-page-layout-metadata-related-entity-ids.util.spec.ts.snap +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-page-layout-metadata-related-entity-ids.util.spec.ts.snap @@ -24,27 +24,6 @@ exports[`getStandardPageLayoutMetadataRelatedEntityIds should return standard pa }, }, "calendarChannelEventAssociationRecordPage": { - "id": "00000000-0000-0000-0000-000000000021", - "tabs": { - "home": { - "id": "00000000-0000-0000-0000-000000000022", - "widgets": { - "fields": { - "id": "00000000-0000-0000-0000-000000000023", - }, - }, - }, - "timeline": { - "id": "00000000-0000-0000-0000-000000000024", - "widgets": { - "timeline": { - "id": "00000000-0000-0000-0000-000000000025", - }, - }, - }, - }, - }, - "calendarChannelRecordPage": { "id": "00000000-0000-0000-0000-000000000016", "tabs": { "home": { @@ -66,136 +45,94 @@ exports[`getStandardPageLayoutMetadataRelatedEntityIds should return standard pa }, }, "calendarEventParticipantRecordPage": { - "id": "00000000-0000-0000-0000-000000000026", + "id": "00000000-0000-0000-0000-000000000021", "tabs": { "home": { - "id": "00000000-0000-0000-0000-000000000027", + "id": "00000000-0000-0000-0000-000000000022", "widgets": { "fields": { - "id": "00000000-0000-0000-0000-000000000028", + "id": "00000000-0000-0000-0000-000000000023", }, }, }, "timeline": { - "id": "00000000-0000-0000-0000-000000000029", + "id": "00000000-0000-0000-0000-000000000024", "widgets": { "timeline": { - "id": "00000000-0000-0000-0000-000000000030", + "id": "00000000-0000-0000-0000-000000000025", }, }, }, }, }, "companyRecordPage": { - "id": "00000000-0000-0000-0000-000000000031", + "id": "00000000-0000-0000-0000-000000000026", "tabs": { "calendar": { - "id": "00000000-0000-0000-0000-000000000046", + "id": "00000000-0000-0000-0000-000000000041", "widgets": { "calendar": { - "id": "00000000-0000-0000-0000-000000000047", + "id": "00000000-0000-0000-0000-000000000042", }, }, }, "emails": { - "id": "00000000-0000-0000-0000-000000000044", + "id": "00000000-0000-0000-0000-000000000039", "widgets": { "emails": { - "id": "00000000-0000-0000-0000-000000000045", + "id": "00000000-0000-0000-0000-000000000040", }, }, }, "files": { - "id": "00000000-0000-0000-0000-000000000042", + "id": "00000000-0000-0000-0000-000000000037", "widgets": { "files": { - "id": "00000000-0000-0000-0000-000000000043", + "id": "00000000-0000-0000-0000-000000000038", }, }, }, "home": { - "id": "00000000-0000-0000-0000-000000000032", + "id": "00000000-0000-0000-0000-000000000027", "widgets": { "fields": { - "id": "00000000-0000-0000-0000-000000000033", + "id": "00000000-0000-0000-0000-000000000028", }, "opportunities": { - "id": "00000000-0000-0000-0000-000000000035", + "id": "00000000-0000-0000-0000-000000000030", }, "people": { - "id": "00000000-0000-0000-0000-000000000034", + "id": "00000000-0000-0000-0000-000000000029", }, }, }, "notes": { - "id": "00000000-0000-0000-0000-000000000040", + "id": "00000000-0000-0000-0000-000000000035", "widgets": { "notes": { - "id": "00000000-0000-0000-0000-000000000041", + "id": "00000000-0000-0000-0000-000000000036", }, }, }, "tasks": { - "id": "00000000-0000-0000-0000-000000000038", + "id": "00000000-0000-0000-0000-000000000033", "widgets": { "tasks": { - "id": "00000000-0000-0000-0000-000000000039", + "id": "00000000-0000-0000-0000-000000000034", }, }, }, "timeline": { - "id": "00000000-0000-0000-0000-000000000036", + "id": "00000000-0000-0000-0000-000000000031", "widgets": { "timeline": { - "id": "00000000-0000-0000-0000-000000000037", + "id": "00000000-0000-0000-0000-000000000032", }, }, }, }, }, "messageChannelMessageAssociationMessageFolderRecordPage": { - "id": "00000000-0000-0000-0000-000000000058", - "tabs": { - "home": { - "id": "00000000-0000-0000-0000-000000000059", - "widgets": { - "fields": { - "id": "00000000-0000-0000-0000-000000000060", - }, - }, - }, - "timeline": { - "id": "00000000-0000-0000-0000-000000000061", - "widgets": { - "timeline": { - "id": "00000000-0000-0000-0000-000000000062", - }, - }, - }, - }, - }, - "messageChannelMessageAssociationRecordPage": { - "id": "00000000-0000-0000-0000-000000000053", - "tabs": { - "home": { - "id": "00000000-0000-0000-0000-000000000054", - "widgets": { - "fields": { - "id": "00000000-0000-0000-0000-000000000055", - }, - }, - }, - "timeline": { - "id": "00000000-0000-0000-0000-000000000056", - "widgets": { - "timeline": { - "id": "00000000-0000-0000-0000-000000000057", - }, - }, - }, - }, - }, - "messageChannelRecordPage": { "id": "00000000-0000-0000-0000-000000000048", "tabs": { "home": { @@ -216,56 +153,56 @@ exports[`getStandardPageLayoutMetadataRelatedEntityIds should return standard pa }, }, }, - "messageFolderRecordPage": { - "id": "00000000-0000-0000-0000-000000000063", + "messageChannelMessageAssociationRecordPage": { + "id": "00000000-0000-0000-0000-000000000043", "tabs": { "home": { - "id": "00000000-0000-0000-0000-000000000064", + "id": "00000000-0000-0000-0000-000000000044", "widgets": { "fields": { - "id": "00000000-0000-0000-0000-000000000065", + "id": "00000000-0000-0000-0000-000000000045", }, }, }, "timeline": { - "id": "00000000-0000-0000-0000-000000000066", + "id": "00000000-0000-0000-0000-000000000046", "widgets": { "timeline": { - "id": "00000000-0000-0000-0000-000000000067", + "id": "00000000-0000-0000-0000-000000000047", }, }, }, }, }, "messageParticipantRecordPage": { - "id": "00000000-0000-0000-0000-000000000068", + "id": "00000000-0000-0000-0000-000000000053", "tabs": { "home": { - "id": "00000000-0000-0000-0000-000000000069", + "id": "00000000-0000-0000-0000-000000000054", "widgets": { "fields": { - "id": "00000000-0000-0000-0000-000000000070", + "id": "00000000-0000-0000-0000-000000000055", }, }, }, "timeline": { - "id": "00000000-0000-0000-0000-000000000071", + "id": "00000000-0000-0000-0000-000000000056", "widgets": { "timeline": { - "id": "00000000-0000-0000-0000-000000000072", + "id": "00000000-0000-0000-0000-000000000057", }, }, }, }, }, "messageThreadRecordPage": { - "id": "00000000-0000-0000-0000-000000000073", + "id": "00000000-0000-0000-0000-000000000058", "tabs": { "home": { - "id": "00000000-0000-0000-0000-000000000074", + "id": "00000000-0000-0000-0000-000000000059", "widgets": { "emailThread": { - "id": "00000000-0000-0000-0000-000000000075", + "id": "00000000-0000-0000-0000-000000000060", }, }, }, @@ -306,249 +243,273 @@ exports[`getStandardPageLayoutMetadataRelatedEntityIds should return standard pa }, }, "noteRecordPage": { - "id": "00000000-0000-0000-0000-000000000076", + "id": "00000000-0000-0000-0000-000000000061", "tabs": { "files": { - "id": "00000000-0000-0000-0000-000000000084", + "id": "00000000-0000-0000-0000-000000000069", "widgets": { "files": { - "id": "00000000-0000-0000-0000-000000000085", + "id": "00000000-0000-0000-0000-000000000070", }, }, }, "home": { - "id": "00000000-0000-0000-0000-000000000077", + "id": "00000000-0000-0000-0000-000000000062", "widgets": { "fields": { - "id": "00000000-0000-0000-0000-000000000078", + "id": "00000000-0000-0000-0000-000000000063", }, "noteRichText": { - "id": "00000000-0000-0000-0000-000000000079", + "id": "00000000-0000-0000-0000-000000000064", }, }, }, "note": { - "id": "00000000-0000-0000-0000-000000000080", + "id": "00000000-0000-0000-0000-000000000065", "widgets": { "noteRichText": { - "id": "00000000-0000-0000-0000-000000000081", + "id": "00000000-0000-0000-0000-000000000066", }, }, }, "timeline": { - "id": "00000000-0000-0000-0000-000000000082", + "id": "00000000-0000-0000-0000-000000000067", "widgets": { "timeline": { - "id": "00000000-0000-0000-0000-000000000083", + "id": "00000000-0000-0000-0000-000000000068", }, }, }, }, }, "opportunityRecordPage": { - "id": "00000000-0000-0000-0000-000000000086", + "id": "00000000-0000-0000-0000-000000000071", "tabs": { "calendar": { - "id": "00000000-0000-0000-0000-000000000102", + "id": "00000000-0000-0000-0000-000000000087", "widgets": { "calendar": { - "id": "00000000-0000-0000-0000-000000000103", + "id": "00000000-0000-0000-0000-000000000088", }, }, }, "emails": { - "id": "00000000-0000-0000-0000-000000000100", + "id": "00000000-0000-0000-0000-000000000085", "widgets": { "emails": { - "id": "00000000-0000-0000-0000-000000000101", + "id": "00000000-0000-0000-0000-000000000086", }, }, }, "files": { - "id": "00000000-0000-0000-0000-000000000098", + "id": "00000000-0000-0000-0000-000000000083", "widgets": { "files": { - "id": "00000000-0000-0000-0000-000000000099", + "id": "00000000-0000-0000-0000-000000000084", }, }, }, "home": { - "id": "00000000-0000-0000-0000-000000000087", + "id": "00000000-0000-0000-0000-000000000072", "widgets": { "company": { - "id": "00000000-0000-0000-0000-000000000090", + "id": "00000000-0000-0000-0000-000000000075", }, "fields": { - "id": "00000000-0000-0000-0000-000000000088", + "id": "00000000-0000-0000-0000-000000000073", }, "owner": { - "id": "00000000-0000-0000-0000-000000000091", + "id": "00000000-0000-0000-0000-000000000076", }, "pointOfContact": { - "id": "00000000-0000-0000-0000-000000000089", + "id": "00000000-0000-0000-0000-000000000074", }, }, }, "notes": { - "id": "00000000-0000-0000-0000-000000000096", + "id": "00000000-0000-0000-0000-000000000081", "widgets": { "notes": { - "id": "00000000-0000-0000-0000-000000000097", + "id": "00000000-0000-0000-0000-000000000082", }, }, }, "tasks": { - "id": "00000000-0000-0000-0000-000000000094", + "id": "00000000-0000-0000-0000-000000000079", "widgets": { "tasks": { - "id": "00000000-0000-0000-0000-000000000095", + "id": "00000000-0000-0000-0000-000000000080", }, }, }, "timeline": { - "id": "00000000-0000-0000-0000-000000000092", + "id": "00000000-0000-0000-0000-000000000077", "widgets": { "timeline": { - "id": "00000000-0000-0000-0000-000000000093", + "id": "00000000-0000-0000-0000-000000000078", }, }, }, }, }, "personRecordPage": { - "id": "00000000-0000-0000-0000-000000000104", + "id": "00000000-0000-0000-0000-000000000089", "tabs": { "calendar": { - "id": "00000000-0000-0000-0000-000000000119", + "id": "00000000-0000-0000-0000-000000000104", "widgets": { "calendar": { - "id": "00000000-0000-0000-0000-000000000120", + "id": "00000000-0000-0000-0000-000000000105", }, }, }, "emails": { - "id": "00000000-0000-0000-0000-000000000117", + "id": "00000000-0000-0000-0000-000000000102", "widgets": { "emails": { - "id": "00000000-0000-0000-0000-000000000118", + "id": "00000000-0000-0000-0000-000000000103", }, }, }, "files": { - "id": "00000000-0000-0000-0000-000000000115", + "id": "00000000-0000-0000-0000-000000000100", "widgets": { "files": { - "id": "00000000-0000-0000-0000-000000000116", + "id": "00000000-0000-0000-0000-000000000101", }, }, }, "home": { - "id": "00000000-0000-0000-0000-000000000105", + "id": "00000000-0000-0000-0000-000000000090", "widgets": { "company": { - "id": "00000000-0000-0000-0000-000000000107", + "id": "00000000-0000-0000-0000-000000000092", }, "fields": { - "id": "00000000-0000-0000-0000-000000000106", + "id": "00000000-0000-0000-0000-000000000091", }, "pointOfContactForOpportunities": { - "id": "00000000-0000-0000-0000-000000000108", + "id": "00000000-0000-0000-0000-000000000093", }, }, }, "notes": { - "id": "00000000-0000-0000-0000-000000000113", + "id": "00000000-0000-0000-0000-000000000098", "widgets": { "notes": { - "id": "00000000-0000-0000-0000-000000000114", + "id": "00000000-0000-0000-0000-000000000099", }, }, }, "tasks": { - "id": "00000000-0000-0000-0000-000000000111", + "id": "00000000-0000-0000-0000-000000000096", "widgets": { "tasks": { - "id": "00000000-0000-0000-0000-000000000112", + "id": "00000000-0000-0000-0000-000000000097", }, }, }, "timeline": { - "id": "00000000-0000-0000-0000-000000000109", + "id": "00000000-0000-0000-0000-000000000094", "widgets": { "timeline": { - "id": "00000000-0000-0000-0000-000000000110", + "id": "00000000-0000-0000-0000-000000000095", }, }, }, }, }, "taskRecordPage": { - "id": "00000000-0000-0000-0000-000000000121", + "id": "00000000-0000-0000-0000-000000000106", "tabs": { "files": { - "id": "00000000-0000-0000-0000-000000000129", + "id": "00000000-0000-0000-0000-000000000114", "widgets": { "files": { - "id": "00000000-0000-0000-0000-000000000130", + "id": "00000000-0000-0000-0000-000000000115", }, }, }, "home": { - "id": "00000000-0000-0000-0000-000000000122", + "id": "00000000-0000-0000-0000-000000000107", "widgets": { "fields": { - "id": "00000000-0000-0000-0000-000000000123", + "id": "00000000-0000-0000-0000-000000000108", }, "taskRichText": { - "id": "00000000-0000-0000-0000-000000000124", + "id": "00000000-0000-0000-0000-000000000109", }, }, }, "note": { - "id": "00000000-0000-0000-0000-000000000125", + "id": "00000000-0000-0000-0000-000000000110", "widgets": { "taskRichText": { - "id": "00000000-0000-0000-0000-000000000126", + "id": "00000000-0000-0000-0000-000000000111", }, }, }, "timeline": { - "id": "00000000-0000-0000-0000-000000000127", + "id": "00000000-0000-0000-0000-000000000112", "widgets": { "timeline": { - "id": "00000000-0000-0000-0000-000000000128", + "id": "00000000-0000-0000-0000-000000000113", }, }, }, }, }, "workflowAutomatedTriggerRecordPage": { - "id": "00000000-0000-0000-0000-000000000134", + "id": "00000000-0000-0000-0000-000000000119", "tabs": { "home": { - "id": "00000000-0000-0000-0000-000000000135", + "id": "00000000-0000-0000-0000-000000000120", "widgets": { "fields": { - "id": "00000000-0000-0000-0000-000000000136", + "id": "00000000-0000-0000-0000-000000000121", }, }, }, "timeline": { - "id": "00000000-0000-0000-0000-000000000137", + "id": "00000000-0000-0000-0000-000000000122", "widgets": { "timeline": { - "id": "00000000-0000-0000-0000-000000000138", + "id": "00000000-0000-0000-0000-000000000123", }, }, }, }, }, "workflowRecordPage": { - "id": "00000000-0000-0000-0000-000000000131", + "id": "00000000-0000-0000-0000-000000000116", "tabs": { "flow": { - "id": "00000000-0000-0000-0000-000000000132", + "id": "00000000-0000-0000-0000-000000000117", "widgets": { + "workflow": { + "id": "00000000-0000-0000-0000-000000000118", + }, + }, + }, + }, + }, + "workflowRunRecordPage": { + "id": "00000000-0000-0000-0000-000000000130", + "tabs": { + "flow": { + "id": "00000000-0000-0000-0000-000000000134", + "widgets": { + "workflowRun": { + "id": "00000000-0000-0000-0000-000000000135", + }, + }, + }, + "home": { + "id": "00000000-0000-0000-0000-000000000131", + "widgets": { + "fields": { + "id": "00000000-0000-0000-0000-000000000132", + }, "workflow": { "id": "00000000-0000-0000-0000-000000000133", }, @@ -556,49 +517,25 @@ exports[`getStandardPageLayoutMetadataRelatedEntityIds should return standard pa }, }, }, - "workflowRunRecordPage": { - "id": "00000000-0000-0000-0000-000000000145", - "tabs": { - "flow": { - "id": "00000000-0000-0000-0000-000000000149", - "widgets": { - "workflowRun": { - "id": "00000000-0000-0000-0000-000000000150", - }, - }, - }, - "home": { - "id": "00000000-0000-0000-0000-000000000146", - "widgets": { - "fields": { - "id": "00000000-0000-0000-0000-000000000147", - }, - "workflow": { - "id": "00000000-0000-0000-0000-000000000148", - }, - }, - }, - }, - }, "workflowVersionRecordPage": { - "id": "00000000-0000-0000-0000-000000000139", + "id": "00000000-0000-0000-0000-000000000124", "tabs": { "flow": { - "id": "00000000-0000-0000-0000-000000000143", + "id": "00000000-0000-0000-0000-000000000128", "widgets": { "workflowVersion": { - "id": "00000000-0000-0000-0000-000000000144", + "id": "00000000-0000-0000-0000-000000000129", }, }, }, "home": { - "id": "00000000-0000-0000-0000-000000000140", + "id": "00000000-0000-0000-0000-000000000125", "widgets": { "fields": { - "id": "00000000-0000-0000-0000-000000000141", + "id": "00000000-0000-0000-0000-000000000126", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000142", + "id": "00000000-0000-0000-0000-000000000127", }, }, }, diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/build-standard-flat-field-metadata-maps.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/build-standard-flat-field-metadata-maps.util.ts index 7676cb3b0f..5e1f21ad29 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/build-standard-flat-field-metadata-maps.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/build-standard-flat-field-metadata-maps.util.ts @@ -8,15 +8,12 @@ import { type AllStandardObjectName } from 'src/engine/workspace-manager/twenty- import { buildAttachmentStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-attachment-standard-flat-field-metadata.util'; import { buildBlocklistStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-blocklist-standard-flat-field-metadata.util'; import { buildCalendarChannelEventAssociationStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-calendar-channel-event-association-standard-flat-field-metadata.util'; -import { buildCalendarChannelStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-calendar-channel-standard-flat-field-metadata.util'; import { buildCalendarEventParticipantStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-calendar-event-participant-standard-flat-field-metadata.util'; import { buildCalendarEventStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-calendar-event-standard-flat-field-metadata.util'; import { buildCompanyStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-company-standard-flat-field-metadata.util'; import { buildDashboardStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-dashboard-standard-flat-field-metadata.util'; import { buildMessageChannelMessageAssociationMessageFolderStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-channel-message-association-message-folder-standard-flat-field-metadata.util'; -import { buildMessageChannelStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-channel-standard-flat-field-metadata.util'; import { buildMessageChannelMessageAssociationStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-channel-message-association-standard-flat-field-metadata.util'; -import { buildMessageFolderStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-folder-standard-flat-field-metadata.util'; import { buildMessageParticipantStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-participant-standard-flat-field-metadata.util'; import { buildMessageStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-standard-flat-field-metadata.util'; import { buildMessageThreadStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-thread-standard-flat-field-metadata.util'; @@ -41,7 +38,6 @@ type StandardFieldBuilder

= ( const STANDARD_FLAT_FIELD_METADATA_BUILDERS_BY_OBJECT_NAME = { attachment: buildAttachmentStandardFlatFieldMetadatas, blocklist: buildBlocklistStandardFlatFieldMetadatas, - calendarChannel: buildCalendarChannelStandardFlatFieldMetadatas, calendarChannelEventAssociation: buildCalendarChannelEventAssociationStandardFlatFieldMetadatas, calendarEventParticipant: @@ -50,12 +46,10 @@ const STANDARD_FLAT_FIELD_METADATA_BUILDERS_BY_OBJECT_NAME = { company: buildCompanyStandardFlatFieldMetadatas, dashboard: buildDashboardStandardFlatFieldMetadatas, message: buildMessageStandardFlatFieldMetadatas, - messageChannel: buildMessageChannelStandardFlatFieldMetadatas, messageChannelMessageAssociation: buildMessageChannelMessageAssociationStandardFlatFieldMetadatas, messageChannelMessageAssociationMessageFolder: buildMessageChannelMessageAssociationMessageFolderStandardFlatFieldMetadatas, - messageFolder: buildMessageFolderStandardFlatFieldMetadatas, messageParticipant: buildMessageParticipantStandardFlatFieldMetadatas, messageThread: buildMessageThreadStandardFlatFieldMetadatas, note: buildNoteStandardFlatFieldMetadatas, diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-calendar-channel-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-calendar-channel-standard-flat-field-metadata.util.ts deleted file mode 100644 index 2c3c002022..0000000000 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-calendar-channel-standard-flat-field-metadata.util.ts +++ /dev/null @@ -1,533 +0,0 @@ -import { msg } from '@lingui/core/macro'; -import { i18nLabel } from 'src/engine/workspace-manager/twenty-standard-application/utils/i18n-label.util'; -import { DateDisplayFormat, FieldMetadataType } from 'twenty-shared/types'; - -import { type FlatFieldMetadata } from 'src/engine/metadata-modules/flat-field-metadata/types/flat-field-metadata.type'; -import { type AllStandardObjectFieldName } from 'src/engine/workspace-manager/twenty-standard-application/types/all-standard-object-field-name.type'; -import { - type CreateStandardFieldArgs, - createStandardFieldFlatMetadata, -} from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/create-standard-field-flat-metadata.util'; -import { getTsVectorColumnExpressionFromFields } from 'src/engine/workspace-manager/utils/get-ts-vector-column-expression.util'; -import { SEARCH_FIELDS_FOR_CALENDAR_CHANNEL } from 'src/modules/calendar/common/standard-objects/calendar-channel.workspace-entity'; - -export const buildCalendarChannelStandardFlatFieldMetadatas = ({ - now, - objectName, - workspaceId, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, -}: Omit< - CreateStandardFieldArgs<'calendarChannel', FieldMetadataType>, - 'context' ->): Record< - AllStandardObjectFieldName<'calendarChannel'>, - FlatFieldMetadata -> => ({ - id: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'id', - type: FieldMetadataType.UUID, - label: i18nLabel(msg`Id`), - description: i18nLabel(msg`Id`), - icon: 'Icon123', - isSystem: true, - isNullable: false, - isUIReadOnly: true, - defaultValue: 'uuid', - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - createdAt: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'createdAt', - type: FieldMetadataType.DATE_TIME, - label: i18nLabel(msg`Creation date`), - description: i18nLabel(msg`Creation date`), - icon: 'IconCalendar', - isSystem: true, - isNullable: false, - isUIReadOnly: true, - defaultValue: 'now', - settings: { displayFormat: DateDisplayFormat.RELATIVE }, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - updatedAt: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'updatedAt', - type: FieldMetadataType.DATE_TIME, - label: i18nLabel(msg`Last update`), - description: i18nLabel(msg`Last time the record was changed`), - icon: 'IconCalendarClock', - isSystem: true, - isNullable: false, - isUIReadOnly: true, - defaultValue: 'now', - settings: { displayFormat: DateDisplayFormat.RELATIVE }, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - deletedAt: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'deletedAt', - type: FieldMetadataType.DATE_TIME, - label: i18nLabel(msg`Deleted at`), - description: i18nLabel(msg`Date when the record was deleted`), - icon: 'IconCalendarMinus', - isSystem: true, - isNullable: true, - isUIReadOnly: true, - settings: { displayFormat: DateDisplayFormat.RELATIVE }, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - createdBy: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'createdBy', - type: FieldMetadataType.ACTOR, - label: i18nLabel(msg`Created by`), - description: i18nLabel(msg`The creator of the record`), - icon: 'IconCreativeCommonsSa', - isSystem: true, - isUIReadOnly: true, - isNullable: false, - defaultValue: { - source: "'MANUAL'", - name: "'System'", - workspaceMemberId: null, - }, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - updatedBy: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'updatedBy', - type: FieldMetadataType.ACTOR, - label: i18nLabel(msg`Updated by`), - description: i18nLabel( - msg`The workspace member who last updated the record`, - ), - icon: 'IconUserCircle', - isSystem: true, - isUIReadOnly: true, - isNullable: false, - defaultValue: { - source: "'MANUAL'", - name: "'System'", - workspaceMemberId: null, - }, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - position: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'position', - type: FieldMetadataType.POSITION, - label: i18nLabel(msg`Position`), - description: i18nLabel(msg`Calendar channel record position`), - icon: 'IconHierarchy2', - isSystem: true, - isNullable: false, - defaultValue: 0, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - searchVector: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'searchVector', - type: FieldMetadataType.TS_VECTOR, - label: i18nLabel(msg`Search vector`), - description: i18nLabel(msg`Field used for full-text search`), - icon: 'IconUser', - isSystem: true, - isNullable: true, - settings: { - generatedType: 'STORED', - asExpression: getTsVectorColumnExpressionFromFields( - SEARCH_FIELDS_FOR_CALENDAR_CHANNEL, - ), - }, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - handle: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'handle', - type: FieldMetadataType.TEXT, - label: i18nLabel(msg`Handle`), - description: i18nLabel(msg`Handle`), - icon: 'IconAt', - isNullable: true, - isUIReadOnly: true, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - visibility: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'visibility', - type: FieldMetadataType.SELECT, - label: i18nLabel(msg`Visibility`), - description: i18nLabel(msg`Visibility`), - icon: 'IconEyeglass', - isNullable: false, - isUIReadOnly: true, - defaultValue: "'SHARE_EVERYTHING'", - options: [ - { - id: '20202020-82a0-4859-b356-f5a1d6e3e53d', - value: 'METADATA', - label: i18nLabel(msg`Metadata`), - position: 0, - color: 'green', - }, - { - id: '20202020-e5ec-4df5-ba3f-66ca2a79c283', - value: 'SHARE_EVERYTHING', - label: i18nLabel(msg`Share Everything`), - position: 1, - color: 'orange', - }, - ], - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - isContactAutoCreationEnabled: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'isContactAutoCreationEnabled', - type: FieldMetadataType.BOOLEAN, - label: i18nLabel(msg`Is Contact Auto Creation Enabled`), - description: i18nLabel(msg`Is Contact Auto Creation Enabled`), - icon: 'IconUserCircle', - isNullable: false, - isUIReadOnly: true, - defaultValue: true, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - contactAutoCreationPolicy: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'contactAutoCreationPolicy', - type: FieldMetadataType.SELECT, - label: i18nLabel(msg`Contact auto creation policy`), - description: i18nLabel( - msg`Automatically create records for people you participated with in an event.`, - ), - icon: 'IconUserCircle', - isNullable: false, - isUIReadOnly: true, - defaultValue: "'AS_PARTICIPANT_AND_ORGANIZER'", - options: [ - { - id: '20202020-47c1-4af1-a8a6-540edeafc55e', - value: 'AS_PARTICIPANT_AND_ORGANIZER', - label: i18nLabel(msg`As Participant and Organizer`), - color: 'green', - position: 0, - }, - { - id: '20202020-b3cc-4248-b0d1-c8d45c2418b3', - value: 'AS_PARTICIPANT', - label: i18nLabel(msg`As Participant`), - color: 'orange', - position: 1, - }, - { - id: '20202020-84ef-4061-9c22-db596e237ddc', - value: 'AS_ORGANIZER', - label: i18nLabel(msg`As Organizer`), - color: 'blue', - position: 2, - }, - { - id: '20202020-f170-491f-9597-0e5817e46c17', - value: 'NONE', - label: i18nLabel(msg`None`), - color: 'red', - position: 3, - }, - ], - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - isSyncEnabled: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'isSyncEnabled', - type: FieldMetadataType.BOOLEAN, - label: i18nLabel(msg`Is Sync Enabled`), - description: i18nLabel(msg`Is Sync Enabled`), - icon: 'IconRefresh', - isNullable: false, - isUIReadOnly: true, - defaultValue: true, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - syncCursor: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'syncCursor', - type: FieldMetadataType.TEXT, - label: i18nLabel(msg`Sync Cursor`), - description: i18nLabel( - msg`Sync Cursor. Used for syncing events from the calendar provider`, - ), - icon: 'IconReload', - isNullable: true, - isUIReadOnly: true, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - syncStatus: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'syncStatus', - type: FieldMetadataType.SELECT, - label: i18nLabel(msg`Sync status`), - description: i18nLabel(msg`Sync status`), - icon: 'IconStatusChange', - isNullable: true, - isUIReadOnly: true, - options: [ - { - id: '20202020-ebdc-4fc8-a5c1-4bc6a90fdc3c', - value: 'ONGOING', - label: i18nLabel(msg`Ongoing`), - position: 1, - color: 'yellow', - }, - { - id: '20202020-7126-4c26-9940-f5807ed87266', - value: 'NOT_SYNCED', - label: i18nLabel(msg`Not Synced`), - position: 2, - color: 'blue', - }, - { - id: '20202020-0302-4201-bf84-aaa26b7ca94e', - value: 'ACTIVE', - label: i18nLabel(msg`Active`), - position: 3, - color: 'green', - }, - { - id: '20202020-6dbb-449d-96b0-092189010f42', - value: 'FAILED_INSUFFICIENT_PERMISSIONS', - label: i18nLabel(msg`Failed Insufficient Permissions`), - position: 4, - color: 'red', - }, - { - id: '20202020-935c-4333-a614-f49ee2ec6aa7', - value: 'FAILED_UNKNOWN', - label: i18nLabel(msg`Failed Unknown`), - position: 5, - color: 'red', - }, - ], - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - syncStage: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'syncStage', - type: FieldMetadataType.SELECT, - label: i18nLabel(msg`Sync stage`), - description: i18nLabel(msg`Sync stage`), - icon: 'IconStatusChange', - isNullable: false, - isUIReadOnly: true, - defaultValue: "'PENDING_CONFIGURATION'", - options: [ - { - id: '20202020-60c1-40a3-90ae-61d9ee1083c1', - value: 'CALENDAR_EVENT_LIST_FETCH_PENDING', - label: i18nLabel(msg`Calendar event list fetch pending`), - position: 0, - color: 'blue', - }, - { - id: '20202020-8652-444a-b72e-d4b7112179ca', - value: 'CALENDAR_EVENT_LIST_FETCH_SCHEDULED', - label: i18nLabel(msg`Calendar event list fetch scheduled`), - position: 1, - color: 'green', - }, - { - id: '20202020-e87c-4cfe-aefc-635ad34ef223', - value: 'CALENDAR_EVENT_LIST_FETCH_ONGOING', - label: i18nLabel(msg`Calendar event list fetch ongoing`), - position: 2, - color: 'orange', - }, - { - id: '20202020-876f-449d-9f09-de5c369ff95f', - value: 'CALENDAR_EVENTS_IMPORT_PENDING', - label: i18nLabel(msg`Calendar events import pending`), - position: 3, - color: 'blue', - }, - { - id: '20202020-3d2a-4acd-a0ed-197343b3bf60', - value: 'CALENDAR_EVENTS_IMPORT_SCHEDULED', - label: i18nLabel(msg`Calendar events import scheduled`), - position: 4, - color: 'green', - }, - { - id: '20202020-e762-4152-bb20-29fdd49e1dff', - value: 'CALENDAR_EVENTS_IMPORT_ONGOING', - label: i18nLabel(msg`Calendar events import ongoing`), - position: 5, - color: 'orange', - }, - { - id: '20202020-487c-464f-8caa-c6393b82b17c', - value: 'FAILED', - label: i18nLabel(msg`Failed`), - position: 6, - color: 'red', - }, - { - id: '20202020-ba03-4221-b186-402662b68493', - value: 'PENDING_CONFIGURATION', - label: i18nLabel(msg`Pending configuration`), - position: 9, - color: 'gray', - }, - ], - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - syncStageStartedAt: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'syncStageStartedAt', - type: FieldMetadataType.DATE_TIME, - label: i18nLabel(msg`Sync stage started at`), - description: i18nLabel(msg`Sync stage started at`), - icon: 'IconHistory', - isNullable: true, - isUIReadOnly: true, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - syncedAt: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'syncedAt', - type: FieldMetadataType.DATE_TIME, - label: i18nLabel(msg`Last sync date`), - description: i18nLabel(msg`Last sync date`), - icon: 'IconHistory', - isNullable: true, - isUIReadOnly: true, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - throttleFailureCount: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'throttleFailureCount', - type: FieldMetadataType.NUMBER, - label: i18nLabel(msg`Throttle Failure Count`), - description: i18nLabel(msg`Throttle Failure Count`), - icon: 'IconX', - isNullable: false, - isUIReadOnly: true, - defaultValue: 0, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), -}); diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-channel-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-channel-standard-flat-field-metadata.util.ts deleted file mode 100644 index bd944b047a..0000000000 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-channel-standard-flat-field-metadata.util.ts +++ /dev/null @@ -1,703 +0,0 @@ -import { msg } from '@lingui/core/macro'; -import { i18nLabel } from 'src/engine/workspace-manager/twenty-standard-application/utils/i18n-label.util'; -import { DateDisplayFormat, FieldMetadataType } from 'twenty-shared/types'; - -import { type FlatFieldMetadata } from 'src/engine/metadata-modules/flat-field-metadata/types/flat-field-metadata.type'; -import { type AllStandardObjectFieldName } from 'src/engine/workspace-manager/twenty-standard-application/types/all-standard-object-field-name.type'; -import { - type CreateStandardFieldArgs, - createStandardFieldFlatMetadata, -} from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/create-standard-field-flat-metadata.util'; -import { getTsVectorColumnExpressionFromFields } from 'src/engine/workspace-manager/utils/get-ts-vector-column-expression.util'; -import { - MessageChannelType, - SEARCH_FIELDS_FOR_MESSAGE_CHANNEL, -} from 'src/modules/messaging/common/standard-objects/message-channel.workspace-entity'; - -export const buildMessageChannelStandardFlatFieldMetadatas = ({ - now, - objectName, - workspaceId, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, -}: Omit< - CreateStandardFieldArgs<'messageChannel', FieldMetadataType>, - 'context' ->): Record< - AllStandardObjectFieldName<'messageChannel'>, - FlatFieldMetadata -> => ({ - id: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'id', - type: FieldMetadataType.UUID, - label: i18nLabel(msg`Id`), - description: i18nLabel(msg`Id`), - icon: 'Icon123', - isSystem: true, - isNullable: false, - isUIReadOnly: true, - defaultValue: 'uuid', - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - createdAt: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'createdAt', - type: FieldMetadataType.DATE_TIME, - label: i18nLabel(msg`Creation date`), - description: i18nLabel(msg`Creation date`), - icon: 'IconCalendar', - isSystem: true, - isNullable: false, - isUIReadOnly: true, - defaultValue: 'now', - settings: { displayFormat: DateDisplayFormat.RELATIVE }, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - updatedAt: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'updatedAt', - type: FieldMetadataType.DATE_TIME, - label: i18nLabel(msg`Last update`), - description: i18nLabel(msg`Last time the record was changed`), - icon: 'IconCalendarClock', - isSystem: true, - isNullable: false, - isUIReadOnly: true, - defaultValue: 'now', - settings: { displayFormat: DateDisplayFormat.RELATIVE }, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - deletedAt: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'deletedAt', - type: FieldMetadataType.DATE_TIME, - label: i18nLabel(msg`Deleted at`), - description: i18nLabel(msg`Date when the record was deleted`), - icon: 'IconCalendarMinus', - isSystem: true, - isNullable: true, - isUIReadOnly: true, - settings: { displayFormat: DateDisplayFormat.RELATIVE }, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - createdBy: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'createdBy', - type: FieldMetadataType.ACTOR, - label: i18nLabel(msg`Created by`), - description: i18nLabel(msg`The creator of the record`), - icon: 'IconCreativeCommonsSa', - isSystem: true, - isUIReadOnly: true, - isNullable: false, - defaultValue: { - source: "'MANUAL'", - name: "'System'", - workspaceMemberId: null, - }, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - updatedBy: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'updatedBy', - type: FieldMetadataType.ACTOR, - label: i18nLabel(msg`Updated by`), - description: i18nLabel( - msg`The workspace member who last updated the record`, - ), - icon: 'IconUserCircle', - isSystem: true, - isUIReadOnly: true, - isNullable: false, - defaultValue: { - source: "'MANUAL'", - name: "'System'", - workspaceMemberId: null, - }, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - position: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'position', - type: FieldMetadataType.POSITION, - label: i18nLabel(msg`Position`), - description: i18nLabel(msg`Message Channel record position`), - icon: 'IconHierarchy2', - isSystem: true, - isNullable: false, - defaultValue: 0, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - searchVector: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'searchVector', - type: FieldMetadataType.TS_VECTOR, - label: i18nLabel(msg`Search vector`), - description: i18nLabel(msg`Field used for full-text search`), - icon: 'IconUser', - isSystem: true, - isNullable: true, - settings: { - generatedType: 'STORED', - asExpression: getTsVectorColumnExpressionFromFields( - SEARCH_FIELDS_FOR_MESSAGE_CHANNEL, - ), - }, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - visibility: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'visibility', - type: FieldMetadataType.SELECT, - label: i18nLabel(msg`Visibility`), - description: i18nLabel(msg`Visibility`), - icon: 'IconEyeglass', - isNullable: false, - isUIReadOnly: true, - defaultValue: "'SHARE_EVERYTHING'", - options: [ - { - id: '20202020-4548-4830-b3f8-221fd082ebc0', - value: 'METADATA', - label: i18nLabel(msg`Metadata`), - position: 0, - color: 'green', - }, - { - id: '20202020-6a42-40a8-b81e-28b7e591c598', - value: 'SUBJECT', - label: i18nLabel(msg`Subject`), - position: 1, - color: 'blue', - }, - { - id: '20202020-d520-4cba-8832-5bca315b64f3', - value: 'SHARE_EVERYTHING', - label: i18nLabel(msg`Share Everything`), - position: 2, - color: 'orange', - }, - ], - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - handle: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'handle', - type: FieldMetadataType.TEXT, - label: i18nLabel(msg`Handle`), - description: i18nLabel(msg`Handle`), - icon: 'IconAt', - isNullable: true, - isUIReadOnly: true, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - type: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'type', - type: FieldMetadataType.SELECT, - label: i18nLabel(msg`Type`), - description: i18nLabel(msg`Channel Type`), - icon: 'IconMessage', - isNullable: false, - isUIReadOnly: true, - defaultValue: `'${MessageChannelType.EMAIL}'`, - options: [ - { - id: '20202020-1628-4bc0-aae1-1a46c648cf90', - value: MessageChannelType.EMAIL, - label: i18nLabel(msg`Email`), - position: 0, - color: 'green', - }, - { - id: '20202020-fb11-4da3-80fd-b291cda8deb1', - value: MessageChannelType.SMS, - label: i18nLabel(msg`SMS`), - position: 1, - color: 'blue', - }, - { - id: '20202020-7f22-4e58-aa33-9c3e2c72ab10', - value: MessageChannelType.EMAIL_GROUP, - label: i18nLabel(msg`Email group`), - position: 2, - color: 'turquoise', - }, - ], - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - isContactAutoCreationEnabled: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'isContactAutoCreationEnabled', - type: FieldMetadataType.BOOLEAN, - label: i18nLabel(msg`Is Contact Auto Creation Enabled`), - description: i18nLabel(msg`Is Contact Auto Creation Enabled`), - icon: 'IconUserCircle', - isNullable: false, - isUIReadOnly: true, - defaultValue: true, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - contactAutoCreationPolicy: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'contactAutoCreationPolicy', - type: FieldMetadataType.SELECT, - label: i18nLabel(msg`Contact auto creation policy`), - description: i18nLabel( - msg`Automatically create People records when receiving or sending emails`, - ), - icon: 'IconUserCircle', - isNullable: false, - isUIReadOnly: true, - defaultValue: "'SENT'", - options: [ - { - id: '20202020-1923-4ffd-907d-be8cc37ecee5', - value: 'SENT_AND_RECEIVED', - label: i18nLabel(msg`Sent and Received`), - position: 0, - color: 'green', - }, - { - id: '20202020-8f6a-44d8-bdbb-90cf8b919467', - value: 'SENT', - label: i18nLabel(msg`Sent`), - position: 1, - color: 'blue', - }, - { - id: '20202020-b43e-4bc4-840e-d903a69e2ffc', - value: 'NONE', - label: i18nLabel(msg`None`), - position: 2, - color: 'red', - }, - ], - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - messageFolderImportPolicy: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'messageFolderImportPolicy', - type: FieldMetadataType.SELECT, - label: i18nLabel(msg`Message folder import policy`), - description: i18nLabel(msg`Message folder import policy`), - icon: 'IconFolder', - isNullable: false, - isUIReadOnly: true, - defaultValue: "'ALL_FOLDERS'", - options: [ - { - id: '20202020-140d-4326-978c-83ca0e9a4d8f', - value: 'ALL_FOLDERS', - label: i18nLabel(msg`All folders`), - position: 0, - color: 'green', - }, - { - id: '20202020-513a-4b91-9033-5b74b404e2cb', - value: 'SELECTED_FOLDERS', - label: i18nLabel(msg`Selected folders`), - position: 1, - color: 'blue', - }, - ], - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - excludeNonProfessionalEmails: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'excludeNonProfessionalEmails', - type: FieldMetadataType.BOOLEAN, - label: i18nLabel(msg`Exclude non professional emails`), - description: i18nLabel(msg`Exclude non professional emails`), - icon: 'IconBriefcase', - isNullable: false, - isUIReadOnly: true, - defaultValue: true, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - excludeGroupEmails: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'excludeGroupEmails', - type: FieldMetadataType.BOOLEAN, - label: i18nLabel(msg`Exclude group emails`), - description: i18nLabel(msg`Exclude group emails`), - icon: 'IconUsersGroup', - isNullable: false, - isUIReadOnly: true, - defaultValue: true, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - pendingGroupEmailsAction: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'pendingGroupEmailsAction', - type: FieldMetadataType.SELECT, - label: i18nLabel(msg`Pending group emails action`), - description: i18nLabel(msg`Pending action for group emails`), - icon: 'IconUsersGroup', - isNullable: false, - isUIReadOnly: true, - defaultValue: "'NONE'", - options: [ - { - id: '20202020-2ead-4bd1-aa5d-5005c7a956b4', - value: 'GROUP_EMAILS_DELETION', - label: i18nLabel(msg`Group emails deletion`), - position: 0, - color: 'red', - }, - { - id: '20202020-155d-447d-a36e-6ecbb30fc37c', - value: 'GROUP_EMAILS_IMPORT', - label: i18nLabel(msg`Group emails import`), - position: 1, - color: 'green', - }, - { - id: '20202020-fe98-4018-9f94-f878c22b8ece', - value: 'NONE', - label: i18nLabel(msg`None`), - position: 2, - color: 'blue', - }, - ], - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - isSyncEnabled: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'isSyncEnabled', - type: FieldMetadataType.BOOLEAN, - label: i18nLabel(msg`Is Sync Enabled`), - description: i18nLabel(msg`Is Sync Enabled`), - icon: 'IconRefresh', - isNullable: false, - isUIReadOnly: true, - defaultValue: true, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - syncCursor: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'syncCursor', - type: FieldMetadataType.TEXT, - label: i18nLabel(msg`Last sync cursor`), - description: i18nLabel(msg`Last sync cursor`), - icon: 'IconHistory', - isNullable: true, - isUIReadOnly: true, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - syncedAt: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'syncedAt', - type: FieldMetadataType.DATE_TIME, - label: i18nLabel(msg`Last sync date`), - description: i18nLabel(msg`Last sync date`), - icon: 'IconHistory', - isNullable: true, - isUIReadOnly: true, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - syncStatus: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'syncStatus', - type: FieldMetadataType.SELECT, - label: i18nLabel(msg`Sync status`), - description: i18nLabel(msg`Sync status`), - icon: 'IconStatusChange', - isNullable: true, - isUIReadOnly: true, - options: [ - { - id: '20202020-046b-4bc2-b085-bd69aaa8e577', - value: 'ONGOING', - label: i18nLabel(msg`Ongoing`), - position: 1, - color: 'yellow', - }, - { - id: '20202020-09ec-4ea6-9a8a-bf48211b67e2', - value: 'NOT_SYNCED', - label: i18nLabel(msg`Not Synced`), - position: 2, - color: 'blue', - }, - { - id: '20202020-2d1b-4d74-9689-9bd28fd3c3f9', - value: 'ACTIVE', - label: i18nLabel(msg`Active`), - position: 3, - color: 'green', - }, - { - id: '20202020-0fb2-4a8b-9f9b-569144a45193', - value: 'FAILED_INSUFFICIENT_PERMISSIONS', - label: i18nLabel(msg`Failed Insufficient Permissions`), - position: 4, - color: 'red', - }, - { - id: '20202020-bde3-415a-a8ac-55ced6014364', - value: 'FAILED_UNKNOWN', - label: i18nLabel(msg`Failed Unknown`), - position: 5, - color: 'red', - }, - ], - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - syncStage: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'syncStage', - type: FieldMetadataType.SELECT, - label: i18nLabel(msg`Sync stage`), - description: i18nLabel(msg`Sync stage`), - icon: 'IconStatusChange', - isNullable: false, - isUIReadOnly: true, - defaultValue: "'PENDING_CONFIGURATION'", - options: [ - { - id: '20202020-1f62-4d79-a633-33a0e4fce9a6', - value: 'MESSAGE_LIST_FETCH_PENDING', - label: i18nLabel(msg`Messages list fetch pending`), - position: 0, - color: 'blue', - }, - { - id: '20202020-d24f-4c3d-94a6-86c42e0f51d7', - value: 'MESSAGE_LIST_FETCH_SCHEDULED', - label: i18nLabel(msg`Messages list fetch scheduled`), - position: 1, - color: 'green', - }, - { - id: '20202020-8751-408a-ae46-21a51b76be28', - value: 'MESSAGE_LIST_FETCH_ONGOING', - label: i18nLabel(msg`Messages list fetch ongoing`), - position: 2, - color: 'orange', - }, - { - id: '20202020-1cfa-4a7d-a82d-93c8e29d0671', - value: 'MESSAGES_IMPORT_PENDING', - label: i18nLabel(msg`Messages import pending`), - position: 3, - color: 'blue', - }, - { - id: '20202020-341e-4fbd-9dbf-30a70828ca69', - value: 'MESSAGES_IMPORT_SCHEDULED', - label: i18nLabel(msg`Messages import scheduled`), - position: 4, - color: 'green', - }, - { - id: '20202020-e944-4594-ab81-fdbc53a85026', - value: 'MESSAGES_IMPORT_ONGOING', - label: i18nLabel(msg`Messages import ongoing`), - position: 5, - color: 'orange', - }, - { - id: '20202020-f7c5-4756-9084-02f6a0b1a5f8', - value: 'FAILED', - label: i18nLabel(msg`Failed`), - position: 6, - color: 'red', - }, - { - id: '20202020-0ede-4c75-84f1-29c8309829ec', - value: 'PENDING_CONFIGURATION', - label: i18nLabel(msg`Pending configuration`), - position: 7, - color: 'gray', - }, - ], - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - syncStageStartedAt: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'syncStageStartedAt', - type: FieldMetadataType.DATE_TIME, - label: i18nLabel(msg`Sync stage started at`), - description: i18nLabel(msg`Sync stage started at`), - icon: 'IconHistory', - isNullable: true, - isUIReadOnly: true, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - throttleFailureCount: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'throttleFailureCount', - type: FieldMetadataType.NUMBER, - label: i18nLabel(msg`Throttle Failure Count`), - description: i18nLabel(msg`Throttle Failure Count`), - icon: 'IconX', - isNullable: false, - isUIReadOnly: true, - defaultValue: 0, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - throttleRetryAfter: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'throttleRetryAfter', - type: FieldMetadataType.DATE_TIME, - label: i18nLabel(msg`Throttle Retry After`), - description: i18nLabel(msg`Throttle Retry After`), - icon: 'IconClock', - isNullable: true, - isUIReadOnly: true, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), -}); diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-folder-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-folder-standard-flat-field-metadata.util.ts deleted file mode 100644 index 1e3eeb8922..0000000000 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-folder-standard-flat-field-metadata.util.ts +++ /dev/null @@ -1,347 +0,0 @@ -import { msg } from '@lingui/core/macro'; -import { i18nLabel } from 'src/engine/workspace-manager/twenty-standard-application/utils/i18n-label.util'; -import { DateDisplayFormat, FieldMetadataType } from 'twenty-shared/types'; - -import { type FlatFieldMetadata } from 'src/engine/metadata-modules/flat-field-metadata/types/flat-field-metadata.type'; -import { type AllStandardObjectFieldName } from 'src/engine/workspace-manager/twenty-standard-application/types/all-standard-object-field-name.type'; -import { - type CreateStandardFieldArgs, - createStandardFieldFlatMetadata, -} from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/create-standard-field-flat-metadata.util'; -import { getTsVectorColumnExpressionFromFields } from 'src/engine/workspace-manager/utils/get-ts-vector-column-expression.util'; -import { SEARCH_FIELDS_FOR_MESSAGE_FOLDER } from 'src/modules/messaging/common/standard-objects/message-folder.workspace-entity'; - -export const buildMessageFolderStandardFlatFieldMetadatas = ({ - now, - objectName, - workspaceId, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, -}: Omit< - CreateStandardFieldArgs<'messageFolder', FieldMetadataType>, - 'context' ->): Record, FlatFieldMetadata> => ({ - id: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'id', - type: FieldMetadataType.UUID, - label: i18nLabel(msg`Id`), - description: i18nLabel(msg`Id`), - icon: 'Icon123', - isSystem: true, - isNullable: false, - isUIReadOnly: true, - defaultValue: 'uuid', - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - createdAt: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'createdAt', - type: FieldMetadataType.DATE_TIME, - label: i18nLabel(msg`Creation date`), - description: i18nLabel(msg`Creation date`), - icon: 'IconCalendar', - isSystem: true, - isNullable: false, - isUIReadOnly: true, - defaultValue: 'now', - settings: { displayFormat: DateDisplayFormat.RELATIVE }, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - updatedAt: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'updatedAt', - type: FieldMetadataType.DATE_TIME, - label: i18nLabel(msg`Last update`), - description: i18nLabel(msg`Last time the record was changed`), - icon: 'IconCalendarClock', - isSystem: true, - isNullable: false, - isUIReadOnly: true, - defaultValue: 'now', - settings: { displayFormat: DateDisplayFormat.RELATIVE }, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - deletedAt: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'deletedAt', - type: FieldMetadataType.DATE_TIME, - label: i18nLabel(msg`Deleted at`), - description: i18nLabel(msg`Date when the record was deleted`), - icon: 'IconCalendarMinus', - isSystem: true, - isNullable: true, - isUIReadOnly: true, - settings: { displayFormat: DateDisplayFormat.RELATIVE }, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - createdBy: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'createdBy', - type: FieldMetadataType.ACTOR, - label: i18nLabel(msg`Created by`), - description: i18nLabel(msg`The creator of the record`), - icon: 'IconCreativeCommonsSa', - isSystem: true, - isUIReadOnly: true, - isNullable: false, - defaultValue: { - source: "'MANUAL'", - name: "'System'", - workspaceMemberId: null, - }, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - updatedBy: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'updatedBy', - type: FieldMetadataType.ACTOR, - label: i18nLabel(msg`Updated by`), - description: i18nLabel( - msg`The workspace member who last updated the record`, - ), - icon: 'IconUserCircle', - isSystem: true, - isUIReadOnly: true, - isNullable: false, - defaultValue: { - source: "'MANUAL'", - name: "'System'", - workspaceMemberId: null, - }, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - position: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'position', - type: FieldMetadataType.POSITION, - label: i18nLabel(msg`Position`), - description: i18nLabel(msg`Message Folder record position`), - icon: 'IconHierarchy2', - isSystem: true, - isNullable: false, - defaultValue: 0, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - searchVector: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'searchVector', - type: FieldMetadataType.TS_VECTOR, - label: i18nLabel(msg`Search vector`), - description: i18nLabel(msg`Field used for full-text search`), - icon: 'IconUser', - isSystem: true, - isNullable: true, - settings: { - generatedType: 'STORED', - asExpression: getTsVectorColumnExpressionFromFields( - SEARCH_FIELDS_FOR_MESSAGE_FOLDER, - ), - }, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - name: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'name', - type: FieldMetadataType.TEXT, - label: i18nLabel(msg`Name`), - description: i18nLabel(msg`Folder name`), - icon: 'IconFolder', - isNullable: true, - isUIReadOnly: true, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - syncCursor: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'syncCursor', - type: FieldMetadataType.TEXT, - label: i18nLabel(msg`Sync Cursor`), - description: i18nLabel(msg`Sync Cursor`), - icon: 'IconHash', - isNullable: true, - isUIReadOnly: true, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - isSentFolder: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'isSentFolder', - type: FieldMetadataType.BOOLEAN, - label: i18nLabel(msg`Is Sent Folder`), - description: i18nLabel(msg`Is Sent Folder`), - icon: 'IconCheck', - isNullable: false, - isUIReadOnly: true, - defaultValue: false, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - isSynced: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'isSynced', - type: FieldMetadataType.BOOLEAN, - label: i18nLabel(msg`Is Synced`), - description: i18nLabel(msg`Is Synced`), - icon: 'IconCheck', - isNullable: false, - isUIReadOnly: true, - defaultValue: false, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - parentFolderId: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'parentFolderId', - type: FieldMetadataType.TEXT, - label: i18nLabel(msg`Parent Folder ID`), - description: i18nLabel(msg`Parent Folder ID`), - icon: 'IconFolder', - isNullable: true, - isUIReadOnly: true, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - externalId: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'externalId', - type: FieldMetadataType.TEXT, - label: i18nLabel(msg`External ID`), - description: i18nLabel(msg`External ID`), - icon: 'IconHash', - isNullable: true, - isUIReadOnly: true, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - pendingSyncAction: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'pendingSyncAction', - type: FieldMetadataType.SELECT, - label: i18nLabel(msg`Pending Sync Action`), - description: i18nLabel(msg`Pending action for folder sync`), - icon: 'IconReload', - isNullable: false, - isUIReadOnly: true, - defaultValue: "'NONE'", - options: [ - { - id: '20202020-dc59-4dd3-92fe-f41c6491a588', - value: 'FOLDER_DELETION', - label: i18nLabel(msg`Folder deletion`), - position: 0, - color: 'red', - }, - { - id: '20202020-aa29-41d3-872b-142174fe6595', - value: 'NONE', - label: i18nLabel(msg`None`), - position: 1, - color: 'blue', - }, - ], - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), - messageChannelId: createStandardFieldFlatMetadata({ - objectName, - workspaceId, - context: { - fieldName: 'messageChannelId', - type: FieldMetadataType.UUID, - label: i18nLabel(msg`Message Channel`), - description: i18nLabel(msg`Message Channel`), - icon: 'IconMessage', - isNullable: false, - isUIReadOnly: true, - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), -}); diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/build-standard-flat-index-metadata-maps.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/build-standard-flat-index-metadata-maps.util.ts index 7e16e351a8..6ddd61865c 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/build-standard-flat-index-metadata-maps.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/build-standard-flat-index-metadata-maps.util.ts @@ -11,7 +11,6 @@ import { buildCompanyStandardFlatIndexMetadatas } from 'src/engine/workspace-man import { buildDashboardStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-dashboard-standard-flat-index-metadata.util'; import { buildMessageChannelMessageAssociationMessageFolderStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-message-channel-message-association-message-folder-standard-flat-index-metadata.util'; import { buildMessageChannelMessageAssociationStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-message-channel-message-association-standard-flat-index-metadata.util'; -import { buildMessageFolderStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-message-folder-standard-flat-index-metadata.util'; import { buildMessageParticipantStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-message-participant-standard-flat-index-metadata.util'; import { buildMessageStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-message-standard-flat-index-metadata.util'; import { buildNoteStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-note-standard-flat-index-metadata.util'; @@ -46,7 +45,6 @@ const STANDARD_FLAT_INDEX_METADATA_BUILDERS_BY_OBJECT_NAME = { buildMessageChannelMessageAssociationStandardFlatIndexMetadatas, messageChannelMessageAssociationMessageFolder: buildMessageChannelMessageAssociationMessageFolderStandardFlatIndexMetadatas, - messageFolder: buildMessageFolderStandardFlatIndexMetadatas, messageParticipant: buildMessageParticipantStandardFlatIndexMetadatas, note: buildNoteStandardFlatIndexMetadatas, noteTarget: buildNoteTargetStandardFlatIndexMetadatas, diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/compute-message-folder-standard-flat-index-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/compute-message-folder-standard-flat-index-metadata.util.ts deleted file mode 100644 index 53116dd88d..0000000000 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/compute-message-folder-standard-flat-index-metadata.util.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { type FlatIndexMetadata } from 'src/engine/metadata-modules/flat-index-metadata/types/flat-index-metadata.type'; -import { type AllStandardObjectIndexName } from 'src/engine/workspace-manager/twenty-standard-application/types/all-standard-object-index-name.type'; -import { - type CreateStandardIndexArgs, - createStandardIndexFlatMetadata, -} from 'src/engine/workspace-manager/twenty-standard-application/utils/index/create-standard-index-flat-metadata.util'; - -export const buildMessageFolderStandardFlatIndexMetadatas = ({ - now, - objectName, - workspaceId, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, -}: Omit, 'context'>): Record< - AllStandardObjectIndexName<'messageFolder'>, - FlatIndexMetadata -> => ({ - messageChannelIdIndex: createStandardIndexFlatMetadata({ - objectName, - workspaceId, - context: { - indexName: 'messageChannelIdIndex', - relatedFieldNames: ['messageChannelId'], - }, - standardObjectMetadataRelatedEntityIds, - dependencyFlatEntityMaps, - twentyStandardApplicationId, - now, - }), -}); diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/object-metadata/create-standard-flat-object-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/object-metadata/create-standard-flat-object-metadata.util.ts index f1e7604e6a..ef1e04f8a5 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/object-metadata/create-standard-flat-object-metadata.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/object-metadata/create-standard-flat-object-metadata.util.ts @@ -93,37 +93,6 @@ export const STANDARD_FLAT_OBJECT_METADATA_BUILDERS_BY_OBJECT_NAME = { twentyStandardApplicationId, now, }), - calendarChannel: ({ - now, - workspaceId, - standardObjectMetadataRelatedEntityIds, - twentyStandardApplicationId, - dependencyFlatEntityMaps, - }: Omit< - CreateStandardObjectArgs<'calendarChannel'>, - 'context' | 'objectName' - >) => - createStandardObjectFlatMetadata({ - objectName: 'calendarChannel', - dependencyFlatEntityMaps, - context: { - universalIdentifier: - STANDARD_OBJECTS.calendarChannel.universalIdentifier, - nameSingular: 'calendarChannel', - namePlural: 'calendarChannels', - labelSingular: i18nLabel(msg`Calendar Channel`), - labelPlural: i18nLabel(msg`Calendar Channels`), - description: i18nLabel(msg`Calendar Channels`), - icon: 'IconCalendar', - isSystem: true, - isAuditLogged: false, - labelIdentifierFieldMetadataName: 'handle', - }, - workspaceId, - standardObjectMetadataRelatedEntityIds, - twentyStandardApplicationId, - now, - }), calendarEventParticipant: ({ now, workspaceId, @@ -271,67 +240,6 @@ export const STANDARD_FLAT_OBJECT_METADATA_BUILDERS_BY_OBJECT_NAME = { twentyStandardApplicationId, now, }), - messageChannel: ({ - now, - workspaceId, - standardObjectMetadataRelatedEntityIds, - twentyStandardApplicationId, - dependencyFlatEntityMaps, - }: Omit< - CreateStandardObjectArgs<'messageChannel'>, - 'context' | 'objectName' - >) => - createStandardObjectFlatMetadata({ - objectName: 'messageChannel', - dependencyFlatEntityMaps, - context: { - universalIdentifier: - STANDARD_OBJECTS.messageChannel.universalIdentifier, - nameSingular: 'messageChannel', - namePlural: 'messageChannels', - labelSingular: i18nLabel(msg`Message Channel`), - labelPlural: i18nLabel(msg`Message Channels`), - description: i18nLabel(msg`Message Channels`), - icon: 'IconMessage', - isSystem: true, - isAuditLogged: false, - labelIdentifierFieldMetadataName: 'handle', - }, - workspaceId, - standardObjectMetadataRelatedEntityIds, - twentyStandardApplicationId, - now, - }), - messageFolder: ({ - now, - workspaceId, - standardObjectMetadataRelatedEntityIds, - twentyStandardApplicationId, - dependencyFlatEntityMaps, - }: Omit< - CreateStandardObjectArgs<'messageFolder'>, - 'context' | 'objectName' - >) => - createStandardObjectFlatMetadata({ - objectName: 'messageFolder', - dependencyFlatEntityMaps, - context: { - universalIdentifier: STANDARD_OBJECTS.messageFolder.universalIdentifier, - nameSingular: 'messageFolder', - namePlural: 'messageFolders', - labelSingular: i18nLabel(msg`Message Folder`), - labelPlural: i18nLabel(msg`Message Folders`), - description: i18nLabel(msg`Message Folders`), - icon: 'IconFolder', - isSystem: true, - isAuditLogged: false, - labelIdentifierFieldMetadataName: 'id', - }, - workspaceId, - standardObjectMetadataRelatedEntityIds, - twentyStandardApplicationId, - now, - }), messageChannelMessageAssociationMessageFolder: ({ now, workspaceId, diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/index.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/index.ts index b5292a58c6..66188acbbc 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/index.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/index.ts @@ -1,13 +1,10 @@ export { STANDARD_BLOCKLIST_PAGE_LAYOUT_CONFIG } from './standard-blocklist-page-layout.config'; export { STANDARD_CALENDAR_CHANNEL_EVENT_ASSOCIATION_PAGE_LAYOUT_CONFIG } from './standard-calendar-channel-event-association-page-layout.config'; -export { STANDARD_CALENDAR_CHANNEL_PAGE_LAYOUT_CONFIG } from './standard-calendar-channel-page-layout.config'; export { STANDARD_CALENDAR_EVENT_PARTICIPANT_PAGE_LAYOUT_CONFIG } from './standard-calendar-event-participant-page-layout.config'; export { STANDARD_COMPANY_PAGE_LAYOUT_CONFIG } from './standard-company-page-layout.config'; export { STANDARD_DASHBOARD_PAGE_LAYOUT_CONFIG } from './standard-dashboard-page-layout.config'; export { STANDARD_MESSAGE_CHANNEL_MESSAGE_ASSOCIATION_MESSAGE_FOLDER_PAGE_LAYOUT_CONFIG } from './standard-message-channel-message-association-message-folder-page-layout.config'; export { STANDARD_MESSAGE_CHANNEL_MESSAGE_ASSOCIATION_PAGE_LAYOUT_CONFIG } from './standard-message-channel-message-association-page-layout.config'; -export { STANDARD_MESSAGE_CHANNEL_PAGE_LAYOUT_CONFIG } from './standard-message-channel-page-layout.config'; -export { STANDARD_MESSAGE_FOLDER_PAGE_LAYOUT_CONFIG } from './standard-message-folder-page-layout.config'; export { STANDARD_MESSAGE_PARTICIPANT_PAGE_LAYOUT_CONFIG } from './standard-message-participant-page-layout.config'; export { STANDARD_MESSAGE_THREAD_PAGE_LAYOUT_CONFIG } from './standard-message-thread-page-layout.config'; export { STANDARD_NOTE_PAGE_LAYOUT_CONFIG } from './standard-note-page-layout.config'; diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-calendar-channel-page-layout.config.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-calendar-channel-page-layout.config.ts deleted file mode 100644 index df5477d71f..0000000000 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-calendar-channel-page-layout.config.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { STANDARD_OBJECTS } from 'twenty-shared/metadata'; - -import { PageLayoutType } from 'src/engine/metadata-modules/page-layout/enums/page-layout-type.enum'; -import { - TAB_PROPS, - WIDGET_PROPS, -} from 'src/engine/workspace-manager/twenty-standard-application/constants/standard-page-layout-tabs.template'; -import { - type StandardPageLayoutConfig, - type StandardPageLayoutTabConfig, -} from 'src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-page-layout-config.type'; - -const CALENDAR_CHANNEL_PAGE_TABS = { - home: { - universalIdentifier: '20202020-ab0a-400a-800a-ca1c4a0a0a01', - ...TAB_PROPS.home, - widgets: { - fields: { - universalIdentifier: '20202020-ac0a-400a-800a-ca1c4a0a0a11', - ...WIDGET_PROPS.fields, - }, - }, - }, - timeline: { - universalIdentifier: '20202020-ab0a-400a-800a-ca1c4a0a0a02', - ...TAB_PROPS.timeline, - widgets: { - timeline: { - universalIdentifier: '20202020-ac0a-400a-800a-ca1c4a0a0a21', - ...WIDGET_PROPS.timeline, - }, - }, - }, -} as const satisfies Record; - -export const STANDARD_CALENDAR_CHANNEL_PAGE_LAYOUT_CONFIG = { - name: 'Default Calendar Channel Layout', - type: PageLayoutType.RECORD_PAGE, - objectUniversalIdentifier: - STANDARD_OBJECTS.calendarChannel.universalIdentifier, - universalIdentifier: '20202020-a10a-400a-800a-ca1c4a0a0001', - defaultTabUniversalIdentifier: null, - tabs: CALENDAR_CHANNEL_PAGE_TABS, -} as const satisfies StandardPageLayoutConfig; diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-message-channel-page-layout.config.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-message-channel-page-layout.config.ts deleted file mode 100644 index 50b4d0f47a..0000000000 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-message-channel-page-layout.config.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { STANDARD_OBJECTS } from 'twenty-shared/metadata'; - -import { PageLayoutType } from 'src/engine/metadata-modules/page-layout/enums/page-layout-type.enum'; -import { - TAB_PROPS, - WIDGET_PROPS, -} from 'src/engine/workspace-manager/twenty-standard-application/constants/standard-page-layout-tabs.template'; -import { - type StandardPageLayoutConfig, - type StandardPageLayoutTabConfig, -} from 'src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-page-layout-config.type'; - -const MESSAGE_CHANNEL_PAGE_TABS = { - home: { - universalIdentifier: '20202020-ab10-4010-8010-a5c4a1101001', - ...TAB_PROPS.home, - widgets: { - fields: { - universalIdentifier: '20202020-ac10-4010-8010-a5c4a1101011', - ...WIDGET_PROPS.fields, - }, - }, - }, - timeline: { - universalIdentifier: '20202020-ab10-4010-8010-a5c4a1101002', - ...TAB_PROPS.timeline, - widgets: { - timeline: { - universalIdentifier: '20202020-ac10-4010-8010-a5c4a1101021', - ...WIDGET_PROPS.timeline, - }, - }, - }, -} as const satisfies Record; - -export const STANDARD_MESSAGE_CHANNEL_PAGE_LAYOUT_CONFIG = { - name: 'Default Message Channel Layout', - type: PageLayoutType.RECORD_PAGE, - objectUniversalIdentifier: - STANDARD_OBJECTS.messageChannel.universalIdentifier, - universalIdentifier: '20202020-a110-4010-8010-a5c4a1100001', - defaultTabUniversalIdentifier: null, - tabs: MESSAGE_CHANNEL_PAGE_TABS, -} as const satisfies StandardPageLayoutConfig; diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-message-folder-page-layout.config.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-message-folder-page-layout.config.ts deleted file mode 100644 index f289989f9e..0000000000 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-message-folder-page-layout.config.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { STANDARD_OBJECTS } from 'twenty-shared/metadata'; - -import { PageLayoutType } from 'src/engine/metadata-modules/page-layout/enums/page-layout-type.enum'; -import { - TAB_PROPS, - WIDGET_PROPS, -} from 'src/engine/workspace-manager/twenty-standard-application/constants/standard-page-layout-tabs.template'; -import { - type StandardPageLayoutConfig, - type StandardPageLayoutTabConfig, -} from 'src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-page-layout-config.type'; - -const MESSAGE_FOLDER_PAGE_TABS = { - home: { - universalIdentifier: '20202020-ab13-4013-8013-a5efd1131301', - ...TAB_PROPS.home, - widgets: { - fields: { - universalIdentifier: '20202020-ac13-4013-8013-a5efd1131311', - ...WIDGET_PROPS.fields, - }, - }, - }, - timeline: { - universalIdentifier: '20202020-ab13-4013-8013-a5efd1131302', - ...TAB_PROPS.timeline, - widgets: { - timeline: { - universalIdentifier: '20202020-ac13-4013-8013-a5efd1131321', - ...WIDGET_PROPS.timeline, - }, - }, - }, -} as const satisfies Record; - -export const STANDARD_MESSAGE_FOLDER_PAGE_LAYOUT_CONFIG = { - name: 'Default Message Folder Layout', - type: PageLayoutType.RECORD_PAGE, - objectUniversalIdentifier: STANDARD_OBJECTS.messageFolder.universalIdentifier, - universalIdentifier: '20202020-a113-4013-8013-a5efd1130001', - defaultTabUniversalIdentifier: null, - tabs: MESSAGE_FOLDER_PAGE_TABS, -} as const satisfies StandardPageLayoutConfig; diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-widget/build-standard-flat-page-layout-widget-metadata-maps.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-widget/build-standard-flat-page-layout-widget-metadata-maps.util.ts index 0a3705cda2..3379a86e79 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-widget/build-standard-flat-page-layout-widget-metadata-maps.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-widget/build-standard-flat-page-layout-widget-metadata-maps.util.ts @@ -66,17 +66,14 @@ const RECORD_PAGE_FIELDS_VIEW_NAME_BY_OBJECT: Partial< Record > = { blocklist: 'blocklistRecordPageFields', - calendarChannel: 'calendarChannelRecordPageFields', calendarChannelEventAssociation: 'calendarChannelEventAssociationRecordPageFields', calendarEventParticipant: 'calendarEventParticipantRecordPageFields', company: 'companyRecordPageFields', - messageChannel: 'messageChannelRecordPageFields', messageChannelMessageAssociation: 'messageChannelMessageAssociationRecordPageFields', messageChannelMessageAssociationMessageFolder: 'messageChannelMessageAssociationMessageFolderRecordPageFields', - messageFolder: 'messageFolderRecordPageFields', messageParticipant: 'messageParticipantRecordPageFields', note: 'noteRecordPageFields', opportunity: 'opportunityRecordPageFields', diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/build-standard-flat-view-field-group-metadata-maps.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/build-standard-flat-view-field-group-metadata-maps.util.ts index 67b768196a..7d1b2652fa 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/build-standard-flat-view-field-group-metadata-maps.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/build-standard-flat-view-field-group-metadata-maps.util.ts @@ -4,14 +4,11 @@ import { addFlatEntityToFlatEntityMapsOrThrow } from 'src/engine/metadata-module import { type FlatViewFieldGroup } from 'src/engine/metadata-modules/flat-view-field-group/types/flat-view-field-group.type'; import { type AllStandardObjectName } from 'src/engine/workspace-manager/twenty-standard-application/types/all-standard-object-name.type'; import { computeStandardBlocklistViewFieldGroups } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-blocklist-view-field-groups.util'; -import { computeStandardCalendarChannelViewFieldGroups } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-calendar-channel-view-field-groups.util'; import { computeStandardCalendarChannelEventAssociationViewFieldGroups } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-calendar-channel-event-association-view-field-groups.util'; import { computeStandardCalendarEventParticipantViewFieldGroups } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-calendar-event-participant-view-field-groups.util'; import { computeStandardCompanyViewFieldGroups } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-company-view-field-groups.util'; -import { computeStandardMessageChannelViewFieldGroups } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-message-channel-view-field-groups.util'; import { computeStandardMessageChannelMessageAssociationViewFieldGroups } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-message-channel-message-association-view-field-groups.util'; import { computeStandardMessageChannelMessageAssociationMessageFolderViewFieldGroups } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-message-channel-message-association-message-folder-view-field-groups.util'; -import { computeStandardMessageFolderViewFieldGroups } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-message-folder-view-field-groups.util'; import { computeStandardMessageParticipantViewFieldGroups } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-message-participant-view-field-groups.util'; import { computeStandardNoteViewFieldGroups } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-note-view-field-groups.util'; import { computeStandardOpportunityViewFieldGroups } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-opportunity-view-field-groups.util'; @@ -28,18 +25,15 @@ type StandardViewFieldGroupBuilder

= ( const STANDARD_FLAT_VIEW_FIELD_GROUP_METADATA_BUILDERS_BY_OBJECT_NAME = { blocklist: computeStandardBlocklistViewFieldGroups, - calendarChannel: computeStandardCalendarChannelViewFieldGroups, calendarChannelEventAssociation: computeStandardCalendarChannelEventAssociationViewFieldGroups, calendarEventParticipant: computeStandardCalendarEventParticipantViewFieldGroups, company: computeStandardCompanyViewFieldGroups, - messageChannel: computeStandardMessageChannelViewFieldGroups, messageChannelMessageAssociation: computeStandardMessageChannelMessageAssociationViewFieldGroups, messageChannelMessageAssociationMessageFolder: computeStandardMessageChannelMessageAssociationMessageFolderViewFieldGroups, - messageFolder: computeStandardMessageFolderViewFieldGroups, messageParticipant: computeStandardMessageParticipantViewFieldGroups, note: computeStandardNoteViewFieldGroups, opportunity: computeStandardOpportunityViewFieldGroups, diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-calendar-channel-view-field-groups.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-calendar-channel-view-field-groups.util.ts deleted file mode 100644 index fe83f5ea5c..0000000000 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-calendar-channel-view-field-groups.util.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { type FlatViewFieldGroup } from 'src/engine/metadata-modules/flat-view-field-group/types/flat-view-field-group.type'; -import { - createStandardViewFieldGroupFlatMetadata, - type CreateStandardViewFieldGroupArgs, -} from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/create-standard-view-field-group-flat-metadata.util'; - -export const computeStandardCalendarChannelViewFieldGroups = ( - args: Omit, 'context'>, -): Record => { - return { - calendarChannelRecordPageFieldsGeneral: - createStandardViewFieldGroupFlatMetadata({ - ...args, - objectName: 'calendarChannel', - context: { - viewName: 'calendarChannelRecordPageFields', - viewFieldGroupName: 'general', - name: 'General', - position: 0, - isVisible: true, - }, - }), - calendarChannelRecordPageFieldsSystem: - createStandardViewFieldGroupFlatMetadata({ - ...args, - objectName: 'calendarChannel', - context: { - viewName: 'calendarChannelRecordPageFields', - viewFieldGroupName: 'system', - name: 'System', - position: 1, - isVisible: true, - }, - }), - }; -}; diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-message-channel-view-field-groups.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-message-channel-view-field-groups.util.ts deleted file mode 100644 index 4ee77fee67..0000000000 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-message-channel-view-field-groups.util.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { type FlatViewFieldGroup } from 'src/engine/metadata-modules/flat-view-field-group/types/flat-view-field-group.type'; -import { - createStandardViewFieldGroupFlatMetadata, - type CreateStandardViewFieldGroupArgs, -} from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/create-standard-view-field-group-flat-metadata.util'; - -export const computeStandardMessageChannelViewFieldGroups = ( - args: Omit, 'context'>, -): Record => { - return { - messageChannelRecordPageFieldsGeneral: - createStandardViewFieldGroupFlatMetadata({ - ...args, - objectName: 'messageChannel', - context: { - viewName: 'messageChannelRecordPageFields', - viewFieldGroupName: 'general', - name: 'General', - position: 0, - isVisible: true, - }, - }), - messageChannelRecordPageFieldsSystem: - createStandardViewFieldGroupFlatMetadata({ - ...args, - objectName: 'messageChannel', - context: { - viewName: 'messageChannelRecordPageFields', - viewFieldGroupName: 'system', - name: 'System', - position: 1, - isVisible: true, - }, - }), - }; -}; diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-message-folder-view-field-groups.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-message-folder-view-field-groups.util.ts deleted file mode 100644 index fc4d12aa7a..0000000000 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-message-folder-view-field-groups.util.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { type FlatViewFieldGroup } from 'src/engine/metadata-modules/flat-view-field-group/types/flat-view-field-group.type'; -import { - createStandardViewFieldGroupFlatMetadata, - type CreateStandardViewFieldGroupArgs, -} from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/create-standard-view-field-group-flat-metadata.util'; - -export const computeStandardMessageFolderViewFieldGroups = ( - args: Omit, 'context'>, -): Record => { - return { - messageFolderRecordPageFieldsGeneral: - createStandardViewFieldGroupFlatMetadata({ - ...args, - objectName: 'messageFolder', - context: { - viewName: 'messageFolderRecordPageFields', - viewFieldGroupName: 'general', - name: 'General', - position: 0, - isVisible: true, - }, - }), - messageFolderRecordPageFieldsSystem: - createStandardViewFieldGroupFlatMetadata({ - ...args, - objectName: 'messageFolder', - context: { - viewName: 'messageFolderRecordPageFields', - viewFieldGroupName: 'system', - name: 'System', - position: 1, - isVisible: true, - }, - }), - }; -}; diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/build-standard-flat-view-field-metadata-maps.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/build-standard-flat-view-field-metadata-maps.util.ts index 2eb4233e97..6376a9af8b 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/build-standard-flat-view-field-metadata-maps.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/build-standard-flat-view-field-metadata-maps.util.ts @@ -6,15 +6,12 @@ import { type AllStandardObjectName } from 'src/engine/workspace-manager/twenty- import { computeStandardAttachmentViewFields } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-attachment-view-fields.util'; import { computeStandardBlocklistViewFields } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-blocklist-view-fields.util'; import { computeStandardCalendarChannelEventAssociationViewFields } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-calendar-channel-event-association-view-fields.util'; -import { computeStandardCalendarChannelViewFields } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-calendar-channel-view-fields.util'; import { computeStandardCalendarEventParticipantViewFields } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-calendar-event-participant-view-fields.util'; import { computeStandardCalendarEventViewFields } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-calendar-event-view-fields.util'; import { computeStandardCompanyViewFields } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-company-view-fields.util'; import { computeStandardDashboardViewFields } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-dashboard-view-fields.util'; import { computeStandardMessageChannelMessageAssociationMessageFolderViewFields } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-channel-message-association-message-folder-view-fields.util'; import { computeStandardMessageChannelMessageAssociationViewFields } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-channel-message-association-view-fields.util'; -import { computeStandardMessageChannelViewFields } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-channel-view-fields.util'; -import { computeStandardMessageFolderViewFields } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-folder-view-fields.util'; import { computeStandardMessageParticipantViewFields } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-participant-view-fields.util'; import { computeStandardMessageThreadViewFields } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-thread-view-fields.util'; import { computeStandardMessageViewFields } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-view-fields.util'; @@ -39,7 +36,6 @@ type StandardViewFieldBuilder

= ( const STANDARD_FLAT_VIEW_FIELD_METADATA_BUILDERS_BY_OBJECT_NAME = { attachment: computeStandardAttachmentViewFields, blocklist: computeStandardBlocklistViewFields, - calendarChannel: computeStandardCalendarChannelViewFields, calendarChannelEventAssociation: computeStandardCalendarChannelEventAssociationViewFields, calendarEvent: computeStandardCalendarEventViewFields, @@ -47,12 +43,10 @@ const STANDARD_FLAT_VIEW_FIELD_METADATA_BUILDERS_BY_OBJECT_NAME = { company: computeStandardCompanyViewFields, dashboard: computeStandardDashboardViewFields, message: computeStandardMessageViewFields, - messageChannel: computeStandardMessageChannelViewFields, messageChannelMessageAssociation: computeStandardMessageChannelMessageAssociationViewFields, messageChannelMessageAssociationMessageFolder: computeStandardMessageChannelMessageAssociationMessageFolderViewFields, - messageFolder: computeStandardMessageFolderViewFields, messageParticipant: computeStandardMessageParticipantViewFields, messageThread: computeStandardMessageThreadViewFields, note: computeStandardNoteViewFields, diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-calendar-channel-view-fields.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-calendar-channel-view-fields.util.ts deleted file mode 100644 index 4c5c25edd0..0000000000 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-calendar-channel-view-fields.util.ts +++ /dev/null @@ -1,143 +0,0 @@ -import { type FlatViewField } from 'src/engine/metadata-modules/flat-view-field/types/flat-view-field.type'; -import { - createStandardViewFieldFlatMetadata, - type CreateStandardViewFieldArgs, -} from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/create-standard-view-field-flat-metadata.util'; - -export const computeStandardCalendarChannelViewFields = ( - args: Omit, 'context'>, -): Record => { - return { - allCalendarChannelsHandle: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'calendarChannel', - context: { - viewName: 'allCalendarChannels', - viewFieldName: 'handle', - fieldName: 'handle', - position: 0, - isVisible: true, - size: 150, - }, - }), - allCalendarChannelsVisibility: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'calendarChannel', - context: { - viewName: 'allCalendarChannels', - viewFieldName: 'visibility', - fieldName: 'visibility', - position: 2, - isVisible: true, - size: 150, - }, - }), - allCalendarChannelsIsSyncEnabled: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'calendarChannel', - context: { - viewName: 'allCalendarChannels', - viewFieldName: 'isSyncEnabled', - fieldName: 'isSyncEnabled', - position: 3, - isVisible: true, - size: 150, - }, - }), - allCalendarChannelsSyncStatus: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'calendarChannel', - context: { - viewName: 'allCalendarChannels', - viewFieldName: 'syncStatus', - fieldName: 'syncStatus', - position: 4, - isVisible: true, - size: 150, - }, - }), - allCalendarChannelsCreatedAt: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'calendarChannel', - context: { - viewName: 'allCalendarChannels', - viewFieldName: 'createdAt', - fieldName: 'createdAt', - position: 5, - isVisible: true, - size: 150, - }, - }), - - calendarChannelRecordPageFieldsVisibility: - createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'calendarChannel', - context: { - viewName: 'calendarChannelRecordPageFields', - viewFieldName: 'visibility', - fieldName: 'visibility', - position: 2, - isVisible: true, - size: 150, - viewFieldGroupName: 'general', - }, - }), - calendarChannelRecordPageFieldsIsSyncEnabled: - createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'calendarChannel', - context: { - viewName: 'calendarChannelRecordPageFields', - viewFieldName: 'isSyncEnabled', - fieldName: 'isSyncEnabled', - position: 3, - isVisible: true, - size: 150, - viewFieldGroupName: 'general', - }, - }), - calendarChannelRecordPageFieldsSyncStatus: - createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'calendarChannel', - context: { - viewName: 'calendarChannelRecordPageFields', - viewFieldName: 'syncStatus', - fieldName: 'syncStatus', - position: 4, - isVisible: true, - size: 150, - viewFieldGroupName: 'general', - }, - }), - calendarChannelRecordPageFieldsCreatedAt: - createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'calendarChannel', - context: { - viewName: 'calendarChannelRecordPageFields', - viewFieldName: 'createdAt', - fieldName: 'createdAt', - position: 0, - isVisible: true, - size: 150, - viewFieldGroupName: 'system', - }, - }), - calendarChannelRecordPageFieldsCreatedBy: - createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'calendarChannel', - context: { - viewName: 'calendarChannelRecordPageFields', - viewFieldName: 'createdBy', - fieldName: 'createdBy', - position: 1, - isVisible: true, - size: 150, - viewFieldGroupName: 'system', - }, - }), - }; -}; diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-channel-view-fields.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-channel-view-fields.util.ts deleted file mode 100644 index 00b8f1fc6a..0000000000 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-channel-view-fields.util.ts +++ /dev/null @@ -1,168 +0,0 @@ -import { type FlatViewField } from 'src/engine/metadata-modules/flat-view-field/types/flat-view-field.type'; -import { - createStandardViewFieldFlatMetadata, - type CreateStandardViewFieldArgs, -} from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/create-standard-view-field-flat-metadata.util'; - -export const computeStandardMessageChannelViewFields = ( - args: Omit, 'context'>, -): Record => { - return { - allMessageChannelsHandle: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'messageChannel', - context: { - viewName: 'allMessageChannels', - viewFieldName: 'handle', - fieldName: 'handle', - position: 0, - isVisible: true, - size: 150, - }, - }), - allMessageChannelsType: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'messageChannel', - context: { - viewName: 'allMessageChannels', - viewFieldName: 'type', - fieldName: 'type', - position: 2, - isVisible: true, - size: 150, - }, - }), - allMessageChannelsVisibility: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'messageChannel', - context: { - viewName: 'allMessageChannels', - viewFieldName: 'visibility', - fieldName: 'visibility', - position: 3, - isVisible: true, - size: 150, - }, - }), - allMessageChannelsIsSyncEnabled: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'messageChannel', - context: { - viewName: 'allMessageChannels', - viewFieldName: 'isSyncEnabled', - fieldName: 'isSyncEnabled', - position: 4, - isVisible: true, - size: 150, - }, - }), - allMessageChannelsSyncStatus: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'messageChannel', - context: { - viewName: 'allMessageChannels', - viewFieldName: 'syncStatus', - fieldName: 'syncStatus', - position: 5, - isVisible: true, - size: 150, - }, - }), - allMessageChannelsCreatedAt: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'messageChannel', - context: { - viewName: 'allMessageChannels', - viewFieldName: 'createdAt', - fieldName: 'createdAt', - position: 6, - isVisible: true, - size: 150, - }, - }), - - messageChannelRecordPageFieldsType: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'messageChannel', - context: { - viewName: 'messageChannelRecordPageFields', - viewFieldName: 'type', - fieldName: 'type', - position: 2, - isVisible: true, - size: 150, - viewFieldGroupName: 'general', - }, - }), - messageChannelRecordPageFieldsVisibility: - createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'messageChannel', - context: { - viewName: 'messageChannelRecordPageFields', - viewFieldName: 'visibility', - fieldName: 'visibility', - position: 3, - isVisible: true, - size: 150, - viewFieldGroupName: 'general', - }, - }), - messageChannelRecordPageFieldsIsSyncEnabled: - createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'messageChannel', - context: { - viewName: 'messageChannelRecordPageFields', - viewFieldName: 'isSyncEnabled', - fieldName: 'isSyncEnabled', - position: 4, - isVisible: true, - size: 150, - viewFieldGroupName: 'general', - }, - }), - messageChannelRecordPageFieldsSyncStatus: - createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'messageChannel', - context: { - viewName: 'messageChannelRecordPageFields', - viewFieldName: 'syncStatus', - fieldName: 'syncStatus', - position: 5, - isVisible: true, - size: 150, - viewFieldGroupName: 'general', - }, - }), - messageChannelRecordPageFieldsCreatedAt: - createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'messageChannel', - context: { - viewName: 'messageChannelRecordPageFields', - viewFieldName: 'createdAt', - fieldName: 'createdAt', - position: 0, - isVisible: true, - size: 150, - viewFieldGroupName: 'system', - }, - }), - messageChannelRecordPageFieldsCreatedBy: - createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'messageChannel', - context: { - viewName: 'messageChannelRecordPageFields', - viewFieldName: 'createdBy', - fieldName: 'createdBy', - position: 1, - isVisible: true, - size: 150, - viewFieldGroupName: 'system', - }, - }), - }; -}; diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-folder-view-fields.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-folder-view-fields.util.ts deleted file mode 100644 index 0f2a3ab359..0000000000 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-folder-view-fields.util.ts +++ /dev/null @@ -1,144 +0,0 @@ -import { type FlatViewField } from 'src/engine/metadata-modules/flat-view-field/types/flat-view-field.type'; -import { - createStandardViewFieldFlatMetadata, - type CreateStandardViewFieldArgs, -} from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/create-standard-view-field-flat-metadata.util'; - -export const computeStandardMessageFolderViewFields = ( - args: Omit, 'context'>, -): Record => { - return { - allMessageFoldersName: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'messageFolder', - context: { - viewName: 'allMessageFolders', - viewFieldName: 'name', - fieldName: 'name', - position: 0, - isVisible: true, - size: 150, - }, - }), - allMessageFoldersMessageChannel: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'messageFolder', - context: { - viewName: 'allMessageFolders', - viewFieldName: 'messageChannelId', - fieldName: 'messageChannelId', - position: 1, - isVisible: true, - size: 150, - }, - }), - allMessageFoldersIsSentFolder: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'messageFolder', - context: { - viewName: 'allMessageFolders', - viewFieldName: 'isSentFolder', - fieldName: 'isSentFolder', - position: 2, - isVisible: true, - size: 150, - }, - }), - allMessageFoldersIsSynced: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'messageFolder', - context: { - viewName: 'allMessageFolders', - viewFieldName: 'isSynced', - fieldName: 'isSynced', - position: 3, - isVisible: true, - size: 150, - }, - }), - allMessageFoldersCreatedAt: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'messageFolder', - context: { - viewName: 'allMessageFolders', - viewFieldName: 'createdAt', - fieldName: 'createdAt', - position: 4, - isVisible: true, - size: 150, - }, - }), - - messageFolderRecordPageFieldsMessageChannel: - createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'messageFolder', - context: { - viewName: 'messageFolderRecordPageFields', - viewFieldName: 'messageChannelId', - fieldName: 'messageChannelId', - position: 1, - isVisible: true, - size: 150, - viewFieldGroupName: 'general', - }, - }), - messageFolderRecordPageFieldsIsSentFolder: - createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'messageFolder', - context: { - viewName: 'messageFolderRecordPageFields', - viewFieldName: 'isSentFolder', - fieldName: 'isSentFolder', - position: 2, - isVisible: true, - size: 150, - viewFieldGroupName: 'general', - }, - }), - messageFolderRecordPageFieldsIsSynced: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'messageFolder', - context: { - viewName: 'messageFolderRecordPageFields', - viewFieldName: 'isSynced', - fieldName: 'isSynced', - position: 3, - isVisible: true, - size: 150, - viewFieldGroupName: 'general', - }, - }), - messageFolderRecordPageFieldsCreatedAt: createStandardViewFieldFlatMetadata( - { - ...args, - objectName: 'messageFolder', - context: { - viewName: 'messageFolderRecordPageFields', - viewFieldName: 'createdAt', - fieldName: 'createdAt', - position: 0, - isVisible: true, - size: 150, - viewFieldGroupName: 'system', - }, - }, - ), - messageFolderRecordPageFieldsCreatedBy: createStandardViewFieldFlatMetadata( - { - ...args, - objectName: 'messageFolder', - context: { - viewName: 'messageFolderRecordPageFields', - viewFieldName: 'createdBy', - fieldName: 'createdBy', - position: 1, - isVisible: true, - size: 150, - viewFieldGroupName: 'system', - }, - }, - ), - }; -}; diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/build-standard-flat-view-metadata-maps.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/build-standard-flat-view-metadata-maps.util.ts index be3c4d5768..d8520c0514 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/build-standard-flat-view-metadata-maps.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/build-standard-flat-view-metadata-maps.util.ts @@ -5,7 +5,6 @@ import { type FlatView } from 'src/engine/metadata-modules/flat-view/types/flat- import { type AllStandardObjectName } from 'src/engine/workspace-manager/twenty-standard-application/types/all-standard-object-name.type'; import { computeStandardAttachmentViews } from 'src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-attachment-views.util'; import { computeStandardBlocklistViews } from 'src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-blocklist-views.util'; -import { computeStandardCalendarChannelViews } from 'src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-calendar-channel-views.util'; import { computeStandardCalendarChannelEventAssociationViews } from 'src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-calendar-channel-event-association-views.util'; import { computeStandardCalendarEventParticipantViews } from 'src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-calendar-event-participant-views.util'; import { computeStandardCalendarEventViews } from 'src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-calendar-event-views.util'; @@ -13,8 +12,6 @@ import { computeStandardCompanyViews } from 'src/engine/workspace-manager/twenty import { computeStandardDashboardViews } from 'src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-dashboard-views.util'; import { computeStandardMessageChannelMessageAssociationMessageFolderViews } from 'src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-channel-message-association-message-folder-views.util'; import { computeStandardMessageChannelMessageAssociationViews } from 'src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-channel-message-association-views.util'; -import { computeStandardMessageChannelViews } from 'src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-channel-views.util'; -import { computeStandardMessageFolderViews } from 'src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-folder-views.util'; import { computeStandardMessageParticipantViews } from 'src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-participant-views.util'; import { computeStandardMessageThreadViews } from 'src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-thread-views.util'; import { computeStandardMessageViews } from 'src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-views.util'; @@ -39,7 +36,6 @@ type StandardViewBuilder

= ( const STANDARD_FLAT_VIEW_METADATA_BUILDERS_BY_OBJECT_NAME = { attachment: computeStandardAttachmentViews, blocklist: computeStandardBlocklistViews, - calendarChannel: computeStandardCalendarChannelViews, calendarChannelEventAssociation: computeStandardCalendarChannelEventAssociationViews, calendarEvent: computeStandardCalendarEventViews, @@ -47,12 +43,10 @@ const STANDARD_FLAT_VIEW_METADATA_BUILDERS_BY_OBJECT_NAME = { company: computeStandardCompanyViews, dashboard: computeStandardDashboardViews, message: computeStandardMessageViews, - messageChannel: computeStandardMessageChannelViews, messageChannelMessageAssociation: computeStandardMessageChannelMessageAssociationViews, messageChannelMessageAssociationMessageFolder: computeStandardMessageChannelMessageAssociationMessageFolderViews, - messageFolder: computeStandardMessageFolderViews, messageParticipant: computeStandardMessageParticipantViews, messageThread: computeStandardMessageThreadViews, note: computeStandardNoteViews, diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-calendar-channel-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-calendar-channel-views.util.ts deleted file mode 100644 index d41962980c..0000000000 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-calendar-channel-views.util.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { ViewType, ViewKey } from 'twenty-shared/types'; - -import { type FlatView } from 'src/engine/metadata-modules/flat-view/types/flat-view.type'; -import { - createStandardViewFlatMetadata, - type CreateStandardViewArgs, -} from 'src/engine/workspace-manager/twenty-standard-application/utils/view/create-standard-view-flat-metadata.util'; - -export const computeStandardCalendarChannelViews = ( - args: Omit, 'context'>, -): Record => { - return { - allCalendarChannels: createStandardViewFlatMetadata({ - ...args, - objectName: 'calendarChannel', - context: { - viewName: 'allCalendarChannels', - name: 'All {objectLabelPlural}', - type: ViewType.TABLE, - key: ViewKey.INDEX, - position: 0, - icon: 'IconList', - }, - }), - calendarChannelRecordPageFields: createStandardViewFlatMetadata({ - ...args, - objectName: 'calendarChannel', - context: { - viewName: 'calendarChannelRecordPageFields', - name: 'Calendar Channel Record Page Fields', - type: ViewType.FIELDS_WIDGET, - key: null, - position: 0, - icon: 'IconList', - }, - }), - }; -}; diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-channel-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-channel-views.util.ts deleted file mode 100644 index ae42de6a68..0000000000 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-channel-views.util.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { ViewType, ViewKey } from 'twenty-shared/types'; - -import { type FlatView } from 'src/engine/metadata-modules/flat-view/types/flat-view.type'; -import { - createStandardViewFlatMetadata, - type CreateStandardViewArgs, -} from 'src/engine/workspace-manager/twenty-standard-application/utils/view/create-standard-view-flat-metadata.util'; - -export const computeStandardMessageChannelViews = ( - args: Omit, 'context'>, -): Record => { - return { - allMessageChannels: createStandardViewFlatMetadata({ - ...args, - objectName: 'messageChannel', - context: { - viewName: 'allMessageChannels', - name: 'All {objectLabelPlural}', - type: ViewType.TABLE, - key: ViewKey.INDEX, - position: 0, - icon: 'IconList', - }, - }), - messageChannelRecordPageFields: createStandardViewFlatMetadata({ - ...args, - objectName: 'messageChannel', - context: { - viewName: 'messageChannelRecordPageFields', - name: 'Message Channel Record Page Fields', - type: ViewType.FIELDS_WIDGET, - key: null, - position: 0, - icon: 'IconList', - }, - }), - }; -}; diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-folder-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-folder-views.util.ts deleted file mode 100644 index a3b3102b20..0000000000 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-folder-views.util.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { ViewType, ViewKey } from 'twenty-shared/types'; - -import { type FlatView } from 'src/engine/metadata-modules/flat-view/types/flat-view.type'; -import { - createStandardViewFlatMetadata, - type CreateStandardViewArgs, -} from 'src/engine/workspace-manager/twenty-standard-application/utils/view/create-standard-view-flat-metadata.util'; - -export const computeStandardMessageFolderViews = ( - args: Omit, 'context'>, -): Record => { - return { - allMessageFolders: createStandardViewFlatMetadata({ - ...args, - objectName: 'messageFolder', - context: { - viewName: 'allMessageFolders', - name: 'All {objectLabelPlural}', - type: ViewType.TABLE, - key: ViewKey.INDEX, - position: 0, - icon: 'IconList', - }, - }), - messageFolderRecordPageFields: createStandardViewFlatMetadata({ - ...args, - objectName: 'messageFolder', - context: { - viewName: 'messageFolderRecordPageFields', - name: 'Message Folder Record Page Fields', - type: ViewType.FIELDS_WIDGET, - key: null, - position: 0, - icon: 'IconList', - }, - }), - }; -}; diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/constant/standard-object-icons.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/constant/standard-object-icons.ts index 7464654c40..274372dc62 100644 --- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/constant/standard-object-icons.ts +++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/constant/standard-object-icons.ts @@ -6,7 +6,6 @@ export const STANDARD_OBJECT_ICONS = { blocklist: 'IconForbid2', behavioralEvent: 'IconTimelineEvent', calendarChannelEventAssociation: 'IconCalendar', - calendarChannel: 'IconCalendar', calendarEventParticipant: 'IconCalendar', calendarEvent: 'IconCalendar', comment: 'IconMessageCircle', @@ -14,8 +13,6 @@ export const STANDARD_OBJECT_ICONS = { dashboard: 'IconLayoutDashboard', auditLog: 'IconTimelineEvent', messageChannelMessageAssociation: 'IconMessage', - messageChannel: 'IconMessage', - messageFolder: 'IconFolder', messageParticipant: 'IconUserCircle', messageThread: 'IconMessage', messageThreadSubscriber: 'IconPerson', diff --git a/packages/twenty-server/src/modules/messaging/message-import-manager/utils/safe-parse-email-addresses.util.ts b/packages/twenty-server/src/modules/messaging/message-import-manager/utils/safe-parse-email-addresses.util.ts index e0fbd4c6a8..2eda05bde9 100644 --- a/packages/twenty-server/src/modules/messaging/message-import-manager/utils/safe-parse-email-addresses.util.ts +++ b/packages/twenty-server/src/modules/messaging/message-import-manager/utils/safe-parse-email-addresses.util.ts @@ -10,7 +10,7 @@ export const safeParseEmailAddresses = (header: string): EmailAddress[] => { address: parsed.address, name: parsed.name ?? '', })); - } catch (error) { + } catch { return []; } }; diff --git a/packages/twenty-server/test/integration/graphql/suites/object-generated/calendar-channels.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/object-generated/calendar-channels.integration-spec.ts deleted file mode 100644 index 7edf87b533..0000000000 --- a/packages/twenty-server/test/integration/graphql/suites/object-generated/calendar-channels.integration-spec.ts +++ /dev/null @@ -1,77 +0,0 @@ -import request from 'supertest'; - -const client = request(`http://localhost:${APP_PORT}`); - -describe('calendarChannelsResolver (e2e)', () => { - it('should find many calendarChannels', () => { - const queryData = { - query: ` - query calendarChannels { - calendarChannels { - edges { - node { - handle - syncStatus - syncStage - visibility - isContactAutoCreationEnabled - contactAutoCreationPolicy - isSyncEnabled - syncCursor - syncedAt - syncStageStartedAt - throttleFailureCount - id - createdAt - updatedAt - deletedAt - connectedAccountId - } - } - } - } - `, - }; - - return client - .post('/graphql') - .set('Authorization', `Bearer ${APPLE_JANE_ADMIN_ACCESS_TOKEN}`) - .send(queryData) - .expect(200) - .expect((res) => { - expect(res.body.data).toBeDefined(); - expect(res.body.errors).toBeUndefined(); - }) - .expect((res) => { - const data = res.body.data.calendarChannels; - - expect(data).toBeDefined(); - expect(Array.isArray(data.edges)).toBe(true); - - const edges = data.edges; - - if (edges.length > 0) { - const calendarChannels = edges[0].node; - - expect(calendarChannels).toHaveProperty('handle'); - expect(calendarChannels).toHaveProperty('syncStatus'); - expect(calendarChannels).toHaveProperty('syncStage'); - expect(calendarChannels).toHaveProperty('visibility'); - expect(calendarChannels).toHaveProperty( - 'isContactAutoCreationEnabled', - ); - expect(calendarChannels).toHaveProperty('contactAutoCreationPolicy'); - expect(calendarChannels).toHaveProperty('isSyncEnabled'); - expect(calendarChannels).toHaveProperty('syncCursor'); - expect(calendarChannels).toHaveProperty('syncedAt'); - expect(calendarChannels).toHaveProperty('syncStageStartedAt'); - expect(calendarChannels).toHaveProperty('throttleFailureCount'); - expect(calendarChannels).toHaveProperty('id'); - expect(calendarChannels).toHaveProperty('createdAt'); - expect(calendarChannels).toHaveProperty('updatedAt'); - expect(calendarChannels).toHaveProperty('deletedAt'); - expect(calendarChannels).toHaveProperty('connectedAccountId'); - } - }); - }); -}); diff --git a/packages/twenty-server/test/integration/graphql/suites/object-generated/message-channels.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/object-generated/message-channels.integration-spec.ts deleted file mode 100644 index f03a27eac6..0000000000 --- a/packages/twenty-server/test/integration/graphql/suites/object-generated/message-channels.integration-spec.ts +++ /dev/null @@ -1,85 +0,0 @@ -import request from 'supertest'; - -const client = request(`http://localhost:${APP_PORT}`); - -describe('messageChannelsResolver (e2e)', () => { - it('should find many messageChannels', () => { - const queryData = { - query: ` - query messageChannels { - messageChannels { - edges { - node { - visibility - handle - type - isContactAutoCreationEnabled - contactAutoCreationPolicy - excludeNonProfessionalEmails - excludeGroupEmails - isSyncEnabled - syncCursor - syncedAt - syncStatus - syncStage - syncStageStartedAt - throttleFailureCount - id - createdAt - updatedAt - deletedAt - connectedAccountId - } - } - } - } - `, - }; - - return client - .post('/graphql') - .set('Authorization', `Bearer ${APPLE_JANE_ADMIN_ACCESS_TOKEN}`) - .send(queryData) - .expect(200) - .expect((res) => { - expect(res.body.data).toBeDefined(); - expect(res.body.errors).toBeUndefined(); - }) - .expect((res) => { - const data = res.body.data.messageChannels; - - expect(data).toBeDefined(); - expect(Array.isArray(data.edges)).toBe(true); - - const edges = data.edges; - - if (edges.length > 0) { - const messageChannels = edges[0].node; - - expect(messageChannels).toHaveProperty('visibility'); - expect(messageChannels).toHaveProperty('handle'); - expect(messageChannels).toHaveProperty('type'); - expect(messageChannels).toHaveProperty( - 'isContactAutoCreationEnabled', - ); - expect(messageChannels).toHaveProperty('contactAutoCreationPolicy'); - expect(messageChannels).toHaveProperty( - 'excludeNonProfessionalEmails', - ); - expect(messageChannels).toHaveProperty('excludeGroupEmails'); - expect(messageChannels).toHaveProperty('isSyncEnabled'); - expect(messageChannels).toHaveProperty('syncCursor'); - expect(messageChannels).toHaveProperty('syncedAt'); - expect(messageChannels).toHaveProperty('syncStatus'); - expect(messageChannels).toHaveProperty('syncStage'); - expect(messageChannels).toHaveProperty('syncStageStartedAt'); - expect(messageChannels).toHaveProperty('throttleFailureCount'); - expect(messageChannels).toHaveProperty('id'); - expect(messageChannels).toHaveProperty('createdAt'); - expect(messageChannels).toHaveProperty('updatedAt'); - expect(messageChannels).toHaveProperty('deletedAt'); - expect(messageChannels).toHaveProperty('connectedAccountId'); - } - }); - }); -}); diff --git a/packages/twenty-server/test/integration/graphql/suites/query-complexity/__snapshots__/query-complexity.integration-spec.ts.snap b/packages/twenty-server/test/integration/graphql/suites/query-complexity/__snapshots__/query-complexity.integration-spec.ts.snap index 9c60be3256..9bf3fd2319 100644 --- a/packages/twenty-server/test/integration/graphql/suites/query-complexity/__snapshots__/query-complexity.integration-spec.ts.snap +++ b/packages/twenty-server/test/integration/graphql/suites/query-complexity/__snapshots__/query-complexity.integration-spec.ts.snap @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing -exports[`Query Complexity should fail to execute a query with too many root resolvers 1`] = `"Query too complex - Too many root resolvers requested: 22 - Maximum allowed root resolvers: 20"`; +exports[`Query Complexity should fail to execute a query with too many root resolvers 1`] = `"Query too complex - Too many root resolvers requested: 23 - Maximum allowed root resolvers: 20"`; diff --git a/packages/twenty-server/test/integration/graphql/suites/query-complexity/constants/tooManyRootResolversQueryGqlFields.constant.ts b/packages/twenty-server/test/integration/graphql/suites/query-complexity/constants/tooManyRootResolversQueryGqlFields.constant.ts index f429d02338..a22083b558 100644 --- a/packages/twenty-server/test/integration/graphql/suites/query-complexity/constants/tooManyRootResolversQueryGqlFields.constant.ts +++ b/packages/twenty-server/test/integration/graphql/suites/query-complexity/constants/tooManyRootResolversQueryGqlFields.constant.ts @@ -79,13 +79,6 @@ export const TOO_MANY_ROOT_RESOLVERS_QUERY_GQL_FIELDS = gql` } } } - calendarChannels { - edges { - node { - id - } - } - } calendarChannelEventAssociations { edges { node { @@ -100,13 +93,6 @@ export const TOO_MANY_ROOT_RESOLVERS_QUERY_GQL_FIELDS = gql` } } } - messageChannels { - edges { - node { - id - } - } - } messageChannelMessageAssociations { edges { node { @@ -156,5 +142,26 @@ export const TOO_MANY_ROOT_RESOLVERS_QUERY_GQL_FIELDS = gql` } } } + messages { + edges { + node { + id + } + } + } + messageParticipants { + edges { + node { + id + } + } + } + workspaceMembers { + edges { + node { + id + } + } + } } `; diff --git a/packages/twenty-server/test/integration/metadata/suites/calendar-channel/calendar-channel-resolver.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/calendar-channel/calendar-channel-resolver.integration-spec.ts index 85aafe2398..76d78e126c 100644 --- a/packages/twenty-server/test/integration/metadata/suites/calendar-channel/calendar-channel-resolver.integration-spec.ts +++ b/packages/twenty-server/test/integration/metadata/suites/calendar-channel/calendar-channel-resolver.integration-spec.ts @@ -1,7 +1,7 @@ import { gql } from 'graphql-tag'; import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util'; -import { CALENDAR_CHANNEL_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/data/constants/calendar-channel-data-seeds.constant'; +import { CALENDAR_CHANNEL_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/core/constants/calendar-channel-seed-ids.constant'; import { CONNECTED_ACCOUNT_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/data/constants/connected-account-data-seeds.constant'; describe('calendarChannelResolver (e2e)', () => { diff --git a/packages/twenty-server/test/integration/metadata/suites/message-channel/message-channel-resolver.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/message-channel/message-channel-resolver.integration-spec.ts index bc2b21bda0..b38a210015 100644 --- a/packages/twenty-server/test/integration/metadata/suites/message-channel/message-channel-resolver.integration-spec.ts +++ b/packages/twenty-server/test/integration/metadata/suites/message-channel/message-channel-resolver.integration-spec.ts @@ -2,7 +2,7 @@ import { gql } from 'graphql-tag'; import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util'; import { CONNECTED_ACCOUNT_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/data/constants/connected-account-data-seeds.constant'; -import { MESSAGE_CHANNEL_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/data/constants/message-channel-data-seeds.constant'; +import { MESSAGE_CHANNEL_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/core/constants/message-channel-seed-ids.constant'; describe('messageChannelResolver (e2e)', () => { describe('myMessageChannels', () => { diff --git a/packages/twenty-server/test/integration/metadata/suites/message-folder/message-folder-resolver.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/message-folder/message-folder-resolver.integration-spec.ts index 3ade48154a..692098be5c 100644 --- a/packages/twenty-server/test/integration/metadata/suites/message-folder/message-folder-resolver.integration-spec.ts +++ b/packages/twenty-server/test/integration/metadata/suites/message-folder/message-folder-resolver.integration-spec.ts @@ -1,8 +1,8 @@ import { gql } from 'graphql-tag'; import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util'; -import { MESSAGE_CHANNEL_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/data/constants/message-channel-data-seeds.constant'; -import { MESSAGE_FOLDER_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/data/constants/message-folder-data-seeds.constant'; +import { MESSAGE_CHANNEL_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/core/constants/message-channel-seed-ids.constant'; +import { MESSAGE_FOLDER_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/core/constants/message-folder-seed-ids.constant'; describe('messageFolderResolver (e2e)', () => { describe('myMessageFolders', () => { diff --git a/packages/twenty-shared/src/constants/ObjectsWithChannelVisibilityConstraints.ts b/packages/twenty-shared/src/constants/ObjectsWithChannelVisibilityConstraints.ts index 5899b03bb3..8319b4f4c3 100644 --- a/packages/twenty-shared/src/constants/ObjectsWithChannelVisibilityConstraints.ts +++ b/packages/twenty-shared/src/constants/ObjectsWithChannelVisibilityConstraints.ts @@ -9,14 +9,11 @@ export const OBJECTS_WITH_CHANNEL_VISIBILITY_CONSTRAINTS = [ 'blocklist', 'message', 'messageThread', - 'messageChannel', 'messageParticipant', - 'messageFolder', 'messageChannelMessageAssociation', 'messageChannelMessageAssociationMessageFolder', 'messageThreadSubscriber', 'calendarEvent', - 'calendarChannel', 'calendarChannelEventAssociation', 'calendarEventParticipant', ] as const; diff --git a/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts b/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts index fc792a56bd..4600d967ce 100644 --- a/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts +++ b/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts @@ -297,117 +297,6 @@ export const STANDARD_OBJECTS = { }, }, }, - calendarChannel: { - universalIdentifier: '20202020-e8f2-40e1-a39c-c0e0039c5034', - fields: { - id: { universalIdentifier: '20202020-c02a-4031-8a31-1a2f3b4c5d6e' }, - createdAt: { - universalIdentifier: '20202020-c02b-4032-9b32-2b3f4c5d6e7f', - }, - updatedAt: { - universalIdentifier: '20202020-c02c-4033-8c33-3c4f5d6e7f8a', - }, - deletedAt: { - universalIdentifier: '20202020-c02d-4034-9d34-4d5f6e7f8a9b', - }, - handle: { - universalIdentifier: '20202020-1d08-420a-9aa7-22e0f298232d', - }, - visibility: { - universalIdentifier: '20202020-1b07-4796-9f01-d626bab7ca4d', - }, - isContactAutoCreationEnabled: { - universalIdentifier: '20202020-50fb-404b-ba28-369911a3793a', - }, - contactAutoCreationPolicy: { - universalIdentifier: '20202020-b55d-447d-b4df-226319058775', - }, - isSyncEnabled: { - universalIdentifier: '20202020-fe19-4818-8854-21f7b1b43395', - }, - syncCursor: { - universalIdentifier: '20202020-bac2-4852-a5cb-7a7898992b70', - }, - throttleFailureCount: { - universalIdentifier: '20202020-525c-4b76-b9bd-0dd57fd11d61', - }, - syncStatus: { - universalIdentifier: '20202020-7116-41da-8b4b-035975c4eb6a', - }, - syncStage: { - universalIdentifier: '20202020-6246-42e6-b5cd-003bd921782c', - }, - syncStageStartedAt: { - universalIdentifier: '20202020-a934-46f1-a8e7-9568b1e3a53e', - }, - syncedAt: { - universalIdentifier: '20202020-2ff5-4f70-953a-3d0d36357576', - }, - createdBy: { - universalIdentifier: '664db1a0-76f4-4429-8452-f8e250ab7545', - }, - updatedBy: { - universalIdentifier: '6a397eab-3700-4b08-9eb9-d16b61876193', - }, - position: { - universalIdentifier: '566609c9-1c8b-4899-91bb-0af140a89004', - }, - searchVector: { - universalIdentifier: 'bc9a982c-c314-49d6-818a-2661ce7e918f', - }, - }, - indexes: {}, - views: { - allCalendarChannels: { - universalIdentifier: '2d11659c-68ae-4ff2-882f-f1cccde372d0', - viewFields: { - handle: { - universalIdentifier: 'dc7ea888-79d6-4b8c-acdd-a72abe8e6326', - }, - visibility: { - universalIdentifier: 'a308409d-ee09-4588-b3b2-31b71bced64d', - }, - isSyncEnabled: { - universalIdentifier: '120065b8-bcba-4088-b3a8-8ae66def4219', - }, - syncStatus: { - universalIdentifier: 'ee3bafb8-6374-44f3-b328-c705c16220ac', - }, - createdAt: { - universalIdentifier: 'b2ef299a-b996-4f44-8c75-fad854d7df7f', - }, - }, - }, - calendarChannelRecordPageFields: { - universalIdentifier: '74813eac-7b7e-4483-9d2c-6e14cdc2eeee', - viewFieldGroups: { - general: { - universalIdentifier: 'e015afb4-bb6b-44ab-8077-01196c70bd1b', - }, - system: { - universalIdentifier: 'a7e61a73-68b3-46a2-8624-54a4f0a81710', - }, - }, - viewFields: { - visibility: { - universalIdentifier: '2d9f8c64-12be-4bb1-b0d4-977d89853498', - }, - isSyncEnabled: { - universalIdentifier: '819312c0-3441-42a2-a638-8800e353b72f', - }, - syncStatus: { - universalIdentifier: 'b95949f7-e4f7-4708-bfd5-6ec66d772465', - }, - createdAt: { - universalIdentifier: '8c0e4a82-9846-46b2-988b-8b651395fc52', - }, - createdBy: { - universalIdentifier: '35af4126-06bd-43a1-88cb-b1e2a170ccd2', - }, - }, - }, - }, - }, calendarEventParticipant: { universalIdentifier: '20202020-a1c3-47a6-9732-27e5b1e8436d', fields: { @@ -1074,243 +963,6 @@ export const STANDARD_OBJECTS = { }, }, }, - messageChannel: { - universalIdentifier: '20202020-fe8c-40bc-a681-b80b771449b7', - fields: { - id: { universalIdentifier: '20202020-b02a-40c1-8ac1-9eafbacbdced' }, - createdAt: { - universalIdentifier: '20202020-b02b-40c2-9bc2-afbacbdcedfe', - }, - updatedAt: { - universalIdentifier: '20202020-b02c-40c3-8cc3-bacbdcedfefa', - }, - deletedAt: { - universalIdentifier: '20202020-b02d-40c4-9dc4-cbdcedfefaab', - }, - visibility: { - universalIdentifier: '20202020-6a6b-4532-9767-cbc61b469453', - }, - handle: { - universalIdentifier: '20202020-2c96-43c3-93e3-ed6b1acb69bc', - }, - type: { universalIdentifier: '20202020-ae95-42d9-a3f1-797a2ea22122' }, - isContactAutoCreationEnabled: { - universalIdentifier: '20202020-fabd-4f14-b7c6-3310f6d132c6', - }, - contactAutoCreationPolicy: { - universalIdentifier: '20202020-fc0e-4ba6-b259-a66ca89cfa38', - }, - excludeNonProfessionalEmails: { - universalIdentifier: '20202020-1df5-445d-b4f3-2413ad178431', - }, - excludeGroupEmails: { - universalIdentifier: '20202020-45a0-4be4-9164-5820a6a109fb', - }, - messageFolderImportPolicy: { - universalIdentifier: '20202020-cc39-4432-9fe8-ec8ab8bbed95', - }, - pendingGroupEmailsAction: { - universalIdentifier: '20202020-17c5-4e9f-bc50-af46a89fdd42', - }, - isSyncEnabled: { - universalIdentifier: '20202020-d9a6-48e9-990b-b97fdf22e8dd', - }, - syncCursor: { - universalIdentifier: '20202020-79d1-41cf-b738-bcf5ed61e256', - }, - syncedAt: { - universalIdentifier: '20202020-263d-4c6b-ad51-137ada56f7d4', - }, - syncStatus: { - universalIdentifier: '20202020-56a1-4f7e-9880-a8493bb899cc', - }, - syncStage: { - universalIdentifier: '20202020-7979-4b08-89fe-99cb5e698767', - }, - syncStageStartedAt: { - universalIdentifier: '20202020-8c61-4a42-ae63-73c1c3c52e06', - }, - throttleFailureCount: { - universalIdentifier: '20202020-0291-42be-9ad0-d578a51684ab', - }, - throttleRetryAfter: { - universalIdentifier: '20202020-a1e3-4d7f-b5c2-9f8e6d4c3b2a', - }, - createdBy: { - universalIdentifier: 'b7de8fcc-a7c6-4122-b3fa-1fcf8f30931c', - }, - updatedBy: { - universalIdentifier: '88bb6ff1-b8a1-4313-95d4-7879acca0b93', - }, - position: { - universalIdentifier: 'bc8a36af-8b9c-4548-a0da-c90e899e7243', - }, - searchVector: { - universalIdentifier: '5e84794c-6f14-4bdf-81a6-76ee11cda51f', - }, - }, - indexes: {}, - views: { - allMessageChannels: { - universalIdentifier: '95f57f8e-eaac-46f7-b364-4ef8208f165f', - viewFields: { - handle: { - universalIdentifier: 'f71a30b0-ee4a-4d36-847a-d0c99134fbb8', - }, - type: { - universalIdentifier: 'fa480cec-938c-4216-95fe-ba4335e20a41', - }, - visibility: { - universalIdentifier: '2c43e4f6-7024-47a0-a91a-7d491b1fac84', - }, - isSyncEnabled: { - universalIdentifier: '69884c47-0c2e-4988-bbc1-23242993634e', - }, - syncStatus: { - universalIdentifier: '6189c285-d390-4fd9-ae7a-ca011d8ad98f', - }, - createdAt: { - universalIdentifier: '45044b65-b17b-468d-a23d-075733c6b631', - }, - }, - }, - messageChannelRecordPageFields: { - universalIdentifier: '1350eb34-7ef0-4b25-8a3e-23b4a959c3a2', - viewFieldGroups: { - general: { - universalIdentifier: '96113215-6bf2-476c-ae69-c70274257913', - }, - system: { - universalIdentifier: '2f08a624-e1a7-4f79-b5f7-1a8e92f4c07e', - }, - }, - viewFields: { - type: { - universalIdentifier: '280b9097-0bcf-4389-9ee7-fa89990d1369', - }, - visibility: { - universalIdentifier: '8dd39475-f109-4117-bce4-9e183382b475', - }, - isSyncEnabled: { - universalIdentifier: '5136d071-3b11-48cd-b7be-4910bd6264f9', - }, - syncStatus: { - universalIdentifier: '76db0713-06d3-4133-9144-9d0300a2824e', - }, - createdAt: { - universalIdentifier: '8636c740-3282-4a6b-99f6-f3f48e59b0af', - }, - createdBy: { - universalIdentifier: 'cdf294ce-4c52-4987-a301-8219fa81ab2e', - }, - }, - }, - }, - }, - messageFolder: { - universalIdentifier: '20202020-4955-4fd9-8e59-2dbd373f2a46', - fields: { - id: { universalIdentifier: '20202020-b03a-40d1-8ad1-dcedfefaabbc' }, - createdAt: { - universalIdentifier: '20202020-b03b-40d2-9bd2-edfefaabbccd', - }, - updatedAt: { - universalIdentifier: '20202020-b03c-40d3-8cd3-fefaabbccdde', - }, - deletedAt: { - universalIdentifier: '20202020-b03d-40d4-9dd4-faabbccddeef', - }, - name: { universalIdentifier: '20202020-7cf8-40bc-a681-b80b771449b7' }, - parentFolderId: { - universalIdentifier: '20202020-e45d-49de-a4aa-587bbf9601f3', - }, - messageChannelId: { - universalIdentifier: '20202020-c9f8-43db-a3e7-7f2e8b5d9c1a', - }, - syncCursor: { - universalIdentifier: '20202020-98cd-49ed-8dfc-cb5796400e64', - }, - isSentFolder: { - universalIdentifier: '20202020-2af5-4a25-b2de-3c9386da941b', - }, - isSynced: { - universalIdentifier: '20202020-764f-4e09-8f95-cd46b6bfe3c4', - }, - externalId: { - universalIdentifier: '20202020-f3a8-4d2b-9c7e-1b5f9a8e4c6d', - }, - pendingSyncAction: { - universalIdentifier: '20202020-4f97-4c79-9517-16387fe237f7', - }, - createdBy: { - universalIdentifier: 'bfe19f84-b640-4ce3-b771-4e7bf18bad14', - }, - updatedBy: { - universalIdentifier: '7ec7eea8-8715-4656-a602-3cb4256aaca1', - }, - position: { - universalIdentifier: '5317d4f4-12c5-469d-8e47-0f3b2ffc95b4', - }, - searchVector: { - universalIdentifier: '5f2d3937-bafd-4d71-b4cb-b34037efd2e1', - }, - }, - indexes: { - messageChannelIdIndex: { - universalIdentifier: '6217f2a5-28ac-4b88-8a2a-45eee4580e57', - }, - }, - views: { - allMessageFolders: { - universalIdentifier: '6774ebf5-a300-4bcc-8f22-f5e7c58bfccf', - viewFields: { - name: { - universalIdentifier: '72b2d56f-5245-4cb6-933c-3d5031de0778', - }, - messageChannelId: { - universalIdentifier: '121abdf0-c89f-4313-b156-e8a3c0cb77ec', - }, - isSentFolder: { - universalIdentifier: 'e884a006-e166-434d-82aa-247052165e4d', - }, - isSynced: { - universalIdentifier: 'd7e705f4-c2be-4f4e-bcc3-1cdc9e07990b', - }, - createdAt: { - universalIdentifier: 'afd4f595-c1a7-4afd-b0fd-b2f0b59203c6', - }, - }, - }, - messageFolderRecordPageFields: { - universalIdentifier: '82dc204f-a48d-4985-9259-a79b3a1b230f', - viewFieldGroups: { - general: { - universalIdentifier: 'c55a9366-bb2c-4ae7-8345-115c790f56b1', - }, - system: { - universalIdentifier: '51b6af5e-9f76-4fb2-811b-6193761d7702', - }, - }, - viewFields: { - messageChannelId: { - universalIdentifier: '2fb6ff09-bed5-4b31-af0f-7fa3df5612da', - }, - isSentFolder: { - universalIdentifier: 'ec8a2e3e-0736-41f5-8c8b-d36778d52a94', - }, - isSynced: { - universalIdentifier: 'a68f286c-5d13-4794-9354-e282913930f5', - }, - createdAt: { - universalIdentifier: '8b63749b-922d-4164-b0f4-65d716b3d75d', - }, - createdBy: { - universalIdentifier: '2a93e132-3c92-4b94-acf0-076e4af75df2', - }, - }, - }, - }, - }, messageParticipant: { universalIdentifier: '20202020-a433-4456-aa2d-fd9cb26b774a', fields: {