Skip to content

The open alternative to Salesforce, designed for AI.

Add message thread and calendar event target junction objects (#24776)

Félix Malfait35a6365e7c82
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/__tests__/standard-metadata-label-catalog.spec.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/__tests__/standard-metadata-label-catalog.spec.ts
index 1d22d7bb935..9d4f4704152 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/__tests__/standard-metadata-label-catalog.spec.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/__tests__/standard-metadata-label-catalog.spec.ts
@@ -10,6 +10,7 @@ import { isDefined } from 'twenty-shared/utils';
import { messages } from 'src/engine/core-modules/i18n/locales/generated/en';
import { getMetadataFlatEntityMapsKey } from 'src/engine/metadata-modules/flat-entity/utils/get-metadata-flat-entity-maps-key.util';
import { computeTwentyStandardApplicationAllFlatEntityMaps } from 'src/engine/workspace-manager/twenty-standard-application/utils/twenty-standard-application-all-flat-entity-maps.constant';
+import { AUTHORED_STANDARD_METADATA_MESSAGE_IDS } from 'src/engine/workspace-manager/twenty-standard-application/utils/i18n-label.util';
import { STANDARD_TIMELINE_ACTIVITY_TYPE_DEFINITIONS } from 'src/engine/metadata-modules/timeline-activity-type/constants/standard-timeline-activity-type-definitions.constant';
// The read path resolves every standard metadata label through
@@ -85,15 +86,22 @@ describe('standard metadata labels reach the catalog under their context', () =>
const context = getMetadataLabelContext(metadataName, property);
const messageId = generateMessageId(value, context);
- // Translation catalogs are generated after source changes. The source
- // descriptor still proves that the timeline label uses the exact
- // context expected by the read path before that pipeline catches up.
+ // Translation catalogs are generated after source changes, by the
+ // i18n pipeline, and are not committed alongside them. The source
+ // descriptor still proves that the label uses the exact context
+ // expected by the read path before that pipeline catches up: labels
+ // authored through i18nLabel register their macro-computed id, and
+ // timeline labels expose it on their definition.
const sourceMessageId =
metadataName === 'timelineActivityType' && property === 'label'
? timelineActivityTypeMessageIdByLabel.get(value)
: undefined;
- if (!(messageId in messages) && sourceMessageId !== messageId) {
+ if (
+ !(messageId in messages) &&
+ !AUTHORED_STANDARD_METADATA_MESSAGE_IDS.has(messageId) &&
+ sourceMessageId !== messageId
+ ) {
missing.push(`(${context}) ${value}`);
}
}
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/search-fields-by-standard-object-name.constant.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/search-fields-by-standard-object-name.constant.ts
index 6d7ae94d0c7..740daec7178 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/search-fields-by-standard-object-name.constant.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/search-fields-by-standard-object-name.constant.ts
@@ -10,6 +10,7 @@ export const SEARCH_FIELDS_BY_STANDARD_OBJECT_NAME = {
{ name: 'eventExternalId', type: FieldMetadataType.TEXT },
],
calendarEvent: [{ name: 'title', type: FieldMetadataType.TEXT }],
+ calendarEventTarget: [{ name: 'id', type: FieldMetadataType.UUID }],
calendarEventParticipant: [{ name: 'handle', type: FieldMetadataType.TEXT }],
callRecording: [{ name: 'title', type: FieldMetadataType.TEXT }],
company: [
@@ -30,6 +31,7 @@ export const SEARCH_FIELDS_BY_STANDARD_OBJECT_NAME = {
messageListMember: [{ name: 'id', type: FieldMetadataType.UUID }],
messageParticipant: [{ name: 'handle', type: FieldMetadataType.TEXT }],
messageThread: [{ name: 'subject', type: FieldMetadataType.TEXT }],
+ messageThreadTarget: [{ name: 'id', type: FieldMetadataType.UUID }],
note: [
{ name: 'title', type: FieldMetadataType.TEXT },
{ name: 'bodyV2', type: FieldMetadataType.RICH_TEXT },
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 bd6ef20c254..a7d4b7c7a59 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
@@ -281,9 +281,12 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"calendarEventParticipants": {
"id": "00000000-0000-0000-0000-000000000138",
},
- "callRecordings": {
+ "calendarEventTargets": {
"id": "00000000-0000-0000-0000-000000000139",
},
+ "callRecordings": {
+ "id": "00000000-0000-0000-0000-000000000140",
+ },
"conferenceLink": {
"id": "00000000-0000-0000-0000-000000000136",
},
@@ -345,85 +348,85 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"id": "00000000-0000-0000-0000-000000000122",
},
},
- "id": "00000000-0000-0000-0000-000000000164",
+ "id": "00000000-0000-0000-0000-000000000165",
"views": {
"allCalendarEvents": {
- "id": "00000000-0000-0000-0000-000000000148",
+ "id": "00000000-0000-0000-0000-000000000149",
"viewFieldGroups": {},
"viewFields": {
"conferenceLink": {
- "id": "00000000-0000-0000-0000-000000000145",
+ "id": "00000000-0000-0000-0000-000000000146",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000147",
+ "id": "00000000-0000-0000-0000-000000000148",
},
"endsAt": {
- "id": "00000000-0000-0000-0000-000000000142",
+ "id": "00000000-0000-0000-0000-000000000143",
},
"isCanceled": {
- "id": "00000000-0000-0000-0000-000000000146",
+ "id": "00000000-0000-0000-0000-000000000147",
},
"isFullDay": {
- "id": "00000000-0000-0000-0000-000000000143",
+ "id": "00000000-0000-0000-0000-000000000144",
},
"location": {
- "id": "00000000-0000-0000-0000-000000000144",
+ "id": "00000000-0000-0000-0000-000000000145",
},
"startsAt": {
- "id": "00000000-0000-0000-0000-000000000141",
+ "id": "00000000-0000-0000-0000-000000000142",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000140",
+ "id": "00000000-0000-0000-0000-000000000141",
},
},
"viewGroups": {},
},
"calendarEventRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000163",
+ "id": "00000000-0000-0000-0000-000000000164",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000161",
+ "id": "00000000-0000-0000-0000-000000000162",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000162",
+ "id": "00000000-0000-0000-0000-000000000163",
},
},
"viewFields": {
"conferenceLink": {
- "id": "00000000-0000-0000-0000-000000000154",
+ "id": "00000000-0000-0000-0000-000000000155",
},
"conferenceSolution": {
- "id": "00000000-0000-0000-0000-000000000160",
+ "id": "00000000-0000-0000-0000-000000000161",
},
"description": {
- "id": "00000000-0000-0000-0000-000000000156",
+ "id": "00000000-0000-0000-0000-000000000157",
},
"endsAt": {
- "id": "00000000-0000-0000-0000-000000000151",
+ "id": "00000000-0000-0000-0000-000000000152",
},
"externalCreatedAt": {
- "id": "00000000-0000-0000-0000-000000000157",
+ "id": "00000000-0000-0000-0000-000000000158",
},
"externalUpdatedAt": {
- "id": "00000000-0000-0000-0000-000000000158",
+ "id": "00000000-0000-0000-0000-000000000159",
},
"iCalUid": {
- "id": "00000000-0000-0000-0000-000000000159",
+ "id": "00000000-0000-0000-0000-000000000160",
},
"isCanceled": {
- "id": "00000000-0000-0000-0000-000000000153",
+ "id": "00000000-0000-0000-0000-000000000154",
},
"isFullDay": {
- "id": "00000000-0000-0000-0000-000000000152",
+ "id": "00000000-0000-0000-0000-000000000153",
},
"location": {
- "id": "00000000-0000-0000-0000-000000000155",
+ "id": "00000000-0000-0000-0000-000000000156",
},
"startsAt": {
- "id": "00000000-0000-0000-0000-000000000150",
+ "id": "00000000-0000-0000-0000-000000000151",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000149",
+ "id": "00000000-0000-0000-0000-000000000150",
},
},
"viewGroups": {},
@@ -554,127 +557,175 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
},
},
},
+ "calendarEventTarget": {
+ "fields": {
+ "calendarEvent": {
+ "id": "00000000-0000-0000-0000-000000000174",
+ },
+ "createdAt": {
+ "id": "00000000-0000-0000-0000-000000000167",
+ },
+ "createdBy": {
+ "id": "00000000-0000-0000-0000-000000000170",
+ },
+ "deletedAt": {
+ "id": "00000000-0000-0000-0000-000000000169",
+ },
+ "id": {
+ "id": "00000000-0000-0000-0000-000000000166",
+ },
+ "isAutomaticallyAssigned": {
+ "id": "00000000-0000-0000-0000-000000000175",
+ },
+ "isManuallyAssigned": {
+ "id": "00000000-0000-0000-0000-000000000176",
+ },
+ "position": {
+ "id": "00000000-0000-0000-0000-000000000172",
+ },
+ "searchVector": {
+ "id": "00000000-0000-0000-0000-000000000173",
+ },
+ "targetCompany": {
+ "id": "00000000-0000-0000-0000-000000000178",
+ },
+ "targetOpportunity": {
+ "id": "00000000-0000-0000-0000-000000000179",
+ },
+ "targetPerson": {
+ "id": "00000000-0000-0000-0000-000000000177",
+ },
+ "updatedAt": {
+ "id": "00000000-0000-0000-0000-000000000168",
+ },
+ "updatedBy": {
+ "id": "00000000-0000-0000-0000-000000000171",
+ },
+ },
+ "id": "00000000-0000-0000-0000-000000000180",
+ "views": {},
+ },
"callRecording": {
"fields": {
"applicationId": {
- "id": "00000000-0000-0000-0000-000000000176",
+ "id": "00000000-0000-0000-0000-000000000192",
},
"audio": {
- "id": "00000000-0000-0000-0000-000000000182",
+ "id": "00000000-0000-0000-0000-000000000198",
},
"calendarEvent": {
- "id": "00000000-0000-0000-0000-000000000185",
+ "id": "00000000-0000-0000-0000-000000000201",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000166",
+ "id": "00000000-0000-0000-0000-000000000182",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000169",
+ "id": "00000000-0000-0000-0000-000000000185",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000168",
+ "id": "00000000-0000-0000-0000-000000000184",
},
"endedAt": {
- "id": "00000000-0000-0000-0000-000000000180",
+ "id": "00000000-0000-0000-0000-000000000196",
},
"externalBotId": {
- "id": "00000000-0000-0000-0000-000000000177",
+ "id": "00000000-0000-0000-0000-000000000193",
},
"externalRecordingId": {
- "id": "00000000-0000-0000-0000-000000000178",
+ "id": "00000000-0000-0000-0000-000000000194",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000165",
+ "id": "00000000-0000-0000-0000-000000000181",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000171",
+ "id": "00000000-0000-0000-0000-000000000187",
},
"recordingRequestStatus": {
- "id": "00000000-0000-0000-0000-000000000175",
+ "id": "00000000-0000-0000-0000-000000000191",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000172",
+ "id": "00000000-0000-0000-0000-000000000188",
},
"startedAt": {
- "id": "00000000-0000-0000-0000-000000000179",
+ "id": "00000000-0000-0000-0000-000000000195",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000174",
+ "id": "00000000-0000-0000-0000-000000000190",
},
"summary": {
- "id": "00000000-0000-0000-0000-000000000184",
+ "id": "00000000-0000-0000-0000-000000000200",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000173",
+ "id": "00000000-0000-0000-0000-000000000189",
},
"transcript": {
- "id": "00000000-0000-0000-0000-000000000183",
+ "id": "00000000-0000-0000-0000-000000000199",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000167",
+ "id": "00000000-0000-0000-0000-000000000183",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000170",
+ "id": "00000000-0000-0000-0000-000000000186",
},
"video": {
- "id": "00000000-0000-0000-0000-000000000181",
+ "id": "00000000-0000-0000-0000-000000000197",
},
},
- "id": "00000000-0000-0000-0000-000000000202",
+ "id": "00000000-0000-0000-0000-000000000218",
"views": {
"allCallRecordings": {
- "id": "00000000-0000-0000-0000-000000000190",
+ "id": "00000000-0000-0000-0000-000000000206",
"viewFieldGroups": {},
"viewFields": {
"recordingRequestStatus": {
- "id": "00000000-0000-0000-0000-000000000187",
+ "id": "00000000-0000-0000-0000-000000000203",
},
"startedAt": {
- "id": "00000000-0000-0000-0000-000000000189",
+ "id": "00000000-0000-0000-0000-000000000205",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000186",
+ "id": "00000000-0000-0000-0000-000000000202",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000188",
+ "id": "00000000-0000-0000-0000-000000000204",
},
},
"viewGroups": {},
},
"callRecordingRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000201",
+ "id": "00000000-0000-0000-0000-000000000217",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000200",
+ "id": "00000000-0000-0000-0000-000000000216",
},
},
"viewFields": {
"audio": {
- "id": "00000000-0000-0000-0000-000000000197",
+ "id": "00000000-0000-0000-0000-000000000213",
},
"endedAt": {
- "id": "00000000-0000-0000-0000-000000000195",
+ "id": "00000000-0000-0000-0000-000000000211",
},
"recordingRequestStatus": {
- "id": "00000000-0000-0000-0000-000000000193",
+ "id": "00000000-0000-0000-0000-000000000209",
},
"startedAt": {
- "id": "00000000-0000-0000-0000-000000000194",
+ "id": "00000000-0000-0000-0000-000000000210",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000192",
+ "id": "00000000-0000-0000-0000-000000000208",
},
"summary": {
- "id": "00000000-0000-0000-0000-000000000199",
+ "id": "00000000-0000-0000-0000-000000000215",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000191",
+ "id": "00000000-0000-0000-0000-000000000207",
},
"transcript": {
- "id": "00000000-0000-0000-0000-000000000198",
+ "id": "00000000-0000-0000-0000-000000000214",
},
"video": {
- "id": "00000000-0000-0000-0000-000000000196",
+ "id": "00000000-0000-0000-0000-000000000212",
},
},
"viewGroups": {},
@@ -684,157 +735,163 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"company": {
"fields": {
"accountOwner": {
- "id": "00000000-0000-0000-0000-000000000217",
+ "id": "00000000-0000-0000-0000-000000000233",
},
"address": {
- "id": "00000000-0000-0000-0000-000000000213",
+ "id": "00000000-0000-0000-0000-000000000229",
},
"annualRevenue": {
- "id": "00000000-0000-0000-0000-000000000215",
+ "id": "00000000-0000-0000-0000-000000000231",
},
"attachments": {
- "id": "00000000-0000-0000-0000-000000000221",
+ "id": "00000000-0000-0000-0000-000000000239",
+ },
+ "calendarEventTargets": {
+ "id": "00000000-0000-0000-0000-000000000236",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000204",
+ "id": "00000000-0000-0000-0000-000000000220",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000207",
+ "id": "00000000-0000-0000-0000-000000000223",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000206",
+ "id": "00000000-0000-0000-0000-000000000222",
},
"domainName": {
- "id": "00000000-0000-0000-0000-000000000212",
+ "id": "00000000-0000-0000-0000-000000000228",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000203",
+ "id": "00000000-0000-0000-0000-000000000219",
},
"linkedinLink": {
- "id": "00000000-0000-0000-0000-000000000214",
+ "id": "00000000-0000-0000-0000-000000000230",
+ },
+ "messageThreadTargets": {
+ "id": "00000000-0000-0000-0000-000000000237",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000211",
+ "id": "00000000-0000-0000-0000-000000000227",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000219",
+ "id": "00000000-0000-0000-0000-000000000235",
},
"opportunities": {
- "id": "00000000-0000-0000-0000-000000000220",
+ "id": "00000000-0000-0000-0000-000000000238",
},
"people": {
- "id": "00000000-0000-0000-0000-000000000216",
+ "id": "00000000-0000-0000-0000-000000000232",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000209",
+ "id": "00000000-0000-0000-0000-000000000225",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000210",
+ "id": "00000000-0000-0000-0000-000000000226",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000218",
+ "id": "00000000-0000-0000-0000-000000000234",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000222",
+ "id": "00000000-0000-0000-0000-000000000240",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000205",
+ "id": "00000000-0000-0000-0000-000000000221",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000208",
+ "id": "00000000-0000-0000-0000-000000000224",
},
},
- "id": "00000000-0000-0000-0000-000000000251",
+ "id": "00000000-0000-0000-0000-000000000269",
"views": {
"allCompanies": {
- "id": "00000000-0000-0000-0000-000000000230",
+ "id": "00000000-0000-0000-0000-000000000248",
"viewFieldGroups": {},
"viewFields": {
"accountOwner": {
- "id": "00000000-0000-0000-0000-000000000226",
+ "id": "00000000-0000-0000-0000-000000000244",
},
"address": {
- "id": "00000000-0000-0000-0000-000000000229",
+ "id": "00000000-0000-0000-0000-000000000247",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000227",
+ "id": "00000000-0000-0000-0000-000000000245",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000225",
+ "id": "00000000-0000-0000-0000-000000000243",
},
"domainName": {
- "id": "00000000-0000-0000-0000-000000000224",
+ "id": "00000000-0000-0000-0000-000000000242",
},
"linkedinLink": {
- "id": "00000000-0000-0000-0000-000000000228",
+ "id": "00000000-0000-0000-0000-000000000246",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000223",
+ "id": "00000000-0000-0000-0000-000000000241",
},
},
"viewGroups": {},
},
"companyRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000250",
+ "id": "00000000-0000-0000-0000-000000000268",
"viewFieldGroups": {
"business": {
- "id": "00000000-0000-0000-0000-000000000247",
+ "id": "00000000-0000-0000-0000-000000000265",
},
"contact": {
- "id": "00000000-0000-0000-0000-000000000248",
+ "id": "00000000-0000-0000-0000-000000000266",
},
"general": {
- "id": "00000000-0000-0000-0000-000000000246",
+ "id": "00000000-0000-0000-0000-000000000264",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000249",
+ "id": "00000000-0000-0000-0000-000000000267",
},
},
"viewFields": {
"accountOwner": {
- "id": "00000000-0000-0000-0000-000000000232",
+ "id": "00000000-0000-0000-0000-000000000250",
},
"address": {
- "id": "00000000-0000-0000-0000-000000000235",
+ "id": "00000000-0000-0000-0000-000000000253",
},
"annualRevenue": {
- "id": "00000000-0000-0000-0000-000000000233",
+ "id": "00000000-0000-0000-0000-000000000251",
},
"attachments": {
- "id": "00000000-0000-0000-0000-000000000244",
+ "id": "00000000-0000-0000-0000-000000000262",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000236",
+ "id": "00000000-0000-0000-0000-000000000254",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000237",
+ "id": "00000000-0000-0000-0000-000000000255",
},
"domainName": {
- "id": "00000000-0000-0000-0000-000000000231",
+ "id": "00000000-0000-0000-0000-000000000249",
},
"linkedinLink": {
- "id": "00000000-0000-0000-0000-000000000234",
+ "id": "00000000-0000-0000-0000-000000000252",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000242",
+ "id": "00000000-0000-0000-0000-000000000260",
},
"opportunities": {
- "id": "00000000-0000-0000-0000-000000000243",
+ "id": "00000000-0000-0000-0000-000000000261",
},
"people": {
- "id": "00000000-0000-0000-0000-000000000240",
+ "id": "00000000-0000-0000-0000-000000000258",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000241",
+ "id": "00000000-0000-0000-0000-000000000259",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000245",
+ "id": "00000000-0000-0000-0000-000000000263",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000238",
+ "id": "00000000-0000-0000-0000-000000000256",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000239",
+ "id": "00000000-0000-0000-0000-000000000257",
},
},
"viewGroups": {},
@@ -844,59 +901,59 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"dashboard": {
"fields": {
"attachments": {
- "id": "00000000-0000-0000-0000-000000000263",
+ "id": "00000000-0000-0000-0000-000000000281",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000253",
+ "id": "00000000-0000-0000-0000-000000000271",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000256",
+ "id": "00000000-0000-0000-0000-000000000274",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000255",
+ "id": "00000000-0000-0000-0000-000000000273",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000252",
+ "id": "00000000-0000-0000-0000-000000000270",
},
"pageLayoutId": {
- "id": "00000000-0000-0000-0000-000000000261",
+ "id": "00000000-0000-0000-0000-000000000279",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000258",
+ "id": "00000000-0000-0000-0000-000000000276",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000259",
+ "id": "00000000-0000-0000-0000-000000000277",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000262",
+ "id": "00000000-0000-0000-0000-000000000280",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000260",
+ "id": "00000000-0000-0000-0000-000000000278",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000254",
+ "id": "00000000-0000-0000-0000-000000000272",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000257",
+ "id": "00000000-0000-0000-0000-000000000275",
},
},
- "id": "00000000-0000-0000-0000-000000000269",
+ "id": "00000000-0000-0000-0000-000000000287",
"views": {
"allDashboards": {
- "id": "00000000-0000-0000-0000-000000000268",
+ "id": "00000000-0000-0000-0000-000000000286",
"viewFieldGroups": {},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000266",
+ "id": "00000000-0000-0000-0000-000000000284",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000265",
+ "id": "00000000-0000-0000-0000-000000000283",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000264",
+ "id": "00000000-0000-0000-0000-000000000282",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000267",
+ "id": "00000000-0000-0000-0000-000000000285",
},
},
"viewGroups": {},
@@ -906,86 +963,86 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"message": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000449",
+ "id": "00000000-0000-0000-0000-000000000483",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000452",
+ "id": "00000000-0000-0000-0000-000000000486",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000451",
+ "id": "00000000-0000-0000-0000-000000000485",
},
"deliveryStatus": {
- "id": "00000000-0000-0000-0000-000000000464",
+ "id": "00000000-0000-0000-0000-000000000498",
},
"headerMessageId": {
- "id": "00000000-0000-0000-0000-000000000456",
+ "id": "00000000-0000-0000-0000-000000000490",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000448",
+ "id": "00000000-0000-0000-0000-000000000482",
},
"isDraft": {
- "id": "00000000-0000-0000-0000-000000000465",
+ "id": "00000000-0000-0000-0000-000000000499",
},
"messageCampaign": {
- "id": "00000000-0000-0000-0000-000000000463",
+ "id": "00000000-0000-0000-0000-000000000497",
},
"messageChannelMessageAssociations": {
- "id": "00000000-0000-0000-0000-000000000462",
+ "id": "00000000-0000-0000-0000-000000000496",
},
"messageParticipants": {
- "id": "00000000-0000-0000-0000-000000000461",
+ "id": "00000000-0000-0000-0000-000000000495",
},
"messageThread": {
- "id": "00000000-0000-0000-0000-000000000457",
+ "id": "00000000-0000-0000-0000-000000000491",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000454",
+ "id": "00000000-0000-0000-0000-000000000488",
},
"receivedAt": {
- "id": "00000000-0000-0000-0000-000000000460",
+ "id": "00000000-0000-0000-0000-000000000494",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000455",
+ "id": "00000000-0000-0000-0000-000000000489",
},
"subject": {
- "id": "00000000-0000-0000-0000-000000000458",
+ "id": "00000000-0000-0000-0000-000000000492",
},
"text": {
- "id": "00000000-0000-0000-0000-000000000459",
+ "id": "00000000-0000-0000-0000-000000000493",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000450",
+ "id": "00000000-0000-0000-0000-000000000484",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000453",
+ "id": "00000000-0000-0000-0000-000000000487",
},
},
- "id": "00000000-0000-0000-0000-000000000474",
+ "id": "00000000-0000-0000-0000-000000000508",
"views": {
"allMessages": {
- "id": "00000000-0000-0000-0000-000000000473",
+ "id": "00000000-0000-0000-0000-000000000507",
"viewFieldGroups": {},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000472",
+ "id": "00000000-0000-0000-0000-000000000506",
},
"headerMessageId": {
- "id": "00000000-0000-0000-0000-000000000470",
+ "id": "00000000-0000-0000-0000-000000000504",
},
"messageParticipants": {
- "id": "00000000-0000-0000-0000-000000000468",
+ "id": "00000000-0000-0000-0000-000000000502",
},
"messageThread": {
- "id": "00000000-0000-0000-0000-000000000467",
+ "id": "00000000-0000-0000-0000-000000000501",
},
"receivedAt": {
- "id": "00000000-0000-0000-0000-000000000469",
+ "id": "00000000-0000-0000-0000-000000000503",
},
"subject": {
- "id": "00000000-0000-0000-0000-000000000466",
+ "id": "00000000-0000-0000-0000-000000000500",
},
"text": {
- "id": "00000000-0000-0000-0000-000000000471",
+ "id": "00000000-0000-0000-0000-000000000505",
},
},
"viewGroups": {},
@@ -995,145 +1052,145 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"messageCampaign": {
"fields": {
"bodyTemplate": {
- "id": "00000000-0000-0000-0000-000000000280",
+ "id": "00000000-0000-0000-0000-000000000298",
},
"bouncedCount": {
- "id": "00000000-0000-0000-0000-000000000286",
+ "id": "00000000-0000-0000-0000-000000000304",
},
"complainedCount": {
- "id": "00000000-0000-0000-0000-000000000287",
+ "id": "00000000-0000-0000-0000-000000000305",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000271",
+ "id": "00000000-0000-0000-0000-000000000289",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000274",
+ "id": "00000000-0000-0000-0000-000000000292",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000273",
+ "id": "00000000-0000-0000-0000-000000000291",
},
"failedCount": {
- "id": "00000000-0000-0000-0000-000000000285",
+ "id": "00000000-0000-0000-0000-000000000303",
},
"fromAddress": {
- "id": "00000000-0000-0000-0000-000000000281",
+ "id": "00000000-0000-0000-0000-000000000299",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000270",
+ "id": "00000000-0000-0000-0000-000000000288",
},
"list": {
- "id": "00000000-0000-0000-0000-000000000289",
+ "id": "00000000-0000-0000-0000-000000000307",
},
"messages": {
- "id": "00000000-0000-0000-0000-000000000291",
+ "id": "00000000-0000-0000-0000-000000000309",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000278",
+ "id": "00000000-0000-0000-0000-000000000296",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000276",
+ "id": "00000000-0000-0000-0000-000000000294",
},
"recipients": {
- "id": "00000000-0000-0000-0000-000000000292",
+ "id": "00000000-0000-0000-0000-000000000310",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000277",
+ "id": "00000000-0000-0000-0000-000000000295",
},
"sentAt": {
- "id": "00000000-0000-0000-0000-000000000283",
+ "id": "00000000-0000-0000-0000-000000000301",
},
"sentCount": {
- "id": "00000000-0000-0000-0000-000000000284",
+ "id": "00000000-0000-0000-0000-000000000302",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000282",
+ "id": "00000000-0000-0000-0000-000000000300",
},
"subject": {
- "id": "00000000-0000-0000-0000-000000000279",
+ "id": "00000000-0000-0000-0000-000000000297",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000290",
+ "id": "00000000-0000-0000-0000-000000000308",
},
"unsubscribeTopicId": {
- "id": "00000000-0000-0000-0000-000000000288",
+ "id": "00000000-0000-0000-0000-000000000306",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000272",
+ "id": "00000000-0000-0000-0000-000000000290",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000275",
+ "id": "00000000-0000-0000-0000-000000000293",
},
},
- "id": "00000000-0000-0000-0000-000000000314",
+ "id": "00000000-0000-0000-0000-000000000332",
"views": {
"allMessageCampaigns": {
- "id": "00000000-0000-0000-0000-000000000305",
+ "id": "00000000-0000-0000-0000-000000000323",
"viewFieldGroups": {},
"viewFields": {
"bouncedCount": {
- "id": "00000000-0000-0000-0000-000000000301",
+ "id": "00000000-0000-0000-0000-000000000319",
},
"complainedCount": {
- "id": "00000000-0000-0000-0000-000000000302",
+ "id": "00000000-0000-0000-0000-000000000320",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000304",
+ "id": "00000000-0000-0000-0000-000000000322",
},
"failedCount": {
- "id": "00000000-0000-0000-0000-000000000300",
+ "id": "00000000-0000-0000-0000-000000000318",
},
"fromAddress": {
- "id": "00000000-0000-0000-0000-000000000297",
+ "id": "00000000-0000-0000-0000-000000000315",
},
"list": {
- "id": "00000000-0000-0000-0000-000000000296",
+ "id": "00000000-0000-0000-0000-000000000314",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000293",
+ "id": "00000000-0000-0000-0000-000000000311",
},
"recipients": {
- "id": "00000000-0000-0000-0000-000000000303",
+ "id": "00000000-0000-0000-0000-000000000321",
},
"sentAt": {
- "id": "00000000-0000-0000-0000-000000000298",
+ "id": "00000000-0000-0000-0000-000000000316",
},
"sentCount": {
- "id": "00000000-0000-0000-0000-000000000299",
+ "id": "00000000-0000-0000-0000-000000000317",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000295",
+ "id": "00000000-0000-0000-0000-000000000313",
},
"subject": {
- "id": "00000000-0000-0000-0000-000000000294",
+ "id": "00000000-0000-0000-0000-000000000312",
},
},
"viewGroups": {},
},
"messageCampaignRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000313",
+ "id": "00000000-0000-0000-0000-000000000331",
"viewFieldGroups": {
"stats": {
- "id": "00000000-0000-0000-0000-000000000312",
+ "id": "00000000-0000-0000-0000-000000000330",
},
},
"viewFields": {
"bouncedCount": {
- "id": "00000000-0000-0000-0000-000000000310",
+ "id": "00000000-0000-0000-0000-000000000328",
},
"complainedCount": {
- "id": "00000000-0000-0000-0000-000000000311",
+ "id": "00000000-0000-0000-0000-000000000329",
},
"failedCount": {
- "id": "00000000-0000-0000-0000-000000000309",
+ "id": "00000000-0000-0000-0000-000000000327",
},
"sentAt": {
- "id": "00000000-0000-0000-0000-000000000307",
+ "id": "00000000-0000-0000-0000-000000000325",
},
"sentCount": {
- "id": "00000000-0000-0000-0000-000000000308",
+ "id": "00000000-0000-0000-0000-000000000326",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000306",
+ "id": "00000000-0000-0000-0000-000000000324",
},
},
"viewGroups": {},
@@ -1143,103 +1200,103 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"messageChannelMessageAssociation": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000345",
+ "id": "00000000-0000-0000-0000-000000000363",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000348",
+ "id": "00000000-0000-0000-0000-000000000366",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000347",
+ "id": "00000000-0000-0000-0000-000000000365",
},
"direction": {
- "id": "00000000-0000-0000-0000-000000000357",
+ "id": "00000000-0000-0000-0000-000000000375",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000344",
+ "id": "00000000-0000-0000-0000-000000000362",
},
"message": {
- "id": "00000000-0000-0000-0000-000000000353",
+ "id": "00000000-0000-0000-0000-000000000371",
},
"messageChannelId": {
- "id": "00000000-0000-0000-0000-000000000352",
+ "id": "00000000-0000-0000-0000-000000000370",
},
"messageExternalId": {
- "id": "00000000-0000-0000-0000-000000000354",
+ "id": "00000000-0000-0000-0000-000000000372",
},
"messageFolders": {
- "id": "00000000-0000-0000-0000-000000000358",
+ "id": "00000000-0000-0000-0000-000000000376",
},
"messageThread": {
- "id": "00000000-0000-0000-0000-000000000355",
+ "id": "00000000-0000-0000-0000-000000000373",
},
"messageThreadExternalId": {
- "id": "00000000-0000-0000-0000-000000000356",
+ "id": "00000000-0000-0000-0000-000000000374",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000350",
+ "id": "00000000-0000-0000-0000-000000000368",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000351",
+ "id": "00000000-0000-0000-0000-000000000369",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000346",
+ "id": "00000000-0000-0000-0000-000000000364",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000349",
+ "id": "00000000-0000-0000-0000-000000000367",
},
},
- "id": "00000000-0000-0000-0000-000000000374",
+ "id": "00000000-0000-0000-0000-000000000392",
"views": {
"allMessageChannelMessageAssociations": {
- "id": "00000000-0000-0000-0000-000000000364",
+ "id": "00000000-0000-0000-0000-000000000382",
"viewFieldGroups": {},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000363",
+ "id": "00000000-0000-0000-0000-000000000381",
},
"direction": {
- "id": "00000000-0000-0000-0000-000000000362",
+ "id": "00000000-0000-0000-0000-000000000380",
},
"message": {
- "id": "00000000-0000-0000-0000-000000000360",
+ "id": "00000000-0000-0000-0000-000000000378",
},
"messageChannelId": {
- "id": "00000000-0000-0000-0000-000000000359",
+ "id": "00000000-0000-0000-0000-000000000377",
},
"messageExternalId": {
- "id": "00000000-0000-0000-0000-000000000361",
+ "id": "00000000-0000-0000-0000-000000000379",
},
},
"viewGroups": {},
},
"messageChannelMessageAssociationRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000373",
+ "id": "00000000-0000-0000-0000-000000000391",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000371",
+ "id": "00000000-0000-0000-0000-000000000389",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000372",
+ "id": "00000000-0000-0000-0000-000000000390",
},
},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000369",
+ "id": "00000000-0000-0000-0000-000000000387",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000370",
+ "id": "00000000-0000-0000-0000-000000000388",
},
"direction": {
- "id": "00000000-0000-0000-0000-000000000368",
+ "id": "00000000-0000-0000-0000-000000000386",
},
"message": {
- "id": "00000000-0000-0000-0000-000000000366",
+ "id": "00000000-0000-0000-0000-000000000384",
},
"messageChannelId": {
- "id": "00000000-0000-0000-0000-000000000365",
+ "id": "00000000-0000-0000-0000-000000000383",
},
"messageExternalId": {
- "id": "00000000-0000-0000-0000-000000000367",
+ "id": "00000000-0000-0000-0000-000000000385",
},
},
"viewGroups": {},
@@ -1249,76 +1306,76 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"messageChannelMessageAssociationMessageFolder": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000376",
+ "id": "00000000-0000-0000-0000-000000000394",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000379",
+ "id": "00000000-0000-0000-0000-000000000397",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000378",
+ "id": "00000000-0000-0000-0000-000000000396",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000375",
+ "id": "00000000-0000-0000-0000-000000000393",
},
"messageChannelMessageAssociation": {
- "id": "00000000-0000-0000-0000-000000000383",
+ "id": "00000000-0000-0000-0000-000000000401",
},
"messageFolderId": {
- "id": "00000000-0000-0000-0000-000000000384",
+ "id": "00000000-0000-0000-0000-000000000402",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000381",
+ "id": "00000000-0000-0000-0000-000000000399",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000382",
+ "id": "00000000-0000-0000-0000-000000000400",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000377",
+ "id": "00000000-0000-0000-0000-000000000395",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000380",
+ "id": "00000000-0000-0000-0000-000000000398",
},
},
- "id": "00000000-0000-0000-0000-000000000396",
+ "id": "00000000-0000-0000-0000-000000000414",
"views": {
"allMessageChannelMessageAssociationMessageFolders": {
- "id": "00000000-0000-0000-0000-000000000388",
+ "id": "00000000-0000-0000-0000-000000000406",
"viewFieldGroups": {},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000387",
+ "id": "00000000-0000-0000-0000-000000000405",
},
"messageChannelMessageAssociation": {
- "id": "00000000-0000-0000-0000-000000000385",
+ "id": "00000000-0000-0000-0000-000000000403",
},
"messageFolderId": {
- "id": "00000000-0000-0000-0000-000000000386",
+ "id": "00000000-0000-0000-0000-000000000404",
},
},
"viewGroups": {},
},
"messageChannelMessageAssociationMessageFolderRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000395",
+ "id": "00000000-0000-0000-0000-000000000413",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000393",
+ "id": "00000000-0000-0000-0000-000000000411",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000394",
+ "id": "00000000-0000-0000-0000-000000000412",
},
},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000391",
+ "id": "00000000-0000-0000-0000-000000000409",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000392",
+ "id": "00000000-0000-0000-0000-000000000410",
},
"messageChannelMessageAssociation": {
- "id": "00000000-0000-0000-0000-000000000389",
+ "id": "00000000-0000-0000-0000-000000000407",
},
"messageFolderId": {
- "id": "00000000-0000-0000-0000-000000000390",
+ "id": "00000000-0000-0000-0000-000000000408",
},
},
"viewGroups": {},
@@ -1328,59 +1385,59 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"messageList": {
"fields": {
"campaigns": {
- "id": "00000000-0000-0000-0000-000000000325",
+ "id": "00000000-0000-0000-0000-000000000343",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000316",
+ "id": "00000000-0000-0000-0000-000000000334",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000319",
+ "id": "00000000-0000-0000-0000-000000000337",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000318",
+ "id": "00000000-0000-0000-0000-000000000336",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000315",
+ "id": "00000000-0000-0000-0000-000000000333",
},
"members": {
- "id": "00000000-0000-0000-0000-000000000324",
+ "id": "00000000-0000-0000-0000-000000000342",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000323",
+ "id": "00000000-0000-0000-0000-000000000341",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000321",
+ "id": "00000000-0000-0000-0000-000000000339",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000322",
+ "id": "00000000-0000-0000-0000-000000000340",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000326",
+ "id": "00000000-0000-0000-0000-000000000344",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000317",
+ "id": "00000000-0000-0000-0000-000000000335",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000320",
+ "id": "00000000-0000-0000-0000-000000000338",
},
},
- "id": "00000000-0000-0000-0000-000000000332",
+ "id": "00000000-0000-0000-0000-000000000350",
"views": {
"allMessageLists": {
- "id": "00000000-0000-0000-0000-000000000331",
+ "id": "00000000-0000-0000-0000-000000000349",
"viewFieldGroups": {},
"viewFields": {
"campaigns": {
- "id": "00000000-0000-0000-0000-000000000329",
+ "id": "00000000-0000-0000-0000-000000000347",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000330",
+ "id": "00000000-0000-0000-0000-000000000348",
},
"members": {
- "id": "00000000-0000-0000-0000-000000000328",
+ "id": "00000000-0000-0000-0000-000000000346",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000327",
+ "id": "00000000-0000-0000-0000-000000000345",
},
},
"viewGroups": {},
@@ -1390,148 +1447,148 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"messageListMember": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000334",
+ "id": "00000000-0000-0000-0000-000000000352",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000337",
+ "id": "00000000-0000-0000-0000-000000000355",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000336",
+ "id": "00000000-0000-0000-0000-000000000354",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000333",
+ "id": "00000000-0000-0000-0000-000000000351",
},
"list": {
- "id": "00000000-0000-0000-0000-000000000342",
+ "id": "00000000-0000-0000-0000-000000000360",
},
"person": {
- "id": "00000000-0000-0000-0000-000000000341",
+ "id": "00000000-0000-0000-0000-000000000359",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000339",
+ "id": "00000000-0000-0000-0000-000000000357",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000340",
+ "id": "00000000-0000-0000-0000-000000000358",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000335",
+ "id": "00000000-0000-0000-0000-000000000353",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000338",
+ "id": "00000000-0000-0000-0000-000000000356",
},
},
- "id": "00000000-0000-0000-0000-000000000343",
+ "id": "00000000-0000-0000-0000-000000000361",
"views": undefined,
},
"messageParticipant": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000398",
+ "id": "00000000-0000-0000-0000-000000000416",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000401",
+ "id": "00000000-0000-0000-0000-000000000419",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000400",
+ "id": "00000000-0000-0000-0000-000000000418",
},
"displayName": {
- "id": "00000000-0000-0000-0000-000000000408",
+ "id": "00000000-0000-0000-0000-000000000426",
},
"handle": {
- "id": "00000000-0000-0000-0000-000000000407",
+ "id": "00000000-0000-0000-0000-000000000425",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000397",
+ "id": "00000000-0000-0000-0000-000000000415",
},
"message": {
- "id": "00000000-0000-0000-0000-000000000405",
+ "id": "00000000-0000-0000-0000-000000000423",
},
"messageCampaign": {
- "id": "00000000-0000-0000-0000-000000000411",
+ "id": "00000000-0000-0000-0000-000000000429",
},
"person": {
- "id": "00000000-0000-0000-0000-000000000409",
+ "id": "00000000-0000-0000-0000-000000000427",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000403",
+ "id": "00000000-0000-0000-0000-000000000421",
},
"role": {
- "id": "00000000-0000-0000-0000-000000000406",
+ "id": "00000000-0000-0000-0000-000000000424",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000404",
+ "id": "00000000-0000-0000-0000-000000000422",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000399",
+ "id": "00000000-0000-0000-0000-000000000417",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000402",
+ "id": "00000000-0000-0000-0000-000000000420",
},
"workspaceMember": {
- "id": "00000000-0000-0000-0000-000000000410",
+ "id": "00000000-0000-0000-0000-000000000428",
},
},
- "id": "00000000-0000-0000-0000-000000000430",
+ "id": "00000000-0000-0000-0000-000000000448",
"views": {
"allMessageParticipants": {
- "id": "00000000-0000-0000-0000-000000000419",
+ "id": "00000000-0000-0000-0000-000000000437",
"viewFieldGroups": {},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000418",
+ "id": "00000000-0000-0000-0000-000000000436",
},
"displayName": {
- "id": "00000000-0000-0000-0000-000000000415",
+ "id": "00000000-0000-0000-0000-000000000433",
},
"handle": {
- "id": "00000000-0000-0000-0000-000000000414",
+ "id": "00000000-0000-0000-0000-000000000432",
},
"message": {
- "id": "00000000-0000-0000-0000-000000000412",
+ "id": "00000000-0000-0000-0000-000000000430",
},
"person": {
- "id": "00000000-0000-0000-0000-000000000416",
+ "id": "00000000-0000-0000-0000-000000000434",
},
"role": {
- "id": "00000000-0000-0000-0000-000000000413",
+ "id": "00000000-0000-0000-0000-000000000431",
},
"workspaceMember": {
- "id": "00000000-0000-0000-0000-000000000417",
+ "id": "00000000-0000-0000-0000-000000000435",
},
},
"viewGroups": {},
},
"messageParticipantRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000429",
+ "id": "00000000-0000-0000-0000-000000000447",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000427",
+ "id": "00000000-0000-0000-0000-000000000445",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000428",
+ "id": "00000000-0000-0000-0000-000000000446",
},
},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000425",
+ "id": "00000000-0000-0000-0000-000000000443",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000426",
+ "id": "00000000-0000-0000-0000-000000000444",
},
"displayName": {
- "id": "00000000-0000-0000-0000-000000000422",
+ "id": "00000000-0000-0000-0000-000000000440",
},
"message": {
- "id": "00000000-0000-0000-0000-000000000420",
+ "id": "00000000-0000-0000-0000-000000000438",
},
"person": {
- "id": "00000000-0000-0000-0000-000000000423",
+ "id": "00000000-0000-0000-0000-000000000441",
},
"role": {
- "id": "00000000-0000-0000-0000-000000000421",
+ "id": "00000000-0000-0000-0000-000000000439",
},
"workspaceMember": {
- "id": "00000000-0000-0000-0000-000000000424",
+ "id": "00000000-0000-0000-0000-000000000442",
},
},
"viewGroups": {},
@@ -1541,162 +1598,213 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"messageThread": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000432",
+ "id": "00000000-0000-0000-0000-000000000450",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000435",
+ "id": "00000000-0000-0000-0000-000000000453",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000434",
+ "id": "00000000-0000-0000-0000-000000000452",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000431",
+ "id": "00000000-0000-0000-0000-000000000449",
},
"messageChannelMessageAssociations": {
- "id": "00000000-0000-0000-0000-000000000440",
+ "id": "00000000-0000-0000-0000-000000000458",
+ },
+ "messageThreadTargets": {
+ "id": "00000000-0000-0000-0000-000000000460",
},
"messages": {
- "id": "00000000-0000-0000-0000-000000000439",
+ "id": "00000000-0000-0000-0000-000000000457",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000437",
+ "id": "00000000-0000-0000-0000-000000000455",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000438",
+ "id": "00000000-0000-0000-0000-000000000456",
},
"subject": {
- "id": "00000000-0000-0000-0000-000000000441",
+ "id": "00000000-0000-0000-0000-000000000459",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000433",
+ "id": "00000000-0000-0000-0000-000000000451",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000436",
+ "id": "00000000-0000-0000-0000-000000000454",
},
},
- "id": "00000000-0000-0000-0000-000000000447",
+ "id": "00000000-0000-0000-0000-000000000466",
"views": {
"allMessageThreads": {
- "id": "00000000-0000-0000-0000-000000000446",
+ "id": "00000000-0000-0000-0000-000000000465",
"viewFieldGroups": {},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000445",
+ "id": "00000000-0000-0000-0000-000000000464",
},
"messages": {
- "id": "00000000-0000-0000-0000-000000000443",
+ "id": "00000000-0000-0000-0000-000000000462",
},
"subject": {
- "id": "00000000-0000-0000-0000-000000000442",
+ "id": "00000000-0000-0000-0000-000000000461",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000444",
+ "id": "00000000-0000-0000-0000-000000000463",
},
},
"viewGroups": {},
},
},
},
+ "messageThreadTarget": {
+ "fields": {
+ "createdAt": {
+ "id": "00000000-0000-0000-0000-000000000468",
+ },
+ "createdBy": {
+ "id": "00000000-0000-0000-0000-000000000471",
+ },
+ "deletedAt": {
+ "id": "00000000-0000-0000-0000-000000000470",
+ },
+ "id": {
+ "id": "00000000-0000-0000-0000-000000000467",
+ },
+ "isAutomaticallyAssigned": {
+ "id": "00000000-0000-0000-0000-000000000476",
+ },
+ "isManuallyAssigned": {
+ "id": "00000000-0000-0000-0000-000000000477",
+ },
+ "messageThread": {
+ "id": "00000000-0000-0000-0000-000000000475",
+ },
+ "position": {
+ "id": "00000000-0000-0000-0000-000000000473",
+ },
+ "searchVector": {
+ "id": "00000000-0000-0000-0000-000000000474",
+ },
+ "targetCompany": {
+ "id": "00000000-0000-0000-0000-000000000479",
+ },
+ "targetOpportunity": {
+ "id": "00000000-0000-0000-0000-000000000480",
+ },
+ "targetPerson": {
+ "id": "00000000-0000-0000-0000-000000000478",
+ },
+ "updatedAt": {
+ "id": "00000000-0000-0000-0000-000000000469",
+ },
+ "updatedBy": {
+ "id": "00000000-0000-0000-0000-000000000472",
+ },
+ },
+ "id": "00000000-0000-0000-0000-000000000481",
+ "views": {},
+ },
"note": {
"fields": {
"attachments": {
- "id": "00000000-0000-0000-0000-000000000486",
+ "id": "00000000-0000-0000-0000-000000000520",
},
"bodyV2": {
- "id": "00000000-0000-0000-0000-000000000484",
+ "id": "00000000-0000-0000-0000-000000000518",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000476",
+ "id": "00000000-0000-0000-0000-000000000510",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000479",
+ "id": "00000000-0000-0000-0000-000000000513",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000478",
+ "id": "00000000-0000-0000-0000-000000000512",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000475",
+ "id": "00000000-0000-0000-0000-000000000509",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000485",
+ "id": "00000000-0000-0000-0000-000000000519",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000481",
+ "id": "00000000-0000-0000-0000-000000000515",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000482",
+ "id": "00000000-0000-0000-0000-000000000516",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000487",
+ "id": "00000000-0000-0000-0000-000000000521",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000483",
+ "id": "00000000-0000-0000-0000-000000000517",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000477",
+ "id": "00000000-0000-0000-0000-000000000511",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000480",
+ "id": "00000000-0000-0000-0000-000000000514",
},
},
- "id": "00000000-0000-0000-0000-000000000505",
+ "id": "00000000-0000-0000-0000-000000000539",
"views": {
"allNotes": {
- "id": "00000000-0000-0000-0000-000000000493",
+ "id": "00000000-0000-0000-0000-000000000527",
"viewFieldGroups": {},
"viewFields": {
"bodyV2": {
- "id": "00000000-0000-0000-0000-000000000490",
+ "id": "00000000-0000-0000-0000-000000000524",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000492",
+ "id": "00000000-0000-0000-0000-000000000526",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000491",
+ "id": "00000000-0000-0000-0000-000000000525",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000489",
+ "id": "00000000-0000-0000-0000-000000000523",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000488",
+ "id": "00000000-0000-0000-0000-000000000522",
},
},
"viewGroups": {},
},
"noteRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000504",
+ "id": "00000000-0000-0000-0000-000000000538",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000502",
+ "id": "00000000-0000-0000-0000-000000000536",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000503",
+ "id": "00000000-0000-0000-0000-000000000537",
},
},
"viewFields": {
"attachments": {
- "id": "00000000-0000-0000-0000-000000000500",
+ "id": "00000000-0000-0000-0000-000000000534",
},
"bodyV2": {
- "id": "00000000-0000-0000-0000-000000000497",
+ "id": "00000000-0000-0000-0000-000000000531",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000494",
+ "id": "00000000-0000-0000-0000-000000000528",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000495",
+ "id": "00000000-0000-0000-0000-000000000529",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000496",
+ "id": "00000000-0000-0000-0000-000000000530",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000501",
+ "id": "00000000-0000-0000-0000-000000000535",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000498",
+ "id": "00000000-0000-0000-0000-000000000532",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000499",
+ "id": "00000000-0000-0000-0000-000000000533",
},
},
"viewGroups": {},
@@ -1706,62 +1814,62 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"noteTarget": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000507",
+ "id": "00000000-0000-0000-0000-000000000541",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000510",
+ "id": "00000000-0000-0000-0000-000000000544",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000509",
+ "id": "00000000-0000-0000-0000-000000000543",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000506",
+ "id": "00000000-0000-0000-0000-000000000540",
},
"note": {
- "id": "00000000-0000-0000-0000-000000000514",
+ "id": "00000000-0000-0000-0000-000000000548",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000512",
+ "id": "00000000-0000-0000-0000-000000000546",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000513",
+ "id": "00000000-0000-0000-0000-000000000547",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000516",
+ "id": "00000000-0000-0000-0000-000000000550",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000517",
+ "id": "00000000-0000-0000-0000-000000000551",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000515",
+ "id": "00000000-0000-0000-0000-000000000549",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000508",
+ "id": "00000000-0000-0000-0000-000000000542",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000511",
+ "id": "00000000-0000-0000-0000-000000000545",
},
},
- "id": "00000000-0000-0000-0000-000000000524",
+ "id": "00000000-0000-0000-0000-000000000558",
"views": {
"allNoteTargets": {
- "id": "00000000-0000-0000-0000-000000000523",
+ "id": "00000000-0000-0000-0000-000000000557",
"viewFieldGroups": {},
"viewFields": {
"id": {
- "id": "00000000-0000-0000-0000-000000000518",
+ "id": "00000000-0000-0000-0000-000000000552",
},
"note": {
- "id": "00000000-0000-0000-0000-000000000519",
+ "id": "00000000-0000-0000-0000-000000000553",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000521",
+ "id": "00000000-0000-0000-0000-000000000555",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000522",
+ "id": "00000000-0000-0000-0000-000000000556",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000520",
+ "id": "00000000-0000-0000-0000-000000000554",
},
},
"viewGroups": {},
@@ -1771,186 +1879,192 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"opportunity": {
"fields": {
"amount": {
- "id": "00000000-0000-0000-0000-000000000534",
+ "id": "00000000-0000-0000-0000-000000000568",
},
"attachments": {
- "id": "00000000-0000-0000-0000-000000000542",
+ "id": "00000000-0000-0000-0000-000000000578",
+ },
+ "calendarEventTargets": {
+ "id": "00000000-0000-0000-0000-000000000576",
},
"closeDate": {
- "id": "00000000-0000-0000-0000-000000000535",
+ "id": "00000000-0000-0000-0000-000000000569",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000538",
+ "id": "00000000-0000-0000-0000-000000000572",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000526",
+ "id": "00000000-0000-0000-0000-000000000560",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000529",
+ "id": "00000000-0000-0000-0000-000000000563",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000528",
+ "id": "00000000-0000-0000-0000-000000000562",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000525",
+ "id": "00000000-0000-0000-0000-000000000559",
+ },
+ "messageThreadTargets": {
+ "id": "00000000-0000-0000-0000-000000000577",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000533",
+ "id": "00000000-0000-0000-0000-000000000567",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000541",
+ "id": "00000000-0000-0000-0000-000000000575",
},
"owner": {
- "id": "00000000-0000-0000-0000-000000000539",
+ "id": "00000000-0000-0000-0000-000000000573",
},
"pointOfContact": {
- "id": "00000000-0000-0000-0000-000000000537",
+ "id": "00000000-0000-0000-0000-000000000571",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000531",
+ "id": "00000000-0000-0000-0000-000000000565",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000532",
+ "id": "00000000-0000-0000-0000-000000000566",
},
"stage": {
- "id": "00000000-0000-0000-0000-000000000536",
+ "id": "00000000-0000-0000-0000-000000000570",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000540",
+ "id": "00000000-0000-0000-0000-000000000574",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000543",
+ "id": "00000000-0000-0000-0000-000000000579",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000527",
+ "id": "00000000-0000-0000-0000-000000000561",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000530",
+ "id": "00000000-0000-0000-0000-000000000564",
},
},
- "id": "00000000-0000-0000-0000-000000000581",
+ "id": "00000000-0000-0000-0000-000000000617",
"views": {
"allOpportunities": {
- "id": "00000000-0000-0000-0000-000000000550",
+ "id": "00000000-0000-0000-0000-000000000586",
"viewFieldGroups": {},
"viewFields": {
"amount": {
- "id": "00000000-0000-0000-0000-000000000545",
+ "id": "00000000-0000-0000-0000-000000000581",
},
"closeDate": {
- "id": "00000000-0000-0000-0000-000000000547",
+ "id": "00000000-0000-0000-0000-000000000583",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000548",
+ "id": "00000000-0000-0000-0000-000000000584",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000546",
+ "id": "00000000-0000-0000-0000-000000000582",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000544",
+ "id": "00000000-0000-0000-0000-000000000580",
},
"pointOfContact": {
- "id": "00000000-0000-0000-0000-000000000549",
+ "id": "00000000-0000-0000-0000-000000000585",
},
},
"viewGroups": {},
},
"byStage": {
- "id": "00000000-0000-0000-0000-000000000562",
+ "id": "00000000-0000-0000-0000-000000000598",
"viewFieldGroups": {},
"viewFields": {
"amount": {
- "id": "00000000-0000-0000-0000-000000000552",
+ "id": "00000000-0000-0000-0000-000000000588",
},
"closeDate": {
- "id": "00000000-0000-0000-0000-000000000554",
+ "id": "00000000-0000-0000-0000-000000000590",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000555",
+ "id": "00000000-0000-0000-0000-000000000591",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000553",
+ "id": "00000000-0000-0000-0000-000000000589",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000551",
+ "id": "00000000-0000-0000-0000-000000000587",
},
"pointOfContact": {
- "id": "00000000-0000-0000-0000-000000000556",
+ "id": "00000000-0000-0000-0000-000000000592",
},
},
"viewGroups": {
"customer": {
- "id": "00000000-0000-0000-0000-000000000561",
+ "id": "00000000-0000-0000-0000-000000000597",
},
"meeting": {
- "id": "00000000-0000-0000-0000-000000000559",
+ "id": "00000000-0000-0000-0000-000000000595",
},
"new": {
- "id": "00000000-0000-0000-0000-000000000557",
+ "id": "00000000-0000-0000-0000-000000000593",
},
"proposal": {
- "id": "00000000-0000-0000-0000-000000000560",
+ "id": "00000000-0000-0000-0000-000000000596",
},
"screening": {
- "id": "00000000-0000-0000-0000-000000000558",
+ "id": "00000000-0000-0000-0000-000000000594",
},
},
},
"opportunityRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000580",
+ "id": "00000000-0000-0000-0000-000000000616",
"viewFieldGroups": {
"deal": {
- "id": "00000000-0000-0000-0000-000000000577",
+ "id": "00000000-0000-0000-0000-000000000613",
},
"relations": {
- "id": "00000000-0000-0000-0000-000000000578",
+ "id": "00000000-0000-0000-0000-000000000614",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000579",
+ "id": "00000000-0000-0000-0000-000000000615",
},
},
"viewFields": {
"amount": {
- "id": "00000000-0000-0000-0000-000000000563",
+ "id": "00000000-0000-0000-0000-000000000599",
},
"attachments": {
- "id": "00000000-0000-0000-0000-000000000575",
+ "id": "00000000-0000-0000-0000-000000000611",
},
"closeDate": {
- "id": "00000000-0000-0000-0000-000000000564",
+ "id": "00000000-0000-0000-0000-000000000600",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000566",
+ "id": "00000000-0000-0000-0000-000000000602",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000569",
+ "id": "00000000-0000-0000-0000-000000000605",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000570",
+ "id": "00000000-0000-0000-0000-000000000606",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000574",
+ "id": "00000000-0000-0000-0000-000000000610",
},
"owner": {
- "id": "00000000-0000-0000-0000-000000000568",
+ "id": "00000000-0000-0000-0000-000000000604",
},
"pointOfContact": {
- "id": "00000000-0000-0000-0000-000000000567",
+ "id": "00000000-0000-0000-0000-000000000603",
},
"stage": {
- "id": "00000000-0000-0000-0000-000000000565",
+ "id": "00000000-0000-0000-0000-000000000601",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000573",
+ "id": "00000000-0000-0000-0000-000000000609",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000576",
+ "id": "00000000-0000-0000-0000-000000000612",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000571",
+ "id": "00000000-0000-0000-0000-000000000607",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000572",
+ "id": "00000000-0000-0000-0000-000000000608",
},
},
"viewGroups": {},
@@ -1960,181 +2074,187 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"person": {
"fields": {
"attachments": {
- "id": "00000000-0000-0000-0000-000000000601",
+ "id": "00000000-0000-0000-0000-000000000639",
},
"avatarFile": {
- "id": "00000000-0000-0000-0000-000000000596",
+ "id": "00000000-0000-0000-0000-000000000632",
},
"avatarUrl": {
- "id": "00000000-0000-0000-0000-000000000595",
+ "id": "00000000-0000-0000-0000-000000000631",
},
"calendarEventParticipants": {
- "id": "00000000-0000-0000-0000-000000000603",
+ "id": "00000000-0000-0000-0000-000000000641",
+ },
+ "calendarEventTargets": {
+ "id": "00000000-0000-0000-0000-000000000637",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000597",
+ "id": "00000000-0000-0000-0000-000000000633",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000583",
+ "id": "00000000-0000-0000-0000-000000000619",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000586",
+ "id": "00000000-0000-0000-0000-000000000622",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000585",
+ "id": "00000000-0000-0000-0000-000000000621",
},
"emails": {
- "id": "00000000-0000-0000-0000-000000000591",
+ "id": "00000000-0000-0000-0000-000000000627",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000582",
+ "id": "00000000-0000-0000-0000-000000000618",
},
"jobTitle": {
- "id": "00000000-0000-0000-0000-000000000593",
+ "id": "00000000-0000-0000-0000-000000000629",
},
"linkedinLink": {
- "id": "00000000-0000-0000-0000-000000000592",
+ "id": "00000000-0000-0000-0000-000000000628",
},
"listMemberships": {
- "id": "00000000-0000-0000-0000-000000000605",
+ "id": "00000000-0000-0000-0000-000000000643",
},
"messageParticipants": {
- "id": "00000000-0000-0000-0000-000000000602",
+ "id": "00000000-0000-0000-0000-000000000640",
+ },
+ "messageThreadTargets": {
+ "id": "00000000-0000-0000-0000-000000000638",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000590",
+ "id": "00000000-0000-0000-0000-000000000626",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000600",
+ "id": "00000000-0000-0000-0000-000000000636",
},
"phones": {
- "id": "00000000-0000-0000-0000-000000000594",
+ "id": "00000000-0000-0000-0000-000000000630",
},
"pointOfContactForOpportunities": {
- "id": "00000000-0000-0000-0000-000000000598",
+ "id": "00000000-0000-0000-0000-000000000634",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000588",
+ "id": "00000000-0000-0000-0000-000000000624",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000589",
+ "id": "00000000-0000-0000-0000-000000000625",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000599",
+ "id": "00000000-0000-0000-0000-000000000635",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000604",
+ "id": "00000000-0000-0000-0000-000000000642",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000584",
+ "id": "00000000-0000-0000-0000-000000000620",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000587",
+ "id": "00000000-0000-0000-0000-000000000623",
},
},
- "id": "00000000-0000-0000-0000-000000000638",
+ "id": "00000000-0000-0000-0000-000000000676",
"views": {
"allPeople": {
- "id": "00000000-0000-0000-0000-000000000614",
+ "id": "00000000-0000-0000-0000-000000000652",
"viewFieldGroups": {},
"viewFields": {
"company": {
- "id": "00000000-0000-0000-0000-000000000609",
+ "id": "00000000-0000-0000-0000-000000000647",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000611",
+ "id": "00000000-0000-0000-0000-000000000649",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000608",
+ "id": "00000000-0000-0000-0000-000000000646",
},
"emails": {
- "id": "00000000-0000-0000-0000-000000000607",
+ "id": "00000000-0000-0000-0000-000000000645",
},
"jobTitle": {
- "id": "00000000-0000-0000-0000-000000000612",
+ "id": "00000000-0000-0000-0000-000000000650",
},
"linkedinLink": {
- "id": "00000000-0000-0000-0000-000000000613",
+ "id": "00000000-0000-0000-0000-000000000651",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000606",
+ "id": "00000000-0000-0000-0000-000000000644",
},
"phones": {
- "id": "00000000-0000-0000-0000-000000000610",
+ "id": "00000000-0000-0000-0000-000000000648",
},
},
"viewGroups": {},
},
"personRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000637",
+ "id": "00000000-0000-0000-0000-000000000675",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000633",
+ "id": "00000000-0000-0000-0000-000000000671",
},
"social": {
- "id": "00000000-0000-0000-0000-000000000635",
+ "id": "00000000-0000-0000-0000-000000000673",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000636",
+ "id": "00000000-0000-0000-0000-000000000674",
},
"work": {
- "id": "00000000-0000-0000-0000-000000000634",
+ "id": "00000000-0000-0000-0000-000000000672",
},
},
"viewFields": {
"attachments": {
- "id": "00000000-0000-0000-0000-000000000629",
+ "id": "00000000-0000-0000-0000-000000000667",
},
"avatarFile": {
- "id": "00000000-0000-0000-0000-000000000625",
+ "id": "00000000-0000-0000-0000-000000000663",
},
"avatarUrl": {
- "id": "00000000-0000-0000-0000-000000000620",
+ "id": "00000000-0000-0000-0000-000000000658",
},
"calendarEventParticipants": {
- "id": "00000000-0000-0000-0000-000000000631",
+ "id": "00000000-0000-0000-0000-000000000669",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000617",
+ "id": "00000000-0000-0000-0000-000000000655",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000621",
+ "id": "00000000-0000-0000-0000-000000000659",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000622",
+ "id": "00000000-0000-0000-0000-000000000660",
},
"emails": {
- "id": "00000000-0000-0000-0000-000000000615",
+ "id": "00000000-0000-0000-0000-000000000653",
},
"jobTitle": {
- "id": "00000000-0000-0000-0000-000000000618",
+ "id": "00000000-0000-0000-0000-000000000656",
},
"linkedinLink": {
- "id": "00000000-0000-0000-0000-000000000619",
+ "id": "00000000-0000-0000-0000-000000000657",
},
"messageParticipants": {
- "id": "00000000-0000-0000-0000-000000000630",
+ "id": "00000000-0000-0000-0000-000000000668",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000628",
+ "id": "00000000-0000-0000-0000-000000000666",
},
"phones": {
- "id": "00000000-0000-0000-0000-000000000616",
+ "id": "00000000-0000-0000-0000-000000000654",
},
"pointOfContactForOpportunities": {
- "id": "00000000-0000-0000-0000-000000000626",
+ "id": "00000000-0000-0000-0000-000000000664",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000627",
+ "id": "00000000-0000-0000-0000-000000000665",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000632",
+ "id": "00000000-0000-0000-0000-000000000670",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000623",
+ "id": "00000000-0000-0000-0000-000000000661",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000624",
+ "id": "00000000-0000-0000-0000-000000000662",
},
},
"viewGroups": {},
@@ -2144,203 +2264,203 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"task": {
"fields": {
"assignee": {
- "id": "00000000-0000-0000-0000-000000000653",
+ "id": "00000000-0000-0000-0000-000000000691",
},
"attachments": {
- "id": "00000000-0000-0000-0000-000000000652",
+ "id": "00000000-0000-0000-0000-000000000690",
},
"bodyV2": {
- "id": "00000000-0000-0000-0000-000000000648",
+ "id": "00000000-0000-0000-0000-000000000686",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000640",
+ "id": "00000000-0000-0000-0000-000000000678",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000643",
+ "id": "00000000-0000-0000-0000-000000000681",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000642",
+ "id": "00000000-0000-0000-0000-000000000680",
},
"dueAt": {
- "id": "00000000-0000-0000-0000-000000000649",
+ "id": "00000000-0000-0000-0000-000000000687",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000639",
+ "id": "00000000-0000-0000-0000-000000000677",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000645",
+ "id": "00000000-0000-0000-0000-000000000683",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000646",
+ "id": "00000000-0000-0000-0000-000000000684",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000650",
+ "id": "00000000-0000-0000-0000-000000000688",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000651",
+ "id": "00000000-0000-0000-0000-000000000689",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000654",
+ "id": "00000000-0000-0000-0000-000000000692",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000647",
+ "id": "00000000-0000-0000-0000-000000000685",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000641",
+ "id": "00000000-0000-0000-0000-000000000679",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000644",
+ "id": "00000000-0000-0000-0000-000000000682",
},
},
- "id": "00000000-0000-0000-0000-000000000699",
+ "id": "00000000-0000-0000-0000-000000000737",
"views": {
"allTasks": {
- "id": "00000000-0000-0000-0000-000000000663",
+ "id": "00000000-0000-0000-0000-000000000701",
"viewFieldGroups": {},
"viewFields": {
"assignee": {
- "id": "00000000-0000-0000-0000-000000000660",
+ "id": "00000000-0000-0000-0000-000000000698",
},
"bodyV2": {
- "id": "00000000-0000-0000-0000-000000000661",
+ "id": "00000000-0000-0000-0000-000000000699",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000662",
+ "id": "00000000-0000-0000-0000-000000000700",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000658",
+ "id": "00000000-0000-0000-0000-000000000696",
},
"dueAt": {
- "id": "00000000-0000-0000-0000-000000000659",
+ "id": "00000000-0000-0000-0000-000000000697",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000656",
+ "id": "00000000-0000-0000-0000-000000000694",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000657",
+ "id": "00000000-0000-0000-0000-000000000695",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000655",
+ "id": "00000000-0000-0000-0000-000000000693",
},
},
"viewGroups": {},
},
"assignedToMe": {
- "id": "00000000-0000-0000-0000-000000000675",
+ "id": "00000000-0000-0000-0000-000000000713",
"viewFieldGroups": {},
"viewFields": {
"assignee": {
- "id": "00000000-0000-0000-0000-000000000668",
+ "id": "00000000-0000-0000-0000-000000000706",
},
"bodyV2": {
- "id": "00000000-0000-0000-0000-000000000669",
+ "id": "00000000-0000-0000-0000-000000000707",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000670",
+ "id": "00000000-0000-0000-0000-000000000708",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000666",
+ "id": "00000000-0000-0000-0000-000000000704",
},
"dueAt": {
- "id": "00000000-0000-0000-0000-000000000667",
+ "id": "00000000-0000-0000-0000-000000000705",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000665",
+ "id": "00000000-0000-0000-0000-000000000703",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000664",
+ "id": "00000000-0000-0000-0000-000000000702",
},
},
"viewGroups": {
"done": {
- "id": "00000000-0000-0000-0000-000000000673",
+ "id": "00000000-0000-0000-0000-000000000711",
},
"empty": {
- "id": "00000000-0000-0000-0000-000000000674",
+ "id": "00000000-0000-0000-0000-000000000712",
},
"inProgress": {
- "id": "00000000-0000-0000-0000-000000000672",
+ "id": "00000000-0000-0000-0000-000000000710",
},
"todo": {
- "id": "00000000-0000-0000-0000-000000000671",
+ "id": "00000000-0000-0000-0000-000000000709",
},
},
},
"byStatus": {
- "id": "00000000-0000-0000-0000-000000000684",
+ "id": "00000000-0000-0000-0000-000000000722",
"viewFieldGroups": {},
"viewFields": {
"assignee": {
- "id": "00000000-0000-0000-0000-000000000679",
+ "id": "00000000-0000-0000-0000-000000000717",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000680",
+ "id": "00000000-0000-0000-0000-000000000718",
},
"dueAt": {
- "id": "00000000-0000-0000-0000-000000000678",
+ "id": "00000000-0000-0000-0000-000000000716",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000677",
+ "id": "00000000-0000-0000-0000-000000000715",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000676",
+ "id": "00000000-0000-0000-0000-000000000714",
},
},
"viewGroups": {
"done": {
- "id": "00000000-0000-0000-0000-000000000683",
+ "id": "00000000-0000-0000-0000-000000000721",
},
"inProgress": {
- "id": "00000000-0000-0000-0000-000000000682",
+ "id": "00000000-0000-0000-0000-000000000720",
},
"todo": {
- "id": "00000000-0000-0000-0000-000000000681",
+ "id": "00000000-0000-0000-0000-000000000719",
},
},
},
"taskRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000698",
+ "id": "00000000-0000-0000-0000-000000000736",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000696",
+ "id": "00000000-0000-0000-0000-000000000734",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000697",
+ "id": "00000000-0000-0000-0000-000000000735",
},
},
"viewFields": {
"assignee": {
- "id": "00000000-0000-0000-0000-000000000687",
+ "id": "00000000-0000-0000-0000-000000000725",
},
"attachments": {
- "id": "00000000-0000-0000-0000-000000000694",
+ "id": "00000000-0000-0000-0000-000000000732",
},
"bodyV2": {
- "id": "00000000-0000-0000-0000-000000000691",
+ "id": "00000000-0000-0000-0000-000000000729",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000688",
+ "id": "00000000-0000-0000-0000-000000000726",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000689",
+ "id": "00000000-0000-0000-0000-000000000727",
},
"dueAt": {
- "id": "00000000-0000-0000-0000-000000000685",
+ "id": "00000000-0000-0000-0000-000000000723",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000686",
+ "id": "00000000-0000-0000-0000-000000000724",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000690",
+ "id": "00000000-0000-0000-0000-000000000728",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000695",
+ "id": "00000000-0000-0000-0000-000000000733",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000692",
+ "id": "00000000-0000-0000-0000-000000000730",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000693",
+ "id": "00000000-0000-0000-0000-000000000731",
},
},
"viewGroups": {},
@@ -2350,62 +2470,62 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"taskTarget": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000701",
+ "id": "00000000-0000-0000-0000-000000000739",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000704",
+ "id": "00000000-0000-0000-0000-000000000742",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000703",
+ "id": "00000000-0000-0000-0000-000000000741",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000700",
+ "id": "00000000-0000-0000-0000-000000000738",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000706",
+ "id": "00000000-0000-0000-0000-000000000744",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000707",
+ "id": "00000000-0000-0000-0000-000000000745",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000710",
+ "id": "00000000-0000-0000-0000-000000000748",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000711",
+ "id": "00000000-0000-0000-0000-000000000749",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000709",
+ "id": "00000000-0000-0000-0000-000000000747",
},
"task": {
- "id": "00000000-0000-0000-0000-000000000708",
+ "id": "00000000-0000-0000-0000-000000000746",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000702",
+ "id": "00000000-0000-0000-0000-000000000740",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000705",
+ "id": "00000000-0000-0000-0000-000000000743",
},
},
- "id": "00000000-0000-0000-0000-000000000718",
+ "id": "00000000-0000-0000-0000-000000000756",
"views": {
"allTaskTargets": {
- "id": "00000000-0000-0000-0000-000000000717",
+ "id": "00000000-0000-0000-0000-000000000755",
"viewFieldGroups": {},
"viewFields": {
"id": {
- "id": "00000000-0000-0000-0000-000000000712",
+ "id": "00000000-0000-0000-0000-000000000750",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000715",
+ "id": "00000000-0000-0000-0000-000000000753",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000716",
+ "id": "00000000-0000-0000-0000-000000000754",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000714",
+ "id": "00000000-0000-0000-0000-000000000752",
},
"task": {
- "id": "00000000-0000-0000-0000-000000000713",
+ "id": "00000000-0000-0000-0000-000000000751",
},
},
"viewGroups": {},
@@ -2415,128 +2535,128 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"timelineActivity": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000720",
+ "id": "00000000-0000-0000-0000-000000000758",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000723",
+ "id": "00000000-0000-0000-0000-000000000761",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000722",
+ "id": "00000000-0000-0000-0000-000000000760",
},
"happensAt": {
- "id": "00000000-0000-0000-0000-000000000729",
+ "id": "00000000-0000-0000-0000-000000000767",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000719",
+ "id": "00000000-0000-0000-0000-000000000757",
},
"linkedObjectMetadataId": {
- "id": "00000000-0000-0000-0000-000000000745",
+ "id": "00000000-0000-0000-0000-000000000783",
},
"linkedRecordCachedName": {
- "id": "00000000-0000-0000-0000-000000000743",
+ "id": "00000000-0000-0000-0000-000000000781",
},
"linkedRecordId": {
- "id": "00000000-0000-0000-0000-000000000744",
+ "id": "00000000-0000-0000-0000-000000000782",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000725",
+ "id": "00000000-0000-0000-0000-000000000763",
},
"properties": {
- "id": "00000000-0000-0000-0000-000000000730",
+ "id": "00000000-0000-0000-0000-000000000768",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000726",
+ "id": "00000000-0000-0000-0000-000000000764",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000733",
+ "id": "00000000-0000-0000-0000-000000000771",
},
"targetDashboard": {
- "id": "00000000-0000-0000-0000-000000000740",
+ "id": "00000000-0000-0000-0000-000000000778",
},
"targetMessageCampaign": {
- "id": "00000000-0000-0000-0000-000000000742",
+ "id": "00000000-0000-0000-0000-000000000780",
},
"targetMessageList": {
- "id": "00000000-0000-0000-0000-000000000741",
+ "id": "00000000-0000-0000-0000-000000000779",
},
"targetNote": {
- "id": "00000000-0000-0000-0000-000000000736",
+ "id": "00000000-0000-0000-0000-000000000774",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000734",
+ "id": "00000000-0000-0000-0000-000000000772",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000732",
+ "id": "00000000-0000-0000-0000-000000000770",
},
"targetTask": {
- "id": "00000000-0000-0000-0000-000000000735",
+ "id": "00000000-0000-0000-0000-000000000773",
},
"targetWorkflow": {
- "id": "00000000-0000-0000-0000-000000000737",
+ "id": "00000000-0000-0000-0000-000000000775",
},
"targetWorkflowRun": {
- "id": "00000000-0000-0000-0000-000000000739",
+ "id": "00000000-0000-0000-0000-000000000777",
},
"targetWorkflowVersion": {
- "id": "00000000-0000-0000-0000-000000000738",
+ "id": "00000000-0000-0000-0000-000000000776",
},
"timelineActivityTypeId": {
- "id": "00000000-0000-0000-0000-000000000727",
+ "id": "00000000-0000-0000-0000-000000000765",
},
"timelineActivityTypeSnapshot": {
- "id": "00000000-0000-0000-0000-000000000728",
+ "id": "00000000-0000-0000-0000-000000000766",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000721",
+ "id": "00000000-0000-0000-0000-000000000759",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000724",
+ "id": "00000000-0000-0000-0000-000000000762",
},
"workspaceMember": {
- "id": "00000000-0000-0000-0000-000000000731",
+ "id": "00000000-0000-0000-0000-000000000769",
},
},
- "id": "00000000-0000-0000-0000-000000000759",
+ "id": "00000000-0000-0000-0000-000000000797",
"views": {
"allTimelineActivities": {
- "id": "00000000-0000-0000-0000-000000000758",
+ "id": "00000000-0000-0000-0000-000000000796",
"viewFieldGroups": {},
"viewFields": {
"happensAt": {
- "id": "00000000-0000-0000-0000-000000000747",
+ "id": "00000000-0000-0000-0000-000000000785",
},
"linkedRecordCachedName": {
- "id": "00000000-0000-0000-0000-000000000746",
+ "id": "00000000-0000-0000-0000-000000000784",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000750",
+ "id": "00000000-0000-0000-0000-000000000788",
},
"targetDashboard": {
- "id": "00000000-0000-0000-0000-000000000757",
+ "id": "00000000-0000-0000-0000-000000000795",
},
"targetNote": {
- "id": "00000000-0000-0000-0000-000000000753",
+ "id": "00000000-0000-0000-0000-000000000791",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000751",
+ "id": "00000000-0000-0000-0000-000000000789",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000749",
+ "id": "00000000-0000-0000-0000-000000000787",
},
"targetTask": {
- "id": "00000000-0000-0000-0000-000000000752",
+ "id": "00000000-0000-0000-0000-000000000790",
},
"targetWorkflow": {
- "id": "00000000-0000-0000-0000-000000000754",
+ "id": "00000000-0000-0000-0000-000000000792",
},
"targetWorkflowRun": {
- "id": "00000000-0000-0000-0000-000000000756",
+ "id": "00000000-0000-0000-0000-000000000794",
},
"targetWorkflowVersion": {
- "id": "00000000-0000-0000-0000-000000000755",
+ "id": "00000000-0000-0000-0000-000000000793",
},
"workspaceMember": {
- "id": "00000000-0000-0000-0000-000000000748",
+ "id": "00000000-0000-0000-0000-000000000786",
},
},
"viewGroups": {},
@@ -2546,80 +2666,80 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"workflow": {
"fields": {
"attachments": {
- "id": "00000000-0000-0000-0000-000000000776",
+ "id": "00000000-0000-0000-0000-000000000814",
},
"automatedTriggers": {
- "id": "00000000-0000-0000-0000-000000000774",
+ "id": "00000000-0000-0000-0000-000000000812",
},
"coreWorkflowId": {
- "id": "00000000-0000-0000-0000-000000000770",
+ "id": "00000000-0000-0000-0000-000000000808",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000761",
+ "id": "00000000-0000-0000-0000-000000000799",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000764",
+ "id": "00000000-0000-0000-0000-000000000802",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000763",
+ "id": "00000000-0000-0000-0000-000000000801",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000760",
+ "id": "00000000-0000-0000-0000-000000000798",
},
"lastPublishedVersionId": {
- "id": "00000000-0000-0000-0000-000000000769",
+ "id": "00000000-0000-0000-0000-000000000807",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000768",
+ "id": "00000000-0000-0000-0000-000000000806",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000766",
+ "id": "00000000-0000-0000-0000-000000000804",
},
"runs": {
- "id": "00000000-0000-0000-0000-000000000773",
+ "id": "00000000-0000-0000-0000-000000000811",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000767",
+ "id": "00000000-0000-0000-0000-000000000805",
},
"statuses": {
- "id": "00000000-0000-0000-0000-000000000771",
+ "id": "00000000-0000-0000-0000-000000000809",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000775",
+ "id": "00000000-0000-0000-0000-000000000813",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000762",
+ "id": "00000000-0000-0000-0000-000000000800",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000765",
+ "id": "00000000-0000-0000-0000-000000000803",
},
"versions": {
- "id": "00000000-0000-0000-0000-000000000772",
+ "id": "00000000-0000-0000-0000-000000000810",
},
},
- "id": "00000000-0000-0000-0000-000000000784",
+ "id": "00000000-0000-0000-0000-000000000822",
"views": {
"allWorkflows": {
- "id": "00000000-0000-0000-0000-000000000783",
+ "id": "00000000-0000-0000-0000-000000000821",
"viewFieldGroups": {},
"viewFields": {
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000780",
+ "id": "00000000-0000-0000-0000-000000000818",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000777",
+ "id": "00000000-0000-0000-0000-000000000815",
},
"runs": {
- "id": "00000000-0000-0000-0000-000000000782",
+ "id": "00000000-0000-0000-0000-000000000820",
},
"statuses": {
- "id": "00000000-0000-0000-0000-000000000778",
+ "id": "00000000-0000-0000-0000-000000000816",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000779",
+ "id": "00000000-0000-0000-0000-000000000817",
},
"versions": {
- "id": "00000000-0000-0000-0000-000000000781",
+ "id": "00000000-0000-0000-0000-000000000819",
},
},
"viewGroups": {},
@@ -2629,79 +2749,79 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"workflowAutomatedTrigger": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000786",
+ "id": "00000000-0000-0000-0000-000000000824",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000789",
+ "id": "00000000-0000-0000-0000-000000000827",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000788",
+ "id": "00000000-0000-0000-0000-000000000826",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000785",
+ "id": "00000000-0000-0000-0000-000000000823",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000791",
+ "id": "00000000-0000-0000-0000-000000000829",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000792",
+ "id": "00000000-0000-0000-0000-000000000830",
},
"settings": {
- "id": "00000000-0000-0000-0000-000000000794",
+ "id": "00000000-0000-0000-0000-000000000832",
},
"type": {
- "id": "00000000-0000-0000-0000-000000000793",
+ "id": "00000000-0000-0000-0000-000000000831",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000787",
+ "id": "00000000-0000-0000-0000-000000000825",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000790",
+ "id": "00000000-0000-0000-0000-000000000828",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000795",
+ "id": "00000000-0000-0000-0000-000000000833",
},
},
- "id": "00000000-0000-0000-0000-000000000807",
+ "id": "00000000-0000-0000-0000-000000000845",
"views": {
"allWorkflowAutomatedTriggers": {
- "id": "00000000-0000-0000-0000-000000000799",
+ "id": "00000000-0000-0000-0000-000000000837",
"viewFieldGroups": {},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000798",
+ "id": "00000000-0000-0000-0000-000000000836",
},
"type": {
- "id": "00000000-0000-0000-0000-000000000796",
+ "id": "00000000-0000-0000-0000-000000000834",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000797",
+ "id": "00000000-0000-0000-0000-000000000835",
},
},
"viewGroups": {},
},
"workflowAutomatedTriggerRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000806",
+ "id": "00000000-0000-0000-0000-000000000844",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000804",
+ "id": "00000000-0000-0000-0000-000000000842",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000805",
+ "id": "00000000-0000-0000-0000-000000000843",
},
},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000802",
+ "id": "00000000-0000-0000-0000-000000000840",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000803",
+ "id": "00000000-0000-0000-0000-000000000841",
},
"type": {
- "id": "00000000-0000-0000-0000-000000000800",
+ "id": "00000000-0000-0000-0000-000000000838",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000801",
+ "id": "00000000-0000-0000-0000-000000000839",
},
},
"viewGroups": {},
@@ -2711,130 +2831,130 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"workflowRun": {
"fields": {
"coreWorkflowId": {
- "id": "00000000-0000-0000-0000-000000000825",
+ "id": "00000000-0000-0000-0000-000000000863",
},
"coreWorkflowVersionId": {
- "id": "00000000-0000-0000-0000-000000000826",
+ "id": "00000000-0000-0000-0000-000000000864",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000809",
+ "id": "00000000-0000-0000-0000-000000000847",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000812",
+ "id": "00000000-0000-0000-0000-000000000850",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000811",
+ "id": "00000000-0000-0000-0000-000000000849",
},
"endedAt": {
- "id": "00000000-0000-0000-0000-000000000821",
+ "id": "00000000-0000-0000-0000-000000000859",
},
"enqueuedAt": {
- "id": "00000000-0000-0000-0000-000000000819",
+ "id": "00000000-0000-0000-0000-000000000857",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000808",
+ "id": "00000000-0000-0000-0000-000000000846",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000816",
+ "id": "00000000-0000-0000-0000-000000000854",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000814",
+ "id": "00000000-0000-0000-0000-000000000852",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000815",
+ "id": "00000000-0000-0000-0000-000000000853",
},
"startedAt": {
- "id": "00000000-0000-0000-0000-000000000820",
+ "id": "00000000-0000-0000-0000-000000000858",
},
"state": {
- "id": "00000000-0000-0000-0000-000000000823",
+ "id": "00000000-0000-0000-0000-000000000861",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000822",
+ "id": "00000000-0000-0000-0000-000000000860",
},
"stepLogs": {
- "id": "00000000-0000-0000-0000-000000000824",
+ "id": "00000000-0000-0000-0000-000000000862",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000827",
+ "id": "00000000-0000-0000-0000-000000000865",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000810",
+ "id": "00000000-0000-0000-0000-000000000848",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000813",
+ "id": "00000000-0000-0000-0000-000000000851",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000818",
+ "id": "00000000-0000-0000-0000-000000000856",
},
"workflowVersion": {
- "id": "00000000-0000-0000-0000-000000000817",
+ "id": "00000000-0000-0000-0000-000000000855",
},
},
- "id": "00000000-0000-0000-0000-000000000847",
+ "id": "00000000-0000-0000-0000-000000000885",
"views": {
"allWorkflowRuns": {
- "id": "00000000-0000-0000-0000-000000000831",
+ "id": "00000000-0000-0000-0000-000000000869",
"viewFieldGroups": {},
"viewFields": {
"name": {
- "id": "00000000-0000-0000-0000-000000000828",
+ "id": "00000000-0000-0000-0000-000000000866",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000830",
+ "id": "00000000-0000-0000-0000-000000000868",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000829",
+ "id": "00000000-0000-0000-0000-000000000867",
},
},
"viewGroups": {},
},
"workflowRunRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000846",
+ "id": "00000000-0000-0000-0000-000000000884",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000844",
+ "id": "00000000-0000-0000-0000-000000000882",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000845",
+ "id": "00000000-0000-0000-0000-000000000883",
},
},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000837",
+ "id": "00000000-0000-0000-0000-000000000875",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000838",
+ "id": "00000000-0000-0000-0000-000000000876",
},
"endedAt": {
- "id": "00000000-0000-0000-0000-000000000836",
+ "id": "00000000-0000-0000-0000-000000000874",
},
"enqueuedAt": {
- "id": "00000000-0000-0000-0000-000000000839",
+ "id": "00000000-0000-0000-0000-000000000877",
},
"startedAt": {
- "id": "00000000-0000-0000-0000-000000000835",
+ "id": "00000000-0000-0000-0000-000000000873",
},
"state": {
- "id": "00000000-0000-0000-0000-000000000840",
+ "id": "00000000-0000-0000-0000-000000000878",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000832",
+ "id": "00000000-0000-0000-0000-000000000870",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000843",
+ "id": "00000000-0000-0000-0000-000000000881",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000841",
+ "id": "00000000-0000-0000-0000-000000000879",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000842",
+ "id": "00000000-0000-0000-0000-000000000880",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000833",
+ "id": "00000000-0000-0000-0000-000000000871",
},
"workflowVersion": {
- "id": "00000000-0000-0000-0000-000000000834",
+ "id": "00000000-0000-0000-0000-000000000872",
},
},
"viewGroups": {},
@@ -2844,118 +2964,118 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"workflowVersion": {
"fields": {
"coreWorkflowVersionId": {
- "id": "00000000-0000-0000-0000-000000000862",
+ "id": "00000000-0000-0000-0000-000000000900",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000849",
+ "id": "00000000-0000-0000-0000-000000000887",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000852",
+ "id": "00000000-0000-0000-0000-000000000890",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000851",
+ "id": "00000000-0000-0000-0000-000000000889",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000848",
+ "id": "00000000-0000-0000-0000-000000000886",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000856",
+ "id": "00000000-0000-0000-0000-000000000894",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000854",
+ "id": "00000000-0000-0000-0000-000000000892",
},
"runs": {
- "id": "00000000-0000-0000-0000-000000000860",
+ "id": "00000000-0000-0000-0000-000000000898",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000855",
+ "id": "00000000-0000-0000-0000-000000000893",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000859",
+ "id": "00000000-0000-0000-0000-000000000897",
},
"steps": {
- "id": "00000000-0000-0000-0000-000000000861",
+ "id": "00000000-0000-0000-0000-000000000899",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000863",
+ "id": "00000000-0000-0000-0000-000000000901",
},
"trigger": {
- "id": "00000000-0000-0000-0000-000000000858",
+ "id": "00000000-0000-0000-0000-000000000896",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000850",
+ "id": "00000000-0000-0000-0000-000000000888",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000853",
+ "id": "00000000-0000-0000-0000-000000000891",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000857",
+ "id": "00000000-0000-0000-0000-000000000895",
},
},
- "id": "00000000-0000-0000-0000-000000000883",
+ "id": "00000000-0000-0000-0000-000000000921",
"views": {
"allWorkflowVersions": {
- "id": "00000000-0000-0000-0000-000000000869",
+ "id": "00000000-0000-0000-0000-000000000907",
"viewFieldGroups": {},
"viewFields": {
"name": {
- "id": "00000000-0000-0000-0000-000000000864",
+ "id": "00000000-0000-0000-0000-000000000902",
},
"runs": {
- "id": "00000000-0000-0000-0000-000000000868",
+ "id": "00000000-0000-0000-0000-000000000906",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000866",
+ "id": "00000000-0000-0000-0000-000000000904",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000867",
+ "id": "00000000-0000-0000-0000-000000000905",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000865",
+ "id": "00000000-0000-0000-0000-000000000903",
},
},
"viewGroups": {},
},
"workflowVersionRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000882",
+ "id": "00000000-0000-0000-0000-000000000920",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000880",
+ "id": "00000000-0000-0000-0000-000000000918",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000881",
+ "id": "00000000-0000-0000-0000-000000000919",
},
},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000873",
+ "id": "00000000-0000-0000-0000-000000000911",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000875",
+ "id": "00000000-0000-0000-0000-000000000913",
},
"runs": {
- "id": "00000000-0000-0000-0000-000000000878",
+ "id": "00000000-0000-0000-0000-000000000916",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000870",
+ "id": "00000000-0000-0000-0000-000000000908",
},
"steps": {
- "id": "00000000-0000-0000-0000-000000000874",
+ "id": "00000000-0000-0000-0000-000000000912",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000879",
+ "id": "00000000-0000-0000-0000-000000000917",
},
"trigger": {
- "id": "00000000-0000-0000-0000-000000000872",
+ "id": "00000000-0000-0000-0000-000000000910",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000876",
+ "id": "00000000-0000-0000-0000-000000000914",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000877",
+ "id": "00000000-0000-0000-0000-000000000915",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000871",
+ "id": "00000000-0000-0000-0000-000000000909",
},
},
"viewGroups": {},
@@ -2965,110 +3085,110 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"workspaceMember": {
"fields": {
"accountOwnerForCompanies": {
- "id": "00000000-0000-0000-0000-000000000903",
+ "id": "00000000-0000-0000-0000-000000000941",
},
"assignedTasks": {
- "id": "00000000-0000-0000-0000-000000000901",
+ "id": "00000000-0000-0000-0000-000000000939",
},
"avatarUrl": {
- "id": "00000000-0000-0000-0000-000000000897",
+ "id": "00000000-0000-0000-0000-000000000935",
},
"blocklist": {
- "id": "00000000-0000-0000-0000-000000000905",
+ "id": "00000000-0000-0000-0000-000000000943",
},
"calendarEventParticipants": {
- "id": "00000000-0000-0000-0000-000000000906",
+ "id": "00000000-0000-0000-0000-000000000944",
},
"calendarStartDay": {
- "id": "00000000-0000-0000-0000-000000000911",
+ "id": "00000000-0000-0000-0000-000000000949",
},
"colorScheme": {
- "id": "00000000-0000-0000-0000-000000000893",
+ "id": "00000000-0000-0000-0000-000000000931",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000885",
+ "id": "00000000-0000-0000-0000-000000000923",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000888",
+ "id": "00000000-0000-0000-0000-000000000926",
},
"dateFormat": {
- "id": "00000000-0000-0000-0000-000000000909",
+ "id": "00000000-0000-0000-0000-000000000947",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000887",
+ "id": "00000000-0000-0000-0000-000000000925",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000884",
+ "id": "00000000-0000-0000-0000-000000000922",
},
"jobTitle": {
- "id": "00000000-0000-0000-0000-000000000899",
+ "id": "00000000-0000-0000-0000-000000000937",
},
"locale": {
- "id": "00000000-0000-0000-0000-000000000896",
+ "id": "00000000-0000-0000-0000-000000000934",
},
"messageParticipants": {
- "id": "00000000-0000-0000-0000-000000000904",
+ "id": "00000000-0000-0000-0000-000000000942",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000892",
+ "id": "00000000-0000-0000-0000-000000000930",
},
"numberFormat": {
- "id": "00000000-0000-0000-0000-000000000912",
+ "id": "00000000-0000-0000-0000-000000000950",
},
"openRecordIn": {
- "id": "00000000-0000-0000-0000-000000000895",
+ "id": "00000000-0000-0000-0000-000000000933",
},
"ownedOpportunities": {
- "id": "00000000-0000-0000-0000-000000000902",
+ "id": "00000000-0000-0000-0000-000000000940",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000890",
+ "id": "00000000-0000-0000-0000-000000000928",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000891",
+ "id": "00000000-0000-0000-0000-000000000929",
},
"timeFormat": {
- "id": "00000000-0000-0000-0000-000000000910",
+ "id": "00000000-0000-0000-0000-000000000948",
},
"timeZone": {
- "id": "00000000-0000-0000-0000-000000000908",
+ "id": "00000000-0000-0000-0000-000000000946",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000907",
+ "id": "00000000-0000-0000-0000-000000000945",
},
"uiScale": {
- "id": "00000000-0000-0000-0000-000000000894",
+ "id": "00000000-0000-0000-0000-000000000932",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000886",
+ "id": "00000000-0000-0000-0000-000000000924",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000889",
+ "id": "00000000-0000-0000-0000-000000000927",
},
"userEmail": {
- "id": "00000000-0000-0000-0000-000000000898",
+ "id": "00000000-0000-0000-0000-000000000936",
},
"userId": {
- "id": "00000000-0000-0000-0000-000000000900",
+ "id": "00000000-0000-0000-0000-000000000938",
},
},
- "id": "00000000-0000-0000-0000-000000000918",
+ "id": "00000000-0000-0000-0000-000000000956",
"views": {
"allWorkspaceMembers": {
- "id": "00000000-0000-0000-0000-000000000917",
+ "id": "00000000-0000-0000-0000-000000000955",
"viewFieldGroups": {},
"viewFields": {
"assignedTasks": {
- "id": "00000000-0000-0000-0000-000000000916",
+ "id": "00000000-0000-0000-0000-000000000954",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000914",
+ "id": "00000000-0000-0000-0000-000000000952",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000913",
+ "id": "00000000-0000-0000-0000-000000000951",
},
"ownedOpportunities": {
- "id": "00000000-0000-0000-0000-000000000915",
+ "id": "00000000-0000-0000-0000-000000000953",
},
},
"viewGroups": {},
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-message-calendar-target-standard-metadata.spec.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-message-calendar-target-standard-metadata.spec.ts
new file mode 100644
index 00000000000..114af0e25e3
--- /dev/null
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-message-calendar-target-standard-metadata.spec.ts
@@ -0,0 +1,180 @@
+import { STANDARD_OBJECTS } from 'twenty-shared/metadata';
+
+import { validateAndReturnIndexWhereClause } from 'src/engine/workspace-manager/workspace-migration/utils/validate-index-where-clause.util';
+import { computeTwentyStandardApplicationAllFlatEntityMaps } from 'src/engine/workspace-manager/twenty-standard-application/utils/twenty-standard-application-all-flat-entity-maps.constant';
+
+const WORKSPACE_ID = '20202020-1111-4111-8111-111111111111';
+const TWENTY_STANDARD_APPLICATION_ID = '20202020-2222-4222-8222-222222222222';
+const NOW = '2024-01-01T00:00:00.000Z';
+
+describe('Message and calendar target standard metadata build', () => {
+ const { allFlatEntityMaps } =
+ computeTwentyStandardApplicationAllFlatEntityMaps({
+ now: NOW,
+ workspaceId: WORKSPACE_ID,
+ twentyStandardApplicationId: TWENTY_STANDARD_APPLICATION_ID,
+ });
+
+ it.each(['calendarEventTarget', 'messageThreadTarget'] as const)(
+ 'builds %s as a system junction object without first-class views',
+ (objectName) => {
+ const objectMetadata =
+ allFlatEntityMaps.flatObjectMetadataMaps.byUniversalIdentifier[
+ STANDARD_OBJECTS[objectName].universalIdentifier
+ ];
+
+ expect(objectMetadata).toMatchObject({
+ isSystem: true,
+ isAuditLogged: false,
+ isUICreatable: false,
+ });
+ expect(Object.keys(STANDARD_OBJECTS[objectName].views)).toHaveLength(0);
+ },
+ );
+
+ it.each([
+ {
+ parentObjectName: 'calendarEvent',
+ parentTargetField:
+ STANDARD_OBJECTS.calendarEvent.fields.calendarEventTargets,
+ targetField: STANDARD_OBJECTS.calendarEventTarget.fields.targetPerson,
+ },
+ {
+ parentObjectName: 'messageThread',
+ parentTargetField:
+ STANDARD_OBJECTS.messageThread.fields.messageThreadTargets,
+ targetField: STANDARD_OBJECTS.messageThreadTarget.fields.targetPerson,
+ },
+ ] as const)(
+ 'configures $parentObjectName targets for the generic junction relation path',
+ ({ parentTargetField, targetField }) => {
+ const parentTargetFieldMetadata =
+ allFlatEntityMaps.flatFieldMetadataMaps.byUniversalIdentifier[
+ parentTargetField.universalIdentifier
+ ];
+
+ expect(parentTargetFieldMetadata).toMatchObject({
+ universalSettings: {
+ junctionTargetFieldUniversalIdentifier:
+ targetField.universalIdentifier,
+ },
+ });
+ },
+ );
+
+ it.each(['calendarEventTarget', 'messageThreadTarget'] as const)(
+ 'indexes each %s target relation for target-first timeline reads',
+ (objectName) => {
+ for (const indexName of [
+ 'personIdIndex',
+ 'companyIdIndex',
+ 'opportunityIdIndex',
+ ] as const) {
+ const { universalIdentifier } =
+ STANDARD_OBJECTS[objectName].indexes[indexName];
+ const indexMetadata =
+ allFlatEntityMaps.flatIndexMaps.byUniversalIdentifier[
+ universalIdentifier
+ ];
+
+ expect(indexMetadata).toMatchObject({
+ isUnique: false,
+ indexWhereClause: null,
+ });
+ expect(indexMetadata?.flatIndexFieldMetadatas).toHaveLength(1);
+ }
+ },
+ );
+
+ it.each(['calendarEventTarget', 'messageThreadTarget'] as const)(
+ 'uses one morph group for all %s target types',
+ (objectName) => {
+ const targetFields = [
+ STANDARD_OBJECTS[objectName].fields.targetPerson,
+ STANDARD_OBJECTS[objectName].fields.targetCompany,
+ STANDARD_OBJECTS[objectName].fields.targetOpportunity,
+ ].map(
+ ({ universalIdentifier }) =>
+ allFlatEntityMaps.flatFieldMetadataMaps.byUniversalIdentifier[
+ universalIdentifier
+ ],
+ );
+
+ expect(targetFields).toHaveLength(3);
+ expect(targetFields.every((field) => field?.isUIEditable === false)).toBe(
+ true,
+ );
+ expect(new Set(targetFields.map((field) => field?.morphId))).toEqual(
+ new Set([STANDARD_OBJECTS[objectName].morphIds.targetMorphId.morphId]),
+ );
+ },
+ );
+
+ it.each([
+ {
+ objectName: 'calendarEventTarget',
+ indexes: [
+ STANDARD_OBJECTS.calendarEventTarget.indexes
+ .calendarEventPersonUniqueIndex,
+ STANDARD_OBJECTS.calendarEventTarget.indexes
+ .calendarEventCompanyUniqueIndex,
+ STANDARD_OBJECTS.calendarEventTarget.indexes
+ .calendarEventOpportunityUniqueIndex,
+ ],
+ },
+ {
+ objectName: 'messageThreadTarget',
+ indexes: [
+ STANDARD_OBJECTS.messageThreadTarget.indexes
+ .messageThreadPersonUniqueIndex,
+ STANDARD_OBJECTS.messageThreadTarget.indexes
+ .messageThreadCompanyUniqueIndex,
+ STANDARD_OBJECTS.messageThreadTarget.indexes
+ .messageThreadOpportunityUniqueIndex,
+ ],
+ },
+ ] as const)(
+ 'allows only one live $objectName row per target',
+ ({ indexes }) => {
+ for (const { universalIdentifier } of indexes) {
+ const indexMetadata =
+ allFlatEntityMaps.flatIndexMaps.byUniversalIdentifier[
+ universalIdentifier
+ ];
+
+ expect(indexMetadata).toMatchObject({
+ isUnique: true,
+ });
+ expect(indexMetadata?.indexWhereClause).toBe('"deletedAt" IS NULL');
+ expect(
+ validateAndReturnIndexWhereClause(indexMetadata?.indexWhereClause),
+ ).toBe('"deletedAt" IS NULL');
+ }
+ },
+ );
+
+ it.each(['calendarEventTarget', 'messageThreadTarget'] as const)(
+ 'defaults manual %s rows to manual provenance only',
+ (objectName) => {
+ const automaticField =
+ allFlatEntityMaps.flatFieldMetadataMaps.byUniversalIdentifier[
+ STANDARD_OBJECTS[objectName].fields.isAutomaticallyAssigned
+ .universalIdentifier
+ ];
+ const manualField =
+ allFlatEntityMaps.flatFieldMetadataMaps.byUniversalIdentifier[
+ STANDARD_OBJECTS[objectName].fields.isManuallyAssigned
+ .universalIdentifier
+ ];
+
+ expect(automaticField).toMatchObject({
+ defaultValue: false,
+ isUIEditable: false,
+ });
+ expect(manualField).toMatchObject({
+ defaultValue: true,
+ isUIEditable: false,
+ });
+ },
+ );
+});
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 128e8af7847..cf1f048d25d 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
@@ -10,6 +10,7 @@ import { buildBlocklistStandardFlatFieldMetadatas } from 'src/engine/workspace-m
import { buildCalendarChannelEventAssociationStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-calendar-channel-event-association-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 { buildCalendarEventTargetStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-calendar-event-target-standard-flat-field-metadata.util';
import { buildCallRecordingStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-call-recording-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';
@@ -21,6 +22,7 @@ import { buildMessageChannelMessageAssociationStandardFlatFieldMetadatas } from
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';
+import { buildMessageThreadTargetStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-thread-target-standard-flat-field-metadata.util';
import { buildNoteStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-note-standard-flat-field-metadata.util';
import { buildNoteTargetStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-note-target-standard-flat-field-metadata.util';
import { buildOpportunityStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-opportunity-standard-flat-field-metadata.util';
@@ -47,6 +49,7 @@ const STANDARD_FLAT_FIELD_METADATA_BUILDERS_BY_OBJECT_NAME = {
calendarEventParticipant:
buildCalendarEventParticipantStandardFlatFieldMetadatas,
calendarEvent: buildCalendarEventStandardFlatFieldMetadatas,
+ calendarEventTarget: buildCalendarEventTargetStandardFlatFieldMetadatas,
callRecording: buildCallRecordingStandardFlatFieldMetadatas,
company: buildCompanyStandardFlatFieldMetadatas,
dashboard: buildDashboardStandardFlatFieldMetadatas,
@@ -60,6 +63,7 @@ const STANDARD_FLAT_FIELD_METADATA_BUILDERS_BY_OBJECT_NAME = {
buildMessageChannelMessageAssociationMessageFolderStandardFlatFieldMetadatas,
messageParticipant: buildMessageParticipantStandardFlatFieldMetadatas,
messageThread: buildMessageThreadStandardFlatFieldMetadatas,
+ messageThreadTarget: buildMessageThreadTargetStandardFlatFieldMetadatas,
note: buildNoteStandardFlatFieldMetadatas,
noteTarget: buildNoteTargetStandardFlatFieldMetadatas,
opportunity: buildOpportunityStandardFlatFieldMetadatas,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/build-standard-target-flat-field-metadatas.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/build-standard-target-flat-field-metadatas.util.ts
new file mode 100644
index 00000000000..b274aa6ec19
--- /dev/null
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/build-standard-target-flat-field-metadatas.util.ts
@@ -0,0 +1,357 @@
+import { msg } from '@lingui/core/macro';
+import {
+ DateDisplayFormat,
+ FieldMetadataType,
+ RelationOnDeleteAction,
+ RelationType,
+} 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 { createStandardRelationFieldFlatMetadata } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/create-standard-relation-field-flat-metadata.util';
+import { i18nLabel } from 'src/engine/workspace-manager/twenty-standard-application/utils/i18n-label.util';
+
+type StandardTargetObjectName = 'calendarEventTarget' | 'messageThreadTarget';
+
+type SharedStandardTargetFieldName = Exclude<
+ AllStandardObjectFieldName<'calendarEventTarget'>,
+ 'calendarEvent'
+> &
+ Exclude<AllStandardObjectFieldName<'messageThreadTarget'>, 'messageThread'>;
+
+type BuildStandardTargetFieldsArgs<T extends StandardTargetObjectName> = Omit<
+ CreateStandardFieldArgs<T, FieldMetadataType>,
+ 'context'
+> & {
+ inverseTargetFieldName: 'calendarEventTargets' | 'messageThreadTargets';
+ morphId: string;
+};
+
+export const buildStandardTargetFlatFieldMetadatas = <
+ T extends StandardTargetObjectName,
+>({
+ objectName,
+ inverseTargetFieldName,
+ morphId,
+ ...args
+}: BuildStandardTargetFieldsArgs<T>): Record<
+ SharedStandardTargetFieldName,
+ FlatFieldMetadata
+> => ({
+ id: createStandardFieldFlatMetadata({
+ ...args,
+ objectName,
+ context: {
+ fieldName: 'id',
+ type: FieldMetadataType.UUID,
+ label: i18nLabel(msg({ message: `Id`, context: 'fieldMetadata.label' })),
+ description: i18nLabel(
+ msg({ message: `Id`, context: 'fieldMetadata.description' }),
+ ),
+ icon: 'Icon123',
+ isSystem: true,
+ isNullable: false,
+ isUIEditable: false,
+ defaultValue: 'uuid',
+ },
+ }),
+ createdAt: createStandardFieldFlatMetadata({
+ ...args,
+ objectName,
+ context: {
+ fieldName: 'createdAt',
+ type: FieldMetadataType.DATE_TIME,
+ label: i18nLabel(
+ msg({ message: `Creation date`, context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Creation date`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconCalendar',
+ isSystem: true,
+ isNullable: false,
+ isUIEditable: false,
+ defaultValue: 'now',
+ settings: { displayFormat: DateDisplayFormat.RELATIVE },
+ },
+ }),
+ updatedAt: createStandardFieldFlatMetadata({
+ ...args,
+ objectName,
+ context: {
+ fieldName: 'updatedAt',
+ type: FieldMetadataType.DATE_TIME,
+ label: i18nLabel(
+ msg({ message: `Last update`, context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Last time the record was changed`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconCalendarClock',
+ isSystem: true,
+ isNullable: false,
+ isUIEditable: false,
+ defaultValue: 'now',
+ settings: { displayFormat: DateDisplayFormat.RELATIVE },
+ },
+ }),
+ deletedAt: createStandardFieldFlatMetadata({
+ ...args,
+ objectName,
+ context: {
+ fieldName: 'deletedAt',
+ type: FieldMetadataType.DATE_TIME,
+ label: i18nLabel(
+ msg({ message: `Deleted at`, context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Date when the record was deleted`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconCalendarMinus',
+ isSystem: true,
+ isNullable: true,
+ isUIEditable: false,
+ settings: { displayFormat: DateDisplayFormat.RELATIVE },
+ },
+ }),
+ createdBy: createStandardFieldFlatMetadata({
+ ...args,
+ objectName,
+ context: {
+ fieldName: 'createdBy',
+ type: FieldMetadataType.ACTOR,
+ label: i18nLabel(
+ msg({ message: `Created by`, context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `The creator of the record`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconCreativeCommonsSa',
+ isSystem: true,
+ isUIEditable: false,
+ isNullable: false,
+ defaultValue: {
+ source: "'MANUAL'",
+ name: "'System'",
+ workspaceMemberId: null,
+ },
+ },
+ }),
+ updatedBy: createStandardFieldFlatMetadata({
+ ...args,
+ objectName,
+ context: {
+ fieldName: 'updatedBy',
+ type: FieldMetadataType.ACTOR,
+ label: i18nLabel(
+ msg({ message: `Updated by`, context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `The workspace member who last updated the record`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconUserCircle',
+ isSystem: true,
+ isUIEditable: false,
+ isNullable: false,
+ defaultValue: {
+ source: "'MANUAL'",
+ name: "'System'",
+ workspaceMemberId: null,
+ },
+ },
+ }),
+ position: createStandardFieldFlatMetadata({
+ ...args,
+ objectName,
+ context: {
+ fieldName: 'position',
+ type: FieldMetadataType.POSITION,
+ label: i18nLabel(
+ msg({ message: `Position`, context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Target record position`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconHierarchy2',
+ isSystem: true,
+ isNullable: false,
+ defaultValue: 0,
+ },
+ }),
+ searchVector: createStandardFieldFlatMetadata({
+ ...args,
+ objectName,
+ context: {
+ fieldName: 'searchVector',
+ type: FieldMetadataType.TS_VECTOR,
+ label: i18nLabel(
+ msg({ message: `Search vector`, context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Field used for full-text search`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconUser',
+ isSystem: true,
+ isNullable: true,
+ },
+ }),
+ isAutomaticallyAssigned: createStandardFieldFlatMetadata({
+ ...args,
+ objectName,
+ context: {
+ fieldName: 'isAutomaticallyAssigned',
+ type: FieldMetadataType.BOOLEAN,
+ label: i18nLabel(
+ msg({
+ message: `Automatically assigned`,
+ context: 'fieldMetadata.label',
+ }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Whether current participant rules justify this target`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconRobot',
+ isSystem: true,
+ isNullable: false,
+ isUIEditable: false,
+ defaultValue: false,
+ },
+ }),
+ isManuallyAssigned: createStandardFieldFlatMetadata({
+ ...args,
+ objectName,
+ context: {
+ fieldName: 'isManuallyAssigned',
+ type: FieldMetadataType.BOOLEAN,
+ label: i18nLabel(
+ msg({ message: `Manually assigned`, context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Whether a user explicitly assigned this target`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconUserCheck',
+ isSystem: true,
+ isNullable: false,
+ isUIEditable: false,
+ defaultValue: true,
+ },
+ }),
+ targetPerson: createStandardRelationFieldFlatMetadata({
+ ...args,
+ objectName,
+ context: {
+ type: FieldMetadataType.MORPH_RELATION,
+ morphId,
+ fieldName: 'targetPerson',
+ label: i18nLabel(
+ msg({ message: `Person`, context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Target record`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconUser',
+ isNullable: true,
+ isUIEditable: false,
+ isSystemSideEffect: true,
+ targetObjectName: 'person',
+ targetFieldName: inverseTargetFieldName,
+ settings: {
+ relationType: RelationType.MANY_TO_ONE,
+ onDelete: RelationOnDeleteAction.CASCADE,
+ joinColumnName: 'targetPersonId',
+ },
+ },
+ }),
+ targetCompany: createStandardRelationFieldFlatMetadata({
+ ...args,
+ objectName,
+ context: {
+ type: FieldMetadataType.MORPH_RELATION,
+ morphId,
+ fieldName: 'targetCompany',
+ label: i18nLabel(
+ msg({ message: `Company`, context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Target record`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconBuildingSkyscraper',
+ isNullable: true,
+ isUIEditable: false,
+ isSystemSideEffect: true,
+ targetObjectName: 'company',
+ targetFieldName: inverseTargetFieldName,
+ settings: {
+ relationType: RelationType.MANY_TO_ONE,
+ onDelete: RelationOnDeleteAction.CASCADE,
+ joinColumnName: 'targetCompanyId',
+ },
+ },
+ }),
+ targetOpportunity: createStandardRelationFieldFlatMetadata({
+ ...args,
+ objectName,
+ context: {
+ type: FieldMetadataType.MORPH_RELATION,
+ morphId,
+ fieldName: 'targetOpportunity',
+ label: i18nLabel(
+ msg({ message: `Opportunity`, context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Target record`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconTargetArrow',
+ isNullable: true,
+ isUIEditable: false,
+ isSystemSideEffect: true,
+ targetObjectName: 'opportunity',
+ targetFieldName: inverseTargetFieldName,
+ settings: {
+ relationType: RelationType.MANY_TO_ONE,
+ onDelete: RelationOnDeleteAction.CASCADE,
+ joinColumnName: 'targetOpportunityId',
+ },
+ },
+ }),
+});
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-calendar-event-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-calendar-event-standard-flat-field-metadata.util.ts
index a3539eb9d8f..f7cb9b0b2a0 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-calendar-event-standard-flat-field-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-calendar-event-standard-flat-field-metadata.util.ts
@@ -562,6 +562,36 @@ export const buildCalendarEventStandardFlatFieldMetadatas = ({
twentyStandardApplicationId,
now,
}),
+ calendarEventTargets: createStandardRelationFieldFlatMetadata({
+ objectName,
+ workspaceId,
+ context: {
+ type: FieldMetadataType.RELATION,
+ morphId: null,
+ fieldName: 'calendarEventTargets',
+ label: i18nLabel(
+ msg({ message: `Relations`, context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Calendar event targets`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconArrowUpRight',
+ isNullable: true,
+ targetObjectName: 'calendarEventTarget',
+ targetFieldName: 'calendarEvent',
+ settings: { relationType: RelationType.ONE_TO_MANY },
+ junctionTargetFieldUniversalIdentifier:
+ STANDARD_OBJECTS.calendarEventTarget.fields.targetPerson
+ .universalIdentifier,
+ },
+ standardObjectMetadataRelatedEntityIds,
+ dependencyFlatEntityMaps,
+ twentyStandardApplicationId,
+ now,
+ }),
callRecordings: createStandardRelationFieldFlatMetadata({
objectName,
workspaceId,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-calendar-event-target-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-calendar-event-target-standard-flat-field-metadata.util.ts
new file mode 100644
index 00000000000..f6608a1ef7c
--- /dev/null
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-calendar-event-target-standard-flat-field-metadata.util.ts
@@ -0,0 +1,58 @@
+import { msg } from '@lingui/core/macro';
+import { STANDARD_OBJECTS } from 'twenty-shared/metadata';
+import {
+ FieldMetadataType,
+ RelationOnDeleteAction,
+ RelationType,
+} 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 { buildStandardTargetFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/build-standard-target-flat-field-metadatas.util';
+import { type CreateStandardFieldArgs } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/create-standard-field-flat-metadata.util';
+import { createStandardRelationFieldFlatMetadata } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/create-standard-relation-field-flat-metadata.util';
+import { i18nLabel } from 'src/engine/workspace-manager/twenty-standard-application/utils/i18n-label.util';
+
+export const buildCalendarEventTargetStandardFlatFieldMetadatas = ({
+ ...args
+}: Omit<
+ CreateStandardFieldArgs<'calendarEventTarget', FieldMetadataType>,
+ 'context'
+>): Record<
+ AllStandardObjectFieldName<'calendarEventTarget'>,
+ FlatFieldMetadata
+> => ({
+ ...buildStandardTargetFlatFieldMetadatas({
+ ...args,
+ inverseTargetFieldName: 'calendarEventTargets',
+ morphId:
+ STANDARD_OBJECTS.calendarEventTarget.morphIds.targetMorphId.morphId,
+ }),
+ calendarEvent: createStandardRelationFieldFlatMetadata({
+ ...args,
+ context: {
+ type: FieldMetadataType.RELATION,
+ morphId: null,
+ fieldName: 'calendarEvent',
+ label: i18nLabel(
+ msg({ message: `Calendar event`, context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Calendar event target event`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconCalendar',
+ isNullable: false,
+ isUIEditable: false,
+ targetObjectName: 'calendarEvent',
+ targetFieldName: 'calendarEventTargets',
+ settings: {
+ relationType: RelationType.MANY_TO_ONE,
+ onDelete: RelationOnDeleteAction.CASCADE,
+ joinColumnName: 'calendarEventId',
+ },
+ },
+ }),
+});
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-company-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-company-standard-flat-field-metadata.util.ts
index 4cd29d6f99c..4b905d89150 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-company-standard-flat-field-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-company-standard-flat-field-metadata.util.ts
@@ -484,6 +484,64 @@ export const buildCompanyStandardFlatFieldMetadatas = ({
twentyStandardApplicationId,
now,
}),
+ calendarEventTargets: createStandardRelationFieldFlatMetadata({
+ objectName,
+ workspaceId,
+ context: {
+ type: FieldMetadataType.RELATION,
+ morphId: null,
+ fieldName: 'calendarEventTargets',
+ isSystemSideEffect: true,
+ label: i18nLabel(
+ msg({ message: `Calendar events`, context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Calendar events tied to the company`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconCalendar',
+ isUIEditable: false,
+ isNullable: true,
+ targetObjectName: 'calendarEventTarget',
+ targetFieldName: 'targetCompany',
+ settings: { relationType: RelationType.ONE_TO_MANY },
+ },
+ standardObjectMetadataRelatedEntityIds,
+ dependencyFlatEntityMaps,
+ twentyStandardApplicationId,
+ now,
+ }),
+ messageThreadTargets: createStandardRelationFieldFlatMetadata({
+ objectName,
+ workspaceId,
+ context: {
+ type: FieldMetadataType.RELATION,
+ morphId: null,
+ fieldName: 'messageThreadTargets',
+ isSystemSideEffect: true,
+ label: i18nLabel(
+ msg({ message: `Emails`, context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Message threads tied to the company`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconMail',
+ isUIEditable: false,
+ isNullable: true,
+ targetObjectName: 'messageThreadTarget',
+ targetFieldName: 'targetCompany',
+ settings: { relationType: RelationType.ONE_TO_MANY },
+ },
+ standardObjectMetadataRelatedEntityIds,
+ dependencyFlatEntityMaps,
+ twentyStandardApplicationId,
+ now,
+ }),
opportunities: createStandardRelationFieldFlatMetadata({
objectName,
workspaceId,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-thread-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-thread-standard-flat-field-metadata.util.ts
index a2882fbcf38..9d697fd54e9 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-thread-standard-flat-field-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-thread-standard-flat-field-metadata.util.ts
@@ -1,5 +1,6 @@
import { msg } from '@lingui/core/macro';
import { i18nLabel } from 'src/engine/workspace-manager/twenty-standard-application/utils/i18n-label.util';
+import { STANDARD_OBJECTS } from 'twenty-shared/metadata';
import {
DateDisplayFormat,
FieldMetadataType,
@@ -315,4 +316,34 @@ export const buildMessageThreadStandardFlatFieldMetadatas = ({
twentyStandardApplicationId,
now,
}),
+ messageThreadTargets: createStandardRelationFieldFlatMetadata({
+ objectName,
+ workspaceId,
+ context: {
+ type: FieldMetadataType.RELATION,
+ morphId: null,
+ fieldName: 'messageThreadTargets',
+ label: i18nLabel(
+ msg({ message: `Relations`, context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Message thread targets`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconArrowUpRight',
+ isNullable: true,
+ targetObjectName: 'messageThreadTarget',
+ targetFieldName: 'messageThread',
+ settings: { relationType: RelationType.ONE_TO_MANY },
+ junctionTargetFieldUniversalIdentifier:
+ STANDARD_OBJECTS.messageThreadTarget.fields.targetPerson
+ .universalIdentifier,
+ },
+ standardObjectMetadataRelatedEntityIds,
+ dependencyFlatEntityMaps,
+ twentyStandardApplicationId,
+ now,
+ }),
});
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-thread-target-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-thread-target-standard-flat-field-metadata.util.ts
new file mode 100644
index 00000000000..ba1c3e383ba
--- /dev/null
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-thread-target-standard-flat-field-metadata.util.ts
@@ -0,0 +1,58 @@
+import { msg } from '@lingui/core/macro';
+import { STANDARD_OBJECTS } from 'twenty-shared/metadata';
+import {
+ FieldMetadataType,
+ RelationOnDeleteAction,
+ RelationType,
+} 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 { buildStandardTargetFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/build-standard-target-flat-field-metadatas.util';
+import { type CreateStandardFieldArgs } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/create-standard-field-flat-metadata.util';
+import { createStandardRelationFieldFlatMetadata } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/create-standard-relation-field-flat-metadata.util';
+import { i18nLabel } from 'src/engine/workspace-manager/twenty-standard-application/utils/i18n-label.util';
+
+export const buildMessageThreadTargetStandardFlatFieldMetadatas = ({
+ ...args
+}: Omit<
+ CreateStandardFieldArgs<'messageThreadTarget', FieldMetadataType>,
+ 'context'
+>): Record<
+ AllStandardObjectFieldName<'messageThreadTarget'>,
+ FlatFieldMetadata
+> => ({
+ ...buildStandardTargetFlatFieldMetadatas({
+ ...args,
+ inverseTargetFieldName: 'messageThreadTargets',
+ morphId:
+ STANDARD_OBJECTS.messageThreadTarget.morphIds.targetMorphId.morphId,
+ }),
+ messageThread: createStandardRelationFieldFlatMetadata({
+ ...args,
+ context: {
+ type: FieldMetadataType.RELATION,
+ morphId: null,
+ fieldName: 'messageThread',
+ label: i18nLabel(
+ msg({ message: `Message thread`, context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Message thread target thread`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconMessage',
+ isNullable: false,
+ isUIEditable: false,
+ targetObjectName: 'messageThread',
+ targetFieldName: 'messageThreadTargets',
+ settings: {
+ relationType: RelationType.MANY_TO_ONE,
+ onDelete: RelationOnDeleteAction.CASCADE,
+ joinColumnName: 'messageThreadId',
+ },
+ },
+ }),
+});
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-opportunity-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-opportunity-standard-flat-field-metadata.util.ts
index 47c5a5aa840..9f9cecdc605 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-opportunity-standard-flat-field-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-opportunity-standard-flat-field-metadata.util.ts
@@ -507,6 +507,64 @@ export const buildOpportunityStandardFlatFieldMetadatas = ({
twentyStandardApplicationId,
now,
}),
+ calendarEventTargets: createStandardRelationFieldFlatMetadata({
+ objectName,
+ workspaceId,
+ context: {
+ type: FieldMetadataType.RELATION,
+ morphId: null,
+ fieldName: 'calendarEventTargets',
+ isSystemSideEffect: true,
+ label: i18nLabel(
+ msg({ message: `Calendar events`, context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Calendar events tied to the opportunity`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconCalendar',
+ isUIEditable: false,
+ isNullable: true,
+ targetObjectName: 'calendarEventTarget',
+ targetFieldName: 'targetOpportunity',
+ settings: { relationType: RelationType.ONE_TO_MANY },
+ },
+ standardObjectMetadataRelatedEntityIds,
+ dependencyFlatEntityMaps,
+ twentyStandardApplicationId,
+ now,
+ }),
+ messageThreadTargets: createStandardRelationFieldFlatMetadata({
+ objectName,
+ workspaceId,
+ context: {
+ type: FieldMetadataType.RELATION,
+ morphId: null,
+ fieldName: 'messageThreadTargets',
+ isSystemSideEffect: true,
+ label: i18nLabel(
+ msg({ message: `Emails`, context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Message threads tied to the opportunity`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconMail',
+ isUIEditable: false,
+ isNullable: true,
+ targetObjectName: 'messageThreadTarget',
+ targetFieldName: 'targetOpportunity',
+ settings: { relationType: RelationType.ONE_TO_MANY },
+ },
+ standardObjectMetadataRelatedEntityIds,
+ dependencyFlatEntityMaps,
+ twentyStandardApplicationId,
+ now,
+ }),
attachments: createStandardRelationFieldFlatMetadata({
objectName,
workspaceId,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-person-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-person-standard-flat-field-metadata.util.ts
index 5886c04c586..4dea1034d5b 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-person-standard-flat-field-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-person-standard-flat-field-metadata.util.ts
@@ -517,6 +517,64 @@ export const buildPersonStandardFlatFieldMetadatas = ({
twentyStandardApplicationId,
now,
}),
+ calendarEventTargets: createStandardRelationFieldFlatMetadata({
+ objectName,
+ workspaceId,
+ context: {
+ type: FieldMetadataType.RELATION,
+ morphId: null,
+ fieldName: 'calendarEventTargets',
+ isSystemSideEffect: true,
+ label: i18nLabel(
+ msg({ message: `Calendar events`, context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Calendar events tied to the contact`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconCalendar',
+ isUIEditable: false,
+ isNullable: true,
+ targetObjectName: 'calendarEventTarget',
+ targetFieldName: 'targetPerson',
+ settings: { relationType: RelationType.ONE_TO_MANY },
+ },
+ standardObjectMetadataRelatedEntityIds,
+ dependencyFlatEntityMaps,
+ twentyStandardApplicationId,
+ now,
+ }),
+ messageThreadTargets: createStandardRelationFieldFlatMetadata({
+ objectName,
+ workspaceId,
+ context: {
+ type: FieldMetadataType.RELATION,
+ morphId: null,
+ fieldName: 'messageThreadTargets',
+ isSystemSideEffect: true,
+ label: i18nLabel(
+ msg({ message: `Emails`, context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Message threads tied to the contact`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconMail',
+ isUIEditable: false,
+ isNullable: true,
+ targetObjectName: 'messageThreadTarget',
+ targetFieldName: 'targetPerson',
+ settings: { relationType: RelationType.ONE_TO_MANY },
+ },
+ standardObjectMetadataRelatedEntityIds,
+ dependencyFlatEntityMaps,
+ twentyStandardApplicationId,
+ now,
+ }),
attachments: createStandardRelationFieldFlatMetadata({
objectName,
workspaceId,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/i18n-label.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/i18n-label.util.ts
index 06549112dc3..160782151f9 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/i18n-label.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/i18n-label.util.ts
@@ -1,4 +1,16 @@
import { type MessageDescriptor } from '@lingui/core';
+import { isNonEmptyString } from '@sniptt/guards';
-export const i18nLabel = (descriptor: MessageDescriptor): string =>
- descriptor.message ?? '';
+// Translation catalogs are regenerated by the i18n pipeline after source
+// changes land, so the catalog-pinning spec accepts an authored descriptor id
+// in place of a catalog entry; every standard metadata label authoring site
+// funnels through i18nLabel, which records the macro-computed ids here.
+export const AUTHORED_STANDARD_METADATA_MESSAGE_IDS = new Set<string>();
+
+export const i18nLabel = (descriptor: MessageDescriptor): string => {
+ if (isNonEmptyString(descriptor.id)) {
+ AUTHORED_STANDARD_METADATA_MESSAGE_IDS.add(descriptor.id);
+ }
+
+ return descriptor.message ?? '';
+};
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 d61bbe2e568..d78990e6e51 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
@@ -7,6 +7,7 @@ import { buildAttachmentStandardFlatIndexMetadatas } from 'src/engine/workspace-
import { buildBlocklistStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-blocklist-standard-flat-index-metadata.util';
import { buildCalendarChannelEventAssociationStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-calendar-channel-event-association-standard-flat-index-metadata.util';
import { buildCalendarEventParticipantStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-calendar-event-participant-standard-flat-index-metadata.util';
+import { buildCalendarEventTargetStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-calendar-event-target-standard-flat-index-metadata.util';
import { buildCallRecordingStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-call-recording-standard-flat-index-metadata.util';
import { buildCompanyStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-company-standard-flat-index-metadata.util';
import { buildDashboardStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-dashboard-standard-flat-index-metadata.util';
@@ -17,6 +18,7 @@ import { buildMessageChannelMessageAssociationMessageFolderStandardFlatIndexMeta
import { buildMessageChannelMessageAssociationStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-message-channel-message-association-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 { buildMessageThreadTargetStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-message-thread-target-standard-flat-index-metadata.util';
import { buildNoteStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-note-standard-flat-index-metadata.util';
import { buildNoteTargetStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-note-target-standard-flat-index-metadata.util';
import { buildOpportunityStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-opportunity-standard-flat-index-metadata.util';
@@ -42,6 +44,7 @@ const STANDARD_FLAT_INDEX_METADATA_BUILDERS_BY_OBJECT_NAME = {
buildCalendarChannelEventAssociationStandardFlatIndexMetadatas,
calendarEventParticipant:
buildCalendarEventParticipantStandardFlatIndexMetadatas,
+ calendarEventTarget: buildCalendarEventTargetStandardFlatIndexMetadatas,
callRecording: buildCallRecordingStandardFlatIndexMetadatas,
company: buildCompanyStandardFlatIndexMetadatas,
dashboard: buildDashboardStandardFlatIndexMetadatas,
@@ -54,6 +57,7 @@ const STANDARD_FLAT_INDEX_METADATA_BUILDERS_BY_OBJECT_NAME = {
messageChannelMessageAssociationMessageFolder:
buildMessageChannelMessageAssociationMessageFolderStandardFlatIndexMetadatas,
messageParticipant: buildMessageParticipantStandardFlatIndexMetadatas,
+ messageThreadTarget: buildMessageThreadTargetStandardFlatIndexMetadatas,
note: buildNoteStandardFlatIndexMetadatas,
noteTarget: buildNoteTargetStandardFlatIndexMetadatas,
opportunity: buildOpportunityStandardFlatIndexMetadatas,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/build-standard-target-flat-index-metadatas.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/build-standard-target-flat-index-metadatas.util.ts
new file mode 100644
index 00000000000..8ed579ce709
--- /dev/null
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/build-standard-target-flat-index-metadatas.util.ts
@@ -0,0 +1,104 @@
+import { type FlatIndexMetadata } from 'src/engine/metadata-modules/flat-index-metadata/types/flat-index-metadata.type';
+import { type AllStandardObjectFieldName } from 'src/engine/workspace-manager/twenty-standard-application/types/all-standard-object-field-name.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';
+
+type StandardTargetObjectName = 'calendarEventTarget' | 'messageThreadTarget';
+
+type TargetIndexNames<T extends StandardTargetObjectName> = {
+ parentIdIndex: AllStandardObjectIndexName<T>;
+ personIdIndex: AllStandardObjectIndexName<T>;
+ companyIdIndex: AllStandardObjectIndexName<T>;
+ opportunityIdIndex: AllStandardObjectIndexName<T>;
+ personUniqueIndex: AllStandardObjectIndexName<T>;
+ companyUniqueIndex: AllStandardObjectIndexName<T>;
+ opportunityUniqueIndex: AllStandardObjectIndexName<T>;
+};
+
+type TargetFieldNames<T extends StandardTargetObjectName> = {
+ parent: AllStandardObjectFieldName<T>;
+ person: AllStandardObjectFieldName<T>;
+ company: AllStandardObjectFieldName<T>;
+ opportunity: AllStandardObjectFieldName<T>;
+};
+
+type BuiltTargetIndexes = {
+ parentIdIndex: FlatIndexMetadata;
+ personIdIndex: FlatIndexMetadata;
+ companyIdIndex: FlatIndexMetadata;
+ opportunityIdIndex: FlatIndexMetadata;
+ personUniqueIndex: FlatIndexMetadata;
+ companyUniqueIndex: FlatIndexMetadata;
+ opportunityUniqueIndex: FlatIndexMetadata;
+};
+
+export const buildStandardTargetFlatIndexMetadatas = <
+ T extends StandardTargetObjectName,
+>({
+ args,
+ fieldNames,
+ indexNames,
+}: {
+ args: Omit<CreateStandardIndexArgs<T>, 'context'>;
+ fieldNames: TargetFieldNames<T>;
+ indexNames: TargetIndexNames<T>;
+}): BuiltTargetIndexes => ({
+ parentIdIndex: createStandardIndexFlatMetadata({
+ ...args,
+ context: {
+ indexName: indexNames.parentIdIndex,
+ relatedFieldNames: [fieldNames.parent],
+ },
+ }),
+ personIdIndex: createStandardIndexFlatMetadata({
+ ...args,
+ context: {
+ indexName: indexNames.personIdIndex,
+ relatedFieldNames: [fieldNames.person],
+ },
+ }),
+ companyIdIndex: createStandardIndexFlatMetadata({
+ ...args,
+ context: {
+ indexName: indexNames.companyIdIndex,
+ relatedFieldNames: [fieldNames.company],
+ },
+ }),
+ opportunityIdIndex: createStandardIndexFlatMetadata({
+ ...args,
+ context: {
+ indexName: indexNames.opportunityIdIndex,
+ relatedFieldNames: [fieldNames.opportunity],
+ },
+ }),
+ personUniqueIndex: createStandardIndexFlatMetadata({
+ ...args,
+ context: {
+ indexName: indexNames.personUniqueIndex,
+ relatedFieldNames: [fieldNames.parent, fieldNames.person],
+ isUnique: true,
+ indexWhereClause: '"deletedAt" IS NULL',
+ },
+ }),
+ companyUniqueIndex: createStandardIndexFlatMetadata({
+ ...args,
+ context: {
+ indexName: indexNames.companyUniqueIndex,
+ relatedFieldNames: [fieldNames.parent, fieldNames.company],
+ isUnique: true,
+ indexWhereClause: '"deletedAt" IS NULL',
+ },
+ }),
+ opportunityUniqueIndex: createStandardIndexFlatMetadata({
+ ...args,
+ context: {
+ indexName: indexNames.opportunityUniqueIndex,
+ relatedFieldNames: [fieldNames.parent, fieldNames.opportunity],
+ isUnique: true,
+ indexWhereClause: '"deletedAt" IS NULL',
+ },
+ }),
+});
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/compute-calendar-event-target-standard-flat-index-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/compute-calendar-event-target-standard-flat-index-metadata.util.ts
new file mode 100644
index 00000000000..6ecd4f9ca4a
--- /dev/null
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/compute-calendar-event-target-standard-flat-index-metadata.util.ts
@@ -0,0 +1,40 @@
+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 } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/create-standard-index-flat-metadata.util';
+import { buildStandardTargetFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/build-standard-target-flat-index-metadatas.util';
+
+export const buildCalendarEventTargetStandardFlatIndexMetadatas = (
+ args: Omit<CreateStandardIndexArgs<'calendarEventTarget'>, 'context'>,
+): Record<
+ AllStandardObjectIndexName<'calendarEventTarget'>,
+ FlatIndexMetadata
+> => {
+ const indexes = buildStandardTargetFlatIndexMetadatas({
+ args,
+ fieldNames: {
+ parent: 'calendarEvent',
+ person: 'targetPerson',
+ company: 'targetCompany',
+ opportunity: 'targetOpportunity',
+ },
+ indexNames: {
+ parentIdIndex: 'calendarEventIdIndex',
+ personIdIndex: 'personIdIndex',
+ companyIdIndex: 'companyIdIndex',
+ opportunityIdIndex: 'opportunityIdIndex',
+ personUniqueIndex: 'calendarEventPersonUniqueIndex',
+ companyUniqueIndex: 'calendarEventCompanyUniqueIndex',
+ opportunityUniqueIndex: 'calendarEventOpportunityUniqueIndex',
+ },
+ });
+
+ return {
+ calendarEventIdIndex: indexes.parentIdIndex,
+ personIdIndex: indexes.personIdIndex,
+ companyIdIndex: indexes.companyIdIndex,
+ opportunityIdIndex: indexes.opportunityIdIndex,
+ calendarEventPersonUniqueIndex: indexes.personUniqueIndex,
+ calendarEventCompanyUniqueIndex: indexes.companyUniqueIndex,
+ calendarEventOpportunityUniqueIndex: indexes.opportunityUniqueIndex,
+ };
+};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/compute-message-thread-target-standard-flat-index-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/compute-message-thread-target-standard-flat-index-metadata.util.ts
new file mode 100644
index 00000000000..d2fa2832e4e
--- /dev/null
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/compute-message-thread-target-standard-flat-index-metadata.util.ts
@@ -0,0 +1,40 @@
+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 } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/create-standard-index-flat-metadata.util';
+import { buildStandardTargetFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/build-standard-target-flat-index-metadatas.util';
+
+export const buildMessageThreadTargetStandardFlatIndexMetadatas = (
+ args: Omit<CreateStandardIndexArgs<'messageThreadTarget'>, 'context'>,
+): Record<
+ AllStandardObjectIndexName<'messageThreadTarget'>,
+ FlatIndexMetadata
+> => {
+ const indexes = buildStandardTargetFlatIndexMetadatas({
+ args,
+ fieldNames: {
+ parent: 'messageThread',
+ person: 'targetPerson',
+ company: 'targetCompany',
+ opportunity: 'targetOpportunity',
+ },
+ indexNames: {
+ parentIdIndex: 'messageThreadIdIndex',
+ personIdIndex: 'personIdIndex',
+ companyIdIndex: 'companyIdIndex',
+ opportunityIdIndex: 'opportunityIdIndex',
+ personUniqueIndex: 'messageThreadPersonUniqueIndex',
+ companyUniqueIndex: 'messageThreadCompanyUniqueIndex',
+ opportunityUniqueIndex: 'messageThreadOpportunityUniqueIndex',
+ },
+ });
+
+ return {
+ messageThreadIdIndex: indexes.parentIdIndex,
+ personIdIndex: indexes.personIdIndex,
+ companyIdIndex: indexes.companyIdIndex,
+ opportunityIdIndex: indexes.opportunityIdIndex,
+ messageThreadPersonUniqueIndex: indexes.personUniqueIndex,
+ messageThreadCompanyUniqueIndex: indexes.companyUniqueIndex,
+ messageThreadOpportunityUniqueIndex: indexes.opportunityUniqueIndex,
+ };
+};
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 d82433ad1ac..c37151c2079 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
@@ -230,6 +230,53 @@ export const STANDARD_FLAT_OBJECT_METADATA_BUILDERS_BY_OBJECT_NAME = {
twentyStandardApplicationId,
now,
}),
+ calendarEventTarget: ({
+ now,
+ workspaceId,
+ standardObjectMetadataRelatedEntityIds,
+ twentyStandardApplicationId,
+ dependencyFlatEntityMaps,
+ }: Omit<
+ CreateStandardObjectArgs<'calendarEventTarget'>,
+ 'context' | 'objectName'
+ >) =>
+ createStandardObjectFlatMetadata({
+ objectName: 'calendarEventTarget',
+ dependencyFlatEntityMaps,
+ context: {
+ universalIdentifier:
+ STANDARD_OBJECTS.calendarEventTarget.universalIdentifier,
+ nameSingular: 'calendarEventTarget',
+ namePlural: 'calendarEventTargets',
+ labelSingular: i18nLabel(
+ msg({
+ message: `Calendar Event Target`,
+ context: 'objectMetadata.labelSingular',
+ }),
+ ),
+ labelPlural: i18nLabel(
+ msg({
+ message: `Calendar Event Targets`,
+ context: 'objectMetadata.labelPlural',
+ }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `A calendar event target`,
+ context: 'objectMetadata.description',
+ }),
+ ),
+ icon: 'IconCalendar',
+ isSystem: true,
+ isAuditLogged: false,
+ isUICreatable: false,
+ labelIdentifierFieldMetadataName: 'id',
+ },
+ workspaceId,
+ standardObjectMetadataRelatedEntityIds,
+ twentyStandardApplicationId,
+ now,
+ }),
callRecording: ({
now,
workspaceId,
@@ -661,6 +708,53 @@ export const STANDARD_FLAT_OBJECT_METADATA_BUILDERS_BY_OBJECT_NAME = {
twentyStandardApplicationId,
now,
}),
+ messageThreadTarget: ({
+ now,
+ workspaceId,
+ standardObjectMetadataRelatedEntityIds,
+ twentyStandardApplicationId,
+ dependencyFlatEntityMaps,
+ }: Omit<
+ CreateStandardObjectArgs<'messageThreadTarget'>,
+ 'context' | 'objectName'
+ >) =>
+ createStandardObjectFlatMetadata({
+ objectName: 'messageThreadTarget',
+ dependencyFlatEntityMaps,
+ context: {
+ universalIdentifier:
+ STANDARD_OBJECTS.messageThreadTarget.universalIdentifier,
+ nameSingular: 'messageThreadTarget',
+ namePlural: 'messageThreadTargets',
+ labelSingular: i18nLabel(
+ msg({
+ message: `Message Thread Target`,
+ context: 'objectMetadata.labelSingular',
+ }),
+ ),
+ labelPlural: i18nLabel(
+ msg({
+ message: `Message Thread Targets`,
+ context: 'objectMetadata.labelPlural',
+ }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `A message thread target`,
+ context: 'objectMetadata.description',
+ }),
+ ),
+ icon: 'IconMessage',
+ isSystem: true,
+ isAuditLogged: false,
+ isUICreatable: false,
+ labelIdentifierFieldMetadataName: 'id',
+ },
+ workspaceId,
+ standardObjectMetadataRelatedEntityIds,
+ twentyStandardApplicationId,
+ now,
+ }),
message: ({
now,
workspaceId,
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 8c31b793303..9274e16be76 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
@@ -8,6 +8,7 @@ export const STANDARD_OBJECT_ICONS = {
calendarChannelEventAssociation: 'IconCalendar',
calendarEventParticipant: 'IconCalendar',
calendarEvent: 'IconCalendar',
+ calendarEventTarget: 'IconCalendar',
callRecording: 'IconVideo',
comment: 'IconMessageCircle',
company: 'IconBuildingSkyscraper',
@@ -16,6 +17,7 @@ export const STANDARD_OBJECT_ICONS = {
messageChannelMessageAssociation: 'IconMessage',
messageParticipant: 'IconUserCircle',
messageThread: 'IconMessage',
+ messageThreadTarget: 'IconMessage',
messageThreadSubscriber: 'IconPerson',
message: 'IconMessage',
note: 'IconNotes',
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/__tests__/flat-index-metadata-validator.service.spec.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/__tests__/flat-index-metadata-validator.service.spec.ts
new file mode 100644
index 00000000000..3596524bc77
--- /dev/null
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/__tests__/flat-index-metadata-validator.service.spec.ts
@@ -0,0 +1,75 @@
+import { FieldMetadataType, RelationType } from 'twenty-shared/types';
+
+import { FlatIndexValidatorService } from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-index-metadata-validator.service';
+
+const INDEX_UNIVERSAL_IDENTIFIER = '11111111-1111-4111-8111-111111111111';
+const OBJECT_UNIVERSAL_IDENTIFIER = '22222222-2222-4222-8222-222222222222';
+const FIELD_UNIVERSAL_IDENTIFIER = '33333333-3333-4333-8333-333333333333';
+
+const buildCreationArgs = (relationType: RelationType) =>
+ ({
+ flatEntityToValidate: {
+ universalIdentifier: INDEX_UNIVERSAL_IDENTIFIER,
+ name: 'targetUniqueIndex',
+ objectMetadataUniversalIdentifier: OBJECT_UNIVERSAL_IDENTIFIER,
+ isUnique: true,
+ universalFlatIndexFieldMetadatas: [
+ {
+ indexMetadataUniversalIdentifier: INDEX_UNIVERSAL_IDENTIFIER,
+ fieldMetadataUniversalIdentifier: FIELD_UNIVERSAL_IDENTIFIER,
+ },
+ ],
+ },
+ optimisticFlatEntityMapsAndRelatedFlatEntityMaps: {
+ flatIndexMaps: { byUniversalIdentifier: {} },
+ flatObjectMetadataMaps: {
+ byUniversalIdentifier: {
+ [OBJECT_UNIVERSAL_IDENTIFIER]: {
+ universalIdentifier: OBJECT_UNIVERSAL_IDENTIFIER,
+ },
+ },
+ },
+ flatFieldMetadataMaps: {
+ byUniversalIdentifier: {
+ [FIELD_UNIVERSAL_IDENTIFIER]: {
+ universalIdentifier: FIELD_UNIVERSAL_IDENTIFIER,
+ objectMetadataUniversalIdentifier: OBJECT_UNIVERSAL_IDENTIFIER,
+ name: 'targetPerson',
+ type: FieldMetadataType.MORPH_RELATION,
+ defaultValue: null,
+ isUnique: false,
+ universalSettings: { relationType },
+ },
+ },
+ },
+ },
+ }) as unknown as Parameters<
+ FlatIndexValidatorService['validateFlatIndexCreation']
+ >[0];
+
+describe('FlatIndexValidatorService', () => {
+ const service = new FlatIndexValidatorService();
+
+ it('accepts a unique index on a many-to-one morph member join column', () => {
+ const result = service.validateFlatIndexCreation(
+ buildCreationArgs(RelationType.MANY_TO_ONE),
+ );
+
+ expect(result.errors).toEqual([]);
+ });
+
+ it('rejects a unique index on an inverse morph relation', () => {
+ const result = service.validateFlatIndexCreation(
+ buildCreationArgs(RelationType.ONE_TO_MANY),
+ );
+
+ expect(result.errors).toEqual(
+ expect.arrayContaining([
+ expect.objectContaining({
+ message:
+ 'Unique index cannot be created for field targetPerson of type MORPH_RELATION',
+ }),
+ ]),
+ );
+ });
+});
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-index-metadata-validator.service.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-index-metadata-validator.service.ts
index 7a101195957..eb53e9a9f42 100644
--- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-index-metadata-validator.service.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-index-metadata-validator.service.ts
@@ -2,11 +2,7 @@ import { Injectable } from '@nestjs/common';
import { msg, t } from '@lingui/core/macro';
import { ALL_METADATA_NAME } from 'twenty-shared/metadata';
-import {
- FieldMetadataType,
- RelationType,
- compositeTypeDefinitions,
-} from 'twenty-shared/types';
+import { RelationType, compositeTypeDefinitions } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
import { FlatEntityMapsExceptionCode } from 'src/engine/metadata-modules/flat-entity/exceptions/flat-entity-maps.exception';
@@ -186,15 +182,13 @@ export class FlatIndexValidatorService {
(property) => property.isIncludedInUniqueConstraint,
);
- // MORPH_RELATION resolves to multiple join columns and can't
- // satisfy a single-column UNIQUE constraint. RELATION is only
- // accepted as MANY_TO_ONE: that side owns a single join column
- // (UUID) which Postgres can uniquely index.
+ // Each MANY_TO_ONE relation, including one concrete member of a
+ // morph group, owns one UUID join column that Postgres can
+ // uniquely index. The inverse side has no join column.
const isUnindexableRelation =
isMorphOrRelationUniversalFlatFieldMetadata(relatedFlatField) &&
- (relatedFlatField.type === FieldMetadataType.MORPH_RELATION ||
- relatedFlatField.universalSettings?.relationType !==
- RelationType.MANY_TO_ONE);
+ relatedFlatField.universalSettings?.relationType !==
+ RelationType.MANY_TO_ONE;
if (
isUnindexableRelation ||
diff --git a/packages/twenty-server/src/modules/calendar/common/query-hooks/calendar-event-target/calendar-event-target-create-many.pre-query-hook.ts b/packages/twenty-server/src/modules/calendar/common/query-hooks/calendar-event-target/calendar-event-target-create-many.pre-query-hook.ts
new file mode 100644
index 00000000000..e1980c37a10
--- /dev/null
+++ b/packages/twenty-server/src/modules/calendar/common/query-hooks/calendar-event-target/calendar-event-target-create-many.pre-query-hook.ts
@@ -0,0 +1,22 @@
+import { type WorkspacePreQueryHookInstance } from 'src/engine/api/graphql/workspace-query-runner/workspace-query-hook/interfaces/workspace-query-hook.interface';
+import { type CreateManyResolverArgs } from 'src/engine/api/graphql/workspace-resolver-builder/interfaces/workspace-resolvers-builder.interface';
+import { WorkspaceQueryHook } from 'src/engine/api/graphql/workspace-query-runner/workspace-query-hook/decorators/workspace-query-hook.decorator';
+import { type WorkspaceAuthContext } from 'src/engine/core-modules/auth/types/workspace-auth-context.type';
+import {
+ applyManuallyAssignedDefault,
+ type TargetJunctionRecordInput,
+} from 'src/modules/match-participant/utils/apply-manually-assigned-default.util';
+
+@WorkspaceQueryHook('calendarEventTarget.createMany')
+export class CalendarEventTargetCreateManyPreQueryHook implements WorkspacePreQueryHookInstance {
+ async execute(
+ _authContext: WorkspaceAuthContext,
+ _objectName: string,
+ payload: CreateManyResolverArgs<TargetJunctionRecordInput>,
+ ): Promise<CreateManyResolverArgs<TargetJunctionRecordInput>> {
+ return {
+ ...payload,
+ data: payload.data.map(applyManuallyAssignedDefault),
+ };
+ }
+}
diff --git a/packages/twenty-server/src/modules/calendar/common/query-hooks/calendar-event-target/calendar-event-target-create-one.pre-query-hook.ts b/packages/twenty-server/src/modules/calendar/common/query-hooks/calendar-event-target/calendar-event-target-create-one.pre-query-hook.ts
new file mode 100644
index 00000000000..b5fe3547015
--- /dev/null
+++ b/packages/twenty-server/src/modules/calendar/common/query-hooks/calendar-event-target/calendar-event-target-create-one.pre-query-hook.ts
@@ -0,0 +1,22 @@
+import { type WorkspacePreQueryHookInstance } from 'src/engine/api/graphql/workspace-query-runner/workspace-query-hook/interfaces/workspace-query-hook.interface';
+import { type CreateOneResolverArgs } from 'src/engine/api/graphql/workspace-resolver-builder/interfaces/workspace-resolvers-builder.interface';
+import { WorkspaceQueryHook } from 'src/engine/api/graphql/workspace-query-runner/workspace-query-hook/decorators/workspace-query-hook.decorator';
+import { type WorkspaceAuthContext } from 'src/engine/core-modules/auth/types/workspace-auth-context.type';
+import {
+ applyManuallyAssignedDefault,
+ type TargetJunctionRecordInput,
+} from 'src/modules/match-participant/utils/apply-manually-assigned-default.util';
+
+@WorkspaceQueryHook('calendarEventTarget.createOne')
+export class CalendarEventTargetCreateOnePreQueryHook implements WorkspacePreQueryHookInstance {
+ async execute(
+ _authContext: WorkspaceAuthContext,
+ _objectName: string,
+ payload: CreateOneResolverArgs<TargetJunctionRecordInput>,
+ ): Promise<CreateOneResolverArgs<TargetJunctionRecordInput>> {
+ return {
+ ...payload,
+ data: applyManuallyAssignedDefault(payload.data),
+ };
+ }
+}
diff --git a/packages/twenty-server/src/modules/calendar/common/query-hooks/calendar-query-hook.module.ts b/packages/twenty-server/src/modules/calendar/common/query-hooks/calendar-query-hook.module.ts
index 6c65b75a789..493d2988a4b 100644
--- a/packages/twenty-server/src/modules/calendar/common/query-hooks/calendar-query-hook.module.ts
+++ b/packages/twenty-server/src/modules/calendar/common/query-hooks/calendar-query-hook.module.ts
@@ -7,6 +7,8 @@ import { ConnectedAccountEntity } from 'src/engine/metadata-modules/connected-ac
import { CalendarEventFindManyPostQueryHook } from 'src/modules/calendar/common/query-hooks/calendar-event/calendar-event-find-many.post-query.hook';
import { CalendarEventFindOnePostQueryHook } from 'src/modules/calendar/common/query-hooks/calendar-event/calendar-event-find-one.post-query.hook';
import { ApplyCalendarEventsVisibilityRestrictionsService } from 'src/modules/calendar/common/query-hooks/calendar-event/services/apply-calendar-events-visibility-restrictions.service';
+import { CalendarEventTargetCreateManyPreQueryHook } from 'src/modules/calendar/common/query-hooks/calendar-event-target/calendar-event-target-create-many.pre-query-hook';
+import { CalendarEventTargetCreateOnePreQueryHook } from 'src/modules/calendar/common/query-hooks/calendar-event-target/calendar-event-target-create-one.pre-query-hook';
@Module({
imports: [
@@ -20,6 +22,8 @@ import { ApplyCalendarEventsVisibilityRestrictionsService } from 'src/modules/ca
ApplyCalendarEventsVisibilityRestrictionsService,
CalendarEventFindOnePostQueryHook,
CalendarEventFindManyPostQueryHook,
+ CalendarEventTargetCreateOnePreQueryHook,
+ CalendarEventTargetCreateManyPreQueryHook,
],
})
export class CalendarQueryHookModule {}
diff --git a/packages/twenty-server/src/modules/calendar/common/standard-objects/calendar-event-target.workspace-entity.ts b/packages/twenty-server/src/modules/calendar/common/standard-objects/calendar-event-target.workspace-entity.ts
new file mode 100644
index 00000000000..e8f9e564f8d
--- /dev/null
+++ b/packages/twenty-server/src/modules/calendar/common/standard-objects/calendar-event-target.workspace-entity.ts
@@ -0,0 +1,19 @@
+import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity';
+import { type EntityRelation } from 'src/engine/workspace-manager/workspace-migration/types/entity-relation.interface';
+import { type CalendarEventWorkspaceEntity } from 'src/modules/calendar/common/standard-objects/calendar-event.workspace-entity';
+import { type CompanyWorkspaceEntity } from 'src/modules/company/standard-objects/company.workspace-entity';
+import { type OpportunityWorkspaceEntity } from 'src/modules/opportunity/standard-objects/opportunity.workspace-entity';
+import { type PersonWorkspaceEntity } from 'src/modules/person/standard-objects/person.workspace-entity';
+
+export class CalendarEventTargetWorkspaceEntity extends BaseWorkspaceEntity {
+ calendarEvent: EntityRelation<CalendarEventWorkspaceEntity>;
+ calendarEventId: string;
+ isAutomaticallyAssigned: boolean;
+ isManuallyAssigned: boolean;
+ targetPerson: EntityRelation<PersonWorkspaceEntity> | null;
+ targetPersonId: string | null;
+ targetCompany: EntityRelation<CompanyWorkspaceEntity> | null;
+ targetCompanyId: string | null;
+ targetOpportunity: EntityRelation<OpportunityWorkspaceEntity> | null;
+ targetOpportunityId: string | null;
+}
diff --git a/packages/twenty-server/src/modules/calendar/common/standard-objects/calendar-event.workspace-entity.ts b/packages/twenty-server/src/modules/calendar/common/standard-objects/calendar-event.workspace-entity.ts
index bfc8e419d3c..8f1fc025762 100644
--- a/packages/twenty-server/src/modules/calendar/common/standard-objects/calendar-event.workspace-entity.ts
+++ b/packages/twenty-server/src/modules/calendar/common/standard-objects/calendar-event.workspace-entity.ts
@@ -4,6 +4,7 @@ import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity
import { type EntityRelation } from 'src/engine/workspace-manager/workspace-migration/types/entity-relation.interface';
import { type CalendarChannelEventAssociationWorkspaceEntity } from 'src/modules/calendar/common/standard-objects/calendar-channel-event-association.workspace-entity';
import { type CalendarEventParticipantWorkspaceEntity } from 'src/modules/calendar/common/standard-objects/calendar-event-participant.workspace-entity';
+import { type CalendarEventTargetWorkspaceEntity } from 'src/modules/calendar/common/standard-objects/calendar-event-target.workspace-entity';
export class CalendarEventWorkspaceEntity extends BaseWorkspaceEntity {
title: string | null;
@@ -24,6 +25,7 @@ export class CalendarEventWorkspaceEntity extends BaseWorkspaceEntity {
calendarEventParticipants: EntityRelation<
CalendarEventParticipantWorkspaceEntity[]
>;
+ calendarEventTargets: EntityRelation<CalendarEventTargetWorkspaceEntity[]>;
// callRecordings reverse relation intentionally omitted from the TypeScript workspace
// entity. It exists in standard metadata, but declaring a to-many relation here expands
// recursive nested insert types and tips Person past TS's instantiation-depth limit.
diff --git a/packages/twenty-server/src/modules/company/standard-objects/company.workspace-entity.ts b/packages/twenty-server/src/modules/company/standard-objects/company.workspace-entity.ts
index 89f202fe8a7..f2e979b5867 100644
--- a/packages/twenty-server/src/modules/company/standard-objects/company.workspace-entity.ts
+++ b/packages/twenty-server/src/modules/company/standard-objects/company.workspace-entity.ts
@@ -8,6 +8,8 @@ import {
import { type EntityRelation } from 'src/engine/workspace-manager/workspace-migration/types/entity-relation.interface';
import { type AttachmentWorkspaceEntity } from 'src/modules/attachment/standard-objects/attachment.workspace-entity';
import { type NoteTargetWorkspaceEntity } from 'src/modules/note/standard-objects/note-target.workspace-entity';
+import { type CalendarEventTargetWorkspaceEntity } from 'src/modules/calendar/common/standard-objects/calendar-event-target.workspace-entity';
+import { type MessageThreadTargetWorkspaceEntity } from 'src/modules/messaging/common/standard-objects/message-thread-target.workspace-entity';
import { type OpportunityWorkspaceEntity } from 'src/modules/opportunity/standard-objects/opportunity.workspace-entity';
import { type PersonWorkspaceEntity } from 'src/modules/person/standard-objects/person.workspace-entity';
import { type TaskTargetWorkspaceEntity } from 'src/modules/task/standard-objects/task-target.workspace-entity';
@@ -37,6 +39,8 @@ export class CompanyWorkspaceEntity {
accountOwnerId: string | null;
taskTargets: EntityRelation<TaskTargetWorkspaceEntity[]>;
noteTargets: EntityRelation<NoteTargetWorkspaceEntity[]>;
+ calendarEventTargets: EntityRelation<CalendarEventTargetWorkspaceEntity[]>;
+ messageThreadTargets: EntityRelation<MessageThreadTargetWorkspaceEntity[]>;
opportunities: EntityRelation<OpportunityWorkspaceEntity[]>;
attachments: EntityRelation<AttachmentWorkspaceEntity[]>;
timelineActivities: EntityRelation<TimelineActivityWorkspaceEntity[]>;
diff --git a/packages/twenty-server/src/modules/match-participant/utils/__tests__/apply-manually-assigned-default.util.spec.ts b/packages/twenty-server/src/modules/match-participant/utils/__tests__/apply-manually-assigned-default.util.spec.ts
new file mode 100644
index 00000000000..c9f333c6509
--- /dev/null
+++ b/packages/twenty-server/src/modules/match-participant/utils/__tests__/apply-manually-assigned-default.util.spec.ts
@@ -0,0 +1,30 @@
+import { applyManuallyAssignedDefault } from 'src/modules/match-participant/utils/apply-manually-assigned-default.util';
+
+describe('applyManuallyAssignedDefault', () => {
+ it('defaults an attachment without provenance to manually assigned', () => {
+ expect(
+ applyManuallyAssignedDefault({
+ messageThreadId: 'thread-id',
+ targetPersonId: 'person-id',
+ }),
+ ).toEqual({
+ messageThreadId: 'thread-id',
+ targetPersonId: 'person-id',
+ isManuallyAssigned: true,
+ });
+ });
+
+ it('preserves an explicit caller-provided provenance', () => {
+ expect(
+ applyManuallyAssignedDefault({
+ calendarEventId: 'event-id',
+ targetCompanyId: 'company-id',
+ isManuallyAssigned: false,
+ }),
+ ).toEqual({
+ calendarEventId: 'event-id',
+ targetCompanyId: 'company-id',
+ isManuallyAssigned: false,
+ });
+ });
+});
diff --git a/packages/twenty-server/src/modules/match-participant/utils/apply-manually-assigned-default.util.ts b/packages/twenty-server/src/modules/match-participant/utils/apply-manually-assigned-default.util.ts
new file mode 100644
index 00000000000..836da7b6f15
--- /dev/null
+++ b/packages/twenty-server/src/modules/match-participant/utils/apply-manually-assigned-default.util.ts
@@ -0,0 +1,15 @@
+export type TargetJunctionRecordInput = Record<string, unknown> & {
+ isManuallyAssigned?: boolean;
+};
+
+// API writes to target junctions are user attachments. The field default
+// covers plain inserts, but an upsert that matches an existing row (an
+// automatic row, or an exclusion tombstone being restored) only applies the
+// caller's input, so the manual provenance has to ride the input itself or
+// reconciliation will reap the row as obsolete automatic state.
+export const applyManuallyAssignedDefault = (
+ record: TargetJunctionRecordInput,
+): TargetJunctionRecordInput => ({
+ ...record,
+ isManuallyAssigned: record.isManuallyAssigned ?? true,
+});
diff --git a/packages/twenty-server/src/modules/messaging/common/query-hooks/message-thread-target/message-thread-target-create-many.pre-query-hook.ts b/packages/twenty-server/src/modules/messaging/common/query-hooks/message-thread-target/message-thread-target-create-many.pre-query-hook.ts
new file mode 100644
index 00000000000..268f8554642
--- /dev/null
+++ b/packages/twenty-server/src/modules/messaging/common/query-hooks/message-thread-target/message-thread-target-create-many.pre-query-hook.ts
@@ -0,0 +1,22 @@
+import { type WorkspacePreQueryHookInstance } from 'src/engine/api/graphql/workspace-query-runner/workspace-query-hook/interfaces/workspace-query-hook.interface';
+import { type CreateManyResolverArgs } from 'src/engine/api/graphql/workspace-resolver-builder/interfaces/workspace-resolvers-builder.interface';
+import { WorkspaceQueryHook } from 'src/engine/api/graphql/workspace-query-runner/workspace-query-hook/decorators/workspace-query-hook.decorator';
+import { type WorkspaceAuthContext } from 'src/engine/core-modules/auth/types/workspace-auth-context.type';
+import {
+ applyManuallyAssignedDefault,
+ type TargetJunctionRecordInput,
+} from 'src/modules/match-participant/utils/apply-manually-assigned-default.util';
+
+@WorkspaceQueryHook('messageThreadTarget.createMany')
+export class MessageThreadTargetCreateManyPreQueryHook implements WorkspacePreQueryHookInstance {
+ async execute(
+ _authContext: WorkspaceAuthContext,
+ _objectName: string,
+ payload: CreateManyResolverArgs<TargetJunctionRecordInput>,
+ ): Promise<CreateManyResolverArgs<TargetJunctionRecordInput>> {
+ return {
+ ...payload,
+ data: payload.data.map(applyManuallyAssignedDefault),
+ };
+ }
+}
diff --git a/packages/twenty-server/src/modules/messaging/common/query-hooks/message-thread-target/message-thread-target-create-one.pre-query-hook.ts b/packages/twenty-server/src/modules/messaging/common/query-hooks/message-thread-target/message-thread-target-create-one.pre-query-hook.ts
new file mode 100644
index 00000000000..de0f98303f1
--- /dev/null
+++ b/packages/twenty-server/src/modules/messaging/common/query-hooks/message-thread-target/message-thread-target-create-one.pre-query-hook.ts
@@ -0,0 +1,22 @@
+import { type WorkspacePreQueryHookInstance } from 'src/engine/api/graphql/workspace-query-runner/workspace-query-hook/interfaces/workspace-query-hook.interface';
+import { type CreateOneResolverArgs } from 'src/engine/api/graphql/workspace-resolver-builder/interfaces/workspace-resolvers-builder.interface';
+import { WorkspaceQueryHook } from 'src/engine/api/graphql/workspace-query-runner/workspace-query-hook/decorators/workspace-query-hook.decorator';
+import { type WorkspaceAuthContext } from 'src/engine/core-modules/auth/types/workspace-auth-context.type';
+import {
+ applyManuallyAssignedDefault,
+ type TargetJunctionRecordInput,
+} from 'src/modules/match-participant/utils/apply-manually-assigned-default.util';
+
+@WorkspaceQueryHook('messageThreadTarget.createOne')
+export class MessageThreadTargetCreateOnePreQueryHook implements WorkspacePreQueryHookInstance {
+ async execute(
+ _authContext: WorkspaceAuthContext,
+ _objectName: string,
+ payload: CreateOneResolverArgs<TargetJunctionRecordInput>,
+ ): Promise<CreateOneResolverArgs<TargetJunctionRecordInput>> {
+ return {
+ ...payload,
+ data: applyManuallyAssignedDefault(payload.data),
+ };
+ }
+}
diff --git a/packages/twenty-server/src/modules/messaging/common/query-hooks/messaging-query-hook.module.ts b/packages/twenty-server/src/modules/messaging/common/query-hooks/messaging-query-hook.module.ts
index 47bc6b6aac7..ee57ff871fa 100644
--- a/packages/twenty-server/src/modules/messaging/common/query-hooks/messaging-query-hook.module.ts
+++ b/packages/twenty-server/src/modules/messaging/common/query-hooks/messaging-query-hook.module.ts
@@ -8,6 +8,8 @@ import { MessageFolderEntity } from 'src/engine/metadata-modules/message-folder/
import { ApplyMessagesVisibilityRestrictionsService } from 'src/modules/messaging/common/query-hooks/message/apply-messages-visibility-restrictions.service';
import { MessageFindManyPostQueryHook } from 'src/modules/messaging/common/query-hooks/message/message-find-many.post-query.hook';
import { MessageFindOnePostQueryHook } from 'src/modules/messaging/common/query-hooks/message/message-find-one.post-query.hook';
+import { MessageThreadTargetCreateManyPreQueryHook } from 'src/modules/messaging/common/query-hooks/message-thread-target/message-thread-target-create-many.pre-query-hook';
+import { MessageThreadTargetCreateOnePreQueryHook } from 'src/modules/messaging/common/query-hooks/message-thread-target/message-thread-target-create-one.pre-query-hook';
import { MessagingImportManagerModule } from 'src/modules/messaging/message-import-manager/messaging-import-manager.module';
@Module({
@@ -24,6 +26,8 @@ import { MessagingImportManagerModule } from 'src/modules/messaging/message-impo
ApplyMessagesVisibilityRestrictionsService,
MessageFindOnePostQueryHook,
MessageFindManyPostQueryHook,
+ MessageThreadTargetCreateOnePreQueryHook,
+ MessageThreadTargetCreateManyPreQueryHook,
],
})
export class MessagingQueryHookModule {}
diff --git a/packages/twenty-server/src/modules/messaging/common/standard-objects/message-thread-target.workspace-entity.ts b/packages/twenty-server/src/modules/messaging/common/standard-objects/message-thread-target.workspace-entity.ts
new file mode 100644
index 00000000000..c1eb6bd590b
--- /dev/null
+++ b/packages/twenty-server/src/modules/messaging/common/standard-objects/message-thread-target.workspace-entity.ts
@@ -0,0 +1,19 @@
+import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity';
+import { type EntityRelation } from 'src/engine/workspace-manager/workspace-migration/types/entity-relation.interface';
+import { type CompanyWorkspaceEntity } from 'src/modules/company/standard-objects/company.workspace-entity';
+import { type MessageThreadWorkspaceEntity } from 'src/modules/messaging/common/standard-objects/message-thread.workspace-entity';
+import { type OpportunityWorkspaceEntity } from 'src/modules/opportunity/standard-objects/opportunity.workspace-entity';
+import { type PersonWorkspaceEntity } from 'src/modules/person/standard-objects/person.workspace-entity';
+
+export class MessageThreadTargetWorkspaceEntity extends BaseWorkspaceEntity {
+ messageThread: EntityRelation<MessageThreadWorkspaceEntity>;
+ messageThreadId: string;
+ isAutomaticallyAssigned: boolean;
+ isManuallyAssigned: boolean;
+ targetPerson: EntityRelation<PersonWorkspaceEntity> | null;
+ targetPersonId: string | null;
+ targetCompany: EntityRelation<CompanyWorkspaceEntity> | null;
+ targetCompanyId: string | null;
+ targetOpportunity: EntityRelation<OpportunityWorkspaceEntity> | null;
+ targetOpportunityId: string | null;
+}
diff --git a/packages/twenty-server/src/modules/messaging/common/standard-objects/message-thread.workspace-entity.ts b/packages/twenty-server/src/modules/messaging/common/standard-objects/message-thread.workspace-entity.ts
index ef038ce8657..ca915bf8a61 100644
--- a/packages/twenty-server/src/modules/messaging/common/standard-objects/message-thread.workspace-entity.ts
+++ b/packages/twenty-server/src/modules/messaging/common/standard-objects/message-thread.workspace-entity.ts
@@ -1,8 +1,10 @@
import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity';
import { type EntityRelation } from 'src/engine/workspace-manager/workspace-migration/types/entity-relation.interface';
import { type MessageWorkspaceEntity } from 'src/modules/messaging/common/standard-objects/message.workspace-entity';
+import { type MessageThreadTargetWorkspaceEntity } from 'src/modules/messaging/common/standard-objects/message-thread-target.workspace-entity';
export class MessageThreadWorkspaceEntity extends BaseWorkspaceEntity {
subject: string | null;
messages: EntityRelation<MessageWorkspaceEntity[]>;
+ messageThreadTargets: EntityRelation<MessageThreadTargetWorkspaceEntity[]>;
}
diff --git a/packages/twenty-server/src/modules/opportunity/standard-objects/opportunity.workspace-entity.ts b/packages/twenty-server/src/modules/opportunity/standard-objects/opportunity.workspace-entity.ts
index 1e1e566aa15..dfe71bc3e3e 100644
--- a/packages/twenty-server/src/modules/opportunity/standard-objects/opportunity.workspace-entity.ts
+++ b/packages/twenty-server/src/modules/opportunity/standard-objects/opportunity.workspace-entity.ts
@@ -5,6 +5,8 @@ import { type EntityRelation } from 'src/engine/workspace-manager/workspace-migr
import { type AttachmentWorkspaceEntity } from 'src/modules/attachment/standard-objects/attachment.workspace-entity';
import { type CompanyWorkspaceEntity } from 'src/modules/company/standard-objects/company.workspace-entity';
import { type NoteTargetWorkspaceEntity } from 'src/modules/note/standard-objects/note-target.workspace-entity';
+import { type CalendarEventTargetWorkspaceEntity } from 'src/modules/calendar/common/standard-objects/calendar-event-target.workspace-entity';
+import { type MessageThreadTargetWorkspaceEntity } from 'src/modules/messaging/common/standard-objects/message-thread-target.workspace-entity';
import { type PersonWorkspaceEntity } from 'src/modules/person/standard-objects/person.workspace-entity';
import { type TaskTargetWorkspaceEntity } from 'src/modules/task/standard-objects/task-target.workspace-entity';
import { type TimelineActivityWorkspaceEntity } from 'src/modules/timeline/standard-objects/timeline-activity.workspace-entity';
@@ -24,6 +26,8 @@ export class OpportunityWorkspaceEntity extends BaseWorkspaceEntity {
companyId: string | null;
taskTargets: EntityRelation<TaskTargetWorkspaceEntity[]>;
noteTargets: EntityRelation<NoteTargetWorkspaceEntity[]>;
+ calendarEventTargets: EntityRelation<CalendarEventTargetWorkspaceEntity[]>;
+ messageThreadTargets: EntityRelation<MessageThreadTargetWorkspaceEntity[]>;
attachments: EntityRelation<AttachmentWorkspaceEntity[]>;
timelineActivities: EntityRelation<TimelineActivityWorkspaceEntity[]>;
owner: EntityRelation<WorkspaceMemberWorkspaceEntity> | null;
diff --git a/packages/twenty-server/src/modules/person/standard-objects/person.workspace-entity.ts b/packages/twenty-server/src/modules/person/standard-objects/person.workspace-entity.ts
index 1c10476f115..39a286c2a56 100644
--- a/packages/twenty-server/src/modules/person/standard-objects/person.workspace-entity.ts
+++ b/packages/twenty-server/src/modules/person/standard-objects/person.workspace-entity.ts
@@ -15,6 +15,8 @@ import { type CompanyWorkspaceEntity } from 'src/modules/company/standard-object
import { type MessageListMemberWorkspaceEntity } from 'src/modules/emailing/standard-objects/message-list-member.workspace-entity';
import { type MessageParticipantWorkspaceEntity } from 'src/modules/messaging/common/standard-objects/message-participant.workspace-entity';
import { type NoteTargetWorkspaceEntity } from 'src/modules/note/standard-objects/note-target.workspace-entity';
+import { type CalendarEventTargetWorkspaceEntity } from 'src/modules/calendar/common/standard-objects/calendar-event-target.workspace-entity';
+import { type MessageThreadTargetWorkspaceEntity } from 'src/modules/messaging/common/standard-objects/message-thread-target.workspace-entity';
import { type OpportunityWorkspaceEntity } from 'src/modules/opportunity/standard-objects/opportunity.workspace-entity';
import { type TaskTargetWorkspaceEntity } from 'src/modules/task/standard-objects/task-target.workspace-entity';
import { type TimelineActivityWorkspaceEntity } from 'src/modules/timeline/standard-objects/timeline-activity.workspace-entity';
@@ -38,6 +40,8 @@ export class PersonWorkspaceEntity extends BaseWorkspaceEntity {
pointOfContactForOpportunities: EntityRelation<OpportunityWorkspaceEntity[]>;
taskTargets: EntityRelation<TaskTargetWorkspaceEntity[]>;
noteTargets: EntityRelation<NoteTargetWorkspaceEntity[]>;
+ calendarEventTargets: EntityRelation<CalendarEventTargetWorkspaceEntity[]>;
+ messageThreadTargets: EntityRelation<MessageThreadTargetWorkspaceEntity[]>;
attachments: EntityRelation<AttachmentWorkspaceEntity[]>;
messageParticipants: EntityRelation<MessageParticipantWorkspaceEntity[]>;
calendarEventParticipants: EntityRelation<
diff --git a/packages/twenty-shared/src/metadata/__tests__/__snapshots__/standardObjectUniversalIdentifiers.test.ts.snap b/packages/twenty-shared/src/metadata/__tests__/__snapshots__/standardObjectUniversalIdentifiers.test.ts.snap
index 636cfe38319..7254cf3a633 100644
--- a/packages/twenty-shared/src/metadata/__tests__/__snapshots__/standardObjectUniversalIdentifiers.test.ts.snap
+++ b/packages/twenty-shared/src/metadata/__tests__/__snapshots__/standardObjectUniversalIdentifiers.test.ts.snap
@@ -314,6 +314,9 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
"calendarEventParticipants": {
"universalIdentifier": "20202020-e07e-4ccb-88f5-6f3d00458eec",
},
+ "calendarEventTargets": {
+ "universalIdentifier": "2b4a0785-3462-485f-b1a8-79ebb2078eab",
+ },
"callRecordings": {
"universalIdentifier": "48d6d151-18e2-4111-b405-d85fb9d860d8",
},
@@ -593,6 +596,82 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
},
},
},
+ "calendarEventTarget": {
+ "fields": {
+ "calendarEvent": {
+ "universalIdentifier": "a47824b0-0e64-4c1f-bbad-ce45209d119b",
+ },
+ "createdAt": {
+ "universalIdentifier": "10dba306-3735-5e34-a6da-5a2bedd5be64",
+ },
+ "createdBy": {
+ "universalIdentifier": "973208f6-f2c2-5758-84ac-46fa919237d6",
+ },
+ "deletedAt": {
+ "universalIdentifier": "0503a38e-5b07-534b-a650-d455d6e9490a",
+ },
+ "id": {
+ "universalIdentifier": "512cf243-f9eb-51e2-a422-3e62e19916cc",
+ },
+ "isAutomaticallyAssigned": {
+ "universalIdentifier": "b6374fed-9cf2-49ef-b45a-1d6814c16264",
+ },
+ "isManuallyAssigned": {
+ "universalIdentifier": "6afbd5b8-25b5-4c04-82e5-281e6f90f453",
+ },
+ "position": {
+ "universalIdentifier": "852e9d65-da04-5e3e-85b8-52b640031655",
+ },
+ "searchVector": {
+ "universalIdentifier": "03336cfc-bec6-5aeb-81a4-eff824e4fcea",
+ },
+ "targetCompany": {
+ "universalIdentifier": "86d8ec48-6546-5434-a5bc-ba7e4374ecfc",
+ },
+ "targetOpportunity": {
+ "universalIdentifier": "4b111d70-fd44-5e49-88e7-1ce56a320048",
+ },
+ "targetPerson": {
+ "universalIdentifier": "91c5a7dc-c75c-53f3-b1a0-b7d38fd8cf5e",
+ },
+ "updatedAt": {
+ "universalIdentifier": "180d7589-1fda-571a-9ce3-ef02a5d5270e",
+ },
+ "updatedBy": {
+ "universalIdentifier": "13a2bd18-1f0c-55c9-a9e0-04e1dcbdc81d",
+ },
+ },
+ "indexes": {
+ "calendarEventCompanyUniqueIndex": {
+ "universalIdentifier": "3fa22398-6e7d-47a5-95eb-4971f9d62135",
+ },
+ "calendarEventIdIndex": {
+ "universalIdentifier": "ce1c180c-0236-4673-ad1d-359dddf59f93",
+ },
+ "calendarEventOpportunityUniqueIndex": {
+ "universalIdentifier": "c8183b17-5dfe-4e02-8d9d-aef8e54ef07d",
+ },
+ "calendarEventPersonUniqueIndex": {
+ "universalIdentifier": "15b9e394-d451-4186-aaf0-612f6be1ea91",
+ },
+ "companyIdIndex": {
+ "universalIdentifier": "30413277-505d-4f08-be38-a56257460f9f",
+ },
+ "opportunityIdIndex": {
+ "universalIdentifier": "7920092d-281f-473a-8ea4-53c209b36a37",
+ },
+ "personIdIndex": {
+ "universalIdentifier": "f151bc84-ba45-40cb-b064-02ef359ac17b",
+ },
+ },
+ "morphIds": {
+ "targetMorphId": {
+ "morphId": "676e9f68-7b5c-41e6-b46d-2fb9527b7051",
+ },
+ },
+ "universalIdentifier": "6a9b9656-3e23-4234-94a4-b913c5dde668",
+ "views": {},
+ },
"callRecording": {
"fields": {
"applicationId": {
@@ -736,6 +815,9 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
"attachments": {
"universalIdentifier": "a4399ae3-fe89-59fe-a282-aec77d4e63a8",
},
+ "calendarEventTargets": {
+ "universalIdentifier": "f818ef0c-b67b-5dc7-b8e1-427902787503",
+ },
"createdAt": {
"universalIdentifier": "d206d586-fd61-56e1-80a8-9993beb7be0b",
},
@@ -754,6 +836,9 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
"linkedinLink": {
"universalIdentifier": "20202020-ebeb-4beb-b9ad-6848036fb451",
},
+ "messageThreadTargets": {
+ "universalIdentifier": "8b050eda-2dd8-5dd8-ac51-791b2304b789",
+ },
"name": {
"universalIdentifier": "20202020-4d99-4e2e-a84c-4a27837b1ece",
},
@@ -1658,6 +1743,9 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
"messageChannelMessageAssociations": {
"universalIdentifier": "20202020-314e-40a4-906d-a5d5d6c285f6",
},
+ "messageThreadTargets": {
+ "universalIdentifier": "8d7c8b17-b835-4082-96bd-de704c491d49",
+ },
"messages": {
"universalIdentifier": "20202020-3115-404f-aade-e1154b28e35a",
},
@@ -1699,6 +1787,82 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
},
},
},
+ "messageThreadTarget": {
+ "fields": {
+ "createdAt": {
+ "universalIdentifier": "053b824a-873a-5495-8b15-a7cfeda54f5d",
+ },
+ "createdBy": {
+ "universalIdentifier": "a6466b07-220d-5e58-a785-bebadd52e5a6",
+ },
+ "deletedAt": {
+ "universalIdentifier": "aaf99cfc-bd93-5183-9464-4921b504e975",
+ },
+ "id": {
+ "universalIdentifier": "4a9772e6-c0e5-5989-87dd-a786a1bf500b",
+ },
+ "isAutomaticallyAssigned": {
+ "universalIdentifier": "04403730-e960-415a-8790-f0c0f82f3477",
+ },
+ "isManuallyAssigned": {
+ "universalIdentifier": "16efa36f-d195-42e9-959f-6928164f2395",
+ },
+ "messageThread": {
+ "universalIdentifier": "23ca09e6-149d-452f-bed7-a4aad24d1314",
+ },
+ "position": {
+ "universalIdentifier": "d811300a-58b2-5a26-ab83-471cbf256128",
+ },
+ "searchVector": {
+ "universalIdentifier": "95d8f54c-ebe5-56f9-89f3-e8257f69aae1",
+ },
+ "targetCompany": {
+ "universalIdentifier": "70235b19-5ab1-588d-a25c-45c259190354",
+ },
+ "targetOpportunity": {
+ "universalIdentifier": "238849d7-396a-5ebe-958e-309537794f61",
+ },
+ "targetPerson": {
+ "universalIdentifier": "068c655b-e026-57bc-b218-1cf0bb11eaa8",
+ },
+ "updatedAt": {
+ "universalIdentifier": "4bb3e976-be65-51bc-b4a7-8b5830888c9f",
+ },
+ "updatedBy": {
+ "universalIdentifier": "877138a1-a5c3-55c7-aaab-7ee720fca345",
+ },
+ },
+ "indexes": {
+ "companyIdIndex": {
+ "universalIdentifier": "b98005e4-3811-41b6-82d0-3ccd27757eba",
+ },
+ "messageThreadCompanyUniqueIndex": {
+ "universalIdentifier": "30d4f1af-8b6f-4685-802f-8a7cf29f318b",
+ },
+ "messageThreadIdIndex": {
+ "universalIdentifier": "222fdd8b-0863-4f2a-816a-29745537b6b6",
+ },
+ "messageThreadOpportunityUniqueIndex": {
+ "universalIdentifier": "1dc0e37e-afb1-4e90-90b4-052374126a6a",
+ },
+ "messageThreadPersonUniqueIndex": {
+ "universalIdentifier": "087f97cb-8c3c-4ea1-9556-933acde6c83b",
+ },
+ "opportunityIdIndex": {
+ "universalIdentifier": "7679ee05-cf6c-40a7-9ee6-c3e8053caca5",
+ },
+ "personIdIndex": {
+ "universalIdentifier": "280ee419-ac3c-4599-bd62-3e5cb268342c",
+ },
+ },
+ "morphIds": {
+ "targetMorphId": {
+ "morphId": "e85e853d-c26e-41b3-bec0-7afc4bdbc2f7",
+ },
+ },
+ "universalIdentifier": "378ad1b0-592d-4084-80ee-86fef44725b9",
+ "views": {},
+ },
"note": {
"fields": {
"attachments": {
@@ -1897,6 +2061,9 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
"attachments": {
"universalIdentifier": "37d15d4b-7441-5bbc-8a5f-228f2d62abf4",
},
+ "calendarEventTargets": {
+ "universalIdentifier": "73d131ea-d0dc-5509-83aa-9c0c29545ab2",
+ },
"closeDate": {
"universalIdentifier": "20202020-527e-44d6-b1ac-c4158d307b97",
},
@@ -1915,6 +2082,9 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
"id": {
"universalIdentifier": "2fa92d57-b39d-5ee8-ac9e-b39bc65b9ee9",
},
+ "messageThreadTargets": {
+ "universalIdentifier": "1f982757-a05a-54c1-8a74-89d01621c1f8",
+ },
"name": {
"universalIdentifier": "20202020-8609-4f65-a2d9-44009eb422b5",
},
@@ -2102,6 +2272,9 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
"calendarEventParticipants": {
"universalIdentifier": "20202020-52ee-45e9-a702-b64b3753e3a9",
},
+ "calendarEventTargets": {
+ "universalIdentifier": "1bb24269-e654-598c-ac53-23973fafd1e6",
+ },
"company": {
"universalIdentifier": "20202020-e2f3-448e-b34c-2d625f0025fd",
},
@@ -2132,6 +2305,9 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
"messageParticipants": {
"universalIdentifier": "20202020-498e-4c61-8158-fa04f0638334",
},
+ "messageThreadTargets": {
+ "universalIdentifier": "e20bc778-c675-5dad-af44-48f83a1c7fe5",
+ },
"name": {
"universalIdentifier": "20202020-3875-44d5-8c33-a6239011cab8",
},
diff --git a/packages/twenty-shared/src/metadata/constants/standard-object-fields.constant.ts b/packages/twenty-shared/src/metadata/constants/standard-object-fields.constant.ts
index e48c6b99121..e5be79a3867 100644
--- a/packages/twenty-shared/src/metadata/constants/standard-object-fields.constant.ts
+++ b/packages/twenty-shared/src/metadata/constants/standard-object-fields.constant.ts
@@ -336,10 +336,57 @@ export const STANDARD_OBJECT_FIELDS = {
calendarEventParticipants: {
universalIdentifier: '20202020-e07e-4ccb-88f5-6f3d00458eec',
},
+ calendarEventTargets: {
+ universalIdentifier: '2b4a0785-3462-485f-b1a8-79ebb2078eab',
+ },
callRecordings: {
universalIdentifier: '48d6d151-18e2-4111-b405-d85fb9d860d8',
},
},
+ calendarEventTarget: {
+ ...buildStandardObjectSystemFields(
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.calendarEventTarget,
+ ),
+ calendarEvent: {
+ universalIdentifier: 'a47824b0-0e64-4c1f-bbad-ce45209d119b',
+ },
+ isAutomaticallyAssigned: {
+ universalIdentifier: 'b6374fed-9cf2-49ef-b45a-1d6814c16264',
+ },
+ isManuallyAssigned: {
+ universalIdentifier: '6afbd5b8-25b5-4c04-82e5-281e6f90f453',
+ },
+ targetPerson: {
+ universalIdentifier: getSystemRelationFieldUniversalIdentifier({
+ applicationUniversalIdentifier:
+ TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,
+ objectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.calendarEventTarget,
+ relationTargetObjectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.person,
+ }),
+ },
+ targetCompany: {
+ universalIdentifier: getSystemRelationFieldUniversalIdentifier({
+ applicationUniversalIdentifier:
+ TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,
+ objectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.calendarEventTarget,
+ relationTargetObjectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company,
+ }),
+ },
+ targetOpportunity: {
+ universalIdentifier: getSystemRelationFieldUniversalIdentifier({
+ applicationUniversalIdentifier:
+ TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,
+ objectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.calendarEventTarget,
+ relationTargetObjectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.opportunity,
+ }),
+ },
+ },
callRecording: {
...buildStandardObjectSystemFields(
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.callRecording,
@@ -423,6 +470,26 @@ export const STANDARD_OBJECT_FIELDS = {
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.noteTarget,
}),
},
+ calendarEventTargets: {
+ universalIdentifier: getSystemRelationFieldUniversalIdentifier({
+ applicationUniversalIdentifier:
+ TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,
+ objectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company,
+ relationTargetObjectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.calendarEventTarget,
+ }),
+ },
+ messageThreadTargets: {
+ universalIdentifier: getSystemRelationFieldUniversalIdentifier({
+ applicationUniversalIdentifier:
+ TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,
+ objectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company,
+ relationTargetObjectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.messageThreadTarget,
+ }),
+ },
opportunities: {
universalIdentifier: '20202020-add3-4658-8e23-d70dccb6d0ec',
},
@@ -628,6 +695,53 @@ export const STANDARD_OBJECT_FIELDS = {
subject: {
universalIdentifier: 'a8ddbf8c-1137-45d1-b89e-5ffbd83f67c8',
},
+ messageThreadTargets: {
+ universalIdentifier: '8d7c8b17-b835-4082-96bd-de704c491d49',
+ },
+ },
+ messageThreadTarget: {
+ ...buildStandardObjectSystemFields(
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.messageThreadTarget,
+ ),
+ messageThread: {
+ universalIdentifier: '23ca09e6-149d-452f-bed7-a4aad24d1314',
+ },
+ isAutomaticallyAssigned: {
+ universalIdentifier: '04403730-e960-415a-8790-f0c0f82f3477',
+ },
+ isManuallyAssigned: {
+ universalIdentifier: '16efa36f-d195-42e9-959f-6928164f2395',
+ },
+ targetPerson: {
+ universalIdentifier: getSystemRelationFieldUniversalIdentifier({
+ applicationUniversalIdentifier:
+ TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,
+ objectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.messageThreadTarget,
+ relationTargetObjectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.person,
+ }),
+ },
+ targetCompany: {
+ universalIdentifier: getSystemRelationFieldUniversalIdentifier({
+ applicationUniversalIdentifier:
+ TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,
+ objectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.messageThreadTarget,
+ relationTargetObjectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company,
+ }),
+ },
+ targetOpportunity: {
+ universalIdentifier: getSystemRelationFieldUniversalIdentifier({
+ applicationUniversalIdentifier:
+ TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,
+ objectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.messageThreadTarget,
+ relationTargetObjectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.opportunity,
+ }),
+ },
},
message: {
...buildStandardObjectSystemFields(
@@ -759,6 +873,26 @@ export const STANDARD_OBJECT_FIELDS = {
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.noteTarget,
}),
},
+ calendarEventTargets: {
+ universalIdentifier: getSystemRelationFieldUniversalIdentifier({
+ applicationUniversalIdentifier:
+ TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,
+ objectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.opportunity,
+ relationTargetObjectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.calendarEventTarget,
+ }),
+ },
+ messageThreadTargets: {
+ universalIdentifier: getSystemRelationFieldUniversalIdentifier({
+ applicationUniversalIdentifier:
+ TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,
+ objectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.opportunity,
+ relationTargetObjectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.messageThreadTarget,
+ }),
+ },
attachments: {
universalIdentifier: getSystemRelationFieldUniversalIdentifier({
applicationUniversalIdentifier:
@@ -819,6 +953,24 @@ export const STANDARD_OBJECT_FIELDS = {
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.noteTarget,
}),
},
+ calendarEventTargets: {
+ universalIdentifier: getSystemRelationFieldUniversalIdentifier({
+ applicationUniversalIdentifier:
+ TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,
+ objectUniversalIdentifier: STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.person,
+ relationTargetObjectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.calendarEventTarget,
+ }),
+ },
+ messageThreadTargets: {
+ universalIdentifier: getSystemRelationFieldUniversalIdentifier({
+ applicationUniversalIdentifier:
+ TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,
+ objectUniversalIdentifier: STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.person,
+ relationTargetObjectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.messageThreadTarget,
+ }),
+ },
attachments: {
universalIdentifier: getSystemRelationFieldUniversalIdentifier({
applicationUniversalIdentifier:
diff --git a/packages/twenty-shared/src/metadata/constants/standard-object-universal-identifiers.constant.ts b/packages/twenty-shared/src/metadata/constants/standard-object-universal-identifiers.constant.ts
index 13f4cb6b357..c3f0e1e43a7 100644
--- a/packages/twenty-shared/src/metadata/constants/standard-object-universal-identifiers.constant.ts
+++ b/packages/twenty-shared/src/metadata/constants/standard-object-universal-identifiers.constant.ts
@@ -10,6 +10,7 @@ export const STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS = {
blocklist: '20202020-0408-4f38-b8a8-4d5e3e26e24d',
calendarChannelEventAssociation: '20202020-491b-4aaa-9825-afd1bae6ae00',
calendarEvent: '20202020-8f1d-4eef-9f85-0d1965e27221',
+ calendarEventTarget: '6a9b9656-3e23-4234-94a4-b913c5dde668',
calendarEventParticipant: '20202020-a1c3-47a6-9732-27e5b1e8436d',
callRecording: 'ce19efb9-710f-45b2-b141-473abbeea60b',
noteTarget: '20202020-fff0-4b44-be82-bda313884400',
@@ -34,6 +35,7 @@ export const STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS = {
messageCampaign: '238acb94-dd4c-4036-bc55-19b99d821efd',
messageParticipant: '20202020-a433-4456-aa2d-fd9cb26b774a',
messageThread: '20202020-849a-4c3e-84f5-a25a7d802271',
+ messageThreadTarget: '378ad1b0-592d-4084-80ee-86fef44725b9',
} as const;
export type StandardObjectWithUniversalIdentifierName =
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 a9d66b9db26..9597e4fad7e 100644
--- a/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts
+++ b/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts
@@ -239,6 +239,38 @@ export const STANDARD_OBJECTS = {
}),
},
},
+ calendarEventTarget: {
+ universalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.calendarEventTarget,
+ fields: STANDARD_OBJECT_FIELDS.calendarEventTarget,
+ morphIds: {
+ targetMorphId: { morphId: '676e9f68-7b5c-41e6-b46d-2fb9527b7051' },
+ },
+ indexes: {
+ calendarEventIdIndex: {
+ universalIdentifier: 'ce1c180c-0236-4673-ad1d-359dddf59f93',
+ },
+ personIdIndex: {
+ universalIdentifier: 'f151bc84-ba45-40cb-b064-02ef359ac17b',
+ },
+ companyIdIndex: {
+ universalIdentifier: '30413277-505d-4f08-be38-a56257460f9f',
+ },
+ opportunityIdIndex: {
+ universalIdentifier: '7920092d-281f-473a-8ea4-53c209b36a37',
+ },
+ calendarEventPersonUniqueIndex: {
+ universalIdentifier: '15b9e394-d451-4186-aaf0-612f6be1ea91',
+ },
+ calendarEventCompanyUniqueIndex: {
+ universalIdentifier: '3fa22398-6e7d-47a5-95eb-4971f9d62135',
+ },
+ calendarEventOpportunityUniqueIndex: {
+ universalIdentifier: 'c8183b17-5dfe-4e02-8d9d-aef8e54ef07d',
+ },
+ },
+ views: {},
+ },
callRecording: {
universalIdentifier: STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.callRecording,
fields: STANDARD_OBJECT_FIELDS.callRecording,
@@ -601,6 +633,38 @@ export const STANDARD_OBJECTS = {
}),
},
},
+ messageThreadTarget: {
+ universalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.messageThreadTarget,
+ fields: STANDARD_OBJECT_FIELDS.messageThreadTarget,
+ morphIds: {
+ targetMorphId: { morphId: 'e85e853d-c26e-41b3-bec0-7afc4bdbc2f7' },
+ },
+ indexes: {
+ messageThreadIdIndex: {
+ universalIdentifier: '222fdd8b-0863-4f2a-816a-29745537b6b6',
+ },
+ personIdIndex: {
+ universalIdentifier: '280ee419-ac3c-4599-bd62-3e5cb268342c',
+ },
+ companyIdIndex: {
+ universalIdentifier: 'b98005e4-3811-41b6-82d0-3ccd27757eba',
+ },
+ opportunityIdIndex: {
+ universalIdentifier: '7679ee05-cf6c-40a7-9ee6-c3e8053caca5',
+ },
+ messageThreadPersonUniqueIndex: {
+ universalIdentifier: '087f97cb-8c3c-4ea1-9556-933acde6c83b',
+ },
+ messageThreadCompanyUniqueIndex: {
+ universalIdentifier: '30d4f1af-8b6f-4685-802f-8a7cf29f318b',
+ },
+ messageThreadOpportunityUniqueIndex: {
+ universalIdentifier: '1dc0e37e-afb1-4e90-90b4-052374126a6a',
+ },
+ },
+ views: {},
+ },
message: {
universalIdentifier: STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.message,
fields: STANDARD_OBJECT_FIELDS.message,
diff --git a/packages/twenty-shared/src/types/CoreObjectNameSingular.ts b/packages/twenty-shared/src/types/CoreObjectNameSingular.ts
index 1ef200baa95..fdaaa853468 100644
--- a/packages/twenty-shared/src/types/CoreObjectNameSingular.ts
+++ b/packages/twenty-shared/src/types/CoreObjectNameSingular.ts
@@ -6,6 +6,7 @@ export enum CoreObjectNameSingular {
Blocklist = 'blocklist',
CalendarChannel = 'calendarChannel',
CalendarEvent = 'calendarEvent',
+ CalendarEventTarget = 'calendarEventTarget',
CallRecording = 'callRecording',
Comment = 'comment',
Company = 'company',
@@ -18,6 +19,7 @@ export enum CoreObjectNameSingular {
MessageParticipant = 'messageParticipant',
MessageFolder = 'messageFolder',
MessageThread = 'messageThread',
+ MessageThreadTarget = 'messageThreadTarget',
Note = 'note',
NoteTarget = 'noteTarget',
Opportunity = 'opportunity',