The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
feat(ai): make chat threads an attachment target (#26565)
Félix Malfaitb63cda67eac7
diff --git a/packages/twenty-server/src/database/commands/agent-history/utils/__tests__/get-agent-history-schema-additions.util.spec.ts b/packages/twenty-server/src/database/commands/agent-history/utils/__tests__/get-agent-history-schema-additions.util.spec.tsindex c561ee412c5..2d716dbd24b 100644--- a/packages/twenty-server/src/database/commands/agent-history/utils/__tests__/get-agent-history-schema-additions.util.spec.ts+++ b/packages/twenty-server/src/database/commands/agent-history/utils/__tests__/get-agent-history-schema-additions.util.spec.ts@@ -12,7 +12,7 @@ const createStandardMetadata = () =>twentyStandardApplicationId: '20202020-2222-4222-8222-222222222222',}).allFlatEntityMaps;-const HISTORY_IDENTIFIERS = [+const HISTORY_IDENTIFIERS: string[] = [STANDARD_OBJECTS.agentChatThread.universalIdentifier,STANDARD_OBJECTS.agentTurn.universalIdentifier,STANDARD_OBJECTS.agentMessage.universalIdentifier,@@ -21,7 +21,7 @@ const HISTORY_IDENTIFIERS = [];describe('getAgentHistorySchemaAdditions', () => {- it('selects only history objects and their fields and indexes', () => {+ it('selects only history objects and the fields and indexes relating to them', () => {const additions = getAgentHistorySchemaAdditions({existing: {flatObjectMetadataMaps: createEmptyFlatEntityMaps(),@@ -41,19 +41,103 @@ describe('getAgentHistorySchemaAdditions', () => {),).toBe(true);expect(- additions.fields.every(- (field) => field.writability === MetadataWritability.SYSTEM,- ),+ additions.fields+ .filter((field) =>+ HISTORY_IDENTIFIERS.includes(field.objectMetadataUniversalIdentifier),+ )+ .every((field) => field.writability === MetadataWritability.SYSTEM),).toBe(true);expect(additions.fields.length).toBeGreaterThan(0);expect(additions.indexes.length).toBeGreaterThan(0);- for (const entry of [...additions.fields, ...additions.indexes]) {- expect(HISTORY_IDENTIFIERS).toContain(- entry.objectMetadataUniversalIdentifier,- );+ const historyIdentifiers = new Set<string>(HISTORY_IDENTIFIERS);++ for (const field of additions.fields) {+ expect(+ historyIdentifiers.has(field.objectMetadataUniversalIdentifier) ||+ historyIdentifiers.has(+ field.relationTargetObjectMetadataUniversalIdentifier ?? '',+ ),+ ).toBe(true);}});+ it('provisions both sides of relations from other objects into history objects', () => {+ const standard = createStandardMetadata();+ const additions = getAgentHistorySchemaAdditions({+ existing: {+ flatObjectMetadataMaps: standard.flatObjectMetadataMaps,+ flatFieldMetadataMaps: createEmptyFlatEntityMaps(),+ flatIndexMaps: createEmptyFlatEntityMaps(),+ },+ standard,+ });+ const fieldIdentifiers = additions.fields.map(+ (field) => field.universalIdentifier,+ );+ const indexIdentifiers = additions.indexes.map(+ (index) => index.universalIdentifier,+ );++ expect(fieldIdentifiers).toEqual(+ expect.arrayContaining([+ STANDARD_OBJECTS.agentChatThread.fields.attachments.universalIdentifier,+ STANDARD_OBJECTS.attachment.fields.targetAgentChatThread+ .universalIdentifier,+ ]),+ );+ expect(indexIdentifiers).toContain(+ STANDARD_OBJECTS.attachment.indexes.agentChatThreadIdIndex+ .universalIdentifier,+ );+ expect(fieldIdentifiers).not.toContain(+ STANDARD_OBJECTS.attachment.fields.targetNote.universalIdentifier,+ );+ expect(indexIdentifiers).not.toContain(+ STANDARD_OBJECTS.attachment.indexes.noteIdIndex.universalIdentifier,+ );+ });++ it('repairs a missing attachment index whose chat thread field already exists', () => {+ const standard = createStandardMetadata();+ const existing = structuredClone(standard);+ const indexIdentifier =+ STANDARD_OBJECTS.attachment.indexes.agentChatThreadIdIndex+ .universalIdentifier;++ delete existing.flatIndexMaps.byUniversalIdentifier[indexIdentifier];++ const additions = getAgentHistorySchemaAdditions({ existing, standard });++ expect(additions.fields).toEqual([]);+ expect(additions.indexes.map((index) => index.universalIdentifier)).toEqual(+ [indexIdentifier],+ );+ });++ it('keeps the attachment side of the chat thread target standard', () => {+ const standard = createStandardMetadata();+ const additions = getAgentHistorySchemaAdditions({+ existing: {+ flatObjectMetadataMaps: createEmptyFlatEntityMaps(),+ flatFieldMetadataMaps: createEmptyFlatEntityMaps(),+ flatIndexMaps: createEmptyFlatEntityMaps(),+ },+ standard,+ });+ const targetIdentifier =+ STANDARD_OBJECTS.attachment.fields.targetAgentChatThread+ .universalIdentifier;++ expect(+ additions.fields.find(+ (field) => field.universalIdentifier === targetIdentifier,+ )?.writability,+ ).toBe(+ standard.flatFieldMetadataMaps.byUniversalIdentifier[targetIdentifier]+ ?.writability,+ );+ });+it('adds nothing when all history metadata already exists', () => {const standard = createStandardMetadata();expect(diff --git a/packages/twenty-server/src/database/commands/agent-history/utils/get-agent-history-schema-additions.util.ts b/packages/twenty-server/src/database/commands/agent-history/utils/get-agent-history-schema-additions.util.tsindex 399a8164e41..9b0475295ff 100644--- a/packages/twenty-server/src/database/commands/agent-history/utils/get-agent-history-schema-additions.util.ts+++ b/packages/twenty-server/src/database/commands/agent-history/utils/get-agent-history-schema-additions.util.ts@@ -1,6 +1,6 @@import { STANDARD_OBJECTS } from 'twenty-shared/metadata';import { MetadataReadability, MetadataWritability } from 'twenty-shared/types';-import { isDefined } from 'twenty-shared/utils';+import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';import { AGENT_HISTORY_TABLES } from 'src/database/commands/agent-history/agent-history-tables.constant';import { type AllFlatEntityMaps } from 'src/engine/metadata-modules/flat-entity/types/all-flat-entity-maps.type';@@ -66,33 +66,54 @@ export const getAgentHistorySchemaAdditions = ({readability: MetadataReadability.SYSTEM,writability: MetadataWritability.SYSTEM,}));- const fields = Object.values(+ // Relations from other standard objects into history objects (e.g. the+ // attachment morph target) must be provisioned with the history objects,+ // otherwise only the history-side half of the relation gets created.+ const historyFields = Object.values(standard.flatFieldMetadataMaps.byUniversalIdentifier,).filter(isDefined).filter((field) =>- objectIdentifiers.has(field.objectMetadataUniversalIdentifier) &&- !isDefined(- existing.flatFieldMetadataMaps.byUniversalIdentifier[- field.universalIdentifier- ],- ),+ objectIdentifiers.has(field.objectMetadataUniversalIdentifier) ||+ (isDefined(field.relationTargetObjectMetadataUniversalIdentifier) &&+ objectIdentifiers.has(+ field.relationTargetObjectMetadataUniversalIdentifier,+ )),);+ const fields = historyFields.filter(+ (field) =>+ !isDefined(+ existing.flatFieldMetadataMaps.byUniversalIdentifier[+ field.universalIdentifier+ ],+ ),+ );+ const historyFieldIdentifiers = new Set<string>(+ historyFields.map(({ universalIdentifier }) => universalIdentifier),+ );const indexes = Object.values(standard.flatIndexMaps.byUniversalIdentifier).filter(isDefined).filter((index) =>- objectIdentifiers.has(index.objectMetadataUniversalIdentifier) &&+ (objectIdentifiers.has(index.objectMetadataUniversalIdentifier) ||+ (isNonEmptyArray(index.universalFlatIndexFieldMetadatas) &&+ index.universalFlatIndexFieldMetadatas.every(+ ({ fieldMetadataUniversalIdentifier }) =>+ historyFieldIdentifiers.has(fieldMetadataUniversalIdentifier),+ ))) &&!isDefined(existing.flatIndexMaps.byUniversalIdentifier[index.universalIdentifier],),);- const protectedFields: typeof fields = fields.map((field) => ({- ...field,- writability: MetadataWritability.SYSTEM,- }));+ // Inverse fields on other objects keep their standard definition so every+ // provisioning path creates them identically.+ const protectedFields: typeof fields = fields.map((field) =>+ objectIdentifiers.has(field.objectMetadataUniversalIdentifier)+ ? { ...field, writability: MetadataWritability.SYSTEM }+ : field,+ );return { objects: protectedObjects, fields: protectedFields, indexes };};diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-43/2-43-upgrade-version-command.module.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-43/2-43-upgrade-version-command.module.tsindex dc3b0dc3cd2..b3e688c1d31 100644--- a/packages/twenty-server/src/database/commands/upgrade-version-command/2-43/2-43-upgrade-version-command.module.ts+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-43/2-43-upgrade-version-command.module.ts@@ -3,6 +3,7 @@ import { TypeOrmModule } from '@nestjs/typeorm';import { AgentHistoryMigrationModule } from 'src/database/commands/agent-history/agent-history-migration.module';import { WorkspaceIteratorModule } from 'src/database/commands/command-runners/workspace-iterator.module';+import { AddAgentChatThreadAttachmentTargetCommand } from 'src/database/commands/upgrade-version-command/2-43/2-43-workspace-command-1790272965444-add-agent-chat-thread-attachment-target.command';import { AttributeChatMessageSendersCommand } from 'src/database/commands/upgrade-version-command/2-43/2-43-workspace-command-1790171503075-attribute-chat-message-senders.command';import { RelabelAttachmentTargetFieldsCommand } from 'src/database/commands/upgrade-version-command/2-43/2-43-workspace-command-1790266078808-relabel-attachment-target-fields.command';import { SyncAttachmentRecordPageCommand } from 'src/database/commands/upgrade-version-command/2-43/2-43-workspace-command-1790266078807-sync-attachment-record-page.command';@@ -33,6 +34,7 @@ import { WorkspaceMigrationModule } from 'src/engine/workspace-manager/workspaceWorkspaceMigrationRunnerModule,],providers: [+ AddAgentChatThreadAttachmentTargetCommand,AttributeChatMessageSendersCommand,EnableCommonRecordSharingCommand,DeleteSystemReadableObjectNavigationCommandMenuItemsCommand,diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-43/2-43-workspace-command-1790272965444-add-agent-chat-thread-attachment-target.command.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-43/2-43-workspace-command-1790272965444-add-agent-chat-thread-attachment-target.command.tsnew file mode 100644index 00000000000..37ca557d0a2--- /dev/null+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-43/2-43-workspace-command-1790272965444-add-agent-chat-thread-attachment-target.command.ts@@ -0,0 +1,158 @@+import { Command } from 'nest-commander';+import { STANDARD_OBJECTS } from 'twenty-shared/metadata';+import { isDefined } from 'twenty-shared/utils';++import { ProvisionedWorkspaceCommandRunner } from 'src/database/commands/command-runners/provisioned-workspace.command-runner';+import { WorkspaceIteratorService } from 'src/database/commands/command-runners/workspace-iterator.service';+import { type RunOnWorkspaceArgs } from 'src/database/commands/command-runners/workspace.command-runner';+import { getStandardFlatEntitiesToCreateOrThrow } from 'src/database/commands/upgrade-version-command/2-10/utils/get-standard-flat-entities-to-create-or-throw.util';+import { ApplicationService } from 'src/engine/core-modules/application/application.service';+import { RegisteredWorkspaceCommand } from 'src/engine/core-modules/upgrade/decorators/registered-workspace-command.decorator';+import { type FlatFieldMetadata } from 'src/engine/metadata-modules/flat-field-metadata/types/flat-field-metadata.type';+import { type FlatIndexMetadata } from 'src/engine/metadata-modules/flat-index-metadata/types/flat-index-metadata.type';+import { WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service';+import { computeTwentyStandardApplicationAllFlatEntityMaps } from 'src/engine/workspace-manager/twenty-standard-application/utils/twenty-standard-application-all-flat-entity-maps.constant';+import { WorkspaceMigrationValidateBuildAndRunService } from 'src/engine/workspace-manager/workspace-migration/services/workspace-migration-validate-build-and-run-service';++const AGENT_CHAT_THREAD_ATTACHMENT_FIELD_UNIVERSAL_IDENTIFIERS = [+ STANDARD_OBJECTS.attachment.fields.targetAgentChatThread.universalIdentifier,+ STANDARD_OBJECTS.agentChatThread.fields.attachments.universalIdentifier,+];++const AGENT_CHAT_THREAD_ATTACHMENT_INDEX_UNIVERSAL_IDENTIFIERS = [+ STANDARD_OBJECTS.attachment.indexes.agentChatThreadIdIndex+ .universalIdentifier,+];++@RegisteredWorkspaceCommand('2.43.0', 1790272965444)+@Command({+ name: 'upgrade:2-43:add-agent-chat-thread-attachment-target',+ description:+ 'Add the agent chat thread attachment target relation in existing workspaces',+})+export class AddAgentChatThreadAttachmentTargetCommand extends ProvisionedWorkspaceCommandRunner {+ constructor(+ protected readonly workspaceIteratorService: WorkspaceIteratorService,+ private readonly applicationService: ApplicationService,+ private readonly workspaceCacheService: WorkspaceCacheService,+ private readonly workspaceMigrationValidateBuildAndRunService: WorkspaceMigrationValidateBuildAndRunService,+ ) {+ super(workspaceIteratorService);+ }++ override async runOnWorkspace({+ workspaceId,+ options,+ }: RunOnWorkspaceArgs): Promise<void> {+ const isDryRun = options.dryRun ?? false;+ const { flatObjectMetadataMaps, flatFieldMetadataMaps, flatIndexMaps } =+ await this.workspaceCacheService.getOrRecompute(workspaceId, [+ 'flatObjectMetadataMaps',+ 'flatFieldMetadataMaps',+ 'flatIndexMaps',+ ]);++ // Workspaces without chat history objects get both sides of the relation+ // when the agent history migration provisions those objects.+ if (+ !isDefined(+ flatObjectMetadataMaps.byUniversalIdentifier[+ STANDARD_OBJECTS.agentChatThread.universalIdentifier+ ],+ )+ ) {+ this.logger.log(+ `agentChatThread object not found for workspace ${workspaceId}, skipping attachment target creation`,+ );++ return;+ }++ if (+ !isDefined(+ flatObjectMetadataMaps.byUniversalIdentifier[+ STANDARD_OBJECTS.attachment.universalIdentifier+ ],+ )+ ) {+ this.logger.warn(+ `attachment object not found for workspace ${workspaceId}, skipping attachment target creation`,+ );++ return;+ }++ const { twentyStandardFlatApplication } =+ await this.applicationService.findWorkspaceTwentyStandardAndCustomApplicationOrThrow(+ { workspaceId },+ );+ const { allFlatEntityMaps: standardAllFlatEntityMaps } =+ computeTwentyStandardApplicationAllFlatEntityMaps({+ now: new Date().toISOString(),+ workspaceId,+ twentyStandardApplicationId: twentyStandardFlatApplication.id,+ });+ const allFlatEntityOperationByMetadataName = {+ fieldMetadata: {+ flatEntityToCreate:+ getStandardFlatEntitiesToCreateOrThrow<FlatFieldMetadata>({+ standardFlatEntityMaps:+ standardAllFlatEntityMaps.flatFieldMetadataMaps,+ existingFlatEntityMaps: flatFieldMetadataMaps,+ universalIdentifiers:+ AGENT_CHAT_THREAD_ATTACHMENT_FIELD_UNIVERSAL_IDENTIFIERS,+ }),+ flatEntityToDelete: [],+ flatEntityToUpdate: [],+ },+ index: {+ flatEntityToCreate:+ getStandardFlatEntitiesToCreateOrThrow<FlatIndexMetadata>({+ standardFlatEntityMaps: standardAllFlatEntityMaps.flatIndexMaps,+ existingFlatEntityMaps: flatIndexMaps,+ universalIdentifiers:+ AGENT_CHAT_THREAD_ATTACHMENT_INDEX_UNIVERSAL_IDENTIFIERS,+ }),+ flatEntityToDelete: [],+ flatEntityToUpdate: [],+ },+ };+ const fieldCount =+ allFlatEntityOperationByMetadataName.fieldMetadata.flatEntityToCreate+ .length;+ const indexCount =+ allFlatEntityOperationByMetadataName.index.flatEntityToCreate.length;+ const creationSummary = `${fieldCount} field(s) and ${indexCount} index(es)`;++ if (fieldCount + indexCount === 0) {+ return;+ }++ if (isDryRun) {+ this.logger.log(+ `[DRY RUN] Would create ${creationSummary} for workspace ${workspaceId}`,+ );++ return;+ }++ const result =+ await this.workspaceMigrationValidateBuildAndRunService.validateBuildAndRunLegacyWorkspaceMigration(+ {+ allFlatEntityOperationByMetadataName,+ workspaceId,+ isSystemBuild: true,+ applicationUniversalIdentifier:+ twentyStandardFlatApplication.universalIdentifier,+ },+ );++ if (result.status === 'fail') {+ throw new Error(+ `Failed to create the agent chat thread attachment target for workspace ${workspaceId}: ${JSON.stringify(result, null, 2)}`,+ );+ }++ this.logger.log(`Created ${creationSummary} for workspace ${workspaceId}`);+ }+}diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-43/__tests__/2-43-workspace-command-1790272965444-add-agent-chat-thread-attachment-target.command.spec.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-43/__tests__/2-43-workspace-command-1790272965444-add-agent-chat-thread-attachment-target.command.spec.tsnew file mode 100644index 00000000000..508499956ae--- /dev/null+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-43/__tests__/2-43-workspace-command-1790272965444-add-agent-chat-thread-attachment-target.command.spec.ts@@ -0,0 +1,165 @@+import { STANDARD_OBJECTS } from 'twenty-shared/metadata';++import { type WorkspaceIteratorService } from 'src/database/commands/command-runners/workspace-iterator.service';+import { AddAgentChatThreadAttachmentTargetCommand } from 'src/database/commands/upgrade-version-command/2-43/2-43-workspace-command-1790272965444-add-agent-chat-thread-attachment-target.command';+import { type ApplicationService } from 'src/engine/core-modules/application/application.service';+import { type WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service';+import { computeTwentyStandardApplicationAllFlatEntityMaps } from 'src/engine/workspace-manager/twenty-standard-application/utils/twenty-standard-application-all-flat-entity-maps.constant';+import { type WorkspaceMigrationValidateBuildAndRunService } from 'src/engine/workspace-manager/workspace-migration/services/workspace-migration-validate-build-and-run-service';++const WORKSPACE_ID = '20202020-1111-4111-8111-111111111111';+const APPLICATION_ID = '20202020-2222-4222-8222-222222222222';++const TARGET_FIELD_IDENTIFIER =+ STANDARD_OBJECTS.attachment.fields.targetAgentChatThread.universalIdentifier;+const INVERSE_FIELD_IDENTIFIER =+ STANDARD_OBJECTS.agentChatThread.fields.attachments.universalIdentifier;+const INDEX_IDENTIFIER =+ STANDARD_OBJECTS.attachment.indexes.agentChatThreadIdIndex+ .universalIdentifier;++const buildExistingMetadata = ({+ hasAttachmentTarget,+ hasAgentChatThread = true,+}: {+ hasAttachmentTarget: boolean;+ hasAgentChatThread?: boolean;+}) => {+ const existing = structuredClone(+ computeTwentyStandardApplicationAllFlatEntityMaps({+ now: '2026-01-01T00:00:00Z',+ workspaceId: WORKSPACE_ID,+ twentyStandardApplicationId: APPLICATION_ID,+ }).allFlatEntityMaps,+ );++ if (!hasAttachmentTarget) {+ delete existing.flatFieldMetadataMaps.byUniversalIdentifier[+ TARGET_FIELD_IDENTIFIER+ ];+ delete existing.flatFieldMetadataMaps.byUniversalIdentifier[+ INVERSE_FIELD_IDENTIFIER+ ];+ delete existing.flatIndexMaps.byUniversalIdentifier[INDEX_IDENTIFIER];+ }++ if (!hasAgentChatThread) {+ delete existing.flatObjectMetadataMaps.byUniversalIdentifier[+ STANDARD_OBJECTS.agentChatThread.universalIdentifier+ ];+ }++ return existing;+};++const buildCommand = ({+ hasAttachmentTarget = false,+ hasAgentChatThread = true,+ migrationStatus = 'success',+}: {+ hasAttachmentTarget?: boolean;+ hasAgentChatThread?: boolean;+ migrationStatus?: 'success' | 'fail';+} = {}) => {+ const validateBuildAndRunLegacyWorkspaceMigration = jest+ .fn()+ .mockResolvedValue({ status: migrationStatus });+ const command = new AddAgentChatThreadAttachmentTargetCommand(+ {} as WorkspaceIteratorService,+ {+ findWorkspaceTwentyStandardAndCustomApplicationOrThrow: jest+ .fn()+ .mockResolvedValue({+ twentyStandardFlatApplication: {+ id: APPLICATION_ID,+ universalIdentifier: APPLICATION_ID,+ },+ }),+ } as unknown as ApplicationService,+ {+ getOrRecompute: jest+ .fn()+ .mockResolvedValue(+ buildExistingMetadata({ hasAttachmentTarget, hasAgentChatThread }),+ ),+ } as unknown as WorkspaceCacheService,+ {+ validateBuildAndRunLegacyWorkspaceMigration,+ } as unknown as WorkspaceMigrationValidateBuildAndRunService,+ );++ return { command, validateBuildAndRunLegacyWorkspaceMigration };+};++const run = (+ command: AddAgentChatThreadAttachmentTargetCommand,+ options: { dryRun?: boolean } = {},+) =>+ command.runOnWorkspace({+ workspaceId: WORKSPACE_ID,+ options,+ index: 0,+ total: 1,+ });++describe('AddAgentChatThreadAttachmentTargetCommand', () => {+ it('creates both relation sides and the attachment index', async () => {+ const { command, validateBuildAndRunLegacyWorkspaceMigration } =+ buildCommand();++ await run(command);++ const [{ allFlatEntityOperationByMetadataName }] =+ validateBuildAndRunLegacyWorkspaceMigration.mock.calls[0];++ expect(+ allFlatEntityOperationByMetadataName.fieldMetadata.flatEntityToCreate+ .map(+ ({ universalIdentifier }: { universalIdentifier: string }) =>+ universalIdentifier,+ )+ .sort(),+ ).toEqual([TARGET_FIELD_IDENTIFIER, INVERSE_FIELD_IDENTIFIER].sort());+ expect(+ allFlatEntityOperationByMetadataName.index.flatEntityToCreate.map(+ ({ universalIdentifier }: { universalIdentifier: string }) =>+ universalIdentifier,+ ),+ ).toEqual([INDEX_IDENTIFIER]);+ });++ it('does nothing when the target already exists', async () => {+ const { command, validateBuildAndRunLegacyWorkspaceMigration } =+ buildCommand({ hasAttachmentTarget: true });++ await run(command);++ expect(validateBuildAndRunLegacyWorkspaceMigration).not.toHaveBeenCalled();+ });++ it('skips workspaces whose chat history is not provisioned yet', async () => {+ const { command, validateBuildAndRunLegacyWorkspaceMigration } =+ buildCommand({ hasAgentChatThread: false });++ await run(command);++ expect(validateBuildAndRunLegacyWorkspaceMigration).not.toHaveBeenCalled();+ });++ it('does not migrate on a dry run', async () => {+ const { command, validateBuildAndRunLegacyWorkspaceMigration } =+ buildCommand();++ await run(command, { dryRun: true });++ expect(validateBuildAndRunLegacyWorkspaceMigration).not.toHaveBeenCalled();+ });++ it('throws when the migration fails', async () => {+ const { command } = buildCommand({ migrationStatus: 'fail' });++ await expect(run(command)).rejects.toThrow(+ 'Failed to create the agent chat thread attachment target',+ );+ });+});diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-chat-thread.workspace-entity.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-chat-thread.workspace-entity.tsindex e5d88cfaa8a..924826aa488 100644--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-chat-thread.workspace-entity.ts+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-chat-thread.workspace-entity.ts@@ -1,3 +1,4 @@+import { type AttachmentWorkspaceEntity } from 'src/modules/attachment/standard-objects/attachment.workspace-entity';import { type EntityRelation } from 'src/engine/workspace-manager/workspace-migration/types/entity-relation.interface';import { type AgentMessageWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-message.workspace-entity';import { type AgentTurnWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-turn.workspace-entity';@@ -7,6 +8,7 @@ import { type AgentChatThreadLastStreamError } from 'src/engine/metadata-modulesexport class AgentChatThreadWorkspaceEntity extends BaseWorkspaceEntity {messages: EntityRelation<AgentMessageWorkspaceEntity[]>;turns: EntityRelation<AgentTurnWorkspaceEntity[]>;+ attachments: EntityRelation<AttachmentWorkspaceEntity[]>;archivedAt: string | null;userWorkspaceId: string;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.snapindex fede66e2b9f..24987f4edcc 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@@ -5,259 +5,262 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"agentChatThread": {"fields": {"activeStreamId": {- "id": "00000000-0000-0000-0000-000000001010",+ "id": "00000000-0000-0000-0000-000000001011",},"archivedAt": {- "id": "00000000-0000-0000-0000-000000000999",+ "id": "00000000-0000-0000-0000-000000001000",+ },+ "attachments": {+ "id": "00000000-0000-0000-0000-000000001016",},"contextWindowTokens": {- "id": "00000000-0000-0000-0000-000000001004",+ "id": "00000000-0000-0000-0000-000000001005",},"conversationSize": {- "id": "00000000-0000-0000-0000-000000001005",+ "id": "00000000-0000-0000-0000-000000001006",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000996",+ "id": "00000000-0000-0000-0000-000000000997",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000998",+ "id": "00000000-0000-0000-0000-000000000999",},"id": {- "id": "00000000-0000-0000-0000-000000000995",+ "id": "00000000-0000-0000-0000-000000000996",},"lastStreamError": {- "id": "00000000-0000-0000-0000-000000001012",+ "id": "00000000-0000-0000-0000-000000001013",},"messages": {- "id": "00000000-0000-0000-0000-000000001014",+ "id": "00000000-0000-0000-0000-000000001015",},"pendingQuestionMessageId": {- "id": "00000000-0000-0000-0000-000000001011",+ "id": "00000000-0000-0000-0000-000000001012",},"title": {- "id": "00000000-0000-0000-0000-000000001001",+ "id": "00000000-0000-0000-0000-000000001002",},"totalCacheCreationTokens": {- "id": "00000000-0000-0000-0000-000000001009",+ "id": "00000000-0000-0000-0000-000000001010",},"totalCacheReadTokens": {- "id": "00000000-0000-0000-0000-000000001008",+ "id": "00000000-0000-0000-0000-000000001009",},"totalInputCredits": {- "id": "00000000-0000-0000-0000-000000001006",+ "id": "00000000-0000-0000-0000-000000001007",},"totalInputTokens": {- "id": "00000000-0000-0000-0000-000000001002",+ "id": "00000000-0000-0000-0000-000000001003",},"totalOutputCredits": {- "id": "00000000-0000-0000-0000-000000001007",+ "id": "00000000-0000-0000-0000-000000001008",},"totalOutputTokens": {- "id": "00000000-0000-0000-0000-000000001003",+ "id": "00000000-0000-0000-0000-000000001004",},"turns": {- "id": "00000000-0000-0000-0000-000000001013",+ "id": "00000000-0000-0000-0000-000000001014",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000997",+ "id": "00000000-0000-0000-0000-000000000998",},"userWorkspaceId": {- "id": "00000000-0000-0000-0000-000000001000",+ "id": "00000000-0000-0000-0000-000000001001",},},- "id": "00000000-0000-0000-0000-000000001015",+ "id": "00000000-0000-0000-0000-000000001017","views": undefined,},"agentMessage": {"fields": {"agentId": {- "id": "00000000-0000-0000-0000-000000001029",+ "id": "00000000-0000-0000-0000-000000001031",},"createdAt": {- "id": "00000000-0000-0000-0000-000000001026",+ "id": "00000000-0000-0000-0000-000000001028",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000001028",+ "id": "00000000-0000-0000-0000-000000001030",},"id": {- "id": "00000000-0000-0000-0000-000000001025",+ "id": "00000000-0000-0000-0000-000000001027",},"isHidden": {- "id": "00000000-0000-0000-0000-000000001034",+ "id": "00000000-0000-0000-0000-000000001036",},"parts": {- "id": "00000000-0000-0000-0000-000000001038",+ "id": "00000000-0000-0000-0000-000000001040",},"processedAt": {- "id": "00000000-0000-0000-0000-000000001035",+ "id": "00000000-0000-0000-0000-000000001037",},"role": {- "id": "00000000-0000-0000-0000-000000001032",+ "id": "00000000-0000-0000-0000-000000001034",},"senderApplicationId": {- "id": "00000000-0000-0000-0000-000000001031",+ "id": "00000000-0000-0000-0000-000000001033",},"senderUserWorkspaceId": {- "id": "00000000-0000-0000-0000-000000001030",+ "id": "00000000-0000-0000-0000-000000001032",},"status": {- "id": "00000000-0000-0000-0000-000000001033",+ "id": "00000000-0000-0000-0000-000000001035",},"thread": {- "id": "00000000-0000-0000-0000-000000001036",+ "id": "00000000-0000-0000-0000-000000001038",},"turn": {- "id": "00000000-0000-0000-0000-000000001037",+ "id": "00000000-0000-0000-0000-000000001039",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000001027",+ "id": "00000000-0000-0000-0000-000000001029",},},- "id": "00000000-0000-0000-0000-000000001039",+ "id": "00000000-0000-0000-0000-000000001041","views": undefined,},"agentMessagePart": {"fields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000001041",+ "id": "00000000-0000-0000-0000-000000001043",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000001043",+ "id": "00000000-0000-0000-0000-000000001045",},"errorDetails": {- "id": "00000000-0000-0000-0000-000000001055",+ "id": "00000000-0000-0000-0000-000000001057",},"errorMessage": {- "id": "00000000-0000-0000-0000-000000001054",+ "id": "00000000-0000-0000-0000-000000001056",},"fileFilename": {- "id": "00000000-0000-0000-0000-000000001063",+ "id": "00000000-0000-0000-0000-000000001065",},"fileId": {- "id": "00000000-0000-0000-0000-000000001064",+ "id": "00000000-0000-0000-0000-000000001066",},"id": {- "id": "00000000-0000-0000-0000-000000001040",+ "id": "00000000-0000-0000-0000-000000001042",},"message": {- "id": "00000000-0000-0000-0000-000000001066",+ "id": "00000000-0000-0000-0000-000000001068",},"orderIndex": {- "id": "00000000-0000-0000-0000-000000001044",+ "id": "00000000-0000-0000-0000-000000001046",},"providerExecuted": {- "id": "00000000-0000-0000-0000-000000001053",+ "id": "00000000-0000-0000-0000-000000001055",},"providerMetadata": {- "id": "00000000-0000-0000-0000-000000001065",+ "id": "00000000-0000-0000-0000-000000001067",},"reasoningContent": {- "id": "00000000-0000-0000-0000-000000001047",+ "id": "00000000-0000-0000-0000-000000001049",},"sourceDocumentFilename": {- "id": "00000000-0000-0000-0000-000000001062",+ "id": "00000000-0000-0000-0000-000000001064",},"sourceDocumentMediaType": {- "id": "00000000-0000-0000-0000-000000001060",+ "id": "00000000-0000-0000-0000-000000001062",},"sourceDocumentSourceId": {- "id": "00000000-0000-0000-0000-000000001059",+ "id": "00000000-0000-0000-0000-000000001061",},"sourceDocumentTitle": {- "id": "00000000-0000-0000-0000-000000001061",+ "id": "00000000-0000-0000-0000-000000001063",},"sourceUrlSourceId": {- "id": "00000000-0000-0000-0000-000000001056",+ "id": "00000000-0000-0000-0000-000000001058",},"sourceUrlTitle": {- "id": "00000000-0000-0000-0000-000000001058",+ "id": "00000000-0000-0000-0000-000000001060",},"sourceUrlUrl": {- "id": "00000000-0000-0000-0000-000000001057",+ "id": "00000000-0000-0000-0000-000000001059",},"state": {- "id": "00000000-0000-0000-0000-000000001052",+ "id": "00000000-0000-0000-0000-000000001054",},"textContent": {- "id": "00000000-0000-0000-0000-000000001046",+ "id": "00000000-0000-0000-0000-000000001048",},"toolCallId": {- "id": "00000000-0000-0000-0000-000000001049",+ "id": "00000000-0000-0000-0000-000000001051",},"toolInput": {- "id": "00000000-0000-0000-0000-000000001050",+ "id": "00000000-0000-0000-0000-000000001052",},"toolName": {- "id": "00000000-0000-0000-0000-000000001048",+ "id": "00000000-0000-0000-0000-000000001050",},"toolOutput": {- "id": "00000000-0000-0000-0000-000000001051",+ "id": "00000000-0000-0000-0000-000000001053",},"type": {- "id": "00000000-0000-0000-0000-000000001045",+ "id": "00000000-0000-0000-0000-000000001047",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000001042",+ "id": "00000000-0000-0000-0000-000000001044",},},- "id": "00000000-0000-0000-0000-000000001067",+ "id": "00000000-0000-0000-0000-000000001069","views": undefined,},"agentTurn": {"fields": {"agentId": {- "id": "00000000-0000-0000-0000-000000001020",+ "id": "00000000-0000-0000-0000-000000001022",},"createdAt": {- "id": "00000000-0000-0000-0000-000000001017",+ "id": "00000000-0000-0000-0000-000000001019",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000001019",+ "id": "00000000-0000-0000-0000-000000001021",},"evaluations": {- "id": "00000000-0000-0000-0000-000000001023",+ "id": "00000000-0000-0000-0000-000000001025",},"id": {- "id": "00000000-0000-0000-0000-000000001016",+ "id": "00000000-0000-0000-0000-000000001018",},"messages": {- "id": "00000000-0000-0000-0000-000000001022",+ "id": "00000000-0000-0000-0000-000000001024",},"thread": {- "id": "00000000-0000-0000-0000-000000001021",+ "id": "00000000-0000-0000-0000-000000001023",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000001018",+ "id": "00000000-0000-0000-0000-000000001020",},},- "id": "00000000-0000-0000-0000-000000001024",+ "id": "00000000-0000-0000-0000-000000001026","views": undefined,},"agentTurnEvaluation": {"fields": {"comment": {- "id": "00000000-0000-0000-0000-000000001073",+ "id": "00000000-0000-0000-0000-000000001075",},"createdAt": {- "id": "00000000-0000-0000-0000-000000001069",+ "id": "00000000-0000-0000-0000-000000001071",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000001071",+ "id": "00000000-0000-0000-0000-000000001073",},"id": {- "id": "00000000-0000-0000-0000-000000001068",+ "id": "00000000-0000-0000-0000-000000001070",},"score": {- "id": "00000000-0000-0000-0000-000000001072",+ "id": "00000000-0000-0000-0000-000000001074",},"turn": {- "id": "00000000-0000-0000-0000-000000001074",+ "id": "00000000-0000-0000-0000-000000001076",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000001070",+ "id": "00000000-0000-0000-0000-000000001072",},},- "id": "00000000-0000-0000-0000-000000001075",+ "id": "00000000-0000-0000-0000-000000001077","views": undefined,},"attachment": {@@ -292,6 +295,9 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"searchVector": {"id": "00000000-0000-0000-0000-000000000008",},+ "targetAgentChatThread": {+ "id": "00000000-0000-0000-0000-000000000020",+ },"targetCompany": {"id": "00000000-0000-0000-0000-000000000016",},@@ -320,57 +326,57 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"id": "00000000-0000-0000-0000-000000000006",},},- "id": "00000000-0000-0000-0000-000000000035",+ "id": "00000000-0000-0000-0000-000000000036","views": {"allAttachments": {- "id": "00000000-0000-0000-0000-000000000031",+ "id": "00000000-0000-0000-0000-000000000032","viewFieldGroups": {},"viewFields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000023",+ "id": "00000000-0000-0000-0000-000000000024",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000022",+ "id": "00000000-0000-0000-0000-000000000023",},"file": {- "id": "00000000-0000-0000-0000-000000000021",+ "id": "00000000-0000-0000-0000-000000000022",},"name": {- "id": "00000000-0000-0000-0000-000000000020",+ "id": "00000000-0000-0000-0000-000000000021",},"targetCompany": {- "id": "00000000-0000-0000-0000-000000000025",+ "id": "00000000-0000-0000-0000-000000000026",},"targetDashboard": {- "id": "00000000-0000-0000-0000-000000000029",+ "id": "00000000-0000-0000-0000-000000000030",},"targetNote": {- "id": "00000000-0000-0000-0000-000000000028",+ "id": "00000000-0000-0000-0000-000000000029",},"targetOpportunity": {- "id": "00000000-0000-0000-0000-000000000026",+ "id": "00000000-0000-0000-0000-000000000027",},"targetPerson": {- "id": "00000000-0000-0000-0000-000000000024",+ "id": "00000000-0000-0000-0000-000000000025",},"targetTask": {- "id": "00000000-0000-0000-0000-000000000027",+ "id": "00000000-0000-0000-0000-000000000028",},"targetWorkflow": {- "id": "00000000-0000-0000-0000-000000000030",+ "id": "00000000-0000-0000-0000-000000000031",},},"viewGroups": {},},"attachmentRecordPageFields": {- "id": "00000000-0000-0000-0000-000000000034",+ "id": "00000000-0000-0000-0000-000000000035","viewFieldGroups": {},"viewFields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000033",+ "id": "00000000-0000-0000-0000-000000000034",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000032",+ "id": "00000000-0000-0000-0000-000000000033",},},"viewGroups": {},@@ -380,76 +386,76 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"blocklist": {"fields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000037",+ "id": "00000000-0000-0000-0000-000000000038",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000040",+ "id": "00000000-0000-0000-0000-000000000041",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000039",+ "id": "00000000-0000-0000-0000-000000000040",},"handle": {- "id": "00000000-0000-0000-0000-000000000044",+ "id": "00000000-0000-0000-0000-000000000045",},"id": {- "id": "00000000-0000-0000-0000-000000000036",+ "id": "00000000-0000-0000-0000-000000000037",},"position": {- "id": "00000000-0000-0000-0000-000000000042",+ "id": "00000000-0000-0000-0000-000000000043",},"scope": {- "id": "00000000-0000-0000-0000-000000000045",+ "id": "00000000-0000-0000-0000-000000000046",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000043",+ "id": "00000000-0000-0000-0000-000000000044",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000038",+ "id": "00000000-0000-0000-0000-000000000039",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000041",+ "id": "00000000-0000-0000-0000-000000000042",},"workspaceMember": {- "id": "00000000-0000-0000-0000-000000000046",+ "id": "00000000-0000-0000-0000-000000000047",},},- "id": "00000000-0000-0000-0000-000000000057",+ "id": "00000000-0000-0000-0000-000000000058","views": {"allBlocklists": {- "id": "00000000-0000-0000-0000-000000000050",+ "id": "00000000-0000-0000-0000-000000000051","viewFieldGroups": {},"viewFields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000049",+ "id": "00000000-0000-0000-0000-000000000050",},"handle": {- "id": "00000000-0000-0000-0000-000000000047",+ "id": "00000000-0000-0000-0000-000000000048",},"workspaceMember": {- "id": "00000000-0000-0000-0000-000000000048",+ "id": "00000000-0000-0000-0000-000000000049",},},"viewGroups": {},},"blocklistRecordPageFields": {- "id": "00000000-0000-0000-0000-000000000056",+ "id": "00000000-0000-0000-0000-000000000057","viewFieldGroups": {"general": {- "id": "00000000-0000-0000-0000-000000000054",+ "id": "00000000-0000-0000-0000-000000000055",},"system": {- "id": "00000000-0000-0000-0000-000000000055",+ "id": "00000000-0000-0000-0000-000000000056",},},"viewFields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000052",+ "id": "00000000-0000-0000-0000-000000000053",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000053",+ "id": "00000000-0000-0000-0000-000000000054",},"workspaceMember": {- "id": "00000000-0000-0000-0000-000000000051",+ "id": "00000000-0000-0000-0000-000000000052",},},"viewGroups": {},@@ -459,88 +465,88 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"calendarChannelEventAssociation": {"fields": {"calendarChannelId": {- "id": "00000000-0000-0000-0000-000000000066",+ "id": "00000000-0000-0000-0000-000000000067",},"calendarEvent": {- "id": "00000000-0000-0000-0000-000000000067",+ "id": "00000000-0000-0000-0000-000000000068",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000059",+ "id": "00000000-0000-0000-0000-000000000060",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000062",+ "id": "00000000-0000-0000-0000-000000000063",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000061",+ "id": "00000000-0000-0000-0000-000000000062",},"eventExternalId": {- "id": "00000000-0000-0000-0000-000000000068",+ "id": "00000000-0000-0000-0000-000000000069",},"id": {- "id": "00000000-0000-0000-0000-000000000058",+ "id": "00000000-0000-0000-0000-000000000059",},"position": {- "id": "00000000-0000-0000-0000-000000000064",+ "id": "00000000-0000-0000-0000-000000000065",},"recurringEventExternalId": {- "id": "00000000-0000-0000-0000-000000000069",+ "id": "00000000-0000-0000-0000-000000000070",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000065",+ "id": "00000000-0000-0000-0000-000000000066",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000060",+ "id": "00000000-0000-0000-0000-000000000061",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000063",+ "id": "00000000-0000-0000-0000-000000000064",},},- "id": "00000000-0000-0000-0000-000000000083",+ "id": "00000000-0000-0000-0000-000000000084","views": {"allCalendarChannelEventAssociations": {- "id": "00000000-0000-0000-0000-000000000074",+ "id": "00000000-0000-0000-0000-000000000075","viewFieldGroups": {},"viewFields": {"calendarChannelId": {- "id": "00000000-0000-0000-0000-000000000070",+ "id": "00000000-0000-0000-0000-000000000071",},"calendarEvent": {- "id": "00000000-0000-0000-0000-000000000071",+ "id": "00000000-0000-0000-0000-000000000072",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000073",+ "id": "00000000-0000-0000-0000-000000000074",},"eventExternalId": {- "id": "00000000-0000-0000-0000-000000000072",+ "id": "00000000-0000-0000-0000-000000000073",},},"viewGroups": {},},"calendarChannelEventAssociationRecordPageFields": {- "id": "00000000-0000-0000-0000-000000000082",+ "id": "00000000-0000-0000-0000-000000000083","viewFieldGroups": {"general": {- "id": "00000000-0000-0000-0000-000000000080",+ "id": "00000000-0000-0000-0000-000000000081",},"system": {- "id": "00000000-0000-0000-0000-000000000081",+ "id": "00000000-0000-0000-0000-000000000082",},},"viewFields": {"calendarChannelId": {- "id": "00000000-0000-0000-0000-000000000075",+ "id": "00000000-0000-0000-0000-000000000076",},"calendarEvent": {- "id": "00000000-0000-0000-0000-000000000076",+ "id": "00000000-0000-0000-0000-000000000077",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000078",+ "id": "00000000-0000-0000-0000-000000000079",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000079",+ "id": "00000000-0000-0000-0000-000000000080",},"eventExternalId": {- "id": "00000000-0000-0000-0000-000000000077",+ "id": "00000000-0000-0000-0000-000000000078",},},"viewGroups": {},@@ -550,160 +556,160 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"calendarEvent": {"fields": {"calendarChannelEventAssociations": {- "id": "00000000-0000-0000-0000-000000000141",+ "id": "00000000-0000-0000-0000-000000000142",},"calendarEventParticipants": {- "id": "00000000-0000-0000-0000-000000000142",+ "id": "00000000-0000-0000-0000-000000000143",},"calendarEventTargets": {- "id": "00000000-0000-0000-0000-000000000143",+ "id": "00000000-0000-0000-0000-000000000144",},"callRecordings": {- "id": "00000000-0000-0000-0000-000000000144",+ "id": "00000000-0000-0000-0000-000000000145",},"conferenceLink": {- "id": "00000000-0000-0000-0000-000000000140",+ "id": "00000000-0000-0000-0000-000000000141",},"conferenceSolution": {- "id": "00000000-0000-0000-0000-000000000139",+ "id": "00000000-0000-0000-0000-000000000140",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000122",+ "id": "00000000-0000-0000-0000-000000000123",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000125",+ "id": "00000000-0000-0000-0000-000000000126",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000124",+ "id": "00000000-0000-0000-0000-000000000125",},"description": {- "id": "00000000-0000-0000-0000-000000000136",+ "id": "00000000-0000-0000-0000-000000000137",},"endsAt": {- "id": "00000000-0000-0000-0000-000000000133",+ "id": "00000000-0000-0000-0000-000000000134",},"externalCreatedAt": {- "id": "00000000-0000-0000-0000-000000000134",+ "id": "00000000-0000-0000-0000-000000000135",},"externalUpdatedAt": {- "id": "00000000-0000-0000-0000-000000000135",+ "id": "00000000-0000-0000-0000-000000000136",},"iCalUid": {- "id": "00000000-0000-0000-0000-000000000138",+ "id": "00000000-0000-0000-0000-000000000139",},"id": {- "id": "00000000-0000-0000-0000-000000000121",+ "id": "00000000-0000-0000-0000-000000000122",},"isCanceled": {- "id": "00000000-0000-0000-0000-000000000130",+ "id": "00000000-0000-0000-0000-000000000131",},"isFullDay": {- "id": "00000000-0000-0000-0000-000000000131",+ "id": "00000000-0000-0000-0000-000000000132",},"location": {- "id": "00000000-0000-0000-0000-000000000137",+ "id": "00000000-0000-0000-0000-000000000138",},"position": {- "id": "00000000-0000-0000-0000-000000000127",+ "id": "00000000-0000-0000-0000-000000000128",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000128",+ "id": "00000000-0000-0000-0000-000000000129",},"startsAt": {- "id": "00000000-0000-0000-0000-000000000132",+ "id": "00000000-0000-0000-0000-000000000133",},"title": {- "id": "00000000-0000-0000-0000-000000000129",+ "id": "00000000-0000-0000-0000-000000000130",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000123",+ "id": "00000000-0000-0000-0000-000000000124",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000126",+ "id": "00000000-0000-0000-0000-000000000127",},},- "id": "00000000-0000-0000-0000-000000000170",+ "id": "00000000-0000-0000-0000-000000000171","views": {"allCalendarEvents": {- "id": "00000000-0000-0000-0000-000000000153",+ "id": "00000000-0000-0000-0000-000000000154","viewFieldGroups": {},"viewFields": {"conferenceLink": {- "id": "00000000-0000-0000-0000-000000000150",+ "id": "00000000-0000-0000-0000-000000000151",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000152",+ "id": "00000000-0000-0000-0000-000000000153",},"endsAt": {- "id": "00000000-0000-0000-0000-000000000147",+ "id": "00000000-0000-0000-0000-000000000148",},"isCanceled": {- "id": "00000000-0000-0000-0000-000000000151",+ "id": "00000000-0000-0000-0000-000000000152",},"isFullDay": {- "id": "00000000-0000-0000-0000-000000000148",+ "id": "00000000-0000-0000-0000-000000000149",},"location": {- "id": "00000000-0000-0000-0000-000000000149",+ "id": "00000000-0000-0000-0000-000000000150",},"startsAt": {- "id": "00000000-0000-0000-0000-000000000146",+ "id": "00000000-0000-0000-0000-000000000147",},"title": {- "id": "00000000-0000-0000-0000-000000000145",+ "id": "00000000-0000-0000-0000-000000000146",},},"viewGroups": {},},"calendarEventRecordPageFields": {- "id": "00000000-0000-0000-0000-000000000169",+ "id": "00000000-0000-0000-0000-000000000170","viewFieldGroups": {"general": {- "id": "00000000-0000-0000-0000-000000000167",+ "id": "00000000-0000-0000-0000-000000000168",},"system": {- "id": "00000000-0000-0000-0000-000000000168",+ "id": "00000000-0000-0000-0000-000000000169",},},"viewFields": {"calendarEventTargets": {- "id": "00000000-0000-0000-0000-000000000162",+ "id": "00000000-0000-0000-0000-000000000163",},"conferenceLink": {- "id": "00000000-0000-0000-0000-000000000159",+ "id": "00000000-0000-0000-0000-000000000160",},"conferenceSolution": {- "id": "00000000-0000-0000-0000-000000000166",+ "id": "00000000-0000-0000-0000-000000000167",},"description": {- "id": "00000000-0000-0000-0000-000000000161",+ "id": "00000000-0000-0000-0000-000000000162",},"endsAt": {- "id": "00000000-0000-0000-0000-000000000156",+ "id": "00000000-0000-0000-0000-000000000157",},"externalCreatedAt": {- "id": "00000000-0000-0000-0000-000000000163",+ "id": "00000000-0000-0000-0000-000000000164",},"externalUpdatedAt": {- "id": "00000000-0000-0000-0000-000000000164",+ "id": "00000000-0000-0000-0000-000000000165",},"iCalUid": {- "id": "00000000-0000-0000-0000-000000000165",+ "id": "00000000-0000-0000-0000-000000000166",},"isCanceled": {- "id": "00000000-0000-0000-0000-000000000158",+ "id": "00000000-0000-0000-0000-000000000159",},"isFullDay": {- "id": "00000000-0000-0000-0000-000000000157",+ "id": "00000000-0000-0000-0000-000000000158",},"location": {- "id": "00000000-0000-0000-0000-000000000160",+ "id": "00000000-0000-0000-0000-000000000161",},"startsAt": {- "id": "00000000-0000-0000-0000-000000000155",+ "id": "00000000-0000-0000-0000-000000000156",},"title": {- "id": "00000000-0000-0000-0000-000000000154",+ "id": "00000000-0000-0000-0000-000000000155",},},"viewGroups": {},@@ -713,121 +719,121 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"calendarEventParticipant": {"fields": {"calendarEvent": {- "id": "00000000-0000-0000-0000-000000000092",+ "id": "00000000-0000-0000-0000-000000000093",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000085",+ "id": "00000000-0000-0000-0000-000000000086",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000088",+ "id": "00000000-0000-0000-0000-000000000089",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000087",+ "id": "00000000-0000-0000-0000-000000000088",},"displayName": {- "id": "00000000-0000-0000-0000-000000000094",+ "id": "00000000-0000-0000-0000-000000000095",},"handle": {- "id": "00000000-0000-0000-0000-000000000093",+ "id": "00000000-0000-0000-0000-000000000094",},"id": {- "id": "00000000-0000-0000-0000-000000000084",+ "id": "00000000-0000-0000-0000-000000000085",},"isOrganizer": {- "id": "00000000-0000-0000-0000-000000000095",+ "id": "00000000-0000-0000-0000-000000000096",},"person": {- "id": "00000000-0000-0000-0000-000000000097",+ "id": "00000000-0000-0000-0000-000000000098",},"position": {- "id": "00000000-0000-0000-0000-000000000090",+ "id": "00000000-0000-0000-0000-000000000091",},"responseStatus": {- "id": "00000000-0000-0000-0000-000000000096",+ "id": "00000000-0000-0000-0000-000000000097",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000091",+ "id": "00000000-0000-0000-0000-000000000092",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000086",+ "id": "00000000-0000-0000-0000-000000000087",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000089",+ "id": "00000000-0000-0000-0000-000000000090",},"workspaceMember": {- "id": "00000000-0000-0000-0000-000000000098",+ "id": "00000000-0000-0000-0000-000000000099",},},- "id": "00000000-0000-0000-0000-000000000120",+ "id": "00000000-0000-0000-0000-000000000121","views": {"allCalendarEventParticipants": {- "id": "00000000-0000-0000-0000-000000000107",+ "id": "00000000-0000-0000-0000-000000000108","viewFieldGroups": {},"viewFields": {"calendarEvent": {- "id": "00000000-0000-0000-0000-000000000099",+ "id": "00000000-0000-0000-0000-000000000100",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000106",+ "id": "00000000-0000-0000-0000-000000000107",},"displayName": {- "id": "00000000-0000-0000-0000-000000000101",+ "id": "00000000-0000-0000-0000-000000000102",},"handle": {- "id": "00000000-0000-0000-0000-000000000100",+ "id": "00000000-0000-0000-0000-000000000101",},"isOrganizer": {- "id": "00000000-0000-0000-0000-000000000102",+ "id": "00000000-0000-0000-0000-000000000103",},"person": {- "id": "00000000-0000-0000-0000-000000000104",+ "id": "00000000-0000-0000-0000-000000000105",},"responseStatus": {- "id": "00000000-0000-0000-0000-000000000103",+ "id": "00000000-0000-0000-0000-000000000104",},"workspaceMember": {- "id": "00000000-0000-0000-0000-000000000105",+ "id": "00000000-0000-0000-0000-000000000106",},},"viewGroups": {},},"calendarEventParticipantRecordPageFields": {- "id": "00000000-0000-0000-0000-000000000119",+ "id": "00000000-0000-0000-0000-000000000120","viewFieldGroups": {"general": {- "id": "00000000-0000-0000-0000-000000000117",+ "id": "00000000-0000-0000-0000-000000000118",},"system": {- "id": "00000000-0000-0000-0000-000000000118",+ "id": "00000000-0000-0000-0000-000000000119",},},"viewFields": {"calendarEvent": {- "id": "00000000-0000-0000-0000-000000000108",+ "id": "00000000-0000-0000-0000-000000000109",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000115",+ "id": "00000000-0000-0000-0000-000000000116",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000116",+ "id": "00000000-0000-0000-0000-000000000117",},"displayName": {- "id": "00000000-0000-0000-0000-000000000110",+ "id": "00000000-0000-0000-0000-000000000111",},"handle": {- "id": "00000000-0000-0000-0000-000000000109",+ "id": "00000000-0000-0000-0000-000000000110",},"isOrganizer": {- "id": "00000000-0000-0000-0000-000000000111",+ "id": "00000000-0000-0000-0000-000000000112",},"person": {- "id": "00000000-0000-0000-0000-000000000113",+ "id": "00000000-0000-0000-0000-000000000114",},"responseStatus": {- "id": "00000000-0000-0000-0000-000000000112",+ "id": "00000000-0000-0000-0000-000000000113",},"workspaceMember": {- "id": "00000000-0000-0000-0000-000000000114",+ "id": "00000000-0000-0000-0000-000000000115",},},"viewGroups": {},@@ -837,172 +843,172 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"calendarEventTarget": {"fields": {"calendarEvent": {- "id": "00000000-0000-0000-0000-000000000179",+ "id": "00000000-0000-0000-0000-000000000180",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000172",+ "id": "00000000-0000-0000-0000-000000000173",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000175",+ "id": "00000000-0000-0000-0000-000000000176",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000174",+ "id": "00000000-0000-0000-0000-000000000175",},"id": {- "id": "00000000-0000-0000-0000-000000000171",+ "id": "00000000-0000-0000-0000-000000000172",},"isAutomaticallyAssigned": {- "id": "00000000-0000-0000-0000-000000000180",+ "id": "00000000-0000-0000-0000-000000000181",},"isManuallyAssigned": {- "id": "00000000-0000-0000-0000-000000000181",+ "id": "00000000-0000-0000-0000-000000000182",},"position": {- "id": "00000000-0000-0000-0000-000000000177",+ "id": "00000000-0000-0000-0000-000000000178",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000178",+ "id": "00000000-0000-0000-0000-000000000179",},"targetCompany": {- "id": "00000000-0000-0000-0000-000000000183",+ "id": "00000000-0000-0000-0000-000000000184",},"targetOpportunity": {- "id": "00000000-0000-0000-0000-000000000184",+ "id": "00000000-0000-0000-0000-000000000185",},"targetPerson": {- "id": "00000000-0000-0000-0000-000000000182",+ "id": "00000000-0000-0000-0000-000000000183",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000173",+ "id": "00000000-0000-0000-0000-000000000174",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000176",+ "id": "00000000-0000-0000-0000-000000000177",},},- "id": "00000000-0000-0000-0000-000000000185",+ "id": "00000000-0000-0000-0000-000000000186","views": {},},"callRecording": {"fields": {"applicationId": {- "id": "00000000-0000-0000-0000-000000000197",+ "id": "00000000-0000-0000-0000-000000000198",},"audio": {- "id": "00000000-0000-0000-0000-000000000203",+ "id": "00000000-0000-0000-0000-000000000204",},"calendarEvent": {- "id": "00000000-0000-0000-0000-000000000206",+ "id": "00000000-0000-0000-0000-000000000207",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000187",+ "id": "00000000-0000-0000-0000-000000000188",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000190",+ "id": "00000000-0000-0000-0000-000000000191",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000189",+ "id": "00000000-0000-0000-0000-000000000190",},"endedAt": {- "id": "00000000-0000-0000-0000-000000000201",+ "id": "00000000-0000-0000-0000-000000000202",},"externalBotId": {- "id": "00000000-0000-0000-0000-000000000198",+ "id": "00000000-0000-0000-0000-000000000199",},"externalRecordingId": {- "id": "00000000-0000-0000-0000-000000000199",+ "id": "00000000-0000-0000-0000-000000000200",},"id": {- "id": "00000000-0000-0000-0000-000000000186",+ "id": "00000000-0000-0000-0000-000000000187",},"position": {- "id": "00000000-0000-0000-0000-000000000192",+ "id": "00000000-0000-0000-0000-000000000193",},"recordingRequestStatus": {- "id": "00000000-0000-0000-0000-000000000196",+ "id": "00000000-0000-0000-0000-000000000197",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000193",+ "id": "00000000-0000-0000-0000-000000000194",},"startedAt": {- "id": "00000000-0000-0000-0000-000000000200",+ "id": "00000000-0000-0000-0000-000000000201",},"status": {- "id": "00000000-0000-0000-0000-000000000195",+ "id": "00000000-0000-0000-0000-000000000196",},"summary": {- "id": "00000000-0000-0000-0000-000000000205",+ "id": "00000000-0000-0000-0000-000000000206",},"title": {- "id": "00000000-0000-0000-0000-000000000194",+ "id": "00000000-0000-0000-0000-000000000195",},"transcript": {- "id": "00000000-0000-0000-0000-000000000204",+ "id": "00000000-0000-0000-0000-000000000205",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000188",+ "id": "00000000-0000-0000-0000-000000000189",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000191",+ "id": "00000000-0000-0000-0000-000000000192",},"video": {- "id": "00000000-0000-0000-0000-000000000202",+ "id": "00000000-0000-0000-0000-000000000203",},},- "id": "00000000-0000-0000-0000-000000000223",+ "id": "00000000-0000-0000-0000-000000000224","views": {"allCallRecordings": {- "id": "00000000-0000-0000-0000-000000000211",+ "id": "00000000-0000-0000-0000-000000000212","viewFieldGroups": {},"viewFields": {"recordingRequestStatus": {- "id": "00000000-0000-0000-0000-000000000208",+ "id": "00000000-0000-0000-0000-000000000209",},"startedAt": {- "id": "00000000-0000-0000-0000-000000000210",+ "id": "00000000-0000-0000-0000-000000000211",},"status": {- "id": "00000000-0000-0000-0000-000000000207",+ "id": "00000000-0000-0000-0000-000000000208",},"title": {- "id": "00000000-0000-0000-0000-000000000209",+ "id": "00000000-0000-0000-0000-000000000210",},},"viewGroups": {},},"callRecordingRecordPageFields": {- "id": "00000000-0000-0000-0000-000000000222",+ "id": "00000000-0000-0000-0000-000000000223","viewFieldGroups": {"general": {- "id": "00000000-0000-0000-0000-000000000221",+ "id": "00000000-0000-0000-0000-000000000222",},},"viewFields": {"audio": {- "id": "00000000-0000-0000-0000-000000000218",+ "id": "00000000-0000-0000-0000-000000000219",},"endedAt": {- "id": "00000000-0000-0000-0000-000000000216",+ "id": "00000000-0000-0000-0000-000000000217",},"recordingRequestStatus": {- "id": "00000000-0000-0000-0000-000000000214",+ "id": "00000000-0000-0000-0000-000000000215",},"startedAt": {- "id": "00000000-0000-0000-0000-000000000215",+ "id": "00000000-0000-0000-0000-000000000216",},"status": {- "id": "00000000-0000-0000-0000-000000000213",+ "id": "00000000-0000-0000-0000-000000000214",},"summary": {- "id": "00000000-0000-0000-0000-000000000220",+ "id": "00000000-0000-0000-0000-000000000221",},"title": {- "id": "00000000-0000-0000-0000-000000000212",+ "id": "00000000-0000-0000-0000-000000000213",},"transcript": {- "id": "00000000-0000-0000-0000-000000000219",+ "id": "00000000-0000-0000-0000-000000000220",},"video": {- "id": "00000000-0000-0000-0000-000000000217",+ "id": "00000000-0000-0000-0000-000000000218",},},"viewGroups": {},@@ -1012,226 +1018,226 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"campaignDelivery": {"fields": {"bouncedAt": {- "id": "00000000-0000-0000-0000-000000001091",+ "id": "00000000-0000-0000-0000-000000001093",},"campaignId": {- "id": "00000000-0000-0000-0000-000000001080",+ "id": "00000000-0000-0000-0000-000000001082",},"claimExpiresAt": {- "id": "00000000-0000-0000-0000-000000001087",+ "id": "00000000-0000-0000-0000-000000001089",},"claimToken": {- "id": "00000000-0000-0000-0000-000000001086",+ "id": "00000000-0000-0000-0000-000000001088",},"complainedAt": {- "id": "00000000-0000-0000-0000-000000001092",+ "id": "00000000-0000-0000-0000-000000001094",},"createdAt": {- "id": "00000000-0000-0000-0000-000000001077",+ "id": "00000000-0000-0000-0000-000000001079",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000001079",+ "id": "00000000-0000-0000-0000-000000001081",},"deliveredAt": {- "id": "00000000-0000-0000-0000-000000001090",+ "id": "00000000-0000-0000-0000-000000001092",},"failureReason": {- "id": "00000000-0000-0000-0000-000000001085",+ "id": "00000000-0000-0000-0000-000000001087",},"id": {- "id": "00000000-0000-0000-0000-000000001076",+ "id": "00000000-0000-0000-0000-000000001078",},"personId": {- "id": "00000000-0000-0000-0000-000000001081",+ "id": "00000000-0000-0000-0000-000000001083",},"providerMessageId": {- "id": "00000000-0000-0000-0000-000000001088",+ "id": "00000000-0000-0000-0000-000000001090",},"recipientEmail": {- "id": "00000000-0000-0000-0000-000000001082",+ "id": "00000000-0000-0000-0000-000000001084",},"rejectedAt": {- "id": "00000000-0000-0000-0000-000000001093",+ "id": "00000000-0000-0000-0000-000000001095",},"renderingFailedAt": {- "id": "00000000-0000-0000-0000-000000001094",+ "id": "00000000-0000-0000-0000-000000001096",},"sentAt": {- "id": "00000000-0000-0000-0000-000000001089",+ "id": "00000000-0000-0000-0000-000000001091",},"skipReason": {- "id": "00000000-0000-0000-0000-000000001084",+ "id": "00000000-0000-0000-0000-000000001086",},"state": {- "id": "00000000-0000-0000-0000-000000001083",+ "id": "00000000-0000-0000-0000-000000001085",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000001078",+ "id": "00000000-0000-0000-0000-000000001080",},},- "id": "00000000-0000-0000-0000-000000001095",+ "id": "00000000-0000-0000-0000-000000001097","views": undefined,},"company": {"fields": {"accountOwner": {- "id": "00000000-0000-0000-0000-000000000238",+ "id": "00000000-0000-0000-0000-000000000239",},"address": {- "id": "00000000-0000-0000-0000-000000000234",+ "id": "00000000-0000-0000-0000-000000000235",},"annualRevenue": {- "id": "00000000-0000-0000-0000-000000000236",+ "id": "00000000-0000-0000-0000-000000000237",},"attachments": {- "id": "00000000-0000-0000-0000-000000000244",+ "id": "00000000-0000-0000-0000-000000000245",},"calendarEventTargets": {- "id": "00000000-0000-0000-0000-000000000241",+ "id": "00000000-0000-0000-0000-000000000242",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000225",+ "id": "00000000-0000-0000-0000-000000000226",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000228",+ "id": "00000000-0000-0000-0000-000000000229",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000227",+ "id": "00000000-0000-0000-0000-000000000228",},"domainName": {- "id": "00000000-0000-0000-0000-000000000233",+ "id": "00000000-0000-0000-0000-000000000234",},"id": {- "id": "00000000-0000-0000-0000-000000000224",+ "id": "00000000-0000-0000-0000-000000000225",},"linkedinLink": {- "id": "00000000-0000-0000-0000-000000000235",+ "id": "00000000-0000-0000-0000-000000000236",},"messageThreadTargets": {- "id": "00000000-0000-0000-0000-000000000242",+ "id": "00000000-0000-0000-0000-000000000243",},"name": {- "id": "00000000-0000-0000-0000-000000000232",+ "id": "00000000-0000-0000-0000-000000000233",},"noteTargets": {- "id": "00000000-0000-0000-0000-000000000240",+ "id": "00000000-0000-0000-0000-000000000241",},"opportunities": {- "id": "00000000-0000-0000-0000-000000000243",+ "id": "00000000-0000-0000-0000-000000000244",},"people": {- "id": "00000000-0000-0000-0000-000000000237",+ "id": "00000000-0000-0000-0000-000000000238",},"position": {- "id": "00000000-0000-0000-0000-000000000230",+ "id": "00000000-0000-0000-0000-000000000231",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000231",+ "id": "00000000-0000-0000-0000-000000000232",},"taskTargets": {- "id": "00000000-0000-0000-0000-000000000239",+ "id": "00000000-0000-0000-0000-000000000240",},"timelineActivities": {- "id": "00000000-0000-0000-0000-000000000245",+ "id": "00000000-0000-0000-0000-000000000246",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000226",+ "id": "00000000-0000-0000-0000-000000000227",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000229",+ "id": "00000000-0000-0000-0000-000000000230",},},- "id": "00000000-0000-0000-0000-000000000274",+ "id": "00000000-0000-0000-0000-000000000275","views": {"allCompanies": {- "id": "00000000-0000-0000-0000-000000000253",+ "id": "00000000-0000-0000-0000-000000000254","viewFieldGroups": {},"viewFields": {"accountOwner": {- "id": "00000000-0000-0000-0000-000000000249",+ "id": "00000000-0000-0000-0000-000000000250",},"address": {- "id": "00000000-0000-0000-0000-000000000252",+ "id": "00000000-0000-0000-0000-000000000253",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000250",+ "id": "00000000-0000-0000-0000-000000000251",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000248",+ "id": "00000000-0000-0000-0000-000000000249",},"domainName": {- "id": "00000000-0000-0000-0000-000000000247",+ "id": "00000000-0000-0000-0000-000000000248",},"linkedinLink": {- "id": "00000000-0000-0000-0000-000000000251",+ "id": "00000000-0000-0000-0000-000000000252",},"name": {- "id": "00000000-0000-0000-0000-000000000246",+ "id": "00000000-0000-0000-0000-000000000247",},},"viewGroups": {},},"companyRecordPageFields": {- "id": "00000000-0000-0000-0000-000000000273",+ "id": "00000000-0000-0000-0000-000000000274","viewFieldGroups": {"business": {- "id": "00000000-0000-0000-0000-000000000270",+ "id": "00000000-0000-0000-0000-000000000271",},"contact": {- "id": "00000000-0000-0000-0000-000000000271",+ "id": "00000000-0000-0000-0000-000000000272",},"general": {- "id": "00000000-0000-0000-0000-000000000269",+ "id": "00000000-0000-0000-0000-000000000270",},"system": {- "id": "00000000-0000-0000-0000-000000000272",+ "id": "00000000-0000-0000-0000-000000000273",},},"viewFields": {"accountOwner": {- "id": "00000000-0000-0000-0000-000000000255",+ "id": "00000000-0000-0000-0000-000000000256",},"address": {- "id": "00000000-0000-0000-0000-000000000258",+ "id": "00000000-0000-0000-0000-000000000259",},"annualRevenue": {- "id": "00000000-0000-0000-0000-000000000256",+ "id": "00000000-0000-0000-0000-000000000257",},"attachments": {- "id": "00000000-0000-0000-0000-000000000267",+ "id": "00000000-0000-0000-0000-000000000268",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000259",+ "id": "00000000-0000-0000-0000-000000000260",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000260",+ "id": "00000000-0000-0000-0000-000000000261",},"domainName": {- "id": "00000000-0000-0000-0000-000000000254",+ "id": "00000000-0000-0000-0000-000000000255",},"linkedinLink": {- "id": "00000000-0000-0000-0000-000000000257",+ "id": "00000000-0000-0000-0000-000000000258",},"noteTargets": {- "id": "00000000-0000-0000-0000-000000000265",+ "id": "00000000-0000-0000-0000-000000000266",},"opportunities": {- "id": "00000000-0000-0000-0000-000000000266",+ "id": "00000000-0000-0000-0000-000000000267",},"people": {- "id": "00000000-0000-0000-0000-000000000263",+ "id": "00000000-0000-0000-0000-000000000264",},"taskTargets": {- "id": "00000000-0000-0000-0000-000000000264",+ "id": "00000000-0000-0000-0000-000000000265",},"timelineActivities": {- "id": "00000000-0000-0000-0000-000000000268",+ "id": "00000000-0000-0000-0000-000000000269",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000261",+ "id": "00000000-0000-0000-0000-000000000262",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000262",+ "id": "00000000-0000-0000-0000-000000000263",},},"viewGroups": {},@@ -1241,59 +1247,59 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"dashboard": {"fields": {"attachments": {- "id": "00000000-0000-0000-0000-000000000286",+ "id": "00000000-0000-0000-0000-000000000287",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000276",+ "id": "00000000-0000-0000-0000-000000000277",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000279",+ "id": "00000000-0000-0000-0000-000000000280",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000278",+ "id": "00000000-0000-0000-0000-000000000279",},"id": {- "id": "00000000-0000-0000-0000-000000000275",+ "id": "00000000-0000-0000-0000-000000000276",},"pageLayoutId": {- "id": "00000000-0000-0000-0000-000000000284",+ "id": "00000000-0000-0000-0000-000000000285",},"position": {- "id": "00000000-0000-0000-0000-000000000281",+ "id": "00000000-0000-0000-0000-000000000282",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000282",+ "id": "00000000-0000-0000-0000-000000000283",},"timelineActivities": {- "id": "00000000-0000-0000-0000-000000000285",+ "id": "00000000-0000-0000-0000-000000000286",},"title": {- "id": "00000000-0000-0000-0000-000000000283",+ "id": "00000000-0000-0000-0000-000000000284",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000277",+ "id": "00000000-0000-0000-0000-000000000278",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000280",+ "id": "00000000-0000-0000-0000-000000000281",},},- "id": "00000000-0000-0000-0000-000000000292",+ "id": "00000000-0000-0000-0000-000000000293","views": {"allDashboards": {- "id": "00000000-0000-0000-0000-000000000291",+ "id": "00000000-0000-0000-0000-000000000292","viewFieldGroups": {},"viewFields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000289",+ "id": "00000000-0000-0000-0000-000000000290",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000288",+ "id": "00000000-0000-0000-0000-000000000289",},"title": {- "id": "00000000-0000-0000-0000-000000000287",+ "id": "00000000-0000-0000-0000-000000000288",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000290",+ "id": "00000000-0000-0000-0000-000000000291",},},"viewGroups": {},@@ -1303,118 +1309,118 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"message": {"fields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000504",+ "id": "00000000-0000-0000-0000-000000000505",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000507",+ "id": "00000000-0000-0000-0000-000000000508",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000506",+ "id": "00000000-0000-0000-0000-000000000507",},"headerMessageId": {- "id": "00000000-0000-0000-0000-000000000511",+ "id": "00000000-0000-0000-0000-000000000512",},"id": {- "id": "00000000-0000-0000-0000-000000000503",+ "id": "00000000-0000-0000-0000-000000000504",},"isDraft": {- "id": "00000000-0000-0000-0000-000000000519",+ "id": "00000000-0000-0000-0000-000000000520",},"messageCampaign": {- "id": "00000000-0000-0000-0000-000000000518",+ "id": "00000000-0000-0000-0000-000000000519",},"messageChannelMessageAssociations": {- "id": "00000000-0000-0000-0000-000000000517",+ "id": "00000000-0000-0000-0000-000000000518",},"messageParticipants": {- "id": "00000000-0000-0000-0000-000000000516",+ "id": "00000000-0000-0000-0000-000000000517",},"messageThread": {- "id": "00000000-0000-0000-0000-000000000512",+ "id": "00000000-0000-0000-0000-000000000513",},"position": {- "id": "00000000-0000-0000-0000-000000000509",+ "id": "00000000-0000-0000-0000-000000000510",},"receivedAt": {- "id": "00000000-0000-0000-0000-000000000515",+ "id": "00000000-0000-0000-0000-000000000516",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000510",+ "id": "00000000-0000-0000-0000-000000000511",},"subject": {- "id": "00000000-0000-0000-0000-000000000513",+ "id": "00000000-0000-0000-0000-000000000514",},"text": {- "id": "00000000-0000-0000-0000-000000000514",+ "id": "00000000-0000-0000-0000-000000000515",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000505",+ "id": "00000000-0000-0000-0000-000000000506",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000508",+ "id": "00000000-0000-0000-0000-000000000509",},},- "id": "00000000-0000-0000-0000-000000000538",+ "id": "00000000-0000-0000-0000-000000000539","views": {"allMessages": {- "id": "00000000-0000-0000-0000-000000000527",+ "id": "00000000-0000-0000-0000-000000000528","viewFieldGroups": {},"viewFields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000526",+ "id": "00000000-0000-0000-0000-000000000527",},"headerMessageId": {- "id": "00000000-0000-0000-0000-000000000524",+ "id": "00000000-0000-0000-0000-000000000525",},"messageParticipants": {- "id": "00000000-0000-0000-0000-000000000522",+ "id": "00000000-0000-0000-0000-000000000523",},"messageThread": {- "id": "00000000-0000-0000-0000-000000000521",+ "id": "00000000-0000-0000-0000-000000000522",},"receivedAt": {- "id": "00000000-0000-0000-0000-000000000523",+ "id": "00000000-0000-0000-0000-000000000524",},"subject": {- "id": "00000000-0000-0000-0000-000000000520",+ "id": "00000000-0000-0000-0000-000000000521",},"text": {- "id": "00000000-0000-0000-0000-000000000525",+ "id": "00000000-0000-0000-0000-000000000526",},},"viewGroups": {},},"messageRecordPageFields": {- "id": "00000000-0000-0000-0000-000000000537",+ "id": "00000000-0000-0000-0000-000000000538","viewFieldGroups": {"general": {- "id": "00000000-0000-0000-0000-000000000535",+ "id": "00000000-0000-0000-0000-000000000536",},"system": {- "id": "00000000-0000-0000-0000-000000000536",+ "id": "00000000-0000-0000-0000-000000000537",},},"viewFields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000533",+ "id": "00000000-0000-0000-0000-000000000534",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000534",+ "id": "00000000-0000-0000-0000-000000000535",},"headerMessageId": {- "id": "00000000-0000-0000-0000-000000000532",+ "id": "00000000-0000-0000-0000-000000000533",},"messageParticipants": {- "id": "00000000-0000-0000-0000-000000000529",+ "id": "00000000-0000-0000-0000-000000000530",},"messageThread": {- "id": "00000000-0000-0000-0000-000000000528",+ "id": "00000000-0000-0000-0000-000000000529",},"receivedAt": {- "id": "00000000-0000-0000-0000-000000000530",+ "id": "00000000-0000-0000-0000-000000000531",},"text": {- "id": "00000000-0000-0000-0000-000000000531",+ "id": "00000000-0000-0000-0000-000000000532",},},"viewGroups": {},@@ -1424,172 +1430,172 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"messageCampaign": {"fields": {"bodyTemplate": {- "id": "00000000-0000-0000-0000-000000000303",+ "id": "00000000-0000-0000-0000-000000000304",},"bouncedCount": {- "id": "00000000-0000-0000-0000-000000000311",+ "id": "00000000-0000-0000-0000-000000000312",},"complainedCount": {- "id": "00000000-0000-0000-0000-000000000312",+ "id": "00000000-0000-0000-0000-000000000313",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000294",+ "id": "00000000-0000-0000-0000-000000000295",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000297",+ "id": "00000000-0000-0000-0000-000000000298",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000296",+ "id": "00000000-0000-0000-0000-000000000297",},"deliveredCount": {- "id": "00000000-0000-0000-0000-000000000309",+ "id": "00000000-0000-0000-0000-000000000310",},"failedCount": {- "id": "00000000-0000-0000-0000-000000000310",+ "id": "00000000-0000-0000-0000-000000000311",},"fromAddress": {- "id": "00000000-0000-0000-0000-000000000304",+ "id": "00000000-0000-0000-0000-000000000305",},"id": {- "id": "00000000-0000-0000-0000-000000000293",+ "id": "00000000-0000-0000-0000-000000000294",},"list": {- "id": "00000000-0000-0000-0000-000000000315",+ "id": "00000000-0000-0000-0000-000000000316",},"messages": {- "id": "00000000-0000-0000-0000-000000000317",+ "id": "00000000-0000-0000-0000-000000000318",},"name": {- "id": "00000000-0000-0000-0000-000000000301",+ "id": "00000000-0000-0000-0000-000000000302",},"position": {- "id": "00000000-0000-0000-0000-000000000299",+ "id": "00000000-0000-0000-0000-000000000300",},"recipients": {- "id": "00000000-0000-0000-0000-000000000318",+ "id": "00000000-0000-0000-0000-000000000319",},"scheduledAt": {- "id": "00000000-0000-0000-0000-000000000306",+ "id": "00000000-0000-0000-0000-000000000307",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000300",+ "id": "00000000-0000-0000-0000-000000000301",},"sentAt": {- "id": "00000000-0000-0000-0000-000000000307",+ "id": "00000000-0000-0000-0000-000000000308",},"sentCount": {- "id": "00000000-0000-0000-0000-000000000308",+ "id": "00000000-0000-0000-0000-000000000309",},"skippedCount": {- "id": "00000000-0000-0000-0000-000000000313",+ "id": "00000000-0000-0000-0000-000000000314",},"status": {- "id": "00000000-0000-0000-0000-000000000305",+ "id": "00000000-0000-0000-0000-000000000306",},"subject": {- "id": "00000000-0000-0000-0000-000000000302",+ "id": "00000000-0000-0000-0000-000000000303",},"timelineActivities": {- "id": "00000000-0000-0000-0000-000000000316",+ "id": "00000000-0000-0000-0000-000000000317",},"unsubscribeTopicId": {- "id": "00000000-0000-0000-0000-000000000314",+ "id": "00000000-0000-0000-0000-000000000315",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000295",+ "id": "00000000-0000-0000-0000-000000000296",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000298",+ "id": "00000000-0000-0000-0000-000000000299",},},- "id": "00000000-0000-0000-0000-000000000346",+ "id": "00000000-0000-0000-0000-000000000347","views": {"allMessageCampaigns": {- "id": "00000000-0000-0000-0000-000000000334",+ "id": "00000000-0000-0000-0000-000000000335","viewFieldGroups": {},"viewFields": {"bouncedCount": {- "id": "00000000-0000-0000-0000-000000000330",+ "id": "00000000-0000-0000-0000-000000000331",},"complainedCount": {- "id": "00000000-0000-0000-0000-000000000331",+ "id": "00000000-0000-0000-0000-000000000332",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000333",+ "id": "00000000-0000-0000-0000-000000000334",},"deliveredCount": {- "id": "00000000-0000-0000-0000-000000000327",+ "id": "00000000-0000-0000-0000-000000000328",},"failedCount": {- "id": "00000000-0000-0000-0000-000000000328",+ "id": "00000000-0000-0000-0000-000000000329",},"fromAddress": {- "id": "00000000-0000-0000-0000-000000000323",+ "id": "00000000-0000-0000-0000-000000000324",},"list": {- "id": "00000000-0000-0000-0000-000000000322",+ "id": "00000000-0000-0000-0000-000000000323",},"name": {- "id": "00000000-0000-0000-0000-000000000319",+ "id": "00000000-0000-0000-0000-000000000320",},"recipients": {- "id": "00000000-0000-0000-0000-000000000332",+ "id": "00000000-0000-0000-0000-000000000333",},"scheduledAt": {- "id": "00000000-0000-0000-0000-000000000324",+ "id": "00000000-0000-0000-0000-000000000325",},"sentAt": {- "id": "00000000-0000-0000-0000-000000000325",+ "id": "00000000-0000-0000-0000-000000000326",},"sentCount": {- "id": "00000000-0000-0000-0000-000000000326",+ "id": "00000000-0000-0000-0000-000000000327",},"skippedCount": {- "id": "00000000-0000-0000-0000-000000000329",+ "id": "00000000-0000-0000-0000-000000000330",},"status": {- "id": "00000000-0000-0000-0000-000000000321",+ "id": "00000000-0000-0000-0000-000000000322",},"subject": {- "id": "00000000-0000-0000-0000-000000000320",+ "id": "00000000-0000-0000-0000-000000000321",},},"viewGroups": {},},"messageCampaignRecordPageFields": {- "id": "00000000-0000-0000-0000-000000000345",+ "id": "00000000-0000-0000-0000-000000000346","viewFieldGroups": {"stats": {- "id": "00000000-0000-0000-0000-000000000344",+ "id": "00000000-0000-0000-0000-000000000345",},},"viewFields": {"bouncedCount": {- "id": "00000000-0000-0000-0000-000000000342",+ "id": "00000000-0000-0000-0000-000000000343",},"complainedCount": {- "id": "00000000-0000-0000-0000-000000000343",+ "id": "00000000-0000-0000-0000-000000000344",},"deliveredCount": {- "id": "00000000-0000-0000-0000-000000000339",+ "id": "00000000-0000-0000-0000-000000000340",},"failedCount": {- "id": "00000000-0000-0000-0000-000000000340",+ "id": "00000000-0000-0000-0000-000000000341",},"scheduledAt": {- "id": "00000000-0000-0000-0000-000000000336",+ "id": "00000000-0000-0000-0000-000000000337",},"sentAt": {- "id": "00000000-0000-0000-0000-000000000337",+ "id": "00000000-0000-0000-0000-000000000338",},"sentCount": {- "id": "00000000-0000-0000-0000-000000000338",+ "id": "00000000-0000-0000-0000-000000000339",},"skippedCount": {- "id": "00000000-0000-0000-0000-000000000341",+ "id": "00000000-0000-0000-0000-000000000342",},"status": {- "id": "00000000-0000-0000-0000-000000000335",+ "id": "00000000-0000-0000-0000-000000000336",},},"viewGroups": {},@@ -1599,103 +1605,103 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"messageChannelMessageAssociation": {"fields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000384",+ "id": "00000000-0000-0000-0000-000000000385",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000387",+ "id": "00000000-0000-0000-0000-000000000388",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000386",+ "id": "00000000-0000-0000-0000-000000000387",},"direction": {- "id": "00000000-0000-0000-0000-000000000396",+ "id": "00000000-0000-0000-0000-000000000397",},"id": {- "id": "00000000-0000-0000-0000-000000000383",+ "id": "00000000-0000-0000-0000-000000000384",},"message": {- "id": "00000000-0000-0000-0000-000000000392",+ "id": "00000000-0000-0000-0000-000000000393",},"messageChannelId": {- "id": "00000000-0000-0000-0000-000000000391",+ "id": "00000000-0000-0000-0000-000000000392",},"messageExternalId": {- "id": "00000000-0000-0000-0000-000000000393",+ "id": "00000000-0000-0000-0000-000000000394",},"messageFolders": {- "id": "00000000-0000-0000-0000-000000000397",+ "id": "00000000-0000-0000-0000-000000000398",},"messageThread": {- "id": "00000000-0000-0000-0000-000000000394",+ "id": "00000000-0000-0000-0000-000000000395",},"messageThreadExternalId": {- "id": "00000000-0000-0000-0000-000000000395",+ "id": "00000000-0000-0000-0000-000000000396",},"position": {- "id": "00000000-0000-0000-0000-000000000389",+ "id": "00000000-0000-0000-0000-000000000390",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000390",+ "id": "00000000-0000-0000-0000-000000000391",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000385",+ "id": "00000000-0000-0000-0000-000000000386",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000388",+ "id": "00000000-0000-0000-0000-000000000389",},},- "id": "00000000-0000-0000-0000-000000000413",+ "id": "00000000-0000-0000-0000-000000000414","views": {"allMessageChannelMessageAssociations": {- "id": "00000000-0000-0000-0000-000000000403",+ "id": "00000000-0000-0000-0000-000000000404","viewFieldGroups": {},"viewFields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000402",+ "id": "00000000-0000-0000-0000-000000000403",},"direction": {- "id": "00000000-0000-0000-0000-000000000401",+ "id": "00000000-0000-0000-0000-000000000402",},"message": {- "id": "00000000-0000-0000-0000-000000000399",+ "id": "00000000-0000-0000-0000-000000000400",},"messageChannelId": {- "id": "00000000-0000-0000-0000-000000000398",+ "id": "00000000-0000-0000-0000-000000000399",},"messageExternalId": {- "id": "00000000-0000-0000-0000-000000000400",+ "id": "00000000-0000-0000-0000-000000000401",},},"viewGroups": {},},"messageChannelMessageAssociationRecordPageFields": {- "id": "00000000-0000-0000-0000-000000000412",+ "id": "00000000-0000-0000-0000-000000000413","viewFieldGroups": {"general": {- "id": "00000000-0000-0000-0000-000000000410",+ "id": "00000000-0000-0000-0000-000000000411",},"system": {- "id": "00000000-0000-0000-0000-000000000411",+ "id": "00000000-0000-0000-0000-000000000412",},},"viewFields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000408",+ "id": "00000000-0000-0000-0000-000000000409",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000409",+ "id": "00000000-0000-0000-0000-000000000410",},"direction": {- "id": "00000000-0000-0000-0000-000000000407",+ "id": "00000000-0000-0000-0000-000000000408",},"message": {- "id": "00000000-0000-0000-0000-000000000405",+ "id": "00000000-0000-0000-0000-000000000406",},"messageChannelId": {- "id": "00000000-0000-0000-0000-000000000404",+ "id": "00000000-0000-0000-0000-000000000405",},"messageExternalId": {- "id": "00000000-0000-0000-0000-000000000406",+ "id": "00000000-0000-0000-0000-000000000407",},},"viewGroups": {},@@ -1705,76 +1711,76 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"messageChannelMessageAssociationMessageFolder": {"fields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000415",+ "id": "00000000-0000-0000-0000-000000000416",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000418",+ "id": "00000000-0000-0000-0000-000000000419",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000417",+ "id": "00000000-0000-0000-0000-000000000418",},"id": {- "id": "00000000-0000-0000-0000-000000000414",+ "id": "00000000-0000-0000-0000-000000000415",},"messageChannelMessageAssociation": {- "id": "00000000-0000-0000-0000-000000000422",+ "id": "00000000-0000-0000-0000-000000000423",},"messageFolderId": {- "id": "00000000-0000-0000-0000-000000000423",+ "id": "00000000-0000-0000-0000-000000000424",},"position": {- "id": "00000000-0000-0000-0000-000000000420",+ "id": "00000000-0000-0000-0000-000000000421",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000421",+ "id": "00000000-0000-0000-0000-000000000422",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000416",+ "id": "00000000-0000-0000-0000-000000000417",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000419",+ "id": "00000000-0000-0000-0000-000000000420",},},- "id": "00000000-0000-0000-0000-000000000435",+ "id": "00000000-0000-0000-0000-000000000436","views": {"allMessageChannelMessageAssociationMessageFolders": {- "id": "00000000-0000-0000-0000-000000000427",+ "id": "00000000-0000-0000-0000-000000000428","viewFieldGroups": {},"viewFields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000426",+ "id": "00000000-0000-0000-0000-000000000427",},"messageChannelMessageAssociation": {- "id": "00000000-0000-0000-0000-000000000424",+ "id": "00000000-0000-0000-0000-000000000425",},"messageFolderId": {- "id": "00000000-0000-0000-0000-000000000425",+ "id": "00000000-0000-0000-0000-000000000426",},},"viewGroups": {},},"messageChannelMessageAssociationMessageFolderRecordPageFields": {- "id": "00000000-0000-0000-0000-000000000434",+ "id": "00000000-0000-0000-0000-000000000435","viewFieldGroups": {"general": {- "id": "00000000-0000-0000-0000-000000000432",+ "id": "00000000-0000-0000-0000-000000000433",},"system": {- "id": "00000000-0000-0000-0000-000000000433",+ "id": "00000000-0000-0000-0000-000000000434",},},"viewFields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000430",+ "id": "00000000-0000-0000-0000-000000000431",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000431",+ "id": "00000000-0000-0000-0000-000000000432",},"messageChannelMessageAssociation": {- "id": "00000000-0000-0000-0000-000000000428",+ "id": "00000000-0000-0000-0000-000000000429",},"messageFolderId": {- "id": "00000000-0000-0000-0000-000000000429",+ "id": "00000000-0000-0000-0000-000000000430",},},"viewGroups": {},@@ -1784,65 +1790,65 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"messageList": {"fields": {"campaigns": {- "id": "00000000-0000-0000-0000-000000000358",+ "id": "00000000-0000-0000-0000-000000000359",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000348",+ "id": "00000000-0000-0000-0000-000000000349",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000351",+ "id": "00000000-0000-0000-0000-000000000352",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000350",+ "id": "00000000-0000-0000-0000-000000000351",},"description": {- "id": "00000000-0000-0000-0000-000000000356",+ "id": "00000000-0000-0000-0000-000000000357",},"id": {- "id": "00000000-0000-0000-0000-000000000347",+ "id": "00000000-0000-0000-0000-000000000348",},"members": {- "id": "00000000-0000-0000-0000-000000000357",+ "id": "00000000-0000-0000-0000-000000000358",},"name": {- "id": "00000000-0000-0000-0000-000000000355",+ "id": "00000000-0000-0000-0000-000000000356",},"position": {- "id": "00000000-0000-0000-0000-000000000353",+ "id": "00000000-0000-0000-0000-000000000354",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000354",+ "id": "00000000-0000-0000-0000-000000000355",},"timelineActivities": {- "id": "00000000-0000-0000-0000-000000000359",+ "id": "00000000-0000-0000-0000-000000000360",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000349",+ "id": "00000000-0000-0000-0000-000000000350",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000352",+ "id": "00000000-0000-0000-0000-000000000353",},},- "id": "00000000-0000-0000-0000-000000000366",+ "id": "00000000-0000-0000-0000-000000000367","views": {"allMessageLists": {- "id": "00000000-0000-0000-0000-000000000365",+ "id": "00000000-0000-0000-0000-000000000366","viewFieldGroups": {},"viewFields": {"campaigns": {- "id": "00000000-0000-0000-0000-000000000363",+ "id": "00000000-0000-0000-0000-000000000364",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000364",+ "id": "00000000-0000-0000-0000-000000000365",},"description": {- "id": "00000000-0000-0000-0000-000000000361",+ "id": "00000000-0000-0000-0000-000000000362",},"members": {- "id": "00000000-0000-0000-0000-000000000362",+ "id": "00000000-0000-0000-0000-000000000363",},"name": {- "id": "00000000-0000-0000-0000-000000000360",+ "id": "00000000-0000-0000-0000-000000000361",},},"viewGroups": {},@@ -1852,53 +1858,53 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"messageListMember": {"fields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000368",+ "id": "00000000-0000-0000-0000-000000000369",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000371",+ "id": "00000000-0000-0000-0000-000000000372",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000370",+ "id": "00000000-0000-0000-0000-000000000371",},"id": {- "id": "00000000-0000-0000-0000-000000000367",+ "id": "00000000-0000-0000-0000-000000000368",},"list": {- "id": "00000000-0000-0000-0000-000000000376",+ "id": "00000000-0000-0000-0000-000000000377",},"person": {- "id": "00000000-0000-0000-0000-000000000375",+ "id": "00000000-0000-0000-0000-000000000376",},"position": {- "id": "00000000-0000-0000-0000-000000000373",+ "id": "00000000-0000-0000-0000-000000000374",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000374",+ "id": "00000000-0000-0000-0000-000000000375",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000369",+ "id": "00000000-0000-0000-0000-000000000370",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000372",+ "id": "00000000-0000-0000-0000-000000000373",},},- "id": "00000000-0000-0000-0000-000000000382",+ "id": "00000000-0000-0000-0000-000000000383","views": {"allMessageListMembers": {- "id": "00000000-0000-0000-0000-000000000381",+ "id": "00000000-0000-0000-0000-000000000382","viewFieldGroups": {},"viewFields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000380",+ "id": "00000000-0000-0000-0000-000000000381",},"id": {- "id": "00000000-0000-0000-0000-000000000377",+ "id": "00000000-0000-0000-0000-000000000378",},"list": {- "id": "00000000-0000-0000-0000-000000000379",+ "id": "00000000-0000-0000-0000-000000000380",},"person": {- "id": "00000000-0000-0000-0000-000000000378",+ "id": "00000000-0000-0000-0000-000000000379",},},"viewGroups": {},@@ -1908,112 +1914,112 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"messageParticipant": {"fields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000437",+ "id": "00000000-0000-0000-0000-000000000438",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000440",+ "id": "00000000-0000-0000-0000-000000000441",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000439",+ "id": "00000000-0000-0000-0000-000000000440",},"displayName": {- "id": "00000000-0000-0000-0000-000000000447",+ "id": "00000000-0000-0000-0000-000000000448",},"handle": {- "id": "00000000-0000-0000-0000-000000000446",+ "id": "00000000-0000-0000-0000-000000000447",},"id": {- "id": "00000000-0000-0000-0000-000000000436",+ "id": "00000000-0000-0000-0000-000000000437",},"message": {- "id": "00000000-0000-0000-0000-000000000444",+ "id": "00000000-0000-0000-0000-000000000445",},"messageCampaign": {- "id": "00000000-0000-0000-0000-000000000450",+ "id": "00000000-0000-0000-0000-000000000451",},"person": {- "id": "00000000-0000-0000-0000-000000000448",+ "id": "00000000-0000-0000-0000-000000000449",},"position": {- "id": "00000000-0000-0000-0000-000000000442",+ "id": "00000000-0000-0000-0000-000000000443",},"role": {- "id": "00000000-0000-0000-0000-000000000445",+ "id": "00000000-0000-0000-0000-000000000446",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000443",+ "id": "00000000-0000-0000-0000-000000000444",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000438",+ "id": "00000000-0000-0000-0000-000000000439",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000441",+ "id": "00000000-0000-0000-0000-000000000442",},"workspaceMember": {- "id": "00000000-0000-0000-0000-000000000449",+ "id": "00000000-0000-0000-0000-000000000450",},},- "id": "00000000-0000-0000-0000-000000000469",+ "id": "00000000-0000-0000-0000-000000000470","views": {"allMessageParticipants": {- "id": "00000000-0000-0000-0000-000000000458",+ "id": "00000000-0000-0000-0000-000000000459","viewFieldGroups": {},"viewFields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000457",+ "id": "00000000-0000-0000-0000-000000000458",},"displayName": {- "id": "00000000-0000-0000-0000-000000000454",+ "id": "00000000-0000-0000-0000-000000000455",},"handle": {- "id": "00000000-0000-0000-0000-000000000453",+ "id": "00000000-0000-0000-0000-000000000454",},"message": {- "id": "00000000-0000-0000-0000-000000000451",+ "id": "00000000-0000-0000-0000-000000000452",},"person": {- "id": "00000000-0000-0000-0000-000000000455",+ "id": "00000000-0000-0000-0000-000000000456",},"role": {- "id": "00000000-0000-0000-0000-000000000452",+ "id": "00000000-0000-0000-0000-000000000453",},"workspaceMember": {- "id": "00000000-0000-0000-0000-000000000456",+ "id": "00000000-0000-0000-0000-000000000457",},},"viewGroups": {},},"messageParticipantRecordPageFields": {- "id": "00000000-0000-0000-0000-000000000468",+ "id": "00000000-0000-0000-0000-000000000469","viewFieldGroups": {"general": {- "id": "00000000-0000-0000-0000-000000000466",+ "id": "00000000-0000-0000-0000-000000000467",},"system": {- "id": "00000000-0000-0000-0000-000000000467",+ "id": "00000000-0000-0000-0000-000000000468",},},"viewFields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000464",+ "id": "00000000-0000-0000-0000-000000000465",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000465",+ "id": "00000000-0000-0000-0000-000000000466",},"displayName": {- "id": "00000000-0000-0000-0000-000000000461",+ "id": "00000000-0000-0000-0000-000000000462",},"message": {- "id": "00000000-0000-0000-0000-000000000459",+ "id": "00000000-0000-0000-0000-000000000460",},"person": {- "id": "00000000-0000-0000-0000-000000000462",+ "id": "00000000-0000-0000-0000-000000000463",},"role": {- "id": "00000000-0000-0000-0000-000000000460",+ "id": "00000000-0000-0000-0000-000000000461",},"workspaceMember": {- "id": "00000000-0000-0000-0000-000000000463",+ "id": "00000000-0000-0000-0000-000000000464",},},"viewGroups": {},@@ -2023,92 +2029,92 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"messageSuppression": {"fields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000001097",+ "id": "00000000-0000-0000-0000-000000001099",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000001099",+ "id": "00000000-0000-0000-0000-000000001101",},"emailAddress": {- "id": "00000000-0000-0000-0000-000000001100",+ "id": "00000000-0000-0000-0000-000000001102",},"id": {- "id": "00000000-0000-0000-0000-000000001096",+ "id": "00000000-0000-0000-0000-000000001098",},"providerEventId": {- "id": "00000000-0000-0000-0000-000000001103",+ "id": "00000000-0000-0000-0000-000000001105",},"reason": {- "id": "00000000-0000-0000-0000-000000001101",+ "id": "00000000-0000-0000-0000-000000001103",},"source": {- "id": "00000000-0000-0000-0000-000000001102",+ "id": "00000000-0000-0000-0000-000000001104",},"unsubscribeTopicId": {- "id": "00000000-0000-0000-0000-000000001104",+ "id": "00000000-0000-0000-0000-000000001106",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000001098",+ "id": "00000000-0000-0000-0000-000000001100",},},- "id": "00000000-0000-0000-0000-000000001105",+ "id": "00000000-0000-0000-0000-000000001107","views": undefined,},"messageThread": {"fields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000471",+ "id": "00000000-0000-0000-0000-000000000472",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000474",+ "id": "00000000-0000-0000-0000-000000000475",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000473",+ "id": "00000000-0000-0000-0000-000000000474",},"id": {- "id": "00000000-0000-0000-0000-000000000470",+ "id": "00000000-0000-0000-0000-000000000471",},"messageChannelMessageAssociations": {- "id": "00000000-0000-0000-0000-000000000479",+ "id": "00000000-0000-0000-0000-000000000480",},"messageThreadTargets": {- "id": "00000000-0000-0000-0000-000000000481",+ "id": "00000000-0000-0000-0000-000000000482",},"messages": {- "id": "00000000-0000-0000-0000-000000000478",+ "id": "00000000-0000-0000-0000-000000000479",},"position": {- "id": "00000000-0000-0000-0000-000000000476",+ "id": "00000000-0000-0000-0000-000000000477",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000477",+ "id": "00000000-0000-0000-0000-000000000478",},"subject": {- "id": "00000000-0000-0000-0000-000000000480",+ "id": "00000000-0000-0000-0000-000000000481",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000472",+ "id": "00000000-0000-0000-0000-000000000473",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000475",+ "id": "00000000-0000-0000-0000-000000000476",},},- "id": "00000000-0000-0000-0000-000000000487",+ "id": "00000000-0000-0000-0000-000000000488","views": {"allMessageThreads": {- "id": "00000000-0000-0000-0000-000000000486",+ "id": "00000000-0000-0000-0000-000000000487","viewFieldGroups": {},"viewFields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000485",+ "id": "00000000-0000-0000-0000-000000000486",},"messages": {- "id": "00000000-0000-0000-0000-000000000483",+ "id": "00000000-0000-0000-0000-000000000484",},"subject": {- "id": "00000000-0000-0000-0000-000000000482",+ "id": "00000000-0000-0000-0000-000000000483",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000484",+ "id": "00000000-0000-0000-0000-000000000485",},},"viewGroups": {},@@ -2118,133 +2124,133 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"messageThreadTarget": {"fields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000489",+ "id": "00000000-0000-0000-0000-000000000490",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000492",+ "id": "00000000-0000-0000-0000-000000000493",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000491",+ "id": "00000000-0000-0000-0000-000000000492",},"id": {- "id": "00000000-0000-0000-0000-000000000488",+ "id": "00000000-0000-0000-0000-000000000489",},"isAutomaticallyAssigned": {- "id": "00000000-0000-0000-0000-000000000497",+ "id": "00000000-0000-0000-0000-000000000498",},"isManuallyAssigned": {- "id": "00000000-0000-0000-0000-000000000498",+ "id": "00000000-0000-0000-0000-000000000499",},"messageThread": {- "id": "00000000-0000-0000-0000-000000000496",+ "id": "00000000-0000-0000-0000-000000000497",},"position": {- "id": "00000000-0000-0000-0000-000000000494",+ "id": "00000000-0000-0000-0000-000000000495",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000495",+ "id": "00000000-0000-0000-0000-000000000496",},"targetCompany": {- "id": "00000000-0000-0000-0000-000000000500",+ "id": "00000000-0000-0000-0000-000000000501",},"targetOpportunity": {- "id": "00000000-0000-0000-0000-000000000501",+ "id": "00000000-0000-0000-0000-000000000502",},"targetPerson": {- "id": "00000000-0000-0000-0000-000000000499",+ "id": "00000000-0000-0000-0000-000000000500",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000490",+ "id": "00000000-0000-0000-0000-000000000491",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000493",+ "id": "00000000-0000-0000-0000-000000000494",},},- "id": "00000000-0000-0000-0000-000000000502",+ "id": "00000000-0000-0000-0000-000000000503","views": {},},"note": {"fields": {"attachments": {- "id": "00000000-0000-0000-0000-000000000550",+ "id": "00000000-0000-0000-0000-000000000551",},"bodyV2": {- "id": "00000000-0000-0000-0000-000000000548",+ "id": "00000000-0000-0000-0000-000000000549",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000540",+ "id": "00000000-0000-0000-0000-000000000541",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000543",+ "id": "00000000-0000-0000-0000-000000000544",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000542",+ "id": "00000000-0000-0000-0000-000000000543",},"id": {- "id": "00000000-0000-0000-0000-000000000539",+ "id": "00000000-0000-0000-0000-000000000540",},"noteTargets": {- "id": "00000000-0000-0000-0000-000000000549",+ "id": "00000000-0000-0000-0000-000000000550",},"position": {- "id": "00000000-0000-0000-0000-000000000545",+ "id": "00000000-0000-0000-0000-000000000546",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000546",+ "id": "00000000-0000-0000-0000-000000000547",},"timelineActivities": {- "id": "00000000-0000-0000-0000-000000000551",+ "id": "00000000-0000-0000-0000-000000000552",},"title": {- "id": "00000000-0000-0000-0000-000000000547",+ "id": "00000000-0000-0000-0000-000000000548",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000541",+ "id": "00000000-0000-0000-0000-000000000542",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000544",+ "id": "00000000-0000-0000-0000-000000000545",},},- "id": "00000000-0000-0000-0000-000000000563",+ "id": "00000000-0000-0000-0000-000000000564","views": {"allNotes": {- "id": "00000000-0000-0000-0000-000000000557",+ "id": "00000000-0000-0000-0000-000000000558","viewFieldGroups": {},"viewFields": {"bodyV2": {- "id": "00000000-0000-0000-0000-000000000554",+ "id": "00000000-0000-0000-0000-000000000555",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000556",+ "id": "00000000-0000-0000-0000-000000000557",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000555",+ "id": "00000000-0000-0000-0000-000000000556",},"noteTargets": {- "id": "00000000-0000-0000-0000-000000000553",+ "id": "00000000-0000-0000-0000-000000000554",},"title": {- "id": "00000000-0000-0000-0000-000000000552",+ "id": "00000000-0000-0000-0000-000000000553",},},"viewGroups": {},},"noteRecordPageFields": {- "id": "00000000-0000-0000-0000-000000000562",+ "id": "00000000-0000-0000-0000-000000000563","viewFieldGroups": {"general": {- "id": "00000000-0000-0000-0000-000000000561",+ "id": "00000000-0000-0000-0000-000000000562",},},"viewFields": {"attachments": {- "id": "00000000-0000-0000-0000-000000000559",+ "id": "00000000-0000-0000-0000-000000000560",},"noteTargets": {- "id": "00000000-0000-0000-0000-000000000558",+ "id": "00000000-0000-0000-0000-000000000559",},"timelineActivities": {- "id": "00000000-0000-0000-0000-000000000560",+ "id": "00000000-0000-0000-0000-000000000561",},},"viewGroups": {},@@ -2254,62 +2260,62 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"noteTarget": {"fields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000565",+ "id": "00000000-0000-0000-0000-000000000566",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000568",+ "id": "00000000-0000-0000-0000-000000000569",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000567",+ "id": "00000000-0000-0000-0000-000000000568",},"id": {- "id": "00000000-0000-0000-0000-000000000564",+ "id": "00000000-0000-0000-0000-000000000565",},"note": {- "id": "00000000-0000-0000-0000-000000000572",+ "id": "00000000-0000-0000-0000-000000000573",},"position": {- "id": "00000000-0000-0000-0000-000000000570",+ "id": "00000000-0000-0000-0000-000000000571",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000571",+ "id": "00000000-0000-0000-0000-000000000572",},"targetCompany": {- "id": "00000000-0000-0000-0000-000000000574",+ "id": "00000000-0000-0000-0000-000000000575",},"targetOpportunity": {- "id": "00000000-0000-0000-0000-000000000575",+ "id": "00000000-0000-0000-0000-000000000576",},"targetPerson": {- "id": "00000000-0000-0000-0000-000000000573",+ "id": "00000000-0000-0000-0000-000000000574",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000566",+ "id": "00000000-0000-0000-0000-000000000567",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000569",+ "id": "00000000-0000-0000-0000-000000000570",},},- "id": "00000000-0000-0000-0000-000000000582",+ "id": "00000000-0000-0000-0000-000000000583","views": {"allNoteTargets": {- "id": "00000000-0000-0000-0000-000000000581",+ "id": "00000000-0000-0000-0000-000000000582","viewFieldGroups": {},"viewFields": {"id": {- "id": "00000000-0000-0000-0000-000000000576",+ "id": "00000000-0000-0000-0000-000000000577",},"note": {- "id": "00000000-0000-0000-0000-000000000577",+ "id": "00000000-0000-0000-0000-000000000578",},"targetCompany": {- "id": "00000000-0000-0000-0000-000000000579",+ "id": "00000000-0000-0000-0000-000000000580",},"targetOpportunity": {- "id": "00000000-0000-0000-0000-000000000580",+ "id": "00000000-0000-0000-0000-000000000581",},"targetPerson": {- "id": "00000000-0000-0000-0000-000000000578",+ "id": "00000000-0000-0000-0000-000000000579",},},"viewGroups": {},@@ -2319,192 +2325,192 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"opportunity": {"fields": {"amount": {- "id": "00000000-0000-0000-0000-000000000592",+ "id": "00000000-0000-0000-0000-000000000593",},"attachments": {- "id": "00000000-0000-0000-0000-000000000602",+ "id": "00000000-0000-0000-0000-000000000603",},"calendarEventTargets": {- "id": "00000000-0000-0000-0000-000000000600",+ "id": "00000000-0000-0000-0000-000000000601",},"closeDate": {- "id": "00000000-0000-0000-0000-000000000593",+ "id": "00000000-0000-0000-0000-000000000594",},"company": {- "id": "00000000-0000-0000-0000-000000000596",+ "id": "00000000-0000-0000-0000-000000000597",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000584",+ "id": "00000000-0000-0000-0000-000000000585",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000587",+ "id": "00000000-0000-0000-0000-000000000588",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000586",+ "id": "00000000-0000-0000-0000-000000000587",},"id": {- "id": "00000000-0000-0000-0000-000000000583",+ "id": "00000000-0000-0000-0000-000000000584",},"messageThreadTargets": {- "id": "00000000-0000-0000-0000-000000000601",+ "id": "00000000-0000-0000-0000-000000000602",},"name": {- "id": "00000000-0000-0000-0000-000000000591",+ "id": "00000000-0000-0000-0000-000000000592",},"noteTargets": {- "id": "00000000-0000-0000-0000-000000000599",+ "id": "00000000-0000-0000-0000-000000000600",},"owner": {- "id": "00000000-0000-0000-0000-000000000597",+ "id": "00000000-0000-0000-0000-000000000598",},"pointOfContact": {- "id": "00000000-0000-0000-0000-000000000595",+ "id": "00000000-0000-0000-0000-000000000596",},"position": {- "id": "00000000-0000-0000-0000-000000000589",+ "id": "00000000-0000-0000-0000-000000000590",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000590",+ "id": "00000000-0000-0000-0000-000000000591",},"stage": {- "id": "00000000-0000-0000-0000-000000000594",+ "id": "00000000-0000-0000-0000-000000000595",},"taskTargets": {- "id": "00000000-0000-0000-0000-000000000598",+ "id": "00000000-0000-0000-0000-000000000599",},"timelineActivities": {- "id": "00000000-0000-0000-0000-000000000603",+ "id": "00000000-0000-0000-0000-000000000604",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000585",+ "id": "00000000-0000-0000-0000-000000000586",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000588",+ "id": "00000000-0000-0000-0000-000000000589",},},- "id": "00000000-0000-0000-0000-000000000641",+ "id": "00000000-0000-0000-0000-000000000642","views": {"allOpportunities": {- "id": "00000000-0000-0000-0000-000000000610",+ "id": "00000000-0000-0000-0000-000000000611","viewFieldGroups": {},"viewFields": {"amount": {- "id": "00000000-0000-0000-0000-000000000605",+ "id": "00000000-0000-0000-0000-000000000606",},"closeDate": {- "id": "00000000-0000-0000-0000-000000000607",+ "id": "00000000-0000-0000-0000-000000000608",},"company": {- "id": "00000000-0000-0000-0000-000000000608",+ "id": "00000000-0000-0000-0000-000000000609",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000606",+ "id": "00000000-0000-0000-0000-000000000607",},"name": {- "id": "00000000-0000-0000-0000-000000000604",+ "id": "00000000-0000-0000-0000-000000000605",},"pointOfContact": {- "id": "00000000-0000-0000-0000-000000000609",+ "id": "00000000-0000-0000-0000-000000000610",},},"viewGroups": {},},"byStage": {- "id": "00000000-0000-0000-0000-000000000622",+ "id": "00000000-0000-0000-0000-000000000623","viewFieldGroups": {},"viewFields": {"amount": {- "id": "00000000-0000-0000-0000-000000000612",+ "id": "00000000-0000-0000-0000-000000000613",},"closeDate": {- "id": "00000000-0000-0000-0000-000000000614",+ "id": "00000000-0000-0000-0000-000000000615",},"company": {- "id": "00000000-0000-0000-0000-000000000615",+ "id": "00000000-0000-0000-0000-000000000616",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000613",+ "id": "00000000-0000-0000-0000-000000000614",},"name": {- "id": "00000000-0000-0000-0000-000000000611",+ "id": "00000000-0000-0000-0000-000000000612",},"pointOfContact": {- "id": "00000000-0000-0000-0000-000000000616",+ "id": "00000000-0000-0000-0000-000000000617",},},"viewGroups": {"customer": {- "id": "00000000-0000-0000-0000-000000000621",+ "id": "00000000-0000-0000-0000-000000000622",},"meeting": {- "id": "00000000-0000-0000-0000-000000000619",+ "id": "00000000-0000-0000-0000-000000000620",},"new": {- "id": "00000000-0000-0000-0000-000000000617",+ "id": "00000000-0000-0000-0000-000000000618",},"proposal": {- "id": "00000000-0000-0000-0000-000000000620",+ "id": "00000000-0000-0000-0000-000000000621",},"screening": {- "id": "00000000-0000-0000-0000-000000000618",+ "id": "00000000-0000-0000-0000-000000000619",},},},"opportunityRecordPageFields": {- "id": "00000000-0000-0000-0000-000000000640",+ "id": "00000000-0000-0000-0000-000000000641","viewFieldGroups": {"deal": {- "id": "00000000-0000-0000-0000-000000000637",+ "id": "00000000-0000-0000-0000-000000000638",},"relations": {- "id": "00000000-0000-0000-0000-000000000638",+ "id": "00000000-0000-0000-0000-000000000639",},"system": {- "id": "00000000-0000-0000-0000-000000000639",+ "id": "00000000-0000-0000-0000-000000000640",},},"viewFields": {"amount": {- "id": "00000000-0000-0000-0000-000000000623",+ "id": "00000000-0000-0000-0000-000000000624",},"attachments": {- "id": "00000000-0000-0000-0000-000000000635",+ "id": "00000000-0000-0000-0000-000000000636",},"closeDate": {- "id": "00000000-0000-0000-0000-000000000624",+ "id": "00000000-0000-0000-0000-000000000625",},"company": {- "id": "00000000-0000-0000-0000-000000000626",+ "id": "00000000-0000-0000-0000-000000000627",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000629",+ "id": "00000000-0000-0000-0000-000000000630",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000630",+ "id": "00000000-0000-0000-0000-000000000631",},"noteTargets": {- "id": "00000000-0000-0000-0000-000000000634",+ "id": "00000000-0000-0000-0000-000000000635",},"owner": {- "id": "00000000-0000-0000-0000-000000000628",+ "id": "00000000-0000-0000-0000-000000000629",},"pointOfContact": {- "id": "00000000-0000-0000-0000-000000000627",+ "id": "00000000-0000-0000-0000-000000000628",},"stage": {- "id": "00000000-0000-0000-0000-000000000625",+ "id": "00000000-0000-0000-0000-000000000626",},"taskTargets": {- "id": "00000000-0000-0000-0000-000000000633",+ "id": "00000000-0000-0000-0000-000000000634",},"timelineActivities": {- "id": "00000000-0000-0000-0000-000000000636",+ "id": "00000000-0000-0000-0000-000000000637",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000631",+ "id": "00000000-0000-0000-0000-000000000632",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000632",+ "id": "00000000-0000-0000-0000-000000000633",},},"viewGroups": {},@@ -2514,203 +2520,203 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"person": {"fields": {"attachments": {- "id": "00000000-0000-0000-0000-000000000663",+ "id": "00000000-0000-0000-0000-000000000664",},"avatarFile": {- "id": "00000000-0000-0000-0000-000000000656",+ "id": "00000000-0000-0000-0000-000000000657",},"avatarUrl": {- "id": "00000000-0000-0000-0000-000000000655",+ "id": "00000000-0000-0000-0000-000000000656",},"calendarEventParticipants": {- "id": "00000000-0000-0000-0000-000000000665",+ "id": "00000000-0000-0000-0000-000000000666",},"calendarEventTargets": {- "id": "00000000-0000-0000-0000-000000000661",+ "id": "00000000-0000-0000-0000-000000000662",},"company": {- "id": "00000000-0000-0000-0000-000000000657",+ "id": "00000000-0000-0000-0000-000000000658",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000643",+ "id": "00000000-0000-0000-0000-000000000644",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000646",+ "id": "00000000-0000-0000-0000-000000000647",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000645",+ "id": "00000000-0000-0000-0000-000000000646",},"emails": {- "id": "00000000-0000-0000-0000-000000000651",+ "id": "00000000-0000-0000-0000-000000000652",},"id": {- "id": "00000000-0000-0000-0000-000000000642",+ "id": "00000000-0000-0000-0000-000000000643",},"jobTitle": {- "id": "00000000-0000-0000-0000-000000000653",+ "id": "00000000-0000-0000-0000-000000000654",},"linkedinLink": {- "id": "00000000-0000-0000-0000-000000000652",+ "id": "00000000-0000-0000-0000-000000000653",},"listMemberships": {- "id": "00000000-0000-0000-0000-000000000667",+ "id": "00000000-0000-0000-0000-000000000668",},"messageParticipants": {- "id": "00000000-0000-0000-0000-000000000664",+ "id": "00000000-0000-0000-0000-000000000665",},"messageThreadTargets": {- "id": "00000000-0000-0000-0000-000000000662",+ "id": "00000000-0000-0000-0000-000000000663",},"name": {- "id": "00000000-0000-0000-0000-000000000650",+ "id": "00000000-0000-0000-0000-000000000651",},"noteTargets": {- "id": "00000000-0000-0000-0000-000000000660",+ "id": "00000000-0000-0000-0000-000000000661",},"phones": {- "id": "00000000-0000-0000-0000-000000000654",+ "id": "00000000-0000-0000-0000-000000000655",},"pointOfContactForOpportunities": {- "id": "00000000-0000-0000-0000-000000000658",+ "id": "00000000-0000-0000-0000-000000000659",},"position": {- "id": "00000000-0000-0000-0000-000000000648",+ "id": "00000000-0000-0000-0000-000000000649",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000649",+ "id": "00000000-0000-0000-0000-000000000650",},"taskTargets": {- "id": "00000000-0000-0000-0000-000000000659",+ "id": "00000000-0000-0000-0000-000000000660",},"timelineActivities": {- "id": "00000000-0000-0000-0000-000000000666",+ "id": "00000000-0000-0000-0000-000000000667",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000644",+ "id": "00000000-0000-0000-0000-000000000645",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000647",+ "id": "00000000-0000-0000-0000-000000000648",},},- "id": "00000000-0000-0000-0000-000000000704",+ "id": "00000000-0000-0000-0000-000000000705","views": {"allPeople": {- "id": "00000000-0000-0000-0000-000000000676",+ "id": "00000000-0000-0000-0000-000000000677","viewFieldGroups": {},"viewFields": {"company": {- "id": "00000000-0000-0000-0000-000000000671",+ "id": "00000000-0000-0000-0000-000000000672",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000673",+ "id": "00000000-0000-0000-0000-000000000674",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000670",+ "id": "00000000-0000-0000-0000-000000000671",},"emails": {- "id": "00000000-0000-0000-0000-000000000669",+ "id": "00000000-0000-0000-0000-000000000670",},"jobTitle": {- "id": "00000000-0000-0000-0000-000000000674",+ "id": "00000000-0000-0000-0000-000000000675",},"linkedinLink": {- "id": "00000000-0000-0000-0000-000000000675",+ "id": "00000000-0000-0000-0000-000000000676",},"name": {- "id": "00000000-0000-0000-0000-000000000668",+ "id": "00000000-0000-0000-0000-000000000669",},"phones": {- "id": "00000000-0000-0000-0000-000000000672",+ "id": "00000000-0000-0000-0000-000000000673",},},"viewGroups": {},},"messageListRecordPageMembers": {- "id": "00000000-0000-0000-0000-000000000703",+ "id": "00000000-0000-0000-0000-000000000704","viewFieldGroups": {},"viewFields": {"company": {- "id": "00000000-0000-0000-0000-000000000702",+ "id": "00000000-0000-0000-0000-000000000703",},"emails": {- "id": "00000000-0000-0000-0000-000000000701",+ "id": "00000000-0000-0000-0000-000000000702",},"name": {- "id": "00000000-0000-0000-0000-000000000700",+ "id": "00000000-0000-0000-0000-000000000701",},},"viewGroups": {},},"personRecordPageFields": {- "id": "00000000-0000-0000-0000-000000000699",+ "id": "00000000-0000-0000-0000-000000000700","viewFieldGroups": {"general": {- "id": "00000000-0000-0000-0000-000000000695",+ "id": "00000000-0000-0000-0000-000000000696",},"social": {- "id": "00000000-0000-0000-0000-000000000697",+ "id": "00000000-0000-0000-0000-000000000698",},"system": {- "id": "00000000-0000-0000-0000-000000000698",+ "id": "00000000-0000-0000-0000-000000000699",},"work": {- "id": "00000000-0000-0000-0000-000000000696",+ "id": "00000000-0000-0000-0000-000000000697",},},"viewFields": {"attachments": {- "id": "00000000-0000-0000-0000-000000000691",+ "id": "00000000-0000-0000-0000-000000000692",},"avatarFile": {- "id": "00000000-0000-0000-0000-000000000687",+ "id": "00000000-0000-0000-0000-000000000688",},"avatarUrl": {- "id": "00000000-0000-0000-0000-000000000682",+ "id": "00000000-0000-0000-0000-000000000683",},"calendarEventParticipants": {- "id": "00000000-0000-0000-0000-000000000693",+ "id": "00000000-0000-0000-0000-000000000694",},"company": {- "id": "00000000-0000-0000-0000-000000000679",+ "id": "00000000-0000-0000-0000-000000000680",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000683",+ "id": "00000000-0000-0000-0000-000000000684",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000684",+ "id": "00000000-0000-0000-0000-000000000685",},"emails": {- "id": "00000000-0000-0000-0000-000000000677",+ "id": "00000000-0000-0000-0000-000000000678",},"jobTitle": {- "id": "00000000-0000-0000-0000-000000000680",+ "id": "00000000-0000-0000-0000-000000000681",},"linkedinLink": {- "id": "00000000-0000-0000-0000-000000000681",+ "id": "00000000-0000-0000-0000-000000000682",},"messageParticipants": {- "id": "00000000-0000-0000-0000-000000000692",+ "id": "00000000-0000-0000-0000-000000000693",},"noteTargets": {- "id": "00000000-0000-0000-0000-000000000690",+ "id": "00000000-0000-0000-0000-000000000691",},"phones": {- "id": "00000000-0000-0000-0000-000000000678",+ "id": "00000000-0000-0000-0000-000000000679",},"pointOfContactForOpportunities": {- "id": "00000000-0000-0000-0000-000000000688",+ "id": "00000000-0000-0000-0000-000000000689",},"taskTargets": {- "id": "00000000-0000-0000-0000-000000000689",+ "id": "00000000-0000-0000-0000-000000000690",},"timelineActivities": {- "id": "00000000-0000-0000-0000-000000000694",+ "id": "00000000-0000-0000-0000-000000000695",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000685",+ "id": "00000000-0000-0000-0000-000000000686",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000686",+ "id": "00000000-0000-0000-0000-000000000687",},},"viewGroups": {},@@ -2720,236 +2726,236 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"recordShare": {"fields": {"accessLevel": {- "id": "00000000-0000-0000-0000-000000000717",+ "id": "00000000-0000-0000-0000-000000000718",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000706",+ "id": "00000000-0000-0000-0000-000000000707",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000709",+ "id": "00000000-0000-0000-0000-000000000710",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000708",+ "id": "00000000-0000-0000-0000-000000000709",},"id": {- "id": "00000000-0000-0000-0000-000000000705",+ "id": "00000000-0000-0000-0000-000000000706",},"objectMetadataId": {- "id": "00000000-0000-0000-0000-000000000714",+ "id": "00000000-0000-0000-0000-000000000715",},"position": {- "id": "00000000-0000-0000-0000-000000000711",+ "id": "00000000-0000-0000-0000-000000000712",},"principalId": {- "id": "00000000-0000-0000-0000-000000000715",+ "id": "00000000-0000-0000-0000-000000000716",},"principalType": {- "id": "00000000-0000-0000-0000-000000000716",+ "id": "00000000-0000-0000-0000-000000000717",},"recordId": {- "id": "00000000-0000-0000-0000-000000000713",+ "id": "00000000-0000-0000-0000-000000000714",},"rowCause": {- "id": "00000000-0000-0000-0000-000000000718",+ "id": "00000000-0000-0000-0000-000000000719",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000712",+ "id": "00000000-0000-0000-0000-000000000713",},"sourceId": {- "id": "00000000-0000-0000-0000-000000000719",+ "id": "00000000-0000-0000-0000-000000000720",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000707",+ "id": "00000000-0000-0000-0000-000000000708",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000710",+ "id": "00000000-0000-0000-0000-000000000711",},},- "id": "00000000-0000-0000-0000-000000000720",+ "id": "00000000-0000-0000-0000-000000000721","views": {},},"task": {"fields": {"assignee": {- "id": "00000000-0000-0000-0000-000000000735",+ "id": "00000000-0000-0000-0000-000000000736",},"attachments": {- "id": "00000000-0000-0000-0000-000000000734",+ "id": "00000000-0000-0000-0000-000000000735",},"bodyV2": {- "id": "00000000-0000-0000-0000-000000000730",+ "id": "00000000-0000-0000-0000-000000000731",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000722",+ "id": "00000000-0000-0000-0000-000000000723",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000725",+ "id": "00000000-0000-0000-0000-000000000726",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000724",+ "id": "00000000-0000-0000-0000-000000000725",},"dueAt": {- "id": "00000000-0000-0000-0000-000000000731",+ "id": "00000000-0000-0000-0000-000000000732",},"id": {- "id": "00000000-0000-0000-0000-000000000721",+ "id": "00000000-0000-0000-0000-000000000722",},"position": {- "id": "00000000-0000-0000-0000-000000000727",+ "id": "00000000-0000-0000-0000-000000000728",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000728",+ "id": "00000000-0000-0000-0000-000000000729",},"status": {- "id": "00000000-0000-0000-0000-000000000732",+ "id": "00000000-0000-0000-0000-000000000733",},"taskTargets": {- "id": "00000000-0000-0000-0000-000000000733",+ "id": "00000000-0000-0000-0000-000000000734",},"timelineActivities": {- "id": "00000000-0000-0000-0000-000000000736",+ "id": "00000000-0000-0000-0000-000000000737",},"title": {- "id": "00000000-0000-0000-0000-000000000729",+ "id": "00000000-0000-0000-0000-000000000730",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000723",+ "id": "00000000-0000-0000-0000-000000000724",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000726",+ "id": "00000000-0000-0000-0000-000000000727",},},- "id": "00000000-0000-0000-0000-000000000775",+ "id": "00000000-0000-0000-0000-000000000776","views": {"allTasks": {- "id": "00000000-0000-0000-0000-000000000745",+ "id": "00000000-0000-0000-0000-000000000746","viewFieldGroups": {},"viewFields": {"assignee": {- "id": "00000000-0000-0000-0000-000000000742",+ "id": "00000000-0000-0000-0000-000000000743",},"bodyV2": {- "id": "00000000-0000-0000-0000-000000000743",+ "id": "00000000-0000-0000-0000-000000000744",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000744",+ "id": "00000000-0000-0000-0000-000000000745",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000740",+ "id": "00000000-0000-0000-0000-000000000741",},"dueAt": {- "id": "00000000-0000-0000-0000-000000000741",+ "id": "00000000-0000-0000-0000-000000000742",},"status": {- "id": "00000000-0000-0000-0000-000000000738",+ "id": "00000000-0000-0000-0000-000000000739",},"taskTargets": {- "id": "00000000-0000-0000-0000-000000000739",+ "id": "00000000-0000-0000-0000-000000000740",},"title": {- "id": "00000000-0000-0000-0000-000000000737",+ "id": "00000000-0000-0000-0000-000000000738",},},"viewGroups": {},},"assignedToMe": {- "id": "00000000-0000-0000-0000-000000000757",+ "id": "00000000-0000-0000-0000-000000000758","viewFieldGroups": {},"viewFields": {"assignee": {- "id": "00000000-0000-0000-0000-000000000750",+ "id": "00000000-0000-0000-0000-000000000751",},"bodyV2": {- "id": "00000000-0000-0000-0000-000000000751",+ "id": "00000000-0000-0000-0000-000000000752",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000752",+ "id": "00000000-0000-0000-0000-000000000753",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000748",+ "id": "00000000-0000-0000-0000-000000000749",},"dueAt": {- "id": "00000000-0000-0000-0000-000000000749",+ "id": "00000000-0000-0000-0000-000000000750",},"taskTargets": {- "id": "00000000-0000-0000-0000-000000000747",+ "id": "00000000-0000-0000-0000-000000000748",},"title": {- "id": "00000000-0000-0000-0000-000000000746",+ "id": "00000000-0000-0000-0000-000000000747",},},"viewGroups": {"done": {- "id": "00000000-0000-0000-0000-000000000755",+ "id": "00000000-0000-0000-0000-000000000756",},"empty": {- "id": "00000000-0000-0000-0000-000000000756",+ "id": "00000000-0000-0000-0000-000000000757",},"inProgress": {- "id": "00000000-0000-0000-0000-000000000754",+ "id": "00000000-0000-0000-0000-000000000755",},"todo": {- "id": "00000000-0000-0000-0000-000000000753",+ "id": "00000000-0000-0000-0000-000000000754",},},},"byStatus": {- "id": "00000000-0000-0000-0000-000000000766",+ "id": "00000000-0000-0000-0000-000000000767","viewFieldGroups": {},"viewFields": {"assignee": {- "id": "00000000-0000-0000-0000-000000000761",+ "id": "00000000-0000-0000-0000-000000000762",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000762",+ "id": "00000000-0000-0000-0000-000000000763",},"dueAt": {- "id": "00000000-0000-0000-0000-000000000760",+ "id": "00000000-0000-0000-0000-000000000761",},"status": {- "id": "00000000-0000-0000-0000-000000000759",+ "id": "00000000-0000-0000-0000-000000000760",},"title": {- "id": "00000000-0000-0000-0000-000000000758",+ "id": "00000000-0000-0000-0000-000000000759",},},"viewGroups": {"done": {- "id": "00000000-0000-0000-0000-000000000765",+ "id": "00000000-0000-0000-0000-000000000766",},"inProgress": {- "id": "00000000-0000-0000-0000-000000000764",+ "id": "00000000-0000-0000-0000-000000000765",},"todo": {- "id": "00000000-0000-0000-0000-000000000763",+ "id": "00000000-0000-0000-0000-000000000764",},},},"taskRecordPageFields": {- "id": "00000000-0000-0000-0000-000000000774",+ "id": "00000000-0000-0000-0000-000000000775","viewFieldGroups": {"general": {- "id": "00000000-0000-0000-0000-000000000773",+ "id": "00000000-0000-0000-0000-000000000774",},},"viewFields": {"assignee": {- "id": "00000000-0000-0000-0000-000000000769",+ "id": "00000000-0000-0000-0000-000000000770",},"attachments": {- "id": "00000000-0000-0000-0000-000000000771",+ "id": "00000000-0000-0000-0000-000000000772",},"dueAt": {- "id": "00000000-0000-0000-0000-000000000767",+ "id": "00000000-0000-0000-0000-000000000768",},"status": {- "id": "00000000-0000-0000-0000-000000000768",+ "id": "00000000-0000-0000-0000-000000000769",},"taskTargets": {- "id": "00000000-0000-0000-0000-000000000770",+ "id": "00000000-0000-0000-0000-000000000771",},"timelineActivities": {- "id": "00000000-0000-0000-0000-000000000772",+ "id": "00000000-0000-0000-0000-000000000773",},},"viewGroups": {},@@ -2959,62 +2965,62 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"taskTarget": {"fields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000777",+ "id": "00000000-0000-0000-0000-000000000778",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000780",+ "id": "00000000-0000-0000-0000-000000000781",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000779",+ "id": "00000000-0000-0000-0000-000000000780",},"id": {- "id": "00000000-0000-0000-0000-000000000776",+ "id": "00000000-0000-0000-0000-000000000777",},"position": {- "id": "00000000-0000-0000-0000-000000000782",+ "id": "00000000-0000-0000-0000-000000000783",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000783",+ "id": "00000000-0000-0000-0000-000000000784",},"targetCompany": {- "id": "00000000-0000-0000-0000-000000000786",+ "id": "00000000-0000-0000-0000-000000000787",},"targetOpportunity": {- "id": "00000000-0000-0000-0000-000000000787",+ "id": "00000000-0000-0000-0000-000000000788",},"targetPerson": {- "id": "00000000-0000-0000-0000-000000000785",+ "id": "00000000-0000-0000-0000-000000000786",},"task": {- "id": "00000000-0000-0000-0000-000000000784",+ "id": "00000000-0000-0000-0000-000000000785",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000778",+ "id": "00000000-0000-0000-0000-000000000779",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000781",+ "id": "00000000-0000-0000-0000-000000000782",},},- "id": "00000000-0000-0000-0000-000000000794",+ "id": "00000000-0000-0000-0000-000000000795","views": {"allTaskTargets": {- "id": "00000000-0000-0000-0000-000000000793",+ "id": "00000000-0000-0000-0000-000000000794","viewFieldGroups": {},"viewFields": {"id": {- "id": "00000000-0000-0000-0000-000000000788",+ "id": "00000000-0000-0000-0000-000000000789",},"targetCompany": {- "id": "00000000-0000-0000-0000-000000000791",+ "id": "00000000-0000-0000-0000-000000000792",},"targetOpportunity": {- "id": "00000000-0000-0000-0000-000000000792",+ "id": "00000000-0000-0000-0000-000000000793",},"targetPerson": {- "id": "00000000-0000-0000-0000-000000000790",+ "id": "00000000-0000-0000-0000-000000000791",},"task": {- "id": "00000000-0000-0000-0000-000000000789",+ "id": "00000000-0000-0000-0000-000000000790",},},"viewGroups": {},@@ -3024,128 +3030,128 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"timelineActivity": {"fields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000796",+ "id": "00000000-0000-0000-0000-000000000797",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000799",+ "id": "00000000-0000-0000-0000-000000000800",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000798",+ "id": "00000000-0000-0000-0000-000000000799",},"happensAt": {- "id": "00000000-0000-0000-0000-000000000805",+ "id": "00000000-0000-0000-0000-000000000806",},"id": {- "id": "00000000-0000-0000-0000-000000000795",+ "id": "00000000-0000-0000-0000-000000000796",},"linkedObjectMetadataId": {- "id": "00000000-0000-0000-0000-000000000821",+ "id": "00000000-0000-0000-0000-000000000822",},"linkedRecordCachedName": {- "id": "00000000-0000-0000-0000-000000000819",+ "id": "00000000-0000-0000-0000-000000000820",},"linkedRecordId": {- "id": "00000000-0000-0000-0000-000000000820",+ "id": "00000000-0000-0000-0000-000000000821",},"position": {- "id": "00000000-0000-0000-0000-000000000801",+ "id": "00000000-0000-0000-0000-000000000802",},"properties": {- "id": "00000000-0000-0000-0000-000000000806",+ "id": "00000000-0000-0000-0000-000000000807",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000802",+ "id": "00000000-0000-0000-0000-000000000803",},"targetCompany": {- "id": "00000000-0000-0000-0000-000000000809",+ "id": "00000000-0000-0000-0000-000000000810",},"targetDashboard": {- "id": "00000000-0000-0000-0000-000000000816",+ "id": "00000000-0000-0000-0000-000000000817",},"targetMessageCampaign": {- "id": "00000000-0000-0000-0000-000000000818",+ "id": "00000000-0000-0000-0000-000000000819",},"targetMessageList": {- "id": "00000000-0000-0000-0000-000000000817",+ "id": "00000000-0000-0000-0000-000000000818",},"targetNote": {- "id": "00000000-0000-0000-0000-000000000812",+ "id": "00000000-0000-0000-0000-000000000813",},"targetOpportunity": {- "id": "00000000-0000-0000-0000-000000000810",+ "id": "00000000-0000-0000-0000-000000000811",},"targetPerson": {- "id": "00000000-0000-0000-0000-000000000808",+ "id": "00000000-0000-0000-0000-000000000809",},"targetTask": {- "id": "00000000-0000-0000-0000-000000000811",+ "id": "00000000-0000-0000-0000-000000000812",},"targetWorkflow": {- "id": "00000000-0000-0000-0000-000000000813",+ "id": "00000000-0000-0000-0000-000000000814",},"targetWorkflowRun": {- "id": "00000000-0000-0000-0000-000000000815",+ "id": "00000000-0000-0000-0000-000000000816",},"targetWorkflowVersion": {- "id": "00000000-0000-0000-0000-000000000814",+ "id": "00000000-0000-0000-0000-000000000815",},"timelineActivityTypeId": {- "id": "00000000-0000-0000-0000-000000000803",+ "id": "00000000-0000-0000-0000-000000000804",},"timelineActivityTypeSnapshot": {- "id": "00000000-0000-0000-0000-000000000804",+ "id": "00000000-0000-0000-0000-000000000805",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000797",+ "id": "00000000-0000-0000-0000-000000000798",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000800",+ "id": "00000000-0000-0000-0000-000000000801",},"workspaceMember": {- "id": "00000000-0000-0000-0000-000000000807",+ "id": "00000000-0000-0000-0000-000000000808",},},- "id": "00000000-0000-0000-0000-000000000835",+ "id": "00000000-0000-0000-0000-000000000836","views": {"allTimelineActivities": {- "id": "00000000-0000-0000-0000-000000000834",+ "id": "00000000-0000-0000-0000-000000000835","viewFieldGroups": {},"viewFields": {"happensAt": {- "id": "00000000-0000-0000-0000-000000000823",+ "id": "00000000-0000-0000-0000-000000000824",},"linkedRecordCachedName": {- "id": "00000000-0000-0000-0000-000000000822",+ "id": "00000000-0000-0000-0000-000000000823",},"targetCompany": {- "id": "00000000-0000-0000-0000-000000000826",+ "id": "00000000-0000-0000-0000-000000000827",},"targetDashboard": {- "id": "00000000-0000-0000-0000-000000000833",+ "id": "00000000-0000-0000-0000-000000000834",},"targetNote": {- "id": "00000000-0000-0000-0000-000000000829",+ "id": "00000000-0000-0000-0000-000000000830",},"targetOpportunity": {- "id": "00000000-0000-0000-0000-000000000827",+ "id": "00000000-0000-0000-0000-000000000828",},"targetPerson": {- "id": "00000000-0000-0000-0000-000000000825",+ "id": "00000000-0000-0000-0000-000000000826",},"targetTask": {- "id": "00000000-0000-0000-0000-000000000828",+ "id": "00000000-0000-0000-0000-000000000829",},"targetWorkflow": {- "id": "00000000-0000-0000-0000-000000000830",+ "id": "00000000-0000-0000-0000-000000000831",},"targetWorkflowRun": {- "id": "00000000-0000-0000-0000-000000000832",+ "id": "00000000-0000-0000-0000-000000000833",},"targetWorkflowVersion": {- "id": "00000000-0000-0000-0000-000000000831",+ "id": "00000000-0000-0000-0000-000000000832",},"workspaceMember": {- "id": "00000000-0000-0000-0000-000000000824",+ "id": "00000000-0000-0000-0000-000000000825",},},"viewGroups": {},@@ -3155,80 +3161,80 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"workflow": {"fields": {"attachments": {- "id": "00000000-0000-0000-0000-000000000852",+ "id": "00000000-0000-0000-0000-000000000853",},"automatedTriggers": {- "id": "00000000-0000-0000-0000-000000000850",+ "id": "00000000-0000-0000-0000-000000000851",},"coreWorkflowId": {- "id": "00000000-0000-0000-0000-000000000846",+ "id": "00000000-0000-0000-0000-000000000847",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000837",+ "id": "00000000-0000-0000-0000-000000000838",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000840",+ "id": "00000000-0000-0000-0000-000000000841",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000839",+ "id": "00000000-0000-0000-0000-000000000840",},"id": {- "id": "00000000-0000-0000-0000-000000000836",+ "id": "00000000-0000-0000-0000-000000000837",},"lastPublishedVersionId": {- "id": "00000000-0000-0000-0000-000000000845",+ "id": "00000000-0000-0000-0000-000000000846",},"name": {- "id": "00000000-0000-0000-0000-000000000844",+ "id": "00000000-0000-0000-0000-000000000845",},"position": {- "id": "00000000-0000-0000-0000-000000000842",+ "id": "00000000-0000-0000-0000-000000000843",},"runs": {- "id": "00000000-0000-0000-0000-000000000849",+ "id": "00000000-0000-0000-0000-000000000850",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000843",+ "id": "00000000-0000-0000-0000-000000000844",},"statuses": {- "id": "00000000-0000-0000-0000-000000000847",+ "id": "00000000-0000-0000-0000-000000000848",},"timelineActivities": {- "id": "00000000-0000-0000-0000-000000000851",+ "id": "00000000-0000-0000-0000-000000000852",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000838",+ "id": "00000000-0000-0000-0000-000000000839",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000841",+ "id": "00000000-0000-0000-0000-000000000842",},"versions": {- "id": "00000000-0000-0000-0000-000000000848",+ "id": "00000000-0000-0000-0000-000000000849",},},- "id": "00000000-0000-0000-0000-000000000860",+ "id": "00000000-0000-0000-0000-000000000861","views": {"allWorkflows": {- "id": "00000000-0000-0000-0000-000000000859",+ "id": "00000000-0000-0000-0000-000000000860","viewFieldGroups": {},"viewFields": {"createdBy": {- "id": "00000000-0000-0000-0000-000000000856",+ "id": "00000000-0000-0000-0000-000000000857",},"name": {- "id": "00000000-0000-0000-0000-000000000853",+ "id": "00000000-0000-0000-0000-000000000854",},"runs": {- "id": "00000000-0000-0000-0000-000000000858",+ "id": "00000000-0000-0000-0000-000000000859",},"statuses": {- "id": "00000000-0000-0000-0000-000000000854",+ "id": "00000000-0000-0000-0000-000000000855",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000855",+ "id": "00000000-0000-0000-0000-000000000856",},"versions": {- "id": "00000000-0000-0000-0000-000000000857",+ "id": "00000000-0000-0000-0000-000000000858",},},"viewGroups": {},@@ -3238,79 +3244,79 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"workflowAutomatedTrigger": {"fields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000862",+ "id": "00000000-0000-0000-0000-000000000863",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000865",+ "id": "00000000-0000-0000-0000-000000000866",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000864",+ "id": "00000000-0000-0000-0000-000000000865",},"id": {- "id": "00000000-0000-0000-0000-000000000861",+ "id": "00000000-0000-0000-0000-000000000862",},"position": {- "id": "00000000-0000-0000-0000-000000000867",+ "id": "00000000-0000-0000-0000-000000000868",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000868",+ "id": "00000000-0000-0000-0000-000000000869",},"settings": {- "id": "00000000-0000-0000-0000-000000000870",+ "id": "00000000-0000-0000-0000-000000000871",},"type": {- "id": "00000000-0000-0000-0000-000000000869",+ "id": "00000000-0000-0000-0000-000000000870",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000863",+ "id": "00000000-0000-0000-0000-000000000864",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000866",+ "id": "00000000-0000-0000-0000-000000000867",},"workflow": {- "id": "00000000-0000-0000-0000-000000000871",+ "id": "00000000-0000-0000-0000-000000000872",},},- "id": "00000000-0000-0000-0000-000000000883",+ "id": "00000000-0000-0000-0000-000000000884","views": {"allWorkflowAutomatedTriggers": {- "id": "00000000-0000-0000-0000-000000000875",+ "id": "00000000-0000-0000-0000-000000000876","viewFieldGroups": {},"viewFields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000874",+ "id": "00000000-0000-0000-0000-000000000875",},"type": {- "id": "00000000-0000-0000-0000-000000000872",+ "id": "00000000-0000-0000-0000-000000000873",},"workflow": {- "id": "00000000-0000-0000-0000-000000000873",+ "id": "00000000-0000-0000-0000-000000000874",},},"viewGroups": {},},"workflowAutomatedTriggerRecordPageFields": {- "id": "00000000-0000-0000-0000-000000000882",+ "id": "00000000-0000-0000-0000-000000000883","viewFieldGroups": {"general": {- "id": "00000000-0000-0000-0000-000000000880",+ "id": "00000000-0000-0000-0000-000000000881",},"system": {- "id": "00000000-0000-0000-0000-000000000881",+ "id": "00000000-0000-0000-0000-000000000882",},},"viewFields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000878",+ "id": "00000000-0000-0000-0000-000000000879",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000879",+ "id": "00000000-0000-0000-0000-000000000880",},"type": {- "id": "00000000-0000-0000-0000-000000000876",+ "id": "00000000-0000-0000-0000-000000000877",},"workflow": {- "id": "00000000-0000-0000-0000-000000000877",+ "id": "00000000-0000-0000-0000-000000000878",},},"viewGroups": {},@@ -3320,130 +3326,130 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"workflowRun": {"fields": {"coreWorkflowId": {- "id": "00000000-0000-0000-0000-000000000901",+ "id": "00000000-0000-0000-0000-000000000902",},"coreWorkflowVersionId": {- "id": "00000000-0000-0000-0000-000000000902",+ "id": "00000000-0000-0000-0000-000000000903",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000885",+ "id": "00000000-0000-0000-0000-000000000886",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000888",+ "id": "00000000-0000-0000-0000-000000000889",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000887",+ "id": "00000000-0000-0000-0000-000000000888",},"endedAt": {- "id": "00000000-0000-0000-0000-000000000897",+ "id": "00000000-0000-0000-0000-000000000898",},"enqueuedAt": {- "id": "00000000-0000-0000-0000-000000000895",+ "id": "00000000-0000-0000-0000-000000000896",},"id": {- "id": "00000000-0000-0000-0000-000000000884",+ "id": "00000000-0000-0000-0000-000000000885",},"name": {- "id": "00000000-0000-0000-0000-000000000892",+ "id": "00000000-0000-0000-0000-000000000893",},"position": {- "id": "00000000-0000-0000-0000-000000000890",+ "id": "00000000-0000-0000-0000-000000000891",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000891",+ "id": "00000000-0000-0000-0000-000000000892",},"startedAt": {- "id": "00000000-0000-0000-0000-000000000896",+ "id": "00000000-0000-0000-0000-000000000897",},"state": {- "id": "00000000-0000-0000-0000-000000000899",+ "id": "00000000-0000-0000-0000-000000000900",},"status": {- "id": "00000000-0000-0000-0000-000000000898",+ "id": "00000000-0000-0000-0000-000000000899",},"stepLogs": {- "id": "00000000-0000-0000-0000-000000000900",+ "id": "00000000-0000-0000-0000-000000000901",},"timelineActivities": {- "id": "00000000-0000-0000-0000-000000000903",+ "id": "00000000-0000-0000-0000-000000000904",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000886",+ "id": "00000000-0000-0000-0000-000000000887",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000889",+ "id": "00000000-0000-0000-0000-000000000890",},"workflow": {- "id": "00000000-0000-0000-0000-000000000894",+ "id": "00000000-0000-0000-0000-000000000895",},"workflowVersion": {- "id": "00000000-0000-0000-0000-000000000893",+ "id": "00000000-0000-0000-0000-000000000894",},},- "id": "00000000-0000-0000-0000-000000000923",+ "id": "00000000-0000-0000-0000-000000000924","views": {"allWorkflowRuns": {- "id": "00000000-0000-0000-0000-000000000907",+ "id": "00000000-0000-0000-0000-000000000908","viewFieldGroups": {},"viewFields": {"name": {- "id": "00000000-0000-0000-0000-000000000904",+ "id": "00000000-0000-0000-0000-000000000905",},"status": {- "id": "00000000-0000-0000-0000-000000000906",+ "id": "00000000-0000-0000-0000-000000000907",},"workflow": {- "id": "00000000-0000-0000-0000-000000000905",+ "id": "00000000-0000-0000-0000-000000000906",},},"viewGroups": {},},"workflowRunRecordPageFields": {- "id": "00000000-0000-0000-0000-000000000922",+ "id": "00000000-0000-0000-0000-000000000923","viewFieldGroups": {"general": {- "id": "00000000-0000-0000-0000-000000000920",+ "id": "00000000-0000-0000-0000-000000000921",},"system": {- "id": "00000000-0000-0000-0000-000000000921",+ "id": "00000000-0000-0000-0000-000000000922",},},"viewFields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000913",+ "id": "00000000-0000-0000-0000-000000000914",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000914",+ "id": "00000000-0000-0000-0000-000000000915",},"endedAt": {- "id": "00000000-0000-0000-0000-000000000912",+ "id": "00000000-0000-0000-0000-000000000913",},"enqueuedAt": {- "id": "00000000-0000-0000-0000-000000000915",+ "id": "00000000-0000-0000-0000-000000000916",},"startedAt": {- "id": "00000000-0000-0000-0000-000000000911",+ "id": "00000000-0000-0000-0000-000000000912",},"state": {- "id": "00000000-0000-0000-0000-000000000916",+ "id": "00000000-0000-0000-0000-000000000917",},"status": {- "id": "00000000-0000-0000-0000-000000000908",+ "id": "00000000-0000-0000-0000-000000000909",},"timelineActivities": {- "id": "00000000-0000-0000-0000-000000000919",+ "id": "00000000-0000-0000-0000-000000000920",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000917",+ "id": "00000000-0000-0000-0000-000000000918",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000918",+ "id": "00000000-0000-0000-0000-000000000919",},"workflow": {- "id": "00000000-0000-0000-0000-000000000909",+ "id": "00000000-0000-0000-0000-000000000910",},"workflowVersion": {- "id": "00000000-0000-0000-0000-000000000910",+ "id": "00000000-0000-0000-0000-000000000911",},},"viewGroups": {},@@ -3453,118 +3459,118 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"workflowVersion": {"fields": {"coreWorkflowVersionId": {- "id": "00000000-0000-0000-0000-000000000938",+ "id": "00000000-0000-0000-0000-000000000939",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000925",+ "id": "00000000-0000-0000-0000-000000000926",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000928",+ "id": "00000000-0000-0000-0000-000000000929",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000927",+ "id": "00000000-0000-0000-0000-000000000928",},"id": {- "id": "00000000-0000-0000-0000-000000000924",+ "id": "00000000-0000-0000-0000-000000000925",},"name": {- "id": "00000000-0000-0000-0000-000000000932",+ "id": "00000000-0000-0000-0000-000000000933",},"position": {- "id": "00000000-0000-0000-0000-000000000930",+ "id": "00000000-0000-0000-0000-000000000931",},"runs": {- "id": "00000000-0000-0000-0000-000000000936",+ "id": "00000000-0000-0000-0000-000000000937",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000931",+ "id": "00000000-0000-0000-0000-000000000932",},"status": {- "id": "00000000-0000-0000-0000-000000000935",+ "id": "00000000-0000-0000-0000-000000000936",},"steps": {- "id": "00000000-0000-0000-0000-000000000937",+ "id": "00000000-0000-0000-0000-000000000938",},"timelineActivities": {- "id": "00000000-0000-0000-0000-000000000939",+ "id": "00000000-0000-0000-0000-000000000940",},"trigger": {- "id": "00000000-0000-0000-0000-000000000934",+ "id": "00000000-0000-0000-0000-000000000935",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000926",+ "id": "00000000-0000-0000-0000-000000000927",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000929",+ "id": "00000000-0000-0000-0000-000000000930",},"workflow": {- "id": "00000000-0000-0000-0000-000000000933",+ "id": "00000000-0000-0000-0000-000000000934",},},- "id": "00000000-0000-0000-0000-000000000959",+ "id": "00000000-0000-0000-0000-000000000960","views": {"allWorkflowVersions": {- "id": "00000000-0000-0000-0000-000000000945",+ "id": "00000000-0000-0000-0000-000000000946","viewFieldGroups": {},"viewFields": {"name": {- "id": "00000000-0000-0000-0000-000000000940",+ "id": "00000000-0000-0000-0000-000000000941",},"runs": {- "id": "00000000-0000-0000-0000-000000000944",+ "id": "00000000-0000-0000-0000-000000000945",},"status": {- "id": "00000000-0000-0000-0000-000000000942",+ "id": "00000000-0000-0000-0000-000000000943",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000943",+ "id": "00000000-0000-0000-0000-000000000944",},"workflow": {- "id": "00000000-0000-0000-0000-000000000941",+ "id": "00000000-0000-0000-0000-000000000942",},},"viewGroups": {},},"workflowVersionRecordPageFields": {- "id": "00000000-0000-0000-0000-000000000958",+ "id": "00000000-0000-0000-0000-000000000959","viewFieldGroups": {"general": {- "id": "00000000-0000-0000-0000-000000000956",+ "id": "00000000-0000-0000-0000-000000000957",},"system": {- "id": "00000000-0000-0000-0000-000000000957",+ "id": "00000000-0000-0000-0000-000000000958",},},"viewFields": {"createdAt": {- "id": "00000000-0000-0000-0000-000000000949",+ "id": "00000000-0000-0000-0000-000000000950",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000951",+ "id": "00000000-0000-0000-0000-000000000952",},"runs": {- "id": "00000000-0000-0000-0000-000000000954",+ "id": "00000000-0000-0000-0000-000000000955",},"status": {- "id": "00000000-0000-0000-0000-000000000946",+ "id": "00000000-0000-0000-0000-000000000947",},"steps": {- "id": "00000000-0000-0000-0000-000000000950",+ "id": "00000000-0000-0000-0000-000000000951",},"timelineActivities": {- "id": "00000000-0000-0000-0000-000000000955",+ "id": "00000000-0000-0000-0000-000000000956",},"trigger": {- "id": "00000000-0000-0000-0000-000000000948",+ "id": "00000000-0000-0000-0000-000000000949",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000952",+ "id": "00000000-0000-0000-0000-000000000953",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000953",+ "id": "00000000-0000-0000-0000-000000000954",},"workflow": {- "id": "00000000-0000-0000-0000-000000000947",+ "id": "00000000-0000-0000-0000-000000000948",},},"viewGroups": {},@@ -3574,110 +3580,110 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object"workspaceMember": {"fields": {"accountOwnerForCompanies": {- "id": "00000000-0000-0000-0000-000000000979",+ "id": "00000000-0000-0000-0000-000000000980",},"assignedTasks": {- "id": "00000000-0000-0000-0000-000000000977",+ "id": "00000000-0000-0000-0000-000000000978",},"avatarUrl": {- "id": "00000000-0000-0000-0000-000000000973",+ "id": "00000000-0000-0000-0000-000000000974",},"blocklist": {- "id": "00000000-0000-0000-0000-000000000981",+ "id": "00000000-0000-0000-0000-000000000982",},"calendarEventParticipants": {- "id": "00000000-0000-0000-0000-000000000982",+ "id": "00000000-0000-0000-0000-000000000983",},"calendarStartDay": {- "id": "00000000-0000-0000-0000-000000000987",+ "id": "00000000-0000-0000-0000-000000000988",},"colorScheme": {- "id": "00000000-0000-0000-0000-000000000969",+ "id": "00000000-0000-0000-0000-000000000970",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000961",+ "id": "00000000-0000-0000-0000-000000000962",},"createdBy": {- "id": "00000000-0000-0000-0000-000000000964",+ "id": "00000000-0000-0000-0000-000000000965",},"dateFormat": {- "id": "00000000-0000-0000-0000-000000000985",+ "id": "00000000-0000-0000-0000-000000000986",},"deletedAt": {- "id": "00000000-0000-0000-0000-000000000963",+ "id": "00000000-0000-0000-0000-000000000964",},"id": {- "id": "00000000-0000-0000-0000-000000000960",+ "id": "00000000-0000-0000-0000-000000000961",},"jobTitle": {- "id": "00000000-0000-0000-0000-000000000975",+ "id": "00000000-0000-0000-0000-000000000976",},"locale": {- "id": "00000000-0000-0000-0000-000000000972",+ "id": "00000000-0000-0000-0000-000000000973",},"messageParticipants": {- "id": "00000000-0000-0000-0000-000000000980",+ "id": "00000000-0000-0000-0000-000000000981",},"name": {- "id": "00000000-0000-0000-0000-000000000968",+ "id": "00000000-0000-0000-0000-000000000969",},"numberFormat": {- "id": "00000000-0000-0000-0000-000000000988",+ "id": "00000000-0000-0000-0000-000000000989",},"openRecordIn": {- "id": "00000000-0000-0000-0000-000000000971",+ "id": "00000000-0000-0000-0000-000000000972",},"ownedOpportunities": {- "id": "00000000-0000-0000-0000-000000000978",+ "id": "00000000-0000-0000-0000-000000000979",},"position": {- "id": "00000000-0000-0000-0000-000000000966",+ "id": "00000000-0000-0000-0000-000000000967",},"searchVector": {- "id": "00000000-0000-0000-0000-000000000967",+ "id": "00000000-0000-0000-0000-000000000968",},"timeFormat": {- "id": "00000000-0000-0000-0000-000000000986",+ "id": "00000000-0000-0000-0000-000000000987",},"timeZone": {- "id": "00000000-0000-0000-0000-000000000984",+ "id": "00000000-0000-0000-0000-000000000985",},"timelineActivities": {- "id": "00000000-0000-0000-0000-000000000983",+ "id": "00000000-0000-0000-0000-000000000984",},"uiScale": {- "id": "00000000-0000-0000-0000-000000000970",+ "id": "00000000-0000-0000-0000-000000000971",},"updatedAt": {- "id": "00000000-0000-0000-0000-000000000962",+ "id": "00000000-0000-0000-0000-000000000963",},"updatedBy": {- "id": "00000000-0000-0000-0000-000000000965",+ "id": "00000000-0000-0000-0000-000000000966",},"userEmail": {- "id": "00000000-0000-0000-0000-000000000974",+ "id": "00000000-0000-0000-0000-000000000975",},"userId": {- "id": "00000000-0000-0000-0000-000000000976",+ "id": "00000000-0000-0000-0000-000000000977",},},- "id": "00000000-0000-0000-0000-000000000994",+ "id": "00000000-0000-0000-0000-000000000995","views": {"allWorkspaceMembers": {- "id": "00000000-0000-0000-0000-000000000993",+ "id": "00000000-0000-0000-0000-000000000994","viewFieldGroups": {},"viewFields": {"assignedTasks": {- "id": "00000000-0000-0000-0000-000000000992",+ "id": "00000000-0000-0000-0000-000000000993",},"createdAt": {- "id": "00000000-0000-0000-0000-000000000990",+ "id": "00000000-0000-0000-0000-000000000991",},"name": {- "id": "00000000-0000-0000-0000-000000000989",+ "id": "00000000-0000-0000-0000-000000000990",},"ownedOpportunities": {- "id": "00000000-0000-0000-0000-000000000991",+ "id": "00000000-0000-0000-0000-000000000992",},},"viewGroups": {},diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/standard-object-readability.spec.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/standard-object-readability.spec.tsindex 086b6ec7890..adbee6cff05 100644--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/standard-object-readability.spec.ts+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/standard-object-readability.spec.ts@@ -111,6 +111,7 @@ describe('Standard object readability', () => {expect(parentJoinColumnNames).toEqual([+ 'targetAgentChatThreadId','targetCompanyId','targetDashboardId','targetNoteId',@@ -122,6 +123,24 @@ describe('Standard object readability', () => {);});+ it('resolves the agent chat thread as the parent of a chat attachment', () => {+ expect(+ resolveParents('attachment').map((parent) =>+ parent.kind === 'column'+ ? {+ joinColumnName: parent.joinColumnName,+ parentNameSingular: parent.parentFlatObjectMetadata.nameSingular,+ parentReadability: parent.parentFlatObjectMetadata.readability,+ }+ : parent.kind,+ ),+ ).toContainEqual({+ joinColumnName: 'targetAgentChatThreadId',+ parentNameSingular: 'agentChatThread',+ parentReadability: MetadataReadability.PRIVATE,+ });+ });+it('resolves every target of a noteTarget as its parent, not the note', () => {const parents = resolveParents('noteTarget').map((parent) =>parent.kind === 'column'diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-chat-thread-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-chat-thread-standard-flat-field-metadata.util.tsindex 1689eef8ead..cccdb49f3a0 100644--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-chat-thread-standard-flat-field-metadata.util.ts+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-chat-thread-standard-flat-field-metadata.util.ts@@ -5,6 +5,7 @@ import {MetadataWritability,RelationType,} from 'twenty-shared/types';+import { STANDARD_RELATION_FIELD_PROPERTIES_BY_RELATION_OBJECT } from 'src/engine/metadata-modules/object-metadata/constants/standard-relation-field-properties.constant';import { type FlatFieldMetadata } from 'src/engine/metadata-modules/flat-field-metadata/types/flat-field-metadata.type';import {type CreateStandardFieldArgs,@@ -524,4 +525,36 @@ export const buildAgentChatThreadStandardFlatFieldMetadatas = (writability: MetadataWritability.SYSTEM,isAuditLogged: false,},+ attachments: {+ ...createStandardRelationFieldFlatMetadata({+ ...args,+ context: {+ fieldName: 'attachments',+ type: FieldMetadataType.RELATION,+ label: i18nLabel(+ STANDARD_RELATION_FIELD_PROPERTIES_BY_RELATION_OBJECT.attachment+ .label,+ ),+ description: i18nLabel(+ msg({+ message: 'Attachments linked to the chat thread',+ context: 'fieldMetadata.description',+ }),+ ),+ icon: STANDARD_RELATION_FIELD_PROPERTIES_BY_RELATION_OBJECT.attachment+ .icon,+ isUIEditable: false,+ isNullable: true,+ isSystemSideEffect: true,+ targetObjectName: 'attachment',+ targetFieldName: 'targetAgentChatThread',+ morphId: null,+ settings: {+ relationType: RelationType.ONE_TO_MANY,+ },+ },+ }),+ writability: MetadataWritability.SYSTEM,+ isAuditLogged: false,+ },});diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-attachment-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-attachment-standard-flat-field-metadata.util.tsindex 7f7b9a6b266..a6c7967b52b 100644--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-attachment-standard-flat-field-metadata.util.ts+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-attachment-standard-flat-field-metadata.util.ts@@ -650,4 +650,37 @@ export const buildAttachmentStandardFlatFieldMetadatas = ({twentyStandardApplicationId,now,}),+ targetAgentChatThread: createStandardRelationFieldFlatMetadata({+ objectName,+ workspaceId,+ context: {+ type: FieldMetadataType.MORPH_RELATION,+ morphId: STANDARD_OBJECTS.attachment.morphIds.targetMorphId.morphId,+ fieldName: 'targetAgentChatThread',+ label: i18nLabel(+ msg({ message: `Attached to`, context: 'fieldMetadata.label' }),+ ),+ description: i18nLabel(+ msg({+ message: `Attachment target`,+ context: 'fieldMetadata.description',+ }),+ ),+ icon: 'IconFileImport',+ isNullable: true,+ isUIEditable: false,+ isSystemSideEffect: true,+ targetObjectName: 'agentChatThread',+ targetFieldName: 'attachments',+ settings: {+ relationType: RelationType.MANY_TO_ONE,+ onDelete: RelationOnDeleteAction.CASCADE,+ joinColumnName: 'targetAgentChatThreadId',+ },+ },+ standardObjectMetadataRelatedEntityIds,+ dependencyFlatEntityMaps,+ twentyStandardApplicationId,+ now,+ }),});diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/compute-attachment-standard-flat-index-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/compute-attachment-standard-flat-index-metadata.util.tsindex 121504fa4f3..a15480fc639 100644--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/compute-attachment-standard-flat-index-metadata.util.ts+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/compute-attachment-standard-flat-index-metadata.util.ts@@ -100,4 +100,16 @@ export const buildAttachmentStandardFlatIndexMetadatas = ({twentyStandardApplicationId,now,}),+ agentChatThreadIdIndex: createStandardIndexFlatMetadata({+ objectName,+ workspaceId,+ context: {+ indexName: 'agentChatThreadIdIndex',+ relatedFieldNames: ['targetAgentChatThread'],+ },+ standardObjectMetadataRelatedEntityIds,+ dependencyFlatEntityMaps,+ twentyStandardApplicationId,+ now,+ }),});diff --git a/packages/twenty-server/src/modules/attachment/standard-objects/attachment.workspace-entity.ts b/packages/twenty-server/src/modules/attachment/standard-objects/attachment.workspace-entity.tsindex 94017b7c646..08eeba0459c 100644--- a/packages/twenty-server/src/modules/attachment/standard-objects/attachment.workspace-entity.ts+++ b/packages/twenty-server/src/modules/attachment/standard-objects/attachment.workspace-entity.ts@@ -1,6 +1,7 @@import { type ActorMetadata } from 'twenty-shared/types';import { type FileOutput } from 'src/engine/api/common/common-args-processors/data-arg-processor/types/file-item.type';+import { type AgentChatThreadWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-chat-thread.workspace-entity';import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity';import { type CustomWorkspaceEntity } from 'src/engine/twenty-orm/custom.workspace-entity';import { type EntityRelation } from 'src/engine/workspace-manager/workspace-migration/types/entity-relation.interface';@@ -42,5 +43,7 @@ export class AttachmentWorkspaceEntity extends BaseWorkspaceEntity {targetDashboardId: string | null;targetWorkflow: EntityRelation<WorkflowWorkspaceEntity> | null;targetWorkflowId: string | null;+ targetAgentChatThread: EntityRelation<AgentChatThreadWorkspaceEntity> | null;+ targetAgentChatThreadId: string | null;custom: EntityRelation<CustomWorkspaceEntity>;}diff --git a/packages/twenty-server/test/integration/upgrade/suites/2-42-workspace-command-1789914239896-migrate-agent-history-to-workspace.integration-spec.ts b/packages/twenty-server/test/integration/upgrade/suites/2-42-workspace-command-1789914239896-migrate-agent-history-to-workspace.integration-spec.tsindex e132f415fce..84331ff9ce7 100644--- a/packages/twenty-server/test/integration/upgrade/suites/2-42-workspace-command-1789914239896-migrate-agent-history-to-workspace.integration-spec.ts+++ b/packages/twenty-server/test/integration/upgrade/suites/2-42-workspace-command-1789914239896-migrate-agent-history-to-workspace.integration-spec.ts@@ -1,4 +1,5 @@import { randomUUID } from 'node:crypto';+import { STANDARD_OBJECTS } from 'twenty-shared/metadata';import { getAppProviderByClassName } from 'test/integration/utils/get-app-provider-by-class-name.util';import { getCoreRepository } from 'test/integration/utils/get-core-repository.util';@@ -96,6 +97,19 @@ describe('versioned agent history upgrade (integration)', () => {for (const { name } of [...AGENT_HISTORY_TABLES].reverse()) {await dataSource.query(`DROP TABLE "${SCHEMA}"."${name}" CASCADE`);}+ // Pre-upgrade workspaces have no attachment side of the chat thread+ // relation either; the object deletion above only cascades its metadata.+ await dataSource.query(+ 'DELETE FROM core."indexMetadata" WHERE "workspaceId" = $1 AND "universalIdentifier" = $2',+ [+ WORKSPACE_ID,+ STANDARD_OBJECTS.attachment.indexes.agentChatThreadIdIndex+ .universalIdentifier,+ ],+ );+ await dataSource.query(+ `ALTER TABLE "${SCHEMA}"."attachment" DROP COLUMN IF EXISTS "targetAgentChatThreadId"`,+ );await dataSource.query('DELETE FROM core."keyValuePair" WHERE "workspaceId" = $1 AND key = $2',[WORKSPACE_ID, AGENT_HISTORY_STORAGE_KEY],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.snapindex 80fc4acd182..53e6741a18c 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@@ -10,6 +10,9 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e"archivedAt": {"universalIdentifier": "b42eaf6f-240f-41ef-af61-51d5ac9cde7d",},+ "attachments": {+ "universalIdentifier": "2a0e0b57-e55b-5432-9ec1-04a43f4cd8b8",+ },"contextWindowTokens": {"universalIdentifier": "c58dc0b0-bd0e-4ee2-8a80-615a2d8fc7c8",},@@ -324,6 +327,9 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e"searchVector": {"universalIdentifier": "e3222f8c-aad5-5873-9a10-648908f48f81",},+ "targetAgentChatThread": {+ "universalIdentifier": "5beddb5d-6e18-5e7b-be55-de88e47fc337",+ },"targetCompany": {"universalIdentifier": "a69093bb-6f2a-5ad6-90b1-0d78e9528019",},@@ -353,6 +359,9 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e},},"indexes": {+ "agentChatThreadIdIndex": {+ "universalIdentifier": "69857371-6ff9-48fa-a9de-db4f71593431",+ },"companyIdIndex": {"universalIdentifier": "4137ba06-184d-438f-b484-080f02a97659",},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.tsindex dfb3ef93549..2a3bfee5a0b 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@@ -65,6 +65,16 @@ export const STANDARD_OBJECT_FIELDS = {},turns: { universalIdentifier: 'd5c88fbc-d318-4ee1-b70a-751a925bef5b' },messages: { universalIdentifier: '5c851a60-e5d9-4b1e-9926-c2eab6fc9e62' },+ attachments: {+ universalIdentifier: getSystemRelationFieldUniversalIdentifier({+ applicationUniversalIdentifier:+ TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,+ objectUniversalIdentifier:+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.agentChatThread,+ relationTargetObjectUniversalIdentifier:+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.attachment,+ }),+ },},agentTurn: {...buildStandardObjectBaseFields(@@ -433,6 +443,16 @@ export const STANDARD_OBJECT_FIELDS = {STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.workflow,}),},+ targetAgentChatThread: {+ universalIdentifier: getSystemRelationFieldUniversalIdentifier({+ applicationUniversalIdentifier:+ TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,+ objectUniversalIdentifier:+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.attachment,+ relationTargetObjectUniversalIdentifier:+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.agentChatThread,+ }),+ },},blocklist: {...buildStandardObjectSystemFields(diff --git a/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts b/packages/twenty-shared/src/metadata/constants/standard-object.constant.tsindex d34fc88d6dd..d87d5a7a38d 100644--- a/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts+++ b/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts@@ -48,6 +48,9 @@ export const STANDARD_OBJECTS = {workflowIdIndex: {universalIdentifier: 'fadeab4b-79ee-4173-af79-72c51fbad888',},+ agentChatThreadIdIndex: {+ universalIdentifier: '69857371-6ff9-48fa-a9de-db4f71593431',+ },},views: {allAttachments: buildStandardObjectIndexView({