diff --git a/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventDetails.tsx b/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventDetails.tsx deleted file mode 100644 index d21e2e75f6..0000000000 --- a/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventDetails.tsx +++ /dev/null @@ -1,302 +0,0 @@ -import { styled } from '@linaria/react'; -import { useLingui } from '@lingui/react/macro'; -import { useCallback, useState } from 'react'; - -import { CalendarEventParticipantsResponseStatus } from '@/activities/calendar/components/CalendarEventParticipantsResponseStatus'; -import { type CalendarEvent } from '@/activities/calendar/types/CalendarEvent'; -import { useGetIsMetadataItemCustom } from '@/object-metadata/hooks/useGetIsMetadataItemCustom'; -import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; -import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem'; -import { formatFieldMetadataItemAsFieldDefinition } from '@/object-metadata/utils/formatFieldMetadataItemAsFieldDefinition'; -import { useObjectPermissions } from '@/object-record/hooks/useObjectPermissions'; -import { useObjectPermissionsForObject } from '@/object-record/hooks/useObjectPermissionsForObject'; -import { useUpdateOneRecord } from '@/object-record/hooks/useUpdateOneRecord'; -import { useIsRecordReadOnly } from '@/object-record/read-only/hooks/useIsRecordReadOnly'; -import { isRecordFieldReadOnly } from '@/object-record/read-only/utils/isRecordFieldReadOnly'; -import { RecordFieldListCellEditModePortal } from '@/object-record/record-field-list/anchored-portal/components/RecordFieldListCellEditModePortal'; -import { RecordFieldListCellHoveredPortal } from '@/object-record/record-field-list/anchored-portal/components/RecordFieldListCellHoveredPortal'; -import { RecordFieldsScopeContextProvider } from '@/object-record/record-field-list/contexts/RecordFieldsScopeContext'; -import { useFieldListFieldMetadataItems } from '@/object-record/record-field-list/hooks/useFieldListFieldMetadataItems'; -import { RecordFieldListComponentInstanceContext } from '@/object-record/record-field-list/states/contexts/RecordFieldListComponentInstanceContext'; -import { recordFieldListHoverPositionComponentState } from '@/object-record/record-field-list/states/recordFieldListHoverPositionComponentState'; -import { - FieldContext, - type RecordUpdateHook, - type RecordUpdateHookParams, -} from '@/object-record/record-field/ui/contexts/FieldContext'; -import { RecordFieldComponentInstanceContext } from '@/object-record/record-field/ui/states/contexts/RecordFieldComponentInstanceContext'; -import { RecordInlineCell } from '@/object-record/record-inline-cell/components/RecordInlineCell'; -import { PropertyBox } from '@/object-record/record-inline-cell/property-box/components/PropertyBox'; -import { getRecordFieldInputInstanceId } from '@/object-record/utils/getRecordFieldInputId'; -import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSetAtomComponentState'; -import { CoreObjectNameSingular } from 'twenty-shared/types'; -import { isDefined } from 'twenty-shared/utils'; -import { - AvatarOrIcon, - Chip, - ChipAccent, - ChipSize, - ChipVariant, -} from 'twenty-ui/data-display'; -import { IconCalendarEvent } from 'twenty-ui/icon'; -import { themeCssVariables } from 'twenty-ui/theme-constants'; -import { beautifyPastDateRelativeToNow } from '~/utils/date-utils'; - -type CalendarEventDetailsProps = { - calendarEvent: CalendarEvent; -}; - -const INPUT_ID_PREFIX = 'calendar-event-details'; - -const StyledContainer = styled.div` - align-items: flex-start; - background: ${themeCssVariables.background.secondary}; - border-bottom: 1px solid ${themeCssVariables.border.color.medium}; - box-sizing: border-box; - display: flex; - flex-direction: column; - gap: ${themeCssVariables.spacing[6]}; - padding: ${themeCssVariables.spacing[6]}; - width: 100%; -`; - -const StyledEventChipWrapper = styled.span` - display: inline-flex; - - & > [data-testid='chip'] { - gap: ${themeCssVariables.spacing[2]}; - padding-left: ${themeCssVariables.spacing[2]}; - padding-right: ${themeCssVariables.spacing[2]}; - } -`; - -const StyledHeader = styled.header``; - -const StyledTitle = styled.h2<{ canceled?: boolean }>` - color: ${themeCssVariables.font.color.primary}; - font-weight: ${themeCssVariables.font.weight.semiBold}; - margin: ${themeCssVariables.spacing[0]} ${themeCssVariables.spacing[0]} - ${themeCssVariables.spacing[2]}; - text-decoration: ${({ canceled }) => (canceled ? 'line-through' : 'none')}; -`; - -const StyledCreatedAt = styled.div` - color: ${themeCssVariables.font.color.tertiary}; -`; - -const StyledFields = styled.div` - display: flex; - flex-direction: column; - gap: ${themeCssVariables.spacing[3]}; - width: 100%; -`; - -const StyledPropertyBoxContainer = styled.div` - min-height: ${themeCssVariables.spacing[6]}; - width: 100%; -`; - -export const CalendarEventDetails = ({ - calendarEvent, -}: CalendarEventDetailsProps) => { - const { t } = useLingui(); - const { objectMetadataItem } = useObjectMetadataItem({ - objectNameSingular: CoreObjectNameSingular.CalendarEvent, - }); - - const { inlineFieldMetadataItems } = useFieldListFieldMetadataItems({ - objectNameSingular: CoreObjectNameSingular.CalendarEvent, - showRelationSections: false, - excludeCreatedAtAndUpdatedAt: true, - }); - - const { - inlineFieldMetadataItems: portalPositionInlineFieldMetadataItems, - legacyActivityTargetFieldMetadataItems, - } = useFieldListFieldMetadataItems({ - objectNameSingular: CoreObjectNameSingular.CalendarEvent, - }); - - const portalPositionFieldMetadataItems = [ - ...legacyActivityTargetFieldMetadataItems, - ...portalPositionInlineFieldMetadataItems, - ]; - - const setRecordFieldListHoverPosition = useSetAtomComponentState( - recordFieldListHoverPositionComponentState, - INPUT_ID_PREFIX, - ); - - const getIsMetadataItemCustom = useGetIsMetadataItemCustom(); - - const standardFieldOrder = [ - 'startsAt', - 'endsAt', - 'conferenceLink', - 'location', - 'description', - ]; - - const standardFields = standardFieldOrder - .map((fieldName) => - inlineFieldMetadataItems.find( - (fieldMetadataItem) => fieldMetadataItem.name === fieldName, - ), - ) - .filter(isDefined); - - const customFields = inlineFieldMetadataItems.filter( - (field) => - getIsMetadataItemCustom(field) && - !standardFieldOrder.includes(field.name), - ); - - const { calendarEventParticipants } = calendarEvent; - - const { updateOneRecord } = useUpdateOneRecord(); - - const [isUpdating, setIsUpdating] = useState(false); - const updateEntity = useCallback( - ({ variables }: RecordUpdateHookParams) => { - setIsUpdating(true); - void updateOneRecord({ - objectNameSingular: CoreObjectNameSingular.CalendarEvent, - idToUpdate: variables.where.id as string, - updateOneRecordInput: variables.updateOneRecordInput, - }).finally(() => setIsUpdating(false)); - }, - [updateOneRecord], - ); - - const useUpdateOneCalendarEventRecordMutation: RecordUpdateHook = () => [ - updateEntity, - { loading: isUpdating }, - ]; - - const objectPermissions = useObjectPermissionsForObject( - objectMetadataItem.id, - ); - const { objectPermissionsByObjectMetadataId } = useObjectPermissions(); - - const isRecordReadOnly = useIsRecordReadOnly({ - recordId: calendarEvent.id, - objectMetadataId: objectMetadataItem.id, - }); - - const renderField = (fieldMetadataItem: FieldMetadataItem) => { - const fieldDefinition = formatFieldMetadataItemAsFieldDefinition({ - field: fieldMetadataItem, - objectMetadataItem, - showLabel: true, - labelWidth: 72, - }); - - const isReadOnly = isRecordFieldReadOnly({ - isRecordReadOnly, - isSystemObject: objectMetadataItem.isSystem, - objectPermissions, - isFieldCustom: getIsMetadataItemCustom(fieldMetadataItem), - fieldMetadataItem: { - id: fieldMetadataItem.id, - isUIEditable: fieldMetadataItem.isUIEditable ?? true, - }, - fieldDefinition, - objectPermissionsByObjectMetadataId, - }); - - const portalPosition = portalPositionFieldMetadataItems.findIndex( - (portalPositionFieldMetadataItem) => - portalPositionFieldMetadataItem.id === fieldMetadataItem.id, - ); - - return ( - - - - setRecordFieldListHoverPosition( - portalPosition === -1 ? null : portalPosition, - ), - }} - > - - - - - - - ); - }; - - return ( - - - - - } - label={t`Event`} - /> - - - - {calendarEvent.title} - - - {t`Created`}{' '} - {beautifyPastDateRelativeToNow( - new Date(calendarEvent.externalCreatedAt), - )} - - - - {standardFields.slice(0, 2).map(renderField)} - {calendarEventParticipants && ( - - )} - {standardFields.slice(2).map(renderField)} - {customFields.map(renderField)} - - - - - - - ); -}; diff --git a/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventDetailsEffect.tsx b/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventDetailsEffect.tsx deleted file mode 100644 index b334de15c2..0000000000 --- a/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventDetailsEffect.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import { type CalendarEvent } from '@/activities/calendar/types/CalendarEvent'; -import { useUpsertRecordsInStore } from '@/object-record/record-store/hooks/useUpsertRecordsInStore'; -import { useEffect } from 'react'; -import { isDefined } from 'twenty-shared/utils'; - -type CalendarEventDetailsEffectProps = { - record: CalendarEvent; -}; - -export const CalendarEventDetailsEffect = ({ - record, -}: CalendarEventDetailsEffectProps) => { - const { upsertRecordsInStore } = useUpsertRecordsInStore(); - - useEffect(() => { - if (!isDefined(record)) { - return; - } - - upsertRecordsInStore({ partialRecords: [record] }); - }, [record, upsertRecordsInStore]); - - return <>; -}; diff --git a/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventParticipantsResponseStatus.tsx b/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventParticipantsResponseStatus.tsx index 3c2880059e..6d539bb99a 100644 --- a/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventParticipantsResponseStatus.tsx +++ b/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventParticipantsResponseStatus.tsx @@ -2,6 +2,7 @@ import groupBy from 'lodash.groupby'; import { CalendarEventParticipantsResponseStatusField } from '@/activities/calendar/components/CalendarEventParticipantsResponseStatusField'; import { type CalendarEventParticipant } from '@/activities/calendar/types/CalendarEventParticipant'; +import { PropertyBox } from '@/object-record/record-inline-cell/property-box/components/PropertyBox'; export const CalendarEventParticipantsResponseStatus = ({ participants, @@ -29,7 +30,7 @@ export const CalendarEventParticipantsResponseStatus = ({ ]; return ( - <> + {responseStatusOrder.map((responseStatus) => ( ))} - + ); }; diff --git a/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventParticipantsResponseStatusField.tsx b/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventParticipantsResponseStatusField.tsx index af999c5c23..4cbcb72bcb 100644 --- a/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventParticipantsResponseStatusField.tsx +++ b/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventParticipantsResponseStatusField.tsx @@ -1,31 +1,24 @@ -import { useContext, useRef } from 'react'; import { styled } from '@linaria/react'; +import { useContext, useRef } from 'react'; -import { type CalendarEventParticipant } from '@/activities/calendar/types/CalendarEventParticipant'; -import { PropertyBox } from '@/object-record/record-inline-cell/property-box/components/PropertyBox'; import { ParticipantChip } from '@/activities/components/ParticipantChip'; +import { type CalendarEventParticipant } from '@/activities/calendar/types/CalendarEventParticipant'; import { EllipsisDisplay } from '@/ui/field/display/components/EllipsisDisplay'; import { ExpandableList } from '@/ui/layout/expandable-list/components/ExpandableList'; import { IconCheck, IconQuestionMark, IconX } from 'twenty-ui/icon'; import { ThemeContext, themeCssVariables } from 'twenty-ui/theme-constants'; -const StyledInlineCellBaseContainer = styled.div` +const StyledResponseStatusRow = styled.div` align-items: center; box-sizing: border-box; display: flex; gap: ${themeCssVariables.spacing[1]}; - + min-height: ${themeCssVariables.spacing[6]}; position: relative; - user-select: none; width: 100%; `; -const StyledPropertyBoxContainer = styled.div` - height: ${themeCssVariables.spacing[6]}; - width: 100%; -`; - const StyledIconContainer = styled.div` align-items: center; color: ${themeCssVariables.font.color.tertiary}; @@ -53,7 +46,8 @@ const StyledLabelContainer = styled.div<{ width?: number }>` font-size: ${themeCssVariables.font.size.sm}; width: ${({ width }) => (width !== undefined ? `${width}px` : 'auto')}; `; -const StyledDiv = styled.div` + +const StyledParticipantsContainer = styled.div` max-width: 70%; `; @@ -72,36 +66,30 @@ export const CalendarEventParticipantsResponseStatusField = ({ No: , }[responseStatus]; - // We want to display external participants first const orderedParticipants = [ ...participants.filter((participant) => participant.person), + ...participants.filter((participant) => participant.workspaceMember), ...participants.filter( (participant) => !participant.person && !participant.workspaceMember, ), - ...participants.filter((participant) => participant.workspaceMember), ]; const participantsContainerRef = useRef(null); - const styledChips = orderedParticipants.map((participant, index) => ( - + const styledChips = orderedParticipants.map((participant) => ( + )); return ( - - - - - {Icon} - - - {responseStatus} - - - - {styledChips} - - - - + + + {Icon} + + {responseStatus} + + + + {styledChips} + + ); }; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/field/components/CalendarEventParticipantsFieldWidget.tsx b/packages/twenty-front/src/modules/page-layout/widgets/field/components/CalendarEventParticipantsFieldWidget.tsx new file mode 100644 index 0000000000..8155303d5b --- /dev/null +++ b/packages/twenty-front/src/modules/page-layout/widgets/field/components/CalendarEventParticipantsFieldWidget.tsx @@ -0,0 +1,47 @@ +import { CalendarEventParticipantsResponseStatus } from '@/activities/calendar/components/CalendarEventParticipantsResponseStatus'; +import { type CalendarEventParticipant } from '@/activities/calendar/types/CalendarEventParticipant'; +import { useFindManyRecords } from '@/object-record/hooks/useFindManyRecords'; + +const CALENDAR_EVENT_PARTICIPANT_OBJECT_NAME_SINGULAR = + 'calendarEventParticipant'; + +type CalendarEventParticipantsFieldWidgetProps = { + recordId: string; +}; + +type CalendarEventParticipantRecord = CalendarEventParticipant & { + __typename: 'CalendarEventParticipant'; +}; + +export const CalendarEventParticipantsFieldWidget = ({ + recordId, +}: CalendarEventParticipantsFieldWidgetProps) => { + const { records: calendarEventParticipants } = + useFindManyRecords({ + objectNameSingular: CALENDAR_EVENT_PARTICIPANT_OBJECT_NAME_SINGULAR, + filter: { + calendarEventId: { + eq: recordId, + }, + }, + recordGqlFields: { + id: true, + person: true, + workspaceMember: true, + isOrganizer: true, + responseStatus: true, + handle: true, + displayName: true, + }, + }); + + if (calendarEventParticipants.length === 0) { + return null; + } + + return ( + + ); +}; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/field/components/FieldWidget.tsx b/packages/twenty-front/src/modules/page-layout/widgets/field/components/FieldWidget.tsx index 830c949db9..9be1b191f7 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/field/components/FieldWidget.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/field/components/FieldWidget.tsx @@ -9,6 +9,7 @@ import { hasJunctionConfig } from '@/object-record/record-field/ui/utils/junctio import { recordStoreFamilySelector } from '@/object-record/record-store/states/selectors/recordStoreFamilySelector'; import { useResolveFieldMetadataIdFromNameOrId } from '@/page-layout/hooks/useResolveFieldMetadataIdFromNameOrId'; import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget'; +import { CalendarEventParticipantsFieldWidget } from '@/page-layout/widgets/field/components/CalendarEventParticipantsFieldWidget'; import { FieldWidgetDisplay } from '@/page-layout/widgets/field/components/FieldWidgetDisplay'; import { FieldWidgetJunctionRelationCard } from '@/page-layout/widgets/field/components/FieldWidgetJunctionRelationCard'; import { FieldWidgetJunctionRelationField } from '@/page-layout/widgets/field/components/FieldWidgetJunctionRelationField'; @@ -26,6 +27,7 @@ import { SidePanelProvider } from '@/ui/layout/side-panel/contexts/SidePanelCont import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue'; import { styled } from '@linaria/react'; import { t } from '@lingui/core/macro'; +import { CoreObjectNameSingular } from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; import { AnimatedPlaceholder, @@ -103,6 +105,19 @@ export const FieldWidget = ({ widget }: FieldWidgetProps) => { const fieldDisplayMode = widget.configuration.fieldDisplayMode; + const isCalendarEventParticipantsField = + targetRecord.targetObjectNameSingular === + CoreObjectNameSingular.CalendarEvent && + fieldMetadataItem.name === 'calendarEventParticipants'; + + if (isCalendarEventParticipantsField) { + return ( + + + + ); + } + if (isFieldMorphRelation(fieldDefinition)) { if (fieldDisplayMode === FieldDisplayMode.CARD) { return ( diff --git a/packages/twenty-front/src/modules/side-panel/constants/SidePanelPagesConfig.tsx b/packages/twenty-front/src/modules/side-panel/constants/SidePanelPagesConfig.tsx index fc3a017c3c..8ff0b87a1b 100644 --- a/packages/twenty-front/src/modules/side-panel/constants/SidePanelPagesConfig.tsx +++ b/packages/twenty-front/src/modules/side-panel/constants/SidePanelPagesConfig.tsx @@ -4,7 +4,6 @@ import { SidePanelNavigationMenuItemEditPage } from '@/navigation-menu-item/edit import { SidePanelNewSidebarItemPage } from '@/navigation-menu-item/edit/side-panel/components/SidePanelNewSidebarItemPage'; import { SidePanelAiChatThreadsPage } from '@/side-panel/pages/ai-chat-threads/components/SidePanelAiChatThreadsPage'; import { SidePanelAskAiPage } from '@/side-panel/pages/ask-ai/components/SidePanelAskAiPage'; -import { SidePanelCalendarEventPage } from '@/side-panel/pages/calendar-event/components/SidePanelCalendarEventPage'; import { SidePanelCampaignComposerPage } from '@/side-panel/pages/compose-campaign/components/SidePanelCampaignComposerPage'; import { SidePanelComposeEmailPage } from '@/side-panel/pages/compose-email/components/SidePanelComposeEmailPage'; import { SidePanelFrontComponentPage } from '@/side-panel/pages/front-component/components/SidePanelFrontComponentPage'; @@ -38,7 +37,6 @@ export const SIDE_PANEL_PAGES_CONFIG = new Map( [SidePanelPages.ViewRecord, ], [SidePanelPages.MergeRecords, ], [SidePanelPages.UpdateRecords, ], - [SidePanelPages.ViewCalendarEvent, ], [SidePanelPages.EditRichText, ], [ SidePanelPages.WorkflowTriggerSelectType, diff --git a/packages/twenty-front/src/modules/side-panel/hooks/__tests__/useOpenCalendarEventInSidePanel.test.tsx b/packages/twenty-front/src/modules/side-panel/hooks/__tests__/useOpenCalendarEventInSidePanel.test.tsx index 958c02554d..f7652d6068 100644 --- a/packages/twenty-front/src/modules/side-panel/hooks/__tests__/useOpenCalendarEventInSidePanel.test.tsx +++ b/packages/twenty-front/src/modules/side-panel/hooks/__tests__/useOpenCalendarEventInSidePanel.test.tsx @@ -1,13 +1,21 @@ import { renderHook } from '@testing-library/react'; import { act } from 'react'; +import { contextStoreCurrentObjectMetadataItemIdComponentState } from '@/context-store/states/contextStoreCurrentObjectMetadataItemIdComponentState'; +import { contextStoreCurrentPageTypeComponentState } from '@/context-store/states/contextStoreCurrentPageTypeComponentState'; +import { contextStoreNumberOfSelectedRecordsComponentState } from '@/context-store/states/contextStoreNumberOfSelectedRecordsComponentState'; +import { contextStoreTargetedRecordsRuleComponentState } from '@/context-store/states/contextStoreTargetedRecordsRuleComponentState'; +import { ContextStoreViewType } from '@/context-store/types/ContextStoreViewType'; import { SIDE_PANEL_COMPONENT_INSTANCE_ID } from '@/side-panel/constants/SidePanelComponentInstanceId'; import { useOpenCalendarEventInSidePanel } from '@/side-panel/hooks/useOpenCalendarEventInSidePanel'; import { viewableRecordIdComponentState } from '@/side-panel/pages/record-page/states/viewableRecordIdComponentState'; -import { ContextStoreViewType } from '@/context-store/types/ContextStoreViewType'; +import { viewableRecordNameSingularComponentState } from '@/side-panel/pages/record-page/states/viewableRecordNameSingularComponentState'; import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue'; -import { SidePanelPages } from 'twenty-shared/types'; -import { IconCalendarEvent } from 'twenty-ui/icon'; +import { + ContextStorePageType, + CoreObjectNameSingular, + SidePanelPages, +} from 'twenty-shared/types'; import { getJestMetadataAndApolloMocksAndCommandMenuWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksAndCommandMenuWrapper'; import { getTestEnrichedObjectMetadataItemsMock } from '~/testing/utils/getTestEnrichedObjectMetadataItemsMock'; @@ -22,16 +30,26 @@ jest.mock('@/side-panel/hooks/useNavigateSidePanel', () => ({ }), })); -const personMockObjectMetadataItem = +const mockOpenNewRecordTitleCell = jest.fn(); +jest.mock( + '@/object-record/record-title-cell/hooks/useOpenNewRecordTitleCell', + () => ({ + useOpenNewRecordTitleCell: () => ({ + openNewRecordTitleCell: mockOpenNewRecordTitleCell, + }), + }), +); + +const calendarEventMockObjectMetadataItem = getTestEnrichedObjectMetadataItemsMock().find( - (item) => item.nameSingular === 'person', + (item) => item.nameSingular === CoreObjectNameSingular.CalendarEvent, )!; const wrapper = getJestMetadataAndApolloMocksAndCommandMenuWrapper({ apolloMocks: [], componentInstanceId: SIDE_PANEL_COMPONENT_INSTANCE_ID, contextStoreCurrentObjectMetadataNameSingular: - personMockObjectMetadataItem.nameSingular, + calendarEventMockObjectMetadataItem.nameSingular, contextStoreCurrentViewId: 'my-view-id', contextStoreTargetedRecordsRule: { mode: 'selection', @@ -51,10 +69,36 @@ const renderHooks = () => { viewableRecordIdComponentState, 'mocked-uuid', ); + const viewableRecordNameSingular = useAtomComponentStateValue( + viewableRecordNameSingularComponentState, + 'mocked-uuid', + ); + const contextStoreCurrentObjectMetadataItemId = + useAtomComponentStateValue( + contextStoreCurrentObjectMetadataItemIdComponentState, + 'mocked-uuid', + ); + const contextStoreTargetedRecordsRule = useAtomComponentStateValue( + contextStoreTargetedRecordsRuleComponentState, + 'mocked-uuid', + ); + const contextStoreNumberOfSelectedRecords = useAtomComponentStateValue( + contextStoreNumberOfSelectedRecordsComponentState, + 'mocked-uuid', + ); + const contextStoreCurrentPageType = useAtomComponentStateValue( + contextStoreCurrentPageTypeComponentState, + 'mocked-uuid', + ); return { openCalendarEventInSidePanel, viewableRecordId, + viewableRecordNameSingular, + contextStoreCurrentObjectMetadataItemId, + contextStoreTargetedRecordsRule, + contextStoreNumberOfSelectedRecords, + contextStoreCurrentPageType, }; }, { @@ -69,7 +113,7 @@ describe('useOpenCalendarEventInSidePanel', () => { jest.clearAllMocks(); }); - it('should set the correct states and navigate to the calendar event page', () => { + it('should open the calendar event as a standard record page', () => { const { result } = renderHooks(); const calendarEventId = 'calendar-event-123'; @@ -79,12 +123,26 @@ describe('useOpenCalendarEventInSidePanel', () => { }); expect(result.current.viewableRecordId).toBe(calendarEventId); - - expect(mockNavigateSidePanel).toHaveBeenCalledWith({ - page: SidePanelPages.ViewCalendarEvent, - pageTitle: 'Calendar Event', - pageIcon: IconCalendarEvent, - pageId: 'mocked-uuid', + expect(result.current.viewableRecordNameSingular).toBe( + CoreObjectNameSingular.CalendarEvent, + ); + expect(result.current.contextStoreCurrentObjectMetadataItemId).toBe( + calendarEventMockObjectMetadataItem.id, + ); + expect(result.current.contextStoreTargetedRecordsRule).toEqual({ + mode: 'selection', + selectedRecordIds: [calendarEventId], }); + expect(result.current.contextStoreNumberOfSelectedRecords).toBe(1); + expect(result.current.contextStoreCurrentPageType).toBe( + ContextStorePageType.Record, + ); + + expect(mockNavigateSidePanel).toHaveBeenCalledWith( + expect.objectContaining({ + page: SidePanelPages.ViewRecord, + pageId: 'mocked-uuid', + }), + ); }); }); diff --git a/packages/twenty-front/src/modules/side-panel/hooks/useOpenCalendarEventInSidePanel.ts b/packages/twenty-front/src/modules/side-panel/hooks/useOpenCalendarEventInSidePanel.ts index ec30480c22..e9204e90e0 100644 --- a/packages/twenty-front/src/modules/side-panel/hooks/useOpenCalendarEventInSidePanel.ts +++ b/packages/twenty-front/src/modules/side-panel/hooks/useOpenCalendarEventInSidePanel.ts @@ -1,60 +1,18 @@ -import { useNavigateSidePanel } from '@/side-panel/hooks/useNavigateSidePanel'; -import { viewableRecordIdComponentState } from '@/side-panel/pages/record-page/states/viewableRecordIdComponentState'; -import { t } from '@lingui/core/macro'; +import { useOpenRecordInSidePanel } from '@/side-panel/hooks/useOpenRecordInSidePanel'; import { useCallback } from 'react'; -import { SidePanelPages } from 'twenty-shared/types'; -import { IconCalendarEvent } from 'twenty-ui/icon'; -import { v4 } from 'uuid'; -import { useStore } from 'jotai'; +import { CoreObjectNameSingular } from 'twenty-shared/types'; export const useOpenCalendarEventInSidePanel = () => { - const store = useStore(); - const { navigateSidePanel } = useNavigateSidePanel(); + const { openRecordInSidePanel } = useOpenRecordInSidePanel(); const openCalendarEventInSidePanel = useCallback( (calendarEventId: string) => { - const pageComponentInstanceId = v4(); - - store.set( - viewableRecordIdComponentState.atomFamily({ - instanceId: pageComponentInstanceId, - }), - calendarEventId, - ); - - // TODO: Uncomment this once we need to calendar event title in the navigation - // const objectMetadataItem = snapshot - // .getLoadable(objectMetadataItemsSelector) - // .getValue() - // .find( - // ({ nameSingular }) => - // nameSingular === CoreObjectNameSingular.CalendarEvent, - // ); - - // set( - // commandMenuNavigationMorphItemsState, - // new Map([ - // ...snapshot - // .getLoadable(commandMenuNavigationMorphItemsState) - // .getValue(), - // [ - // pageComponentInstanceId, - // { - // objectMetadataId: objectMetadataItem?.id, - // recordId: calendarEventId, - // }, - // ], - // ]), - // ); - - navigateSidePanel({ - page: SidePanelPages.ViewCalendarEvent, - pageTitle: t`Calendar Event`, - pageIcon: IconCalendarEvent, - pageId: pageComponentInstanceId, + openRecordInSidePanel({ + recordId: calendarEventId, + objectNameSingular: CoreObjectNameSingular.CalendarEvent, }); }, - [navigateSidePanel, store], + [openRecordInSidePanel], ); return { diff --git a/packages/twenty-front/src/modules/side-panel/pages/calendar-event/components/SidePanelCalendarEventPage.tsx b/packages/twenty-front/src/modules/side-panel/pages/calendar-event/components/SidePanelCalendarEventPage.tsx deleted file mode 100644 index 5fe12fe834..0000000000 --- a/packages/twenty-front/src/modules/side-panel/pages/calendar-event/components/SidePanelCalendarEventPage.tsx +++ /dev/null @@ -1,73 +0,0 @@ -import { useEffect } from 'react'; - -import { CalendarEventDetails } from '@/activities/calendar/components/CalendarEventDetails'; -import { CalendarEventDetailsEffect } from '@/activities/calendar/components/CalendarEventDetailsEffect'; -import { type CalendarEvent } from '@/activities/calendar/types/CalendarEvent'; -import { viewableRecordIdComponentState } from '@/side-panel/pages/record-page/states/viewableRecordIdComponentState'; -import { CoreObjectNameSingular } from 'twenty-shared/types'; -import { useGenerateDepthRecordGqlFieldsFromObject } from '@/object-record/graphql/record-gql-fields/hooks/useGenerateDepthRecordGqlFieldsFromObject'; -import { useFindOneRecord } from '@/object-record/hooks/useFindOneRecord'; -import { useUpsertRecordsInStore } from '@/object-record/record-store/hooks/useUpsertRecordsInStore'; -import { LayoutRenderingProvider } from '@/ui/layout/contexts/LayoutRenderingContext'; -import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue'; -import { PageLayoutType } from '~/generated-metadata/graphql'; - -export const SidePanelCalendarEventPage = () => { - const { upsertRecordsInStore } = useUpsertRecordsInStore(); - const viewableRecordId = useAtomComponentStateValue( - viewableRecordIdComponentState, - ); - - const { recordGqlFields } = useGenerateDepthRecordGqlFieldsFromObject({ - objectNameSingular: CoreObjectNameSingular.CalendarEvent, - depth: 1, - }); - - const calendarEventRecordGqlFields = { - ...recordGqlFields, - calendarEventParticipants: { - id: true, - person: true, - workspaceMember: true, - isOrganizer: true, - responseStatus: true, - handle: true, - createdAt: true, - calendarEventId: true, - updatedAt: true, - displayName: true, - }, - }; - - const { record: calendarEvent } = useFindOneRecord({ - objectNameSingular: CoreObjectNameSingular.CalendarEvent, - objectRecordId: viewableRecordId ?? '', - recordGqlFields: calendarEventRecordGqlFields, - }); - - useEffect(() => { - if (calendarEvent) { - upsertRecordsInStore({ partialRecords: [calendarEvent] }); - } - }, [calendarEvent, upsertRecordsInStore]); - - if (!calendarEvent) { - return null; - } - - return ( - - - - - ); -}; diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-15/2-15-upgrade-version-command.module.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-15/2-15-upgrade-version-command.module.ts index 3aac76d039..68f01d0974 100644 --- a/packages/twenty-server/src/database/commands/upgrade-version-command/2-15/2-15-upgrade-version-command.module.ts +++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-15/2-15-upgrade-version-command.module.ts @@ -2,10 +2,21 @@ import { Module } from '@nestjs/common'; import { WorkspaceIteratorModule } from 'src/database/commands/command-runners/workspace-iterator.module'; import { MigrateManualTriggerVariablesToPayloadCommand } from 'src/database/commands/upgrade-version-command/2-15/2-15-workspace-command-1800000001000-migrate-manual-trigger-variables-to-payload.command'; +import { SyncCalendarEventRecordPageCommand } from 'src/database/commands/upgrade-version-command/2-15/2-15-workspace-command-1800000002000-sync-calendar-event-record-page.command'; +import { ApplicationModule } from 'src/engine/core-modules/application/application.module'; import { WorkspaceCacheModule } from 'src/engine/workspace-cache/workspace-cache.module'; +import { WorkspaceMigrationModule } from 'src/engine/workspace-manager/workspace-migration/workspace-migration.module'; @Module({ - imports: [WorkspaceIteratorModule, WorkspaceCacheModule], - providers: [MigrateManualTriggerVariablesToPayloadCommand], + imports: [ + ApplicationModule, + WorkspaceIteratorModule, + WorkspaceCacheModule, + WorkspaceMigrationModule, + ], + providers: [ + MigrateManualTriggerVariablesToPayloadCommand, + SyncCalendarEventRecordPageCommand, + ], }) export class V2_15_UpgradeVersionCommandModule {} diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-15/2-15-workspace-command-1800000002000-sync-calendar-event-record-page.command.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-15/2-15-workspace-command-1800000002000-sync-calendar-event-record-page.command.ts new file mode 100644 index 0000000000..7d810a65b6 --- /dev/null +++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-15/2-15-workspace-command-1800000002000-sync-calendar-event-record-page.command.ts @@ -0,0 +1,256 @@ +import { Command } from 'nest-commander'; + +import { + STANDARD_OBJECTS, + STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS, +} from 'twenty-shared/metadata'; +import { isDefined } from 'twenty-shared/utils'; + +import { ActiveOrSuspendedWorkspaceCommandRunner } from 'src/database/commands/command-runners/active-or-suspended-workspace.command-runner'; +import { WorkspaceIteratorService } from 'src/database/commands/command-runners/workspace-iterator.service'; +import { type RunOnWorkspaceArgs } from 'src/database/commands/command-runners/workspace.command-runner'; +import { getStandardFlatEntitiesToCreateOrThrow } from 'src/database/commands/upgrade-version-command/2-10/utils/get-standard-flat-entities-to-create-or-throw.util'; +import { ApplicationService } from 'src/engine/core-modules/application/application.service'; +import { RegisteredWorkspaceCommand } from 'src/engine/core-modules/upgrade/decorators/registered-workspace-command.decorator'; +import { type 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 { type FlatViewFieldGroup } from 'src/engine/metadata-modules/flat-view-field-group/types/flat-view-field-group.type'; +import { type FlatViewField } from 'src/engine/metadata-modules/flat-view-field/types/flat-view-field.type'; +import { type FlatView } from 'src/engine/metadata-modules/flat-view/types/flat-view.type'; +import { WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service'; +import { computeTwentyStandardApplicationAllFlatEntityMaps } from 'src/engine/workspace-manager/twenty-standard-application/utils/twenty-standard-application-all-flat-entity-maps.constant'; +import { WorkspaceMigrationValidateBuildAndRunService } from 'src/engine/workspace-manager/workspace-migration/services/workspace-migration-validate-build-and-run-service'; + +const getUniversalIdentifiers = ( + entitiesByName: Record, +): string[] => + Object.values(entitiesByName).map((entity) => entity.universalIdentifier); + +const CALENDAR_EVENT_RECORD_PAGE_VIEW_UNIVERSAL_IDENTIFIERS = [ + STANDARD_OBJECTS.calendarEvent.views.calendarEventRecordPageFields + .universalIdentifier, +]; + +const CALENDAR_EVENT_RECORD_PAGE_VIEW_FIELD_GROUP_UNIVERSAL_IDENTIFIERS = + getUniversalIdentifiers( + STANDARD_OBJECTS.calendarEvent.views.calendarEventRecordPageFields + .viewFieldGroups, + ); + +const CALENDAR_EVENT_RECORD_PAGE_VIEW_FIELD_UNIVERSAL_IDENTIFIERS = + getUniversalIdentifiers( + STANDARD_OBJECTS.calendarEvent.views.calendarEventRecordPageFields + .viewFields, + ); + +const CALENDAR_EVENT_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS = [ + STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.calendarEventRecordPage + .universalIdentifier, +]; + +const CALENDAR_EVENT_PAGE_LAYOUT_TAB_UNIVERSAL_IDENTIFIERS = [ + STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.calendarEventRecordPage.tabs.home + .universalIdentifier, + STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.calendarEventRecordPage.tabs + .timeline.universalIdentifier, +]; + +const CALENDAR_EVENT_PAGE_LAYOUT_WIDGET_UNIVERSAL_IDENTIFIERS = [ + STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.calendarEventRecordPage.tabs.home + .widgets.fields.universalIdentifier, + STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.calendarEventRecordPage.tabs.home + .widgets.participants.universalIdentifier, + STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.calendarEventRecordPage.tabs.home + .widgets.callRecordings.universalIdentifier, + STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.calendarEventRecordPage.tabs + .timeline.widgets.timeline.universalIdentifier, +]; + +@RegisteredWorkspaceCommand('2.15.0', 1800000002000) +@Command({ + name: 'upgrade:2-15:sync-calendar-event-record-page', + description: + 'Create the CalendarEvent record page layout and fields view in existing workspaces', +}) +export class SyncCalendarEventRecordPageCommand extends ActiveOrSuspendedWorkspaceCommandRunner { + constructor( + protected readonly workspaceIteratorService: WorkspaceIteratorService, + private readonly applicationService: ApplicationService, + private readonly workspaceCacheService: WorkspaceCacheService, + private readonly workspaceMigrationValidateBuildAndRunService: WorkspaceMigrationValidateBuildAndRunService, + ) { + super(workspaceIteratorService); + } + + override async runOnWorkspace({ + workspaceId, + options, + }: RunOnWorkspaceArgs): Promise { + const isDryRun = options.dryRun ?? false; + + const { twentyStandardFlatApplication } = + await this.applicationService.findWorkspaceTwentyStandardAndCustomApplicationOrThrow( + { workspaceId }, + ); + + const { + flatObjectMetadataMaps, + flatViewMaps, + flatViewFieldMaps, + flatViewFieldGroupMaps, + flatPageLayoutMaps, + flatPageLayoutTabMaps, + flatPageLayoutWidgetMaps, + } = await this.workspaceCacheService.getOrRecompute(workspaceId, [ + 'flatObjectMetadataMaps', + 'flatViewMaps', + 'flatViewFieldMaps', + 'flatViewFieldGroupMaps', + 'flatPageLayoutMaps', + 'flatPageLayoutTabMaps', + 'flatPageLayoutWidgetMaps', + ]); + + const existingCalendarEventObjectMetadata = + flatObjectMetadataMaps.byUniversalIdentifier[ + STANDARD_OBJECTS.calendarEvent.universalIdentifier + ]; + + if (!isDefined(existingCalendarEventObjectMetadata)) { + this.logger.log( + `calendarEvent object metadata does not exist for workspace ${workspaceId}, skipping`, + ); + + return; + } + + const { allFlatEntityMaps: standardAllFlatEntityMaps } = + computeTwentyStandardApplicationAllFlatEntityMaps({ + now: new Date().toISOString(), + workspaceId, + twentyStandardApplicationId: twentyStandardFlatApplication.id, + }); + + const viewsToCreate = getStandardFlatEntitiesToCreateOrThrow({ + standardFlatEntityMaps: standardAllFlatEntityMaps.flatViewMaps, + existingFlatEntityMaps: flatViewMaps, + universalIdentifiers: CALENDAR_EVENT_RECORD_PAGE_VIEW_UNIVERSAL_IDENTIFIERS, + }); + const viewFieldGroupsToCreate = + getStandardFlatEntitiesToCreateOrThrow({ + standardFlatEntityMaps: standardAllFlatEntityMaps.flatViewFieldGroupMaps, + existingFlatEntityMaps: flatViewFieldGroupMaps, + universalIdentifiers: + CALENDAR_EVENT_RECORD_PAGE_VIEW_FIELD_GROUP_UNIVERSAL_IDENTIFIERS, + }); + const viewFieldsToCreate = + getStandardFlatEntitiesToCreateOrThrow({ + standardFlatEntityMaps: standardAllFlatEntityMaps.flatViewFieldMaps, + existingFlatEntityMaps: flatViewFieldMaps, + universalIdentifiers: + CALENDAR_EVENT_RECORD_PAGE_VIEW_FIELD_UNIVERSAL_IDENTIFIERS, + }); + const pageLayoutsToCreate = + getStandardFlatEntitiesToCreateOrThrow({ + standardFlatEntityMaps: standardAllFlatEntityMaps.flatPageLayoutMaps, + existingFlatEntityMaps: flatPageLayoutMaps, + universalIdentifiers: CALENDAR_EVENT_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS, + }); + const pageLayoutTabsToCreate = + getStandardFlatEntitiesToCreateOrThrow({ + standardFlatEntityMaps: standardAllFlatEntityMaps.flatPageLayoutTabMaps, + existingFlatEntityMaps: flatPageLayoutTabMaps, + universalIdentifiers: + CALENDAR_EVENT_PAGE_LAYOUT_TAB_UNIVERSAL_IDENTIFIERS, + }); + const pageLayoutWidgetsToCreate = + getStandardFlatEntitiesToCreateOrThrow({ + standardFlatEntityMaps: + standardAllFlatEntityMaps.flatPageLayoutWidgetMaps, + existingFlatEntityMaps: flatPageLayoutWidgetMaps, + universalIdentifiers: + CALENDAR_EVENT_PAGE_LAYOUT_WIDGET_UNIVERSAL_IDENTIFIERS, + }); + + const totalOperationCount = + viewsToCreate.length + + viewFieldGroupsToCreate.length + + viewFieldsToCreate.length + + pageLayoutsToCreate.length + + pageLayoutTabsToCreate.length + + pageLayoutWidgetsToCreate.length; + + if (totalOperationCount === 0) { + this.logger.log( + `CalendarEvent record page metadata already exists for workspace ${workspaceId}, skipping`, + ); + + return; + } + + this.logger.log( + `${isDryRun ? '[DRY RUN] ' : ''}Creating ${totalOperationCount} CalendarEvent record page metadata item(s) for workspace ${workspaceId}`, + ); + + if (isDryRun) { + return; + } + + const validateAndBuildResult = + await this.workspaceMigrationValidateBuildAndRunService.validateBuildAndRunWorkspaceMigration( + { + isSystemBuild: true, + applicationUniversalIdentifier: + twentyStandardFlatApplication.universalIdentifier, + workspaceId, + allFlatEntityOperationByMetadataName: { + view: { + flatEntityToCreate: viewsToCreate, + flatEntityToDelete: [], + flatEntityToUpdate: [], + }, + viewFieldGroup: { + flatEntityToCreate: viewFieldGroupsToCreate, + flatEntityToDelete: [], + flatEntityToUpdate: [], + }, + viewField: { + flatEntityToCreate: viewFieldsToCreate, + flatEntityToDelete: [], + flatEntityToUpdate: [], + }, + pageLayout: { + flatEntityToCreate: pageLayoutsToCreate, + flatEntityToDelete: [], + flatEntityToUpdate: [], + }, + pageLayoutTab: { + flatEntityToCreate: pageLayoutTabsToCreate, + flatEntityToDelete: [], + flatEntityToUpdate: [], + }, + pageLayoutWidget: { + flatEntityToCreate: pageLayoutWidgetsToCreate, + flatEntityToDelete: [], + flatEntityToUpdate: [], + }, + }, + }, + ); + + if (validateAndBuildResult.status === 'fail') { + throw new Error( + `Failed to create CalendarEvent record page metadata for workspace ${workspaceId}: ${JSON.stringify( + validateAndBuildResult, + null, + 2, + )}`, + ); + } + + this.logger.log( + `Created ${totalOperationCount} CalendarEvent record page metadata item(s) for workspace ${workspaceId}`, + ); + } +} diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-page-layout.constant.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-page-layout.constant.ts index 3742efaa7d..e0a5ecf7b5 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-page-layout.constant.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-page-layout.constant.ts @@ -1,6 +1,7 @@ import { STANDARD_BLOCKLIST_PAGE_LAYOUT_CONFIG, STANDARD_CALENDAR_CHANNEL_EVENT_ASSOCIATION_PAGE_LAYOUT_CONFIG, + STANDARD_CALENDAR_EVENT_PAGE_LAYOUT_CONFIG, STANDARD_CALENDAR_EVENT_PARTICIPANT_PAGE_LAYOUT_CONFIG, STANDARD_CALL_RECORDING_PAGE_LAYOUT_CONFIG, STANDARD_COMPANY_PAGE_LAYOUT_CONFIG, @@ -27,6 +28,7 @@ export const STANDARD_PAGE_LAYOUTS = { blocklistRecordPage: STANDARD_BLOCKLIST_PAGE_LAYOUT_CONFIG, calendarChannelEventAssociationRecordPage: STANDARD_CALENDAR_CHANNEL_EVENT_ASSOCIATION_PAGE_LAYOUT_CONFIG, + calendarEventRecordPage: STANDARD_CALENDAR_EVENT_PAGE_LAYOUT_CONFIG, calendarEventParticipantRecordPage: STANDARD_CALENDAR_EVENT_PARTICIPANT_PAGE_LAYOUT_CONFIG, callRecordingRecordPage: STANDARD_CALL_RECORDING_PAGE_LAYOUT_CONFIG, diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap index 545852c749..2c98c5709a 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 @@ -345,7 +345,7 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "id": "00000000-0000-0000-0000-000000000137", }, }, - "id": "00000000-0000-0000-0000-000000000149", + "id": "00000000-0000-0000-0000-000000000164", "views": { "allCalendarEvents": { "id": "00000000-0000-0000-0000-000000000148", @@ -378,6 +378,56 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object }, "viewGroups": {}, }, + "calendarEventRecordPageFields": { + "id": "00000000-0000-0000-0000-000000000163", + "viewFieldGroups": { + "general": { + "id": "00000000-0000-0000-0000-000000000161", + }, + "system": { + "id": "00000000-0000-0000-0000-000000000162", + }, + }, + "viewFields": { + "conferenceLink": { + "id": "00000000-0000-0000-0000-000000000154", + }, + "conferenceSolution": { + "id": "00000000-0000-0000-0000-000000000160", + }, + "description": { + "id": "00000000-0000-0000-0000-000000000156", + }, + "endsAt": { + "id": "00000000-0000-0000-0000-000000000151", + }, + "externalCreatedAt": { + "id": "00000000-0000-0000-0000-000000000157", + }, + "externalUpdatedAt": { + "id": "00000000-0000-0000-0000-000000000158", + }, + "iCalUid": { + "id": "00000000-0000-0000-0000-000000000159", + }, + "isCanceled": { + "id": "00000000-0000-0000-0000-000000000153", + }, + "isFullDay": { + "id": "00000000-0000-0000-0000-000000000152", + }, + "location": { + "id": "00000000-0000-0000-0000-000000000155", + }, + "startsAt": { + "id": "00000000-0000-0000-0000-000000000150", + }, + "title": { + "id": "00000000-0000-0000-0000-000000000149", + }, + }, + "viewGroups": {}, + }, }, }, "calendarEventParticipant": { @@ -507,124 +557,124 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "callRecording": { "fields": { "applicationId": { - "id": "00000000-0000-0000-0000-000000000157", + "id": "00000000-0000-0000-0000-000000000172", }, "audio": { - "id": "00000000-0000-0000-0000-000000000163", + "id": "00000000-0000-0000-0000-000000000178", }, "calendarEvent": { - "id": "00000000-0000-0000-0000-000000000166", + "id": "00000000-0000-0000-0000-000000000181", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000151", + "id": "00000000-0000-0000-0000-000000000166", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000167", + "id": "00000000-0000-0000-0000-000000000182", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000153", - }, - "endedAt": { - "id": "00000000-0000-0000-0000-000000000161", - }, - "externalBotId": { - "id": "00000000-0000-0000-0000-000000000158", - }, - "externalRecordingId": { - "id": "00000000-0000-0000-0000-000000000159", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000150", - }, - "position": { - "id": "00000000-0000-0000-0000-000000000169", - }, - "recordingRequestStatus": { - "id": "00000000-0000-0000-0000-000000000156", - }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000170", - }, - "startedAt": { - "id": "00000000-0000-0000-0000-000000000160", - }, - "status": { - "id": "00000000-0000-0000-0000-000000000155", - }, - "summary": { - "id": "00000000-0000-0000-0000-000000000165", - }, - "title": { - "id": "00000000-0000-0000-0000-000000000154", - }, - "transcript": { - "id": "00000000-0000-0000-0000-000000000164", - }, - "updatedAt": { - "id": "00000000-0000-0000-0000-000000000152", - }, - "updatedBy": { "id": "00000000-0000-0000-0000-000000000168", }, + "endedAt": { + "id": "00000000-0000-0000-0000-000000000176", + }, + "externalBotId": { + "id": "00000000-0000-0000-0000-000000000173", + }, + "externalRecordingId": { + "id": "00000000-0000-0000-0000-000000000174", + }, + "id": { + "id": "00000000-0000-0000-0000-000000000165", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000184", + }, + "recordingRequestStatus": { + "id": "00000000-0000-0000-0000-000000000171", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000185", + }, + "startedAt": { + "id": "00000000-0000-0000-0000-000000000175", + }, + "status": { + "id": "00000000-0000-0000-0000-000000000170", + }, + "summary": { + "id": "00000000-0000-0000-0000-000000000180", + }, + "title": { + "id": "00000000-0000-0000-0000-000000000169", + }, + "transcript": { + "id": "00000000-0000-0000-0000-000000000179", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000167", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000183", + }, "video": { - "id": "00000000-0000-0000-0000-000000000162", + "id": "00000000-0000-0000-0000-000000000177", }, }, - "id": "00000000-0000-0000-0000-000000000187", + "id": "00000000-0000-0000-0000-000000000202", "views": { "allCallRecordings": { - "id": "00000000-0000-0000-0000-000000000175", + "id": "00000000-0000-0000-0000-000000000190", "viewFieldGroups": {}, "viewFields": { "recordingRequestStatus": { - "id": "00000000-0000-0000-0000-000000000172", + "id": "00000000-0000-0000-0000-000000000187", }, "startedAt": { - "id": "00000000-0000-0000-0000-000000000174", + "id": "00000000-0000-0000-0000-000000000189", }, "status": { - "id": "00000000-0000-0000-0000-000000000171", + "id": "00000000-0000-0000-0000-000000000186", }, "title": { - "id": "00000000-0000-0000-0000-000000000173", + "id": "00000000-0000-0000-0000-000000000188", }, }, "viewGroups": {}, }, "callRecordingRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000186", + "id": "00000000-0000-0000-0000-000000000201", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000185", + "id": "00000000-0000-0000-0000-000000000200", }, }, "viewFields": { "audio": { - "id": "00000000-0000-0000-0000-000000000182", + "id": "00000000-0000-0000-0000-000000000197", }, "endedAt": { - "id": "00000000-0000-0000-0000-000000000180", + "id": "00000000-0000-0000-0000-000000000195", }, "recordingRequestStatus": { - "id": "00000000-0000-0000-0000-000000000178", + "id": "00000000-0000-0000-0000-000000000193", }, "startedAt": { - "id": "00000000-0000-0000-0000-000000000179", + "id": "00000000-0000-0000-0000-000000000194", }, "status": { - "id": "00000000-0000-0000-0000-000000000177", + "id": "00000000-0000-0000-0000-000000000192", }, "summary": { - "id": "00000000-0000-0000-0000-000000000184", + "id": "00000000-0000-0000-0000-000000000199", }, "title": { - "id": "00000000-0000-0000-0000-000000000176", + "id": "00000000-0000-0000-0000-000000000191", }, "transcript": { - "id": "00000000-0000-0000-0000-000000000183", + "id": "00000000-0000-0000-0000-000000000198", }, "video": { - "id": "00000000-0000-0000-0000-000000000181", + "id": "00000000-0000-0000-0000-000000000196", }, }, "viewGroups": {}, @@ -634,157 +684,157 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "company": { "fields": { "accountOwner": { - "id": "00000000-0000-0000-0000-000000000201", + "id": "00000000-0000-0000-0000-000000000216", }, "address": { - "id": "00000000-0000-0000-0000-000000000194", + "id": "00000000-0000-0000-0000-000000000209", }, "annualRevenue": { - "id": "00000000-0000-0000-0000-000000000196", + "id": "00000000-0000-0000-0000-000000000211", }, "attachments": { - "id": "00000000-0000-0000-0000-000000000205", + "id": "00000000-0000-0000-0000-000000000220", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000189", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000198", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000191", - }, - "domainName": { - "id": "00000000-0000-0000-0000-000000000193", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000188", - }, - "linkedinLink": { - "id": "00000000-0000-0000-0000-000000000195", - }, - "name": { - "id": "00000000-0000-0000-0000-000000000192", - }, - "noteTargets": { - "id": "00000000-0000-0000-0000-000000000203", - }, - "opportunities": { "id": "00000000-0000-0000-0000-000000000204", }, - "people": { - "id": "00000000-0000-0000-0000-000000000200", + "createdBy": { + "id": "00000000-0000-0000-0000-000000000213", }, - "position": { - "id": "00000000-0000-0000-0000-000000000197", - }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000207", - }, - "taskTargets": { - "id": "00000000-0000-0000-0000-000000000202", - }, - "timelineActivities": { + "deletedAt": { "id": "00000000-0000-0000-0000-000000000206", }, + "domainName": { + "id": "00000000-0000-0000-0000-000000000208", + }, + "id": { + "id": "00000000-0000-0000-0000-000000000203", + }, + "linkedinLink": { + "id": "00000000-0000-0000-0000-000000000210", + }, + "name": { + "id": "00000000-0000-0000-0000-000000000207", + }, + "noteTargets": { + "id": "00000000-0000-0000-0000-000000000218", + }, + "opportunities": { + "id": "00000000-0000-0000-0000-000000000219", + }, + "people": { + "id": "00000000-0000-0000-0000-000000000215", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000212", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000222", + }, + "taskTargets": { + "id": "00000000-0000-0000-0000-000000000217", + }, + "timelineActivities": { + "id": "00000000-0000-0000-0000-000000000221", + }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000190", + "id": "00000000-0000-0000-0000-000000000205", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000199", + "id": "00000000-0000-0000-0000-000000000214", }, }, - "id": "00000000-0000-0000-0000-000000000236", + "id": "00000000-0000-0000-0000-000000000251", "views": { "allCompanies": { - "id": "00000000-0000-0000-0000-000000000215", + "id": "00000000-0000-0000-0000-000000000230", "viewFieldGroups": {}, "viewFields": { "accountOwner": { - "id": "00000000-0000-0000-0000-000000000211", + "id": "00000000-0000-0000-0000-000000000226", }, "address": { - "id": "00000000-0000-0000-0000-000000000214", + "id": "00000000-0000-0000-0000-000000000229", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000212", + "id": "00000000-0000-0000-0000-000000000227", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000210", + "id": "00000000-0000-0000-0000-000000000225", }, "domainName": { - "id": "00000000-0000-0000-0000-000000000209", + "id": "00000000-0000-0000-0000-000000000224", }, "linkedinLink": { - "id": "00000000-0000-0000-0000-000000000213", + "id": "00000000-0000-0000-0000-000000000228", }, "name": { - "id": "00000000-0000-0000-0000-000000000208", + "id": "00000000-0000-0000-0000-000000000223", }, }, "viewGroups": {}, }, "companyRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000235", + "id": "00000000-0000-0000-0000-000000000250", "viewFieldGroups": { "business": { - "id": "00000000-0000-0000-0000-000000000232", + "id": "00000000-0000-0000-0000-000000000247", }, "contact": { - "id": "00000000-0000-0000-0000-000000000233", + "id": "00000000-0000-0000-0000-000000000248", }, "general": { - "id": "00000000-0000-0000-0000-000000000231", + "id": "00000000-0000-0000-0000-000000000246", }, "system": { - "id": "00000000-0000-0000-0000-000000000234", + "id": "00000000-0000-0000-0000-000000000249", }, }, "viewFields": { "accountOwner": { - "id": "00000000-0000-0000-0000-000000000217", + "id": "00000000-0000-0000-0000-000000000232", }, "address": { - "id": "00000000-0000-0000-0000-000000000220", + "id": "00000000-0000-0000-0000-000000000235", }, "annualRevenue": { - "id": "00000000-0000-0000-0000-000000000218", + "id": "00000000-0000-0000-0000-000000000233", }, "attachments": { - "id": "00000000-0000-0000-0000-000000000229", + "id": "00000000-0000-0000-0000-000000000244", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000221", + "id": "00000000-0000-0000-0000-000000000236", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000222", + "id": "00000000-0000-0000-0000-000000000237", }, "domainName": { - "id": "00000000-0000-0000-0000-000000000216", + "id": "00000000-0000-0000-0000-000000000231", }, "linkedinLink": { - "id": "00000000-0000-0000-0000-000000000219", + "id": "00000000-0000-0000-0000-000000000234", }, "noteTargets": { - "id": "00000000-0000-0000-0000-000000000227", + "id": "00000000-0000-0000-0000-000000000242", }, "opportunities": { - "id": "00000000-0000-0000-0000-000000000228", + "id": "00000000-0000-0000-0000-000000000243", }, "people": { - "id": "00000000-0000-0000-0000-000000000225", + "id": "00000000-0000-0000-0000-000000000240", }, "taskTargets": { - "id": "00000000-0000-0000-0000-000000000226", + "id": "00000000-0000-0000-0000-000000000241", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000230", + "id": "00000000-0000-0000-0000-000000000245", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000223", + "id": "00000000-0000-0000-0000-000000000238", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000224", + "id": "00000000-0000-0000-0000-000000000239", }, }, "viewGroups": {}, @@ -794,59 +844,59 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "dashboard": { "fields": { "attachments": { - "id": "00000000-0000-0000-0000-000000000247", + "id": "00000000-0000-0000-0000-000000000262", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000238", + "id": "00000000-0000-0000-0000-000000000253", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000244", + "id": "00000000-0000-0000-0000-000000000259", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000240", + "id": "00000000-0000-0000-0000-000000000255", }, "id": { - "id": "00000000-0000-0000-0000-000000000237", + "id": "00000000-0000-0000-0000-000000000252", }, "pageLayoutId": { - "id": "00000000-0000-0000-0000-000000000243", + "id": "00000000-0000-0000-0000-000000000258", }, "position": { - "id": "00000000-0000-0000-0000-000000000242", + "id": "00000000-0000-0000-0000-000000000257", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000248", + "id": "00000000-0000-0000-0000-000000000263", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000246", + "id": "00000000-0000-0000-0000-000000000261", }, "title": { - "id": "00000000-0000-0000-0000-000000000241", + "id": "00000000-0000-0000-0000-000000000256", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000239", + "id": "00000000-0000-0000-0000-000000000254", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000245", + "id": "00000000-0000-0000-0000-000000000260", }, }, - "id": "00000000-0000-0000-0000-000000000254", + "id": "00000000-0000-0000-0000-000000000269", "views": { "allDashboards": { - "id": "00000000-0000-0000-0000-000000000253", + "id": "00000000-0000-0000-0000-000000000268", "viewFieldGroups": {}, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000251", + "id": "00000000-0000-0000-0000-000000000266", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000250", + "id": "00000000-0000-0000-0000-000000000265", }, "title": { - "id": "00000000-0000-0000-0000-000000000249", + "id": "00000000-0000-0000-0000-000000000264", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000252", + "id": "00000000-0000-0000-0000-000000000267", }, }, "viewGroups": {}, @@ -856,83 +906,83 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "message": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000403", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000415", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000405", - }, - "deliveryStatus": { - "id": "00000000-0000-0000-0000-000000000414", - }, - "headerMessageId": { - "id": "00000000-0000-0000-0000-000000000406", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000402", - }, - "messageCampaign": { - "id": "00000000-0000-0000-0000-000000000413", - }, - "messageChannelMessageAssociations": { - "id": "00000000-0000-0000-0000-000000000412", - }, - "messageParticipants": { - "id": "00000000-0000-0000-0000-000000000411", - }, - "messageThread": { - "id": "00000000-0000-0000-0000-000000000407", - }, - "position": { - "id": "00000000-0000-0000-0000-000000000417", - }, - "receivedAt": { - "id": "00000000-0000-0000-0000-000000000410", - }, - "searchVector": { "id": "00000000-0000-0000-0000-000000000418", }, + "createdBy": { + "id": "00000000-0000-0000-0000-000000000430", + }, + "deletedAt": { + "id": "00000000-0000-0000-0000-000000000420", + }, + "deliveryStatus": { + "id": "00000000-0000-0000-0000-000000000429", + }, + "headerMessageId": { + "id": "00000000-0000-0000-0000-000000000421", + }, + "id": { + "id": "00000000-0000-0000-0000-000000000417", + }, + "messageCampaign": { + "id": "00000000-0000-0000-0000-000000000428", + }, + "messageChannelMessageAssociations": { + "id": "00000000-0000-0000-0000-000000000427", + }, + "messageParticipants": { + "id": "00000000-0000-0000-0000-000000000426", + }, + "messageThread": { + "id": "00000000-0000-0000-0000-000000000422", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000432", + }, + "receivedAt": { + "id": "00000000-0000-0000-0000-000000000425", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000433", + }, "subject": { - "id": "00000000-0000-0000-0000-000000000408", + "id": "00000000-0000-0000-0000-000000000423", }, "text": { - "id": "00000000-0000-0000-0000-000000000409", + "id": "00000000-0000-0000-0000-000000000424", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000404", + "id": "00000000-0000-0000-0000-000000000419", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000416", + "id": "00000000-0000-0000-0000-000000000431", }, }, - "id": "00000000-0000-0000-0000-000000000427", + "id": "00000000-0000-0000-0000-000000000442", "views": { "allMessages": { - "id": "00000000-0000-0000-0000-000000000426", + "id": "00000000-0000-0000-0000-000000000441", "viewFieldGroups": {}, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000425", + "id": "00000000-0000-0000-0000-000000000440", }, "headerMessageId": { - "id": "00000000-0000-0000-0000-000000000423", + "id": "00000000-0000-0000-0000-000000000438", }, "messageParticipants": { - "id": "00000000-0000-0000-0000-000000000421", + "id": "00000000-0000-0000-0000-000000000436", }, "messageThread": { - "id": "00000000-0000-0000-0000-000000000420", + "id": "00000000-0000-0000-0000-000000000435", }, "receivedAt": { - "id": "00000000-0000-0000-0000-000000000422", + "id": "00000000-0000-0000-0000-000000000437", }, "subject": { - "id": "00000000-0000-0000-0000-000000000419", + "id": "00000000-0000-0000-0000-000000000434", }, "text": { - "id": "00000000-0000-0000-0000-000000000424", + "id": "00000000-0000-0000-0000-000000000439", }, }, "viewGroups": {}, @@ -942,163 +992,163 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "messageCampaign": { "fields": { "bodyTemplate": { - "id": "00000000-0000-0000-0000-000000000264", + "id": "00000000-0000-0000-0000-000000000279", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000256", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000259", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000258", - }, - "fromAddress": { - "id": "00000000-0000-0000-0000-000000000265", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000255", - }, - "list": { - "id": "00000000-0000-0000-0000-000000000269", - }, - "messages": { "id": "00000000-0000-0000-0000-000000000271", }, - "position": { - "id": "00000000-0000-0000-0000-000000000261", + "createdBy": { + "id": "00000000-0000-0000-0000-000000000274", }, - "recipients": { - "id": "00000000-0000-0000-0000-000000000272", + "deletedAt": { + "id": "00000000-0000-0000-0000-000000000273", }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000262", + "fromAddress": { + "id": "00000000-0000-0000-0000-000000000280", }, - "sentAt": { - "id": "00000000-0000-0000-0000-000000000267", - }, - "status": { - "id": "00000000-0000-0000-0000-000000000266", - }, - "subject": { - "id": "00000000-0000-0000-0000-000000000263", - }, - "timelineActivities": { + "id": { "id": "00000000-0000-0000-0000-000000000270", }, + "list": { + "id": "00000000-0000-0000-0000-000000000284", + }, + "messages": { + "id": "00000000-0000-0000-0000-000000000286", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000276", + }, + "recipients": { + "id": "00000000-0000-0000-0000-000000000287", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000277", + }, + "sentAt": { + "id": "00000000-0000-0000-0000-000000000282", + }, + "status": { + "id": "00000000-0000-0000-0000-000000000281", + }, + "subject": { + "id": "00000000-0000-0000-0000-000000000278", + }, + "timelineActivities": { + "id": "00000000-0000-0000-0000-000000000285", + }, "unsubscribeTopicId": { - "id": "00000000-0000-0000-0000-000000000268", + "id": "00000000-0000-0000-0000-000000000283", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000257", + "id": "00000000-0000-0000-0000-000000000272", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000260", + "id": "00000000-0000-0000-0000-000000000275", }, }, - "id": "00000000-0000-0000-0000-000000000273", + "id": "00000000-0000-0000-0000-000000000288", "views": undefined, }, "messageChannelMessageAssociation": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000299", + "id": "00000000-0000-0000-0000-000000000314", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000308", + "id": "00000000-0000-0000-0000-000000000323", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000301", + "id": "00000000-0000-0000-0000-000000000316", }, "direction": { - "id": "00000000-0000-0000-0000-000000000307", + "id": "00000000-0000-0000-0000-000000000322", }, "id": { - "id": "00000000-0000-0000-0000-000000000298", + "id": "00000000-0000-0000-0000-000000000313", }, "message": { - "id": "00000000-0000-0000-0000-000000000303", + "id": "00000000-0000-0000-0000-000000000318", }, "messageChannelId": { - "id": "00000000-0000-0000-0000-000000000302", + "id": "00000000-0000-0000-0000-000000000317", }, "messageExternalId": { - "id": "00000000-0000-0000-0000-000000000304", + "id": "00000000-0000-0000-0000-000000000319", }, "messageFolders": { - "id": "00000000-0000-0000-0000-000000000312", + "id": "00000000-0000-0000-0000-000000000327", }, "messageThread": { - "id": "00000000-0000-0000-0000-000000000305", + "id": "00000000-0000-0000-0000-000000000320", }, "messageThreadExternalId": { - "id": "00000000-0000-0000-0000-000000000306", + "id": "00000000-0000-0000-0000-000000000321", }, "position": { - "id": "00000000-0000-0000-0000-000000000310", + "id": "00000000-0000-0000-0000-000000000325", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000311", + "id": "00000000-0000-0000-0000-000000000326", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000300", + "id": "00000000-0000-0000-0000-000000000315", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000309", + "id": "00000000-0000-0000-0000-000000000324", }, }, - "id": "00000000-0000-0000-0000-000000000328", + "id": "00000000-0000-0000-0000-000000000343", "views": { "allMessageChannelMessageAssociations": { - "id": "00000000-0000-0000-0000-000000000318", + "id": "00000000-0000-0000-0000-000000000333", "viewFieldGroups": {}, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000317", + "id": "00000000-0000-0000-0000-000000000332", }, "direction": { - "id": "00000000-0000-0000-0000-000000000316", + "id": "00000000-0000-0000-0000-000000000331", }, "message": { - "id": "00000000-0000-0000-0000-000000000314", + "id": "00000000-0000-0000-0000-000000000329", }, "messageChannelId": { - "id": "00000000-0000-0000-0000-000000000313", + "id": "00000000-0000-0000-0000-000000000328", }, "messageExternalId": { - "id": "00000000-0000-0000-0000-000000000315", + "id": "00000000-0000-0000-0000-000000000330", }, }, "viewGroups": {}, }, "messageChannelMessageAssociationRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000327", + "id": "00000000-0000-0000-0000-000000000342", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000325", + "id": "00000000-0000-0000-0000-000000000340", }, "system": { - "id": "00000000-0000-0000-0000-000000000326", + "id": "00000000-0000-0000-0000-000000000341", }, }, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000323", + "id": "00000000-0000-0000-0000-000000000338", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000324", + "id": "00000000-0000-0000-0000-000000000339", }, "direction": { - "id": "00000000-0000-0000-0000-000000000322", + "id": "00000000-0000-0000-0000-000000000337", }, "message": { - "id": "00000000-0000-0000-0000-000000000320", + "id": "00000000-0000-0000-0000-000000000335", }, "messageChannelId": { - "id": "00000000-0000-0000-0000-000000000319", + "id": "00000000-0000-0000-0000-000000000334", }, "messageExternalId": { - "id": "00000000-0000-0000-0000-000000000321", + "id": "00000000-0000-0000-0000-000000000336", }, }, "viewGroups": {}, @@ -1108,76 +1158,76 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "messageChannelMessageAssociationMessageFolder": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000330", + "id": "00000000-0000-0000-0000-000000000345", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000333", + "id": "00000000-0000-0000-0000-000000000348", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000332", + "id": "00000000-0000-0000-0000-000000000347", }, "id": { - "id": "00000000-0000-0000-0000-000000000329", + "id": "00000000-0000-0000-0000-000000000344", }, "messageChannelMessageAssociation": { - "id": "00000000-0000-0000-0000-000000000337", + "id": "00000000-0000-0000-0000-000000000352", }, "messageFolderId": { - "id": "00000000-0000-0000-0000-000000000338", + "id": "00000000-0000-0000-0000-000000000353", }, "position": { - "id": "00000000-0000-0000-0000-000000000335", + "id": "00000000-0000-0000-0000-000000000350", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000336", + "id": "00000000-0000-0000-0000-000000000351", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000331", + "id": "00000000-0000-0000-0000-000000000346", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000334", + "id": "00000000-0000-0000-0000-000000000349", }, }, - "id": "00000000-0000-0000-0000-000000000350", + "id": "00000000-0000-0000-0000-000000000365", "views": { "allMessageChannelMessageAssociationMessageFolders": { - "id": "00000000-0000-0000-0000-000000000342", + "id": "00000000-0000-0000-0000-000000000357", "viewFieldGroups": {}, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000341", + "id": "00000000-0000-0000-0000-000000000356", }, "messageChannelMessageAssociation": { - "id": "00000000-0000-0000-0000-000000000339", + "id": "00000000-0000-0000-0000-000000000354", }, "messageFolderId": { - "id": "00000000-0000-0000-0000-000000000340", + "id": "00000000-0000-0000-0000-000000000355", }, }, "viewGroups": {}, }, "messageChannelMessageAssociationMessageFolderRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000349", + "id": "00000000-0000-0000-0000-000000000364", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000347", + "id": "00000000-0000-0000-0000-000000000362", }, "system": { - "id": "00000000-0000-0000-0000-000000000348", + "id": "00000000-0000-0000-0000-000000000363", }, }, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000345", + "id": "00000000-0000-0000-0000-000000000360", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000346", + "id": "00000000-0000-0000-0000-000000000361", }, "messageChannelMessageAssociation": { - "id": "00000000-0000-0000-0000-000000000343", + "id": "00000000-0000-0000-0000-000000000358", }, "messageFolderId": { - "id": "00000000-0000-0000-0000-000000000344", + "id": "00000000-0000-0000-0000-000000000359", }, }, "viewGroups": {}, @@ -1187,190 +1237,190 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "messageList": { "fields": { "campaigns": { - "id": "00000000-0000-0000-0000-000000000284", + "id": "00000000-0000-0000-0000-000000000299", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000275", + "id": "00000000-0000-0000-0000-000000000290", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000278", + "id": "00000000-0000-0000-0000-000000000293", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000277", + "id": "00000000-0000-0000-0000-000000000292", }, "id": { - "id": "00000000-0000-0000-0000-000000000274", + "id": "00000000-0000-0000-0000-000000000289", }, "members": { - "id": "00000000-0000-0000-0000-000000000283", + "id": "00000000-0000-0000-0000-000000000298", }, "name": { - "id": "00000000-0000-0000-0000-000000000282", + "id": "00000000-0000-0000-0000-000000000297", }, "position": { - "id": "00000000-0000-0000-0000-000000000280", + "id": "00000000-0000-0000-0000-000000000295", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000281", + "id": "00000000-0000-0000-0000-000000000296", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000285", + "id": "00000000-0000-0000-0000-000000000300", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000276", + "id": "00000000-0000-0000-0000-000000000291", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000279", + "id": "00000000-0000-0000-0000-000000000294", }, }, - "id": "00000000-0000-0000-0000-000000000286", + "id": "00000000-0000-0000-0000-000000000301", "views": undefined, }, "messageListMember": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000288", + "id": "00000000-0000-0000-0000-000000000303", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000291", + "id": "00000000-0000-0000-0000-000000000306", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000290", + "id": "00000000-0000-0000-0000-000000000305", }, "id": { - "id": "00000000-0000-0000-0000-000000000287", + "id": "00000000-0000-0000-0000-000000000302", }, "list": { - "id": "00000000-0000-0000-0000-000000000296", + "id": "00000000-0000-0000-0000-000000000311", }, "person": { - "id": "00000000-0000-0000-0000-000000000295", + "id": "00000000-0000-0000-0000-000000000310", }, "position": { - "id": "00000000-0000-0000-0000-000000000293", + "id": "00000000-0000-0000-0000-000000000308", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000294", + "id": "00000000-0000-0000-0000-000000000309", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000289", + "id": "00000000-0000-0000-0000-000000000304", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000292", + "id": "00000000-0000-0000-0000-000000000307", }, }, - "id": "00000000-0000-0000-0000-000000000297", + "id": "00000000-0000-0000-0000-000000000312", "views": undefined, }, "messageParticipant": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000352", + "id": "00000000-0000-0000-0000-000000000367", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000362", + "id": "00000000-0000-0000-0000-000000000377", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000354", + "id": "00000000-0000-0000-0000-000000000369", }, "displayName": { - "id": "00000000-0000-0000-0000-000000000358", + "id": "00000000-0000-0000-0000-000000000373", }, "handle": { - "id": "00000000-0000-0000-0000-000000000357", + "id": "00000000-0000-0000-0000-000000000372", }, "id": { - "id": "00000000-0000-0000-0000-000000000351", + "id": "00000000-0000-0000-0000-000000000366", }, "message": { - "id": "00000000-0000-0000-0000-000000000355", + "id": "00000000-0000-0000-0000-000000000370", }, "messageCampaign": { - "id": "00000000-0000-0000-0000-000000000361", + "id": "00000000-0000-0000-0000-000000000376", }, "person": { - "id": "00000000-0000-0000-0000-000000000359", + "id": "00000000-0000-0000-0000-000000000374", }, "position": { - "id": "00000000-0000-0000-0000-000000000364", + "id": "00000000-0000-0000-0000-000000000379", }, "role": { - "id": "00000000-0000-0000-0000-000000000356", + "id": "00000000-0000-0000-0000-000000000371", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000365", + "id": "00000000-0000-0000-0000-000000000380", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000353", + "id": "00000000-0000-0000-0000-000000000368", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000363", + "id": "00000000-0000-0000-0000-000000000378", }, "workspaceMember": { - "id": "00000000-0000-0000-0000-000000000360", + "id": "00000000-0000-0000-0000-000000000375", }, }, - "id": "00000000-0000-0000-0000-000000000384", + "id": "00000000-0000-0000-0000-000000000399", "views": { "allMessageParticipants": { - "id": "00000000-0000-0000-0000-000000000373", + "id": "00000000-0000-0000-0000-000000000388", "viewFieldGroups": {}, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000372", + "id": "00000000-0000-0000-0000-000000000387", }, "displayName": { - "id": "00000000-0000-0000-0000-000000000369", + "id": "00000000-0000-0000-0000-000000000384", }, "handle": { - "id": "00000000-0000-0000-0000-000000000368", + "id": "00000000-0000-0000-0000-000000000383", }, "message": { - "id": "00000000-0000-0000-0000-000000000366", + "id": "00000000-0000-0000-0000-000000000381", }, "person": { - "id": "00000000-0000-0000-0000-000000000370", + "id": "00000000-0000-0000-0000-000000000385", }, "role": { - "id": "00000000-0000-0000-0000-000000000367", + "id": "00000000-0000-0000-0000-000000000382", }, "workspaceMember": { - "id": "00000000-0000-0000-0000-000000000371", + "id": "00000000-0000-0000-0000-000000000386", }, }, "viewGroups": {}, }, "messageParticipantRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000383", + "id": "00000000-0000-0000-0000-000000000398", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000381", + "id": "00000000-0000-0000-0000-000000000396", }, "system": { - "id": "00000000-0000-0000-0000-000000000382", + "id": "00000000-0000-0000-0000-000000000397", }, }, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000379", + "id": "00000000-0000-0000-0000-000000000394", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000380", + "id": "00000000-0000-0000-0000-000000000395", }, "displayName": { - "id": "00000000-0000-0000-0000-000000000376", + "id": "00000000-0000-0000-0000-000000000391", }, "message": { - "id": "00000000-0000-0000-0000-000000000374", + "id": "00000000-0000-0000-0000-000000000389", }, "person": { - "id": "00000000-0000-0000-0000-000000000377", + "id": "00000000-0000-0000-0000-000000000392", }, "role": { - "id": "00000000-0000-0000-0000-000000000375", + "id": "00000000-0000-0000-0000-000000000390", }, "workspaceMember": { - "id": "00000000-0000-0000-0000-000000000378", + "id": "00000000-0000-0000-0000-000000000393", }, }, "viewGroups": {}, @@ -1380,56 +1430,56 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "messageThread": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000386", + "id": "00000000-0000-0000-0000-000000000401", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000391", + "id": "00000000-0000-0000-0000-000000000406", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000388", + "id": "00000000-0000-0000-0000-000000000403", }, "id": { - "id": "00000000-0000-0000-0000-000000000385", + "id": "00000000-0000-0000-0000-000000000400", }, "messageChannelMessageAssociations": { - "id": "00000000-0000-0000-0000-000000000390", + "id": "00000000-0000-0000-0000-000000000405", }, "messages": { - "id": "00000000-0000-0000-0000-000000000389", + "id": "00000000-0000-0000-0000-000000000404", }, "position": { - "id": "00000000-0000-0000-0000-000000000393", + "id": "00000000-0000-0000-0000-000000000408", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000394", + "id": "00000000-0000-0000-0000-000000000409", }, "subject": { - "id": "00000000-0000-0000-0000-000000000395", + "id": "00000000-0000-0000-0000-000000000410", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000387", + "id": "00000000-0000-0000-0000-000000000402", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000392", + "id": "00000000-0000-0000-0000-000000000407", }, }, - "id": "00000000-0000-0000-0000-000000000401", + "id": "00000000-0000-0000-0000-000000000416", "views": { "allMessageThreads": { - "id": "00000000-0000-0000-0000-000000000400", + "id": "00000000-0000-0000-0000-000000000415", "viewFieldGroups": {}, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000399", + "id": "00000000-0000-0000-0000-000000000414", }, "messages": { - "id": "00000000-0000-0000-0000-000000000397", + "id": "00000000-0000-0000-0000-000000000412", }, "subject": { - "id": "00000000-0000-0000-0000-000000000396", + "id": "00000000-0000-0000-0000-000000000411", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000398", + "id": "00000000-0000-0000-0000-000000000413", }, }, "viewGroups": {}, @@ -1439,103 +1489,103 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "note": { "fields": { "attachments": { - "id": "00000000-0000-0000-0000-000000000438", + "id": "00000000-0000-0000-0000-000000000453", }, "bodyV2": { - "id": "00000000-0000-0000-0000-000000000434", + "id": "00000000-0000-0000-0000-000000000449", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000429", + "id": "00000000-0000-0000-0000-000000000444", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000435", + "id": "00000000-0000-0000-0000-000000000450", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000431", + "id": "00000000-0000-0000-0000-000000000446", }, "id": { - "id": "00000000-0000-0000-0000-000000000428", + "id": "00000000-0000-0000-0000-000000000443", }, "noteTargets": { - "id": "00000000-0000-0000-0000-000000000437", + "id": "00000000-0000-0000-0000-000000000452", }, "position": { - "id": "00000000-0000-0000-0000-000000000432", + "id": "00000000-0000-0000-0000-000000000447", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000440", + "id": "00000000-0000-0000-0000-000000000455", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000439", + "id": "00000000-0000-0000-0000-000000000454", }, "title": { - "id": "00000000-0000-0000-0000-000000000433", + "id": "00000000-0000-0000-0000-000000000448", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000430", + "id": "00000000-0000-0000-0000-000000000445", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000436", + "id": "00000000-0000-0000-0000-000000000451", }, }, - "id": "00000000-0000-0000-0000-000000000458", + "id": "00000000-0000-0000-0000-000000000473", "views": { "allNotes": { - "id": "00000000-0000-0000-0000-000000000446", + "id": "00000000-0000-0000-0000-000000000461", "viewFieldGroups": {}, "viewFields": { "bodyV2": { - "id": "00000000-0000-0000-0000-000000000443", + "id": "00000000-0000-0000-0000-000000000458", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000445", + "id": "00000000-0000-0000-0000-000000000460", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000444", + "id": "00000000-0000-0000-0000-000000000459", }, "noteTargets": { - "id": "00000000-0000-0000-0000-000000000442", + "id": "00000000-0000-0000-0000-000000000457", }, "title": { - "id": "00000000-0000-0000-0000-000000000441", + "id": "00000000-0000-0000-0000-000000000456", }, }, "viewGroups": {}, }, "noteRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000457", + "id": "00000000-0000-0000-0000-000000000472", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000455", + "id": "00000000-0000-0000-0000-000000000470", }, "system": { - "id": "00000000-0000-0000-0000-000000000456", + "id": "00000000-0000-0000-0000-000000000471", }, }, "viewFields": { "attachments": { - "id": "00000000-0000-0000-0000-000000000453", + "id": "00000000-0000-0000-0000-000000000468", }, "bodyV2": { - "id": "00000000-0000-0000-0000-000000000450", + "id": "00000000-0000-0000-0000-000000000465", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000447", + "id": "00000000-0000-0000-0000-000000000462", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000448", + "id": "00000000-0000-0000-0000-000000000463", }, "noteTargets": { - "id": "00000000-0000-0000-0000-000000000449", + "id": "00000000-0000-0000-0000-000000000464", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000454", + "id": "00000000-0000-0000-0000-000000000469", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000451", + "id": "00000000-0000-0000-0000-000000000466", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000452", + "id": "00000000-0000-0000-0000-000000000467", }, }, "viewGroups": {}, @@ -1545,62 +1595,62 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "noteTarget": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000460", + "id": "00000000-0000-0000-0000-000000000475", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000467", + "id": "00000000-0000-0000-0000-000000000482", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000462", + "id": "00000000-0000-0000-0000-000000000477", }, "id": { - "id": "00000000-0000-0000-0000-000000000459", + "id": "00000000-0000-0000-0000-000000000474", }, "note": { - "id": "00000000-0000-0000-0000-000000000463", + "id": "00000000-0000-0000-0000-000000000478", }, "position": { - "id": "00000000-0000-0000-0000-000000000469", + "id": "00000000-0000-0000-0000-000000000484", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000470", + "id": "00000000-0000-0000-0000-000000000485", }, "targetCompany": { - "id": "00000000-0000-0000-0000-000000000465", + "id": "00000000-0000-0000-0000-000000000480", }, "targetOpportunity": { - "id": "00000000-0000-0000-0000-000000000466", + "id": "00000000-0000-0000-0000-000000000481", }, "targetPerson": { - "id": "00000000-0000-0000-0000-000000000464", + "id": "00000000-0000-0000-0000-000000000479", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000461", + "id": "00000000-0000-0000-0000-000000000476", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000468", + "id": "00000000-0000-0000-0000-000000000483", }, }, - "id": "00000000-0000-0000-0000-000000000477", + "id": "00000000-0000-0000-0000-000000000492", "views": { "allNoteTargets": { - "id": "00000000-0000-0000-0000-000000000476", + "id": "00000000-0000-0000-0000-000000000491", "viewFieldGroups": {}, "viewFields": { "id": { - "id": "00000000-0000-0000-0000-000000000471", + "id": "00000000-0000-0000-0000-000000000486", }, "note": { - "id": "00000000-0000-0000-0000-000000000472", + "id": "00000000-0000-0000-0000-000000000487", }, "targetCompany": { - "id": "00000000-0000-0000-0000-000000000474", + "id": "00000000-0000-0000-0000-000000000489", }, "targetOpportunity": { - "id": "00000000-0000-0000-0000-000000000475", + "id": "00000000-0000-0000-0000-000000000490", }, "targetPerson": { - "id": "00000000-0000-0000-0000-000000000473", + "id": "00000000-0000-0000-0000-000000000488", }, }, "viewGroups": {}, @@ -1610,186 +1660,186 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "opportunity": { "fields": { "amount": { - "id": "00000000-0000-0000-0000-000000000483", + "id": "00000000-0000-0000-0000-000000000498", }, "attachments": { - "id": "00000000-0000-0000-0000-000000000494", + "id": "00000000-0000-0000-0000-000000000509", }, "closeDate": { - "id": "00000000-0000-0000-0000-000000000484", + "id": "00000000-0000-0000-0000-000000000499", }, "company": { - "id": "00000000-0000-0000-0000-000000000490", + "id": "00000000-0000-0000-0000-000000000505", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000479", + "id": "00000000-0000-0000-0000-000000000494", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000487", + "id": "00000000-0000-0000-0000-000000000502", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000481", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000478", - }, - "name": { - "id": "00000000-0000-0000-0000-000000000482", - }, - "noteTargets": { - "id": "00000000-0000-0000-0000-000000000493", - }, - "owner": { - "id": "00000000-0000-0000-0000-000000000491", - }, - "pointOfContact": { - "id": "00000000-0000-0000-0000-000000000489", - }, - "position": { - "id": "00000000-0000-0000-0000-000000000486", - }, - "searchVector": { "id": "00000000-0000-0000-0000-000000000496", }, + "id": { + "id": "00000000-0000-0000-0000-000000000493", + }, + "name": { + "id": "00000000-0000-0000-0000-000000000497", + }, + "noteTargets": { + "id": "00000000-0000-0000-0000-000000000508", + }, + "owner": { + "id": "00000000-0000-0000-0000-000000000506", + }, + "pointOfContact": { + "id": "00000000-0000-0000-0000-000000000504", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000501", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000511", + }, "stage": { - "id": "00000000-0000-0000-0000-000000000485", + "id": "00000000-0000-0000-0000-000000000500", }, "taskTargets": { - "id": "00000000-0000-0000-0000-000000000492", + "id": "00000000-0000-0000-0000-000000000507", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000495", + "id": "00000000-0000-0000-0000-000000000510", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000480", + "id": "00000000-0000-0000-0000-000000000495", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000488", + "id": "00000000-0000-0000-0000-000000000503", }, }, - "id": "00000000-0000-0000-0000-000000000534", + "id": "00000000-0000-0000-0000-000000000549", "views": { "allOpportunities": { - "id": "00000000-0000-0000-0000-000000000503", + "id": "00000000-0000-0000-0000-000000000518", "viewFieldGroups": {}, "viewFields": { "amount": { - "id": "00000000-0000-0000-0000-000000000498", + "id": "00000000-0000-0000-0000-000000000513", }, "closeDate": { - "id": "00000000-0000-0000-0000-000000000500", + "id": "00000000-0000-0000-0000-000000000515", }, "company": { - "id": "00000000-0000-0000-0000-000000000501", + "id": "00000000-0000-0000-0000-000000000516", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000499", + "id": "00000000-0000-0000-0000-000000000514", }, "name": { - "id": "00000000-0000-0000-0000-000000000497", + "id": "00000000-0000-0000-0000-000000000512", }, "pointOfContact": { - "id": "00000000-0000-0000-0000-000000000502", + "id": "00000000-0000-0000-0000-000000000517", }, }, "viewGroups": {}, }, "byStage": { - "id": "00000000-0000-0000-0000-000000000515", + "id": "00000000-0000-0000-0000-000000000530", "viewFieldGroups": {}, "viewFields": { "amount": { - "id": "00000000-0000-0000-0000-000000000505", + "id": "00000000-0000-0000-0000-000000000520", }, "closeDate": { - "id": "00000000-0000-0000-0000-000000000507", + "id": "00000000-0000-0000-0000-000000000522", }, "company": { - "id": "00000000-0000-0000-0000-000000000508", + "id": "00000000-0000-0000-0000-000000000523", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000506", + "id": "00000000-0000-0000-0000-000000000521", }, "name": { - "id": "00000000-0000-0000-0000-000000000504", + "id": "00000000-0000-0000-0000-000000000519", }, "pointOfContact": { - "id": "00000000-0000-0000-0000-000000000509", + "id": "00000000-0000-0000-0000-000000000524", }, }, "viewGroups": { "customer": { - "id": "00000000-0000-0000-0000-000000000514", + "id": "00000000-0000-0000-0000-000000000529", }, "meeting": { - "id": "00000000-0000-0000-0000-000000000512", + "id": "00000000-0000-0000-0000-000000000527", }, "new": { - "id": "00000000-0000-0000-0000-000000000510", + "id": "00000000-0000-0000-0000-000000000525", }, "proposal": { - "id": "00000000-0000-0000-0000-000000000513", + "id": "00000000-0000-0000-0000-000000000528", }, "screening": { - "id": "00000000-0000-0000-0000-000000000511", + "id": "00000000-0000-0000-0000-000000000526", }, }, }, "opportunityRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000533", + "id": "00000000-0000-0000-0000-000000000548", "viewFieldGroups": { "deal": { - "id": "00000000-0000-0000-0000-000000000530", + "id": "00000000-0000-0000-0000-000000000545", }, "relations": { - "id": "00000000-0000-0000-0000-000000000531", + "id": "00000000-0000-0000-0000-000000000546", }, "system": { - "id": "00000000-0000-0000-0000-000000000532", + "id": "00000000-0000-0000-0000-000000000547", }, }, "viewFields": { "amount": { - "id": "00000000-0000-0000-0000-000000000516", + "id": "00000000-0000-0000-0000-000000000531", }, "attachments": { - "id": "00000000-0000-0000-0000-000000000528", + "id": "00000000-0000-0000-0000-000000000543", }, "closeDate": { - "id": "00000000-0000-0000-0000-000000000517", + "id": "00000000-0000-0000-0000-000000000532", }, "company": { - "id": "00000000-0000-0000-0000-000000000519", + "id": "00000000-0000-0000-0000-000000000534", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000522", + "id": "00000000-0000-0000-0000-000000000537", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000523", + "id": "00000000-0000-0000-0000-000000000538", }, "noteTargets": { - "id": "00000000-0000-0000-0000-000000000527", + "id": "00000000-0000-0000-0000-000000000542", }, "owner": { - "id": "00000000-0000-0000-0000-000000000521", + "id": "00000000-0000-0000-0000-000000000536", }, "pointOfContact": { - "id": "00000000-0000-0000-0000-000000000520", + "id": "00000000-0000-0000-0000-000000000535", }, "stage": { - "id": "00000000-0000-0000-0000-000000000518", + "id": "00000000-0000-0000-0000-000000000533", }, "taskTargets": { - "id": "00000000-0000-0000-0000-000000000526", + "id": "00000000-0000-0000-0000-000000000541", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000529", + "id": "00000000-0000-0000-0000-000000000544", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000524", + "id": "00000000-0000-0000-0000-000000000539", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000525", + "id": "00000000-0000-0000-0000-000000000540", }, }, "viewGroups": {}, @@ -1799,181 +1849,181 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "person": { "fields": { "attachments": { - "id": "00000000-0000-0000-0000-000000000553", + "id": "00000000-0000-0000-0000-000000000568", }, "avatarFile": { - "id": "00000000-0000-0000-0000-000000000545", + "id": "00000000-0000-0000-0000-000000000560", }, "avatarUrl": { - "id": "00000000-0000-0000-0000-000000000544", + "id": "00000000-0000-0000-0000-000000000559", }, "calendarEventParticipants": { - "id": "00000000-0000-0000-0000-000000000555", + "id": "00000000-0000-0000-0000-000000000570", }, "company": { - "id": "00000000-0000-0000-0000-000000000549", + "id": "00000000-0000-0000-0000-000000000564", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000536", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000547", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000538", - }, - "emails": { - "id": "00000000-0000-0000-0000-000000000540", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000535", - }, - "jobTitle": { - "id": "00000000-0000-0000-0000-000000000542", - }, - "linkedinLink": { - "id": "00000000-0000-0000-0000-000000000541", - }, - "listMemberships": { - "id": "00000000-0000-0000-0000-000000000557", - }, - "messageParticipants": { - "id": "00000000-0000-0000-0000-000000000554", - }, - "name": { - "id": "00000000-0000-0000-0000-000000000539", - }, - "noteTargets": { - "id": "00000000-0000-0000-0000-000000000552", - }, - "phones": { - "id": "00000000-0000-0000-0000-000000000543", - }, - "pointOfContactForOpportunities": { - "id": "00000000-0000-0000-0000-000000000550", - }, - "position": { - "id": "00000000-0000-0000-0000-000000000546", - }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000558", - }, - "taskTargets": { "id": "00000000-0000-0000-0000-000000000551", }, - "timelineActivities": { + "createdBy": { + "id": "00000000-0000-0000-0000-000000000562", + }, + "deletedAt": { + "id": "00000000-0000-0000-0000-000000000553", + }, + "emails": { + "id": "00000000-0000-0000-0000-000000000555", + }, + "id": { + "id": "00000000-0000-0000-0000-000000000550", + }, + "jobTitle": { + "id": "00000000-0000-0000-0000-000000000557", + }, + "linkedinLink": { "id": "00000000-0000-0000-0000-000000000556", }, + "listMemberships": { + "id": "00000000-0000-0000-0000-000000000572", + }, + "messageParticipants": { + "id": "00000000-0000-0000-0000-000000000569", + }, + "name": { + "id": "00000000-0000-0000-0000-000000000554", + }, + "noteTargets": { + "id": "00000000-0000-0000-0000-000000000567", + }, + "phones": { + "id": "00000000-0000-0000-0000-000000000558", + }, + "pointOfContactForOpportunities": { + "id": "00000000-0000-0000-0000-000000000565", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000561", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000573", + }, + "taskTargets": { + "id": "00000000-0000-0000-0000-000000000566", + }, + "timelineActivities": { + "id": "00000000-0000-0000-0000-000000000571", + }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000537", + "id": "00000000-0000-0000-0000-000000000552", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000548", + "id": "00000000-0000-0000-0000-000000000563", }, }, - "id": "00000000-0000-0000-0000-000000000591", + "id": "00000000-0000-0000-0000-000000000606", "views": { "allPeople": { - "id": "00000000-0000-0000-0000-000000000567", + "id": "00000000-0000-0000-0000-000000000582", "viewFieldGroups": {}, "viewFields": { "company": { - "id": "00000000-0000-0000-0000-000000000562", + "id": "00000000-0000-0000-0000-000000000577", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000564", + "id": "00000000-0000-0000-0000-000000000579", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000561", + "id": "00000000-0000-0000-0000-000000000576", }, "emails": { - "id": "00000000-0000-0000-0000-000000000560", + "id": "00000000-0000-0000-0000-000000000575", }, "jobTitle": { - "id": "00000000-0000-0000-0000-000000000565", + "id": "00000000-0000-0000-0000-000000000580", }, "linkedinLink": { - "id": "00000000-0000-0000-0000-000000000566", + "id": "00000000-0000-0000-0000-000000000581", }, "name": { - "id": "00000000-0000-0000-0000-000000000559", + "id": "00000000-0000-0000-0000-000000000574", }, "phones": { - "id": "00000000-0000-0000-0000-000000000563", + "id": "00000000-0000-0000-0000-000000000578", }, }, "viewGroups": {}, }, "personRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000590", + "id": "00000000-0000-0000-0000-000000000605", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000586", + "id": "00000000-0000-0000-0000-000000000601", }, "social": { - "id": "00000000-0000-0000-0000-000000000588", + "id": "00000000-0000-0000-0000-000000000603", }, "system": { - "id": "00000000-0000-0000-0000-000000000589", + "id": "00000000-0000-0000-0000-000000000604", }, "work": { - "id": "00000000-0000-0000-0000-000000000587", + "id": "00000000-0000-0000-0000-000000000602", }, }, "viewFields": { "attachments": { - "id": "00000000-0000-0000-0000-000000000582", + "id": "00000000-0000-0000-0000-000000000597", }, "avatarFile": { - "id": "00000000-0000-0000-0000-000000000578", + "id": "00000000-0000-0000-0000-000000000593", }, "avatarUrl": { - "id": "00000000-0000-0000-0000-000000000573", + "id": "00000000-0000-0000-0000-000000000588", }, "calendarEventParticipants": { - "id": "00000000-0000-0000-0000-000000000584", + "id": "00000000-0000-0000-0000-000000000599", }, "company": { - "id": "00000000-0000-0000-0000-000000000570", - }, - "createdAt": { - "id": "00000000-0000-0000-0000-000000000574", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000575", - }, - "emails": { - "id": "00000000-0000-0000-0000-000000000568", - }, - "jobTitle": { - "id": "00000000-0000-0000-0000-000000000571", - }, - "linkedinLink": { - "id": "00000000-0000-0000-0000-000000000572", - }, - "messageParticipants": { - "id": "00000000-0000-0000-0000-000000000583", - }, - "noteTargets": { - "id": "00000000-0000-0000-0000-000000000581", - }, - "phones": { - "id": "00000000-0000-0000-0000-000000000569", - }, - "pointOfContactForOpportunities": { - "id": "00000000-0000-0000-0000-000000000579", - }, - "taskTargets": { - "id": "00000000-0000-0000-0000-000000000580", - }, - "timelineActivities": { "id": "00000000-0000-0000-0000-000000000585", }, + "createdAt": { + "id": "00000000-0000-0000-0000-000000000589", + }, + "createdBy": { + "id": "00000000-0000-0000-0000-000000000590", + }, + "emails": { + "id": "00000000-0000-0000-0000-000000000583", + }, + "jobTitle": { + "id": "00000000-0000-0000-0000-000000000586", + }, + "linkedinLink": { + "id": "00000000-0000-0000-0000-000000000587", + }, + "messageParticipants": { + "id": "00000000-0000-0000-0000-000000000598", + }, + "noteTargets": { + "id": "00000000-0000-0000-0000-000000000596", + }, + "phones": { + "id": "00000000-0000-0000-0000-000000000584", + }, + "pointOfContactForOpportunities": { + "id": "00000000-0000-0000-0000-000000000594", + }, + "taskTargets": { + "id": "00000000-0000-0000-0000-000000000595", + }, + "timelineActivities": { + "id": "00000000-0000-0000-0000-000000000600", + }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000576", + "id": "00000000-0000-0000-0000-000000000591", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000577", + "id": "00000000-0000-0000-0000-000000000592", }, }, "viewGroups": {}, @@ -1983,203 +2033,203 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "task": { "fields": { "assignee": { - "id": "00000000-0000-0000-0000-000000000605", + "id": "00000000-0000-0000-0000-000000000620", }, "attachments": { - "id": "00000000-0000-0000-0000-000000000604", + "id": "00000000-0000-0000-0000-000000000619", }, "bodyV2": { - "id": "00000000-0000-0000-0000-000000000598", + "id": "00000000-0000-0000-0000-000000000613", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000593", + "id": "00000000-0000-0000-0000-000000000608", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000601", + "id": "00000000-0000-0000-0000-000000000616", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000595", + "id": "00000000-0000-0000-0000-000000000610", }, "dueAt": { - "id": "00000000-0000-0000-0000-000000000599", + "id": "00000000-0000-0000-0000-000000000614", }, "id": { - "id": "00000000-0000-0000-0000-000000000592", - }, - "position": { - "id": "00000000-0000-0000-0000-000000000596", - }, - "searchVector": { "id": "00000000-0000-0000-0000-000000000607", }, + "position": { + "id": "00000000-0000-0000-0000-000000000611", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000622", + }, "status": { - "id": "00000000-0000-0000-0000-000000000600", + "id": "00000000-0000-0000-0000-000000000615", }, "taskTargets": { - "id": "00000000-0000-0000-0000-000000000603", + "id": "00000000-0000-0000-0000-000000000618", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000606", + "id": "00000000-0000-0000-0000-000000000621", }, "title": { - "id": "00000000-0000-0000-0000-000000000597", + "id": "00000000-0000-0000-0000-000000000612", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000594", + "id": "00000000-0000-0000-0000-000000000609", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000602", + "id": "00000000-0000-0000-0000-000000000617", }, }, - "id": "00000000-0000-0000-0000-000000000652", + "id": "00000000-0000-0000-0000-000000000667", "views": { "allTasks": { - "id": "00000000-0000-0000-0000-000000000616", + "id": "00000000-0000-0000-0000-000000000631", "viewFieldGroups": {}, "viewFields": { "assignee": { - "id": "00000000-0000-0000-0000-000000000613", + "id": "00000000-0000-0000-0000-000000000628", }, "bodyV2": { - "id": "00000000-0000-0000-0000-000000000614", + "id": "00000000-0000-0000-0000-000000000629", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000615", + "id": "00000000-0000-0000-0000-000000000630", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000611", + "id": "00000000-0000-0000-0000-000000000626", }, "dueAt": { - "id": "00000000-0000-0000-0000-000000000612", + "id": "00000000-0000-0000-0000-000000000627", }, "status": { - "id": "00000000-0000-0000-0000-000000000609", + "id": "00000000-0000-0000-0000-000000000624", }, "taskTargets": { - "id": "00000000-0000-0000-0000-000000000610", + "id": "00000000-0000-0000-0000-000000000625", }, "title": { - "id": "00000000-0000-0000-0000-000000000608", + "id": "00000000-0000-0000-0000-000000000623", }, }, "viewGroups": {}, }, "assignedToMe": { - "id": "00000000-0000-0000-0000-000000000628", + "id": "00000000-0000-0000-0000-000000000643", "viewFieldGroups": {}, "viewFields": { "assignee": { - "id": "00000000-0000-0000-0000-000000000621", + "id": "00000000-0000-0000-0000-000000000636", }, "bodyV2": { - "id": "00000000-0000-0000-0000-000000000622", + "id": "00000000-0000-0000-0000-000000000637", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000623", + "id": "00000000-0000-0000-0000-000000000638", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000619", + "id": "00000000-0000-0000-0000-000000000634", }, "dueAt": { - "id": "00000000-0000-0000-0000-000000000620", + "id": "00000000-0000-0000-0000-000000000635", }, "taskTargets": { - "id": "00000000-0000-0000-0000-000000000618", + "id": "00000000-0000-0000-0000-000000000633", }, "title": { - "id": "00000000-0000-0000-0000-000000000617", + "id": "00000000-0000-0000-0000-000000000632", }, }, "viewGroups": { "done": { - "id": "00000000-0000-0000-0000-000000000626", + "id": "00000000-0000-0000-0000-000000000641", }, "empty": { - "id": "00000000-0000-0000-0000-000000000627", + "id": "00000000-0000-0000-0000-000000000642", }, "inProgress": { - "id": "00000000-0000-0000-0000-000000000625", + "id": "00000000-0000-0000-0000-000000000640", }, "todo": { - "id": "00000000-0000-0000-0000-000000000624", + "id": "00000000-0000-0000-0000-000000000639", }, }, }, "byStatus": { - "id": "00000000-0000-0000-0000-000000000637", + "id": "00000000-0000-0000-0000-000000000652", "viewFieldGroups": {}, "viewFields": { "assignee": { - "id": "00000000-0000-0000-0000-000000000632", + "id": "00000000-0000-0000-0000-000000000647", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000633", + "id": "00000000-0000-0000-0000-000000000648", }, "dueAt": { - "id": "00000000-0000-0000-0000-000000000631", + "id": "00000000-0000-0000-0000-000000000646", }, "status": { - "id": "00000000-0000-0000-0000-000000000630", + "id": "00000000-0000-0000-0000-000000000645", }, "title": { - "id": "00000000-0000-0000-0000-000000000629", + "id": "00000000-0000-0000-0000-000000000644", }, }, "viewGroups": { "done": { - "id": "00000000-0000-0000-0000-000000000636", + "id": "00000000-0000-0000-0000-000000000651", }, "inProgress": { - "id": "00000000-0000-0000-0000-000000000635", + "id": "00000000-0000-0000-0000-000000000650", }, "todo": { - "id": "00000000-0000-0000-0000-000000000634", + "id": "00000000-0000-0000-0000-000000000649", }, }, }, "taskRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000651", + "id": "00000000-0000-0000-0000-000000000666", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000649", + "id": "00000000-0000-0000-0000-000000000664", }, "system": { - "id": "00000000-0000-0000-0000-000000000650", + "id": "00000000-0000-0000-0000-000000000665", }, }, "viewFields": { "assignee": { - "id": "00000000-0000-0000-0000-000000000640", + "id": "00000000-0000-0000-0000-000000000655", }, "attachments": { - "id": "00000000-0000-0000-0000-000000000647", + "id": "00000000-0000-0000-0000-000000000662", }, "bodyV2": { - "id": "00000000-0000-0000-0000-000000000644", + "id": "00000000-0000-0000-0000-000000000659", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000641", + "id": "00000000-0000-0000-0000-000000000656", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000642", + "id": "00000000-0000-0000-0000-000000000657", }, "dueAt": { - "id": "00000000-0000-0000-0000-000000000638", + "id": "00000000-0000-0000-0000-000000000653", }, "status": { - "id": "00000000-0000-0000-0000-000000000639", + "id": "00000000-0000-0000-0000-000000000654", }, "taskTargets": { - "id": "00000000-0000-0000-0000-000000000643", + "id": "00000000-0000-0000-0000-000000000658", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000648", + "id": "00000000-0000-0000-0000-000000000663", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000645", + "id": "00000000-0000-0000-0000-000000000660", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000646", + "id": "00000000-0000-0000-0000-000000000661", }, }, "viewGroups": {}, @@ -2189,62 +2239,62 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "taskTarget": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000654", + "id": "00000000-0000-0000-0000-000000000669", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000661", + "id": "00000000-0000-0000-0000-000000000676", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000656", + "id": "00000000-0000-0000-0000-000000000671", }, "id": { - "id": "00000000-0000-0000-0000-000000000653", + "id": "00000000-0000-0000-0000-000000000668", }, "position": { - "id": "00000000-0000-0000-0000-000000000663", + "id": "00000000-0000-0000-0000-000000000678", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000664", + "id": "00000000-0000-0000-0000-000000000679", }, "targetCompany": { - "id": "00000000-0000-0000-0000-000000000659", + "id": "00000000-0000-0000-0000-000000000674", }, "targetOpportunity": { - "id": "00000000-0000-0000-0000-000000000660", + "id": "00000000-0000-0000-0000-000000000675", }, "targetPerson": { - "id": "00000000-0000-0000-0000-000000000658", + "id": "00000000-0000-0000-0000-000000000673", }, "task": { - "id": "00000000-0000-0000-0000-000000000657", + "id": "00000000-0000-0000-0000-000000000672", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000655", + "id": "00000000-0000-0000-0000-000000000670", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000662", + "id": "00000000-0000-0000-0000-000000000677", }, }, - "id": "00000000-0000-0000-0000-000000000671", + "id": "00000000-0000-0000-0000-000000000686", "views": { "allTaskTargets": { - "id": "00000000-0000-0000-0000-000000000670", + "id": "00000000-0000-0000-0000-000000000685", "viewFieldGroups": {}, "viewFields": { "id": { - "id": "00000000-0000-0000-0000-000000000665", + "id": "00000000-0000-0000-0000-000000000680", }, "targetCompany": { - "id": "00000000-0000-0000-0000-000000000668", + "id": "00000000-0000-0000-0000-000000000683", }, "targetOpportunity": { - "id": "00000000-0000-0000-0000-000000000669", + "id": "00000000-0000-0000-0000-000000000684", }, "targetPerson": { - "id": "00000000-0000-0000-0000-000000000667", + "id": "00000000-0000-0000-0000-000000000682", }, "task": { - "id": "00000000-0000-0000-0000-000000000666", + "id": "00000000-0000-0000-0000-000000000681", }, }, "viewGroups": {}, @@ -2254,131 +2304,131 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "timelineActivity": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000673", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000694", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000675", - }, - "happensAt": { - "id": "00000000-0000-0000-0000-000000000676", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000672", - }, - "linkedObjectMetadataId": { - "id": "00000000-0000-0000-0000-000000000693", - }, - "linkedRecordCachedName": { - "id": "00000000-0000-0000-0000-000000000691", - }, - "linkedRecordId": { - "id": "00000000-0000-0000-0000-000000000692", - }, - "name": { - "id": "00000000-0000-0000-0000-000000000677", - }, - "position": { - "id": "00000000-0000-0000-0000-000000000696", - }, - "properties": { - "id": "00000000-0000-0000-0000-000000000678", - }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000697", - }, - "targetCompany": { - "id": "00000000-0000-0000-0000-000000000681", - }, - "targetDashboard": { "id": "00000000-0000-0000-0000-000000000688", }, - "targetMessageCampaign": { + "createdBy": { + "id": "00000000-0000-0000-0000-000000000709", + }, + "deletedAt": { "id": "00000000-0000-0000-0000-000000000690", }, - "targetMessageList": { - "id": "00000000-0000-0000-0000-000000000689", + "happensAt": { + "id": "00000000-0000-0000-0000-000000000691", }, - "targetNote": { - "id": "00000000-0000-0000-0000-000000000684", - }, - "targetOpportunity": { - "id": "00000000-0000-0000-0000-000000000682", - }, - "targetPerson": { - "id": "00000000-0000-0000-0000-000000000680", - }, - "targetTask": { - "id": "00000000-0000-0000-0000-000000000683", - }, - "targetWorkflow": { - "id": "00000000-0000-0000-0000-000000000685", - }, - "targetWorkflowRun": { + "id": { "id": "00000000-0000-0000-0000-000000000687", }, - "targetWorkflowVersion": { - "id": "00000000-0000-0000-0000-000000000686", + "linkedObjectMetadataId": { + "id": "00000000-0000-0000-0000-000000000708", }, - "updatedAt": { - "id": "00000000-0000-0000-0000-000000000674", + "linkedRecordCachedName": { + "id": "00000000-0000-0000-0000-000000000706", }, - "updatedBy": { + "linkedRecordId": { + "id": "00000000-0000-0000-0000-000000000707", + }, + "name": { + "id": "00000000-0000-0000-0000-000000000692", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000711", + }, + "properties": { + "id": "00000000-0000-0000-0000-000000000693", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000712", + }, + "targetCompany": { + "id": "00000000-0000-0000-0000-000000000696", + }, + "targetDashboard": { + "id": "00000000-0000-0000-0000-000000000703", + }, + "targetMessageCampaign": { + "id": "00000000-0000-0000-0000-000000000705", + }, + "targetMessageList": { + "id": "00000000-0000-0000-0000-000000000704", + }, + "targetNote": { + "id": "00000000-0000-0000-0000-000000000699", + }, + "targetOpportunity": { + "id": "00000000-0000-0000-0000-000000000697", + }, + "targetPerson": { "id": "00000000-0000-0000-0000-000000000695", }, + "targetTask": { + "id": "00000000-0000-0000-0000-000000000698", + }, + "targetWorkflow": { + "id": "00000000-0000-0000-0000-000000000700", + }, + "targetWorkflowRun": { + "id": "00000000-0000-0000-0000-000000000702", + }, + "targetWorkflowVersion": { + "id": "00000000-0000-0000-0000-000000000701", + }, + "updatedAt": { + "id": "00000000-0000-0000-0000-000000000689", + }, + "updatedBy": { + "id": "00000000-0000-0000-0000-000000000710", + }, "workspaceMember": { - "id": "00000000-0000-0000-0000-000000000679", + "id": "00000000-0000-0000-0000-000000000694", }, }, - "id": "00000000-0000-0000-0000-000000000713", + "id": "00000000-0000-0000-0000-000000000728", "views": { "allTimelineActivities": { - "id": "00000000-0000-0000-0000-000000000712", + "id": "00000000-0000-0000-0000-000000000727", "viewFieldGroups": {}, "viewFields": { "happensAt": { - "id": "00000000-0000-0000-0000-000000000699", + "id": "00000000-0000-0000-0000-000000000714", }, "linkedRecordCachedName": { - "id": "00000000-0000-0000-0000-000000000702", + "id": "00000000-0000-0000-0000-000000000717", }, "name": { - "id": "00000000-0000-0000-0000-000000000698", + "id": "00000000-0000-0000-0000-000000000713", }, "properties": { - "id": "00000000-0000-0000-0000-000000000700", + "id": "00000000-0000-0000-0000-000000000715", }, "targetCompany": { - "id": "00000000-0000-0000-0000-000000000704", + "id": "00000000-0000-0000-0000-000000000719", }, "targetDashboard": { - "id": "00000000-0000-0000-0000-000000000711", + "id": "00000000-0000-0000-0000-000000000726", }, "targetNote": { - "id": "00000000-0000-0000-0000-000000000707", + "id": "00000000-0000-0000-0000-000000000722", }, "targetOpportunity": { - "id": "00000000-0000-0000-0000-000000000705", + "id": "00000000-0000-0000-0000-000000000720", }, "targetPerson": { - "id": "00000000-0000-0000-0000-000000000703", + "id": "00000000-0000-0000-0000-000000000718", }, "targetTask": { - "id": "00000000-0000-0000-0000-000000000706", + "id": "00000000-0000-0000-0000-000000000721", }, "targetWorkflow": { - "id": "00000000-0000-0000-0000-000000000708", + "id": "00000000-0000-0000-0000-000000000723", }, "targetWorkflowRun": { - "id": "00000000-0000-0000-0000-000000000710", + "id": "00000000-0000-0000-0000-000000000725", }, "targetWorkflowVersion": { - "id": "00000000-0000-0000-0000-000000000709", + "id": "00000000-0000-0000-0000-000000000724", }, "workspaceMember": { - "id": "00000000-0000-0000-0000-000000000701", + "id": "00000000-0000-0000-0000-000000000716", }, }, "viewGroups": {}, @@ -2388,77 +2438,77 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "workflow": { "fields": { "attachments": { - "id": "00000000-0000-0000-0000-000000000726", + "id": "00000000-0000-0000-0000-000000000741", }, "automatedTriggers": { - "id": "00000000-0000-0000-0000-000000000724", + "id": "00000000-0000-0000-0000-000000000739", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000715", + "id": "00000000-0000-0000-0000-000000000730", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000727", + "id": "00000000-0000-0000-0000-000000000742", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000717", + "id": "00000000-0000-0000-0000-000000000732", }, "id": { - "id": "00000000-0000-0000-0000-000000000714", - }, - "lastPublishedVersionId": { - "id": "00000000-0000-0000-0000-000000000719", - }, - "name": { - "id": "00000000-0000-0000-0000-000000000718", - }, - "position": { - "id": "00000000-0000-0000-0000-000000000721", - }, - "runs": { - "id": "00000000-0000-0000-0000-000000000723", - }, - "searchVector": { "id": "00000000-0000-0000-0000-000000000729", }, + "lastPublishedVersionId": { + "id": "00000000-0000-0000-0000-000000000734", + }, + "name": { + "id": "00000000-0000-0000-0000-000000000733", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000736", + }, + "runs": { + "id": "00000000-0000-0000-0000-000000000738", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000744", + }, "statuses": { - "id": "00000000-0000-0000-0000-000000000720", + "id": "00000000-0000-0000-0000-000000000735", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000725", + "id": "00000000-0000-0000-0000-000000000740", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000716", + "id": "00000000-0000-0000-0000-000000000731", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000728", + "id": "00000000-0000-0000-0000-000000000743", }, "versions": { - "id": "00000000-0000-0000-0000-000000000722", + "id": "00000000-0000-0000-0000-000000000737", }, }, - "id": "00000000-0000-0000-0000-000000000737", + "id": "00000000-0000-0000-0000-000000000752", "views": { "allWorkflows": { - "id": "00000000-0000-0000-0000-000000000736", + "id": "00000000-0000-0000-0000-000000000751", "viewFieldGroups": {}, "viewFields": { "createdBy": { - "id": "00000000-0000-0000-0000-000000000733", + "id": "00000000-0000-0000-0000-000000000748", }, "name": { - "id": "00000000-0000-0000-0000-000000000730", + "id": "00000000-0000-0000-0000-000000000745", }, "runs": { - "id": "00000000-0000-0000-0000-000000000735", + "id": "00000000-0000-0000-0000-000000000750", }, "statuses": { - "id": "00000000-0000-0000-0000-000000000731", + "id": "00000000-0000-0000-0000-000000000746", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000732", + "id": "00000000-0000-0000-0000-000000000747", }, "versions": { - "id": "00000000-0000-0000-0000-000000000734", + "id": "00000000-0000-0000-0000-000000000749", }, }, "viewGroups": {}, @@ -2468,79 +2518,79 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "workflowAutomatedTrigger": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000739", + "id": "00000000-0000-0000-0000-000000000754", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000745", + "id": "00000000-0000-0000-0000-000000000760", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000741", + "id": "00000000-0000-0000-0000-000000000756", }, "id": { - "id": "00000000-0000-0000-0000-000000000738", + "id": "00000000-0000-0000-0000-000000000753", }, "position": { - "id": "00000000-0000-0000-0000-000000000747", + "id": "00000000-0000-0000-0000-000000000762", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000748", + "id": "00000000-0000-0000-0000-000000000763", }, "settings": { - "id": "00000000-0000-0000-0000-000000000743", + "id": "00000000-0000-0000-0000-000000000758", }, "type": { - "id": "00000000-0000-0000-0000-000000000742", + "id": "00000000-0000-0000-0000-000000000757", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000740", + "id": "00000000-0000-0000-0000-000000000755", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000746", + "id": "00000000-0000-0000-0000-000000000761", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000744", + "id": "00000000-0000-0000-0000-000000000759", }, }, - "id": "00000000-0000-0000-0000-000000000760", + "id": "00000000-0000-0000-0000-000000000775", "views": { "allWorkflowAutomatedTriggers": { - "id": "00000000-0000-0000-0000-000000000752", + "id": "00000000-0000-0000-0000-000000000767", "viewFieldGroups": {}, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000751", + "id": "00000000-0000-0000-0000-000000000766", }, "type": { - "id": "00000000-0000-0000-0000-000000000749", + "id": "00000000-0000-0000-0000-000000000764", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000750", + "id": "00000000-0000-0000-0000-000000000765", }, }, "viewGroups": {}, }, "workflowAutomatedTriggerRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000759", + "id": "00000000-0000-0000-0000-000000000774", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000757", + "id": "00000000-0000-0000-0000-000000000772", }, "system": { - "id": "00000000-0000-0000-0000-000000000758", + "id": "00000000-0000-0000-0000-000000000773", }, }, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000755", + "id": "00000000-0000-0000-0000-000000000770", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000756", + "id": "00000000-0000-0000-0000-000000000771", }, "type": { - "id": "00000000-0000-0000-0000-000000000753", + "id": "00000000-0000-0000-0000-000000000768", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000754", + "id": "00000000-0000-0000-0000-000000000769", }, }, "viewGroups": {}, @@ -2550,133 +2600,133 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "workflowRun": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000762", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000773", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000764", - }, - "endedAt": { - "id": "00000000-0000-0000-0000-000000000770", - }, - "enqueuedAt": { - "id": "00000000-0000-0000-0000-000000000768", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000761", - }, - "name": { - "id": "00000000-0000-0000-0000-000000000765", - }, - "position": { - "id": "00000000-0000-0000-0000-000000000772", - }, - "searchVector": { - "id": "00000000-0000-0000-0000-000000000778", - }, - "startedAt": { - "id": "00000000-0000-0000-0000-000000000769", - }, - "state": { - "id": "00000000-0000-0000-0000-000000000775", - }, - "status": { - "id": "00000000-0000-0000-0000-000000000771", - }, - "stepLogs": { - "id": "00000000-0000-0000-0000-000000000776", - }, - "timelineActivities": { "id": "00000000-0000-0000-0000-000000000777", }, + "createdBy": { + "id": "00000000-0000-0000-0000-000000000788", + }, + "deletedAt": { + "id": "00000000-0000-0000-0000-000000000779", + }, + "endedAt": { + "id": "00000000-0000-0000-0000-000000000785", + }, + "enqueuedAt": { + "id": "00000000-0000-0000-0000-000000000783", + }, + "id": { + "id": "00000000-0000-0000-0000-000000000776", + }, + "name": { + "id": "00000000-0000-0000-0000-000000000780", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000787", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000793", + }, + "startedAt": { + "id": "00000000-0000-0000-0000-000000000784", + }, + "state": { + "id": "00000000-0000-0000-0000-000000000790", + }, + "status": { + "id": "00000000-0000-0000-0000-000000000786", + }, + "stepLogs": { + "id": "00000000-0000-0000-0000-000000000791", + }, + "timelineActivities": { + "id": "00000000-0000-0000-0000-000000000792", + }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000763", + "id": "00000000-0000-0000-0000-000000000778", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000774", + "id": "00000000-0000-0000-0000-000000000789", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000767", + "id": "00000000-0000-0000-0000-000000000782", }, "workflowVersion": { - "id": "00000000-0000-0000-0000-000000000766", + "id": "00000000-0000-0000-0000-000000000781", }, }, - "id": "00000000-0000-0000-0000-000000000801", + "id": "00000000-0000-0000-0000-000000000816", "views": { "allWorkflowRuns": { - "id": "00000000-0000-0000-0000-000000000785", + "id": "00000000-0000-0000-0000-000000000800", "viewFieldGroups": {}, "viewFields": { "createdBy": { - "id": "00000000-0000-0000-0000-000000000783", + "id": "00000000-0000-0000-0000-000000000798", }, "name": { - "id": "00000000-0000-0000-0000-000000000779", + "id": "00000000-0000-0000-0000-000000000794", }, "startedAt": { - "id": "00000000-0000-0000-0000-000000000782", + "id": "00000000-0000-0000-0000-000000000797", }, "status": { - "id": "00000000-0000-0000-0000-000000000781", + "id": "00000000-0000-0000-0000-000000000796", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000780", + "id": "00000000-0000-0000-0000-000000000795", }, "workflowVersion": { - "id": "00000000-0000-0000-0000-000000000784", + "id": "00000000-0000-0000-0000-000000000799", }, }, "viewGroups": {}, }, "workflowRunRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000800", + "id": "00000000-0000-0000-0000-000000000815", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000798", + "id": "00000000-0000-0000-0000-000000000813", }, "system": { - "id": "00000000-0000-0000-0000-000000000799", + "id": "00000000-0000-0000-0000-000000000814", }, }, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000791", + "id": "00000000-0000-0000-0000-000000000806", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000792", + "id": "00000000-0000-0000-0000-000000000807", }, "endedAt": { - "id": "00000000-0000-0000-0000-000000000790", + "id": "00000000-0000-0000-0000-000000000805", }, "enqueuedAt": { - "id": "00000000-0000-0000-0000-000000000793", + "id": "00000000-0000-0000-0000-000000000808", }, "startedAt": { - "id": "00000000-0000-0000-0000-000000000789", + "id": "00000000-0000-0000-0000-000000000804", }, "state": { - "id": "00000000-0000-0000-0000-000000000794", + "id": "00000000-0000-0000-0000-000000000809", }, "status": { - "id": "00000000-0000-0000-0000-000000000786", + "id": "00000000-0000-0000-0000-000000000801", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000797", + "id": "00000000-0000-0000-0000-000000000812", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000795", + "id": "00000000-0000-0000-0000-000000000810", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000796", + "id": "00000000-0000-0000-0000-000000000811", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000787", + "id": "00000000-0000-0000-0000-000000000802", }, "workflowVersion": { - "id": "00000000-0000-0000-0000-000000000788", + "id": "00000000-0000-0000-0000-000000000803", }, }, "viewGroups": {}, @@ -2686,115 +2736,115 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "workflowVersion": { "fields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000803", + "id": "00000000-0000-0000-0000-000000000818", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000815", + "id": "00000000-0000-0000-0000-000000000830", }, "deletedAt": { - "id": "00000000-0000-0000-0000-000000000805", + "id": "00000000-0000-0000-0000-000000000820", }, "id": { - "id": "00000000-0000-0000-0000-000000000802", + "id": "00000000-0000-0000-0000-000000000817", }, "name": { - "id": "00000000-0000-0000-0000-000000000806", + "id": "00000000-0000-0000-0000-000000000821", }, "position": { - "id": "00000000-0000-0000-0000-000000000810", + "id": "00000000-0000-0000-0000-000000000825", }, "runs": { - "id": "00000000-0000-0000-0000-000000000811", + "id": "00000000-0000-0000-0000-000000000826", }, "searchVector": { - "id": "00000000-0000-0000-0000-000000000814", + "id": "00000000-0000-0000-0000-000000000829", }, "status": { - "id": "00000000-0000-0000-0000-000000000809", + "id": "00000000-0000-0000-0000-000000000824", }, "steps": { - "id": "00000000-0000-0000-0000-000000000812", + "id": "00000000-0000-0000-0000-000000000827", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000813", + "id": "00000000-0000-0000-0000-000000000828", }, "trigger": { - "id": "00000000-0000-0000-0000-000000000808", + "id": "00000000-0000-0000-0000-000000000823", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000804", + "id": "00000000-0000-0000-0000-000000000819", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000816", + "id": "00000000-0000-0000-0000-000000000831", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000807", + "id": "00000000-0000-0000-0000-000000000822", }, }, - "id": "00000000-0000-0000-0000-000000000836", + "id": "00000000-0000-0000-0000-000000000851", "views": { "allWorkflowVersions": { - "id": "00000000-0000-0000-0000-000000000822", + "id": "00000000-0000-0000-0000-000000000837", "viewFieldGroups": {}, "viewFields": { "name": { - "id": "00000000-0000-0000-0000-000000000817", + "id": "00000000-0000-0000-0000-000000000832", }, "runs": { - "id": "00000000-0000-0000-0000-000000000821", + "id": "00000000-0000-0000-0000-000000000836", }, "status": { - "id": "00000000-0000-0000-0000-000000000819", + "id": "00000000-0000-0000-0000-000000000834", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000820", + "id": "00000000-0000-0000-0000-000000000835", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000818", + "id": "00000000-0000-0000-0000-000000000833", }, }, "viewGroups": {}, }, "workflowVersionRecordPageFields": { - "id": "00000000-0000-0000-0000-000000000835", + "id": "00000000-0000-0000-0000-000000000850", "viewFieldGroups": { "general": { - "id": "00000000-0000-0000-0000-000000000833", + "id": "00000000-0000-0000-0000-000000000848", }, "system": { - "id": "00000000-0000-0000-0000-000000000834", + "id": "00000000-0000-0000-0000-000000000849", }, }, "viewFields": { "createdAt": { - "id": "00000000-0000-0000-0000-000000000826", + "id": "00000000-0000-0000-0000-000000000841", }, "createdBy": { - "id": "00000000-0000-0000-0000-000000000828", + "id": "00000000-0000-0000-0000-000000000843", }, "runs": { - "id": "00000000-0000-0000-0000-000000000831", + "id": "00000000-0000-0000-0000-000000000846", }, "status": { - "id": "00000000-0000-0000-0000-000000000823", + "id": "00000000-0000-0000-0000-000000000838", }, "steps": { - "id": "00000000-0000-0000-0000-000000000827", + "id": "00000000-0000-0000-0000-000000000842", }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000832", + "id": "00000000-0000-0000-0000-000000000847", }, "trigger": { - "id": "00000000-0000-0000-0000-000000000825", + "id": "00000000-0000-0000-0000-000000000840", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000829", + "id": "00000000-0000-0000-0000-000000000844", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000830", + "id": "00000000-0000-0000-0000-000000000845", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000824", + "id": "00000000-0000-0000-0000-000000000839", }, }, "viewGroups": {}, @@ -2804,122 +2854,122 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object "workspaceMember": { "fields": { "accountOwnerForCompanies": { - "id": "00000000-0000-0000-0000-000000000850", + "id": "00000000-0000-0000-0000-000000000865", }, "assignedTasks": { - "id": "00000000-0000-0000-0000-000000000848", + "id": "00000000-0000-0000-0000-000000000863", }, "avatarUrl": { - "id": "00000000-0000-0000-0000-000000000845", - }, - "blocklist": { - "id": "00000000-0000-0000-0000-000000000852", - }, - "calendarEventParticipants": { - "id": "00000000-0000-0000-0000-000000000853", - }, - "calendarStartDay": { - "id": "00000000-0000-0000-0000-000000000859", - }, - "colorScheme": { - "id": "00000000-0000-0000-0000-000000000843", - }, - "createdAt": { - "id": "00000000-0000-0000-0000-000000000838", - }, - "createdBy": { - "id": "00000000-0000-0000-0000-000000000861", - }, - "dateFormat": { - "id": "00000000-0000-0000-0000-000000000856", - }, - "deletedAt": { - "id": "00000000-0000-0000-0000-000000000840", - }, - "id": { - "id": "00000000-0000-0000-0000-000000000837", - }, - "locale": { - "id": "00000000-0000-0000-0000-000000000844", - }, - "messageParticipants": { - "id": "00000000-0000-0000-0000-000000000851", - }, - "name": { - "id": "00000000-0000-0000-0000-000000000842", - }, - "numberFormat": { "id": "00000000-0000-0000-0000-000000000860", }, - "ownedOpportunities": { - "id": "00000000-0000-0000-0000-000000000849", + "blocklist": { + "id": "00000000-0000-0000-0000-000000000867", }, - "position": { - "id": "00000000-0000-0000-0000-000000000841", + "calendarEventParticipants": { + "id": "00000000-0000-0000-0000-000000000868", }, - "searchVector": { + "calendarStartDay": { + "id": "00000000-0000-0000-0000-000000000874", + }, + "colorScheme": { "id": "00000000-0000-0000-0000-000000000858", }, - "timeFormat": { - "id": "00000000-0000-0000-0000-000000000857", + "createdAt": { + "id": "00000000-0000-0000-0000-000000000853", }, - "timeZone": { + "createdBy": { + "id": "00000000-0000-0000-0000-000000000876", + }, + "dateFormat": { + "id": "00000000-0000-0000-0000-000000000871", + }, + "deletedAt": { "id": "00000000-0000-0000-0000-000000000855", }, + "id": { + "id": "00000000-0000-0000-0000-000000000852", + }, + "locale": { + "id": "00000000-0000-0000-0000-000000000859", + }, + "messageParticipants": { + "id": "00000000-0000-0000-0000-000000000866", + }, + "name": { + "id": "00000000-0000-0000-0000-000000000857", + }, + "numberFormat": { + "id": "00000000-0000-0000-0000-000000000875", + }, + "ownedOpportunities": { + "id": "00000000-0000-0000-0000-000000000864", + }, + "position": { + "id": "00000000-0000-0000-0000-000000000856", + }, + "searchVector": { + "id": "00000000-0000-0000-0000-000000000873", + }, + "timeFormat": { + "id": "00000000-0000-0000-0000-000000000872", + }, + "timeZone": { + "id": "00000000-0000-0000-0000-000000000870", + }, "timelineActivities": { - "id": "00000000-0000-0000-0000-000000000854", + "id": "00000000-0000-0000-0000-000000000869", }, "updatedAt": { - "id": "00000000-0000-0000-0000-000000000839", + "id": "00000000-0000-0000-0000-000000000854", }, "updatedBy": { - "id": "00000000-0000-0000-0000-000000000862", + "id": "00000000-0000-0000-0000-000000000877", }, "userEmail": { - "id": "00000000-0000-0000-0000-000000000846", + "id": "00000000-0000-0000-0000-000000000861", }, "userId": { - "id": "00000000-0000-0000-0000-000000000847", + "id": "00000000-0000-0000-0000-000000000862", }, }, - "id": "00000000-0000-0000-0000-000000000875", + "id": "00000000-0000-0000-0000-000000000890", "views": { "allWorkspaceMembers": { - "id": "00000000-0000-0000-0000-000000000874", + "id": "00000000-0000-0000-0000-000000000889", "viewFieldGroups": {}, "viewFields": { "assignedTasks": { - "id": "00000000-0000-0000-0000-000000000873", + "id": "00000000-0000-0000-0000-000000000888", }, "avatarUrl": { - "id": "00000000-0000-0000-0000-000000000865", + "id": "00000000-0000-0000-0000-000000000880", }, "colorScheme": { - "id": "00000000-0000-0000-0000-000000000866", + "id": "00000000-0000-0000-0000-000000000881", }, "createdAt": { - "id": "00000000-0000-0000-0000-000000000871", + "id": "00000000-0000-0000-0000-000000000886", }, "dateFormat": { - "id": "00000000-0000-0000-0000-000000000869", + "id": "00000000-0000-0000-0000-000000000884", }, "locale": { - "id": "00000000-0000-0000-0000-000000000867", + "id": "00000000-0000-0000-0000-000000000882", }, "name": { - "id": "00000000-0000-0000-0000-000000000863", + "id": "00000000-0000-0000-0000-000000000878", }, "ownedOpportunities": { - "id": "00000000-0000-0000-0000-000000000872", + "id": "00000000-0000-0000-0000-000000000887", }, "timeFormat": { - "id": "00000000-0000-0000-0000-000000000870", + "id": "00000000-0000-0000-0000-000000000885", }, "timeZone": { - "id": "00000000-0000-0000-0000-000000000868", + "id": "00000000-0000-0000-0000-000000000883", }, "userEmail": { - "id": "00000000-0000-0000-0000-000000000864", + "id": "00000000-0000-0000-0000-000000000879", }, }, "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 2164f4f318..ae59ae8792 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 @@ -45,102 +45,62 @@ exports[`getStandardPageLayoutMetadataRelatedEntityIds should return standard pa }, }, "calendarEventParticipantRecordPage": { + "id": "00000000-0000-0000-0000-000000000028", + "tabs": { + "home": { + "id": "00000000-0000-0000-0000-000000000029", + "widgets": { + "fields": { + "id": "00000000-0000-0000-0000-000000000030", + }, + }, + }, + "timeline": { + "id": "00000000-0000-0000-0000-000000000031", + "widgets": { + "timeline": { + "id": "00000000-0000-0000-0000-000000000032", + }, + }, + }, + }, + }, + "calendarEventRecordPage": { "id": "00000000-0000-0000-0000-000000000021", "tabs": { "home": { "id": "00000000-0000-0000-0000-000000000022", "widgets": { + "callRecordings": { + "id": "00000000-0000-0000-0000-000000000025", + }, "fields": { "id": "00000000-0000-0000-0000-000000000023", }, + "participants": { + "id": "00000000-0000-0000-0000-000000000024", + }, }, }, "timeline": { - "id": "00000000-0000-0000-0000-000000000024", + "id": "00000000-0000-0000-0000-000000000026", "widgets": { "timeline": { - "id": "00000000-0000-0000-0000-000000000025", + "id": "00000000-0000-0000-0000-000000000027", }, }, }, }, }, "callRecordingRecordPage": { - "id": "00000000-0000-0000-0000-000000000026", + "id": "00000000-0000-0000-0000-000000000033", "tabs": { "home": { - "id": "00000000-0000-0000-0000-000000000027", + "id": "00000000-0000-0000-0000-000000000034", "widgets": { "fields": { - "id": "00000000-0000-0000-0000-000000000028", - }, - }, - }, - "timeline": { - "id": "00000000-0000-0000-0000-000000000029", - "widgets": { - "timeline": { - "id": "00000000-0000-0000-0000-000000000030", - }, - }, - }, - }, - }, - "companyRecordPage": { - "id": "00000000-0000-0000-0000-000000000031", - "tabs": { - "calendar": { - "id": "00000000-0000-0000-0000-000000000046", - "widgets": { - "calendar": { - "id": "00000000-0000-0000-0000-000000000047", - }, - }, - }, - "emails": { - "id": "00000000-0000-0000-0000-000000000044", - "widgets": { - "emails": { - "id": "00000000-0000-0000-0000-000000000045", - }, - }, - }, - "files": { - "id": "00000000-0000-0000-0000-000000000042", - "widgets": { - "files": { - "id": "00000000-0000-0000-0000-000000000043", - }, - }, - }, - "home": { - "id": "00000000-0000-0000-0000-000000000032", - "widgets": { - "fields": { - "id": "00000000-0000-0000-0000-000000000033", - }, - "opportunities": { "id": "00000000-0000-0000-0000-000000000035", }, - "people": { - "id": "00000000-0000-0000-0000-000000000034", - }, - }, - }, - "notes": { - "id": "00000000-0000-0000-0000-000000000040", - "widgets": { - "notes": { - "id": "00000000-0000-0000-0000-000000000041", - }, - }, - }, - "tasks": { - "id": "00000000-0000-0000-0000-000000000038", - "widgets": { - "tasks": { - "id": "00000000-0000-0000-0000-000000000039", - }, }, }, "timeline": { @@ -153,115 +113,182 @@ exports[`getStandardPageLayoutMetadataRelatedEntityIds should return standard pa }, }, }, - "messageCampaignRecordPage": { - "id": "00000000-0000-0000-0000-000000000048", + "companyRecordPage": { + "id": "00000000-0000-0000-0000-000000000038", "tabs": { - "home": { + "calendar": { + "id": "00000000-0000-0000-0000-000000000053", + "widgets": { + "calendar": { + "id": "00000000-0000-0000-0000-000000000054", + }, + }, + }, + "emails": { + "id": "00000000-0000-0000-0000-000000000051", + "widgets": { + "emails": { + "id": "00000000-0000-0000-0000-000000000052", + }, + }, + }, + "files": { "id": "00000000-0000-0000-0000-000000000049", "widgets": { - "fields": { + "files": { "id": "00000000-0000-0000-0000-000000000050", }, + }, + }, + "home": { + "id": "00000000-0000-0000-0000-000000000039", + "widgets": { + "fields": { + "id": "00000000-0000-0000-0000-000000000040", + }, + "opportunities": { + "id": "00000000-0000-0000-0000-000000000042", + }, + "people": { + "id": "00000000-0000-0000-0000-000000000041", + }, + }, + }, + "notes": { + "id": "00000000-0000-0000-0000-000000000047", + "widgets": { + "notes": { + "id": "00000000-0000-0000-0000-000000000048", + }, + }, + }, + "tasks": { + "id": "00000000-0000-0000-0000-000000000045", + "widgets": { + "tasks": { + "id": "00000000-0000-0000-0000-000000000046", + }, + }, + }, + "timeline": { + "id": "00000000-0000-0000-0000-000000000043", + "widgets": { + "timeline": { + "id": "00000000-0000-0000-0000-000000000044", + }, + }, + }, + }, + }, + "messageCampaignRecordPage": { + "id": "00000000-0000-0000-0000-000000000055", + "tabs": { + "home": { + "id": "00000000-0000-0000-0000-000000000056", + "widgets": { + "fields": { + "id": "00000000-0000-0000-0000-000000000057", + }, "list": { - "id": "00000000-0000-0000-0000-000000000051", + "id": "00000000-0000-0000-0000-000000000058", }, "messages": { - "id": "00000000-0000-0000-0000-000000000053", + "id": "00000000-0000-0000-0000-000000000060", }, "recipients": { - "id": "00000000-0000-0000-0000-000000000052", + "id": "00000000-0000-0000-0000-000000000059", }, }, }, }, }, "messageChannelMessageAssociationMessageFolderRecordPage": { - "id": "00000000-0000-0000-0000-000000000059", + "id": "00000000-0000-0000-0000-000000000066", "tabs": { "home": { - "id": "00000000-0000-0000-0000-000000000060", + "id": "00000000-0000-0000-0000-000000000067", "widgets": { "fields": { - "id": "00000000-0000-0000-0000-000000000061", + "id": "00000000-0000-0000-0000-000000000068", }, }, }, "timeline": { - "id": "00000000-0000-0000-0000-000000000062", + "id": "00000000-0000-0000-0000-000000000069", "widgets": { "timeline": { - "id": "00000000-0000-0000-0000-000000000063", + "id": "00000000-0000-0000-0000-000000000070", }, }, }, }, }, "messageChannelMessageAssociationRecordPage": { - "id": "00000000-0000-0000-0000-000000000054", + "id": "00000000-0000-0000-0000-000000000061", "tabs": { "home": { - "id": "00000000-0000-0000-0000-000000000055", + "id": "00000000-0000-0000-0000-000000000062", "widgets": { "fields": { - "id": "00000000-0000-0000-0000-000000000056", + "id": "00000000-0000-0000-0000-000000000063", }, }, }, "timeline": { - "id": "00000000-0000-0000-0000-000000000057", + "id": "00000000-0000-0000-0000-000000000064", "widgets": { "timeline": { - "id": "00000000-0000-0000-0000-000000000058", + "id": "00000000-0000-0000-0000-000000000065", }, }, }, }, }, "messageListRecordPage": { - "id": "00000000-0000-0000-0000-000000000069", + "id": "00000000-0000-0000-0000-000000000076", "tabs": { "home": { - "id": "00000000-0000-0000-0000-000000000070", + "id": "00000000-0000-0000-0000-000000000077", "widgets": { "fields": { - "id": "00000000-0000-0000-0000-000000000071", + "id": "00000000-0000-0000-0000-000000000078", }, "members": { - "id": "00000000-0000-0000-0000-000000000072", + "id": "00000000-0000-0000-0000-000000000079", }, }, }, }, }, "messageParticipantRecordPage": { - "id": "00000000-0000-0000-0000-000000000064", + "id": "00000000-0000-0000-0000-000000000071", "tabs": { "home": { - "id": "00000000-0000-0000-0000-000000000065", + "id": "00000000-0000-0000-0000-000000000072", "widgets": { "fields": { - "id": "00000000-0000-0000-0000-000000000066", + "id": "00000000-0000-0000-0000-000000000073", }, }, }, "timeline": { - "id": "00000000-0000-0000-0000-000000000067", + "id": "00000000-0000-0000-0000-000000000074", "widgets": { "timeline": { - "id": "00000000-0000-0000-0000-000000000068", + "id": "00000000-0000-0000-0000-000000000075", }, }, }, }, }, "messageThreadRecordPage": { - "id": "00000000-0000-0000-0000-000000000073", + "id": "00000000-0000-0000-0000-000000000080", "tabs": { "home": { - "id": "00000000-0000-0000-0000-000000000074", + "id": "00000000-0000-0000-0000-000000000081", "widgets": { "emailThread": { - "id": "00000000-0000-0000-0000-000000000075", + "id": "00000000-0000-0000-0000-000000000082", }, }, }, @@ -302,302 +329,302 @@ exports[`getStandardPageLayoutMetadataRelatedEntityIds should return standard pa }, }, "noteRecordPage": { - "id": "00000000-0000-0000-0000-000000000076", + "id": "00000000-0000-0000-0000-000000000083", "tabs": { "files": { - "id": "00000000-0000-0000-0000-000000000084", + "id": "00000000-0000-0000-0000-000000000091", "widgets": { "files": { - "id": "00000000-0000-0000-0000-000000000085", + "id": "00000000-0000-0000-0000-000000000092", }, }, }, "home": { - "id": "00000000-0000-0000-0000-000000000077", + "id": "00000000-0000-0000-0000-000000000084", "widgets": { "fields": { - "id": "00000000-0000-0000-0000-000000000078", + "id": "00000000-0000-0000-0000-000000000085", }, "noteRichText": { - "id": "00000000-0000-0000-0000-000000000079", + "id": "00000000-0000-0000-0000-000000000086", }, }, }, "note": { - "id": "00000000-0000-0000-0000-000000000080", + "id": "00000000-0000-0000-0000-000000000087", "widgets": { "noteRichText": { - "id": "00000000-0000-0000-0000-000000000081", + "id": "00000000-0000-0000-0000-000000000088", }, }, }, "timeline": { - "id": "00000000-0000-0000-0000-000000000082", + "id": "00000000-0000-0000-0000-000000000089", "widgets": { "timeline": { - "id": "00000000-0000-0000-0000-000000000083", + "id": "00000000-0000-0000-0000-000000000090", }, }, }, }, }, "opportunityRecordPage": { - "id": "00000000-0000-0000-0000-000000000086", + "id": "00000000-0000-0000-0000-000000000093", "tabs": { "calendar": { - "id": "00000000-0000-0000-0000-000000000102", + "id": "00000000-0000-0000-0000-000000000109", "widgets": { "calendar": { - "id": "00000000-0000-0000-0000-000000000103", + "id": "00000000-0000-0000-0000-000000000110", }, }, }, "emails": { - "id": "00000000-0000-0000-0000-000000000100", + "id": "00000000-0000-0000-0000-000000000107", "widgets": { "emails": { - "id": "00000000-0000-0000-0000-000000000101", + "id": "00000000-0000-0000-0000-000000000108", }, }, }, "files": { - "id": "00000000-0000-0000-0000-000000000098", + "id": "00000000-0000-0000-0000-000000000105", "widgets": { "files": { - "id": "00000000-0000-0000-0000-000000000099", + "id": "00000000-0000-0000-0000-000000000106", }, }, }, "home": { - "id": "00000000-0000-0000-0000-000000000087", + "id": "00000000-0000-0000-0000-000000000094", "widgets": { "company": { - "id": "00000000-0000-0000-0000-000000000090", + "id": "00000000-0000-0000-0000-000000000097", }, "fields": { - "id": "00000000-0000-0000-0000-000000000088", + "id": "00000000-0000-0000-0000-000000000095", }, "owner": { - "id": "00000000-0000-0000-0000-000000000091", + "id": "00000000-0000-0000-0000-000000000098", }, "pointOfContact": { - "id": "00000000-0000-0000-0000-000000000089", + "id": "00000000-0000-0000-0000-000000000096", }, }, }, "notes": { - "id": "00000000-0000-0000-0000-000000000096", + "id": "00000000-0000-0000-0000-000000000103", "widgets": { "notes": { - "id": "00000000-0000-0000-0000-000000000097", + "id": "00000000-0000-0000-0000-000000000104", }, }, }, "tasks": { - "id": "00000000-0000-0000-0000-000000000094", + "id": "00000000-0000-0000-0000-000000000101", "widgets": { "tasks": { - "id": "00000000-0000-0000-0000-000000000095", + "id": "00000000-0000-0000-0000-000000000102", }, }, }, "timeline": { - "id": "00000000-0000-0000-0000-000000000092", + "id": "00000000-0000-0000-0000-000000000099", "widgets": { "timeline": { - "id": "00000000-0000-0000-0000-000000000093", + "id": "00000000-0000-0000-0000-000000000100", }, }, }, }, }, "personRecordPage": { - "id": "00000000-0000-0000-0000-000000000104", + "id": "00000000-0000-0000-0000-000000000111", "tabs": { "calendar": { - "id": "00000000-0000-0000-0000-000000000120", + "id": "00000000-0000-0000-0000-000000000127", "widgets": { "calendar": { - "id": "00000000-0000-0000-0000-000000000121", + "id": "00000000-0000-0000-0000-000000000128", }, }, }, "emails": { - "id": "00000000-0000-0000-0000-000000000118", + "id": "00000000-0000-0000-0000-000000000125", "widgets": { "emails": { - "id": "00000000-0000-0000-0000-000000000119", + "id": "00000000-0000-0000-0000-000000000126", }, }, }, "files": { - "id": "00000000-0000-0000-0000-000000000116", + "id": "00000000-0000-0000-0000-000000000123", "widgets": { "files": { - "id": "00000000-0000-0000-0000-000000000117", + "id": "00000000-0000-0000-0000-000000000124", }, }, }, "home": { - "id": "00000000-0000-0000-0000-000000000105", + "id": "00000000-0000-0000-0000-000000000112", "widgets": { "company": { - "id": "00000000-0000-0000-0000-000000000107", + "id": "00000000-0000-0000-0000-000000000114", }, "fields": { - "id": "00000000-0000-0000-0000-000000000106", + "id": "00000000-0000-0000-0000-000000000113", }, "listMemberships": { - "id": "00000000-0000-0000-0000-000000000109", + "id": "00000000-0000-0000-0000-000000000116", }, "pointOfContactForOpportunities": { - "id": "00000000-0000-0000-0000-000000000108", - }, - }, - }, - "notes": { - "id": "00000000-0000-0000-0000-000000000114", - "widgets": { - "notes": { "id": "00000000-0000-0000-0000-000000000115", }, }, }, + "notes": { + "id": "00000000-0000-0000-0000-000000000121", + "widgets": { + "notes": { + "id": "00000000-0000-0000-0000-000000000122", + }, + }, + }, "tasks": { - "id": "00000000-0000-0000-0000-000000000112", + "id": "00000000-0000-0000-0000-000000000119", "widgets": { "tasks": { - "id": "00000000-0000-0000-0000-000000000113", + "id": "00000000-0000-0000-0000-000000000120", }, }, }, "timeline": { - "id": "00000000-0000-0000-0000-000000000110", + "id": "00000000-0000-0000-0000-000000000117", "widgets": { "timeline": { - "id": "00000000-0000-0000-0000-000000000111", + "id": "00000000-0000-0000-0000-000000000118", }, }, }, }, }, "taskRecordPage": { - "id": "00000000-0000-0000-0000-000000000122", + "id": "00000000-0000-0000-0000-000000000129", "tabs": { "files": { - "id": "00000000-0000-0000-0000-000000000130", + "id": "00000000-0000-0000-0000-000000000137", "widgets": { "files": { - "id": "00000000-0000-0000-0000-000000000131", + "id": "00000000-0000-0000-0000-000000000138", }, }, }, "home": { - "id": "00000000-0000-0000-0000-000000000123", + "id": "00000000-0000-0000-0000-000000000130", "widgets": { "fields": { - "id": "00000000-0000-0000-0000-000000000124", + "id": "00000000-0000-0000-0000-000000000131", }, "taskRichText": { - "id": "00000000-0000-0000-0000-000000000125", + "id": "00000000-0000-0000-0000-000000000132", }, }, }, "note": { - "id": "00000000-0000-0000-0000-000000000126", + "id": "00000000-0000-0000-0000-000000000133", "widgets": { "taskRichText": { - "id": "00000000-0000-0000-0000-000000000127", + "id": "00000000-0000-0000-0000-000000000134", }, }, }, "timeline": { - "id": "00000000-0000-0000-0000-000000000128", + "id": "00000000-0000-0000-0000-000000000135", "widgets": { "timeline": { - "id": "00000000-0000-0000-0000-000000000129", + "id": "00000000-0000-0000-0000-000000000136", }, }, }, }, }, "workflowAutomatedTriggerRecordPage": { - "id": "00000000-0000-0000-0000-000000000135", + "id": "00000000-0000-0000-0000-000000000142", "tabs": { "home": { - "id": "00000000-0000-0000-0000-000000000136", + "id": "00000000-0000-0000-0000-000000000143", "widgets": { "fields": { - "id": "00000000-0000-0000-0000-000000000137", + "id": "00000000-0000-0000-0000-000000000144", }, }, }, "timeline": { - "id": "00000000-0000-0000-0000-000000000138", + "id": "00000000-0000-0000-0000-000000000145", "widgets": { "timeline": { - "id": "00000000-0000-0000-0000-000000000139", + "id": "00000000-0000-0000-0000-000000000146", }, }, }, }, }, "workflowRecordPage": { - "id": "00000000-0000-0000-0000-000000000132", + "id": "00000000-0000-0000-0000-000000000139", "tabs": { "flow": { - "id": "00000000-0000-0000-0000-000000000133", + "id": "00000000-0000-0000-0000-000000000140", "widgets": { "workflow": { - "id": "00000000-0000-0000-0000-000000000134", + "id": "00000000-0000-0000-0000-000000000141", }, }, }, }, }, "workflowRunRecordPage": { - "id": "00000000-0000-0000-0000-000000000146", + "id": "00000000-0000-0000-0000-000000000153", "tabs": { "flow": { - "id": "00000000-0000-0000-0000-000000000150", + "id": "00000000-0000-0000-0000-000000000157", "widgets": { "workflowRun": { - "id": "00000000-0000-0000-0000-000000000151", + "id": "00000000-0000-0000-0000-000000000158", }, }, }, "home": { - "id": "00000000-0000-0000-0000-000000000147", + "id": "00000000-0000-0000-0000-000000000154", "widgets": { "fields": { - "id": "00000000-0000-0000-0000-000000000148", + "id": "00000000-0000-0000-0000-000000000155", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000149", + "id": "00000000-0000-0000-0000-000000000156", }, }, }, }, }, "workflowVersionRecordPage": { - "id": "00000000-0000-0000-0000-000000000140", + "id": "00000000-0000-0000-0000-000000000147", "tabs": { "flow": { - "id": "00000000-0000-0000-0000-000000000144", + "id": "00000000-0000-0000-0000-000000000151", "widgets": { "workflowVersion": { - "id": "00000000-0000-0000-0000-000000000145", + "id": "00000000-0000-0000-0000-000000000152", }, }, }, "home": { - "id": "00000000-0000-0000-0000-000000000141", + "id": "00000000-0000-0000-0000-000000000148", "widgets": { "fields": { - "id": "00000000-0000-0000-0000-000000000142", + "id": "00000000-0000-0000-0000-000000000149", }, "workflow": { - "id": "00000000-0000-0000-0000-000000000143", + "id": "00000000-0000-0000-0000-000000000150", }, }, }, diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-calendar-event-standard-metadata.spec.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-calendar-event-standard-metadata.spec.ts new file mode 100644 index 0000000000..8faf003604 --- /dev/null +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-calendar-event-standard-metadata.spec.ts @@ -0,0 +1,188 @@ +import { + STANDARD_OBJECTS, + STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS, +} from 'twenty-shared/metadata'; +import { isDefined } from 'twenty-shared/utils'; + +import { WidgetConfigurationType } from 'src/engine/metadata-modules/page-layout-widget/enums/widget-configuration-type.type'; +import { computeTwentyStandardApplicationAllFlatEntityMaps } from 'src/engine/workspace-manager/twenty-standard-application/utils/twenty-standard-application-all-flat-entity-maps.constant'; + +const WORKSPACE_ID = '20202020-1111-4111-8111-111111111111'; +const TWENTY_STANDARD_APPLICATION_ID = '20202020-2222-4222-8222-222222222222'; +const NOW = '2024-01-01T00:00:00.000Z'; + +describe('CalendarEvent standard metadata build', () => { + const { allFlatEntityMaps } = + computeTwentyStandardApplicationAllFlatEntityMaps({ + now: NOW, + workspaceId: WORKSPACE_ID, + twentyStandardApplicationId: TWENTY_STANDARD_APPLICATION_ID, + }); + + it('builds the calendarEvent object', () => { + const { byUniversalIdentifier } = allFlatEntityMaps.flatObjectMetadataMaps; + + expect( + byUniversalIdentifier[STANDARD_OBJECTS.calendarEvent.universalIdentifier], + ).toBeDefined(); + }); + + it('uses the important calendar event detail fields on the record page', () => { + const recordPageViewFields = Object.values( + allFlatEntityMaps.flatViewFieldMaps.byUniversalIdentifier, + ) + .filter(isDefined) + .filter( + (viewField) => + viewField.viewUniversalIdentifier === + STANDARD_OBJECTS.calendarEvent.views.calendarEventRecordPageFields + .universalIdentifier, + ); + + const viewFieldFieldUniversalIdentifiers = recordPageViewFields.map( + (viewField) => viewField.fieldMetadataUniversalIdentifier, + ); + + expect(viewFieldFieldUniversalIdentifiers).toHaveLength(12); + expect(viewFieldFieldUniversalIdentifiers).toEqual( + expect.arrayContaining([ + STANDARD_OBJECTS.calendarEvent.fields.title.universalIdentifier, + STANDARD_OBJECTS.calendarEvent.fields.startsAt.universalIdentifier, + STANDARD_OBJECTS.calendarEvent.fields.endsAt.universalIdentifier, + STANDARD_OBJECTS.calendarEvent.fields.isFullDay.universalIdentifier, + STANDARD_OBJECTS.calendarEvent.fields.isCanceled.universalIdentifier, + STANDARD_OBJECTS.calendarEvent.fields.conferenceLink + .universalIdentifier, + STANDARD_OBJECTS.calendarEvent.fields.location.universalIdentifier, + STANDARD_OBJECTS.calendarEvent.fields.description.universalIdentifier, + STANDARD_OBJECTS.calendarEvent.fields.externalCreatedAt + .universalIdentifier, + STANDARD_OBJECTS.calendarEvent.fields.externalUpdatedAt + .universalIdentifier, + STANDARD_OBJECTS.calendarEvent.fields.iCalUid.universalIdentifier, + STANDARD_OBJECTS.calendarEvent.fields.conferenceSolution + .universalIdentifier, + ]), + ); + expect(viewFieldFieldUniversalIdentifiers).not.toContain( + STANDARD_OBJECTS.calendarEvent.fields.createdAt.universalIdentifier, + ); + expect(viewFieldFieldUniversalIdentifiers).not.toContain( + STANDARD_OBJECTS.calendarEvent.fields.calendarEventParticipants + .universalIdentifier, + ); + + expect( + recordPageViewFields + .filter((viewField) => viewField.isVisible) + .sort((firstViewField, secondViewField) => { + return firstViewField.position - secondViewField.position; + }) + .map((viewField) => viewField.fieldMetadataUniversalIdentifier), + ).toEqual([ + STANDARD_OBJECTS.calendarEvent.fields.startsAt.universalIdentifier, + STANDARD_OBJECTS.calendarEvent.fields.endsAt.universalIdentifier, + STANDARD_OBJECTS.calendarEvent.fields.conferenceLink.universalIdentifier, + STANDARD_OBJECTS.calendarEvent.fields.location.universalIdentifier, + STANDARD_OBJECTS.calendarEvent.fields.description.universalIdentifier, + ]); + + expect( + recordPageViewFields + .filter((viewField) => !viewField.isVisible) + .map((viewField) => viewField.fieldMetadataUniversalIdentifier), + ).toEqual( + expect.arrayContaining([ + STANDARD_OBJECTS.calendarEvent.fields.title.universalIdentifier, + STANDARD_OBJECTS.calendarEvent.fields.isFullDay.universalIdentifier, + STANDARD_OBJECTS.calendarEvent.fields.isCanceled.universalIdentifier, + STANDARD_OBJECTS.calendarEvent.fields.externalCreatedAt + .universalIdentifier, + STANDARD_OBJECTS.calendarEvent.fields.externalUpdatedAt + .universalIdentifier, + STANDARD_OBJECTS.calendarEvent.fields.iCalUid.universalIdentifier, + STANDARD_OBJECTS.calendarEvent.fields.conferenceSolution + .universalIdentifier, + ]), + ); + }); + + it('groups the record page fields into general and system sections', () => { + const generalGroup = + allFlatEntityMaps.flatViewFieldGroupMaps.byUniversalIdentifier[ + STANDARD_OBJECTS.calendarEvent.views.calendarEventRecordPageFields + .viewFieldGroups.general.universalIdentifier + ]; + const systemGroup = + allFlatEntityMaps.flatViewFieldGroupMaps.byUniversalIdentifier[ + STANDARD_OBJECTS.calendarEvent.views.calendarEventRecordPageFields + .viewFieldGroups.system.universalIdentifier + ]; + + expect(generalGroup).toBeDefined(); + expect(systemGroup).toBeDefined(); + }); + + it('links the calendar event fields widget to its record-page fields view', () => { + const fieldsWidget = + allFlatEntityMaps.flatPageLayoutWidgetMaps.byUniversalIdentifier[ + STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.calendarEventRecordPage.tabs + .home.widgets.fields.universalIdentifier + ]; + + expect(fieldsWidget?.universalConfiguration).toMatchObject({ + configurationType: WidgetConfigurationType.FIELDS, + viewUniversalIdentifier: + STANDARD_OBJECTS.calendarEvent.views.calendarEventRecordPageFields + .universalIdentifier, + }); + }); + + it('configures participants as a standard relation field widget', () => { + const participantsWidget = + allFlatEntityMaps.flatPageLayoutWidgetMaps.byUniversalIdentifier[ + STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.calendarEventRecordPage.tabs + .home.widgets.participants.universalIdentifier + ]; + + expect(participantsWidget?.universalConfiguration).toMatchObject({ + configurationType: WidgetConfigurationType.FIELD, + fieldMetadataId: + STANDARD_OBJECTS.calendarEvent.fields.calendarEventParticipants + .universalIdentifier, + }); + }); + + it('configures a timeline tab on the calendar event record page', () => { + const timelineWidget = + allFlatEntityMaps.flatPageLayoutWidgetMaps.byUniversalIdentifier[ + STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.calendarEventRecordPage.tabs + .timeline.widgets.timeline.universalIdentifier + ]; + + expect( + Object.keys( + STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.calendarEventRecordPage.tabs, + ), + ).toEqual(['home', 'timeline']); + + expect(timelineWidget?.universalConfiguration).toMatchObject({ + configurationType: WidgetConfigurationType.TIMELINE, + }); + }); + + it('renders call recordings through a standard relation field widget', () => { + const callRecordingsWidget = + allFlatEntityMaps.flatPageLayoutWidgetMaps.byUniversalIdentifier[ + STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.calendarEventRecordPage.tabs + .home.widgets.callRecordings.universalIdentifier + ]; + + expect(callRecordingsWidget?.universalConfiguration).toMatchObject({ + configurationType: WidgetConfigurationType.FIELD, + fieldMetadataId: + STANDARD_OBJECTS.calendarEvent.fields.callRecordings + .universalIdentifier, + }); + }); +}); diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/index.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/index.ts index 4cc551008f..d252786755 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/index.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/index.ts @@ -1,5 +1,6 @@ export { STANDARD_BLOCKLIST_PAGE_LAYOUT_CONFIG } from './standard-blocklist-page-layout.config'; export { STANDARD_CALENDAR_CHANNEL_EVENT_ASSOCIATION_PAGE_LAYOUT_CONFIG } from './standard-calendar-channel-event-association-page-layout.config'; +export { STANDARD_CALENDAR_EVENT_PAGE_LAYOUT_CONFIG } from './standard-calendar-event-page-layout.config'; export { STANDARD_CALENDAR_EVENT_PARTICIPANT_PAGE_LAYOUT_CONFIG } from './standard-calendar-event-participant-page-layout.config'; export { STANDARD_CALL_RECORDING_PAGE_LAYOUT_CONFIG } from './standard-call-recording-page-layout.config'; export { STANDARD_COMPANY_PAGE_LAYOUT_CONFIG } from './standard-company-page-layout.config'; diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-calendar-event-page-layout.config.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-calendar-event-page-layout.config.ts new file mode 100644 index 0000000000..62aa630679 --- /dev/null +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-calendar-event-page-layout.config.ts @@ -0,0 +1,83 @@ +import { + STANDARD_OBJECTS, + STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS, +} 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 { + 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 { + type StandardPageLayoutConfig, + type StandardPageLayoutTabConfig, +} from 'src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-page-layout-config.type'; + +const CALENDAR_EVENT_PAGE_TABS = { + home: { + universalIdentifier: + STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.calendarEventRecordPage.tabs + .home.universalIdentifier, + ...TAB_PROPS.home, + widgets: { + fields: { + universalIdentifier: + STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.calendarEventRecordPage + .tabs.home.widgets.fields.universalIdentifier, + ...WIDGET_PROPS.fields, + }, + participants: { + universalIdentifier: + STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.calendarEventRecordPage + .tabs.home.widgets.participants.universalIdentifier, + title: 'Participants', + type: WidgetType.FIELD, + gridPosition: GRID_POSITIONS.FULL_WIDTH, + position: VERTICAL_LIST_LAYOUT_POSITIONS.SECOND, + fieldUniversalIdentifier: + STANDARD_OBJECTS.calendarEvent.fields.calendarEventParticipants + .universalIdentifier, + }, + callRecordings: { + universalIdentifier: + STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.calendarEventRecordPage + .tabs.home.widgets.callRecordings.universalIdentifier, + title: 'Call Recordings', + type: WidgetType.FIELD, + gridPosition: GRID_POSITIONS.FULL_WIDTH, + position: VERTICAL_LIST_LAYOUT_POSITIONS.THIRD, + fieldUniversalIdentifier: + STANDARD_OBJECTS.calendarEvent.fields.callRecordings + .universalIdentifier, + }, + }, + }, + timeline: { + universalIdentifier: + STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.calendarEventRecordPage.tabs + .timeline.universalIdentifier, + ...TAB_PROPS.timeline, + widgets: { + timeline: { + universalIdentifier: + STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.calendarEventRecordPage + .tabs.timeline.widgets.timeline.universalIdentifier, + ...WIDGET_PROPS.timeline, + }, + }, + }, +} as const satisfies Record; + +export const STANDARD_CALENDAR_EVENT_PAGE_LAYOUT_CONFIG = { + name: 'Default Calendar Event Layout', + type: PageLayoutType.RECORD_PAGE, + objectUniversalIdentifier: STANDARD_OBJECTS.calendarEvent.universalIdentifier, + universalIdentifier: + STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.calendarEventRecordPage + .universalIdentifier, + defaultTabUniversalIdentifier: null, + tabs: CALENDAR_EVENT_PAGE_TABS, +} as const satisfies StandardPageLayoutConfig; diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-widget/build-standard-flat-page-layout-widget-metadata-maps.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-widget/build-standard-flat-page-layout-widget-metadata-maps.util.ts index 36544b75ce..5ce23abc50 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-widget/build-standard-flat-page-layout-widget-metadata-maps.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-widget/build-standard-flat-page-layout-widget-metadata-maps.util.ts @@ -68,6 +68,7 @@ const RECORD_PAGE_FIELDS_VIEW_NAME_BY_OBJECT: Partial< blocklist: 'blocklistRecordPageFields', calendarChannelEventAssociation: 'calendarChannelEventAssociationRecordPageFields', + calendarEvent: 'calendarEventRecordPageFields', calendarEventParticipant: 'calendarEventParticipantRecordPageFields', callRecording: 'callRecordingRecordPageFields', company: 'companyRecordPageFields', diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/build-standard-flat-view-field-group-metadata-maps.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/build-standard-flat-view-field-group-metadata-maps.util.ts index 120d6408ee..66f5cac83a 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/build-standard-flat-view-field-group-metadata-maps.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/build-standard-flat-view-field-group-metadata-maps.util.ts @@ -5,6 +5,7 @@ import { type FlatViewFieldGroup } from 'src/engine/metadata-modules/flat-view-f import { type AllStandardObjectName } from 'src/engine/workspace-manager/twenty-standard-application/types/all-standard-object-name.type'; import { computeStandardBlocklistViewFieldGroups } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-blocklist-view-field-groups.util'; import { computeStandardCalendarChannelEventAssociationViewFieldGroups } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-calendar-channel-event-association-view-field-groups.util'; +import { computeStandardCalendarEventViewFieldGroups } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-calendar-event-view-field-groups.util'; import { computeStandardCalendarEventParticipantViewFieldGroups } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-calendar-event-participant-view-field-groups.util'; import { computeStandardCallRecordingViewFieldGroups } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-call-recording-view-field-groups.util'; import { computeStandardCompanyViewFieldGroups } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-company-view-field-groups.util'; @@ -28,6 +29,7 @@ const STANDARD_FLAT_VIEW_FIELD_GROUP_METADATA_BUILDERS_BY_OBJECT_NAME = { blocklist: computeStandardBlocklistViewFieldGroups, calendarChannelEventAssociation: computeStandardCalendarChannelEventAssociationViewFieldGroups, + calendarEvent: computeStandardCalendarEventViewFieldGroups, calendarEventParticipant: computeStandardCalendarEventParticipantViewFieldGroups, callRecording: computeStandardCallRecordingViewFieldGroups, diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-calendar-event-view-field-groups.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-calendar-event-view-field-groups.util.ts new file mode 100644 index 0000000000..a6ecd90327 --- /dev/null +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-calendar-event-view-field-groups.util.ts @@ -0,0 +1,36 @@ +import { type FlatViewFieldGroup } from 'src/engine/metadata-modules/flat-view-field-group/types/flat-view-field-group.type'; +import { + createStandardViewFieldGroupFlatMetadata, + type CreateStandardViewFieldGroupArgs, +} from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/create-standard-view-field-group-flat-metadata.util'; + +export const computeStandardCalendarEventViewFieldGroups = ( + args: Omit, 'context'>, +): Record => { + return { + calendarEventRecordPageFieldsGeneral: + createStandardViewFieldGroupFlatMetadata({ + ...args, + objectName: 'calendarEvent', + context: { + viewName: 'calendarEventRecordPageFields', + viewFieldGroupName: 'general', + name: 'General', + position: 0, + isVisible: true, + }, + }), + calendarEventRecordPageFieldsSystem: + createStandardViewFieldGroupFlatMetadata({ + ...args, + objectName: 'calendarEvent', + context: { + viewName: 'calendarEventRecordPageFields', + viewFieldGroupName: 'system', + name: 'System', + position: 1, + isVisible: true, + }, + }), + }; +}; diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-calendar-event-view-fields.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-calendar-event-view-fields.util.ts index 016158d929..36911f811c 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-calendar-event-view-fields.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-calendar-event-view-fields.util.ts @@ -104,5 +104,170 @@ export const computeStandardCalendarEventViewFields = ( size: 150, }, }), + + calendarEventRecordPageFieldsTitle: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'calendarEvent', + context: { + viewName: 'calendarEventRecordPageFields', + viewFieldName: 'title', + fieldName: 'title', + position: 0, + isVisible: false, + size: 180, + viewFieldGroupName: 'general', + }, + }), + calendarEventRecordPageFieldsStartsAt: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'calendarEvent', + context: { + viewName: 'calendarEventRecordPageFields', + viewFieldName: 'startsAt', + fieldName: 'startsAt', + position: 1, + isVisible: true, + size: 150, + viewFieldGroupName: 'general', + }, + }), + calendarEventRecordPageFieldsEndsAt: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'calendarEvent', + context: { + viewName: 'calendarEventRecordPageFields', + viewFieldName: 'endsAt', + fieldName: 'endsAt', + position: 2, + isVisible: true, + size: 150, + viewFieldGroupName: 'general', + }, + }), + calendarEventRecordPageFieldsIsFullDay: createStandardViewFieldFlatMetadata( + { + ...args, + objectName: 'calendarEvent', + context: { + viewName: 'calendarEventRecordPageFields', + viewFieldName: 'isFullDay', + fieldName: 'isFullDay', + position: 3, + isVisible: false, + size: 100, + viewFieldGroupName: 'general', + }, + }, + ), + calendarEventRecordPageFieldsIsCanceled: + createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'calendarEvent', + context: { + viewName: 'calendarEventRecordPageFields', + viewFieldName: 'isCanceled', + fieldName: 'isCanceled', + position: 4, + isVisible: false, + size: 100, + viewFieldGroupName: 'general', + }, + }), + calendarEventRecordPageFieldsConferenceLink: + createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'calendarEvent', + context: { + viewName: 'calendarEventRecordPageFields', + viewFieldName: 'conferenceLink', + fieldName: 'conferenceLink', + position: 5, + isVisible: true, + size: 150, + viewFieldGroupName: 'general', + }, + }), + calendarEventRecordPageFieldsLocation: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'calendarEvent', + context: { + viewName: 'calendarEventRecordPageFields', + viewFieldName: 'location', + fieldName: 'location', + position: 6, + isVisible: true, + size: 150, + viewFieldGroupName: 'general', + }, + }), + calendarEventRecordPageFieldsDescription: + createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'calendarEvent', + context: { + viewName: 'calendarEventRecordPageFields', + viewFieldName: 'description', + fieldName: 'description', + position: 7, + isVisible: true, + size: 200, + viewFieldGroupName: 'general', + }, + }), + calendarEventRecordPageFieldsExternalCreatedAt: + createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'calendarEvent', + context: { + viewName: 'calendarEventRecordPageFields', + viewFieldName: 'externalCreatedAt', + fieldName: 'externalCreatedAt', + position: 0, + isVisible: false, + size: 150, + viewFieldGroupName: 'system', + }, + }), + calendarEventRecordPageFieldsExternalUpdatedAt: + createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'calendarEvent', + context: { + viewName: 'calendarEventRecordPageFields', + viewFieldName: 'externalUpdatedAt', + fieldName: 'externalUpdatedAt', + position: 1, + isVisible: false, + size: 150, + viewFieldGroupName: 'system', + }, + }), + calendarEventRecordPageFieldsICalUid: createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'calendarEvent', + context: { + viewName: 'calendarEventRecordPageFields', + viewFieldName: 'iCalUid', + fieldName: 'iCalUid', + position: 2, + isVisible: false, + size: 150, + viewFieldGroupName: 'system', + }, + }), + calendarEventRecordPageFieldsConferenceSolution: + createStandardViewFieldFlatMetadata({ + ...args, + objectName: 'calendarEvent', + context: { + viewName: 'calendarEventRecordPageFields', + viewFieldName: 'conferenceSolution', + fieldName: 'conferenceSolution', + position: 3, + isVisible: false, + size: 150, + viewFieldGroupName: 'system', + }, + }), }; }; diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-calendar-event-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-calendar-event-views.util.ts index 9ca1b01cf6..e41bc6d491 100644 --- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-calendar-event-views.util.ts +++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-calendar-event-views.util.ts @@ -23,5 +23,17 @@ export const computeStandardCalendarEventViews = ( calendarFieldName: 'startsAt', }, }), + calendarEventRecordPageFields: createStandardViewFlatMetadata({ + ...args, + objectName: 'calendarEvent', + context: { + viewName: 'calendarEventRecordPageFields', + name: 'Calendar Event Record Page Fields', + type: ViewType.FIELDS_WIDGET, + key: null, + position: 0, + icon: 'IconList', + }, + }), }; }; 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 9e85774d31..a2b79b7151 100644 --- a/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts +++ b/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts @@ -527,6 +527,55 @@ export const STANDARD_OBJECTS = { }, }, }, + calendarEventRecordPageFields: { + universalIdentifier: 'c73668d1-022d-4eaf-b825-4e2548180db6', + viewFieldGroups: { + general: { + universalIdentifier: 'aeadeb9e-3673-4c0c-8845-f59cb1e6ca42', + }, + system: { + universalIdentifier: 'eb1aadeb-7feb-44d1-9f9a-e9929e8690fc', + }, + }, + viewFields: { + title: { + universalIdentifier: 'd17fc76f-2c3a-4c84-8249-27227bf71638', + }, + startsAt: { + universalIdentifier: '7bbd3744-d870-4704-882c-071732ed23d9', + }, + endsAt: { + universalIdentifier: 'ed7ca7e9-c8b3-4516-be4c-6491a27af847', + }, + isFullDay: { + universalIdentifier: '5d8f89b7-ec9e-41d6-9efe-96f9c32e6c20', + }, + isCanceled: { + universalIdentifier: 'a01f490d-cf67-4458-801e-13d81e74b45a', + }, + conferenceLink: { + universalIdentifier: '5ad748ae-e1bb-47bb-ac34-d82663c31b6e', + }, + location: { + universalIdentifier: '66c73e74-56e6-40c3-b776-0081ee757b8a', + }, + description: { + universalIdentifier: 'a09449be-b23f-48d4-b0dc-0bd36813220a', + }, + externalCreatedAt: { + universalIdentifier: '689c3eba-bedf-4a52-b9f1-3e34ce718251', + }, + externalUpdatedAt: { + universalIdentifier: '7823fa45-8cba-47ba-8dfb-5841bef44fc6', + }, + iCalUid: { + universalIdentifier: '8be763dd-6217-47fb-a7d2-ac223af881d2', + }, + conferenceSolution: { + universalIdentifier: '795905b6-c6f8-42cf-b8ea-3e5b6d32145f', + }, + }, + }, }, }, callRecording: { diff --git a/packages/twenty-shared/src/metadata/constants/standard-page-layout-universal-identifiers.constant.ts b/packages/twenty-shared/src/metadata/constants/standard-page-layout-universal-identifiers.constant.ts index ad1d4669fc..36d5941448 100644 --- a/packages/twenty-shared/src/metadata/constants/standard-page-layout-universal-identifiers.constant.ts +++ b/packages/twenty-shared/src/metadata/constants/standard-page-layout-universal-identifiers.constant.ts @@ -426,6 +426,33 @@ export const STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS = { }, }, }, + calendarEventRecordPage: { + universalIdentifier: 'b9b10e40-9ce2-4704-8ac6-c6e92e2563c1', + tabs: { + home: { + universalIdentifier: 'c80a0407-25f5-438b-8c32-1ce9cde95657', + widgets: { + fields: { + universalIdentifier: 'fea5c1c2-0c1d-4d2e-a14c-a10108b0db0f', + }, + participants: { + universalIdentifier: '6faea537-02fa-4993-957c-f2e1654986bd', + }, + callRecordings: { + universalIdentifier: 'f473b435-e2d4-4928-8d90-1db0094389f7', + }, + }, + }, + timeline: { + universalIdentifier: '9cb35d6d-932d-49bc-b303-593116ca5343', + widgets: { + timeline: { + universalIdentifier: '8273e2c4-cc17-4d3e-ba08-5bac612b5d44', + }, + }, + }, + }, + }, calendarEventParticipantRecordPage: { universalIdentifier: '20202020-a10c-400c-800c-ca1e0a0c0001', tabs: { diff --git a/packages/twenty-shared/src/types/SidePanelPages.ts b/packages/twenty-shared/src/types/SidePanelPages.ts index 359a3e3a26..d6003ce93e 100644 --- a/packages/twenty-shared/src/types/SidePanelPages.ts +++ b/packages/twenty-shared/src/types/SidePanelPages.ts @@ -3,7 +3,6 @@ export enum SidePanelPages { ViewRecord = 'view-record', MergeRecords = 'merge-records', UpdateRecords = 'update-records', - ViewCalendarEvent = 'view-calendar-event', EditRichText = 'edit-rich-text', Copilot = 'copilot', WorkflowTriggerSelectType = 'workflow-trigger-select-type',