diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/1-20/1-20-backfill-field-widgets.command.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/1-20/1-20-backfill-field-widgets.command.ts deleted file mode 100644 index a8741e4dd6..0000000000 --- a/packages/twenty-server/src/database/commands/upgrade-version-command/1-20/1-20-backfill-field-widgets.command.ts +++ /dev/null @@ -1,431 +0,0 @@ -import { InjectRepository } from '@nestjs/typeorm'; - -import { Command } from 'nest-commander'; -import { - CoreObjectNameSingular, - FieldMetadataType, - PageLayoutTabLayoutMode, -} from 'twenty-shared/types'; -import { isDefined } from 'twenty-shared/utils'; -import { Repository } from 'typeorm'; -import { v4 } from 'uuid'; - -import { ActiveOrSuspendedWorkspacesMigrationCommandRunner } from 'src/database/commands/command-runners/active-or-suspended-workspaces-migration.command-runner'; -import { RunOnWorkspaceArgs } from 'src/database/commands/command-runners/workspaces-migration.command-runner'; -import { ApplicationService } from 'src/engine/core-modules/application/application.service'; -import { type FlatApplication } from 'src/engine/core-modules/application/types/flat-application.type'; -import { WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity'; -import { DataSourceService } from 'src/engine/metadata-modules/data-source/data-source.service'; -import { type FlatFieldMetadata } from 'src/engine/metadata-modules/flat-field-metadata/types/flat-field-metadata.type'; -import { type FlatObjectMetadata } from 'src/engine/metadata-modules/flat-object-metadata/types/flat-object-metadata.type'; -import { type FlatPageLayoutWidget } from 'src/engine/metadata-modules/flat-page-layout-widget/types/flat-page-layout-widget.type'; -import { FieldDisplayMode } from 'src/engine/metadata-modules/page-layout-widget/enums/field-display-mode.enum'; -import { WidgetConfigurationType } from 'src/engine/metadata-modules/page-layout-widget/enums/widget-configuration-type.type'; -import { WidgetType } from 'src/engine/metadata-modules/page-layout-widget/enums/widget-type.enum'; -import { PageLayoutType } from 'src/engine/metadata-modules/page-layout/enums/page-layout-type.enum'; -import { GlobalWorkspaceOrmManager } from 'src/engine/twenty-orm/global-workspace-datasource/global-workspace-orm.manager'; -import { WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service'; -import { - GRID_POSITIONS, - VERTICAL_LIST_LAYOUT_POSITIONS, -} from 'src/engine/workspace-manager/twenty-standard-application/constants/standard-page-layout-tabs.template'; -import { WorkspaceMigrationValidateBuildAndRunService } from 'src/engine/workspace-manager/workspace-migration/services/workspace-migration-validate-build-and-run-service'; - -const HOME_TAB_POSITION = 10; - -const isActivityTargetField = ( - fieldName: string, - objectNameSingular: string, -): boolean => - (objectNameSingular === CoreObjectNameSingular.Note && - fieldName === 'noteTargets') || - (objectNameSingular === CoreObjectNameSingular.Task && - fieldName === 'taskTargets'); - -const isJunctionRelationField = (field: FlatFieldMetadata): boolean => { - const settings = field.settings as - | { junctionTargetFieldId?: string } - | undefined; - - return ( - isDefined(settings?.junctionTargetFieldId) && - typeof settings?.junctionTargetFieldId === 'string' && - settings.junctionTargetFieldId.length > 0 - ); -}; - -const isRelationTargetAvailable = ( - targetObject: FlatObjectMetadata | undefined, -): boolean => { - if (!isDefined(targetObject)) { - return false; - } - - if (targetObject.isRemote) { - return false; - } - - if ( - targetObject.isSystem && - targetObject.nameSingular !== CoreObjectNameSingular.WorkspaceMember - ) { - return false; - } - - return true; -}; - -@Command({ - name: 'upgrade:1-20:backfill-field-widgets', - description: - 'Backfill FIELD widgets for relation fields in existing page layouts', -}) -export class BackfillFieldWidgetsCommand extends ActiveOrSuspendedWorkspacesMigrationCommandRunner { - constructor( - @InjectRepository(WorkspaceEntity) - protected readonly workspaceRepository: Repository, - protected readonly twentyORMGlobalManager: GlobalWorkspaceOrmManager, - protected readonly dataSourceService: DataSourceService, - private readonly applicationService: ApplicationService, - private readonly workspaceMigrationValidateBuildAndRunService: WorkspaceMigrationValidateBuildAndRunService, - private readonly workspaceCacheService: WorkspaceCacheService, - ) { - super(workspaceRepository, twentyORMGlobalManager, dataSourceService); - } - - override async runOnWorkspace({ - workspaceId, - options, - }: RunOnWorkspaceArgs): Promise { - const isDryRun = options.dryRun ?? false; - - this.logger.log( - `${isDryRun ? '[DRY RUN] ' : ''}Starting backfill of FIELD widgets for workspace ${workspaceId}`, - ); - - const { twentyStandardFlatApplication, workspaceCustomFlatApplication } = - await this.applicationService.findWorkspaceTwentyStandardAndCustomApplicationOrThrow( - { workspaceId }, - ); - - const { - flatObjectMetadataMaps, - flatFieldMetadataMaps, - flatPageLayoutMaps, - flatPageLayoutTabMaps, - flatPageLayoutWidgetMaps, - } = await this.workspaceCacheService.getOrRecompute(workspaceId, [ - 'flatObjectMetadataMaps', - 'flatFieldMetadataMaps', - 'flatPageLayoutMaps', - 'flatPageLayoutTabMaps', - 'flatPageLayoutWidgetMaps', - ]); - - // Build a set of fieldMetadataIds that already have a FIELD widget - const existingFieldWidgetFieldIds = new Set(); - - for (const widget of Object.values( - flatPageLayoutWidgetMaps.byUniversalIdentifier, - )) { - if ( - isDefined(widget) && - widget.configuration?.configurationType === - WidgetConfigurationType.FIELD && - isDefined(widget.configuration.fieldMetadataId) - ) { - existingFieldWidgetFieldIds.add(widget.configuration.fieldMetadataId); - } - } - - // Build object ID → objectMetadata map - const objectById = new Map(); - - for (const obj of Object.values( - flatObjectMetadataMaps.byUniversalIdentifier, - )) { - if (isDefined(obj)) { - objectById.set(obj.id, obj); - } - } - - // Build object ID → RECORD_PAGE layout map - const recordPageLayoutByObjectId = new Map< - string, - { id: string; universalIdentifier: string } - >(); - - for (const layout of Object.values( - flatPageLayoutMaps.byUniversalIdentifier, - )) { - if ( - isDefined(layout) && - layout.type === PageLayoutType.RECORD_PAGE && - isDefined(layout.objectMetadataId) - ) { - recordPageLayoutByObjectId.set(layout.objectMetadataId, { - id: layout.id, - universalIdentifier: layout.universalIdentifier, - }); - } - } - - // Build pageLayoutId → home tab map - const homeTabByPageLayoutId = new Map< - string, - { - id: string; - universalIdentifier: string; - widgetCount: number; - } - >(); - - for (const tab of Object.values( - flatPageLayoutTabMaps.byUniversalIdentifier, - )) { - if ( - isDefined(tab) && - tab.position === HOME_TAB_POSITION && - tab.layoutMode === PageLayoutTabLayoutMode.VERTICAL_LIST - ) { - homeTabByPageLayoutId.set(tab.pageLayoutId, { - id: tab.id, - universalIdentifier: tab.universalIdentifier, - widgetCount: tab.widgetIds?.length ?? 0, - }); - } - } - - // Group fields by objectMetadataId - const fieldsByObjectId = new Map(); - - // Map morphId → all field IDs sharing that morphId (for dedup) - const fieldIdsByMorphId = new Map(); - - for (const field of Object.values( - flatFieldMetadataMaps.byUniversalIdentifier, - )) { - if (!isDefined(field) || !isDefined(field.objectMetadataId)) { - continue; - } - - const list = fieldsByObjectId.get(field.objectMetadataId) ?? []; - - list.push(field); - fieldsByObjectId.set(field.objectMetadataId, list); - - if ( - field.type === FieldMetadataType.MORPH_RELATION && - isDefined(field.morphId) - ) { - const morphFieldIds = fieldIdsByMorphId.get(field.morphId) ?? []; - - morphFieldIds.push(field.id); - fieldIdsByMorphId.set(field.morphId, morphFieldIds); - } - } - - const now = new Date().toISOString(); - - const standardWidgetsToCreate: FlatPageLayoutWidget[] = []; - const customWidgetsToCreate: FlatPageLayoutWidget[] = []; - const processedMorphIds = new Set(); - - for (const object of objectById.values()) { - const pageLayout = recordPageLayoutByObjectId.get(object.id); - - if (!isDefined(pageLayout)) { - continue; - } - - const homeTab = homeTabByPageLayoutId.get(pageLayout.id); - - if (!isDefined(homeTab)) { - continue; - } - - const flatApplication: FlatApplication = object.isCustom - ? workspaceCustomFlatApplication - : twentyStandardFlatApplication; - - const targetList: FlatPageLayoutWidget[] = object.isCustom - ? customWidgetsToCreate - : standardWidgetsToCreate; - - const fields = fieldsByObjectId.get(object.id) ?? []; - let nextWidgetIndex = homeTab.widgetCount; - - for (const field of fields) { - if ( - field.type !== FieldMetadataType.RELATION && - field.type !== FieldMetadataType.MORPH_RELATION - ) { - continue; - } - - if (isActivityTargetField(field.name, object.nameSingular)) { - continue; - } - - if (isJunctionRelationField(field)) { - continue; - } - - if (field.type === FieldMetadataType.RELATION) { - const targetObject = isDefined(field.relationTargetObjectMetadataId) - ? objectById.get(field.relationTargetObjectMetadataId) - : undefined; - - if (!isRelationTargetAvailable(targetObject)) { - continue; - } - } - - // For morph relations, skip if any sibling field (same morphId) - // already has a widget or was already processed in this run - if ( - field.type === FieldMetadataType.MORPH_RELATION && - isDefined(field.morphId) - ) { - if (processedMorphIds.has(field.morphId)) { - continue; - } - - const siblingFieldIds = fieldIdsByMorphId.get(field.morphId) ?? []; - const alreadyHasWidget = siblingFieldIds.some((id) => - existingFieldWidgetFieldIds.has(id), - ); - - if (alreadyHasWidget) { - continue; - } - - processedMorphIds.add(field.morphId); - } - - if (existingFieldWidgetFieldIds.has(field.id)) { - continue; - } - - const widget: FlatPageLayoutWidget = { - id: v4(), - universalIdentifier: v4(), - applicationId: flatApplication.id, - applicationUniversalIdentifier: flatApplication.universalIdentifier, - workspaceId, - pageLayoutTabId: homeTab.id, - pageLayoutTabUniversalIdentifier: homeTab.universalIdentifier, - title: field.label, - type: WidgetType.FIELD, - gridPosition: { ...GRID_POSITIONS.FULL_WIDTH }, - position: { - ...VERTICAL_LIST_LAYOUT_POSITIONS.SECOND, - index: nextWidgetIndex, - }, - configuration: { - configurationType: WidgetConfigurationType.FIELD, - fieldMetadataId: field.id, - fieldDisplayMode: FieldDisplayMode.CARD, - }, - universalConfiguration: { - configurationType: WidgetConfigurationType.FIELD, - fieldMetadataId: field.universalIdentifier, - fieldDisplayMode: FieldDisplayMode.CARD, - }, - objectMetadataId: object.id, - objectMetadataUniversalIdentifier: object.universalIdentifier, - createdAt: now, - updatedAt: now, - deletedAt: null, - conditionalDisplay: null, - overrides: null, - }; - - targetList.push(widget); - existingFieldWidgetFieldIds.add(field.id); - nextWidgetIndex++; - } - } - - const totalWidgets = - standardWidgetsToCreate.length + customWidgetsToCreate.length; - - if (totalWidgets === 0) { - this.logger.log( - `All FIELD widgets already exist for workspace ${workspaceId}, skipping`, - ); - - return; - } - - this.logger.log( - `Found ${totalWidgets} FIELD widget(s) to create for workspace ${workspaceId} (${standardWidgetsToCreate.length} standard, ${customWidgetsToCreate.length} custom)`, - ); - - if (isDryRun) { - this.logger.log( - `[DRY RUN] Would create ${totalWidgets} FIELD widget(s) for workspace ${workspaceId}`, - ); - - return; - } - - if (standardWidgetsToCreate.length > 0) { - const result = - await this.workspaceMigrationValidateBuildAndRunService.validateBuildAndRunWorkspaceMigration( - { - allFlatEntityOperationByMetadataName: { - pageLayoutWidget: { - flatEntityToCreate: standardWidgetsToCreate, - flatEntityToDelete: [], - flatEntityToUpdate: [], - }, - }, - workspaceId, - applicationUniversalIdentifier: - twentyStandardFlatApplication.universalIdentifier, - }, - ); - - if (result.status === 'fail') { - this.logger.error( - `Failed to create standard FIELD widgets:\n${JSON.stringify(result, null, 2)}`, - ); - throw new Error( - `Failed to create standard FIELD widgets for workspace ${workspaceId}`, - ); - } - } - - if (customWidgetsToCreate.length > 0) { - const result = - await this.workspaceMigrationValidateBuildAndRunService.validateBuildAndRunWorkspaceMigration( - { - allFlatEntityOperationByMetadataName: { - pageLayoutWidget: { - flatEntityToCreate: customWidgetsToCreate, - flatEntityToDelete: [], - flatEntityToUpdate: [], - }, - }, - workspaceId, - applicationUniversalIdentifier: - workspaceCustomFlatApplication.universalIdentifier, - }, - ); - - if (result.status === 'fail') { - this.logger.error( - `Failed to create custom FIELD widgets:\n${JSON.stringify(result, null, 2)}`, - ); - throw new Error( - `Failed to create custom FIELD widgets for workspace ${workspaceId}`, - ); - } - } - - this.logger.log( - `Successfully created ${totalWidgets} FIELD widget(s) for workspace ${workspaceId}`, - ); - } -} diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/1-20/1-20-backfill-page-layouts-and-fields-widget-view-fields.command.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/1-20/1-20-backfill-page-layouts-and-fields-widget-view-fields.command.ts new file mode 100644 index 0000000000..5df704676e --- /dev/null +++ b/packages/twenty-server/src/database/commands/upgrade-version-command/1-20/1-20-backfill-page-layouts-and-fields-widget-view-fields.command.ts @@ -0,0 +1,868 @@ +import { InjectRepository } from '@nestjs/typeorm'; + +import { Command } from 'nest-commander'; +import { + CoreObjectNameSingular, + FeatureFlagKey, + FieldMetadataType, + PageLayoutTabLayoutMode, + ViewType, +} from 'twenty-shared/types'; +import { isDefined } from 'twenty-shared/utils'; +import { Repository } from 'typeorm'; +import { v4 } from 'uuid'; + +import { ActiveOrSuspendedWorkspacesMigrationCommandRunner } from 'src/database/commands/command-runners/active-or-suspended-workspaces-migration.command-runner'; +import { RunOnWorkspaceArgs } from 'src/database/commands/command-runners/workspaces-migration.command-runner'; +import { ApplicationService } from 'src/engine/core-modules/application/application.service'; +import { type FlatApplication } from 'src/engine/core-modules/application/types/flat-application.type'; +import { FeatureFlagService } from 'src/engine/core-modules/feature-flag/services/feature-flag.service'; +import { WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity'; +import { DataSourceService } from 'src/engine/metadata-modules/data-source/data-source.service'; +import { type FlatFieldMetadata } from 'src/engine/metadata-modules/flat-field-metadata/types/flat-field-metadata.type'; +import { type FlatObjectMetadata } from 'src/engine/metadata-modules/flat-object-metadata/types/flat-object-metadata.type'; +import { type FlatPageLayoutTab } from 'src/engine/metadata-modules/flat-page-layout-tab/types/flat-page-layout-tab.type'; +import { type FlatPageLayoutWidget } from 'src/engine/metadata-modules/flat-page-layout-widget/types/flat-page-layout-widget.type'; +import { type FlatPageLayout } from 'src/engine/metadata-modules/flat-page-layout/types/flat-page-layout.type'; +import { computeFlatDefaultRecordPageLayoutToCreate } from 'src/engine/metadata-modules/object-metadata/utils/compute-flat-default-record-page-layout-to-create.util'; +import { computeFlatRecordPageFieldsViewToCreate } from 'src/engine/metadata-modules/object-metadata/utils/compute-flat-record-page-fields-view-to-create.util'; +import { computeFlatViewFieldsToCreate } from 'src/engine/metadata-modules/object-metadata/utils/compute-flat-view-fields-to-create.util'; +import { FieldDisplayMode } from 'src/engine/metadata-modules/page-layout-widget/enums/field-display-mode.enum'; +import { WidgetConfigurationType } from 'src/engine/metadata-modules/page-layout-widget/enums/widget-configuration-type.type'; +import { WidgetType } from 'src/engine/metadata-modules/page-layout-widget/enums/widget-type.enum'; +import { PageLayoutType } from 'src/engine/metadata-modules/page-layout/enums/page-layout-type.enum'; +import { GlobalWorkspaceOrmManager } from 'src/engine/twenty-orm/global-workspace-datasource/global-workspace-orm.manager'; +import { WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service'; +import { + GRID_POSITIONS, + VERTICAL_LIST_LAYOUT_POSITIONS, +} from 'src/engine/workspace-manager/twenty-standard-application/constants/standard-page-layout-tabs.template'; +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'; +import { type UniversalFlatViewField } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-view-field.type'; +import { type UniversalFlatView } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-view.type'; + +const HOME_TAB_POSITION = 10; + +const isActivityTargetField = ( + fieldName: string, + objectNameSingular: string, +): boolean => + (objectNameSingular === CoreObjectNameSingular.Note && + fieldName === 'noteTargets') || + (objectNameSingular === CoreObjectNameSingular.Task && + fieldName === 'taskTargets'); + +const isJunctionRelationField = (field: FlatFieldMetadata): boolean => { + const settings = field.settings as + | { junctionTargetFieldId?: string } + | undefined; + + return ( + isDefined(settings?.junctionTargetFieldId) && + typeof settings?.junctionTargetFieldId === 'string' && + settings.junctionTargetFieldId.length > 0 + ); +}; + +const isRelationTargetAvailable = ( + targetObject: FlatObjectMetadata | undefined, +): boolean => { + if (!isDefined(targetObject)) { + return false; + } + + if (targetObject.isRemote) { + return false; + } + + if ( + targetObject.isSystem && + targetObject.nameSingular !== CoreObjectNameSingular.WorkspaceMember + ) { + return false; + } + + return true; +}; + +@Command({ + name: 'upgrade:1-20:backfill-page-layouts-and-fields-widget-view-fields', + description: + 'Backfill RECORD_PAGE page layouts, sync FIELDS_WIDGET view fields, create FIELD widgets, and enable IS_RECORD_PAGE_LAYOUT_EDITING_ENABLED', +}) +export class BackfillPageLayoutsAndFieldsWidgetViewFieldsCommand extends ActiveOrSuspendedWorkspacesMigrationCommandRunner { + constructor( + @InjectRepository(WorkspaceEntity) + protected readonly workspaceRepository: Repository, + protected readonly twentyORMGlobalManager: GlobalWorkspaceOrmManager, + protected readonly dataSourceService: DataSourceService, + private readonly applicationService: ApplicationService, + private readonly workspaceMigrationValidateBuildAndRunService: WorkspaceMigrationValidateBuildAndRunService, + private readonly featureFlagService: FeatureFlagService, + private readonly workspaceCacheService: WorkspaceCacheService, + ) { + super(workspaceRepository, twentyORMGlobalManager, dataSourceService); + } + + override async runOnWorkspace({ + workspaceId, + options, + }: RunOnWorkspaceArgs): Promise { + const isDryRun = options.dryRun ?? false; + + this.logger.log( + `${isDryRun ? '[DRY RUN] ' : ''}Starting backfill of page layouts and field widgets for workspace ${workspaceId}`, + ); + + const isAlreadyEnabled = await this.featureFlagService.isFeatureEnabled( + FeatureFlagKey.IS_RECORD_PAGE_LAYOUT_EDITING_ENABLED, + workspaceId, + ); + + if (isAlreadyEnabled) { + this.logger.log( + `IS_RECORD_PAGE_LAYOUT_EDITING_ENABLED already enabled for workspace ${workspaceId}, skipping`, + ); + + return; + } + + if (isDryRun) { + this.logger.log( + `[DRY RUN] Would create page layouts, sync view fields, create FIELD widgets and enable IS_RECORD_PAGE_LAYOUT_EDITING_ENABLED for workspace ${workspaceId}`, + ); + + return; + } + + const { twentyStandardFlatApplication, workspaceCustomFlatApplication } = + await this.applicationService.findWorkspaceTwentyStandardAndCustomApplicationOrThrow( + { workspaceId }, + ); + + await this.backfillStandardPageLayoutsAndSyncViews({ + workspaceId, + twentyStandardFlatApplication, + }); + + await this.backfillCustomObjectPageLayouts({ + workspaceId, + workspaceCustomFlatApplication, + }); + + await this.backfillFieldWidgets({ + workspaceId, + twentyStandardFlatApplication, + workspaceCustomFlatApplication, + }); + + await this.featureFlagService.enableFeatureFlags( + [FeatureFlagKey.IS_RECORD_PAGE_LAYOUT_EDITING_ENABLED], + workspaceId, + ); + + this.logger.log( + `Successfully backfilled page layouts and field widgets for workspace ${workspaceId}`, + ); + } + + private async backfillStandardPageLayoutsAndSyncViews({ + workspaceId, + twentyStandardFlatApplication, + }: { + workspaceId: string; + twentyStandardFlatApplication: FlatApplication; + }): Promise { + const { allFlatEntityMaps: standardAllFlatEntityMaps } = + computeTwentyStandardApplicationAllFlatEntityMaps({ + shouldIncludeRecordPageLayouts: true, + now: new Date().toISOString(), + workspaceId, + twentyStandardApplicationId: twentyStandardFlatApplication.id, + }); + + const recordPageLayoutUniversalIdentifiers = new Set(); + + const recordPageLayoutsFromStandard = Object.values( + standardAllFlatEntityMaps.flatPageLayoutMaps.byUniversalIdentifier, + ) + .filter(isDefined) + .filter((pageLayout) => { + if (pageLayout.type !== PageLayoutType.RECORD_PAGE) { + return false; + } + + recordPageLayoutUniversalIdentifiers.add( + pageLayout.universalIdentifier, + ); + + return true; + }); + + const tabUniversalIdentifiers = new Set(); + + const tabsFromStandard = Object.values( + standardAllFlatEntityMaps.flatPageLayoutTabMaps.byUniversalIdentifier, + ) + .filter(isDefined) + .filter((tab) => { + if ( + !recordPageLayoutUniversalIdentifiers.has( + tab.pageLayoutUniversalIdentifier, + ) + ) { + return false; + } + + tabUniversalIdentifiers.add(tab.universalIdentifier); + + return true; + }); + + const widgetsFromStandard = Object.values( + standardAllFlatEntityMaps.flatPageLayoutWidgetMaps.byUniversalIdentifier, + ) + .filter(isDefined) + .filter((widget) => + tabUniversalIdentifiers.has(widget.pageLayoutTabUniversalIdentifier), + ); + + const { + flatPageLayoutMaps: existingFlatPageLayoutMaps, + flatPageLayoutTabMaps: existingFlatPageLayoutTabMaps, + flatPageLayoutWidgetMaps: existingFlatPageLayoutWidgetMaps, + flatViewMaps: existingFlatViewMaps, + flatViewFieldMaps: existingFlatViewFieldMaps, + flatViewFieldGroupMaps: existingFlatViewFieldGroupMaps, + } = await this.workspaceCacheService.getOrRecompute(workspaceId, [ + 'flatPageLayoutMaps', + 'flatPageLayoutTabMaps', + 'flatPageLayoutWidgetMaps', + 'flatViewMaps', + 'flatViewFieldMaps', + 'flatViewFieldGroupMaps', + ]); + + // Filter out page layouts, tabs, and widgets that already exist in the workspace + const pageLayoutsToCreate = recordPageLayoutsFromStandard.filter( + (pageLayout) => + !isDefined( + existingFlatPageLayoutMaps.byUniversalIdentifier[ + pageLayout.universalIdentifier + ], + ), + ); + + const pageLayoutTabsToCreate = tabsFromStandard.filter( + (tab) => + !isDefined( + existingFlatPageLayoutTabMaps.byUniversalIdentifier[ + tab.universalIdentifier + ], + ), + ); + + const pageLayoutWidgetsToCreate = widgetsFromStandard.filter( + (widget) => + !isDefined( + existingFlatPageLayoutWidgetMaps.byUniversalIdentifier[ + widget.universalIdentifier + ], + ), + ); + + // Collect all standard FIELDS_WIDGET view universal identifiers + // This includes both new views to create AND existing views (created by 1-19) + const allStandardFieldsWidgetViewUniversalIds = new Set(); + + const viewsToCreate = Object.values( + standardAllFlatEntityMaps.flatViewMaps.byUniversalIdentifier, + ) + .filter(isDefined) + .filter((view) => { + if (view.type !== ViewType.FIELDS_WIDGET) { + return false; + } + + allStandardFieldsWidgetViewUniversalIds.add(view.universalIdentifier); + + if ( + isDefined( + existingFlatViewMaps.byUniversalIdentifier[ + view.universalIdentifier + ], + ) + ) { + return false; + } + + return true; + }); + + // Delete all existing viewFields for standard FIELDS_WIDGET views and recreate from current standard. + // This ensures positions, visibility, and groups match the current standard definition. + const viewFieldsToDelete = Object.values( + existingFlatViewFieldMaps.byUniversalIdentifier, + ) + .filter(isDefined) + .filter((viewField) => + allStandardFieldsWidgetViewUniversalIds.has( + viewField.viewUniversalIdentifier, + ), + ); + + const viewFieldsToCreate = Object.values( + standardAllFlatEntityMaps.flatViewFieldMaps.byUniversalIdentifier, + ) + .filter(isDefined) + .filter((viewField) => + allStandardFieldsWidgetViewUniversalIds.has( + viewField.viewUniversalIdentifier, + ), + ); + + // Same delete-and-recreate approach for viewFieldGroups + const viewFieldGroupsToDelete = Object.values( + existingFlatViewFieldGroupMaps.byUniversalIdentifier, + ) + .filter(isDefined) + .filter((viewFieldGroup) => + allStandardFieldsWidgetViewUniversalIds.has( + viewFieldGroup.viewUniversalIdentifier, + ), + ); + + const viewFieldGroupsToCreate = Object.values( + standardAllFlatEntityMaps.flatViewFieldGroupMaps.byUniversalIdentifier, + ) + .filter(isDefined) + .filter((viewFieldGroup) => + allStandardFieldsWidgetViewUniversalIds.has( + viewFieldGroup.viewUniversalIdentifier, + ), + ); + + this.logger.log( + `Creating ${pageLayoutsToCreate.length} page layouts, ${viewsToCreate.length} views, deleting ${viewFieldsToDelete.length} and creating ${viewFieldsToCreate.length} view fields, deleting ${viewFieldGroupsToDelete.length} and creating ${viewFieldGroupsToCreate.length} view field groups for workspace ${workspaceId}`, + ); + + const validateAndBuildResult = + await this.workspaceMigrationValidateBuildAndRunService.validateBuildAndRunWorkspaceMigration( + { + allFlatEntityOperationByMetadataName: { + pageLayout: { + flatEntityToCreate: pageLayoutsToCreate, + flatEntityToDelete: [], + flatEntityToUpdate: [], + }, + pageLayoutTab: { + flatEntityToCreate: pageLayoutTabsToCreate, + flatEntityToDelete: [], + flatEntityToUpdate: [], + }, + pageLayoutWidget: { + flatEntityToCreate: pageLayoutWidgetsToCreate, + flatEntityToDelete: [], + flatEntityToUpdate: [], + }, + view: { + flatEntityToCreate: viewsToCreate, + flatEntityToDelete: [], + flatEntityToUpdate: [], + }, + viewField: { + flatEntityToCreate: viewFieldsToCreate, + flatEntityToDelete: viewFieldsToDelete, + flatEntityToUpdate: [], + }, + viewFieldGroup: { + flatEntityToCreate: viewFieldGroupsToCreate, + flatEntityToDelete: viewFieldGroupsToDelete, + flatEntityToUpdate: [], + }, + }, + workspaceId, + applicationUniversalIdentifier: + twentyStandardFlatApplication.universalIdentifier, + }, + ); + + if (validateAndBuildResult.status === 'fail') { + this.logger.error( + `Failed to create standard page layouts and sync view fields:\n${JSON.stringify(validateAndBuildResult, null, 2)}`, + ); + throw new Error( + `Failed to create standard page layouts and sync view fields for workspace ${workspaceId}`, + ); + } + } + + private async backfillCustomObjectPageLayouts({ + workspaceId, + workspaceCustomFlatApplication, + }: { + workspaceId: string; + workspaceCustomFlatApplication: FlatApplication; + }): Promise { + const { + flatObjectMetadataMaps, + flatFieldMetadataMaps, + flatPageLayoutMaps, + } = await this.workspaceCacheService.getOrRecompute(workspaceId, [ + 'flatObjectMetadataMaps', + 'flatFieldMetadataMaps', + 'flatPageLayoutMaps', + ]); + + const existingPageLayouts = Object.values( + flatPageLayoutMaps.byUniversalIdentifier, + ).filter(isDefined); + + const objectIdsWithRecordPageLayout = new Set( + existingPageLayouts + .filter( + (layout: FlatPageLayout) => + layout.type === PageLayoutType.RECORD_PAGE && + isDefined(layout.objectMetadataId), + ) + .map((layout: FlatPageLayout) => layout.objectMetadataId), + ); + + const customObjectsWithoutPageLayout = Object.values( + flatObjectMetadataMaps.byUniversalIdentifier, + ) + .filter(isDefined) + .filter( + (objectMetadata) => + objectMetadata.isCustom && + !objectMetadata.isRemote && + !objectIdsWithRecordPageLayout.has(objectMetadata.id), + ); + + if (customObjectsWithoutPageLayout.length === 0) { + this.logger.log( + `No custom objects without page layouts found for workspace ${workspaceId}`, + ); + + return; + } + + this.logger.log( + `Creating page layouts for ${customObjectsWithoutPageLayout.length} custom object(s) in workspace ${workspaceId}`, + ); + + const allCustomPageLayoutsToCreate: FlatPageLayout[] = []; + const allCustomPageLayoutTabsToCreate: FlatPageLayoutTab[] = []; + const allCustomPageLayoutWidgetsToCreate: FlatPageLayoutWidget[] = []; + const allCustomViewsToCreate: (UniversalFlatView & { id: string })[] = []; + const allCustomViewFieldsToCreate: UniversalFlatViewField[] = []; + + for (const customObject of customObjectsWithoutPageLayout) { + const flatRecordPageFieldsView = computeFlatRecordPageFieldsViewToCreate({ + objectMetadata: customObject, + flatApplication: workspaceCustomFlatApplication, + }); + + const objectFieldMetadatas = Object.values( + flatFieldMetadataMaps.byUniversalIdentifier, + ) + .filter(isDefined) + .filter((field) => field.objectMetadataId === customObject.id); + + const viewFields = computeFlatViewFieldsToCreate({ + objectFlatFieldMetadatas: objectFieldMetadatas, + viewUniversalIdentifier: flatRecordPageFieldsView.universalIdentifier, + flatApplication: workspaceCustomFlatApplication, + labelIdentifierFieldMetadataUniversalIdentifier: + customObject.labelIdentifierFieldMetadataUniversalIdentifier, + excludeLabelIdentifier: true, + }); + + const { pageLayouts, pageLayoutTabs, pageLayoutWidgets } = + computeFlatDefaultRecordPageLayoutToCreate({ + objectMetadata: customObject, + flatApplication: workspaceCustomFlatApplication, + recordPageFieldsView: flatRecordPageFieldsView, + workspaceId, + }); + + allCustomPageLayoutsToCreate.push(...pageLayouts); + allCustomPageLayoutTabsToCreate.push(...pageLayoutTabs); + allCustomPageLayoutWidgetsToCreate.push(...pageLayoutWidgets); + allCustomViewsToCreate.push(flatRecordPageFieldsView); + allCustomViewFieldsToCreate.push(...viewFields); + } + + const customValidateAndBuildResult = + await this.workspaceMigrationValidateBuildAndRunService.validateBuildAndRunWorkspaceMigration( + { + allFlatEntityOperationByMetadataName: { + pageLayout: { + flatEntityToCreate: allCustomPageLayoutsToCreate, + flatEntityToDelete: [], + flatEntityToUpdate: [], + }, + pageLayoutTab: { + flatEntityToCreate: allCustomPageLayoutTabsToCreate, + flatEntityToDelete: [], + flatEntityToUpdate: [], + }, + pageLayoutWidget: { + flatEntityToCreate: allCustomPageLayoutWidgetsToCreate, + flatEntityToDelete: [], + flatEntityToUpdate: [], + }, + view: { + flatEntityToCreate: allCustomViewsToCreate, + flatEntityToDelete: [], + flatEntityToUpdate: [], + }, + viewField: { + flatEntityToCreate: allCustomViewFieldsToCreate, + flatEntityToDelete: [], + flatEntityToUpdate: [], + }, + }, + workspaceId, + applicationUniversalIdentifier: + workspaceCustomFlatApplication.universalIdentifier, + }, + ); + + if (customValidateAndBuildResult.status === 'fail') { + this.logger.error( + `Failed to create custom object page layouts:\n${JSON.stringify(customValidateAndBuildResult, null, 2)}`, + ); + throw new Error( + `Failed to create custom object page layouts for workspace ${workspaceId}`, + ); + } + + this.logger.log( + `Successfully created page layouts for ${customObjectsWithoutPageLayout.length} custom object(s) in workspace ${workspaceId}`, + ); + } + + private async backfillFieldWidgets({ + workspaceId, + twentyStandardFlatApplication, + workspaceCustomFlatApplication, + }: { + workspaceId: string; + twentyStandardFlatApplication: FlatApplication; + workspaceCustomFlatApplication: FlatApplication; + }): Promise { + const { + flatObjectMetadataMaps, + flatFieldMetadataMaps, + flatPageLayoutMaps, + flatPageLayoutTabMaps, + flatPageLayoutWidgetMaps, + } = await this.workspaceCacheService.getOrRecompute(workspaceId, [ + 'flatObjectMetadataMaps', + 'flatFieldMetadataMaps', + 'flatPageLayoutMaps', + 'flatPageLayoutTabMaps', + 'flatPageLayoutWidgetMaps', + ]); + + // Build a set of fieldMetadataIds that already have a FIELD widget + const existingFieldWidgetFieldIds = new Set(); + + for (const widget of Object.values( + flatPageLayoutWidgetMaps.byUniversalIdentifier, + )) { + if ( + isDefined(widget) && + widget.configuration?.configurationType === + WidgetConfigurationType.FIELD && + isDefined(widget.configuration.fieldMetadataId) + ) { + existingFieldWidgetFieldIds.add(widget.configuration.fieldMetadataId); + } + } + + // Build object ID → objectMetadata map + const objectById = new Map(); + + for (const obj of Object.values( + flatObjectMetadataMaps.byUniversalIdentifier, + )) { + if (isDefined(obj)) { + objectById.set(obj.id, obj); + } + } + + // Build object ID → RECORD_PAGE layout map + const recordPageLayoutByObjectId = new Map< + string, + { id: string; universalIdentifier: string } + >(); + + for (const layout of Object.values( + flatPageLayoutMaps.byUniversalIdentifier, + )) { + if ( + isDefined(layout) && + layout.type === PageLayoutType.RECORD_PAGE && + isDefined(layout.objectMetadataId) + ) { + recordPageLayoutByObjectId.set(layout.objectMetadataId, { + id: layout.id, + universalIdentifier: layout.universalIdentifier, + }); + } + } + + // Build pageLayoutId → home tab map + const homeTabByPageLayoutId = new Map< + string, + { + id: string; + universalIdentifier: string; + widgetCount: number; + } + >(); + + for (const tab of Object.values( + flatPageLayoutTabMaps.byUniversalIdentifier, + )) { + if ( + isDefined(tab) && + tab.position === HOME_TAB_POSITION && + tab.layoutMode === PageLayoutTabLayoutMode.VERTICAL_LIST + ) { + homeTabByPageLayoutId.set(tab.pageLayoutId, { + id: tab.id, + universalIdentifier: tab.universalIdentifier, + widgetCount: tab.widgetIds?.length ?? 0, + }); + } + } + + // Group fields by objectMetadataId + const fieldsByObjectId = new Map(); + + // Map morphId → all field IDs sharing that morphId (for dedup) + const fieldIdsByMorphId = new Map(); + + for (const field of Object.values( + flatFieldMetadataMaps.byUniversalIdentifier, + )) { + if (!isDefined(field) || !isDefined(field.objectMetadataId)) { + continue; + } + + const list = fieldsByObjectId.get(field.objectMetadataId) ?? []; + + list.push(field); + fieldsByObjectId.set(field.objectMetadataId, list); + + if ( + field.type === FieldMetadataType.MORPH_RELATION && + isDefined(field.morphId) + ) { + const morphFieldIds = fieldIdsByMorphId.get(field.morphId) ?? []; + + morphFieldIds.push(field.id); + fieldIdsByMorphId.set(field.morphId, morphFieldIds); + } + } + + const now = new Date().toISOString(); + + const standardWidgetsToCreate: FlatPageLayoutWidget[] = []; + const customWidgetsToCreate: FlatPageLayoutWidget[] = []; + const processedMorphIds = new Set(); + + for (const object of objectById.values()) { + const pageLayout = recordPageLayoutByObjectId.get(object.id); + + if (!isDefined(pageLayout)) { + continue; + } + + const homeTab = homeTabByPageLayoutId.get(pageLayout.id); + + if (!isDefined(homeTab)) { + continue; + } + + const flatApplication: FlatApplication = object.isCustom + ? workspaceCustomFlatApplication + : twentyStandardFlatApplication; + + const targetList: FlatPageLayoutWidget[] = object.isCustom + ? customWidgetsToCreate + : standardWidgetsToCreate; + + const fields = fieldsByObjectId.get(object.id) ?? []; + let nextWidgetIndex = homeTab.widgetCount; + + for (const field of fields) { + if ( + field.type !== FieldMetadataType.RELATION && + field.type !== FieldMetadataType.MORPH_RELATION + ) { + continue; + } + + if (isActivityTargetField(field.name, object.nameSingular)) { + continue; + } + + if (isJunctionRelationField(field)) { + continue; + } + + if (field.type === FieldMetadataType.RELATION) { + const targetObject = isDefined(field.relationTargetObjectMetadataId) + ? objectById.get(field.relationTargetObjectMetadataId) + : undefined; + + if (!isRelationTargetAvailable(targetObject)) { + continue; + } + } + + // For morph relations, skip if any sibling field (same morphId) + // already has a widget or was already processed in this run + if ( + field.type === FieldMetadataType.MORPH_RELATION && + isDefined(field.morphId) + ) { + if (processedMorphIds.has(field.morphId)) { + continue; + } + + const siblingFieldIds = fieldIdsByMorphId.get(field.morphId) ?? []; + const alreadyHasWidget = siblingFieldIds.some((id) => + existingFieldWidgetFieldIds.has(id), + ); + + if (alreadyHasWidget) { + continue; + } + + processedMorphIds.add(field.morphId); + } + + if (existingFieldWidgetFieldIds.has(field.id)) { + continue; + } + + const widget: FlatPageLayoutWidget = { + id: v4(), + universalIdentifier: v4(), + applicationId: flatApplication.id, + applicationUniversalIdentifier: flatApplication.universalIdentifier, + workspaceId, + pageLayoutTabId: homeTab.id, + pageLayoutTabUniversalIdentifier: homeTab.universalIdentifier, + title: field.label, + type: WidgetType.FIELD, + gridPosition: { ...GRID_POSITIONS.FULL_WIDTH }, + position: { + ...VERTICAL_LIST_LAYOUT_POSITIONS.SECOND, + index: nextWidgetIndex, + }, + configuration: { + configurationType: WidgetConfigurationType.FIELD, + fieldMetadataId: field.id, + fieldDisplayMode: FieldDisplayMode.CARD, + }, + universalConfiguration: { + configurationType: WidgetConfigurationType.FIELD, + fieldMetadataId: field.universalIdentifier, + fieldDisplayMode: FieldDisplayMode.CARD, + }, + objectMetadataId: object.id, + objectMetadataUniversalIdentifier: object.universalIdentifier, + createdAt: now, + updatedAt: now, + deletedAt: null, + conditionalDisplay: null, + overrides: null, + }; + + targetList.push(widget); + existingFieldWidgetFieldIds.add(field.id); + nextWidgetIndex++; + } + } + + const totalWidgets = + standardWidgetsToCreate.length + customWidgetsToCreate.length; + + if (totalWidgets === 0) { + this.logger.log( + `All FIELD widgets already exist for workspace ${workspaceId}, skipping`, + ); + + return; + } + + this.logger.log( + `Found ${totalWidgets} FIELD widget(s) to create for workspace ${workspaceId} (${standardWidgetsToCreate.length} standard, ${customWidgetsToCreate.length} custom)`, + ); + + if (standardWidgetsToCreate.length > 0) { + const result = + await this.workspaceMigrationValidateBuildAndRunService.validateBuildAndRunWorkspaceMigration( + { + allFlatEntityOperationByMetadataName: { + pageLayoutWidget: { + flatEntityToCreate: standardWidgetsToCreate, + flatEntityToDelete: [], + flatEntityToUpdate: [], + }, + }, + workspaceId, + applicationUniversalIdentifier: + twentyStandardFlatApplication.universalIdentifier, + }, + ); + + if (result.status === 'fail') { + this.logger.error( + `Failed to create standard FIELD widgets:\n${JSON.stringify(result, null, 2)}`, + ); + throw new Error( + `Failed to create standard FIELD widgets for workspace ${workspaceId}`, + ); + } + } + + if (customWidgetsToCreate.length > 0) { + const result = + await this.workspaceMigrationValidateBuildAndRunService.validateBuildAndRunWorkspaceMigration( + { + allFlatEntityOperationByMetadataName: { + pageLayoutWidget: { + flatEntityToCreate: customWidgetsToCreate, + flatEntityToDelete: [], + flatEntityToUpdate: [], + }, + }, + workspaceId, + applicationUniversalIdentifier: + workspaceCustomFlatApplication.universalIdentifier, + }, + ); + + if (result.status === 'fail') { + this.logger.error( + `Failed to create custom FIELD widgets:\n${JSON.stringify(result, null, 2)}`, + ); + throw new Error( + `Failed to create custom FIELD widgets for workspace ${workspaceId}`, + ); + } + } + + this.logger.log( + `Successfully created ${totalWidgets} FIELD widget(s) for workspace ${workspaceId}`, + ); + } +} diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/1-20/1-20-backfill-page-layouts.command.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/1-20/1-20-backfill-page-layouts.command.ts deleted file mode 100644 index 2c860da6bc..0000000000 --- a/packages/twenty-server/src/database/commands/upgrade-version-command/1-20/1-20-backfill-page-layouts.command.ts +++ /dev/null @@ -1,485 +0,0 @@ -import { InjectRepository } from '@nestjs/typeorm'; - -import { Command } from 'nest-commander'; -import { FeatureFlagKey, ViewType } from 'twenty-shared/types'; -import { isDefined } from 'twenty-shared/utils'; -import { Repository } from 'typeorm'; - -import { ActiveOrSuspendedWorkspacesMigrationCommandRunner } from 'src/database/commands/command-runners/active-or-suspended-workspaces-migration.command-runner'; -import { RunOnWorkspaceArgs } from 'src/database/commands/command-runners/workspaces-migration.command-runner'; -import { ApplicationService } from 'src/engine/core-modules/application/application.service'; -import { type FlatApplication } from 'src/engine/core-modules/application/types/flat-application.type'; -import { FeatureFlagService } from 'src/engine/core-modules/feature-flag/services/feature-flag.service'; -import { WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity'; -import { DataSourceService } from 'src/engine/metadata-modules/data-source/data-source.service'; -import { type FlatPageLayoutTab } from 'src/engine/metadata-modules/flat-page-layout-tab/types/flat-page-layout-tab.type'; -import { type FlatPageLayoutWidget } from 'src/engine/metadata-modules/flat-page-layout-widget/types/flat-page-layout-widget.type'; -import { type FlatPageLayout } from 'src/engine/metadata-modules/flat-page-layout/types/flat-page-layout.type'; -import { computeFlatDefaultRecordPageLayoutToCreate } from 'src/engine/metadata-modules/object-metadata/utils/compute-flat-default-record-page-layout-to-create.util'; -import { computeFlatRecordPageFieldsViewToCreate } from 'src/engine/metadata-modules/object-metadata/utils/compute-flat-record-page-fields-view-to-create.util'; -import { computeFlatViewFieldsToCreate } from 'src/engine/metadata-modules/object-metadata/utils/compute-flat-view-fields-to-create.util'; -import { PageLayoutType } from 'src/engine/metadata-modules/page-layout/enums/page-layout-type.enum'; -import { GlobalWorkspaceOrmManager } from 'src/engine/twenty-orm/global-workspace-datasource/global-workspace-orm.manager'; -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'; -import { type UniversalFlatViewField } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-view-field.type'; -import { type UniversalFlatView } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-view.type'; - -@Command({ - name: 'upgrade:1-20:backfill-page-layouts', - description: - 'Backfill RECORD_PAGE page layouts for legacy workspaces and enable the IS_RECORD_PAGE_LAYOUT_EDITING_ENABLED feature flag', -}) -export class BackfillPageLayoutsCommand extends ActiveOrSuspendedWorkspacesMigrationCommandRunner { - constructor( - @InjectRepository(WorkspaceEntity) - protected readonly workspaceRepository: Repository, - protected readonly twentyORMGlobalManager: GlobalWorkspaceOrmManager, - protected readonly dataSourceService: DataSourceService, - private readonly applicationService: ApplicationService, - private readonly workspaceMigrationValidateBuildAndRunService: WorkspaceMigrationValidateBuildAndRunService, - private readonly featureFlagService: FeatureFlagService, - private readonly workspaceCacheService: WorkspaceCacheService, - ) { - super(workspaceRepository, twentyORMGlobalManager, dataSourceService); - } - - override async runOnWorkspace({ - workspaceId, - options, - }: RunOnWorkspaceArgs): Promise { - const isDryRun = options.dryRun ?? false; - - this.logger.log( - `${isDryRun ? '[DRY RUN] ' : ''}Starting backfill of page layouts for workspace ${workspaceId}`, - ); - - const isAlreadyEnabled = await this.featureFlagService.isFeatureEnabled( - FeatureFlagKey.IS_RECORD_PAGE_LAYOUT_EDITING_ENABLED, - workspaceId, - ); - - if (isAlreadyEnabled) { - this.logger.log( - `IS_RECORD_PAGE_LAYOUT_EDITING_ENABLED already enabled for workspace ${workspaceId}, skipping`, - ); - - return; - } - - const { twentyStandardFlatApplication, workspaceCustomFlatApplication } = - await this.applicationService.findWorkspaceTwentyStandardAndCustomApplicationOrThrow( - { workspaceId }, - ); - - await this.backfillStandardObjectPageLayouts({ - workspaceId, - twentyStandardFlatApplication, - isDryRun, - }); - - await this.backfillCustomObjectPageLayouts({ - workspaceId, - workspaceCustomFlatApplication, - isDryRun, - }); - - if (!isDryRun) { - await this.featureFlagService.enableFeatureFlags( - [FeatureFlagKey.IS_RECORD_PAGE_LAYOUT_EDITING_ENABLED], - workspaceId, - ); - } - - this.logger.log( - isDryRun - ? `[DRY RUN] Would create page layouts and enable IS_RECORD_PAGE_LAYOUT_EDITING_ENABLED for workspace ${workspaceId}` - : `Successfully created page layouts and enabled IS_RECORD_PAGE_LAYOUT_EDITING_ENABLED for workspace ${workspaceId}`, - ); - } - - private async backfillStandardObjectPageLayouts({ - workspaceId, - twentyStandardFlatApplication, - isDryRun, - }: { - workspaceId: string; - twentyStandardFlatApplication: FlatApplication; - isDryRun: boolean; - }): Promise { - const { allFlatEntityMaps: standardAllFlatEntityMaps } = - computeTwentyStandardApplicationAllFlatEntityMaps({ - shouldIncludeRecordPageLayouts: true, - now: new Date().toISOString(), - workspaceId, - twentyStandardApplicationId: twentyStandardFlatApplication.id, - }); - - const { - flatPageLayoutMaps: existingFlatPageLayoutMaps, - flatPageLayoutTabMaps: existingFlatPageLayoutTabMaps, - flatPageLayoutWidgetMaps: existingFlatPageLayoutWidgetMaps, - flatViewMaps: existingFlatViewMaps, - flatViewFieldMaps: existingFlatViewFieldMaps, - flatViewFieldGroupMaps: existingFlatViewFieldGroupMaps, - } = await this.workspaceCacheService.getOrRecompute(workspaceId, [ - 'flatPageLayoutMaps', - 'flatPageLayoutTabMaps', - 'flatPageLayoutWidgetMaps', - 'flatViewMaps', - 'flatViewFieldMaps', - 'flatViewFieldGroupMaps', - ]); - - const recordPageLayoutUniversalIdentifiers = new Set(); - - const pageLayoutsToCreate = Object.values( - standardAllFlatEntityMaps.flatPageLayoutMaps.byUniversalIdentifier, - ) - .filter(isDefined) - .filter((pageLayout) => { - if (pageLayout.type !== PageLayoutType.RECORD_PAGE) { - return false; - } - - recordPageLayoutUniversalIdentifiers.add( - pageLayout.universalIdentifier, - ); - - if ( - isDefined( - existingFlatPageLayoutMaps.byUniversalIdentifier[ - pageLayout.universalIdentifier - ], - ) - ) { - return false; - } - - return true; - }); - - const tabUniversalIdentifiers = new Set(); - - const pageLayoutTabsToCreate = Object.values( - standardAllFlatEntityMaps.flatPageLayoutTabMaps.byUniversalIdentifier, - ) - .filter(isDefined) - .filter((tab) => { - if ( - !recordPageLayoutUniversalIdentifiers.has( - tab.pageLayoutUniversalIdentifier, - ) - ) { - return false; - } - - tabUniversalIdentifiers.add(tab.universalIdentifier); - - if ( - isDefined( - existingFlatPageLayoutTabMaps.byUniversalIdentifier[ - tab.universalIdentifier - ], - ) - ) { - return false; - } - - return true; - }); - - const pageLayoutWidgetsToCreate = Object.values( - standardAllFlatEntityMaps.flatPageLayoutWidgetMaps.byUniversalIdentifier, - ) - .filter(isDefined) - .filter( - (widget) => - tabUniversalIdentifiers.has( - widget.pageLayoutTabUniversalIdentifier, - ) && - !isDefined( - existingFlatPageLayoutWidgetMaps.byUniversalIdentifier[ - widget.universalIdentifier - ], - ), - ); - - const viewUniversalIdentifiers = new Set(); - - const viewsToCreate = Object.values( - standardAllFlatEntityMaps.flatViewMaps.byUniversalIdentifier, - ) - .filter(isDefined) - .filter((view) => { - if (view.type !== ViewType.FIELDS_WIDGET) { - return false; - } - - if ( - isDefined( - existingFlatViewMaps.byUniversalIdentifier[ - view.universalIdentifier - ], - ) - ) { - return false; - } - - viewUniversalIdentifiers.add(view.universalIdentifier); - - return true; - }); - - const viewFieldsToCreate = Object.values( - standardAllFlatEntityMaps.flatViewFieldMaps.byUniversalIdentifier, - ) - .filter(isDefined) - .filter( - (viewField) => - viewUniversalIdentifiers.has(viewField.viewUniversalIdentifier) && - !isDefined( - existingFlatViewFieldMaps.byUniversalIdentifier[ - viewField.universalIdentifier - ], - ), - ); - - const viewFieldGroupsToCreate = Object.values( - standardAllFlatEntityMaps.flatViewFieldGroupMaps.byUniversalIdentifier, - ) - .filter(isDefined) - .filter( - (viewFieldGroup) => - viewUniversalIdentifiers.has( - viewFieldGroup.viewUniversalIdentifier, - ) && - !isDefined( - existingFlatViewFieldGroupMaps.byUniversalIdentifier[ - viewFieldGroup.universalIdentifier - ], - ), - ); - - this.logger.log( - `${isDryRun ? '[DRY RUN] ' : ''}Found standard entities to create for workspace ${workspaceId}: ` + - `${pageLayoutsToCreate.length} page layout(s), ` + - `${pageLayoutTabsToCreate.length} tab(s), ` + - `${pageLayoutWidgetsToCreate.length} widget(s), ` + - `${viewsToCreate.length} view(s), ` + - `${viewFieldsToCreate.length} view field(s), ` + - `${viewFieldGroupsToCreate.length} view field group(s)`, - ); - - if (isDryRun) { - return; - } - - const validateAndBuildResult = - await this.workspaceMigrationValidateBuildAndRunService.validateBuildAndRunWorkspaceMigration( - { - allFlatEntityOperationByMetadataName: { - pageLayout: { - flatEntityToCreate: pageLayoutsToCreate, - flatEntityToDelete: [], - flatEntityToUpdate: [], - }, - pageLayoutTab: { - flatEntityToCreate: pageLayoutTabsToCreate, - flatEntityToDelete: [], - flatEntityToUpdate: [], - }, - pageLayoutWidget: { - flatEntityToCreate: pageLayoutWidgetsToCreate, - flatEntityToDelete: [], - flatEntityToUpdate: [], - }, - view: { - flatEntityToCreate: viewsToCreate, - flatEntityToDelete: [], - flatEntityToUpdate: [], - }, - viewField: { - flatEntityToCreate: viewFieldsToCreate, - flatEntityToDelete: [], - flatEntityToUpdate: [], - }, - viewFieldGroup: { - flatEntityToCreate: viewFieldGroupsToCreate, - flatEntityToDelete: [], - flatEntityToUpdate: [], - }, - }, - workspaceId, - applicationUniversalIdentifier: - twentyStandardFlatApplication.universalIdentifier, - }, - ); - - if (validateAndBuildResult.status === 'fail') { - this.logger.error( - `Failed to create standard page layouts:\n${JSON.stringify(validateAndBuildResult, null, 2)}`, - ); - throw new Error( - `Failed to create standard page layouts for workspace ${workspaceId}`, - ); - } - } - - private async backfillCustomObjectPageLayouts({ - workspaceId, - workspaceCustomFlatApplication, - isDryRun, - }: { - workspaceId: string; - workspaceCustomFlatApplication: FlatApplication; - isDryRun: boolean; - }): Promise { - const { - flatObjectMetadataMaps, - flatFieldMetadataMaps, - flatPageLayoutMaps, - } = await this.workspaceCacheService.getOrRecompute(workspaceId, [ - 'flatObjectMetadataMaps', - 'flatFieldMetadataMaps', - 'flatPageLayoutMaps', - ]); - - const existingPageLayouts = Object.values( - flatPageLayoutMaps.byUniversalIdentifier, - ).filter(isDefined); - - const objectIdsWithRecordPageLayout = new Set( - existingPageLayouts - .filter( - (layout: FlatPageLayout) => - layout.type === PageLayoutType.RECORD_PAGE && - isDefined(layout.objectMetadataId), - ) - .map((layout: FlatPageLayout) => layout.objectMetadataId), - ); - - const customObjectsWithoutPageLayout = Object.values( - flatObjectMetadataMaps.byUniversalIdentifier, - ) - .filter(isDefined) - .filter( - (objectMetadata) => - objectMetadata.isCustom && - !objectMetadata.isRemote && - !objectIdsWithRecordPageLayout.has(objectMetadata.id), - ); - - if (customObjectsWithoutPageLayout.length === 0) { - this.logger.log( - `No custom objects without page layouts found for workspace ${workspaceId}`, - ); - - return; - } - - const allCustomPageLayoutsToCreate: FlatPageLayout[] = []; - const allCustomPageLayoutTabsToCreate: FlatPageLayoutTab[] = []; - const allCustomPageLayoutWidgetsToCreate: FlatPageLayoutWidget[] = []; - const allCustomViewsToCreate: (UniversalFlatView & { id: string })[] = []; - const allCustomViewFieldsToCreate: UniversalFlatViewField[] = []; - - for (const customObject of customObjectsWithoutPageLayout) { - const flatRecordPageFieldsView = computeFlatRecordPageFieldsViewToCreate({ - objectMetadata: customObject, - flatApplication: workspaceCustomFlatApplication, - }); - - const objectFieldMetadatas = Object.values( - flatFieldMetadataMaps.byUniversalIdentifier, - ) - .filter(isDefined) - .filter((field) => field.objectMetadataId === customObject.id); - - const viewFields = computeFlatViewFieldsToCreate({ - objectFlatFieldMetadatas: objectFieldMetadatas, - viewUniversalIdentifier: flatRecordPageFieldsView.universalIdentifier, - flatApplication: workspaceCustomFlatApplication, - labelIdentifierFieldMetadataUniversalIdentifier: - customObject.labelIdentifierFieldMetadataUniversalIdentifier, - }); - - const { pageLayouts, pageLayoutTabs, pageLayoutWidgets } = - computeFlatDefaultRecordPageLayoutToCreate({ - objectMetadata: customObject, - flatApplication: workspaceCustomFlatApplication, - recordPageFieldsView: flatRecordPageFieldsView, - workspaceId, - }); - - allCustomPageLayoutsToCreate.push(...pageLayouts); - allCustomPageLayoutTabsToCreate.push(...pageLayoutTabs); - allCustomPageLayoutWidgetsToCreate.push(...pageLayoutWidgets); - allCustomViewsToCreate.push(flatRecordPageFieldsView); - allCustomViewFieldsToCreate.push(...viewFields); - } - - this.logger.log( - `${isDryRun ? '[DRY RUN] ' : ''}Found custom entities to create for ${customObjectsWithoutPageLayout.length} custom object(s) in workspace ${workspaceId}: ` + - `${allCustomPageLayoutsToCreate.length} page layout(s), ` + - `${allCustomPageLayoutTabsToCreate.length} tab(s), ` + - `${allCustomPageLayoutWidgetsToCreate.length} widget(s), ` + - `${allCustomViewsToCreate.length} view(s), ` + - `${allCustomViewFieldsToCreate.length} view field(s)`, - ); - - if (isDryRun) { - return; - } - - const customValidateAndBuildResult = - await this.workspaceMigrationValidateBuildAndRunService.validateBuildAndRunWorkspaceMigration( - { - allFlatEntityOperationByMetadataName: { - pageLayout: { - flatEntityToCreate: allCustomPageLayoutsToCreate, - flatEntityToDelete: [], - flatEntityToUpdate: [], - }, - pageLayoutTab: { - flatEntityToCreate: allCustomPageLayoutTabsToCreate, - flatEntityToDelete: [], - flatEntityToUpdate: [], - }, - pageLayoutWidget: { - flatEntityToCreate: allCustomPageLayoutWidgetsToCreate, - flatEntityToDelete: [], - flatEntityToUpdate: [], - }, - view: { - flatEntityToCreate: allCustomViewsToCreate, - flatEntityToDelete: [], - flatEntityToUpdate: [], - }, - viewField: { - flatEntityToCreate: allCustomViewFieldsToCreate, - flatEntityToDelete: [], - flatEntityToUpdate: [], - }, - }, - workspaceId, - applicationUniversalIdentifier: - workspaceCustomFlatApplication.universalIdentifier, - }, - ); - - if (customValidateAndBuildResult.status === 'fail') { - this.logger.error( - `Failed to create custom object page layouts:\n${JSON.stringify(customValidateAndBuildResult, null, 2)}`, - ); - throw new Error( - `Failed to create custom object page layouts for workspace ${workspaceId}`, - ); - } - - this.logger.log( - `Successfully created page layouts for ${customObjectsWithoutPageLayout.length} custom object(s) in workspace ${workspaceId}`, - ); - } -} diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/1-20/1-20-upgrade-version-command.module.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/1-20/1-20-upgrade-version-command.module.ts index 5f81022cf3..7e6da52250 100644 --- a/packages/twenty-server/src/database/commands/upgrade-version-command/1-20/1-20-upgrade-version-command.module.ts +++ b/packages/twenty-server/src/database/commands/upgrade-version-command/1-20/1-20-upgrade-version-command.module.ts @@ -2,9 +2,8 @@ import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { BackfillCommandMenuItemsCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-backfill-command-menu-items.command'; -import { BackfillFieldWidgetsCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-backfill-field-widgets.command'; import { BackfillNavigationMenuItemTypeCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-backfill-navigation-menu-item-type.command'; -import { BackfillPageLayoutsCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-backfill-page-layouts.command'; +import { BackfillPageLayoutsAndFieldsWidgetViewFieldsCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-backfill-page-layouts-and-fields-widget-view-fields.command'; import { BackfillSelectFieldOptionIdsCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-backfill-select-field-option-ids.command'; import { DeleteOrphanNavigationMenuItemsCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-delete-orphan-navigation-menu-items.command'; import { GenerateApplicationSdkClientsCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-generate-application-sdk-clients.command'; @@ -67,9 +66,8 @@ import { WorkflowCommonModule } from 'src/modules/workflow/common/workflow-commo IdentifyObjectPermissionMetadataCommand, MakeObjectPermissionUniversalIdentifierAndApplicationIdNotNullableMigrationCommand, BackfillCommandMenuItemsCommand, - BackfillFieldWidgetsCommand, BackfillNavigationMenuItemTypeCommand, - BackfillPageLayoutsCommand, + BackfillPageLayoutsAndFieldsWidgetViewFieldsCommand, BackfillSelectFieldOptionIdsCommand, DeleteOrphanNavigationMenuItemsCommand, GenerateApplicationSdkClientsCommand, @@ -85,9 +83,8 @@ import { WorkflowCommonModule } from 'src/modules/workflow/common/workflow-commo IdentifyObjectPermissionMetadataCommand, MakeObjectPermissionUniversalIdentifierAndApplicationIdNotNullableMigrationCommand, BackfillCommandMenuItemsCommand, - BackfillFieldWidgetsCommand, BackfillNavigationMenuItemTypeCommand, - BackfillPageLayoutsCommand, + BackfillPageLayoutsAndFieldsWidgetViewFieldsCommand, BackfillSelectFieldOptionIdsCommand, DeleteOrphanNavigationMenuItemsCommand, GenerateApplicationSdkClientsCommand, diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/upgrade.command.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/upgrade.command.ts index 9af02deb51..017724acac 100644 --- a/packages/twenty-server/src/database/commands/upgrade-version-command/upgrade.command.ts +++ b/packages/twenty-server/src/database/commands/upgrade-version-command/upgrade.command.ts @@ -34,11 +34,11 @@ import { BackfillSystemFieldsIsSystemCommand } from 'src/database/commands/upgra import { FixInvalidStandardUniversalIdentifiersCommand } from 'src/database/commands/upgrade-version-command/1-19/1-19-fix-invalid-standard-universal-identifiers.command'; import { SeedServerIdCommand } from 'src/database/commands/upgrade-version-command/1-19/1-19-seed-server-id.command'; import { BackfillCommandMenuItemsCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-backfill-command-menu-items.command'; -import { BackfillFieldWidgetsCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-backfill-field-widgets.command'; import { BackfillNavigationMenuItemTypeCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-backfill-navigation-menu-item-type.command'; -import { DeleteOrphanNavigationMenuItemsCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-delete-orphan-navigation-menu-items.command'; -import { BackfillPageLayoutsCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-backfill-page-layouts.command'; +import { BackfillPageLayoutsAndFieldsWidgetViewFieldsCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-backfill-page-layouts-and-fields-widget-view-fields.command'; import { BackfillSelectFieldOptionIdsCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-backfill-select-field-option-ids.command'; +import { DeleteOrphanNavigationMenuItemsCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-delete-orphan-navigation-menu-items.command'; +import { GenerateApplicationSdkClientsCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-generate-application-sdk-clients.command'; import { IdentifyObjectPermissionMetadataCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-identify-object-permission-metadata.command'; import { IdentifyPermissionFlagMetadataCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-identify-permission-flag-metadata.command'; import { MakeObjectPermissionUniversalIdentifierAndApplicationIdNotNullableMigrationCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-make-object-permission-universal-identifier-and-application-id-not-nullable-migration.command'; @@ -46,7 +46,6 @@ import { MakePermissionFlagUniversalIdentifierAndApplicationIdNotNullableMigrati import { MakeWorkflowSearchableCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-make-workflow-searchable.command'; import { MigrateMessagingInfrastructureToMetadataCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-migrate-messaging-infrastructure-to-metadata.command'; import { MigrateRichTextToTextCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-migrate-rich-text-to-text.command'; -import { GenerateApplicationSdkClientsCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-generate-application-sdk-clients.command'; import { SeedCliApplicationRegistrationCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-seed-cli-application-registration.command'; import { UpdateStandardIndexViewNamesCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-update-standard-index-view-names.command'; import { TwentyConfigService } from 'src/engine/core-modules/twenty-config/twenty-config.service'; @@ -106,12 +105,11 @@ export class UpgradeCommand extends UpgradeCommandRunner { protected readonly backfillNavigationMenuItemTypeCommand: BackfillNavigationMenuItemTypeCommand, protected readonly backfillCommandMenuItemsCommand: BackfillCommandMenuItemsCommand, protected readonly deleteOrphanNavigationMenuItemsCommand: DeleteOrphanNavigationMenuItemsCommand, - protected readonly backfillPageLayoutsCommand: BackfillPageLayoutsCommand, + protected readonly backfillPageLayoutsAndFieldsWidgetViewFieldsCommand: BackfillPageLayoutsAndFieldsWidgetViewFieldsCommand, protected readonly generateApplicationSdkClientsCommand: GenerateApplicationSdkClientsCommand, protected readonly seedCliApplicationRegistrationCommand: SeedCliApplicationRegistrationCommand, protected readonly migrateRichTextToTextCommand: MigrateRichTextToTextCommand, protected readonly migrateMessagingInfrastructureToMetadataCommand: MigrateMessagingInfrastructureToMetadataCommand, - protected readonly backfillFieldWidgetsCommand: BackfillFieldWidgetsCommand, protected readonly backfillSelectFieldOptionIdsCommand: BackfillSelectFieldOptionIdsCommand, protected readonly updateStandardIndexViewNamesCommand: UpdateStandardIndexViewNamesCommand, protected readonly makeWorkflowSearchableCommand: MakeWorkflowSearchableCommand, @@ -172,10 +170,9 @@ export class UpgradeCommand extends UpgradeCommandRunner { this.migrateRichTextToTextCommand, this.deleteOrphanNavigationMenuItemsCommand, this.backfillCommandMenuItemsCommand, - this.backfillPageLayoutsCommand, + this.backfillPageLayoutsAndFieldsWidgetViewFieldsCommand, this.seedCliApplicationRegistrationCommand, this.migrateMessagingInfrastructureToMetadataCommand, - this.backfillFieldWidgetsCommand, this.backfillSelectFieldOptionIdsCommand, this.updateStandardIndexViewNamesCommand, this.makeWorkflowSearchableCommand, diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.service.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.service.ts index b483edd44b..ca658872c7 100644 --- a/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.service.ts +++ b/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.service.ts @@ -455,6 +455,7 @@ export class ObjectMetadataService extends TypeOrmQueryService & { + name: string; + type: FieldMetadataType; + }, +): UniversalFlatFieldMetadata => { + const universalIdentifier = overrides.universalIdentifier ?? v4(); + + return { + universalIdentifier, + objectMetadataUniversalIdentifier: 'object-uid', + applicationUniversalIdentifier: 'app-uid', + name: overrides.name, + label: overrides.label ?? overrides.name, + type: overrides.type, + isCustom: overrides.isCustom ?? false, + isActive: true, + isSystem: false, + isUIReadOnly: false, + isNullable: true, + isUnique: false, + isLabelSyncedWithName: false, + defaultValue: null, + description: null, + icon: null, + options: null, + settings: null, + standardOverrides: null, + relationTargetObjectMetadataUniversalIdentifier: null, + createdAt: '2026-01-01T00:00:00.000Z', + updatedAt: '2026-01-01T00:00:00.000Z', + deletedAt: null, + } as unknown as UniversalFlatFieldMetadata; +}; + +const flatApplication = { + universalIdentifier: 'app-uid', + id: 'app-id', +} as never; + +const viewUniversalIdentifier = 'view-uid'; + +describe('computeFlatViewFieldsToCreate', () => { + it('should exclude TS_VECTOR fields', () => { + const fields = [ + makeFieldMetadata({ + name: 'name', + type: FieldMetadataType.TEXT, + }), + makeFieldMetadata({ + name: 'searchVector', + type: FieldMetadataType.TS_VECTOR, + }), + ]; + + const result = computeFlatViewFieldsToCreate({ + objectFlatFieldMetadatas: fields, + viewUniversalIdentifier, + flatApplication, + labelIdentifierFieldMetadataUniversalIdentifier: null, + }); + + expect(result).toHaveLength(1); + expect(result[0].fieldMetadataUniversalIdentifier).toBe( + fields[0].universalIdentifier, + ); + }); + + it('should exclude POSITION fields', () => { + const fields = [ + makeFieldMetadata({ + name: 'name', + type: FieldMetadataType.TEXT, + }), + makeFieldMetadata({ + name: 'position', + type: FieldMetadataType.POSITION, + }), + ]; + + const result = computeFlatViewFieldsToCreate({ + objectFlatFieldMetadatas: fields, + viewUniversalIdentifier, + flatApplication, + labelIdentifierFieldMetadataUniversalIdentifier: null, + }); + + expect(result).toHaveLength(1); + expect(result[0].fieldMetadataUniversalIdentifier).toBe( + fields[0].universalIdentifier, + ); + }); + + it('should exclude RELATION and MORPH_RELATION fields', () => { + const fields = [ + makeFieldMetadata({ + name: 'name', + type: FieldMetadataType.TEXT, + }), + makeFieldMetadata({ + name: 'company', + type: FieldMetadataType.RELATION, + }), + makeFieldMetadata({ + name: 'target', + type: FieldMetadataType.MORPH_RELATION, + }), + ]; + + const result = computeFlatViewFieldsToCreate({ + objectFlatFieldMetadatas: fields, + viewUniversalIdentifier, + flatApplication, + labelIdentifierFieldMetadataUniversalIdentifier: null, + }); + + expect(result).toHaveLength(1); + expect(result[0].fieldMetadataUniversalIdentifier).toBe( + fields[0].universalIdentifier, + ); + }); + + it('should exclude deletedAt field', () => { + const fields = [ + makeFieldMetadata({ + name: 'name', + type: FieldMetadataType.TEXT, + }), + makeFieldMetadata({ + name: 'deletedAt', + type: FieldMetadataType.DATE_TIME, + }), + ]; + + const result = computeFlatViewFieldsToCreate({ + objectFlatFieldMetadatas: fields, + viewUniversalIdentifier, + flatApplication, + labelIdentifierFieldMetadataUniversalIdentifier: null, + }); + + expect(result).toHaveLength(1); + expect(result[0].fieldMetadataUniversalIdentifier).toBe( + fields[0].universalIdentifier, + ); + }); + + it('should place label identifier field first', () => { + const labelField = makeFieldMetadata({ + name: 'name', + type: FieldMetadataType.TEXT, + }); + const otherField = makeFieldMetadata({ + name: 'createdAt', + type: FieldMetadataType.DATE_TIME, + }); + const fields = [otherField, labelField]; + + const result = computeFlatViewFieldsToCreate({ + objectFlatFieldMetadatas: fields, + viewUniversalIdentifier, + flatApplication, + labelIdentifierFieldMetadataUniversalIdentifier: + labelField.universalIdentifier, + }); + + expect(result).toHaveLength(2); + expect(result[0].fieldMetadataUniversalIdentifier).toBe( + labelField.universalIdentifier, + ); + expect(result[0].position).toBe(0); + expect(result[1].fieldMetadataUniversalIdentifier).toBe( + otherField.universalIdentifier, + ); + expect(result[1].position).toBe(1); + }); + + it('should exclude label identifier when excludeLabelIdentifier is true', () => { + const labelField = makeFieldMetadata({ + name: 'name', + type: FieldMetadataType.TEXT, + }); + const otherField = makeFieldMetadata({ + name: 'createdAt', + type: FieldMetadataType.DATE_TIME, + }); + + const result = computeFlatViewFieldsToCreate({ + objectFlatFieldMetadatas: [labelField, otherField], + viewUniversalIdentifier, + flatApplication, + labelIdentifierFieldMetadataUniversalIdentifier: + labelField.universalIdentifier, + excludeLabelIdentifier: true, + }); + + expect(result).toHaveLength(1); + expect(result[0].fieldMetadataUniversalIdentifier).toBe( + otherField.universalIdentifier, + ); + }); +}); diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/compute-flat-view-fields-to-create.util.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/compute-flat-view-fields-to-create.util.ts index 534d885592..cf05bcb568 100644 --- a/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/compute-flat-view-fields-to-create.util.ts +++ b/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/compute-flat-view-fields-to-create.util.ts @@ -11,22 +11,30 @@ export const computeFlatViewFieldsToCreate = ({ viewUniversalIdentifier, flatApplication, labelIdentifierFieldMetadataUniversalIdentifier, + excludeLabelIdentifier = false, }: { flatApplication: FlatApplication; objectFlatFieldMetadatas: UniversalFlatFieldMetadata[]; viewUniversalIdentifier: string; labelIdentifierFieldMetadataUniversalIdentifier: string | null; + excludeLabelIdentifier?: boolean; }): UniversalFlatViewField[] => { const createdAt = new Date().toISOString(); const defaultViewFields = objectFlatFieldMetadatas .filter( (field) => field.name !== 'deletedAt' && + field.type !== FieldMetadataType.TS_VECTOR && + field.type !== FieldMetadataType.POSITION && field.type !== FieldMetadataType.MORPH_RELATION && field.type !== FieldMetadataType.RELATION && // Include 'id' only if it's the label identifier (e.g., for junction tables) (field.name !== 'id' || field.universalIdentifier === + labelIdentifierFieldMetadataUniversalIdentifier) && + // Exclude label identifier field when requested (e.g., for FIELDS_WIDGET views) + (!excludeLabelIdentifier || + field.universalIdentifier !== labelIdentifierFieldMetadataUniversalIdentifier), ) .sort((a, b) => { diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap index 5475120101..e1f7c233e8 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 @@ -1,4 +1,4 @@ -// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing +// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`getStandardObjectMetadataRelatedEntityIds should return standard object metadata related entity ids 1`] = ` { @@ -139,7 +139,7 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "id": "00000000-0000-0000-0000-000000000038", }, }, - "id": "00000000-0000-0000-0000-000000000054", + "id": "00000000-0000-0000-0000-000000000053", "views": { "allBlocklists": { "id": "00000000-0000-0000-0000-000000000046", @@ -158,27 +158,24 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "viewGroups": {}, }, "blocklistRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000053", + "id": "00000000-0000-0000-0000-000000000052", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000051", + "id": "00000000-0000-0000-0000-000000000050", }, "other": { - "id": "00000000-0000-0000-0000-000000000052", + "id": "00000000-0000-0000-0000-000000000051", }, }, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000049", + "id": "00000000-0000-0000-0000-000000000048", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000050", - }, - "handle": { - "id": "00000000-0000-0000-0000-000000000047", + "id": "00000000-0000-0000-0000-000000000049", }, "workspaceMember": { - "id": "00000000-0000-0000-0000-000000000048", + "id": "00000000-0000-0000-0000-000000000047", }, }, "viewGroups": {}, @@ -188,128 +185,125 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "calendarChannel": { "fields": { "calendarChannelEventAssociations": { - "id": "00000000-0000-0000-0000-000000000092", - }, - "connectedAccount": { - "id": "00000000-0000-0000-0000-000000000085", - }, - "contactAutoCreationPolicy": { - "id": "00000000-0000-0000-0000-000000000089", - }, - "createdAt": { - "id": "00000000-0000-0000-0000-000000000082", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000098", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000084", - }, - "handle": { - "id": "00000000-0000-0000-0000-000000000086", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000081", - }, - "isContactAutoCreationEnabled": { - "id": "00000000-0000-0000-0000-000000000088", - }, - "isSyncEnabled": { - "id": "00000000-0000-0000-0000-000000000090", - }, - "position": { - "id": "00000000-0000-0000-0000-000000000100", - }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000101", - }, - "syncCursor": { "id": "00000000-0000-0000-0000-000000000091", }, - "syncStage": { - "id": "00000000-0000-0000-0000-000000000095", + "connectedAccount": { + "id": "00000000-0000-0000-0000-000000000084", }, - "syncStageStartedAt": { - "id": "00000000-0000-0000-0000-000000000096", + "contactAutoCreationPolicy": { + "id": "00000000-0000-0000-0000-000000000088", }, - "syncStatus": { - "id": "00000000-0000-0000-0000-000000000094", + "createdAt": { + "id": "00000000-0000-0000-0000-000000000081", }, - "syncedAt": { + "createdBy": { "id": "00000000-0000-0000-0000-000000000097", }, - "throttleFailureCount": { - "id": "00000000-0000-0000-0000-000000000093", - }, - "updatedAt": { + "deletedAt": { "id": "00000000-0000-0000-0000-000000000083", }, - "updatedBy": { - "id": "00000000-0000-0000-0000-000000000099", + "handle": { + "id": "00000000-0000-0000-0000-000000000085", }, - "visibility": { + "id": { + "id": "00000000-0000-0000-0000-000000000080", + }, + "isContactAutoCreationEnabled": { "id": "00000000-0000-0000-0000-000000000087", }, + "isSyncEnabled": { + "id": "00000000-0000-0000-0000-000000000089", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000099", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000100", + }, + "syncCursor": { + "id": "00000000-0000-0000-0000-000000000090", + }, + "syncStage": { + "id": "00000000-0000-0000-0000-000000000094", + }, + "syncStageStartedAt": { + "id": "00000000-0000-0000-0000-000000000095", + }, + "syncStatus": { + "id": "00000000-0000-0000-0000-000000000093", + }, + "syncedAt": { + "id": "00000000-0000-0000-0000-000000000096", + }, + "throttleFailureCount": { + "id": "00000000-0000-0000-0000-000000000092", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000082", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000098", + }, + "visibility": { + "id": "00000000-0000-0000-0000-000000000086", + }, }, - "id": "00000000-0000-0000-0000-000000000119", + "id": "00000000-0000-0000-0000-000000000117", "views": { "allCalendarChannels": { - "id": "00000000-0000-0000-0000-000000000108", + "id": "00000000-0000-0000-0000-000000000107", "viewFieldGroups": {}, "viewFields": { "connectedAccount": { - "id": "00000000-0000-0000-0000-000000000103", - }, - "createdAt": { - "id": "00000000-0000-0000-0000-000000000107", - }, - "handle": { "id": "00000000-0000-0000-0000-000000000102", }, - "isSyncEnabled": { - "id": "00000000-0000-0000-0000-000000000105", - }, - "syncStatus": { + "createdAt": { "id": "00000000-0000-0000-0000-000000000106", }, - "visibility": { + "handle": { + "id": "00000000-0000-0000-0000-000000000101", + }, + "isSyncEnabled": { "id": "00000000-0000-0000-0000-000000000104", }, + "syncStatus": { + "id": "00000000-0000-0000-0000-000000000105", + }, + "visibility": { + "id": "00000000-0000-0000-0000-000000000103", + }, }, "viewGroups": {}, }, "calendarChannelRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000118", + "id": "00000000-0000-0000-0000-000000000116", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000116", + "id": "00000000-0000-0000-0000-000000000114", }, "other": { - "id": "00000000-0000-0000-0000-000000000117", + "id": "00000000-0000-0000-0000-000000000115", }, }, "viewFields": { "connectedAccount": { - "id": "00000000-0000-0000-0000-000000000110", + "id": "00000000-0000-0000-0000-000000000108", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000114", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000115", - }, - "handle": { - "id": "00000000-0000-0000-0000-000000000109", - }, - "isSyncEnabled": { "id": "00000000-0000-0000-0000-000000000112", }, - "syncStatus": { + "createdBy": { "id": "00000000-0000-0000-0000-000000000113", }, - "visibility": { + "isSyncEnabled": { + "id": "00000000-0000-0000-0000-000000000110", + }, + "syncStatus": { "id": "00000000-0000-0000-0000-000000000111", }, + "visibility": { + "id": "00000000-0000-0000-0000-000000000109", + }, }, "viewGroups": {}, }, @@ -318,88 +312,88 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "calendarChannelEventAssociation": { "fields": { "calendarChannel": { - "id": "00000000-0000-0000-0000-000000000059", - }, - "calendarEvent": { - "id": "00000000-0000-0000-0000-000000000060", - }, - "createdAt": { - "id": "00000000-0000-0000-0000-000000000056", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000063", - }, - "deletedAt": { "id": "00000000-0000-0000-0000-000000000058", }, - "eventExternalId": { - "id": "00000000-0000-0000-0000-000000000061", + "calendarEvent": { + "id": "00000000-0000-0000-0000-000000000059", }, - "id": { + "createdAt": { "id": "00000000-0000-0000-0000-000000000055", }, - "position": { - "id": "00000000-0000-0000-0000-000000000065", - }, - "recurringEventExternalId": { + "createdBy": { "id": "00000000-0000-0000-0000-000000000062", }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000066", - }, - "updatedAt": { + "deletedAt": { "id": "00000000-0000-0000-0000-000000000057", }, - "updatedBy": { + "eventExternalId": { + "id": "00000000-0000-0000-0000-000000000060", + }, + "id": { + "id": "00000000-0000-0000-0000-000000000054", + }, + "position": { "id": "00000000-0000-0000-0000-000000000064", }, + "recurringEventExternalId": { + "id": "00000000-0000-0000-0000-000000000061", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000065", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000056", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000063", + }, }, - "id": "00000000-0000-0000-0000-000000000080", + "id": "00000000-0000-0000-0000-000000000079", "views": { "allCalendarChannelEventAssociations": { - "id": "00000000-0000-0000-0000-000000000071", + "id": "00000000-0000-0000-0000-000000000070", "viewFieldGroups": {}, "viewFields": { "calendarChannel": { - "id": "00000000-0000-0000-0000-000000000067", + "id": "00000000-0000-0000-0000-000000000066", }, "calendarEvent": { - "id": "00000000-0000-0000-0000-000000000068", + "id": "00000000-0000-0000-0000-000000000067", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000070", + "id": "00000000-0000-0000-0000-000000000069", }, "eventExternalId": { - "id": "00000000-0000-0000-0000-000000000069", + "id": "00000000-0000-0000-0000-000000000068", }, }, "viewGroups": {}, }, "calendarChannelEventAssociationRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000079", + "id": "00000000-0000-0000-0000-000000000078", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000077", + "id": "00000000-0000-0000-0000-000000000076", }, "other": { - "id": "00000000-0000-0000-0000-000000000078", + "id": "00000000-0000-0000-0000-000000000077", }, }, "viewFields": { "calendarChannel": { - "id": "00000000-0000-0000-0000-000000000072", + "id": "00000000-0000-0000-0000-000000000071", }, "calendarEvent": { - "id": "00000000-0000-0000-0000-000000000073", + "id": "00000000-0000-0000-0000-000000000072", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000075", + "id": "00000000-0000-0000-0000-000000000074", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000076", + "id": "00000000-0000-0000-0000-000000000075", }, "eventExternalId": { - "id": "00000000-0000-0000-0000-000000000074", + "id": "00000000-0000-0000-0000-000000000073", }, }, "viewGroups": {}, @@ -409,101 +403,101 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "calendarEvent": { "fields": { "calendarChannelEventAssociations": { - "id": "00000000-0000-0000-0000-000000000173", - }, - "calendarEventParticipants": { - "id": "00000000-0000-0000-0000-000000000174", - }, - "conferenceLink": { - "id": "00000000-0000-0000-0000-000000000172", - }, - "conferenceSolution": { "id": "00000000-0000-0000-0000-000000000171", }, - "createdAt": { - "id": "00000000-0000-0000-0000-000000000158", + "calendarEventParticipants": { + "id": "00000000-0000-0000-0000-000000000172", }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000175", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000160", - }, - "description": { - "id": "00000000-0000-0000-0000-000000000168", - }, - "endsAt": { - "id": "00000000-0000-0000-0000-000000000165", - }, - "externalCreatedAt": { - "id": "00000000-0000-0000-0000-000000000166", - }, - "externalUpdatedAt": { - "id": "00000000-0000-0000-0000-000000000167", - }, - "iCalUid": { + "conferenceLink": { "id": "00000000-0000-0000-0000-000000000170", }, - "id": { - "id": "00000000-0000-0000-0000-000000000157", - }, - "isCanceled": { - "id": "00000000-0000-0000-0000-000000000162", - }, - "isFullDay": { - "id": "00000000-0000-0000-0000-000000000163", - }, - "location": { + "conferenceSolution": { "id": "00000000-0000-0000-0000-000000000169", }, - "position": { - "id": "00000000-0000-0000-0000-000000000177", + "createdAt": { + "id": "00000000-0000-0000-0000-000000000156", }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000178", + "createdBy": { + "id": "00000000-0000-0000-0000-000000000173", }, - "startsAt": { + "deletedAt": { + "id": "00000000-0000-0000-0000-000000000158", + }, + "description": { + "id": "00000000-0000-0000-0000-000000000166", + }, + "endsAt": { + "id": "00000000-0000-0000-0000-000000000163", + }, + "externalCreatedAt": { "id": "00000000-0000-0000-0000-000000000164", }, - "title": { + "externalUpdatedAt": { + "id": "00000000-0000-0000-0000-000000000165", + }, + "iCalUid": { + "id": "00000000-0000-0000-0000-000000000168", + }, + "id": { + "id": "00000000-0000-0000-0000-000000000155", + }, + "isCanceled": { + "id": "00000000-0000-0000-0000-000000000160", + }, + "isFullDay": { "id": "00000000-0000-0000-0000-000000000161", }, - "updatedAt": { - "id": "00000000-0000-0000-0000-000000000159", + "location": { + "id": "00000000-0000-0000-0000-000000000167", }, - "updatedBy": { + "position": { + "id": "00000000-0000-0000-0000-000000000175", + }, + "searchVector": { "id": "00000000-0000-0000-0000-000000000176", }, + "startsAt": { + "id": "00000000-0000-0000-0000-000000000162", + }, + "title": { + "id": "00000000-0000-0000-0000-000000000159", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000157", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000174", + }, }, - "id": "00000000-0000-0000-0000-000000000188", + "id": "00000000-0000-0000-0000-000000000186", "views": { "allCalendarEvents": { - "id": "00000000-0000-0000-0000-000000000187", + "id": "00000000-0000-0000-0000-000000000185", "viewFieldGroups": {}, "viewFields": { "conferenceLink": { - "id": "00000000-0000-0000-0000-000000000184", - }, - "createdAt": { - "id": "00000000-0000-0000-0000-000000000186", - }, - "endsAt": { - "id": "00000000-0000-0000-0000-000000000181", - }, - "isCanceled": { - "id": "00000000-0000-0000-0000-000000000185", - }, - "isFullDay": { "id": "00000000-0000-0000-0000-000000000182", }, - "location": { + "createdAt": { + "id": "00000000-0000-0000-0000-000000000184", + }, + "endsAt": { + "id": "00000000-0000-0000-0000-000000000179", + }, + "isCanceled": { "id": "00000000-0000-0000-0000-000000000183", }, - "startsAt": { + "isFullDay": { "id": "00000000-0000-0000-0000-000000000180", }, + "location": { + "id": "00000000-0000-0000-0000-000000000181", + }, + "startsAt": { + "id": "00000000-0000-0000-0000-000000000178", + }, "title": { - "id": "00000000-0000-0000-0000-000000000179", + "id": "00000000-0000-0000-0000-000000000177", }, }, "viewGroups": {}, @@ -513,121 +507,121 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "calendarEventParticipant": { "fields": { "calendarEvent": { - "id": "00000000-0000-0000-0000-000000000124", - }, - "createdAt": { - "id": "00000000-0000-0000-0000-000000000121", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000131", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000123", - }, - "displayName": { - "id": "00000000-0000-0000-0000-000000000126", - }, - "handle": { - "id": "00000000-0000-0000-0000-000000000125", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000120", - }, - "isOrganizer": { - "id": "00000000-0000-0000-0000-000000000127", - }, - "person": { - "id": "00000000-0000-0000-0000-000000000129", - }, - "position": { - "id": "00000000-0000-0000-0000-000000000133", - }, - "responseStatus": { - "id": "00000000-0000-0000-0000-000000000128", - }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000134", - }, - "updatedAt": { "id": "00000000-0000-0000-0000-000000000122", }, - "updatedBy": { + "createdAt": { + "id": "00000000-0000-0000-0000-000000000119", + }, + "createdBy": { + "id": "00000000-0000-0000-0000-000000000129", + }, + "deletedAt": { + "id": "00000000-0000-0000-0000-000000000121", + }, + "displayName": { + "id": "00000000-0000-0000-0000-000000000124", + }, + "handle": { + "id": "00000000-0000-0000-0000-000000000123", + }, + "id": { + "id": "00000000-0000-0000-0000-000000000118", + }, + "isOrganizer": { + "id": "00000000-0000-0000-0000-000000000125", + }, + "person": { + "id": "00000000-0000-0000-0000-000000000127", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000131", + }, + "responseStatus": { + "id": "00000000-0000-0000-0000-000000000126", + }, + "searchVector": { "id": "00000000-0000-0000-0000-000000000132", }, - "workspaceMember": { + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000120", + }, + "updatedBy": { "id": "00000000-0000-0000-0000-000000000130", }, + "workspaceMember": { + "id": "00000000-0000-0000-0000-000000000128", + }, }, - "id": "00000000-0000-0000-0000-000000000156", + "id": "00000000-0000-0000-0000-000000000154", "views": { "allCalendarEventParticipants": { - "id": "00000000-0000-0000-0000-000000000143", + "id": "00000000-0000-0000-0000-000000000141", "viewFieldGroups": {}, "viewFields": { "calendarEvent": { - "id": "00000000-0000-0000-0000-000000000135", + "id": "00000000-0000-0000-0000-000000000133", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000142", - }, - "displayName": { - "id": "00000000-0000-0000-0000-000000000137", - }, - "handle": { - "id": "00000000-0000-0000-0000-000000000136", - }, - "isOrganizer": { - "id": "00000000-0000-0000-0000-000000000138", - }, - "person": { "id": "00000000-0000-0000-0000-000000000140", }, + "displayName": { + "id": "00000000-0000-0000-0000-000000000135", + }, + "handle": { + "id": "00000000-0000-0000-0000-000000000134", + }, + "isOrganizer": { + "id": "00000000-0000-0000-0000-000000000136", + }, + "person": { + "id": "00000000-0000-0000-0000-000000000138", + }, "responseStatus": { - "id": "00000000-0000-0000-0000-000000000139", + "id": "00000000-0000-0000-0000-000000000137", }, "workspaceMember": { - "id": "00000000-0000-0000-0000-000000000141", + "id": "00000000-0000-0000-0000-000000000139", }, }, "viewGroups": {}, }, "calendarEventParticipantRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000155", + "id": "00000000-0000-0000-0000-000000000153", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000153", + "id": "00000000-0000-0000-0000-000000000151", }, "other": { - "id": "00000000-0000-0000-0000-000000000154", + "id": "00000000-0000-0000-0000-000000000152", }, }, "viewFields": { "calendarEvent": { - "id": "00000000-0000-0000-0000-000000000144", + "id": "00000000-0000-0000-0000-000000000142", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000151", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000152", - }, - "displayName": { - "id": "00000000-0000-0000-0000-000000000146", - }, - "handle": { - "id": "00000000-0000-0000-0000-000000000145", - }, - "isOrganizer": { - "id": "00000000-0000-0000-0000-000000000147", - }, - "person": { "id": "00000000-0000-0000-0000-000000000149", }, + "createdBy": { + "id": "00000000-0000-0000-0000-000000000150", + }, + "displayName": { + "id": "00000000-0000-0000-0000-000000000144", + }, + "handle": { + "id": "00000000-0000-0000-0000-000000000143", + }, + "isOrganizer": { + "id": "00000000-0000-0000-0000-000000000145", + }, + "person": { + "id": "00000000-0000-0000-0000-000000000147", + }, "responseStatus": { - "id": "00000000-0000-0000-0000-000000000148", + "id": "00000000-0000-0000-0000-000000000146", }, "workspaceMember": { - "id": "00000000-0000-0000-0000-000000000150", + "id": "00000000-0000-0000-0000-000000000148", }, }, "viewGroups": {}, @@ -637,155 +631,182 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "company": { "fields": { "accountOwner": { - "id": "00000000-0000-0000-0000-000000000205", - }, - "address": { - "id": "00000000-0000-0000-0000-000000000195", - }, - "annualRecurringRevenue": { - "id": "00000000-0000-0000-0000-000000000199", - }, - "attachments": { - "id": "00000000-0000-0000-0000-000000000210", - }, - "createdAt": { - "id": "00000000-0000-0000-0000-000000000190", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000202", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000192", - }, - "domainName": { - "id": "00000000-0000-0000-0000-000000000194", - }, - "employees": { - "id": "00000000-0000-0000-0000-000000000196", - }, - "favorites": { - "id": "00000000-0000-0000-0000-000000000209", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000189", - }, - "idealCustomerProfile": { - "id": "00000000-0000-0000-0000-000000000200", - }, - "linkedinLink": { - "id": "00000000-0000-0000-0000-000000000197", - }, - "name": { - "id": "00000000-0000-0000-0000-000000000193", - }, - "noteTargets": { - "id": "00000000-0000-0000-0000-000000000207", - }, - "opportunities": { - "id": "00000000-0000-0000-0000-000000000208", - }, - "people": { - "id": "00000000-0000-0000-0000-000000000204", - }, - "position": { - "id": "00000000-0000-0000-0000-000000000201", - }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000212", - }, - "taskTargets": { - "id": "00000000-0000-0000-0000-000000000206", - }, - "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000211", - }, - "updatedAt": { - "id": "00000000-0000-0000-0000-000000000191", - }, - "updatedBy": { "id": "00000000-0000-0000-0000-000000000203", }, - "xLink": { + "address": { + "id": "00000000-0000-0000-0000-000000000193", + }, + "annualRecurringRevenue": { + "id": "00000000-0000-0000-0000-000000000197", + }, + "attachments": { + "id": "00000000-0000-0000-0000-000000000208", + }, + "createdAt": { + "id": "00000000-0000-0000-0000-000000000188", + }, + "createdBy": { + "id": "00000000-0000-0000-0000-000000000200", + }, + "deletedAt": { + "id": "00000000-0000-0000-0000-000000000190", + }, + "domainName": { + "id": "00000000-0000-0000-0000-000000000192", + }, + "employees": { + "id": "00000000-0000-0000-0000-000000000194", + }, + "favorites": { + "id": "00000000-0000-0000-0000-000000000207", + }, + "id": { + "id": "00000000-0000-0000-0000-000000000187", + }, + "idealCustomerProfile": { "id": "00000000-0000-0000-0000-000000000198", }, + "linkedinLink": { + "id": "00000000-0000-0000-0000-000000000195", + }, + "name": { + "id": "00000000-0000-0000-0000-000000000191", + }, + "noteTargets": { + "id": "00000000-0000-0000-0000-000000000205", + }, + "opportunities": { + "id": "00000000-0000-0000-0000-000000000206", + }, + "people": { + "id": "00000000-0000-0000-0000-000000000202", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000199", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000210", + }, + "taskTargets": { + "id": "00000000-0000-0000-0000-000000000204", + }, + "timelineActivities": { + "id": "00000000-0000-0000-0000-000000000209", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000189", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000201", + }, + "xLink": { + "id": "00000000-0000-0000-0000-000000000196", + }, }, - "id": "00000000-0000-0000-0000-000000000236", + "id": "00000000-0000-0000-0000-000000000243", "views": { "allCompanies": { - "id": "00000000-0000-0000-0000-000000000221", + "id": "00000000-0000-0000-0000-000000000219", "viewFieldGroups": {}, "viewFields": { "accountOwner": { - "id": "00000000-0000-0000-0000-000000000216", - }, - "address": { - "id": "00000000-0000-0000-0000-000000000220", - }, - "createdAt": { - "id": "00000000-0000-0000-0000-000000000217", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000215", - }, - "domainName": { "id": "00000000-0000-0000-0000-000000000214", }, - "employees": { + "address": { "id": "00000000-0000-0000-0000-000000000218", }, + "createdAt": { + "id": "00000000-0000-0000-0000-000000000215", + }, + "createdBy": { + "id": "00000000-0000-0000-0000-000000000213", + }, + "domainName": { + "id": "00000000-0000-0000-0000-000000000212", + }, + "employees": { + "id": "00000000-0000-0000-0000-000000000216", + }, "linkedinLink": { - "id": "00000000-0000-0000-0000-000000000219", + "id": "00000000-0000-0000-0000-000000000217", }, "name": { - "id": "00000000-0000-0000-0000-000000000213", + "id": "00000000-0000-0000-0000-000000000211", }, }, "viewGroups": {}, }, "companyRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000235", + "id": "00000000-0000-0000-0000-000000000242", "viewFieldGroups": { "additional": { - "id": "00000000-0000-0000-0000-000000000233", + "id": "00000000-0000-0000-0000-000000000240", }, "general": { - "id": "00000000-0000-0000-0000-000000000232", + "id": "00000000-0000-0000-0000-000000000239", }, "other": { - "id": "00000000-0000-0000-0000-000000000234", + "id": "00000000-0000-0000-0000-000000000241", }, }, "viewFields": { "accountOwner": { - "id": "00000000-0000-0000-0000-000000000223", + "id": "00000000-0000-0000-0000-000000000221", }, "address": { - "id": "00000000-0000-0000-0000-000000000229", - }, - "annualRecurringRevenue": { - "id": "00000000-0000-0000-0000-000000000224", - }, - "createdAt": { - "id": "00000000-0000-0000-0000-000000000230", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000231", - }, - "domainName": { - "id": "00000000-0000-0000-0000-000000000222", - }, - "employees": { - "id": "00000000-0000-0000-0000-000000000226", - }, - "idealCustomerProfile": { - "id": "00000000-0000-0000-0000-000000000225", - }, - "linkedinLink": { "id": "00000000-0000-0000-0000-000000000227", }, - "xLink": { + "annualRecurringRevenue": { + "id": "00000000-0000-0000-0000-000000000222", + }, + "attachments": { + "id": "00000000-0000-0000-0000-000000000237", + }, + "createdAt": { "id": "00000000-0000-0000-0000-000000000228", }, + "createdBy": { + "id": "00000000-0000-0000-0000-000000000229", + }, + "domainName": { + "id": "00000000-0000-0000-0000-000000000220", + }, + "employees": { + "id": "00000000-0000-0000-0000-000000000224", + }, + "favorites": { + "id": "00000000-0000-0000-0000-000000000236", + }, + "idealCustomerProfile": { + "id": "00000000-0000-0000-0000-000000000223", + }, + "linkedinLink": { + "id": "00000000-0000-0000-0000-000000000225", + }, + "noteTargets": { + "id": "00000000-0000-0000-0000-000000000234", + }, + "opportunities": { + "id": "00000000-0000-0000-0000-000000000235", + }, + "people": { + "id": "00000000-0000-0000-0000-000000000232", + }, + "taskTargets": { + "id": "00000000-0000-0000-0000-000000000233", + }, + "timelineActivities": { + "id": "00000000-0000-0000-0000-000000000238", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000230", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000231", + }, + "xLink": { + "id": "00000000-0000-0000-0000-000000000226", + }, }, "viewGroups": {}, }, @@ -794,121 +815,118 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "connectedAccount": { "fields": { "accessToken": { - "id": "00000000-0000-0000-0000-000000000243", - }, - "accountOwner": { - "id": "00000000-0000-0000-0000-000000000245", - }, - "authFailedAt": { - "id": "00000000-0000-0000-0000-000000000247", - }, - "calendarChannels": { "id": "00000000-0000-0000-0000-000000000250", }, - "connectionParameters": { - "id": "00000000-0000-0000-0000-000000000253", - }, - "createdAt": { - "id": "00000000-0000-0000-0000-000000000238", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000254", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000240", - }, - "handle": { - "id": "00000000-0000-0000-0000-000000000241", - }, - "handleAliases": { - "id": "00000000-0000-0000-0000-000000000251", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000237", - }, - "lastCredentialsRefreshedAt": { - "id": "00000000-0000-0000-0000-000000000248", - }, - "lastSyncHistoryId": { - "id": "00000000-0000-0000-0000-000000000246", - }, - "messageChannels": { - "id": "00000000-0000-0000-0000-000000000249", - }, - "position": { - "id": "00000000-0000-0000-0000-000000000256", - }, - "provider": { - "id": "00000000-0000-0000-0000-000000000242", - }, - "refreshToken": { - "id": "00000000-0000-0000-0000-000000000244", - }, - "scopes": { + "accountOwner": { "id": "00000000-0000-0000-0000-000000000252", }, - "searchVector": { + "authFailedAt": { + "id": "00000000-0000-0000-0000-000000000254", + }, + "calendarChannels": { "id": "00000000-0000-0000-0000-000000000257", }, - "updatedAt": { - "id": "00000000-0000-0000-0000-000000000239", + "connectionParameters": { + "id": "00000000-0000-0000-0000-000000000260", }, - "updatedBy": { + "createdAt": { + "id": "00000000-0000-0000-0000-000000000245", + }, + "createdBy": { + "id": "00000000-0000-0000-0000-000000000261", + }, + "deletedAt": { + "id": "00000000-0000-0000-0000-000000000247", + }, + "handle": { + "id": "00000000-0000-0000-0000-000000000248", + }, + "handleAliases": { + "id": "00000000-0000-0000-0000-000000000258", + }, + "id": { + "id": "00000000-0000-0000-0000-000000000244", + }, + "lastCredentialsRefreshedAt": { "id": "00000000-0000-0000-0000-000000000255", }, + "lastSyncHistoryId": { + "id": "00000000-0000-0000-0000-000000000253", + }, + "messageChannels": { + "id": "00000000-0000-0000-0000-000000000256", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000263", + }, + "provider": { + "id": "00000000-0000-0000-0000-000000000249", + }, + "refreshToken": { + "id": "00000000-0000-0000-0000-000000000251", + }, + "scopes": { + "id": "00000000-0000-0000-0000-000000000259", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000264", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000246", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000262", + }, }, - "id": "00000000-0000-0000-0000-000000000273", + "id": "00000000-0000-0000-0000-000000000279", "views": { "allConnectedAccounts": { - "id": "00000000-0000-0000-0000-000000000263", + "id": "00000000-0000-0000-0000-000000000270", "viewFieldGroups": {}, "viewFields": { "accountOwner": { - "id": "00000000-0000-0000-0000-000000000260", + "id": "00000000-0000-0000-0000-000000000267", }, "authFailedAt": { - "id": "00000000-0000-0000-0000-000000000261", + "id": "00000000-0000-0000-0000-000000000268", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000262", + "id": "00000000-0000-0000-0000-000000000269", }, "handle": { - "id": "00000000-0000-0000-0000-000000000258", + "id": "00000000-0000-0000-0000-000000000265", }, "provider": { - "id": "00000000-0000-0000-0000-000000000259", + "id": "00000000-0000-0000-0000-000000000266", }, }, "viewGroups": {}, }, "connectedAccountRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000272", + "id": "00000000-0000-0000-0000-000000000278", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000270", + "id": "00000000-0000-0000-0000-000000000276", }, "other": { - "id": "00000000-0000-0000-0000-000000000271", + "id": "00000000-0000-0000-0000-000000000277", }, }, "viewFields": { "accountOwner": { - "id": "00000000-0000-0000-0000-000000000266", + "id": "00000000-0000-0000-0000-000000000272", }, "authFailedAt": { - "id": "00000000-0000-0000-0000-000000000267", + "id": "00000000-0000-0000-0000-000000000273", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000268", + "id": "00000000-0000-0000-0000-000000000274", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000269", - }, - "handle": { - "id": "00000000-0000-0000-0000-000000000264", + "id": "00000000-0000-0000-0000-000000000275", }, "provider": { - "id": "00000000-0000-0000-0000-000000000265", + "id": "00000000-0000-0000-0000-000000000271", }, }, "viewGroups": {}, @@ -918,62 +936,62 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "dashboard": { "fields": { "attachments": { - "id": "00000000-0000-0000-0000-000000000285", + "id": "00000000-0000-0000-0000-000000000291", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000275", - }, - "createdBy": { "id": "00000000-0000-0000-0000-000000000281", }, + "createdBy": { + "id": "00000000-0000-0000-0000-000000000287", + }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000277", - }, - "favorites": { - "id": "00000000-0000-0000-0000-000000000284", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000274", - }, - "pageLayoutId": { - "id": "00000000-0000-0000-0000-000000000280", - }, - "position": { - "id": "00000000-0000-0000-0000-000000000279", - }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000286", - }, - "timelineActivities": { "id": "00000000-0000-0000-0000-000000000283", }, + "favorites": { + "id": "00000000-0000-0000-0000-000000000290", + }, + "id": { + "id": "00000000-0000-0000-0000-000000000280", + }, + "pageLayoutId": { + "id": "00000000-0000-0000-0000-000000000286", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000285", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000292", + }, + "timelineActivities": { + "id": "00000000-0000-0000-0000-000000000289", + }, "title": { - "id": "00000000-0000-0000-0000-000000000278", + "id": "00000000-0000-0000-0000-000000000284", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000276", - }, - "updatedBy": { "id": "00000000-0000-0000-0000-000000000282", }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000288", + }, }, - "id": "00000000-0000-0000-0000-000000000292", + "id": "00000000-0000-0000-0000-000000000298", "views": { "allDashboards": { - "id": "00000000-0000-0000-0000-000000000291", + "id": "00000000-0000-0000-0000-000000000297", "viewFieldGroups": {}, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000289", + "id": "00000000-0000-0000-0000-000000000295", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000288", + "id": "00000000-0000-0000-0000-000000000294", }, "title": { - "id": "00000000-0000-0000-0000-000000000287", + "id": "00000000-0000-0000-0000-000000000293", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000290", + "id": "00000000-0000-0000-0000-000000000296", }, }, "viewGroups": {}, @@ -983,142 +1001,142 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "favorite": { "fields": { "company": { - "id": "00000000-0000-0000-0000-000000000300", - }, - "createdAt": { - "id": "00000000-0000-0000-0000-000000000294", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000310", - }, - "dashboard": { - "id": "00000000-0000-0000-0000-000000000309", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000296", - }, - "favoriteFolder": { - "id": "00000000-0000-0000-0000-000000000308", - }, - "forWorkspaceMember": { - "id": "00000000-0000-0000-0000-000000000298", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000293", - }, - "note": { "id": "00000000-0000-0000-0000-000000000306", }, - "opportunity": { - "id": "00000000-0000-0000-0000-000000000301", + "createdAt": { + "id": "00000000-0000-0000-0000-000000000300", }, - "person": { - "id": "00000000-0000-0000-0000-000000000299", + "createdBy": { + "id": "00000000-0000-0000-0000-000000000316", }, - "position": { - "id": "00000000-0000-0000-0000-000000000297", + "dashboard": { + "id": "00000000-0000-0000-0000-000000000315", }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000312", - }, - "task": { - "id": "00000000-0000-0000-0000-000000000305", - }, - "updatedAt": { - "id": "00000000-0000-0000-0000-000000000295", - }, - "updatedBy": { - "id": "00000000-0000-0000-0000-000000000311", - }, - "viewId": { - "id": "00000000-0000-0000-0000-000000000307", - }, - "workflow": { + "deletedAt": { "id": "00000000-0000-0000-0000-000000000302", }, - "workflowRun": { + "favoriteFolder": { + "id": "00000000-0000-0000-0000-000000000314", + }, + "forWorkspaceMember": { "id": "00000000-0000-0000-0000-000000000304", }, - "workflowVersion": { + "id": { + "id": "00000000-0000-0000-0000-000000000299", + }, + "note": { + "id": "00000000-0000-0000-0000-000000000312", + }, + "opportunity": { + "id": "00000000-0000-0000-0000-000000000307", + }, + "person": { + "id": "00000000-0000-0000-0000-000000000305", + }, + "position": { "id": "00000000-0000-0000-0000-000000000303", }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000318", + }, + "task": { + "id": "00000000-0000-0000-0000-000000000311", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000301", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000317", + }, + "viewId": { + "id": "00000000-0000-0000-0000-000000000313", + }, + "workflow": { + "id": "00000000-0000-0000-0000-000000000308", + }, + "workflowRun": { + "id": "00000000-0000-0000-0000-000000000310", + }, + "workflowVersion": { + "id": "00000000-0000-0000-0000-000000000309", + }, }, - "id": "00000000-0000-0000-0000-000000000336", + "id": "00000000-0000-0000-0000-000000000342", "views": { "allFavorites": { - "id": "00000000-0000-0000-0000-000000000322", + "id": "00000000-0000-0000-0000-000000000328", "viewFieldGroups": {}, "viewFields": { "company": { - "id": "00000000-0000-0000-0000-000000000315", - }, - "createdAt": { "id": "00000000-0000-0000-0000-000000000321", }, + "createdAt": { + "id": "00000000-0000-0000-0000-000000000327", + }, "dashboard": { - "id": "00000000-0000-0000-0000-000000000319", + "id": "00000000-0000-0000-0000-000000000325", }, "favoriteFolder": { - "id": "00000000-0000-0000-0000-000000000320", + "id": "00000000-0000-0000-0000-000000000326", }, "forWorkspaceMember": { - "id": "00000000-0000-0000-0000-000000000313", + "id": "00000000-0000-0000-0000-000000000319", }, "note": { - "id": "00000000-0000-0000-0000-000000000318", + "id": "00000000-0000-0000-0000-000000000324", }, "opportunity": { - "id": "00000000-0000-0000-0000-000000000316", + "id": "00000000-0000-0000-0000-000000000322", }, "person": { - "id": "00000000-0000-0000-0000-000000000314", + "id": "00000000-0000-0000-0000-000000000320", }, "task": { - "id": "00000000-0000-0000-0000-000000000317", + "id": "00000000-0000-0000-0000-000000000323", }, }, "viewGroups": {}, }, "favoriteRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000335", + "id": "00000000-0000-0000-0000-000000000341", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000333", + "id": "00000000-0000-0000-0000-000000000339", }, "other": { - "id": "00000000-0000-0000-0000-000000000334", + "id": "00000000-0000-0000-0000-000000000340", }, }, "viewFields": { "company": { - "id": "00000000-0000-0000-0000-000000000325", - }, - "createdAt": { "id": "00000000-0000-0000-0000-000000000331", }, + "createdAt": { + "id": "00000000-0000-0000-0000-000000000337", + }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000332", + "id": "00000000-0000-0000-0000-000000000338", }, "dashboard": { - "id": "00000000-0000-0000-0000-000000000329", + "id": "00000000-0000-0000-0000-000000000335", }, "favoriteFolder": { - "id": "00000000-0000-0000-0000-000000000330", + "id": "00000000-0000-0000-0000-000000000336", }, "forWorkspaceMember": { - "id": "00000000-0000-0000-0000-000000000323", + "id": "00000000-0000-0000-0000-000000000329", }, "note": { - "id": "00000000-0000-0000-0000-000000000328", + "id": "00000000-0000-0000-0000-000000000334", }, "opportunity": { - "id": "00000000-0000-0000-0000-000000000326", + "id": "00000000-0000-0000-0000-000000000332", }, "person": { - "id": "00000000-0000-0000-0000-000000000324", + "id": "00000000-0000-0000-0000-000000000330", }, "task": { - "id": "00000000-0000-0000-0000-000000000327", + "id": "00000000-0000-0000-0000-000000000333", }, }, "viewGroups": {}, @@ -1128,70 +1146,67 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "favoriteFolder": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000338", - }, - "createdBy": { "id": "00000000-0000-0000-0000-000000000344", }, + "createdBy": { + "id": "00000000-0000-0000-0000-000000000350", + }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000340", - }, - "favorites": { - "id": "00000000-0000-0000-0000-000000000343", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000337", - }, - "name": { - "id": "00000000-0000-0000-0000-000000000342", - }, - "position": { - "id": "00000000-0000-0000-0000-000000000341", - }, - "searchVector": { "id": "00000000-0000-0000-0000-000000000346", }, - "updatedAt": { - "id": "00000000-0000-0000-0000-000000000339", + "favorites": { + "id": "00000000-0000-0000-0000-000000000349", }, - "updatedBy": { + "id": { + "id": "00000000-0000-0000-0000-000000000343", + }, + "name": { + "id": "00000000-0000-0000-0000-000000000348", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000347", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000352", + }, + "updatedAt": { "id": "00000000-0000-0000-0000-000000000345", }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000351", + }, }, - "id": "00000000-0000-0000-0000-000000000356", + "id": "00000000-0000-0000-0000-000000000361", "views": { "allFavoriteFolders": { - "id": "00000000-0000-0000-0000-000000000349", + "id": "00000000-0000-0000-0000-000000000355", "viewFieldGroups": {}, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000348", + "id": "00000000-0000-0000-0000-000000000354", }, "name": { - "id": "00000000-0000-0000-0000-000000000347", + "id": "00000000-0000-0000-0000-000000000353", }, }, "viewGroups": {}, }, "favoriteFolderRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000355", + "id": "00000000-0000-0000-0000-000000000360", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000353", + "id": "00000000-0000-0000-0000-000000000358", }, "other": { - "id": "00000000-0000-0000-0000-000000000354", + "id": "00000000-0000-0000-0000-000000000359", }, }, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000351", + "id": "00000000-0000-0000-0000-000000000356", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000352", - }, - "name": { - "id": "00000000-0000-0000-0000-000000000350", + "id": "00000000-0000-0000-0000-000000000357", }, }, "viewGroups": {}, @@ -1201,80 +1216,80 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "message": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000540", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000551", - }, - "deletedAt": { "id": "00000000-0000-0000-0000-000000000542", }, - "direction": { - "id": "00000000-0000-0000-0000-000000000545", - }, - "headerMessageId": { - "id": "00000000-0000-0000-0000-000000000543", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000539", - }, - "messageChannelMessageAssociations": { - "id": "00000000-0000-0000-0000-000000000550", - }, - "messageParticipants": { - "id": "00000000-0000-0000-0000-000000000549", - }, - "messageThread": { - "id": "00000000-0000-0000-0000-000000000544", - }, - "position": { + "createdBy": { "id": "00000000-0000-0000-0000-000000000553", }, - "receivedAt": { - "id": "00000000-0000-0000-0000-000000000548", + "deletedAt": { + "id": "00000000-0000-0000-0000-000000000544", }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000554", - }, - "subject": { - "id": "00000000-0000-0000-0000-000000000546", - }, - "text": { + "direction": { "id": "00000000-0000-0000-0000-000000000547", }, - "updatedAt": { + "headerMessageId": { + "id": "00000000-0000-0000-0000-000000000545", + }, + "id": { "id": "00000000-0000-0000-0000-000000000541", }, - "updatedBy": { + "messageChannelMessageAssociations": { "id": "00000000-0000-0000-0000-000000000552", }, + "messageParticipants": { + "id": "00000000-0000-0000-0000-000000000551", + }, + "messageThread": { + "id": "00000000-0000-0000-0000-000000000546", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000555", + }, + "receivedAt": { + "id": "00000000-0000-0000-0000-000000000550", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000556", + }, + "subject": { + "id": "00000000-0000-0000-0000-000000000548", + }, + "text": { + "id": "00000000-0000-0000-0000-000000000549", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000543", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000554", + }, }, - "id": "00000000-0000-0000-0000-000000000563", + "id": "00000000-0000-0000-0000-000000000565", "views": { "allMessages": { - "id": "00000000-0000-0000-0000-000000000562", + "id": "00000000-0000-0000-0000-000000000564", "viewFieldGroups": {}, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000561", + "id": "00000000-0000-0000-0000-000000000563", }, "headerMessageId": { - "id": "00000000-0000-0000-0000-000000000559", + "id": "00000000-0000-0000-0000-000000000561", }, "messageParticipants": { - "id": "00000000-0000-0000-0000-000000000557", + "id": "00000000-0000-0000-0000-000000000559", }, "messageThread": { - "id": "00000000-0000-0000-0000-000000000556", - }, - "receivedAt": { "id": "00000000-0000-0000-0000-000000000558", }, + "receivedAt": { + "id": "00000000-0000-0000-0000-000000000560", + }, "subject": { - "id": "00000000-0000-0000-0000-000000000555", + "id": "00000000-0000-0000-0000-000000000557", }, "text": { - "id": "00000000-0000-0000-0000-000000000560", + "id": "00000000-0000-0000-0000-000000000562", }, }, "viewGroups": {}, @@ -1284,154 +1299,151 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "messageChannel": { "fields": { "connectedAccount": { - "id": "00000000-0000-0000-0000-000000000416", - }, - "contactAutoCreationPolicy": { - "id": "00000000-0000-0000-0000-000000000419", - }, - "createdAt": { - "id": "00000000-0000-0000-0000-000000000411", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000434", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000413", - }, - "excludeGroupEmails": { "id": "00000000-0000-0000-0000-000000000421", }, - "excludeNonProfessionalEmails": { - "id": "00000000-0000-0000-0000-000000000420", - }, - "handle": { - "id": "00000000-0000-0000-0000-000000000415", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000410", - }, - "isContactAutoCreationEnabled": { - "id": "00000000-0000-0000-0000-000000000418", - }, - "isSyncEnabled": { - "id": "00000000-0000-0000-0000-000000000426", - }, - "messageChannelMessageAssociations": { - "id": "00000000-0000-0000-0000-000000000422", - }, - "messageFolderImportPolicy": { + "contactAutoCreationPolicy": { "id": "00000000-0000-0000-0000-000000000424", }, - "messageFolders": { - "id": "00000000-0000-0000-0000-000000000423", + "createdAt": { + "id": "00000000-0000-0000-0000-000000000416", }, - "pendingGroupEmailsAction": { + "createdBy": { + "id": "00000000-0000-0000-0000-000000000439", + }, + "deletedAt": { + "id": "00000000-0000-0000-0000-000000000418", + }, + "excludeGroupEmails": { + "id": "00000000-0000-0000-0000-000000000426", + }, + "excludeNonProfessionalEmails": { "id": "00000000-0000-0000-0000-000000000425", }, - "position": { - "id": "00000000-0000-0000-0000-000000000436", + "handle": { + "id": "00000000-0000-0000-0000-000000000420", }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000437", + "id": { + "id": "00000000-0000-0000-0000-000000000415", }, - "syncCursor": { - "id": "00000000-0000-0000-0000-000000000427", + "isContactAutoCreationEnabled": { + "id": "00000000-0000-0000-0000-000000000423", }, - "syncStage": { - "id": "00000000-0000-0000-0000-000000000430", - }, - "syncStageStartedAt": { + "isSyncEnabled": { "id": "00000000-0000-0000-0000-000000000431", }, - "syncStatus": { + "messageChannelMessageAssociations": { + "id": "00000000-0000-0000-0000-000000000427", + }, + "messageFolderImportPolicy": { "id": "00000000-0000-0000-0000-000000000429", }, - "syncedAt": { + "messageFolders": { "id": "00000000-0000-0000-0000-000000000428", }, - "throttleFailureCount": { + "pendingGroupEmailsAction": { + "id": "00000000-0000-0000-0000-000000000430", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000441", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000442", + }, + "syncCursor": { "id": "00000000-0000-0000-0000-000000000432", }, - "throttleRetryAfter": { - "id": "00000000-0000-0000-0000-000000000433", - }, - "type": { - "id": "00000000-0000-0000-0000-000000000417", - }, - "updatedAt": { - "id": "00000000-0000-0000-0000-000000000412", - }, - "updatedBy": { + "syncStage": { "id": "00000000-0000-0000-0000-000000000435", }, + "syncStageStartedAt": { + "id": "00000000-0000-0000-0000-000000000436", + }, + "syncStatus": { + "id": "00000000-0000-0000-0000-000000000434", + }, + "syncedAt": { + "id": "00000000-0000-0000-0000-000000000433", + }, + "throttleFailureCount": { + "id": "00000000-0000-0000-0000-000000000437", + }, + "throttleRetryAfter": { + "id": "00000000-0000-0000-0000-000000000438", + }, + "type": { + "id": "00000000-0000-0000-0000-000000000422", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000417", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000440", + }, "visibility": { - "id": "00000000-0000-0000-0000-000000000414", + "id": "00000000-0000-0000-0000-000000000419", }, }, - "id": "00000000-0000-0000-0000-000000000457", + "id": "00000000-0000-0000-0000-000000000461", "views": { "allMessageChannels": { - "id": "00000000-0000-0000-0000-000000000445", + "id": "00000000-0000-0000-0000-000000000450", "viewFieldGroups": {}, "viewFields": { "connectedAccount": { - "id": "00000000-0000-0000-0000-000000000439", - }, - "createdAt": { "id": "00000000-0000-0000-0000-000000000444", }, + "createdAt": { + "id": "00000000-0000-0000-0000-000000000449", + }, "handle": { - "id": "00000000-0000-0000-0000-000000000438", - }, - "isSyncEnabled": { - "id": "00000000-0000-0000-0000-000000000442", - }, - "syncStatus": { "id": "00000000-0000-0000-0000-000000000443", }, + "isSyncEnabled": { + "id": "00000000-0000-0000-0000-000000000447", + }, + "syncStatus": { + "id": "00000000-0000-0000-0000-000000000448", + }, "type": { - "id": "00000000-0000-0000-0000-000000000440", + "id": "00000000-0000-0000-0000-000000000445", }, "visibility": { - "id": "00000000-0000-0000-0000-000000000441", + "id": "00000000-0000-0000-0000-000000000446", }, }, "viewGroups": {}, }, "messageChannelRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000456", + "id": "00000000-0000-0000-0000-000000000460", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000454", + "id": "00000000-0000-0000-0000-000000000458", }, "other": { - "id": "00000000-0000-0000-0000-000000000455", + "id": "00000000-0000-0000-0000-000000000459", }, }, "viewFields": { "connectedAccount": { - "id": "00000000-0000-0000-0000-000000000447", - }, - "createdAt": { - "id": "00000000-0000-0000-0000-000000000452", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000453", - }, - "handle": { - "id": "00000000-0000-0000-0000-000000000446", - }, - "isSyncEnabled": { - "id": "00000000-0000-0000-0000-000000000450", - }, - "syncStatus": { "id": "00000000-0000-0000-0000-000000000451", }, + "createdAt": { + "id": "00000000-0000-0000-0000-000000000456", + }, + "createdBy": { + "id": "00000000-0000-0000-0000-000000000457", + }, + "isSyncEnabled": { + "id": "00000000-0000-0000-0000-000000000454", + }, + "syncStatus": { + "id": "00000000-0000-0000-0000-000000000455", + }, "type": { - "id": "00000000-0000-0000-0000-000000000448", + "id": "00000000-0000-0000-0000-000000000452", }, "visibility": { - "id": "00000000-0000-0000-0000-000000000449", + "id": "00000000-0000-0000-0000-000000000453", }, }, "viewGroups": {}, @@ -1441,103 +1453,103 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "messageChannelMessageAssociation": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000358", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000367", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000360", - }, - "direction": { - "id": "00000000-0000-0000-0000-000000000366", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000357", - }, - "message": { - "id": "00000000-0000-0000-0000-000000000362", - }, - "messageChannel": { - "id": "00000000-0000-0000-0000-000000000361", - }, - "messageExternalId": { "id": "00000000-0000-0000-0000-000000000363", }, - "messageFolders": { - "id": "00000000-0000-0000-0000-000000000371", + "createdBy": { + "id": "00000000-0000-0000-0000-000000000372", }, - "messageThread": { - "id": "00000000-0000-0000-0000-000000000364", - }, - "messageThreadExternalId": { + "deletedAt": { "id": "00000000-0000-0000-0000-000000000365", }, - "position": { - "id": "00000000-0000-0000-0000-000000000369", + "direction": { + "id": "00000000-0000-0000-0000-000000000371", }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000370", + "id": { + "id": "00000000-0000-0000-0000-000000000362", }, - "updatedAt": { - "id": "00000000-0000-0000-0000-000000000359", + "message": { + "id": "00000000-0000-0000-0000-000000000367", }, - "updatedBy": { + "messageChannel": { + "id": "00000000-0000-0000-0000-000000000366", + }, + "messageExternalId": { "id": "00000000-0000-0000-0000-000000000368", }, + "messageFolders": { + "id": "00000000-0000-0000-0000-000000000376", + }, + "messageThread": { + "id": "00000000-0000-0000-0000-000000000369", + }, + "messageThreadExternalId": { + "id": "00000000-0000-0000-0000-000000000370", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000374", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000375", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000364", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000373", + }, }, - "id": "00000000-0000-0000-0000-000000000387", + "id": "00000000-0000-0000-0000-000000000392", "views": { "allMessageChannelMessageAssociations": { - "id": "00000000-0000-0000-0000-000000000377", + "id": "00000000-0000-0000-0000-000000000382", "viewFieldGroups": {}, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000376", + "id": "00000000-0000-0000-0000-000000000381", }, "direction": { - "id": "00000000-0000-0000-0000-000000000375", + "id": "00000000-0000-0000-0000-000000000380", }, "message": { - "id": "00000000-0000-0000-0000-000000000373", + "id": "00000000-0000-0000-0000-000000000378", }, "messageChannel": { - "id": "00000000-0000-0000-0000-000000000372", + "id": "00000000-0000-0000-0000-000000000377", }, "messageExternalId": { - "id": "00000000-0000-0000-0000-000000000374", + "id": "00000000-0000-0000-0000-000000000379", }, }, "viewGroups": {}, }, "messageChannelMessageAssociationRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000386", + "id": "00000000-0000-0000-0000-000000000391", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000384", + "id": "00000000-0000-0000-0000-000000000389", }, "other": { - "id": "00000000-0000-0000-0000-000000000385", + "id": "00000000-0000-0000-0000-000000000390", }, }, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000382", + "id": "00000000-0000-0000-0000-000000000387", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000383", + "id": "00000000-0000-0000-0000-000000000388", }, "direction": { - "id": "00000000-0000-0000-0000-000000000381", + "id": "00000000-0000-0000-0000-000000000386", }, "message": { - "id": "00000000-0000-0000-0000-000000000379", + "id": "00000000-0000-0000-0000-000000000384", }, "messageChannel": { - "id": "00000000-0000-0000-0000-000000000378", + "id": "00000000-0000-0000-0000-000000000383", }, "messageExternalId": { - "id": "00000000-0000-0000-0000-000000000380", + "id": "00000000-0000-0000-0000-000000000385", }, }, "viewGroups": {}, @@ -1547,76 +1559,76 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "messageChannelMessageAssociationMessageFolder": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000389", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000392", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000391", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000388", - }, - "messageChannelMessageAssociation": { - "id": "00000000-0000-0000-0000-000000000396", - }, - "messageFolder": { - "id": "00000000-0000-0000-0000-000000000397", - }, - "position": { "id": "00000000-0000-0000-0000-000000000394", }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000395", + "createdBy": { + "id": "00000000-0000-0000-0000-000000000397", }, - "updatedAt": { - "id": "00000000-0000-0000-0000-000000000390", + "deletedAt": { + "id": "00000000-0000-0000-0000-000000000396", }, - "updatedBy": { + "id": { "id": "00000000-0000-0000-0000-000000000393", }, + "messageChannelMessageAssociation": { + "id": "00000000-0000-0000-0000-000000000401", + }, + "messageFolder": { + "id": "00000000-0000-0000-0000-000000000402", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000399", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000400", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000395", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000398", + }, }, - "id": "00000000-0000-0000-0000-000000000409", + "id": "00000000-0000-0000-0000-000000000414", "views": { "allMessageChannelMessageAssociationMessageFolders": { - "id": "00000000-0000-0000-0000-000000000401", + "id": "00000000-0000-0000-0000-000000000406", "viewFieldGroups": {}, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000400", + "id": "00000000-0000-0000-0000-000000000405", }, "messageChannelMessageAssociation": { - "id": "00000000-0000-0000-0000-000000000398", + "id": "00000000-0000-0000-0000-000000000403", }, "messageFolder": { - "id": "00000000-0000-0000-0000-000000000399", + "id": "00000000-0000-0000-0000-000000000404", }, }, "viewGroups": {}, }, "messageChannelMessageAssociationMessageFolderRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000408", + "id": "00000000-0000-0000-0000-000000000413", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000406", + "id": "00000000-0000-0000-0000-000000000411", }, "other": { - "id": "00000000-0000-0000-0000-000000000407", + "id": "00000000-0000-0000-0000-000000000412", }, }, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000404", + "id": "00000000-0000-0000-0000-000000000409", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000405", + "id": "00000000-0000-0000-0000-000000000410", }, "messageChannelMessageAssociation": { - "id": "00000000-0000-0000-0000-000000000402", + "id": "00000000-0000-0000-0000-000000000407", }, "messageFolder": { - "id": "00000000-0000-0000-0000-000000000403", + "id": "00000000-0000-0000-0000-000000000408", }, }, "viewGroups": {}, @@ -1626,109 +1638,106 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "messageFolder": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000459", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000470", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000461", - }, - "externalId": { - "id": "00000000-0000-0000-0000-000000000468", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000458", - }, - "isSentFolder": { - "id": "00000000-0000-0000-0000-000000000466", - }, - "isSynced": { - "id": "00000000-0000-0000-0000-000000000467", - }, - "messageChannel": { - "id": "00000000-0000-0000-0000-000000000464", - }, - "messageChannelMessageAssociationMessageFolders": { - "id": "00000000-0000-0000-0000-000000000474", - }, - "name": { - "id": "00000000-0000-0000-0000-000000000462", - }, - "parentFolderId": { "id": "00000000-0000-0000-0000-000000000463", }, - "pendingSyncAction": { - "id": "00000000-0000-0000-0000-000000000469", + "createdBy": { + "id": "00000000-0000-0000-0000-000000000474", }, - "position": { - "id": "00000000-0000-0000-0000-000000000472", - }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000473", - }, - "syncCursor": { + "deletedAt": { "id": "00000000-0000-0000-0000-000000000465", }, - "updatedAt": { - "id": "00000000-0000-0000-0000-000000000460", + "externalId": { + "id": "00000000-0000-0000-0000-000000000472", }, - "updatedBy": { + "id": { + "id": "00000000-0000-0000-0000-000000000462", + }, + "isSentFolder": { + "id": "00000000-0000-0000-0000-000000000470", + }, + "isSynced": { "id": "00000000-0000-0000-0000-000000000471", }, + "messageChannel": { + "id": "00000000-0000-0000-0000-000000000468", + }, + "messageChannelMessageAssociationMessageFolders": { + "id": "00000000-0000-0000-0000-000000000478", + }, + "name": { + "id": "00000000-0000-0000-0000-000000000466", + }, + "parentFolderId": { + "id": "00000000-0000-0000-0000-000000000467", + }, + "pendingSyncAction": { + "id": "00000000-0000-0000-0000-000000000473", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000476", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000477", + }, + "syncCursor": { + "id": "00000000-0000-0000-0000-000000000469", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000464", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000475", + }, }, - "id": "00000000-0000-0000-0000-000000000490", + "id": "00000000-0000-0000-0000-000000000493", "views": { "allMessageFolders": { - "id": "00000000-0000-0000-0000-000000000480", + "id": "00000000-0000-0000-0000-000000000484", "viewFieldGroups": {}, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000479", + "id": "00000000-0000-0000-0000-000000000483", }, "isSentFolder": { - "id": "00000000-0000-0000-0000-000000000477", + "id": "00000000-0000-0000-0000-000000000481", }, "isSynced": { - "id": "00000000-0000-0000-0000-000000000478", + "id": "00000000-0000-0000-0000-000000000482", }, "messageChannel": { - "id": "00000000-0000-0000-0000-000000000476", + "id": "00000000-0000-0000-0000-000000000480", }, "name": { - "id": "00000000-0000-0000-0000-000000000475", + "id": "00000000-0000-0000-0000-000000000479", }, }, "viewGroups": {}, }, "messageFolderRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000489", + "id": "00000000-0000-0000-0000-000000000492", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000487", + "id": "00000000-0000-0000-0000-000000000490", }, "other": { - "id": "00000000-0000-0000-0000-000000000488", + "id": "00000000-0000-0000-0000-000000000491", }, }, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000485", + "id": "00000000-0000-0000-0000-000000000488", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000486", + "id": "00000000-0000-0000-0000-000000000489", }, "isSentFolder": { - "id": "00000000-0000-0000-0000-000000000483", + "id": "00000000-0000-0000-0000-000000000486", }, "isSynced": { - "id": "00000000-0000-0000-0000-000000000484", + "id": "00000000-0000-0000-0000-000000000487", }, "messageChannel": { - "id": "00000000-0000-0000-0000-000000000482", - }, - "name": { - "id": "00000000-0000-0000-0000-000000000481", + "id": "00000000-0000-0000-0000-000000000485", }, }, "viewGroups": {}, @@ -1738,112 +1747,109 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "messageParticipant": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000492", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000501", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000494", - }, - "displayName": { - "id": "00000000-0000-0000-0000-000000000498", - }, - "handle": { - "id": "00000000-0000-0000-0000-000000000497", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000491", - }, - "message": { "id": "00000000-0000-0000-0000-000000000495", }, - "person": { - "id": "00000000-0000-0000-0000-000000000499", - }, - "position": { - "id": "00000000-0000-0000-0000-000000000503", - }, - "role": { - "id": "00000000-0000-0000-0000-000000000496", - }, - "searchVector": { + "createdBy": { "id": "00000000-0000-0000-0000-000000000504", }, - "updatedAt": { - "id": "00000000-0000-0000-0000-000000000493", + "deletedAt": { + "id": "00000000-0000-0000-0000-000000000497", }, - "updatedBy": { - "id": "00000000-0000-0000-0000-000000000502", + "displayName": { + "id": "00000000-0000-0000-0000-000000000501", }, - "workspaceMember": { + "handle": { "id": "00000000-0000-0000-0000-000000000500", }, + "id": { + "id": "00000000-0000-0000-0000-000000000494", + }, + "message": { + "id": "00000000-0000-0000-0000-000000000498", + }, + "person": { + "id": "00000000-0000-0000-0000-000000000502", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000506", + }, + "role": { + "id": "00000000-0000-0000-0000-000000000499", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000507", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000496", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000505", + }, + "workspaceMember": { + "id": "00000000-0000-0000-0000-000000000503", + }, }, - "id": "00000000-0000-0000-0000-000000000524", + "id": "00000000-0000-0000-0000-000000000526", "views": { "allMessageParticipants": { - "id": "00000000-0000-0000-0000-000000000512", + "id": "00000000-0000-0000-0000-000000000515", "viewFieldGroups": {}, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000511", + "id": "00000000-0000-0000-0000-000000000514", }, "displayName": { - "id": "00000000-0000-0000-0000-000000000508", + "id": "00000000-0000-0000-0000-000000000511", }, "handle": { - "id": "00000000-0000-0000-0000-000000000507", + "id": "00000000-0000-0000-0000-000000000510", }, "message": { - "id": "00000000-0000-0000-0000-000000000505", + "id": "00000000-0000-0000-0000-000000000508", }, "person": { - "id": "00000000-0000-0000-0000-000000000509", + "id": "00000000-0000-0000-0000-000000000512", }, "role": { - "id": "00000000-0000-0000-0000-000000000506", + "id": "00000000-0000-0000-0000-000000000509", }, "workspaceMember": { - "id": "00000000-0000-0000-0000-000000000510", + "id": "00000000-0000-0000-0000-000000000513", }, }, "viewGroups": {}, }, "messageParticipantRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000523", + "id": "00000000-0000-0000-0000-000000000525", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000521", + "id": "00000000-0000-0000-0000-000000000523", }, "other": { - "id": "00000000-0000-0000-0000-000000000522", + "id": "00000000-0000-0000-0000-000000000524", }, }, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000519", + "id": "00000000-0000-0000-0000-000000000521", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000520", + "id": "00000000-0000-0000-0000-000000000522", }, "displayName": { - "id": "00000000-0000-0000-0000-000000000516", - }, - "handle": { - "id": "00000000-0000-0000-0000-000000000515", + "id": "00000000-0000-0000-0000-000000000518", }, "message": { - "id": "00000000-0000-0000-0000-000000000513", + "id": "00000000-0000-0000-0000-000000000516", }, "person": { - "id": "00000000-0000-0000-0000-000000000517", + "id": "00000000-0000-0000-0000-000000000519", }, "role": { - "id": "00000000-0000-0000-0000-000000000514", + "id": "00000000-0000-0000-0000-000000000517", }, "workspaceMember": { - "id": "00000000-0000-0000-0000-000000000518", + "id": "00000000-0000-0000-0000-000000000520", }, }, "viewGroups": {}, @@ -1853,47 +1859,47 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "messageThread": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000526", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000531", - }, - "deletedAt": { "id": "00000000-0000-0000-0000-000000000528", }, - "id": { - "id": "00000000-0000-0000-0000-000000000525", - }, - "messageChannelMessageAssociations": { - "id": "00000000-0000-0000-0000-000000000530", - }, - "messages": { - "id": "00000000-0000-0000-0000-000000000529", - }, - "position": { + "createdBy": { "id": "00000000-0000-0000-0000-000000000533", }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000534", + "deletedAt": { + "id": "00000000-0000-0000-0000-000000000530", }, - "updatedAt": { + "id": { "id": "00000000-0000-0000-0000-000000000527", }, - "updatedBy": { + "messageChannelMessageAssociations": { "id": "00000000-0000-0000-0000-000000000532", }, + "messages": { + "id": "00000000-0000-0000-0000-000000000531", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000535", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000536", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000529", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000534", + }, }, - "id": "00000000-0000-0000-0000-000000000538", + "id": "00000000-0000-0000-0000-000000000540", "views": { "allMessageThreads": { - "id": "00000000-0000-0000-0000-000000000537", + "id": "00000000-0000-0000-0000-000000000539", "viewFieldGroups": {}, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000536", + "id": "00000000-0000-0000-0000-000000000538", }, "messages": { - "id": "00000000-0000-0000-0000-000000000535", + "id": "00000000-0000-0000-0000-000000000537", }, }, "viewGroups": {}, @@ -1903,97 +1909,112 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "note": { "fields": { "attachments": { - "id": "00000000-0000-0000-0000-000000000574", - }, - "bodyV2": { - "id": "00000000-0000-0000-0000-000000000570", - }, - "createdAt": { - "id": "00000000-0000-0000-0000-000000000565", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000571", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000567", - }, - "favorites": { "id": "00000000-0000-0000-0000-000000000576", }, - "id": { - "id": "00000000-0000-0000-0000-000000000564", - }, - "noteTargets": { - "id": "00000000-0000-0000-0000-000000000573", - }, - "position": { - "id": "00000000-0000-0000-0000-000000000568", - }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000577", - }, - "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000575", - }, - "title": { - "id": "00000000-0000-0000-0000-000000000569", - }, - "updatedAt": { - "id": "00000000-0000-0000-0000-000000000566", - }, - "updatedBy": { + "bodyV2": { "id": "00000000-0000-0000-0000-000000000572", }, + "createdAt": { + "id": "00000000-0000-0000-0000-000000000567", + }, + "createdBy": { + "id": "00000000-0000-0000-0000-000000000573", + }, + "deletedAt": { + "id": "00000000-0000-0000-0000-000000000569", + }, + "favorites": { + "id": "00000000-0000-0000-0000-000000000578", + }, + "id": { + "id": "00000000-0000-0000-0000-000000000566", + }, + "noteTargets": { + "id": "00000000-0000-0000-0000-000000000575", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000570", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000579", + }, + "timelineActivities": { + "id": "00000000-0000-0000-0000-000000000577", + }, + "title": { + "id": "00000000-0000-0000-0000-000000000571", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000568", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000574", + }, }, - "id": "00000000-0000-0000-0000-000000000592", + "id": "00000000-0000-0000-0000-000000000599", "views": { "allNotes": { - "id": "00000000-0000-0000-0000-000000000583", + "id": "00000000-0000-0000-0000-000000000585", "viewFieldGroups": {}, "viewFields": { "bodyV2": { - "id": "00000000-0000-0000-0000-000000000580", - }, - "createdAt": { "id": "00000000-0000-0000-0000-000000000582", }, + "createdAt": { + "id": "00000000-0000-0000-0000-000000000584", + }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000581", + "id": "00000000-0000-0000-0000-000000000583", }, "noteTargets": { - "id": "00000000-0000-0000-0000-000000000579", + "id": "00000000-0000-0000-0000-000000000581", }, "title": { - "id": "00000000-0000-0000-0000-000000000578", + "id": "00000000-0000-0000-0000-000000000580", }, }, "viewGroups": {}, }, "noteRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000591", + "id": "00000000-0000-0000-0000-000000000598", "viewFieldGroups": { "additional": { - "id": "00000000-0000-0000-0000-000000000589", + "id": "00000000-0000-0000-0000-000000000596", }, "general": { - "id": "00000000-0000-0000-0000-000000000588", + "id": "00000000-0000-0000-0000-000000000595", }, "other": { - "id": "00000000-0000-0000-0000-000000000590", + "id": "00000000-0000-0000-0000-000000000597", }, }, "viewFields": { - "createdAt": { - "id": "00000000-0000-0000-0000-000000000585", + "attachments": { + "id": "00000000-0000-0000-0000-000000000592", }, - "createdBy": { + "bodyV2": { + "id": "00000000-0000-0000-0000-000000000589", + }, + "createdAt": { "id": "00000000-0000-0000-0000-000000000586", }, - "noteTargets": { + "createdBy": { "id": "00000000-0000-0000-0000-000000000587", }, - "title": { - "id": "00000000-0000-0000-0000-000000000584", + "favorites": { + "id": "00000000-0000-0000-0000-000000000594", + }, + "noteTargets": { + "id": "00000000-0000-0000-0000-000000000588", + }, + "timelineActivities": { + "id": "00000000-0000-0000-0000-000000000593", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000590", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000591", }, }, "viewGroups": {}, @@ -2003,62 +2024,62 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "noteTarget": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000594", - }, - "createdBy": { "id": "00000000-0000-0000-0000-000000000601", }, + "createdBy": { + "id": "00000000-0000-0000-0000-000000000608", + }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000596", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000593", - }, - "note": { - "id": "00000000-0000-0000-0000-000000000597", - }, - "position": { "id": "00000000-0000-0000-0000-000000000603", }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000604", - }, - "targetCompany": { - "id": "00000000-0000-0000-0000-000000000599", - }, - "targetOpportunity": { + "id": { "id": "00000000-0000-0000-0000-000000000600", }, + "note": { + "id": "00000000-0000-0000-0000-000000000604", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000610", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000611", + }, + "targetCompany": { + "id": "00000000-0000-0000-0000-000000000606", + }, + "targetOpportunity": { + "id": "00000000-0000-0000-0000-000000000607", + }, "targetPerson": { - "id": "00000000-0000-0000-0000-000000000598", + "id": "00000000-0000-0000-0000-000000000605", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000595", - }, - "updatedBy": { "id": "00000000-0000-0000-0000-000000000602", }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000609", + }, }, - "id": "00000000-0000-0000-0000-000000000611", + "id": "00000000-0000-0000-0000-000000000618", "views": { "allNoteTargets": { - "id": "00000000-0000-0000-0000-000000000610", + "id": "00000000-0000-0000-0000-000000000617", "viewFieldGroups": {}, "viewFields": { "id": { - "id": "00000000-0000-0000-0000-000000000605", + "id": "00000000-0000-0000-0000-000000000612", }, "note": { - "id": "00000000-0000-0000-0000-000000000606", + "id": "00000000-0000-0000-0000-000000000613", }, "targetCompany": { - "id": "00000000-0000-0000-0000-000000000608", + "id": "00000000-0000-0000-0000-000000000615", }, "targetOpportunity": { - "id": "00000000-0000-0000-0000-000000000609", + "id": "00000000-0000-0000-0000-000000000616", }, "targetPerson": { - "id": "00000000-0000-0000-0000-000000000607", + "id": "00000000-0000-0000-0000-000000000614", }, }, "viewGroups": {}, @@ -2068,95 +2089,70 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "opportunity": { "fields": { "amount": { - "id": "00000000-0000-0000-0000-000000000617", - }, - "attachments": { - "id": "00000000-0000-0000-0000-000000000629", - }, - "closeDate": { - "id": "00000000-0000-0000-0000-000000000618", - }, - "company": { "id": "00000000-0000-0000-0000-000000000624", }, - "createdAt": { - "id": "00000000-0000-0000-0000-000000000613", + "attachments": { + "id": "00000000-0000-0000-0000-000000000636", }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000621", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000615", - }, - "favorites": { - "id": "00000000-0000-0000-0000-000000000626", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000612", - }, - "name": { - "id": "00000000-0000-0000-0000-000000000616", - }, - "noteTargets": { - "id": "00000000-0000-0000-0000-000000000628", - }, - "owner": { + "closeDate": { "id": "00000000-0000-0000-0000-000000000625", }, - "pointOfContact": { - "id": "00000000-0000-0000-0000-000000000623", - }, - "position": { - "id": "00000000-0000-0000-0000-000000000620", - }, - "searchVector": { + "company": { "id": "00000000-0000-0000-0000-000000000631", }, - "stage": { - "id": "00000000-0000-0000-0000-000000000619", + "createdAt": { + "id": "00000000-0000-0000-0000-000000000620", }, - "taskTargets": { - "id": "00000000-0000-0000-0000-000000000627", + "createdBy": { + "id": "00000000-0000-0000-0000-000000000628", }, - "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000630", - }, - "updatedAt": { - "id": "00000000-0000-0000-0000-000000000614", - }, - "updatedBy": { + "deletedAt": { "id": "00000000-0000-0000-0000-000000000622", }, + "favorites": { + "id": "00000000-0000-0000-0000-000000000633", + }, + "id": { + "id": "00000000-0000-0000-0000-000000000619", + }, + "name": { + "id": "00000000-0000-0000-0000-000000000623", + }, + "noteTargets": { + "id": "00000000-0000-0000-0000-000000000635", + }, + "owner": { + "id": "00000000-0000-0000-0000-000000000632", + }, + "pointOfContact": { + "id": "00000000-0000-0000-0000-000000000630", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000627", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000638", + }, + "stage": { + "id": "00000000-0000-0000-0000-000000000626", + }, + "taskTargets": { + "id": "00000000-0000-0000-0000-000000000634", + }, + "timelineActivities": { + "id": "00000000-0000-0000-0000-000000000637", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000621", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000629", + }, }, - "id": "00000000-0000-0000-0000-000000000663", + "id": "00000000-0000-0000-0000-000000000677", "views": { "allOpportunities": { - "id": "00000000-0000-0000-0000-000000000638", - "viewFieldGroups": {}, - "viewFields": { - "amount": { - "id": "00000000-0000-0000-0000-000000000633", - }, - "closeDate": { - "id": "00000000-0000-0000-0000-000000000635", - }, - "company": { - "id": "00000000-0000-0000-0000-000000000636", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000634", - }, - "name": { - "id": "00000000-0000-0000-0000-000000000632", - }, - "pointOfContact": { - "id": "00000000-0000-0000-0000-000000000637", - }, - }, - "viewGroups": {}, - }, - "byStage": { - "id": "00000000-0000-0000-0000-000000000650", + "id": "00000000-0000-0000-0000-000000000645", "viewFieldGroups": {}, "viewFields": { "amount": { @@ -2178,61 +2174,107 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "id": "00000000-0000-0000-0000-000000000644", }, }, - "viewGroups": { - "customer": { - "id": "00000000-0000-0000-0000-000000000649", - }, - "meeting": { + "viewGroups": {}, + }, + "byStage": { + "id": "00000000-0000-0000-0000-000000000657", + "viewFieldGroups": {}, + "viewFields": { + "amount": { "id": "00000000-0000-0000-0000-000000000647", }, - "new": { - "id": "00000000-0000-0000-0000-000000000645", + "closeDate": { + "id": "00000000-0000-0000-0000-000000000649", }, - "proposal": { + "company": { + "id": "00000000-0000-0000-0000-000000000650", + }, + "createdBy": { "id": "00000000-0000-0000-0000-000000000648", }, - "screening": { + "name": { "id": "00000000-0000-0000-0000-000000000646", }, + "pointOfContact": { + "id": "00000000-0000-0000-0000-000000000651", + }, + }, + "viewGroups": { + "customer": { + "id": "00000000-0000-0000-0000-000000000656", + }, + "meeting": { + "id": "00000000-0000-0000-0000-000000000654", + }, + "new": { + "id": "00000000-0000-0000-0000-000000000652", + }, + "proposal": { + "id": "00000000-0000-0000-0000-000000000655", + }, + "screening": { + "id": "00000000-0000-0000-0000-000000000653", + }, }, }, "opportunityRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000662", + "id": "00000000-0000-0000-0000-000000000676", "viewFieldGroups": { "additional": { - "id": "00000000-0000-0000-0000-000000000660", + "id": "00000000-0000-0000-0000-000000000674", }, "general": { - "id": "00000000-0000-0000-0000-000000000659", + "id": "00000000-0000-0000-0000-000000000673", }, "other": { - "id": "00000000-0000-0000-0000-000000000661", + "id": "00000000-0000-0000-0000-000000000675", }, }, "viewFields": { "amount": { - "id": "00000000-0000-0000-0000-000000000651", - }, - "closeDate": { - "id": "00000000-0000-0000-0000-000000000652", - }, - "company": { - "id": "00000000-0000-0000-0000-000000000654", - }, - "createdAt": { - "id": "00000000-0000-0000-0000-000000000657", - }, - "createdBy": { "id": "00000000-0000-0000-0000-000000000658", }, + "attachments": { + "id": "00000000-0000-0000-0000-000000000671", + }, + "closeDate": { + "id": "00000000-0000-0000-0000-000000000659", + }, + "company": { + "id": "00000000-0000-0000-0000-000000000661", + }, + "createdAt": { + "id": "00000000-0000-0000-0000-000000000664", + }, + "createdBy": { + "id": "00000000-0000-0000-0000-000000000665", + }, + "favorites": { + "id": "00000000-0000-0000-0000-000000000668", + }, + "noteTargets": { + "id": "00000000-0000-0000-0000-000000000670", + }, "owner": { - "id": "00000000-0000-0000-0000-000000000656", + "id": "00000000-0000-0000-0000-000000000663", }, "pointOfContact": { - "id": "00000000-0000-0000-0000-000000000655", + "id": "00000000-0000-0000-0000-000000000662", }, "stage": { - "id": "00000000-0000-0000-0000-000000000653", + "id": "00000000-0000-0000-0000-000000000660", + }, + "taskTargets": { + "id": "00000000-0000-0000-0000-000000000669", + }, + "timelineActivities": { + "id": "00000000-0000-0000-0000-000000000672", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000666", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000667", }, }, "viewGroups": {}, @@ -2242,166 +2284,199 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "person": { "fields": { "attachments": { - "id": "00000000-0000-0000-0000-000000000685", + "id": "00000000-0000-0000-0000-000000000699", }, "avatarFile": { - "id": "00000000-0000-0000-0000-000000000676", + "id": "00000000-0000-0000-0000-000000000690", }, "avatarUrl": { - "id": "00000000-0000-0000-0000-000000000675", - }, - "calendarEventParticipants": { - "id": "00000000-0000-0000-0000-000000000687", - }, - "city": { - "id": "00000000-0000-0000-0000-000000000674", - }, - "company": { - "id": "00000000-0000-0000-0000-000000000680", - }, - "createdAt": { - "id": "00000000-0000-0000-0000-000000000665", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000678", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000667", - }, - "emails": { - "id": "00000000-0000-0000-0000-000000000669", - }, - "favorites": { - "id": "00000000-0000-0000-0000-000000000684", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000664", - }, - "jobTitle": { - "id": "00000000-0000-0000-0000-000000000672", - }, - "linkedinLink": { - "id": "00000000-0000-0000-0000-000000000670", - }, - "messageParticipants": { - "id": "00000000-0000-0000-0000-000000000686", - }, - "name": { - "id": "00000000-0000-0000-0000-000000000668", - }, - "noteTargets": { - "id": "00000000-0000-0000-0000-000000000683", - }, - "phones": { - "id": "00000000-0000-0000-0000-000000000673", - }, - "pointOfContactForOpportunities": { - "id": "00000000-0000-0000-0000-000000000681", - }, - "position": { - "id": "00000000-0000-0000-0000-000000000677", - }, - "searchVector": { "id": "00000000-0000-0000-0000-000000000689", }, - "taskTargets": { - "id": "00000000-0000-0000-0000-000000000682", + "calendarEventParticipants": { + "id": "00000000-0000-0000-0000-000000000701", }, - "timelineActivities": { + "city": { "id": "00000000-0000-0000-0000-000000000688", }, - "updatedAt": { - "id": "00000000-0000-0000-0000-000000000666", + "company": { + "id": "00000000-0000-0000-0000-000000000694", }, - "updatedBy": { + "createdAt": { "id": "00000000-0000-0000-0000-000000000679", }, + "createdBy": { + "id": "00000000-0000-0000-0000-000000000692", + }, + "deletedAt": { + "id": "00000000-0000-0000-0000-000000000681", + }, + "emails": { + "id": "00000000-0000-0000-0000-000000000683", + }, + "favorites": { + "id": "00000000-0000-0000-0000-000000000698", + }, + "id": { + "id": "00000000-0000-0000-0000-000000000678", + }, + "jobTitle": { + "id": "00000000-0000-0000-0000-000000000686", + }, + "linkedinLink": { + "id": "00000000-0000-0000-0000-000000000684", + }, + "messageParticipants": { + "id": "00000000-0000-0000-0000-000000000700", + }, + "name": { + "id": "00000000-0000-0000-0000-000000000682", + }, + "noteTargets": { + "id": "00000000-0000-0000-0000-000000000697", + }, + "phones": { + "id": "00000000-0000-0000-0000-000000000687", + }, + "pointOfContactForOpportunities": { + "id": "00000000-0000-0000-0000-000000000695", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000691", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000703", + }, + "taskTargets": { + "id": "00000000-0000-0000-0000-000000000696", + }, + "timelineActivities": { + "id": "00000000-0000-0000-0000-000000000702", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000680", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000693", + }, "xLink": { - "id": "00000000-0000-0000-0000-000000000671", + "id": "00000000-0000-0000-0000-000000000685", }, }, - "id": "00000000-0000-0000-0000-000000000715", + "id": "00000000-0000-0000-0000-000000000740", "views": { "allPeople": { - "id": "00000000-0000-0000-0000-000000000700", + "id": "00000000-0000-0000-0000-000000000714", "viewFieldGroups": {}, "viewFields": { "city": { - "id": "00000000-0000-0000-0000-000000000696", + "id": "00000000-0000-0000-0000-000000000710", }, "company": { - "id": "00000000-0000-0000-0000-000000000693", - }, - "createdAt": { - "id": "00000000-0000-0000-0000-000000000695", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000692", - }, - "emails": { - "id": "00000000-0000-0000-0000-000000000691", - }, - "jobTitle": { - "id": "00000000-0000-0000-0000-000000000697", - }, - "linkedinLink": { - "id": "00000000-0000-0000-0000-000000000698", - }, - "name": { - "id": "00000000-0000-0000-0000-000000000690", - }, - "phones": { - "id": "00000000-0000-0000-0000-000000000694", - }, - "xLink": { - "id": "00000000-0000-0000-0000-000000000699", - }, - }, - "viewGroups": {}, - }, - "personRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000714", - "viewFieldGroups": { - "additional": { - "id": "00000000-0000-0000-0000-000000000712", - }, - "general": { - "id": "00000000-0000-0000-0000-000000000711", - }, - "other": { - "id": "00000000-0000-0000-0000-000000000713", - }, - }, - "viewFields": { - "avatarUrl": { - "id": "00000000-0000-0000-0000-000000000708", - }, - "city": { "id": "00000000-0000-0000-0000-000000000707", }, - "company": { - "id": "00000000-0000-0000-0000-000000000703", - }, "createdAt": { "id": "00000000-0000-0000-0000-000000000709", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000710", + "id": "00000000-0000-0000-0000-000000000706", }, "emails": { - "id": "00000000-0000-0000-0000-000000000701", - }, - "jobTitle": { - "id": "00000000-0000-0000-0000-000000000704", - }, - "linkedinLink": { "id": "00000000-0000-0000-0000-000000000705", }, + "jobTitle": { + "id": "00000000-0000-0000-0000-000000000711", + }, + "linkedinLink": { + "id": "00000000-0000-0000-0000-000000000712", + }, + "name": { + "id": "00000000-0000-0000-0000-000000000704", + }, "phones": { - "id": "00000000-0000-0000-0000-000000000702", + "id": "00000000-0000-0000-0000-000000000708", }, "xLink": { - "id": "00000000-0000-0000-0000-000000000706", + "id": "00000000-0000-0000-0000-000000000713", + }, + }, + "viewGroups": {}, + }, + "personRecordPageFields": { + "id": "00000000-0000-0000-0000-000000000739", + "viewFieldGroups": { + "additional": { + "id": "00000000-0000-0000-0000-000000000737", + }, + "general": { + "id": "00000000-0000-0000-0000-000000000736", + }, + "other": { + "id": "00000000-0000-0000-0000-000000000738", + }, + }, + "viewFields": { + "attachments": { + "id": "00000000-0000-0000-0000-000000000732", + }, + "avatarFile": { + "id": "00000000-0000-0000-0000-000000000727", + }, + "avatarUrl": { + "id": "00000000-0000-0000-0000-000000000722", + }, + "calendarEventParticipants": { + "id": "00000000-0000-0000-0000-000000000734", + }, + "city": { + "id": "00000000-0000-0000-0000-000000000721", + }, + "company": { + "id": "00000000-0000-0000-0000-000000000717", + }, + "createdAt": { + "id": "00000000-0000-0000-0000-000000000723", + }, + "createdBy": { + "id": "00000000-0000-0000-0000-000000000724", + }, + "emails": { + "id": "00000000-0000-0000-0000-000000000715", + }, + "favorites": { + "id": "00000000-0000-0000-0000-000000000731", + }, + "jobTitle": { + "id": "00000000-0000-0000-0000-000000000718", + }, + "linkedinLink": { + "id": "00000000-0000-0000-0000-000000000719", + }, + "messageParticipants": { + "id": "00000000-0000-0000-0000-000000000733", + }, + "noteTargets": { + "id": "00000000-0000-0000-0000-000000000730", + }, + "phones": { + "id": "00000000-0000-0000-0000-000000000716", + }, + "pointOfContactForOpportunities": { + "id": "00000000-0000-0000-0000-000000000728", + }, + "taskTargets": { + "id": "00000000-0000-0000-0000-000000000729", + }, + "timelineActivities": { + "id": "00000000-0000-0000-0000-000000000735", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000725", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000726", + }, + "xLink": { + "id": "00000000-0000-0000-0000-000000000720", }, }, "viewGroups": {}, @@ -2411,197 +2486,212 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "task": { "fields": { "assignee": { - "id": "00000000-0000-0000-0000-000000000729", + "id": "00000000-0000-0000-0000-000000000754", }, "attachments": { - "id": "00000000-0000-0000-0000-000000000728", + "id": "00000000-0000-0000-0000-000000000753", }, "bodyV2": { - "id": "00000000-0000-0000-0000-000000000722", + "id": "00000000-0000-0000-0000-000000000747", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000717", + "id": "00000000-0000-0000-0000-000000000742", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000725", + "id": "00000000-0000-0000-0000-000000000750", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000719", + "id": "00000000-0000-0000-0000-000000000744", }, "dueAt": { - "id": "00000000-0000-0000-0000-000000000723", + "id": "00000000-0000-0000-0000-000000000748", }, "favorites": { - "id": "00000000-0000-0000-0000-000000000731", + "id": "00000000-0000-0000-0000-000000000756", }, "id": { - "id": "00000000-0000-0000-0000-000000000716", + "id": "00000000-0000-0000-0000-000000000741", }, "position": { - "id": "00000000-0000-0000-0000-000000000720", + "id": "00000000-0000-0000-0000-000000000745", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000732", + "id": "00000000-0000-0000-0000-000000000757", }, "status": { - "id": "00000000-0000-0000-0000-000000000724", + "id": "00000000-0000-0000-0000-000000000749", }, "taskTargets": { - "id": "00000000-0000-0000-0000-000000000727", + "id": "00000000-0000-0000-0000-000000000752", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000730", + "id": "00000000-0000-0000-0000-000000000755", }, "title": { - "id": "00000000-0000-0000-0000-000000000721", + "id": "00000000-0000-0000-0000-000000000746", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000718", + "id": "00000000-0000-0000-0000-000000000743", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000726", + "id": "00000000-0000-0000-0000-000000000751", }, }, - "id": "00000000-0000-0000-0000-000000000774", + "id": "00000000-0000-0000-0000-000000000804", "views": { "allTasks": { - "id": "00000000-0000-0000-0000-000000000741", + "id": "00000000-0000-0000-0000-000000000766", "viewFieldGroups": {}, "viewFields": { "assignee": { - "id": "00000000-0000-0000-0000-000000000738", + "id": "00000000-0000-0000-0000-000000000763", }, "bodyV2": { - "id": "00000000-0000-0000-0000-000000000739", + "id": "00000000-0000-0000-0000-000000000764", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000740", + "id": "00000000-0000-0000-0000-000000000765", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000736", + "id": "00000000-0000-0000-0000-000000000761", }, "dueAt": { - "id": "00000000-0000-0000-0000-000000000737", + "id": "00000000-0000-0000-0000-000000000762", }, "status": { - "id": "00000000-0000-0000-0000-000000000734", + "id": "00000000-0000-0000-0000-000000000759", }, "taskTargets": { - "id": "00000000-0000-0000-0000-000000000735", + "id": "00000000-0000-0000-0000-000000000760", }, "title": { - "id": "00000000-0000-0000-0000-000000000733", + "id": "00000000-0000-0000-0000-000000000758", }, }, "viewGroups": {}, }, "assignedToMe": { - "id": "00000000-0000-0000-0000-000000000753", + "id": "00000000-0000-0000-0000-000000000778", "viewFieldGroups": {}, "viewFields": { "assignee": { - "id": "00000000-0000-0000-0000-000000000746", + "id": "00000000-0000-0000-0000-000000000771", }, "bodyV2": { - "id": "00000000-0000-0000-0000-000000000747", + "id": "00000000-0000-0000-0000-000000000772", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000748", + "id": "00000000-0000-0000-0000-000000000773", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000744", + "id": "00000000-0000-0000-0000-000000000769", }, "dueAt": { - "id": "00000000-0000-0000-0000-000000000745", + "id": "00000000-0000-0000-0000-000000000770", }, "taskTargets": { - "id": "00000000-0000-0000-0000-000000000743", + "id": "00000000-0000-0000-0000-000000000768", }, "title": { - "id": "00000000-0000-0000-0000-000000000742", + "id": "00000000-0000-0000-0000-000000000767", }, }, "viewGroups": { "done": { - "id": "00000000-0000-0000-0000-000000000751", + "id": "00000000-0000-0000-0000-000000000776", }, "empty": { - "id": "00000000-0000-0000-0000-000000000752", + "id": "00000000-0000-0000-0000-000000000777", }, "inProgress": { - "id": "00000000-0000-0000-0000-000000000750", + "id": "00000000-0000-0000-0000-000000000775", }, "todo": { - "id": "00000000-0000-0000-0000-000000000749", + "id": "00000000-0000-0000-0000-000000000774", }, }, }, "byStatus": { - "id": "00000000-0000-0000-0000-000000000762", + "id": "00000000-0000-0000-0000-000000000787", "viewFieldGroups": {}, "viewFields": { "assignee": { - "id": "00000000-0000-0000-0000-000000000757", + "id": "00000000-0000-0000-0000-000000000782", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000758", + "id": "00000000-0000-0000-0000-000000000783", }, "dueAt": { - "id": "00000000-0000-0000-0000-000000000756", + "id": "00000000-0000-0000-0000-000000000781", }, "status": { - "id": "00000000-0000-0000-0000-000000000755", + "id": "00000000-0000-0000-0000-000000000780", }, "title": { - "id": "00000000-0000-0000-0000-000000000754", + "id": "00000000-0000-0000-0000-000000000779", }, }, "viewGroups": { "done": { - "id": "00000000-0000-0000-0000-000000000761", + "id": "00000000-0000-0000-0000-000000000786", }, "inProgress": { - "id": "00000000-0000-0000-0000-000000000760", + "id": "00000000-0000-0000-0000-000000000785", }, "todo": { - "id": "00000000-0000-0000-0000-000000000759", + "id": "00000000-0000-0000-0000-000000000784", }, }, }, "taskRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000773", + "id": "00000000-0000-0000-0000-000000000803", "viewFieldGroups": { "additional": { - "id": "00000000-0000-0000-0000-000000000771", + "id": "00000000-0000-0000-0000-000000000801", }, "general": { - "id": "00000000-0000-0000-0000-000000000770", + "id": "00000000-0000-0000-0000-000000000800", }, "other": { - "id": "00000000-0000-0000-0000-000000000772", + "id": "00000000-0000-0000-0000-000000000802", }, }, "viewFields": { "assignee": { - "id": "00000000-0000-0000-0000-000000000766", + "id": "00000000-0000-0000-0000-000000000790", + }, + "attachments": { + "id": "00000000-0000-0000-0000-000000000797", + }, + "bodyV2": { + "id": "00000000-0000-0000-0000-000000000794", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000767", + "id": "00000000-0000-0000-0000-000000000791", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000768", + "id": "00000000-0000-0000-0000-000000000792", }, "dueAt": { - "id": "00000000-0000-0000-0000-000000000764", + "id": "00000000-0000-0000-0000-000000000788", + }, + "favorites": { + "id": "00000000-0000-0000-0000-000000000799", }, "status": { - "id": "00000000-0000-0000-0000-000000000765", + "id": "00000000-0000-0000-0000-000000000789", }, "taskTargets": { - "id": "00000000-0000-0000-0000-000000000769", + "id": "00000000-0000-0000-0000-000000000793", }, - "title": { - "id": "00000000-0000-0000-0000-000000000763", + "timelineActivities": { + "id": "00000000-0000-0000-0000-000000000798", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000795", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000796", }, }, "viewGroups": {}, @@ -2611,62 +2701,62 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "taskTarget": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000776", + "id": "00000000-0000-0000-0000-000000000806", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000783", + "id": "00000000-0000-0000-0000-000000000813", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000778", + "id": "00000000-0000-0000-0000-000000000808", }, "id": { - "id": "00000000-0000-0000-0000-000000000775", + "id": "00000000-0000-0000-0000-000000000805", }, "position": { - "id": "00000000-0000-0000-0000-000000000785", + "id": "00000000-0000-0000-0000-000000000815", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000786", + "id": "00000000-0000-0000-0000-000000000816", }, "targetCompany": { - "id": "00000000-0000-0000-0000-000000000781", + "id": "00000000-0000-0000-0000-000000000811", }, "targetOpportunity": { - "id": "00000000-0000-0000-0000-000000000782", + "id": "00000000-0000-0000-0000-000000000812", }, "targetPerson": { - "id": "00000000-0000-0000-0000-000000000780", + "id": "00000000-0000-0000-0000-000000000810", }, "task": { - "id": "00000000-0000-0000-0000-000000000779", + "id": "00000000-0000-0000-0000-000000000809", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000777", + "id": "00000000-0000-0000-0000-000000000807", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000784", + "id": "00000000-0000-0000-0000-000000000814", }, }, - "id": "00000000-0000-0000-0000-000000000793", + "id": "00000000-0000-0000-0000-000000000823", "views": { "allTaskTargets": { - "id": "00000000-0000-0000-0000-000000000792", + "id": "00000000-0000-0000-0000-000000000822", "viewFieldGroups": {}, "viewFields": { "id": { - "id": "00000000-0000-0000-0000-000000000787", + "id": "00000000-0000-0000-0000-000000000817", }, "targetCompany": { - "id": "00000000-0000-0000-0000-000000000790", + "id": "00000000-0000-0000-0000-000000000820", }, "targetOpportunity": { - "id": "00000000-0000-0000-0000-000000000791", + "id": "00000000-0000-0000-0000-000000000821", }, "targetPerson": { - "id": "00000000-0000-0000-0000-000000000789", + "id": "00000000-0000-0000-0000-000000000819", }, "task": { - "id": "00000000-0000-0000-0000-000000000788", + "id": "00000000-0000-0000-0000-000000000818", }, }, "viewGroups": {}, @@ -2676,125 +2766,125 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "timelineActivity": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000795", + "id": "00000000-0000-0000-0000-000000000825", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000814", + "id": "00000000-0000-0000-0000-000000000844", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000797", + "id": "00000000-0000-0000-0000-000000000827", }, "happensAt": { - "id": "00000000-0000-0000-0000-000000000798", + "id": "00000000-0000-0000-0000-000000000828", }, "id": { - "id": "00000000-0000-0000-0000-000000000794", + "id": "00000000-0000-0000-0000-000000000824", }, "linkedObjectMetadataId": { - "id": "00000000-0000-0000-0000-000000000813", + "id": "00000000-0000-0000-0000-000000000843", }, "linkedRecordCachedName": { - "id": "00000000-0000-0000-0000-000000000811", + "id": "00000000-0000-0000-0000-000000000841", }, "linkedRecordId": { - "id": "00000000-0000-0000-0000-000000000812", + "id": "00000000-0000-0000-0000-000000000842", }, "name": { - "id": "00000000-0000-0000-0000-000000000799", + "id": "00000000-0000-0000-0000-000000000829", }, "position": { - "id": "00000000-0000-0000-0000-000000000816", + "id": "00000000-0000-0000-0000-000000000846", }, "properties": { - "id": "00000000-0000-0000-0000-000000000800", + "id": "00000000-0000-0000-0000-000000000830", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000817", + "id": "00000000-0000-0000-0000-000000000847", }, "targetCompany": { - "id": "00000000-0000-0000-0000-000000000803", + "id": "00000000-0000-0000-0000-000000000833", }, "targetDashboard": { - "id": "00000000-0000-0000-0000-000000000810", + "id": "00000000-0000-0000-0000-000000000840", }, "targetNote": { - "id": "00000000-0000-0000-0000-000000000806", + "id": "00000000-0000-0000-0000-000000000836", }, "targetOpportunity": { - "id": "00000000-0000-0000-0000-000000000804", + "id": "00000000-0000-0000-0000-000000000834", }, "targetPerson": { - "id": "00000000-0000-0000-0000-000000000802", + "id": "00000000-0000-0000-0000-000000000832", }, "targetTask": { - "id": "00000000-0000-0000-0000-000000000805", + "id": "00000000-0000-0000-0000-000000000835", }, "targetWorkflow": { - "id": "00000000-0000-0000-0000-000000000807", + "id": "00000000-0000-0000-0000-000000000837", }, "targetWorkflowRun": { - "id": "00000000-0000-0000-0000-000000000809", + "id": "00000000-0000-0000-0000-000000000839", }, "targetWorkflowVersion": { - "id": "00000000-0000-0000-0000-000000000808", + "id": "00000000-0000-0000-0000-000000000838", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000796", + "id": "00000000-0000-0000-0000-000000000826", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000815", + "id": "00000000-0000-0000-0000-000000000845", }, "workspaceMember": { - "id": "00000000-0000-0000-0000-000000000801", + "id": "00000000-0000-0000-0000-000000000831", }, }, - "id": "00000000-0000-0000-0000-000000000833", + "id": "00000000-0000-0000-0000-000000000863", "views": { "allTimelineActivities": { - "id": "00000000-0000-0000-0000-000000000832", + "id": "00000000-0000-0000-0000-000000000862", "viewFieldGroups": {}, "viewFields": { "happensAt": { - "id": "00000000-0000-0000-0000-000000000819", + "id": "00000000-0000-0000-0000-000000000849", }, "linkedRecordCachedName": { - "id": "00000000-0000-0000-0000-000000000822", + "id": "00000000-0000-0000-0000-000000000852", }, "name": { - "id": "00000000-0000-0000-0000-000000000818", + "id": "00000000-0000-0000-0000-000000000848", }, "properties": { - "id": "00000000-0000-0000-0000-000000000820", + "id": "00000000-0000-0000-0000-000000000850", }, "targetCompany": { - "id": "00000000-0000-0000-0000-000000000824", + "id": "00000000-0000-0000-0000-000000000854", }, "targetDashboard": { - "id": "00000000-0000-0000-0000-000000000831", + "id": "00000000-0000-0000-0000-000000000861", }, "targetNote": { - "id": "00000000-0000-0000-0000-000000000827", + "id": "00000000-0000-0000-0000-000000000857", }, "targetOpportunity": { - "id": "00000000-0000-0000-0000-000000000825", + "id": "00000000-0000-0000-0000-000000000855", }, "targetPerson": { - "id": "00000000-0000-0000-0000-000000000823", + "id": "00000000-0000-0000-0000-000000000853", }, "targetTask": { - "id": "00000000-0000-0000-0000-000000000826", + "id": "00000000-0000-0000-0000-000000000856", }, "targetWorkflow": { - "id": "00000000-0000-0000-0000-000000000828", + "id": "00000000-0000-0000-0000-000000000858", }, "targetWorkflowRun": { - "id": "00000000-0000-0000-0000-000000000830", + "id": "00000000-0000-0000-0000-000000000860", }, "targetWorkflowVersion": { - "id": "00000000-0000-0000-0000-000000000829", + "id": "00000000-0000-0000-0000-000000000859", }, "workspaceMember": { - "id": "00000000-0000-0000-0000-000000000821", + "id": "00000000-0000-0000-0000-000000000851", }, }, "viewGroups": {}, @@ -2804,80 +2894,80 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "workflow": { "fields": { "attachments": { - "id": "00000000-0000-0000-0000-000000000847", + "id": "00000000-0000-0000-0000-000000000877", }, "automatedTriggers": { - "id": "00000000-0000-0000-0000-000000000844", + "id": "00000000-0000-0000-0000-000000000874", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000835", + "id": "00000000-0000-0000-0000-000000000865", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000848", + "id": "00000000-0000-0000-0000-000000000878", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000837", + "id": "00000000-0000-0000-0000-000000000867", }, "favorites": { - "id": "00000000-0000-0000-0000-000000000845", + "id": "00000000-0000-0000-0000-000000000875", }, "id": { - "id": "00000000-0000-0000-0000-000000000834", + "id": "00000000-0000-0000-0000-000000000864", }, "lastPublishedVersionId": { - "id": "00000000-0000-0000-0000-000000000839", + "id": "00000000-0000-0000-0000-000000000869", }, "name": { - "id": "00000000-0000-0000-0000-000000000838", + "id": "00000000-0000-0000-0000-000000000868", }, "position": { - "id": "00000000-0000-0000-0000-000000000841", + "id": "00000000-0000-0000-0000-000000000871", }, "runs": { - "id": "00000000-0000-0000-0000-000000000843", + "id": "00000000-0000-0000-0000-000000000873", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000850", + "id": "00000000-0000-0000-0000-000000000880", }, "statuses": { - "id": "00000000-0000-0000-0000-000000000840", + "id": "00000000-0000-0000-0000-000000000870", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000846", + "id": "00000000-0000-0000-0000-000000000876", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000836", + "id": "00000000-0000-0000-0000-000000000866", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000849", + "id": "00000000-0000-0000-0000-000000000879", }, "versions": { - "id": "00000000-0000-0000-0000-000000000842", + "id": "00000000-0000-0000-0000-000000000872", }, }, - "id": "00000000-0000-0000-0000-000000000858", + "id": "00000000-0000-0000-0000-000000000888", "views": { "allWorkflows": { - "id": "00000000-0000-0000-0000-000000000857", + "id": "00000000-0000-0000-0000-000000000887", "viewFieldGroups": {}, "viewFields": { "createdBy": { - "id": "00000000-0000-0000-0000-000000000854", + "id": "00000000-0000-0000-0000-000000000884", }, "name": { - "id": "00000000-0000-0000-0000-000000000851", + "id": "00000000-0000-0000-0000-000000000881", }, "runs": { - "id": "00000000-0000-0000-0000-000000000856", + "id": "00000000-0000-0000-0000-000000000886", }, "statuses": { - "id": "00000000-0000-0000-0000-000000000852", + "id": "00000000-0000-0000-0000-000000000882", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000853", + "id": "00000000-0000-0000-0000-000000000883", }, "versions": { - "id": "00000000-0000-0000-0000-000000000855", + "id": "00000000-0000-0000-0000-000000000885", }, }, "viewGroups": {}, @@ -2887,79 +2977,79 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "workflowAutomatedTrigger": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000860", + "id": "00000000-0000-0000-0000-000000000890", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000866", + "id": "00000000-0000-0000-0000-000000000896", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000862", + "id": "00000000-0000-0000-0000-000000000892", }, "id": { - "id": "00000000-0000-0000-0000-000000000859", + "id": "00000000-0000-0000-0000-000000000889", }, "position": { - "id": "00000000-0000-0000-0000-000000000868", + "id": "00000000-0000-0000-0000-000000000898", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000869", + "id": "00000000-0000-0000-0000-000000000899", }, "settings": { - "id": "00000000-0000-0000-0000-000000000864", + "id": "00000000-0000-0000-0000-000000000894", }, "type": { - "id": "00000000-0000-0000-0000-000000000863", + "id": "00000000-0000-0000-0000-000000000893", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000861", + "id": "00000000-0000-0000-0000-000000000891", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000867", + "id": "00000000-0000-0000-0000-000000000897", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000865", + "id": "00000000-0000-0000-0000-000000000895", }, }, - "id": "00000000-0000-0000-0000-000000000881", + "id": "00000000-0000-0000-0000-000000000911", "views": { "allWorkflowAutomatedTriggers": { - "id": "00000000-0000-0000-0000-000000000873", + "id": "00000000-0000-0000-0000-000000000903", "viewFieldGroups": {}, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000872", + "id": "00000000-0000-0000-0000-000000000902", }, "type": { - "id": "00000000-0000-0000-0000-000000000870", + "id": "00000000-0000-0000-0000-000000000900", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000871", + "id": "00000000-0000-0000-0000-000000000901", }, }, "viewGroups": {}, }, "workflowAutomatedTriggerRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000880", + "id": "00000000-0000-0000-0000-000000000910", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000878", + "id": "00000000-0000-0000-0000-000000000908", }, "other": { - "id": "00000000-0000-0000-0000-000000000879", + "id": "00000000-0000-0000-0000-000000000909", }, }, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000876", + "id": "00000000-0000-0000-0000-000000000906", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000877", + "id": "00000000-0000-0000-0000-000000000907", }, "type": { - "id": "00000000-0000-0000-0000-000000000874", + "id": "00000000-0000-0000-0000-000000000904", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000875", + "id": "00000000-0000-0000-0000-000000000905", }, }, "viewGroups": {}, @@ -2969,130 +3059,151 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "workflowRun": { "fields": { "context": { - "id": "00000000-0000-0000-0000-000000000897", + "id": "00000000-0000-0000-0000-000000000927", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000883", + "id": "00000000-0000-0000-0000-000000000913", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000894", + "id": "00000000-0000-0000-0000-000000000924", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000885", + "id": "00000000-0000-0000-0000-000000000915", }, "endedAt": { - "id": "00000000-0000-0000-0000-000000000891", + "id": "00000000-0000-0000-0000-000000000921", }, "enqueuedAt": { - "id": "00000000-0000-0000-0000-000000000889", + "id": "00000000-0000-0000-0000-000000000919", }, "favorites": { - "id": "00000000-0000-0000-0000-000000000899", + "id": "00000000-0000-0000-0000-000000000929", }, "id": { - "id": "00000000-0000-0000-0000-000000000882", + "id": "00000000-0000-0000-0000-000000000912", }, "name": { - "id": "00000000-0000-0000-0000-000000000886", + "id": "00000000-0000-0000-0000-000000000916", }, "output": { - "id": "00000000-0000-0000-0000-000000000896", + "id": "00000000-0000-0000-0000-000000000926", }, "position": { - "id": "00000000-0000-0000-0000-000000000893", + "id": "00000000-0000-0000-0000-000000000923", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000901", + "id": "00000000-0000-0000-0000-000000000931", }, "startedAt": { - "id": "00000000-0000-0000-0000-000000000890", + "id": "00000000-0000-0000-0000-000000000920", }, "state": { - "id": "00000000-0000-0000-0000-000000000898", + "id": "00000000-0000-0000-0000-000000000928", }, "status": { - "id": "00000000-0000-0000-0000-000000000892", + "id": "00000000-0000-0000-0000-000000000922", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000900", + "id": "00000000-0000-0000-0000-000000000930", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000884", + "id": "00000000-0000-0000-0000-000000000914", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000895", + "id": "00000000-0000-0000-0000-000000000925", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000888", + "id": "00000000-0000-0000-0000-000000000918", }, "workflowVersion": { - "id": "00000000-0000-0000-0000-000000000887", + "id": "00000000-0000-0000-0000-000000000917", }, }, - "id": "00000000-0000-0000-0000-000000000921", + "id": "00000000-0000-0000-0000-000000000958", "views": { "allWorkflowRuns": { - "id": "00000000-0000-0000-0000-000000000908", + "id": "00000000-0000-0000-0000-000000000938", "viewFieldGroups": {}, "viewFields": { "createdBy": { - "id": "00000000-0000-0000-0000-000000000906", + "id": "00000000-0000-0000-0000-000000000936", }, "name": { - "id": "00000000-0000-0000-0000-000000000902", + "id": "00000000-0000-0000-0000-000000000932", }, "startedAt": { - "id": "00000000-0000-0000-0000-000000000905", + "id": "00000000-0000-0000-0000-000000000935", }, "status": { - "id": "00000000-0000-0000-0000-000000000904", + "id": "00000000-0000-0000-0000-000000000934", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000903", + "id": "00000000-0000-0000-0000-000000000933", }, "workflowVersion": { - "id": "00000000-0000-0000-0000-000000000907", + "id": "00000000-0000-0000-0000-000000000937", }, }, "viewGroups": {}, }, "workflowRunRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000920", + "id": "00000000-0000-0000-0000-000000000957", "viewFieldGroups": { "additional": { - "id": "00000000-0000-0000-0000-000000000918", + "id": "00000000-0000-0000-0000-000000000955", }, "general": { - "id": "00000000-0000-0000-0000-000000000917", + "id": "00000000-0000-0000-0000-000000000954", }, "other": { - "id": "00000000-0000-0000-0000-000000000919", + "id": "00000000-0000-0000-0000-000000000956", }, }, "viewFields": { + "context": { + "id": "00000000-0000-0000-0000-000000000948", + }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000915", + "id": "00000000-0000-0000-0000-000000000944", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000916", + "id": "00000000-0000-0000-0000-000000000945", }, "endedAt": { - "id": "00000000-0000-0000-0000-000000000914", + "id": "00000000-0000-0000-0000-000000000943", }, - "name": { - "id": "00000000-0000-0000-0000-000000000909", + "enqueuedAt": { + "id": "00000000-0000-0000-0000-000000000946", + }, + "favorites": { + "id": "00000000-0000-0000-0000-000000000952", + }, + "output": { + "id": "00000000-0000-0000-0000-000000000947", }, "startedAt": { - "id": "00000000-0000-0000-0000-000000000913", + "id": "00000000-0000-0000-0000-000000000942", + }, + "state": { + "id": "00000000-0000-0000-0000-000000000949", }, "status": { - "id": "00000000-0000-0000-0000-000000000910", + "id": "00000000-0000-0000-0000-000000000939", + }, + "timelineActivities": { + "id": "00000000-0000-0000-0000-000000000953", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000950", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000951", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000911", + "id": "00000000-0000-0000-0000-000000000940", }, "workflowVersion": { - "id": "00000000-0000-0000-0000-000000000912", + "id": "00000000-0000-0000-0000-000000000941", }, }, "viewGroups": {}, @@ -3102,106 +3213,124 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "workflowVersion": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000923", + "id": "00000000-0000-0000-0000-000000000960", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000936", + "id": "00000000-0000-0000-0000-000000000973", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000925", + "id": "00000000-0000-0000-0000-000000000962", }, "favorites": { - "id": "00000000-0000-0000-0000-000000000933", + "id": "00000000-0000-0000-0000-000000000970", }, "id": { - "id": "00000000-0000-0000-0000-000000000922", + "id": "00000000-0000-0000-0000-000000000959", }, "name": { - "id": "00000000-0000-0000-0000-000000000926", + "id": "00000000-0000-0000-0000-000000000963", }, "position": { - "id": "00000000-0000-0000-0000-000000000930", + "id": "00000000-0000-0000-0000-000000000967", }, "runs": { - "id": "00000000-0000-0000-0000-000000000931", + "id": "00000000-0000-0000-0000-000000000968", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000935", + "id": "00000000-0000-0000-0000-000000000972", }, "status": { - "id": "00000000-0000-0000-0000-000000000929", + "id": "00000000-0000-0000-0000-000000000966", }, "steps": { - "id": "00000000-0000-0000-0000-000000000932", + "id": "00000000-0000-0000-0000-000000000969", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000934", + "id": "00000000-0000-0000-0000-000000000971", }, "trigger": { - "id": "00000000-0000-0000-0000-000000000928", + "id": "00000000-0000-0000-0000-000000000965", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000924", + "id": "00000000-0000-0000-0000-000000000961", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000937", + "id": "00000000-0000-0000-0000-000000000974", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000927", + "id": "00000000-0000-0000-0000-000000000964", }, }, - "id": "00000000-0000-0000-0000-000000000953", + "id": "00000000-0000-0000-0000-000000000996", "views": { "allWorkflowVersions": { - "id": "00000000-0000-0000-0000-000000000943", + "id": "00000000-0000-0000-0000-000000000980", "viewFieldGroups": {}, "viewFields": { "name": { - "id": "00000000-0000-0000-0000-000000000938", + "id": "00000000-0000-0000-0000-000000000975", }, "runs": { - "id": "00000000-0000-0000-0000-000000000942", + "id": "00000000-0000-0000-0000-000000000979", }, "status": { - "id": "00000000-0000-0000-0000-000000000940", + "id": "00000000-0000-0000-0000-000000000977", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000941", + "id": "00000000-0000-0000-0000-000000000978", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000939", + "id": "00000000-0000-0000-0000-000000000976", }, }, "viewGroups": {}, }, "workflowVersionRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000952", + "id": "00000000-0000-0000-0000-000000000995", "viewFieldGroups": { "additional": { - "id": "00000000-0000-0000-0000-000000000950", + "id": "00000000-0000-0000-0000-000000000993", }, "general": { - "id": "00000000-0000-0000-0000-000000000949", + "id": "00000000-0000-0000-0000-000000000992", }, "other": { - "id": "00000000-0000-0000-0000-000000000951", + "id": "00000000-0000-0000-0000-000000000994", }, }, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000948", + "id": "00000000-0000-0000-0000-000000000984", }, - "name": { - "id": "00000000-0000-0000-0000-000000000944", + "createdBy": { + "id": "00000000-0000-0000-0000-000000000986", + }, + "favorites": { + "id": "00000000-0000-0000-0000-000000000990", + }, + "runs": { + "id": "00000000-0000-0000-0000-000000000989", }, "status": { - "id": "00000000-0000-0000-0000-000000000945", + "id": "00000000-0000-0000-0000-000000000981", + }, + "steps": { + "id": "00000000-0000-0000-0000-000000000985", + }, + "timelineActivities": { + "id": "00000000-0000-0000-0000-000000000991", }, "trigger": { - "id": "00000000-0000-0000-0000-000000000947", + "id": "00000000-0000-0000-0000-000000000983", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000987", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000988", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000946", + "id": "00000000-0000-0000-0000-000000000982", }, }, "viewGroups": {}, @@ -3211,128 +3340,128 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "workspaceMember": { "fields": { "accountOwnerForCompanies": { - "id": "00000000-0000-0000-0000-000000000968", + "id": "00000000-0000-0000-0000-000000001011", }, "assignedTasks": { - "id": "00000000-0000-0000-0000-000000000965", + "id": "00000000-0000-0000-0000-000000001008", }, "avatarUrl": { - "id": "00000000-0000-0000-0000-000000000962", + "id": "00000000-0000-0000-0000-000000001005", }, "blocklist": { - "id": "00000000-0000-0000-0000-000000000971", + "id": "00000000-0000-0000-0000-000000001014", }, "calendarEventParticipants": { - "id": "00000000-0000-0000-0000-000000000972", + "id": "00000000-0000-0000-0000-000000001015", }, "calendarStartDay": { - "id": "00000000-0000-0000-0000-000000000978", + "id": "00000000-0000-0000-0000-000000001021", }, "colorScheme": { - "id": "00000000-0000-0000-0000-000000000960", + "id": "00000000-0000-0000-0000-000000001003", }, "connectedAccounts": { - "id": "00000000-0000-0000-0000-000000000969", + "id": "00000000-0000-0000-0000-000000001012", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000955", + "id": "00000000-0000-0000-0000-000000000998", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000980", + "id": "00000000-0000-0000-0000-000000001023", }, "dateFormat": { - "id": "00000000-0000-0000-0000-000000000975", + "id": "00000000-0000-0000-0000-000000001018", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000957", + "id": "00000000-0000-0000-0000-000000001000", }, "favorites": { - "id": "00000000-0000-0000-0000-000000000967", + "id": "00000000-0000-0000-0000-000000001010", }, "id": { - "id": "00000000-0000-0000-0000-000000000954", + "id": "00000000-0000-0000-0000-000000000997", }, "locale": { - "id": "00000000-0000-0000-0000-000000000961", + "id": "00000000-0000-0000-0000-000000001004", }, "messageParticipants": { - "id": "00000000-0000-0000-0000-000000000970", + "id": "00000000-0000-0000-0000-000000001013", }, "name": { - "id": "00000000-0000-0000-0000-000000000959", + "id": "00000000-0000-0000-0000-000000001002", }, "numberFormat": { - "id": "00000000-0000-0000-0000-000000000979", + "id": "00000000-0000-0000-0000-000000001022", }, "ownedOpportunities": { - "id": "00000000-0000-0000-0000-000000000966", + "id": "00000000-0000-0000-0000-000000001009", }, "position": { - "id": "00000000-0000-0000-0000-000000000958", + "id": "00000000-0000-0000-0000-000000001001", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000977", + "id": "00000000-0000-0000-0000-000000001020", }, "timeFormat": { - "id": "00000000-0000-0000-0000-000000000976", + "id": "00000000-0000-0000-0000-000000001019", }, "timeZone": { - "id": "00000000-0000-0000-0000-000000000974", + "id": "00000000-0000-0000-0000-000000001017", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000973", + "id": "00000000-0000-0000-0000-000000001016", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000956", + "id": "00000000-0000-0000-0000-000000000999", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000981", + "id": "00000000-0000-0000-0000-000000001024", }, "userEmail": { - "id": "00000000-0000-0000-0000-000000000963", + "id": "00000000-0000-0000-0000-000000001006", }, "userId": { - "id": "00000000-0000-0000-0000-000000000964", + "id": "00000000-0000-0000-0000-000000001007", }, }, - "id": "00000000-0000-0000-0000-000000000994", + "id": "00000000-0000-0000-0000-000000001037", "views": { "allWorkspaceMembers": { - "id": "00000000-0000-0000-0000-000000000993", + "id": "00000000-0000-0000-0000-000000001036", "viewFieldGroups": {}, "viewFields": { "assignedTasks": { - "id": "00000000-0000-0000-0000-000000000992", + "id": "00000000-0000-0000-0000-000000001035", }, "avatarUrl": { - "id": "00000000-0000-0000-0000-000000000984", + "id": "00000000-0000-0000-0000-000000001027", }, "colorScheme": { - "id": "00000000-0000-0000-0000-000000000985", + "id": "00000000-0000-0000-0000-000000001028", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000990", + "id": "00000000-0000-0000-0000-000000001033", }, "dateFormat": { - "id": "00000000-0000-0000-0000-000000000988", + "id": "00000000-0000-0000-0000-000000001031", }, "locale": { - "id": "00000000-0000-0000-0000-000000000986", + "id": "00000000-0000-0000-0000-000000001029", }, "name": { - "id": "00000000-0000-0000-0000-000000000982", + "id": "00000000-0000-0000-0000-000000001025", }, "ownedOpportunities": { - "id": "00000000-0000-0000-0000-000000000991", + "id": "00000000-0000-0000-0000-000000001034", }, "timeFormat": { - "id": "00000000-0000-0000-0000-000000000989", + "id": "00000000-0000-0000-0000-000000001032", }, "timeZone": { - "id": "00000000-0000-0000-0000-000000000987", + "id": "00000000-0000-0000-0000-000000001030", }, "userEmail": { - "id": "00000000-0000-0000-0000-000000000983", + "id": "00000000-0000-0000-0000-000000001026", }, }, "viewGroups": {}, diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-page-layout-metadata-related-entity-ids.util.spec.ts.snap b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-page-layout-metadata-related-entity-ids.util.spec.ts.snap index 9c87a5ba36..a9e5c681ab 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-page-layout-metadata-related-entity-ids.util.spec.ts.snap +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-page-layout-metadata-related-entity-ids.util.spec.ts.snap @@ -6,40 +6,37 @@ exports[`getStandardPageLayoutMetadataRelatedEntityIds should return standard pa "id": "00000000-0000-0000-0000-000000000011", "tabs": { "calendar": { - "id": "00000000-0000-0000-0000-000000000027", + "id": "00000000-0000-0000-0000-000000000026", "widgets": { "calendar": { - "id": "00000000-0000-0000-0000-000000000028", + "id": "00000000-0000-0000-0000-000000000027", }, }, }, "emails": { - "id": "00000000-0000-0000-0000-000000000025", + "id": "00000000-0000-0000-0000-000000000024", "widgets": { "emails": { - "id": "00000000-0000-0000-0000-000000000026", + "id": "00000000-0000-0000-0000-000000000025", }, }, }, "files": { - "id": "00000000-0000-0000-0000-000000000023", + "id": "00000000-0000-0000-0000-000000000022", "widgets": { "files": { - "id": "00000000-0000-0000-0000-000000000024", + "id": "00000000-0000-0000-0000-000000000023", }, }, }, "home": { "id": "00000000-0000-0000-0000-000000000012", "widgets": { - "accountOwner": { - "id": "00000000-0000-0000-0000-000000000015", - }, "fields": { "id": "00000000-0000-0000-0000-000000000013", }, "opportunities": { - "id": "00000000-0000-0000-0000-000000000016", + "id": "00000000-0000-0000-0000-000000000015", }, "people": { "id": "00000000-0000-0000-0000-000000000014", @@ -47,26 +44,26 @@ exports[`getStandardPageLayoutMetadataRelatedEntityIds should return standard pa }, }, "notes": { - "id": "00000000-0000-0000-0000-000000000021", + "id": "00000000-0000-0000-0000-000000000020", "widgets": { "notes": { - "id": "00000000-0000-0000-0000-000000000022", + "id": "00000000-0000-0000-0000-000000000021", }, }, }, "tasks": { - "id": "00000000-0000-0000-0000-000000000019", + "id": "00000000-0000-0000-0000-000000000018", "widgets": { "tasks": { - "id": "00000000-0000-0000-0000-000000000020", + "id": "00000000-0000-0000-0000-000000000019", }, }, }, "timeline": { - "id": "00000000-0000-0000-0000-000000000017", + "id": "00000000-0000-0000-0000-000000000016", "widgets": { "timeline": { - "id": "00000000-0000-0000-0000-000000000018", + "id": "00000000-0000-0000-0000-000000000017", }, }, }, @@ -107,281 +104,278 @@ exports[`getStandardPageLayoutMetadataRelatedEntityIds should return standard pa }, }, "noteRecordPage": { - "id": "00000000-0000-0000-0000-000000000064", + "id": "00000000-0000-0000-0000-000000000063", "tabs": { "files": { - "id": "00000000-0000-0000-0000-000000000072", + "id": "00000000-0000-0000-0000-000000000071", "widgets": { "files": { - "id": "00000000-0000-0000-0000-000000000073", + "id": "00000000-0000-0000-0000-000000000072", }, }, }, "home": { - "id": "00000000-0000-0000-0000-000000000065", + "id": "00000000-0000-0000-0000-000000000064", "widgets": { "fields": { - "id": "00000000-0000-0000-0000-000000000066", + "id": "00000000-0000-0000-0000-000000000065", }, "noteRichText": { - "id": "00000000-0000-0000-0000-000000000067", + "id": "00000000-0000-0000-0000-000000000066", }, }, }, "note": { - "id": "00000000-0000-0000-0000-000000000068", + "id": "00000000-0000-0000-0000-000000000067", "widgets": { "noteRichText": { - "id": "00000000-0000-0000-0000-000000000069", + "id": "00000000-0000-0000-0000-000000000068", }, }, }, "timeline": { - "id": "00000000-0000-0000-0000-000000000070", + "id": "00000000-0000-0000-0000-000000000069", "widgets": { "timeline": { - "id": "00000000-0000-0000-0000-000000000071", + "id": "00000000-0000-0000-0000-000000000070", }, }, }, }, }, "opportunityRecordPage": { - "id": "00000000-0000-0000-0000-000000000046", + "id": "00000000-0000-0000-0000-000000000045", "tabs": { "calendar": { - "id": "00000000-0000-0000-0000-000000000062", + "id": "00000000-0000-0000-0000-000000000061", "widgets": { "calendar": { - "id": "00000000-0000-0000-0000-000000000063", + "id": "00000000-0000-0000-0000-000000000062", }, }, }, "emails": { - "id": "00000000-0000-0000-0000-000000000060", + "id": "00000000-0000-0000-0000-000000000059", "widgets": { "emails": { - "id": "00000000-0000-0000-0000-000000000061", + "id": "00000000-0000-0000-0000-000000000060", }, }, }, "files": { - "id": "00000000-0000-0000-0000-000000000058", + "id": "00000000-0000-0000-0000-000000000057", "widgets": { "files": { - "id": "00000000-0000-0000-0000-000000000059", + "id": "00000000-0000-0000-0000-000000000058", }, }, }, "home": { - "id": "00000000-0000-0000-0000-000000000047", + "id": "00000000-0000-0000-0000-000000000046", "widgets": { "company": { - "id": "00000000-0000-0000-0000-000000000050", + "id": "00000000-0000-0000-0000-000000000049", }, "fields": { - "id": "00000000-0000-0000-0000-000000000048", + "id": "00000000-0000-0000-0000-000000000047", }, "owner": { - "id": "00000000-0000-0000-0000-000000000051", + "id": "00000000-0000-0000-0000-000000000050", }, "pointOfContact": { - "id": "00000000-0000-0000-0000-000000000049", + "id": "00000000-0000-0000-0000-000000000048", }, }, }, "notes": { - "id": "00000000-0000-0000-0000-000000000056", + "id": "00000000-0000-0000-0000-000000000055", "widgets": { "notes": { - "id": "00000000-0000-0000-0000-000000000057", + "id": "00000000-0000-0000-0000-000000000056", }, }, }, "tasks": { - "id": "00000000-0000-0000-0000-000000000054", + "id": "00000000-0000-0000-0000-000000000053", "widgets": { "tasks": { - "id": "00000000-0000-0000-0000-000000000055", + "id": "00000000-0000-0000-0000-000000000054", }, }, }, "timeline": { - "id": "00000000-0000-0000-0000-000000000052", + "id": "00000000-0000-0000-0000-000000000051", "widgets": { "timeline": { - "id": "00000000-0000-0000-0000-000000000053", + "id": "00000000-0000-0000-0000-000000000052", }, }, }, }, }, "personRecordPage": { - "id": "00000000-0000-0000-0000-000000000029", + "id": "00000000-0000-0000-0000-000000000028", "tabs": { "calendar": { - "id": "00000000-0000-0000-0000-000000000044", + "id": "00000000-0000-0000-0000-000000000043", "widgets": { "calendar": { - "id": "00000000-0000-0000-0000-000000000045", + "id": "00000000-0000-0000-0000-000000000044", }, }, }, "emails": { - "id": "00000000-0000-0000-0000-000000000042", + "id": "00000000-0000-0000-0000-000000000041", "widgets": { "emails": { - "id": "00000000-0000-0000-0000-000000000043", + "id": "00000000-0000-0000-0000-000000000042", }, }, }, "files": { - "id": "00000000-0000-0000-0000-000000000040", + "id": "00000000-0000-0000-0000-000000000039", "widgets": { "files": { - "id": "00000000-0000-0000-0000-000000000041", + "id": "00000000-0000-0000-0000-000000000040", }, }, }, "home": { - "id": "00000000-0000-0000-0000-000000000030", + "id": "00000000-0000-0000-0000-000000000029", "widgets": { "company": { - "id": "00000000-0000-0000-0000-000000000032", - }, - "fields": { "id": "00000000-0000-0000-0000-000000000031", }, + "fields": { + "id": "00000000-0000-0000-0000-000000000030", + }, "pointOfContactForOpportunities": { - "id": "00000000-0000-0000-0000-000000000033", + "id": "00000000-0000-0000-0000-000000000032", }, }, }, "notes": { - "id": "00000000-0000-0000-0000-000000000038", + "id": "00000000-0000-0000-0000-000000000037", "widgets": { "notes": { - "id": "00000000-0000-0000-0000-000000000039", + "id": "00000000-0000-0000-0000-000000000038", }, }, }, "tasks": { - "id": "00000000-0000-0000-0000-000000000036", + "id": "00000000-0000-0000-0000-000000000035", "widgets": { "tasks": { - "id": "00000000-0000-0000-0000-000000000037", + "id": "00000000-0000-0000-0000-000000000036", }, }, }, "timeline": { - "id": "00000000-0000-0000-0000-000000000034", + "id": "00000000-0000-0000-0000-000000000033", "widgets": { "timeline": { - "id": "00000000-0000-0000-0000-000000000035", + "id": "00000000-0000-0000-0000-000000000034", }, }, }, }, }, "taskRecordPage": { - "id": "00000000-0000-0000-0000-000000000074", + "id": "00000000-0000-0000-0000-000000000073", "tabs": { "files": { - "id": "00000000-0000-0000-0000-000000000083", + "id": "00000000-0000-0000-0000-000000000081", "widgets": { "files": { - "id": "00000000-0000-0000-0000-000000000084", + "id": "00000000-0000-0000-0000-000000000082", }, }, }, "home": { - "id": "00000000-0000-0000-0000-000000000075", + "id": "00000000-0000-0000-0000-000000000074", "widgets": { - "assignee": { - "id": "00000000-0000-0000-0000-000000000078", - }, "fields": { - "id": "00000000-0000-0000-0000-000000000076", + "id": "00000000-0000-0000-0000-000000000075", }, "taskRichText": { - "id": "00000000-0000-0000-0000-000000000077", + "id": "00000000-0000-0000-0000-000000000076", }, }, }, "note": { - "id": "00000000-0000-0000-0000-000000000079", + "id": "00000000-0000-0000-0000-000000000077", "widgets": { "taskRichText": { - "id": "00000000-0000-0000-0000-000000000080", + "id": "00000000-0000-0000-0000-000000000078", }, }, }, "timeline": { - "id": "00000000-0000-0000-0000-000000000081", + "id": "00000000-0000-0000-0000-000000000079", "widgets": { "timeline": { - "id": "00000000-0000-0000-0000-000000000082", + "id": "00000000-0000-0000-0000-000000000080", }, }, }, }, }, "workflowRecordPage": { - "id": "00000000-0000-0000-0000-000000000085", + "id": "00000000-0000-0000-0000-000000000083", "tabs": { "flow": { - "id": "00000000-0000-0000-0000-000000000086", + "id": "00000000-0000-0000-0000-000000000084", "widgets": { "workflow": { - "id": "00000000-0000-0000-0000-000000000087", + "id": "00000000-0000-0000-0000-000000000085", }, }, }, }, }, "workflowRunRecordPage": { - "id": "00000000-0000-0000-0000-000000000094", + "id": "00000000-0000-0000-0000-000000000092", "tabs": { "flow": { - "id": "00000000-0000-0000-0000-000000000098", + "id": "00000000-0000-0000-0000-000000000096", "widgets": { "workflowRun": { - "id": "00000000-0000-0000-0000-000000000099", + "id": "00000000-0000-0000-0000-000000000097", }, }, }, "home": { - "id": "00000000-0000-0000-0000-000000000095", + "id": "00000000-0000-0000-0000-000000000093", "widgets": { "fields": { - "id": "00000000-0000-0000-0000-000000000096", + "id": "00000000-0000-0000-0000-000000000094", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000097", + "id": "00000000-0000-0000-0000-000000000095", }, }, }, }, }, "workflowVersionRecordPage": { - "id": "00000000-0000-0000-0000-000000000088", + "id": "00000000-0000-0000-0000-000000000086", "tabs": { "flow": { - "id": "00000000-0000-0000-0000-000000000092", + "id": "00000000-0000-0000-0000-000000000090", "widgets": { "workflowVersion": { - "id": "00000000-0000-0000-0000-000000000093", + "id": "00000000-0000-0000-0000-000000000091", }, }, }, "home": { - "id": "00000000-0000-0000-0000-000000000089", + "id": "00000000-0000-0000-0000-000000000087", "widgets": { "fields": { - "id": "00000000-0000-0000-0000-000000000090", + "id": "00000000-0000-0000-0000-000000000088", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000091", + "id": "00000000-0000-0000-0000-000000000089", }, }, }, diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-company-page-layout.config.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-company-page-layout.config.ts index 3231d82c4e..e6b0a96985 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-company-page-layout.config.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-company-page-layout.config.ts @@ -31,21 +31,12 @@ const COMPANY_PAGE_TABS = { fieldUniversalIdentifier: STANDARD_OBJECTS.company.fields.people.universalIdentifier, }, - accountOwner: { - universalIdentifier: '20202020-ac01-4001-8001-c0aba11c0113', - title: 'Account Owner', - type: WidgetType.FIELD, - gridPosition: GRID_POSITIONS.FULL_WIDTH, - position: VERTICAL_LIST_LAYOUT_POSITIONS.THIRD, - fieldUniversalIdentifier: - STANDARD_OBJECTS.company.fields.accountOwner.universalIdentifier, - }, opportunities: { universalIdentifier: '20202020-ac01-4001-8001-c0aba11c0114', title: 'Opportunities', type: WidgetType.FIELD, gridPosition: GRID_POSITIONS.FULL_WIDTH, - position: VERTICAL_LIST_LAYOUT_POSITIONS.FOURTH, + position: VERTICAL_LIST_LAYOUT_POSITIONS.THIRD, fieldUniversalIdentifier: STANDARD_OBJECTS.company.fields.opportunities.universalIdentifier, }, diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-task-page-layout.config.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-task-page-layout.config.ts index d02de7abc3..39d55755fa 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-task-page-layout.config.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-task-page-layout.config.ts @@ -1,13 +1,10 @@ import { STANDARD_OBJECTS } from 'twenty-shared/metadata'; -import { WidgetType } from 'src/engine/metadata-modules/page-layout-widget/enums/widget-type.enum'; import { PageLayoutType } from 'src/engine/metadata-modules/page-layout/enums/page-layout-type.enum'; import { CONDITIONAL_DISPLAY_DEVICE_DESKTOP, CONDITIONAL_DISPLAY_DEVICE_MOBILE, - GRID_POSITIONS, TAB_PROPS, - VERTICAL_LIST_LAYOUT_POSITIONS, WIDGET_PROPS, } from 'src/engine/workspace-manager/twenty-standard-application/constants/standard-page-layout-tabs.template'; import { @@ -32,15 +29,6 @@ const TASK_PAGE_TABS = { position: { layoutMode: TAB_PROPS.home.layoutMode, index: 1 }, conditionalDisplay: CONDITIONAL_DISPLAY_DEVICE_MOBILE, }, - assignee: { - universalIdentifier: '20202020-ac05-4005-8005-ba5ca11a5513', - title: 'Assignee', - type: WidgetType.FIELD, - gridPosition: GRID_POSITIONS.FULL_WIDTH, - position: VERTICAL_LIST_LAYOUT_POSITIONS.THIRD, - fieldUniversalIdentifier: - STANDARD_OBJECTS.task.fields.assignee.universalIdentifier, - }, }, }, note: { diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-blocklist-view-fields.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-blocklist-view-fields.util.ts index 56ef78b8af..e62660c636 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-blocklist-view-fields.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-blocklist-view-fields.util.ts @@ -45,19 +45,6 @@ export const computeStandardBlocklistViewFields = ( }, }), - blocklistRecordPageFieldsHandle: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'blocklist', - context: { - viewName: 'blocklistRecordPageFields', - viewFieldName: 'handle', - fieldName: 'handle', - position: 0, - isVisible: true, - size: 150, - viewFieldGroupName: 'general', - }, - }), blocklistRecordPageFieldsWorkspaceMember: createStandardViewFieldFlatMetadata({ ...args, diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-calendar-channel-view-fields.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-calendar-channel-view-fields.util.ts index da8617ee9f..fc019af19d 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-calendar-channel-view-fields.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-calendar-channel-view-fields.util.ts @@ -81,19 +81,6 @@ export const computeStandardCalendarChannelViewFields = ( }, }), - calendarChannelRecordPageFieldsHandle: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'calendarChannel', - context: { - viewName: 'calendarChannelRecordPageFields', - viewFieldName: 'handle', - fieldName: 'handle', - position: 0, - isVisible: true, - size: 150, - viewFieldGroupName: 'general', - }, - }), calendarChannelRecordPageFieldsConnectedAccount: createStandardViewFieldFlatMetadata({ ...args, diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-company-view-fields.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-company-view-fields.util.ts index d580c0b87e..dcef868f4a 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-company-view-fields.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-company-view-fields.util.ts @@ -245,5 +245,123 @@ export const computeStandardCompanyViewFields = ( viewFieldGroupName: 'other', }, }), + companyRecordPageFieldsUpdatedAt: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'company', + context: { + viewName: 'companyRecordPageFields', + viewFieldName: 'updatedAt', + fieldName: 'updatedAt', + position: 6, + isVisible: false, + size: 150, + viewFieldGroupName: 'other', + }, + }), + companyRecordPageFieldsUpdatedBy: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'company', + context: { + viewName: 'companyRecordPageFields', + viewFieldName: 'updatedBy', + fieldName: 'updatedBy', + position: 7, + isVisible: false, + size: 150, + viewFieldGroupName: 'other', + }, + }), + companyRecordPageFieldsPeople: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'company', + context: { + viewName: 'companyRecordPageFields', + viewFieldName: 'people', + fieldName: 'people', + position: 4, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), + companyRecordPageFieldsTaskTargets: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'company', + context: { + viewName: 'companyRecordPageFields', + viewFieldName: 'taskTargets', + fieldName: 'taskTargets', + position: 5, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), + companyRecordPageFieldsNoteTargets: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'company', + context: { + viewName: 'companyRecordPageFields', + viewFieldName: 'noteTargets', + fieldName: 'noteTargets', + position: 6, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), + companyRecordPageFieldsOpportunities: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'company', + context: { + viewName: 'companyRecordPageFields', + viewFieldName: 'opportunities', + fieldName: 'opportunities', + position: 7, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), + companyRecordPageFieldsFavorites: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'company', + context: { + viewName: 'companyRecordPageFields', + viewFieldName: 'favorites', + fieldName: 'favorites', + position: 8, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), + companyRecordPageFieldsAttachments: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'company', + context: { + viewName: 'companyRecordPageFields', + viewFieldName: 'attachments', + fieldName: 'attachments', + position: 9, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), + companyRecordPageFieldsTimelineActivities: + createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'company', + context: { + viewName: 'companyRecordPageFields', + viewFieldName: 'timelineActivities', + fieldName: 'timelineActivities', + position: 10, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), }; }; diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-connected-account-view-fields.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-connected-account-view-fields.util.ts index 92a3f2bdbf..2f580a432c 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-connected-account-view-fields.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-connected-account-view-fields.util.ts @@ -69,21 +69,6 @@ export const computeStandardConnectedAccountViewFields = ( }, }), - connectedAccountRecordPageFieldsHandle: createStandardViewFieldFlatMetadata( - { - ...args, - objectName: 'connectedAccount', - context: { - viewName: 'connectedAccountRecordPageFields', - viewFieldName: 'handle', - fieldName: 'handle', - position: 0, - isVisible: true, - size: 150, - viewFieldGroupName: 'general', - }, - }, - ), connectedAccountRecordPageFieldsProvider: createStandardViewFieldFlatMetadata({ ...args, diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-favorite-folder-view-fields.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-favorite-folder-view-fields.util.ts index 734b1e63d7..b6afe41d93 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-favorite-folder-view-fields.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-favorite-folder-view-fields.util.ts @@ -33,19 +33,6 @@ export const computeStandardFavoriteFolderViewFields = ( }, }), - favoriteFolderRecordPageFieldsName: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'favoriteFolder', - context: { - viewName: 'favoriteFolderRecordPageFields', - viewFieldName: 'name', - fieldName: 'name', - position: 0, - isVisible: true, - size: 150, - viewFieldGroupName: 'general', - }, - }), favoriteFolderRecordPageFieldsCreatedAt: createStandardViewFieldFlatMetadata({ ...args, diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-channel-view-fields.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-channel-view-fields.util.ts index 0d4cff1d9e..f4841aa78e 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-channel-view-fields.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-channel-view-fields.util.ts @@ -93,19 +93,6 @@ export const computeStandardMessageChannelViewFields = ( }, }), - messageChannelRecordPageFieldsHandle: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'messageChannel', - context: { - viewName: 'messageChannelRecordPageFields', - viewFieldName: 'handle', - fieldName: 'handle', - position: 0, - isVisible: true, - size: 150, - viewFieldGroupName: 'general', - }, - }), messageChannelRecordPageFieldsConnectedAccount: createStandardViewFieldFlatMetadata({ ...args, diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-folder-view-fields.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-folder-view-fields.util.ts index 8fcdcd5918..c5aac4d3a5 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-folder-view-fields.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-folder-view-fields.util.ts @@ -69,19 +69,6 @@ export const computeStandardMessageFolderViewFields = ( }, }), - messageFolderRecordPageFieldsName: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'messageFolder', - context: { - viewName: 'messageFolderRecordPageFields', - viewFieldName: 'name', - fieldName: 'name', - position: 0, - isVisible: true, - size: 150, - viewFieldGroupName: 'general', - }, - }), messageFolderRecordPageFieldsMessageChannel: createStandardViewFieldFlatMetadata({ ...args, diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-participant-view-fields.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-participant-view-fields.util.ts index 0fedf85074..1425677dae 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-participant-view-fields.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-participant-view-fields.util.ts @@ -93,20 +93,6 @@ export const computeStandardMessageParticipantViewFields = ( }, }), - messageParticipantRecordPageFieldsHandle: - createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'messageParticipant', - context: { - viewName: 'messageParticipantRecordPageFields', - viewFieldName: 'handle', - fieldName: 'handle', - position: 0, - isVisible: true, - size: 150, - viewFieldGroupName: 'general', - }, - }), messageParticipantRecordPageFieldsMessage: createStandardViewFieldFlatMetadata({ ...args, diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-note-view-fields.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-note-view-fields.util.ts index faec6a4ecb..6f75111de4 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-note-view-fields.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-note-view-fields.util.ts @@ -70,19 +70,6 @@ export const computeStandardNoteViewFields = ( }), // noteRecordPageFields view fields - noteRecordPageFieldsTitle: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'note', - context: { - viewName: 'noteRecordPageFields', - viewFieldName: 'title', - fieldName: 'title', - position: 0, - isVisible: true, - size: 150, - viewFieldGroupName: 'general', - }, - }), noteRecordPageFieldsNoteTargets: createStandardViewFieldFlatMetadata({ ...args, objectName: 'note', @@ -122,5 +109,85 @@ export const computeStandardNoteViewFields = ( viewFieldGroupName: 'other', }, }), + noteRecordPageFieldsBodyV2: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'note', + context: { + viewName: 'noteRecordPageFields', + viewFieldName: 'bodyV2', + fieldName: 'bodyV2', + position: 0, + isVisible: false, + size: 150, + viewFieldGroupName: 'additional', + }, + }), + noteRecordPageFieldsUpdatedAt: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'note', + context: { + viewName: 'noteRecordPageFields', + viewFieldName: 'updatedAt', + fieldName: 'updatedAt', + position: 2, + isVisible: false, + size: 150, + viewFieldGroupName: 'other', + }, + }), + noteRecordPageFieldsUpdatedBy: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'note', + context: { + viewName: 'noteRecordPageFields', + viewFieldName: 'updatedBy', + fieldName: 'updatedBy', + position: 3, + isVisible: false, + size: 150, + viewFieldGroupName: 'other', + }, + }), + noteRecordPageFieldsAttachments: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'note', + context: { + viewName: 'noteRecordPageFields', + viewFieldName: 'attachments', + fieldName: 'attachments', + position: 2, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), + noteRecordPageFieldsTimelineActivities: createStandardViewFieldFlatMetadata( + { + ...args, + objectName: 'note', + context: { + viewName: 'noteRecordPageFields', + viewFieldName: 'timelineActivities', + fieldName: 'timelineActivities', + position: 3, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }, + ), + noteRecordPageFieldsFavorites: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'note', + context: { + viewName: 'noteRecordPageFields', + viewFieldName: 'favorites', + fieldName: 'favorites', + position: 4, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), }; }; diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-opportunity-view-fields.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-opportunity-view-fields.util.ts index a205f30727..17e9f2a783 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-opportunity-view-fields.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-opportunity-view-fields.util.ts @@ -266,5 +266,103 @@ export const computeStandardOpportunityViewFields = ( viewFieldGroupName: 'other', }, }), + opportunityRecordPageFieldsUpdatedAt: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'opportunity', + context: { + viewName: 'opportunityRecordPageFields', + viewFieldName: 'updatedAt', + fieldName: 'updatedAt', + position: 2, + isVisible: false, + size: 150, + viewFieldGroupName: 'other', + }, + }), + opportunityRecordPageFieldsUpdatedBy: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'opportunity', + context: { + viewName: 'opportunityRecordPageFields', + viewFieldName: 'updatedBy', + fieldName: 'updatedBy', + position: 3, + isVisible: false, + size: 150, + viewFieldGroupName: 'other', + }, + }), + opportunityRecordPageFieldsFavorites: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'opportunity', + context: { + viewName: 'opportunityRecordPageFields', + viewFieldName: 'favorites', + fieldName: 'favorites', + position: 5, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), + opportunityRecordPageFieldsTaskTargets: createStandardViewFieldFlatMetadata( + { + ...args, + objectName: 'opportunity', + context: { + viewName: 'opportunityRecordPageFields', + viewFieldName: 'taskTargets', + fieldName: 'taskTargets', + position: 6, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }, + ), + opportunityRecordPageFieldsNoteTargets: createStandardViewFieldFlatMetadata( + { + ...args, + objectName: 'opportunity', + context: { + viewName: 'opportunityRecordPageFields', + viewFieldName: 'noteTargets', + fieldName: 'noteTargets', + position: 7, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }, + ), + opportunityRecordPageFieldsAttachments: createStandardViewFieldFlatMetadata( + { + ...args, + objectName: 'opportunity', + context: { + viewName: 'opportunityRecordPageFields', + viewFieldName: 'attachments', + fieldName: 'attachments', + position: 8, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }, + ), + opportunityRecordPageFieldsTimelineActivities: + createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'opportunity', + context: { + viewName: 'opportunityRecordPageFields', + viewFieldName: 'timelineActivities', + fieldName: 'timelineActivities', + position: 9, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), }; }; diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-person-view-fields.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-person-view-fields.util.ts index ed1a17bc5c..263ac51994 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-person-view-fields.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-person-view-fields.util.ts @@ -266,5 +266,152 @@ export const computeStandardPersonViewFields = ( viewFieldGroupName: 'other', }, }), + personRecordPageFieldsUpdatedAt: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'person', + context: { + viewName: 'personRecordPageFields', + viewFieldName: 'updatedAt', + fieldName: 'updatedAt', + position: 4, + isVisible: false, + size: 150, + viewFieldGroupName: 'other', + }, + }), + personRecordPageFieldsUpdatedBy: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'person', + context: { + viewName: 'personRecordPageFields', + viewFieldName: 'updatedBy', + fieldName: 'updatedBy', + position: 5, + isVisible: false, + size: 150, + viewFieldGroupName: 'other', + }, + }), + personRecordPageFieldsAvatarFile: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'person', + context: { + viewName: 'personRecordPageFields', + viewFieldName: 'avatarFile', + fieldName: 'avatarFile', + position: 0, + isVisible: false, + size: 150, + viewFieldGroupName: 'additional', + }, + }), + personRecordPageFieldsPointOfContactForOpportunities: + createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'person', + context: { + viewName: 'personRecordPageFields', + viewFieldName: 'pointOfContactForOpportunities', + fieldName: 'pointOfContactForOpportunities', + position: 5, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), + personRecordPageFieldsTaskTargets: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'person', + context: { + viewName: 'personRecordPageFields', + viewFieldName: 'taskTargets', + fieldName: 'taskTargets', + position: 6, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), + personRecordPageFieldsNoteTargets: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'person', + context: { + viewName: 'personRecordPageFields', + viewFieldName: 'noteTargets', + fieldName: 'noteTargets', + position: 7, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), + personRecordPageFieldsFavorites: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'person', + context: { + viewName: 'personRecordPageFields', + viewFieldName: 'favorites', + fieldName: 'favorites', + position: 8, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), + personRecordPageFieldsAttachments: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'person', + context: { + viewName: 'personRecordPageFields', + viewFieldName: 'attachments', + fieldName: 'attachments', + position: 9, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), + personRecordPageFieldsMessageParticipants: + createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'person', + context: { + viewName: 'personRecordPageFields', + viewFieldName: 'messageParticipants', + fieldName: 'messageParticipants', + position: 10, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), + personRecordPageFieldsCalendarEventParticipants: + createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'person', + context: { + viewName: 'personRecordPageFields', + viewFieldName: 'calendarEventParticipants', + fieldName: 'calendarEventParticipants', + position: 11, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), + personRecordPageFieldsTimelineActivities: + createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'person', + context: { + viewName: 'personRecordPageFields', + viewFieldName: 'timelineActivities', + fieldName: 'timelineActivities', + position: 12, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), }; }; diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-task-view-fields.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-task-view-fields.util.ts index 3df8a04c56..9938300d55 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-task-view-fields.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-task-view-fields.util.ts @@ -255,19 +255,6 @@ export const computeStandardTaskViewFields = ( }), // taskRecordPageFields view fields - taskRecordPageFieldsTitle: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'task', - context: { - viewName: 'taskRecordPageFields', - viewFieldName: 'title', - fieldName: 'title', - position: 0, - isVisible: true, - size: 150, - viewFieldGroupName: 'general', - }, - }), taskRecordPageFieldsDueAt: createStandardViewFieldFlatMetadata({ ...args, objectName: 'task', @@ -346,5 +333,85 @@ export const computeStandardTaskViewFields = ( viewFieldGroupName: 'other', }, }), + taskRecordPageFieldsBodyV2: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'task', + context: { + viewName: 'taskRecordPageFields', + viewFieldName: 'bodyV2', + fieldName: 'bodyV2', + position: 0, + isVisible: false, + size: 150, + viewFieldGroupName: 'additional', + }, + }), + taskRecordPageFieldsUpdatedAt: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'task', + context: { + viewName: 'taskRecordPageFields', + viewFieldName: 'updatedAt', + fieldName: 'updatedAt', + position: 2, + isVisible: false, + size: 150, + viewFieldGroupName: 'other', + }, + }), + taskRecordPageFieldsUpdatedBy: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'task', + context: { + viewName: 'taskRecordPageFields', + viewFieldName: 'updatedBy', + fieldName: 'updatedBy', + position: 3, + isVisible: false, + size: 150, + viewFieldGroupName: 'other', + }, + }), + taskRecordPageFieldsAttachments: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'task', + context: { + viewName: 'taskRecordPageFields', + viewFieldName: 'attachments', + fieldName: 'attachments', + position: 5, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), + taskRecordPageFieldsTimelineActivities: createStandardViewFieldFlatMetadata( + { + ...args, + objectName: 'task', + context: { + viewName: 'taskRecordPageFields', + viewFieldName: 'timelineActivities', + fieldName: 'timelineActivities', + position: 6, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }, + ), + taskRecordPageFieldsFavorites: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'task', + context: { + viewName: 'taskRecordPageFields', + viewFieldName: 'favorites', + fieldName: 'favorites', + position: 7, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), }; }; diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-workflow-run-view-fields.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-workflow-run-view-fields.util.ts index 5a73edbd33..4f625f067b 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-workflow-run-view-fields.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-workflow-run-view-fields.util.ts @@ -46,19 +46,6 @@ export const computeStandardWorkflowRunViewFields = ( }), // workflowRunRecordPageFields view fields - workflowRunRecordPageFieldsName: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'workflowRun', - context: { - viewName: 'workflowRunRecordPageFields', - viewFieldName: 'name', - fieldName: 'name', - position: 0, - isVisible: true, - size: 150, - viewFieldGroupName: 'general', - }, - }), workflowRunRecordPageFieldsStatus: createStandardViewFieldFlatMetadata({ ...args, objectName: 'workflowRun', @@ -151,5 +138,110 @@ export const computeStandardWorkflowRunViewFields = ( viewFieldGroupName: 'other', }, }), + workflowRunRecordPageFieldsEnqueuedAt: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'workflowRun', + context: { + viewName: 'workflowRunRecordPageFields', + viewFieldName: 'enqueuedAt', + fieldName: 'enqueuedAt', + position: 0, + isVisible: false, + size: 150, + viewFieldGroupName: 'additional', + }, + }), + workflowRunRecordPageFieldsOutput: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'workflowRun', + context: { + viewName: 'workflowRunRecordPageFields', + viewFieldName: 'output', + fieldName: 'output', + position: 6, + isVisible: true, + size: 150, + viewFieldGroupName: 'general', + }, + }), + workflowRunRecordPageFieldsContext: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'workflowRun', + context: { + viewName: 'workflowRunRecordPageFields', + viewFieldName: 'context', + fieldName: 'context', + position: 7, + isVisible: true, + size: 150, + viewFieldGroupName: 'general', + }, + }), + workflowRunRecordPageFieldsState: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'workflowRun', + context: { + viewName: 'workflowRunRecordPageFields', + viewFieldName: 'state', + fieldName: 'state', + position: 8, + isVisible: true, + size: 150, + viewFieldGroupName: 'general', + }, + }), + workflowRunRecordPageFieldsUpdatedAt: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'workflowRun', + context: { + viewName: 'workflowRunRecordPageFields', + viewFieldName: 'updatedAt', + fieldName: 'updatedAt', + position: 2, + isVisible: false, + size: 150, + viewFieldGroupName: 'other', + }, + }), + workflowRunRecordPageFieldsUpdatedBy: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'workflowRun', + context: { + viewName: 'workflowRunRecordPageFields', + viewFieldName: 'updatedBy', + fieldName: 'updatedBy', + position: 3, + isVisible: false, + size: 150, + viewFieldGroupName: 'other', + }, + }), + workflowRunRecordPageFieldsFavorites: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'workflowRun', + context: { + viewName: 'workflowRunRecordPageFields', + viewFieldName: 'favorites', + fieldName: 'favorites', + position: 9, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), + workflowRunRecordPageFieldsTimelineActivities: + createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'workflowRun', + context: { + viewName: 'workflowRunRecordPageFields', + viewFieldName: 'timelineActivities', + fieldName: 'timelineActivities', + position: 10, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), }; }; diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-workflow-version-view-fields.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-workflow-version-view-fields.util.ts index a8e505ffe7..2ec02e5c40 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-workflow-version-view-fields.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-workflow-version-view-fields.util.ts @@ -70,19 +70,6 @@ export const computeStandardWorkflowVersionViewFields = ( }), // workflowVersionRecordPageFields view fields - workflowVersionRecordPageFieldsName: createStandardViewFieldFlatMetadata({ - ...args, - objectName: 'workflowVersion', - context: { - viewName: 'workflowVersionRecordPageFields', - viewFieldName: 'name', - fieldName: 'name', - position: 0, - isVisible: true, - size: 150, - viewFieldGroupName: 'general', - }, - }), workflowVersionRecordPageFieldsStatus: createStandardViewFieldFlatMetadata({ ...args, objectName: 'workflowVersion', @@ -139,5 +126,101 @@ export const computeStandardWorkflowVersionViewFields = ( viewFieldGroupName: 'other', }, }), + workflowVersionRecordPageFieldsSteps: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'workflowVersion', + context: { + viewName: 'workflowVersionRecordPageFields', + viewFieldName: 'steps', + fieldName: 'steps', + position: 0, + isVisible: false, + size: 150, + viewFieldGroupName: 'additional', + }, + }), + workflowVersionRecordPageFieldsCreatedBy: + createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'workflowVersion', + context: { + viewName: 'workflowVersionRecordPageFields', + viewFieldName: 'createdBy', + fieldName: 'createdBy', + position: 1, + isVisible: false, + size: 150, + viewFieldGroupName: 'other', + }, + }), + workflowVersionRecordPageFieldsUpdatedAt: + createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'workflowVersion', + context: { + viewName: 'workflowVersionRecordPageFields', + viewFieldName: 'updatedAt', + fieldName: 'updatedAt', + position: 2, + isVisible: false, + size: 150, + viewFieldGroupName: 'other', + }, + }), + workflowVersionRecordPageFieldsUpdatedBy: + createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'workflowVersion', + context: { + viewName: 'workflowVersionRecordPageFields', + viewFieldName: 'updatedBy', + fieldName: 'updatedBy', + position: 3, + isVisible: false, + size: 150, + viewFieldGroupName: 'other', + }, + }), + workflowVersionRecordPageFieldsRuns: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'workflowVersion', + context: { + viewName: 'workflowVersionRecordPageFields', + viewFieldName: 'runs', + fieldName: 'runs', + position: 4, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), + workflowVersionRecordPageFieldsFavorites: + createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'workflowVersion', + context: { + viewName: 'workflowVersionRecordPageFields', + viewFieldName: 'favorites', + fieldName: 'favorites', + position: 5, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), + workflowVersionRecordPageFieldsTimelineActivities: + createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'workflowVersion', + context: { + viewName: 'workflowVersionRecordPageFields', + viewFieldName: 'timelineActivities', + fieldName: 'timelineActivities', + position: 6, + isVisible: false, + size: 150, + viewFieldGroupName: 'general', + }, + }), }; }; diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-view-field-validator.service.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-view-field-validator.service.ts index 9f2c88fdf9..34b1a21807 100644 --- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-view-field-validator.service.ts +++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-view-field-validator.service.ts @@ -2,6 +2,7 @@ import { Injectable } from '@nestjs/common'; import { msg, t } from '@lingui/core/macro'; import { ALL_METADATA_NAME } from 'twenty-shared/metadata'; +import { ViewType } from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; import { findFlatEntityByUniversalIdentifier } from 'src/engine/metadata-modules/flat-entity/utils/find-flat-entity-by-universal-identifier.util'; @@ -95,8 +96,9 @@ export class FlatViewFieldValidatorService { } if ( + flatView.type !== ViewType.FIELDS_WIDGET && flatObjectMetadata.labelIdentifierFieldMetadataUniversalIdentifier === - updatedFlatViewField.fieldMetadataUniversalIdentifier + updatedFlatViewField.fieldMetadataUniversalIdentifier ) { const otherFlatViewFields = findManyFlatEntityByUniversalIdentifierInUniversalFlatEntityMapsOrThrow( @@ -127,6 +129,7 @@ export class FlatViewFieldValidatorService { flatViewFieldMaps: optimisticFlatViewFieldMaps, flatFieldMetadataMaps, flatObjectMetadataMaps, + flatViewMaps, }, }: UniversalFlatEntityValidationArgs< typeof ALL_METADATA_NAME.viewField @@ -177,11 +180,18 @@ export class FlatViewFieldValidatorService { flatObjectMetadata.labelIdentifierFieldMetadataUniversalIdentifier === existingFlatViewField.fieldMetadataUniversalIdentifier ) { - validationResult.errors.push({ - code: ViewExceptionCode.INVALID_VIEW_DATA, - message: t`Label identifier view field cannot be deleted`, - userFriendlyMessage: msg`Label identifier view field cannot be deleted`, + const flatView = findFlatEntityByUniversalIdentifier({ + universalIdentifier: existingFlatViewField.viewUniversalIdentifier, + flatEntityMaps: flatViewMaps, }); + + if (!isDefined(flatView) || flatView.type !== ViewType.FIELDS_WIDGET) { + validationResult.errors.push({ + code: ViewExceptionCode.INVALID_VIEW_DATA, + message: t`Label identifier view field cannot be deleted`, + userFriendlyMessage: msg`Label identifier view field cannot be deleted`, + }); + } } return validationResult; @@ -289,8 +299,9 @@ export class FlatViewFieldValidatorService { } if ( + flatView.type !== ViewType.FIELDS_WIDGET && flatObjectMetadata.labelIdentifierFieldMetadataUniversalIdentifier === - flatViewFieldToValidate.fieldMetadataUniversalIdentifier + flatViewFieldToValidate.fieldMetadataUniversalIdentifier ) { validationResult.errors.push( ...validateLabelIdentifierFieldMetadataIdFlatViewField({ @@ -299,6 +310,7 @@ export class FlatViewFieldValidatorService { }), ); } else if ( + flatView.type !== ViewType.FIELDS_WIDGET && otherFlatViewFields.some( (flatViewField) => flatViewField.fieldMetadataUniversalIdentifier === diff --git a/packages/twenty-server/test/integration/metadata/suites/object-metadata/__snapshots__/failing-create-one-object-metadata-v2.integration-spec.ts.snap b/packages/twenty-server/test/integration/metadata/suites/object-metadata/__snapshots__/failing-create-one-object-metadata-v2.integration-spec.ts.snap index da90bf50f8..b310bb0858 100644 --- a/packages/twenty-server/test/integration/metadata/suites/object-metadata/__snapshots__/failing-create-one-object-metadata-v2.integration-spec.ts.snap +++ b/packages/twenty-server/test/integration/metadata/suites/object-metadata/__snapshots__/failing-create-one-object-metadata-v2.integration-spec.ts.snap @@ -604,126 +604,16 @@ exports[`Object metadata creation should fail v2 when labelPlural contains only "status": "fail", "type": "create", }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, ], }, - "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 14 viewFields, 1 index", + "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 9 viewFields, 1 index", "summary": { "fieldMetadata": 19, "index": 1, "objectMetadata": 1, - "totalErrors": 37, + "totalErrors": 32, "view": 2, - "viewField": 14, + "viewField": 9, }, "userFriendlyMessage": "Metadata validation failed", }, @@ -1336,126 +1226,16 @@ exports[`Object metadata creation should fail v2 when labelPlural exceeds maximu "status": "fail", "type": "create", }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, ], }, - "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 14 viewFields, 1 index", + "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 9 viewFields, 1 index", "summary": { "fieldMetadata": 19, "index": 1, "objectMetadata": 1, - "totalErrors": 37, + "totalErrors": 32, "view": 2, - "viewField": 14, + "viewField": 9, }, "userFriendlyMessage": "Metadata validation failed", }, @@ -2079,126 +1859,16 @@ exports[`Object metadata creation should fail v2 when labelSingular contains onl "status": "fail", "type": "create", }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, ], }, - "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 14 viewFields, 1 index", + "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 9 viewFields, 1 index", "summary": { "fieldMetadata": 19, "index": 1, "objectMetadata": 1, - "totalErrors": 37, + "totalErrors": 32, "view": 2, - "viewField": 14, + "viewField": 9, }, "userFriendlyMessage": "Metadata validation failed", }, @@ -2811,126 +2481,16 @@ exports[`Object metadata creation should fail v2 when labelSingular exceeds maxi "status": "fail", "type": "create", }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, ], }, - "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 14 viewFields, 1 index", + "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 9 viewFields, 1 index", "summary": { "fieldMetadata": 19, "index": 1, "objectMetadata": 1, - "totalErrors": 37, + "totalErrors": 32, "view": 2, - "viewField": 14, + "viewField": 9, }, "userFriendlyMessage": "Metadata validation failed", }, @@ -3584,126 +3144,16 @@ exports[`Object metadata creation should fail v2 when name exceeds maximum lengt "status": "fail", "type": "create", }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, ], }, - "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 14 viewFields, 1 index", + "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 9 viewFields, 1 index", "summary": { "fieldMetadata": 19, "index": 1, "objectMetadata": 1, - "totalErrors": 37, + "totalErrors": 32, "view": 2, - "viewField": 14, + "viewField": 9, }, "userFriendlyMessage": "Metadata validation failed", }, @@ -4316,126 +3766,16 @@ exports[`Object metadata creation should fail v2 when namePlural has invalid cha "status": "fail", "type": "create", }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, ], }, - "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 14 viewFields, 1 index", + "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 9 viewFields, 1 index", "summary": { "fieldMetadata": 19, "index": 1, "objectMetadata": 1, - "totalErrors": 37, + "totalErrors": 32, "view": 2, - "viewField": 14, + "viewField": 9, }, "userFriendlyMessage": "Metadata validation failed", }, @@ -5048,126 +4388,16 @@ exports[`Object metadata creation should fail v2 when namePlural is a reserved k "status": "fail", "type": "create", }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, ], }, - "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 14 viewFields, 1 index", + "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 9 viewFields, 1 index", "summary": { "fieldMetadata": 19, "index": 1, "objectMetadata": 1, - "totalErrors": 37, + "totalErrors": 32, "view": 2, - "viewField": 14, + "viewField": 9, }, "userFriendlyMessage": "Metadata validation failed", }, @@ -5791,126 +5021,16 @@ exports[`Object metadata creation should fail v2 when namePlural is not camelCas "status": "fail", "type": "create", }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, ], }, - "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 14 viewFields, 1 index", + "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 9 viewFields, 1 index", "summary": { "fieldMetadata": 19, "index": 1, "objectMetadata": 1, - "totalErrors": 37, + "totalErrors": 32, "view": 2, - "viewField": 14, + "viewField": 9, }, "userFriendlyMessage": "Metadata validation failed", }, @@ -6553,126 +5673,16 @@ exports[`Object metadata creation should fail v2 when nameSingular contains only "status": "fail", "type": "create", }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, ], }, - "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 14 viewFields, 1 index", + "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 9 viewFields, 1 index", "summary": { "fieldMetadata": 19, "index": 1, "objectMetadata": 1, - "totalErrors": 37, + "totalErrors": 32, "view": 2, - "viewField": 14, + "viewField": 9, }, "userFriendlyMessage": "Metadata validation failed", }, @@ -7303,126 +6313,16 @@ exports[`Object metadata creation should fail v2 when nameSingular contains only "status": "fail", "type": "create", }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, ], }, - "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 14 viewFields, 1 index", + "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 9 viewFields, 1 index", "summary": { "fieldMetadata": 19, "index": 1, "objectMetadata": 1, - "totalErrors": 37, + "totalErrors": 32, "view": 2, - "viewField": 14, + "viewField": 9, }, "userFriendlyMessage": "Metadata validation failed", }, @@ -8065,126 +6965,16 @@ exports[`Object metadata creation should fail v2 when nameSingular has invalid c "status": "fail", "type": "create", }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, ], }, - "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 14 viewFields, 1 index", + "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 9 viewFields, 1 index", "summary": { "fieldMetadata": 19, "index": 1, "objectMetadata": 1, - "totalErrors": 37, + "totalErrors": 32, "view": 2, - "viewField": 14, + "viewField": 9, }, "userFriendlyMessage": "Metadata validation failed", }, @@ -8803,126 +7593,16 @@ exports[`Object metadata creation should fail v2 when nameSingular is a reserved "status": "fail", "type": "create", }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, ], }, - "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 14 viewFields, 1 index", + "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 9 viewFields, 1 index", "summary": { "fieldMetadata": 19, "index": 1, "objectMetadata": 1, - "totalErrors": 37, + "totalErrors": 32, "view": 2, - "viewField": 14, + "viewField": 9, }, "userFriendlyMessage": "Metadata validation failed", }, @@ -9576,126 +8256,16 @@ exports[`Object metadata creation should fail v2 when nameSingular is not camelC "status": "fail", "type": "create", }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, ], }, - "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 14 viewFields, 1 index", + "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 9 viewFields, 1 index", "summary": { "fieldMetadata": 19, "index": 1, "objectMetadata": 1, - "totalErrors": 37, + "totalErrors": 32, "view": 2, - "viewField": 14, + "viewField": 9, }, "userFriendlyMessage": "Metadata validation failed", }, @@ -10308,126 +8878,16 @@ exports[`Object metadata creation should fail v2 when names are identical 1`] = "status": "fail", "type": "create", }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, ], }, - "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 14 viewFields, 1 index", + "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 9 viewFields, 1 index", "summary": { "fieldMetadata": 19, "index": 1, "objectMetadata": 1, - "totalErrors": 37, + "totalErrors": 32, "view": 2, - "viewField": 14, + "viewField": 9, }, "userFriendlyMessage": "Metadata validation failed", }, @@ -11040,126 +9500,16 @@ exports[`Object metadata creation should fail v2 when names with whitespaces res "status": "fail", "type": "create", }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, - { - "errors": [ - { - "code": "INVALID_VIEW_DATA", - "message": "Field metadata not found", - "userFriendlyMessage": "Field metadata not found", - }, - { - "code": "INVALID_VIEW_DATA", - "message": "View not found", - "userFriendlyMessage": "View not found", - }, - ], - "flatEntityMinimalInformation": { - "fieldMetadataUniversalIdentifier": Any, - "universalIdentifier": Any, - "viewUniversalIdentifier": Any, - }, - "metadataName": "viewField", - "status": "fail", - "type": "create", - }, ], }, - "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 14 viewFields, 1 index", + "message": "Validation failed for 19 fieldMetadatas, 1 objectMetadata, 2 views, 9 viewFields, 1 index", "summary": { "fieldMetadata": 19, "index": 1, "objectMetadata": 1, - "totalErrors": 37, + "totalErrors": 32, "view": 2, - "viewField": 14, + "viewField": 9, }, "userFriendlyMessage": "Metadata validation failed", }, diff --git a/packages/twenty-server/test/integration/metadata/suites/object-metadata/view-side-effect-on-object-metadata-creation.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/object-metadata/view-side-effect-on-object-metadata-creation.integration-spec.ts index f1b7b06d85..5fc64ae123 100644 --- a/packages/twenty-server/test/integration/metadata/suites/object-metadata/view-side-effect-on-object-metadata-creation.integration-spec.ts +++ b/packages/twenty-server/test/integration/metadata/suites/object-metadata/view-side-effect-on-object-metadata-creation.integration-spec.ts @@ -93,6 +93,6 @@ describe('View side effect on object creation', () => { expectToFail: false, }); - expect(createdViewFields.length).toBe(7); + expect(createdViewFields.length).toBe(5); }); }); diff --git a/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts b/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts index 57ce30e6ba..86656ad97b 100644 --- a/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts +++ b/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts @@ -188,9 +188,6 @@ export const STANDARD_OBJECTS = { }, }, viewFields: { - handle: { - universalIdentifier: 'e22a1d19-c1bb-4265-ae48-2054513c21fe', - }, workspaceMember: { universalIdentifier: 'f2f5732f-7435-44be-986b-4c4d834fdfeb', }, @@ -405,9 +402,6 @@ export const STANDARD_OBJECTS = { }, }, viewFields: { - handle: { - universalIdentifier: 'cd1f641b-5746-49db-9a7e-82dd9a63593d', - }, connectedAccount: { universalIdentifier: 'bdb40f41-f9ba-4b59-a8cf-878c23701ab3', }, @@ -808,6 +802,33 @@ export const STANDARD_OBJECTS = { createdBy: { universalIdentifier: '20202020-af01-4a01-8a01-c0aba11c1210', }, + updatedAt: { + universalIdentifier: '20202020-af01-4a01-8a01-c0aba11c1212', + }, + updatedBy: { + universalIdentifier: '20202020-af01-4a01-8a01-c0aba11c1213', + }, + people: { + universalIdentifier: '20202020-af01-4a01-8a01-c0aba11c1214', + }, + taskTargets: { + universalIdentifier: '20202020-af01-4a01-8a01-c0aba11c1215', + }, + noteTargets: { + universalIdentifier: '20202020-af01-4a01-8a01-c0aba11c1216', + }, + opportunities: { + universalIdentifier: '20202020-af01-4a01-8a01-c0aba11c1217', + }, + favorites: { + universalIdentifier: '20202020-af01-4a01-8a01-c0aba11c1218', + }, + attachments: { + universalIdentifier: '20202020-af01-4a01-8a01-c0aba11c1219', + }, + timelineActivities: { + universalIdentifier: '20202020-af01-4a01-8a01-c0aba11c121a', + }, }, }, }, @@ -914,9 +935,6 @@ export const STANDARD_OBJECTS = { }, }, viewFields: { - handle: { - universalIdentifier: '41d86e23-ceb2-41ab-975f-8ec5a1023ece', - }, provider: { universalIdentifier: '83171d2a-0d11-42b1-991d-8d4346b02cff', }, @@ -1213,9 +1231,6 @@ export const STANDARD_OBJECTS = { }, }, viewFields: { - name: { - universalIdentifier: 'cac4f0f7-3a6a-49b1-b86f-41b20f2455c0', - }, createdAt: { universalIdentifier: 'a4e42591-844c-47d1-b72e-5ded3d541694', }, @@ -1554,9 +1569,6 @@ export const STANDARD_OBJECTS = { }, }, viewFields: { - handle: { - universalIdentifier: 'a9cbb9a5-a6b4-417e-93ad-a5e578c222db', - }, connectedAccount: { universalIdentifier: '19079cf6-2a9c-40b9-b6c2-58d63c6e37ad', }, @@ -1670,9 +1682,6 @@ export const STANDARD_OBJECTS = { }, }, viewFields: { - name: { - universalIdentifier: '6fa8c474-ee22-47f1-b830-4f169ff82315', - }, messageChannel: { universalIdentifier: '2fb6ff09-bed5-4b31-af0f-7fa3df5612da', }, @@ -1791,9 +1800,6 @@ export const STANDARD_OBJECTS = { role: { universalIdentifier: '5d1f9a65-85cc-41b2-a8bf-8e2c97aab4b3', }, - handle: { - universalIdentifier: '97295fc0-cdb8-4d84-8c1b-327837255c0d', - }, displayName: { universalIdentifier: 'c50748fe-9f54-4e09-b572-111f076ec7db', }, @@ -2018,9 +2024,6 @@ export const STANDARD_OBJECTS = { }, }, viewFields: { - title: { - universalIdentifier: '20202020-af05-4a05-8a05-a0be5a115201', - }, createdAt: { universalIdentifier: '20202020-af05-4a05-8a05-a0be5a115202', }, @@ -2030,6 +2033,24 @@ export const STANDARD_OBJECTS = { noteTargets: { universalIdentifier: '20202020-af05-4a05-8a05-a0be5a115204', }, + bodyV2: { + universalIdentifier: '20202020-af05-4a05-8a05-a0be5a115205', + }, + updatedAt: { + universalIdentifier: '20202020-af05-4a05-8a05-a0be5a115206', + }, + updatedBy: { + universalIdentifier: '20202020-af05-4a05-8a05-a0be5a115207', + }, + attachments: { + universalIdentifier: '20202020-af05-4a05-8a05-a0be5a115208', + }, + timelineActivities: { + universalIdentifier: '20202020-af05-4a05-8a05-a0be5a115209', + }, + favorites: { + universalIdentifier: '20202020-af05-4a05-8a05-a0be5a11520a', + }, }, }, }, @@ -2278,6 +2299,27 @@ export const STANDARD_OBJECTS = { createdBy: { universalIdentifier: '20202020-af03-4a03-8a03-0aa0b1ca3208', }, + updatedAt: { + universalIdentifier: '20202020-af03-4a03-8a03-0aa0b1ca320a', + }, + updatedBy: { + universalIdentifier: '20202020-af03-4a03-8a03-0aa0b1ca320b', + }, + favorites: { + universalIdentifier: '20202020-af03-4a03-8a03-0aa0b1ca320c', + }, + taskTargets: { + universalIdentifier: '20202020-af03-4a03-8a03-0aa0b1ca320d', + }, + noteTargets: { + universalIdentifier: '20202020-af03-4a03-8a03-0aa0b1ca320e', + }, + attachments: { + universalIdentifier: '20202020-af03-4a03-8a03-0aa0b1ca320f', + }, + timelineActivities: { + universalIdentifier: '20202020-af03-4a03-8a03-0aa0b1ca3210', + }, }, }, }, @@ -2437,6 +2479,39 @@ export const STANDARD_OBJECTS = { createdBy: { universalIdentifier: '20202020-af02-4a02-8a02-ae0a1ea12210', }, + updatedAt: { + universalIdentifier: '20202020-af02-4a02-8a02-ae0a1ea12212', + }, + updatedBy: { + universalIdentifier: '20202020-af02-4a02-8a02-ae0a1ea12213', + }, + avatarFile: { + universalIdentifier: '20202020-af02-4a02-8a02-ae0a1ea12214', + }, + pointOfContactForOpportunities: { + universalIdentifier: '20202020-af02-4a02-8a02-ae0a1ea12215', + }, + taskTargets: { + universalIdentifier: '20202020-af02-4a02-8a02-ae0a1ea12216', + }, + noteTargets: { + universalIdentifier: '20202020-af02-4a02-8a02-ae0a1ea12217', + }, + favorites: { + universalIdentifier: '20202020-af02-4a02-8a02-ae0a1ea12218', + }, + attachments: { + universalIdentifier: '20202020-af02-4a02-8a02-ae0a1ea12219', + }, + messageParticipants: { + universalIdentifier: '20202020-af02-4a02-8a02-ae0a1ea1221a', + }, + calendarEventParticipants: { + universalIdentifier: '20202020-af02-4a02-8a02-ae0a1ea1221b', + }, + timelineActivities: { + universalIdentifier: '20202020-af02-4a02-8a02-ae0a1ea1221c', + }, }, }, }, @@ -2610,9 +2685,6 @@ export const STANDARD_OBJECTS = { }, }, viewFields: { - title: { - universalIdentifier: '20202020-af06-4a06-8a06-ba5ca11a6201', - }, dueAt: { universalIdentifier: '20202020-af06-4a06-8a06-ba5ca11a6202', }, @@ -2631,6 +2703,24 @@ export const STANDARD_OBJECTS = { taskTargets: { universalIdentifier: '20202020-af06-4a06-8a06-ba5ca11a6207', }, + bodyV2: { + universalIdentifier: '20202020-af06-4a06-8a06-ba5ca11a6208', + }, + updatedAt: { + universalIdentifier: '20202020-af06-4a06-8a06-ba5ca11a6209', + }, + updatedBy: { + universalIdentifier: '20202020-af06-4a06-8a06-ba5ca11a620a', + }, + attachments: { + universalIdentifier: '20202020-af06-4a06-8a06-ba5ca11a620b', + }, + timelineActivities: { + universalIdentifier: '20202020-af06-4a06-8a06-ba5ca11a620c', + }, + favorites: { + universalIdentifier: '20202020-af06-4a06-8a06-ba5ca11a620d', + }, }, }, }, @@ -3114,9 +3204,6 @@ export const STANDARD_OBJECTS = { workflowRunRecordPageFields: { universalIdentifier: '20202020-a011-4a11-8a11-a0bcf10abcf1', viewFields: { - name: { - universalIdentifier: '20202020-af11-4a11-8a11-a0bcf10abcf5', - }, status: { universalIdentifier: '20202020-af11-4a11-8a11-a0bcf10abcf6', }, @@ -3138,6 +3225,30 @@ export const STANDARD_OBJECTS = { createdBy: { universalIdentifier: '20202020-af11-4a11-8a11-a0bcf10abcfc', }, + enqueuedAt: { + universalIdentifier: '20202020-af11-4a11-8a11-a0bcf10abcfd', + }, + output: { + universalIdentifier: '20202020-af11-4a11-8a11-a0bcf10abcfe', + }, + context: { + universalIdentifier: '20202020-af11-4a11-8a11-a0bcf10abcff', + }, + state: { + universalIdentifier: '20202020-af11-4a11-8a11-a0bcf10abd01', + }, + updatedAt: { + universalIdentifier: '20202020-af11-4a11-8a11-a0bcf10abd02', + }, + updatedBy: { + universalIdentifier: '20202020-af11-4a11-8a11-a0bcf10abd03', + }, + favorites: { + universalIdentifier: '20202020-af11-4a11-8a11-a0bcf10abd04', + }, + timelineActivities: { + universalIdentifier: '20202020-af11-4a11-8a11-a0bcf10abd05', + }, }, viewFieldGroups: { general: { @@ -3229,9 +3340,6 @@ export const STANDARD_OBJECTS = { workflowVersionRecordPageFields: { universalIdentifier: '20202020-a010-4a10-8a10-a0bcf10aaef1', viewFields: { - name: { - universalIdentifier: '20202020-af10-4a10-8a10-a0bcf10aaef5', - }, status: { universalIdentifier: '20202020-af10-4a10-8a10-a0bcf10aaef6', }, @@ -3244,6 +3352,27 @@ export const STANDARD_OBJECTS = { createdAt: { universalIdentifier: '20202020-af10-4a10-8a10-a0bcf10aaef9', }, + steps: { + universalIdentifier: '20202020-af10-4a10-8a10-a0bcf10aaefa', + }, + createdBy: { + universalIdentifier: '20202020-af10-4a10-8a10-a0bcf10aaefb', + }, + updatedAt: { + universalIdentifier: '20202020-af10-4a10-8a10-a0bcf10aaefc', + }, + updatedBy: { + universalIdentifier: '20202020-af10-4a10-8a10-a0bcf10aaefd', + }, + runs: { + universalIdentifier: '20202020-af10-4a10-8a10-a0bcf10aaefe', + }, + favorites: { + universalIdentifier: '20202020-af10-4a10-8a10-a0bcf10aaeff', + }, + timelineActivities: { + universalIdentifier: '20202020-af10-4a10-8a10-a0bcf10aaf01', + }, }, viewFieldGroups: { general: {